]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
added missing button state
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2641
36ed4f51 2642/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2643
1bd55598
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d55e5bfc 2658
36ed4f51
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d55e5bfc 2663
36ed4f51 2664#define SWIG_name "_gdi_"
d55e5bfc 2665
1bd55598 2666#define SWIGVERSION 0x010329
d55e5bfc 2667
d55e5bfc 2668
1bd55598
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2671
2672
1bd55598
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
36ed4f51 2684 }
1bd55598
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
36ed4f51 2689 }
1bd55598
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
36ed4f51 2719}
d55e5bfc 2720
d55e5bfc 2721
1bd55598
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
d55e5bfc 2731 }
1bd55598 2732 };
d55e5bfc
RD
2733}
2734
2735
1bd55598
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2131d850
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
1bd55598
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
d55e5bfc
RD
2762
2763
da91cb0f
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
36ed4f51 2775SWIGINTERN int
1bd55598 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2780 return SWIG_TypeError;
36ed4f51
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
1bd55598 2784 return SWIG_OK;
36ed4f51 2785}
d55e5bfc
RD
2786
2787
36ed4f51 2788SWIGINTERN int
1bd55598
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
36ed4f51 2791 unsigned long v;
1bd55598
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
36ed4f51 2796 } else {
1bd55598 2797 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2798 }
1bd55598
RD
2799 }
2800 return res;
36ed4f51 2801}
d55e5bfc 2802
d55e5bfc 2803
1bd55598
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2806{
1bd55598
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2809}
2810
2811
1bd55598
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d55e5bfc 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
36ed4f51
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
36ed4f51
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2871 return rv;
2872 }
1bd55598 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d55e5bfc 2876
1bd55598
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2879{
1bd55598
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d55e5bfc
RD
2890}
2891
1bd55598 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
1bd55598 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2909
36ed4f51
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
1bd55598
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2926
1bd55598
RD
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_short (short value)
2929{
2930 return SWIG_From_long (value);
2931}
d55e5bfc
RD
2932
2933
36ed4f51 2934SWIGINTERN int
1bd55598
RD
2935SWIG_AsVal_short (PyObject * obj, short *val)
2936{
36ed4f51 2937 long v;
1bd55598
RD
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
36ed4f51 2942 } else {
1bd55598
RD
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
d55e5bfc
RD
2947}
2948
2949
fc46b7f3
RD
2950#include <wx/rawbmp.h>
2951
2952
8f514ab4
RD
2953// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954// appears to me that the other platforms are already doing it, so I'll just
2955// automatically do it for wxMSW here.
2956#ifdef __WXMSW__
2957#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959#else
2960#define wxPy_premultiply(p, a) (p)
2961#define wxPy_unpremultiply(p, a) (p)
2962#endif
2963
2964
36ed4f51 2965#include <wx/image.h>
d55e5bfc 2966
36ed4f51
RD
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
d55e5bfc 2970
36ed4f51
RD
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
d55e5bfc 2977
36ed4f51
RD
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
d55e5bfc 2983 }
d55e5bfc
RD
2984
2985
1bd55598 2986SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
1bd55598 2997SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
1bd55598 3003SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
1bd55598 3007SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
1bd55598 3011SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
8f514ab4
RD
3015SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
fc46b7f3 3018
8f514ab4
RD
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
fc46b7f3 3029
8f514ab4
RD
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
1bd55598 3225SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3226 if ( !colour.IsOk() )
36ed4f51
RD
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
d55e5bfc 3231
36ed4f51 3232#include <wx/iconbndl.h>
d55e5bfc 3233
1bd55598 3234SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
1bd55598 3239SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3240 char** cArray = NULL;
3241 wxIcon* icon;
d55e5bfc 3242
36ed4f51
RD
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
1bd55598 3250SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3251
3252
d55e5bfc 3253
36ed4f51 3254 return new wxIconLocation(*filename);
d55e5bfc 3255
36ed4f51 3256 }
1bd55598 3257SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3258
3259
d55e5bfc 3260
36ed4f51 3261 // do nothing
d55e5bfc 3262
36ed4f51 3263 }
1bd55598 3264SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3265
3266
d55e5bfc 3267
36ed4f51 3268 return -1;
d55e5bfc 3269
36ed4f51 3270 }
1bd55598 3271SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3272#ifdef __WXGTK__
fef4c27a
RD
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
36ed4f51 3277#else
fef4c27a 3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3279#endif
3280 }
d55e5bfc 3281
d55e5bfc 3282
1bd55598 3283SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3284 (*self) ++;
3285 }
1bd55598 3286SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3287 return self->operator bool();
3288 }
d55e5bfc 3289
36ed4f51
RD
3290#include <wx/fontutil.h>
3291#include <wx/fontmap.h>
3292#include <wx/fontenum.h>
d55e5bfc 3293
1bd55598 3294SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3295 return self->ToString();
3296 }
d55e5bfc 3297
36ed4f51
RD
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
d55e5bfc 3304 }
d55e5bfc 3305
1bd55598
RD
3306
3307SWIGINTERNINLINE PyObject *
3308SWIG_From_size_t (size_t value)
3309{
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311}
3312
3313
3314SWIGINTERNINLINE int
3315SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316{
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321}
3322
3323SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
1bd55598 3332SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
1bd55598 3337SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
1bd55598 3340SWIGINTERN 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
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
1bd55598 3345SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
1bd55598
RD
3348SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3350
36ed4f51
RD
3351class wxPyFontEnumerator : public wxFontEnumerator {
3352public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
d55e5bfc 3355
36ed4f51
RD
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3358
36ed4f51
RD
3359 PYPRIVATE;
3360};
d55e5bfc 3361
36ed4f51
RD
3362IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3364
36ed4f51 3365
704eda0c 3366SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3367 PyObject* ret;
704eda0c 3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3370 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
36ed4f51 3373 }
704eda0c 3374SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3375 PyObject* ret;
704eda0c 3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3378 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
36ed4f51
RD
3381 }
3382
3383#include <locale.h>
3384
1bd55598 3385SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393#if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395#endif
3396 return loc;
3397 }
1bd55598 3398SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402#if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404#endif
3405 return rc;
3406 }
1bd55598 3407SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411#if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413#endif
3414 return rc;
3415 }
3416
fc46b7f3
RD
3417class wxPyLocale : public wxLocale
3418{
3419public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448};
3449
3450wxPyLocale::wxPyLocale() : wxLocale()
3451{
3452}
3453
3454wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460{
3461}
3462
3463wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465{
3466}
3467
3468wxPyLocale::~wxPyLocale()
3469{
3470}
3471
3472const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474{
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477}
3478
3479const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482{
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485}
3486
3487wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507}
3508
3509wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512{
3513 bool found;
3514 static wxString str;
3515 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532}
3533
3534SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542#if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544#endif
3545 return loc;
3546 }
3547
36ed4f51
RD
3548#include "wx/wxPython/pydrawxxx.h"
3549
1bd55598 3550SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
1bd55598 3555SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561SWIGINTERN int
1bd55598 3562SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3563{
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3566 return SWIG_OK;
d55e5bfc 3567 }
1bd55598 3568 return SWIG_TypeError;
36ed4f51
RD
3569}
3570
1bd55598 3571SWIGINTERN 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
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
1bd55598 3576SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
1bd55598 3581SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
1bd55598 3587 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3588
1bd55598 3589SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
1bd55598 3592SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
1bd55598 3595SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
1bd55598 3598SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
1bd55598 3601SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
1bd55598 3604SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
1bd55598 3607SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
1bd55598 3610SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
1bd55598 3613SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622}
3623
3624
3625#include <wx/dcbuffer.h>
3626
3627
3628#include <wx/dcps.h>
3629
3630
3631#include <wx/metafile.h>
3632
3633
72ef6efb
RD
3634#include <wx/graphics.h>
3635
3636
3637#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3638// C++ stub classes for platforms or build configurations that don't have
3639// wxGraphicsContext yet.
72ef6efb 3640
8bd35413
RD
3641class wxGraphicsRenderer;
3642class wxGraphicsMatrix;
3643
70d7cb34
RD
3644
3645class wxGraphicsObject : public wxObject
72ef6efb
RD
3646{
3647public :
8bd35413 3648 wxGraphicsObject() {}
70d7cb34 3649 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3650 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3651 "wx.GraphicsObject is not available on this platform.");
3652 }
3653 wxGraphicsObject( const wxGraphicsObject& ) {}
3654 virtual ~wxGraphicsObject() {}
3655 bool IsNull() const { return false; }
3656 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3657} ;
3658
3659
3660
3661class wxGraphicsPen : public wxGraphicsObject
3662{
8bd35413 3663public:
70d7cb34
RD
3664 wxGraphicsPen() {}
3665 virtual ~wxGraphicsPen() {}
3666} ;
3667wxGraphicsPen wxNullGraphicsPen;
3668
3669
3670
3671class wxGraphicsBrush : public wxGraphicsObject
3672{
3673public :
3674 wxGraphicsBrush() {}
3675 virtual ~wxGraphicsBrush() {}
3676} ;
3677wxGraphicsBrush wxNullGraphicsBrush;
3678
3679
3680
3681class wxGraphicsFont : public wxGraphicsObject
3682{
3683public :
3684 wxGraphicsFont() {}
3685 virtual ~wxGraphicsFont() {}
3686} ;
3687wxGraphicsFont wxNullGraphicsFont;
3688
3689
3690
3691class wxGraphicsPath : public wxGraphicsObject
3692{
3693public :
8bd35413 3694 wxGraphicsPath() { }
70d7cb34
RD
3695 wxGraphicsPath(wxGraphicsRenderer* ) {
3696 PyErr_SetString(PyExc_NotImplementedError,
3697 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3698 }
3699 virtual ~wxGraphicsPath() {}
70d7cb34 3700
72ef6efb 3701 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3702 void MoveToPoint( const wxPoint2DDouble& ) {}
3703 void AddLineToPoint( wxDouble, wxDouble ) {}
3704 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3705 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3706 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3707 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3708 void CloseSubpath() {}
8bd35413
RD
3709 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3710 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3711 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3712 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3713
3714 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3715 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3716 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3717 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3718
70d7cb34
RD
3719 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3720 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3721 void * GetNativePath() const { return NULL; }
8bd35413
RD
3722 void UnGetNativePath(void *) const {}
3723 void Transform( const wxGraphicsMatrix& ) {}
3724 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3725 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3726
8bd35413
RD
3727 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3728 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3729};
5c8c7dd3 3730wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3731
3732
3733class wxGraphicsMatrix : public wxGraphicsObject
3734{
3735public :
8bd35413 3736 wxGraphicsMatrix() { }
70d7cb34
RD
3737 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3738 PyErr_SetString(PyExc_NotImplementedError,
3739 "wx.GraphicsMatrix is not available on this platform.");
3740 }
3741 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3742 virtual void Concat( const wxGraphicsMatrix & ) {}
3743 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3744 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3745 wxDouble , wxDouble ) {}
3746 virtual void Invert() {}
8bd35413
RD
3747 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3748 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3749 virtual void Translate( wxDouble , wxDouble ) {}
3750 virtual void Scale( wxDouble , wxDouble ) {}
3751 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3752 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3753 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3754 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3755};
5c8c7dd3 3756wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3757
70d7cb34
RD
3758
3759class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3760{
3761public:
70d7cb34
RD
3762
3763 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3764 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3765 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3766 }
70d7cb34 3767
72ef6efb 3768 virtual ~wxGraphicsContext() {}
70d7cb34 3769
8bd35413
RD
3770 static wxGraphicsContext* Create() {
3771 PyErr_SetString(PyExc_NotImplementedError,
3772 "wx.GraphicsContext is not available on this platform.");
3773 return NULL;
3774 }
70d7cb34 3775 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3776 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3777 "wx.GraphicsContext is not available on this platform.");
8bd35413 3778 return NULL;
72ef6efb 3779 }
b876c1e4 3780
70d7cb34 3781 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3782 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3783 "wx.GraphicsContext is not available on this platform.");
8bd35413 3784 return NULL;
70d7cb34 3785 }
b876c1e4 3786
70d7cb34
RD
3787 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3788 PyErr_SetString(PyExc_NotImplementedError,
3789 "wx.GraphicsContext is not available on this platform.");
8bd35413 3790 return NULL;
70d7cb34
RD
3791 }
3792
3793 static wxGraphicsContext* Create( wxWindow* ) {
3794 PyErr_SetString(PyExc_NotImplementedError,
3795 "wx.GraphicsContext is not available on this platform.");
8bd35413 3796 return NULL;
70d7cb34
RD
3797 }
3798
8bd35413 3799 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3800
8bd35413 3801 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3802
8bd35413 3803 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3804
3805 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3806 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3807
3808 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3809 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3810 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3811
8bd35413 3812 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3813
8bd35413
RD
3814 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3815 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3816
3817 virtual void PushState() {}
3818 virtual void PopState() {}
3819 virtual void Clip( const wxRegion & ) {}
3820 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual void ResetClip() {}
3822 virtual void * GetNativeContext() { return NULL; }
3823 virtual void Translate( wxDouble , wxDouble ) {}
3824 virtual void Scale( wxDouble , wxDouble ) {}
3825 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3826 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3827 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3828 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3829
3830 virtual void SetPen( const wxGraphicsPen& ) {}
3831 void SetPen( const wxPen& ) {}
3832
3833 virtual void SetBrush( const wxGraphicsBrush& ) {}
3834 void SetBrush( const wxBrush& ) {}
3835
3836 virtual void SetFont( const wxGraphicsFont& ) {}
3837 void SetFont( const wxFont&, const wxColour& ) {}
3838
8bd35413
RD
3839 virtual void StrokePath( const wxGraphicsPath & ) {}
3840 virtual void FillPath( const wxGraphicsPath &, int ) {}
3841 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3842
3843 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3844 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3847 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3848 wxDouble *, wxDouble * ) const {}
3849 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3850
3851 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3852 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3853
3854 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3855 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3856 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3857 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3858 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
8bd35413 3859 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3860 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3862 virtual bool ShouldOffset() const { return false; }
3863};
3864
3865
3866class wxGraphicsRenderer : public wxObject
3867{
3868public :
3869 wxGraphicsRenderer() {
3870 PyErr_SetString(PyExc_NotImplementedError,
3871 "wx.GraphicsRenderer is not available on this platform.");
3872 }
3873
3874 virtual ~wxGraphicsRenderer() {}
3875
8bd35413 3876 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3877 PyErr_SetString(PyExc_NotImplementedError,
3878 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3879 return NULL;
3880 }
70d7cb34
RD
3881
3882 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3883 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3884 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3885 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3886 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3887
8bd35413 3888 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3889
8bd35413
RD
3890 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3891 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3892
8bd35413
RD
3893 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3894 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3895 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3896 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3897 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3898 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3900};
3901
3902
70d7cb34 3903
72ef6efb
RD
3904class wxGCDC: public wxWindowDC
3905{
3906public:
3907 wxGCDC(const wxWindowDC&) {
3908 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3909 PyErr_SetString(PyExc_NotImplementedError,
3910 "wxGCDC is not available on this platform.");
3911 wxPyEndBlockThreads(blocked);
3912 }
70d7cb34 3913
48a0c021
RD
3914 wxGCDC(const wxWindow*) {
3915 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3916 PyErr_SetString(PyExc_NotImplementedError,
3917 "wxGCDC is not available on this platform.");
3918 wxPyEndBlockThreads(blocked);
3919 }
3920
72ef6efb
RD
3921 wxGCDC() {
3922 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3923 PyErr_SetString(PyExc_NotImplementedError,
3924 "wxGCDC is not available on this platform.");
3925 wxPyEndBlockThreads(blocked);
3926 }
70d7cb34 3927
72ef6efb
RD
3928 virtual ~wxGCDC() {}
3929
b876c1e4
RD
3930 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3931 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3932};
3933
3934#endif
3935
f89238b9
RD
3936SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3937 if ( !backgroundBrush.IsNull() )
3938 self->DrawText(str, x, y, backgroundBrush);
3939 else
3940 self->DrawText(str, x, y);
3941 }
3942SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3943 if ( !backgroundBrush.IsNull() )
3944 self->DrawText(str, x, y, angle, backgroundBrush);
3945 else
3946 self->DrawText(str, x, y, angle);
3947 }
be68621e
RD
3948SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3949 wxDouble width = 0.0,
3950 height = 0.0;
3951 self->GetTextExtent(text, &width, &height, NULL, NULL);
3952 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3953 PyObject* rv = PyTuple_New(2);
3954 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3955 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3956 return rv;
3957 }
b39fe951
RD
3958SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3959 wxArrayDouble widths;
3960 self->GetPartialTextExtents(text, widths);
3961 return widths;
3962 }
f8eb59b9 3963SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3964 size_t c1, c2, count;
3965 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3966 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3967
3968 if ( beginP != NULL && endP != NULL )
3969 {
3970 count = wxMin(c1, c2);
3971 self->StrokeLines(count, beginP, endP);
3972 }
3973 delete [] beginP;
3974 delete [] endP;
3975 }
72ef6efb 3976
0a27f394
RD
3977#include "wx/dcgraph.h"
3978
3979
66493fc7
RD
3980#include <wx/overlay.h>
3981
3982
36ed4f51 3983
1bd55598 3984SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3985 self->AddColour(name, wxColour(red, green, blue));
3986 }
3987
da91cb0f
RD
3988 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3989 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3990 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3991 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3992
3993
36ed4f51
RD
3994#include <wx/effects.h>
3995
be9b1dca
RD
3996
3997#include "wx/renderer.h"
3998
3999
32fe5131 4000SWIGINTERNINLINE PyObject*
1bd55598 4001 SWIG_From_bool (bool value)
be9b1dca 4002{
1bd55598 4003 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4004}
4005
27e45892
RD
4006
4007#include "wx/wxPython/pseudodc.h"
4008
4009SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4010 wxRect rect;
4011 self->GetIdBounds(id, rect);
4012 return rect;
4013 }
36ed4f51
RD
4014#ifdef __cplusplus
4015extern "C" {
4016#endif
1bd55598
RD
4017SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4018 PyObject *resultobj = 0;
4019 wxGDIObject *result = 0 ;
4020
4021 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4022 {
4023 if (!wxPyCheckForApp()) SWIG_fail;
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 result = (wxGDIObject *)new wxGDIObject();
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4030 return resultobj;
4031fail:
4032 return NULL;
d55e5bfc
RD
4033}
4034
4035
1bd55598
RD
4036SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 PyObject *swig_obj[1] ;
4042
4043 if (!args) SWIG_fail;
4044 swig_obj[0] = args;
4045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4046 if (!SWIG_IsOK(res1)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4048 }
4049 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 delete arg1;
d55e5bfc 4053
1bd55598
RD
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 resultobj = SWIG_Py_Void();
4058 return resultobj;
4059fail:
4060 return NULL;
d55e5bfc
RD
4061}
4062
4063
1bd55598
RD
4064SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4065 PyObject *resultobj = 0;
4066 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4067 bool result;
4068 void *argp1 = 0 ;
4069 int res1 = 0 ;
4070 PyObject *swig_obj[1] ;
4071
4072 if (!args) SWIG_fail;
4073 swig_obj[0] = args;
4074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4077 }
4078 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (bool)(arg1)->IsNull();
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 {
4086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4087 }
4088 return resultobj;
4089fail:
4090 return NULL;
4091}
4092
4093
4094SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *obj;
4096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4097 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4098 return SWIG_Py_Void();
4099}
4100
4101SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4102 return SWIG_Python_InitShadowInstance(args);
4103}
4104
4105SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj = 0;
4107 byte arg1 = (byte) 0 ;
4108 byte arg2 = (byte) 0 ;
4109 byte arg3 = (byte) 0 ;
fc46b7f3 4110 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4111 wxColour *result = 0 ;
4112 unsigned char val1 ;
4113 int ecode1 = 0 ;
4114 unsigned char val2 ;
4115 int ecode2 = 0 ;
4116 unsigned char val3 ;
4117 int ecode3 = 0 ;
fc46b7f3
RD
4118 unsigned char val4 ;
4119 int ecode4 = 0 ;
1bd55598
RD
4120 PyObject * obj0 = 0 ;
4121 PyObject * obj1 = 0 ;
4122 PyObject * obj2 = 0 ;
fc46b7f3 4123 PyObject * obj3 = 0 ;
1bd55598 4124 char * kwnames[] = {
fc46b7f3 4125 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4126 };
4127
fc46b7f3 4128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4129 if (obj0) {
4130 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4131 if (!SWIG_IsOK(ecode1)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4133 }
4134 arg1 = static_cast< byte >(val1);
4135 }
4136 if (obj1) {
4137 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4138 if (!SWIG_IsOK(ecode2)) {
4139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4140 }
4141 arg2 = static_cast< byte >(val2);
4142 }
4143 if (obj2) {
4144 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4145 if (!SWIG_IsOK(ecode3)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4147 }
4148 arg3 = static_cast< byte >(val3);
4149 }
fc46b7f3
RD
4150 if (obj3) {
4151 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4152 if (!SWIG_IsOK(ecode4)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4154 }
4155 arg4 = static_cast< byte >(val4);
4156 }
1bd55598
RD
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4159 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4164 return resultobj;
4165fail:
4166 return NULL;
d55e5bfc
RD
4167}
4168
4169
1bd55598
RD
4170SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj = 0;
4172 wxString *arg1 = 0 ;
4173 wxColour *result = 0 ;
4174 bool temp1 = false ;
4175 PyObject * obj0 = 0 ;
4176 char * kwnames[] = {
4177 (char *) "colorName", NULL
4178 };
4179
4180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4181 {
4182 arg1 = wxString_in_helper(obj0);
4183 if (arg1 == NULL) SWIG_fail;
4184 temp1 = true;
4185 }
4186 {
4187 if (!wxPyCheckForApp()) SWIG_fail;
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (wxColour *)new wxColour((wxString const &)*arg1);
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4194 {
4195 if (temp1)
4196 delete arg1;
4197 }
4198 return resultobj;
4199fail:
4200 {
4201 if (temp1)
4202 delete arg1;
4203 }
4204 return NULL;
36ed4f51
RD
4205}
4206
4207
1bd55598
RD
4208SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4209 PyObject *resultobj = 0;
4210 unsigned long arg1 ;
4211 wxColour *result = 0 ;
4212 unsigned long val1 ;
4213 int ecode1 = 0 ;
4214 PyObject * obj0 = 0 ;
4215 char * kwnames[] = {
4216 (char *) "colRGB", NULL
4217 };
4218
4219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4220 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4221 if (!SWIG_IsOK(ecode1)) {
4222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4223 }
4224 arg1 = static_cast< unsigned long >(val1);
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
4227 result = (wxColour *)new wxColour(arg1);
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4232 return resultobj;
4233fail:
4234 return NULL;
d55e5bfc
RD
4235}
4236
4237
1bd55598
RD
4238SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 wxColour *arg1 = (wxColour *) 0 ;
4241 void *argp1 = 0 ;
4242 int res1 = 0 ;
4243 PyObject *swig_obj[1] ;
4244
4245 if (!args) SWIG_fail;
4246 swig_obj[0] = args;
4247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4250 }
4251 arg1 = reinterpret_cast< wxColour * >(argp1);
4252 {
4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
4254 delete arg1;
d55e5bfc 4255
1bd55598
RD
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261fail:
4262 return NULL;
d55e5bfc
RD
4263}
4264
4265
1bd55598
RD
4266SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4267 PyObject *resultobj = 0;
4268 wxColour *arg1 = (wxColour *) 0 ;
4269 byte result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 PyObject *swig_obj[1] ;
4273
4274 if (!args) SWIG_fail;
4275 swig_obj[0] = args;
4276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4277 if (!SWIG_IsOK(res1)) {
4278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4279 }
4280 arg1 = reinterpret_cast< wxColour * >(argp1);
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (byte)(arg1)->Red();
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4288 return resultobj;
4289fail:
4290 return NULL;
d55e5bfc
RD
4291}
4292
4293
1bd55598
RD
4294SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 byte result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (byte)(arg1)->Green();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4316 return resultobj;
4317fail:
4318 return NULL;
d55e5bfc
RD
4319}
4320
4321
1bd55598
RD
4322SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 byte result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject *swig_obj[1] ;
4329
4330 if (!args) SWIG_fail;
4331 swig_obj[0] = args;
4332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4335 }
4336 arg1 = reinterpret_cast< wxColour * >(argp1);
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (byte)(arg1)->Blue();
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) SWIG_fail;
4342 }
4343 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4344 return resultobj;
4345fail:
4346 return NULL;
d55e5bfc
RD
4347}
4348
4349
fc46b7f3
RD
4350SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *resultobj = 0;
4352 wxColour *arg1 = (wxColour *) 0 ;
4353 byte result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject *swig_obj[1] ;
4357
4358 if (!args) SWIG_fail;
4359 swig_obj[0] = args;
4360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4363 }
4364 arg1 = reinterpret_cast< wxColour * >(argp1);
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (byte)(arg1)->Alpha();
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4372 return resultobj;
4373fail:
4374 return NULL;
4375}
4376
4377
b39fe951 4378SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 bool result;
4382 void *argp1 = 0 ;
4383 int res1 = 0 ;
4384 PyObject *swig_obj[1] ;
4385
4386 if (!args) SWIG_fail;
4387 swig_obj[0] = args;
4388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
b39fe951 4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4395 result = (bool)(arg1)->IsOk();
1bd55598
RD
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 {
4400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4401 }
4402 return resultobj;
4403fail:
4404 return NULL;
4405}
4406
4407
4408SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxColour *arg1 = (wxColour *) 0 ;
4411 byte arg2 ;
4412 byte arg3 ;
4413 byte arg4 ;
fc46b7f3 4414 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 unsigned char val2 ;
4418 int ecode2 = 0 ;
4419 unsigned char val3 ;
4420 int ecode3 = 0 ;
4421 unsigned char val4 ;
4422 int ecode4 = 0 ;
fc46b7f3
RD
4423 unsigned char val5 ;
4424 int ecode5 = 0 ;
1bd55598
RD
4425 PyObject * obj0 = 0 ;
4426 PyObject * obj1 = 0 ;
4427 PyObject * obj2 = 0 ;
4428 PyObject * obj3 = 0 ;
fc46b7f3 4429 PyObject * obj4 = 0 ;
1bd55598 4430 char * kwnames[] = {
fc46b7f3 4431 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4432 };
4433
fc46b7f3 4434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4436 if (!SWIG_IsOK(res1)) {
4437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4438 }
4439 arg1 = reinterpret_cast< wxColour * >(argp1);
4440 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4441 if (!SWIG_IsOK(ecode2)) {
4442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4443 }
4444 arg2 = static_cast< byte >(val2);
4445 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4446 if (!SWIG_IsOK(ecode3)) {
4447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4448 }
4449 arg3 = static_cast< byte >(val3);
4450 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4451 if (!SWIG_IsOK(ecode4)) {
4452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4453 }
4454 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4455 if (obj4) {
4456 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4457 if (!SWIG_IsOK(ecode5)) {
4458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4459 }
4460 arg5 = static_cast< byte >(val5);
4461 }
1bd55598
RD
4462 {
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4464 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4465 wxPyEndAllowThreads(__tstate);
4466 if (PyErr_Occurred()) SWIG_fail;
4467 }
4468 resultobj = SWIG_Py_Void();
4469 return resultobj;
4470fail:
4471 return NULL;
4472}
4473
4474
4475SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj = 0;
4477 wxColour *arg1 = (wxColour *) 0 ;
4478 unsigned long arg2 ;
4479 void *argp1 = 0 ;
4480 int res1 = 0 ;
4481 unsigned long val2 ;
4482 int ecode2 = 0 ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "colRGB", NULL
4487 };
4488
4489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4491 if (!SWIG_IsOK(res1)) {
4492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4493 }
4494 arg1 = reinterpret_cast< wxColour * >(argp1);
4495 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4496 if (!SWIG_IsOK(ecode2)) {
4497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4498 }
4499 arg2 = static_cast< unsigned long >(val2);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 (arg1)->Set(arg2);
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 return resultobj;
4508fail:
4509 return NULL;
4510}
4511
4512
4513SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj = 0;
4515 wxColour *arg1 = (wxColour *) 0 ;
4516 wxString *arg2 = 0 ;
4517 void *argp1 = 0 ;
4518 int res1 = 0 ;
4519 bool temp2 = false ;
4520 PyObject * obj0 = 0 ;
4521 PyObject * obj1 = 0 ;
4522 char * kwnames[] = {
4523 (char *) "self",(char *) "colourName", NULL
4524 };
4525
4526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
4529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4530 }
4531 arg1 = reinterpret_cast< wxColour * >(argp1);
4532 {
4533 arg2 = wxString_in_helper(obj1);
4534 if (arg2 == NULL) SWIG_fail;
4535 temp2 = true;
4536 }
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4539 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_Py_Void();
4544 {
4545 if (temp2)
4546 delete arg2;
4547 }
4548 return resultobj;
4549fail:
4550 {
4551 if (temp2)
4552 delete arg2;
4553 }
4554 return NULL;
d55e5bfc
RD
4555}
4556
4557
2131d850
RD
4558SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj = 0;
4560 wxColour *arg1 = (wxColour *) 0 ;
4561 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4562 wxString result;
4563 void *argp1 = 0 ;
4564 int res1 = 0 ;
4565 long val2 ;
4566 int ecode2 = 0 ;
4567 PyObject * obj0 = 0 ;
4568 PyObject * obj1 = 0 ;
4569 char * kwnames[] = {
4570 (char *) "self",(char *) "flags", NULL
4571 };
4572
4573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4577 }
4578 arg1 = reinterpret_cast< wxColour * >(argp1);
4579 if (obj1) {
4580 ecode2 = SWIG_AsVal_long(obj1, &val2);
4581 if (!SWIG_IsOK(ecode2)) {
4582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4583 }
4584 arg2 = static_cast< long >(val2);
4585 }
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = ((wxColour const *)arg1)->GetAsString(arg2);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593#if wxUSE_UNICODE
4594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4595#else
4596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4597#endif
4598 }
4599 return resultobj;
4600fail:
4601 return NULL;
4602}
4603
4604
1bd55598
RD
4605SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = (wxColour *) 0 ;
4608 long result;
4609 void *argp1 = 0 ;
4610 int res1 = 0 ;
4611 PyObject *swig_obj[1] ;
4612
4613 if (!args) SWIG_fail;
4614 swig_obj[0] = args;
4615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4618 }
4619 arg1 = reinterpret_cast< wxColour * >(argp1);
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (long)((wxColour const *)arg1)->GetPixel();
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_From_long(static_cast< long >(result));
4627 return resultobj;
4628fail:
4629 return NULL;
4630}
4631
4632
4633SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj = 0;
4635 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4636 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4637 bool result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
1bd55598
RD
4640 PyObject * obj0 = 0 ;
4641 PyObject * obj1 = 0 ;
4642 char * kwnames[] = {
e9d6f3a4 4643 (char *) "self",(char *) "other", NULL
1bd55598
RD
4644 };
4645
4646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4648 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4650 }
4651 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4652 arg2 = obj1;
1bd55598 4653 {
e9d6f3a4 4654 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 {
4658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4659 }
4660 return resultobj;
4661fail:
4662 return NULL;
4663}
4664
4665
4666SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj = 0;
4668 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4669 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4670 bool result;
4671 void *argp1 = 0 ;
4672 int res1 = 0 ;
1bd55598
RD
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 char * kwnames[] = {
e9d6f3a4 4676 (char *) "self",(char *) "other", NULL
1bd55598
RD
4677 };
4678
4679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4681 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4683 }
4684 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4685 arg2 = obj1;
1bd55598 4686 {
e9d6f3a4 4687 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 {
4691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4692 }
4693 return resultobj;
4694fail:
4695 return NULL;
d55e5bfc
RD
4696}
4697
4698
fc46b7f3 4699SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4700 PyObject *resultobj = 0;
4701 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4702 bool arg2 = (bool) false ;
1bd55598
RD
4703 PyObject *result = 0 ;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
fc46b7f3
RD
4706 bool val2 ;
4707 int ecode2 = 0 ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char * kwnames[] = {
4711 (char *) "self",(char *) "includeAlpha", NULL
4712 };
1bd55598 4713
fc46b7f3
RD
4714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4718 }
4719 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4720 if (obj1) {
4721 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4722 if (!SWIG_IsOK(ecode2)) {
4723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4724 }
4725 arg2 = static_cast< bool >(val2);
4726 }
1bd55598 4727 {
fc46b7f3 4728 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = result;
4732 return resultobj;
4733fail:
4734 return NULL;
d55e5bfc
RD
4735}
4736
4737
1bd55598
RD
4738SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4739 PyObject *resultobj = 0;
4740 wxColour *arg1 = (wxColour *) 0 ;
4741 unsigned long result;
4742 void *argp1 = 0 ;
4743 int res1 = 0 ;
4744 PyObject *swig_obj[1] ;
4745
4746 if (!args) SWIG_fail;
4747 swig_obj[0] = args;
4748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4749 if (!SWIG_IsOK(res1)) {
4750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4751 }
4752 arg1 = reinterpret_cast< wxColour * >(argp1);
4753 {
1bd55598 4754 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4758 return resultobj;
4759fail:
4760 return NULL;
4761}
4762
4763
4764SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4765 PyObject *obj;
4766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4767 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4768 return SWIG_Py_Void();
4769}
4770
4771SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4772 return SWIG_Python_InitShadowInstance(args);
4773}
4774
4775SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4776 PyObject *resultobj = 0;
4777 int arg1 ;
4778 unsigned char *arg2 = (unsigned char *) 0 ;
4779 unsigned char *arg3 = (unsigned char *) 0 ;
4780 unsigned char *arg4 = (unsigned char *) 0 ;
4781 wxPalette *result = 0 ;
4782 int val1 ;
4783 int ecode1 = 0 ;
4784 void *argp2 = 0 ;
4785 int res2 = 0 ;
4786 void *argp3 = 0 ;
4787 int res3 = 0 ;
4788 void *argp4 = 0 ;
4789 int res4 = 0 ;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792 PyObject * obj2 = 0 ;
4793 PyObject * obj3 = 0 ;
4794 char * kwnames[] = {
4795 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4796 };
4797
4798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4799 ecode1 = SWIG_AsVal_int(obj0, &val1);
4800 if (!SWIG_IsOK(ecode1)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4802 }
4803 arg1 = static_cast< int >(val1);
4804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4805 if (!SWIG_IsOK(res2)) {
4806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4807 }
4808 arg2 = reinterpret_cast< unsigned char * >(argp2);
4809 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4810 if (!SWIG_IsOK(res3)) {
4811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4812 }
4813 arg3 = reinterpret_cast< unsigned char * >(argp3);
4814 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4815 if (!SWIG_IsOK(res4)) {
4816 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4817 }
4818 arg4 = reinterpret_cast< unsigned char * >(argp4);
4819 {
4820 if (!wxPyCheckForApp()) SWIG_fail;
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4827 return resultobj;
4828fail:
4829 return NULL;
d55e5bfc
RD
4830}
4831
4832
1bd55598
RD
4833SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4834 PyObject *resultobj = 0;
4835 wxPalette *arg1 = (wxPalette *) 0 ;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 PyObject *swig_obj[1] ;
4839
4840 if (!args) SWIG_fail;
4841 swig_obj[0] = args;
4842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4845 }
4846 arg1 = reinterpret_cast< wxPalette * >(argp1);
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 delete arg1;
d55e5bfc 4850
1bd55598
RD
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 resultobj = SWIG_Py_Void();
4855 return resultobj;
4856fail:
4857 return NULL;
4858}
4859
4860
4861SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxPalette *arg1 = (wxPalette *) 0 ;
4864 byte arg2 ;
4865 byte arg3 ;
4866 byte arg4 ;
4867 int result;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 unsigned char val2 ;
4871 int ecode2 = 0 ;
4872 unsigned char val3 ;
4873 int ecode3 = 0 ;
4874 unsigned char val4 ;
4875 int ecode4 = 0 ;
4876 PyObject * obj0 = 0 ;
4877 PyObject * obj1 = 0 ;
4878 PyObject * obj2 = 0 ;
4879 PyObject * obj3 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4888 }
4889 arg1 = reinterpret_cast< wxPalette * >(argp1);
4890 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4891 if (!SWIG_IsOK(ecode2)) {
4892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4893 }
4894 arg2 = static_cast< byte >(val2);
4895 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4896 if (!SWIG_IsOK(ecode3)) {
4897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4898 }
4899 arg3 = static_cast< byte >(val3);
4900 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4901 if (!SWIG_IsOK(ecode4)) {
4902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4903 }
4904 arg4 = static_cast< byte >(val4);
4905 {
4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
4907 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 resultobj = SWIG_From_int(static_cast< int >(result));
4912 return resultobj;
4913fail:
4914 return NULL;
4915}
4916
4917
4918SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj = 0;
4920 wxPalette *arg1 = (wxPalette *) 0 ;
4921 int arg2 ;
4922 byte *arg3 = (byte *) 0 ;
4923 byte *arg4 = (byte *) 0 ;
4924 byte *arg5 = (byte *) 0 ;
4925 bool result;
4926 void *argp1 = 0 ;
4927 int res1 = 0 ;
4928 int val2 ;
4929 int ecode2 = 0 ;
4930 byte temp3 ;
4931 int res3 = SWIG_TMPOBJ ;
4932 byte temp4 ;
4933 int res4 = SWIG_TMPOBJ ;
4934 byte temp5 ;
4935 int res5 = SWIG_TMPOBJ ;
4936 PyObject * obj0 = 0 ;
4937 PyObject * obj1 = 0 ;
4938 char * kwnames[] = {
4939 (char *) "self",(char *) "pixel", NULL
4940 };
4941
4942 arg3 = &temp3;
4943 arg4 = &temp4;
4944 arg5 = &temp5;
4945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4947 if (!SWIG_IsOK(res1)) {
4948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4949 }
4950 arg1 = reinterpret_cast< wxPalette * >(argp1);
4951 ecode2 = SWIG_AsVal_int(obj1, &val2);
4952 if (!SWIG_IsOK(ecode2)) {
4953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4954 }
4955 arg2 = static_cast< int >(val2);
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 {
4963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4964 }
4965 if (SWIG_IsTmpObj(res3)) {
4966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4967 } else {
4968 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4970 }
4971 if (SWIG_IsTmpObj(res4)) {
4972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4973 } else {
4974 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4976 }
4977 if (SWIG_IsTmpObj(res5)) {
4978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4979 } else {
4980 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4982 }
4983 return resultobj;
4984fail:
4985 return NULL;
d55e5bfc
RD
4986}
4987
4988
1bd55598
RD
4989SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPalette *arg1 = (wxPalette *) 0 ;
4992 int result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPalette * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_From_int(static_cast< int >(result));
5011 return resultobj;
5012fail:
5013 return NULL;
d55e5bfc
RD
5014}
5015
5016
b39fe951 5017SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5018 PyObject *resultobj = 0;
5019 wxPalette *arg1 = (wxPalette *) 0 ;
5020 bool result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
b39fe951 5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5030 }
5031 arg1 = reinterpret_cast< wxPalette * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5034 result = (bool)(arg1)->IsOk();
1bd55598
RD
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042fail:
5043 return NULL;
5044}
5045
5046
5047SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *obj;
5049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5050 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5051 return SWIG_Py_Void();
5052}
5053
5054SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 return SWIG_Python_InitShadowInstance(args);
5056}
5057
5058SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxColour *arg1 = 0 ;
5061 int arg2 = (int) 1 ;
5062 int arg3 = (int) wxSOLID ;
5063 wxPen *result = 0 ;
5064 wxColour temp1 ;
5065 int val2 ;
5066 int ecode2 = 0 ;
5067 int val3 ;
5068 int ecode3 = 0 ;
5069 PyObject * obj0 = 0 ;
5070 PyObject * obj1 = 0 ;
5071 PyObject * obj2 = 0 ;
5072 char * kwnames[] = {
5073 (char *) "colour",(char *) "width",(char *) "style", NULL
5074 };
5075
5076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5077 {
5078 arg1 = &temp1;
5079 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5080 }
5081 if (obj1) {
5082 ecode2 = SWIG_AsVal_int(obj1, &val2);
5083 if (!SWIG_IsOK(ecode2)) {
5084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5085 }
5086 arg2 = static_cast< int >(val2);
5087 }
5088 if (obj2) {
5089 ecode3 = SWIG_AsVal_int(obj2, &val3);
5090 if (!SWIG_IsOK(ecode3)) {
5091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5092 }
5093 arg3 = static_cast< int >(val3);
5094 }
5095 {
5096 if (!wxPyCheckForApp()) SWIG_fail;
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5103 return resultobj;
5104fail:
5105 return NULL;
d55e5bfc
RD
5106}
5107
5108
1bd55598
RD
5109SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 PyObject *swig_obj[1] ;
5115
5116 if (!args) SWIG_fail;
5117 swig_obj[0] = args;
5118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5119 if (!SWIG_IsOK(res1)) {
5120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5121 }
5122 arg1 = reinterpret_cast< wxPen * >(argp1);
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 delete arg1;
f78cc896 5126
1bd55598
RD
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 resultobj = SWIG_Py_Void();
5131 return resultobj;
5132fail:
5133 return NULL;
f78cc896
RD
5134}
5135
5136
1bd55598
RD
5137SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5138 PyObject *resultobj = 0;
5139 wxPen *arg1 = (wxPen *) 0 ;
5140 int result;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject *swig_obj[1] ;
5144
5145 if (!args) SWIG_fail;
5146 swig_obj[0] = args;
5147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5148 if (!SWIG_IsOK(res1)) {
5149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5150 }
5151 arg1 = reinterpret_cast< wxPen * >(argp1);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (int)(arg1)->GetCap();
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_From_int(static_cast< int >(result));
5159 return resultobj;
5160fail:
5161 return NULL;
d55e5bfc
RD
5162}
5163
5164
1bd55598
RD
5165SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 wxColour result;
5169 void *argp1 = 0 ;
5170 int res1 = 0 ;
5171 PyObject *swig_obj[1] ;
5172
5173 if (!args) SWIG_fail;
5174 swig_obj[0] = args;
5175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5176 if (!SWIG_IsOK(res1)) {
5177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5178 }
5179 arg1 = reinterpret_cast< wxPen * >(argp1);
5180 {
5181 PyThreadState* __tstate = wxPyBeginAllowThreads();
5182 result = (arg1)->GetColour();
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5187 return resultobj;
5188fail:
5189 return NULL;
d55e5bfc
RD
5190}
5191
5192
1bd55598
RD
5193SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5194 PyObject *resultobj = 0;
5195 wxPen *arg1 = (wxPen *) 0 ;
5196 int result;
5197 void *argp1 = 0 ;
5198 int res1 = 0 ;
5199 PyObject *swig_obj[1] ;
5200
5201 if (!args) SWIG_fail;
5202 swig_obj[0] = args;
5203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (int)(arg1)->GetJoin();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_From_int(static_cast< int >(result));
5215 return resultobj;
5216fail:
5217 return NULL;
d55e5bfc
RD
5218}
5219
5220
1bd55598
RD
5221SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxPen *arg1 = (wxPen *) 0 ;
5224 int result;
5225 void *argp1 = 0 ;
5226 int res1 = 0 ;
5227 PyObject *swig_obj[1] ;
5228
5229 if (!args) SWIG_fail;
5230 swig_obj[0] = args;
5231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5232 if (!SWIG_IsOK(res1)) {
5233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5234 }
5235 arg1 = reinterpret_cast< wxPen * >(argp1);
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 result = (int)(arg1)->GetStyle();
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 resultobj = SWIG_From_int(static_cast< int >(result));
5243 return resultobj;
5244fail:
5245 return NULL;
d55e5bfc
RD
5246}
5247
5248
1bd55598
RD
5249SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 int result;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (int)(arg1)->GetWidth();
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 resultobj = SWIG_From_int(static_cast< int >(result));
5271 return resultobj;
5272fail:
5273 return NULL;
d55e5bfc
RD
5274}
5275
5276
b39fe951 5277SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5278 PyObject *resultobj = 0;
5279 wxPen *arg1 = (wxPen *) 0 ;
5280 bool result;
5281 void *argp1 = 0 ;
5282 int res1 = 0 ;
5283 PyObject *swig_obj[1] ;
5284
5285 if (!args) SWIG_fail;
5286 swig_obj[0] = args;
5287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5288 if (!SWIG_IsOK(res1)) {
b39fe951 5289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5290 }
5291 arg1 = reinterpret_cast< wxPen * >(argp1);
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5294 result = (bool)(arg1)->IsOk();
1bd55598
RD
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 {
5299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5300 }
5301 return resultobj;
5302fail:
5303 return NULL;
5304}
5305
5306
5307SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 int arg2 ;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 int val2 ;
5314 int ecode2 = 0 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "cap_style", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 ecode2 = SWIG_AsVal_int(obj1, &val2);
5328 if (!SWIG_IsOK(ecode2)) {
5329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5330 }
5331 arg2 = static_cast< int >(val2);
5332 {
5333 PyThreadState* __tstate = wxPyBeginAllowThreads();
5334 (arg1)->SetCap(arg2);
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 resultobj = SWIG_Py_Void();
5339 return resultobj;
5340fail:
5341 return NULL;
5342}
5343
5344
5345SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5346 PyObject *resultobj = 0;
5347 wxPen *arg1 = (wxPen *) 0 ;
5348 wxColour *arg2 = 0 ;
5349 void *argp1 = 0 ;
5350 int res1 = 0 ;
5351 wxColour temp2 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "self",(char *) "colour", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5360 if (!SWIG_IsOK(res1)) {
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5362 }
5363 arg1 = reinterpret_cast< wxPen * >(argp1);
5364 {
5365 arg2 = &temp2;
5366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 (arg1)->SetColour(*arg2);
5371 wxPyEndAllowThreads(__tstate);
5372 if (PyErr_Occurred()) SWIG_fail;
5373 }
5374 resultobj = SWIG_Py_Void();
5375 return resultobj;
5376fail:
5377 return NULL;
5378}
5379
5380
5381SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5382 PyObject *resultobj = 0;
5383 wxPen *arg1 = (wxPen *) 0 ;
5384 int arg2 ;
5385 void *argp1 = 0 ;
5386 int res1 = 0 ;
5387 int val2 ;
5388 int ecode2 = 0 ;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 char * kwnames[] = {
5392 (char *) "self",(char *) "join_style", NULL
5393 };
5394
5395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5397 if (!SWIG_IsOK(res1)) {
5398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5399 }
5400 arg1 = reinterpret_cast< wxPen * >(argp1);
5401 ecode2 = SWIG_AsVal_int(obj1, &val2);
5402 if (!SWIG_IsOK(ecode2)) {
5403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5404 }
5405 arg2 = static_cast< int >(val2);
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 (arg1)->SetJoin(arg2);
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = SWIG_Py_Void();
5413 return resultobj;
5414fail:
5415 return NULL;
5416}
5417
5418
5419SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj = 0;
5421 wxPen *arg1 = (wxPen *) 0 ;
5422 int arg2 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 int val2 ;
5426 int ecode2 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 char * kwnames[] = {
5430 (char *) "self",(char *) "style", NULL
5431 };
5432
5433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5435 if (!SWIG_IsOK(res1)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5437 }
5438 arg1 = reinterpret_cast< wxPen * >(argp1);
5439 ecode2 = SWIG_AsVal_int(obj1, &val2);
5440 if (!SWIG_IsOK(ecode2)) {
5441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5442 }
5443 arg2 = static_cast< int >(val2);
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 (arg1)->SetStyle(arg2);
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_Py_Void();
5451 return resultobj;
5452fail:
5453 return NULL;
5454}
5455
5456
5457SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj = 0;
5459 wxPen *arg1 = (wxPen *) 0 ;
5460 int arg2 ;
5461 void *argp1 = 0 ;
5462 int res1 = 0 ;
5463 int val2 ;
5464 int ecode2 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 PyObject * obj1 = 0 ;
5467 char * kwnames[] = {
5468 (char *) "self",(char *) "width", NULL
5469 };
5470
5471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5473 if (!SWIG_IsOK(res1)) {
5474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5475 }
5476 arg1 = reinterpret_cast< wxPen * >(argp1);
5477 ecode2 = SWIG_AsVal_int(obj1, &val2);
5478 if (!SWIG_IsOK(ecode2)) {
5479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5480 }
5481 arg2 = static_cast< int >(val2);
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->SetWidth(arg2);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_Py_Void();
5489 return resultobj;
5490fail:
5491 return NULL;
5492}
5493
5494
5495SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5496 PyObject *resultobj = 0;
5497 wxPen *arg1 = (wxPen *) 0 ;
5498 int arg2 ;
5499 wxDash *arg3 = (wxDash *) 0 ;
5500 void *argp1 = 0 ;
5501 int res1 = 0 ;
5502 PyObject * obj0 = 0 ;
5503 PyObject * obj1 = 0 ;
5504 char * kwnames[] = {
5505 (char *) "self",(char *) "dashes", NULL
5506 };
5507
5508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5510 if (!SWIG_IsOK(res1)) {
5511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5512 }
5513 arg1 = reinterpret_cast< wxPen * >(argp1);
5514 {
5515 arg2 = PyList_Size(obj1);
5516 arg3 = (wxDash*)byte_LIST_helper(obj1);
5517 if (arg3 == NULL) SWIG_fail;
5518 }
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 (arg1)->SetDashes(arg2,arg3);
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_Py_Void();
5526 {
5527 if (arg3) delete [] arg3;
5528 }
5529 return resultobj;
5530fail:
5531 {
5532 if (arg3) delete [] arg3;
5533 }
5534 return NULL;
d6c14a4c
RD
5535}
5536
5537
1bd55598
RD
5538SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5539 PyObject *resultobj = 0;
5540 wxPen *arg1 = (wxPen *) 0 ;
5541 PyObject *result = 0 ;
5542 void *argp1 = 0 ;
5543 int res1 = 0 ;
5544 PyObject *swig_obj[1] ;
5545
5546 if (!args) SWIG_fail;
5547 swig_obj[0] = args;
5548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5549 if (!SWIG_IsOK(res1)) {
5550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5551 }
5552 arg1 = reinterpret_cast< wxPen * >(argp1);
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (PyObject *)wxPen_GetDashes(arg1);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = result;
5560 return resultobj;
5561fail:
5562 return NULL;
5563}
5564
5565
5566SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj = 0;
5568 wxPen *arg1 = (wxPen *) 0 ;
5569 PyObject *arg2 = (PyObject *) 0 ;
5570 PyObject *arg3 = (PyObject *) 0 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5575 PyObject * obj2 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5584 }
5585 arg1 = reinterpret_cast< wxPen * >(argp1);
5586 arg2 = obj1;
5587 arg3 = obj2;
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 wxPen__SetDashes(arg1,arg2,arg3);
5591 wxPyEndAllowThreads(__tstate);
5592 if (PyErr_Occurred()) SWIG_fail;
5593 }
5594 resultobj = SWIG_Py_Void();
5595 return resultobj;
5596fail:
5597 return NULL;
5598}
5599
5600
5601SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5602 PyObject *resultobj = 0;
5603 wxPen *arg1 = (wxPen *) 0 ;
5604 wxPen *arg2 = (wxPen *) 0 ;
5605 bool result;
5606 void *argp1 = 0 ;
5607 int res1 = 0 ;
5608 void *argp2 = 0 ;
5609 int res2 = 0 ;
5610 PyObject * obj0 = 0 ;
5611 PyObject * obj1 = 0 ;
5612 char * kwnames[] = {
5613 (char *) "self",(char *) "other", NULL
5614 };
5615
5616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5618 if (!SWIG_IsOK(res1)) {
5619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5620 }
5621 arg1 = reinterpret_cast< wxPen * >(argp1);
5622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5623 if (!SWIG_IsOK(res2)) {
5624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5625 }
5626 arg2 = reinterpret_cast< wxPen * >(argp2);
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5635 }
5636 return resultobj;
5637fail:
5638 return NULL;
5639}
5640
5641
5642SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5643 PyObject *resultobj = 0;
5644 wxPen *arg1 = (wxPen *) 0 ;
5645 wxPen *arg2 = (wxPen *) 0 ;
5646 bool result;
5647 void *argp1 = 0 ;
5648 int res1 = 0 ;
5649 void *argp2 = 0 ;
5650 int res2 = 0 ;
5651 PyObject * obj0 = 0 ;
5652 PyObject * obj1 = 0 ;
5653 char * kwnames[] = {
5654 (char *) "self",(char *) "other", NULL
5655 };
5656
5657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5659 if (!SWIG_IsOK(res1)) {
5660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5661 }
5662 arg1 = reinterpret_cast< wxPen * >(argp1);
5663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5664 if (!SWIG_IsOK(res2)) {
5665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5666 }
5667 arg2 = reinterpret_cast< wxPen * >(argp2);
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 {
5675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5676 }
5677 return resultobj;
5678fail:
5679 return NULL;
5680}
d55e5bfc
RD
5681
5682
1bd55598
RD
5683SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5684 PyObject *obj;
5685 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5686 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5687 return SWIG_Py_Void();
d55e5bfc
RD
5688}
5689
1bd55598
RD
5690SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5691 return SWIG_Python_InitShadowInstance(args);
5692}
d55e5bfc 5693
1bd55598
RD
5694SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5695 PyObject *resultobj = 0;
5696 wxColour *arg1 = 0 ;
5697 int arg2 = (int) wxSOLID ;
5698 wxBrush *result = 0 ;
5699 wxColour temp1 ;
5700 int val2 ;
5701 int ecode2 = 0 ;
5702 PyObject * obj0 = 0 ;
5703 PyObject * obj1 = 0 ;
5704 char * kwnames[] = {
5705 (char *) "colour",(char *) "style", NULL
5706 };
5707
5708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5709 {
5710 arg1 = &temp1;
5711 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5712 }
5713 if (obj1) {
5714 ecode2 = SWIG_AsVal_int(obj1, &val2);
5715 if (!SWIG_IsOK(ecode2)) {
5716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5717 }
5718 arg2 = static_cast< int >(val2);
5719 }
5720 {
5721 if (!wxPyCheckForApp()) SWIG_fail;
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5728 return resultobj;
5729fail:
5730 return NULL;
5731}
5732
5733
5734SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj = 0;
5736 wxBitmap *arg1 = 0 ;
5737 wxBrush *result = 0 ;
5738 void *argp1 = 0 ;
5739 int res1 = 0 ;
5740 PyObject * obj0 = 0 ;
5741 char * kwnames[] = {
5742 (char *) "stippleBitmap", NULL
5743 };
5744
5745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5746 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5747 if (!SWIG_IsOK(res1)) {
5748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5749 }
5750 if (!argp1) {
5751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5752 }
5753 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5754 {
5755 if (!wxPyCheckForApp()) SWIG_fail;
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5758 wxPyEndAllowThreads(__tstate);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 }
5761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5762 return resultobj;
5763fail:
5764 return NULL;
d55e5bfc
RD
5765}
5766
5767
1bd55598
RD
5768SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5769 PyObject *resultobj = 0;
5770 wxBrush *arg1 = (wxBrush *) 0 ;
5771 void *argp1 = 0 ;
5772 int res1 = 0 ;
5773 PyObject *swig_obj[1] ;
5774
5775 if (!args) SWIG_fail;
5776 swig_obj[0] = args;
5777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5780 }
5781 arg1 = reinterpret_cast< wxBrush * >(argp1);
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 delete arg1;
d55e5bfc 5785
1bd55598
RD
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_Py_Void();
5790 return resultobj;
5791fail:
5792 return NULL;
5793}
5794
5795
5796SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj = 0;
5798 wxBrush *arg1 = (wxBrush *) 0 ;
5799 wxColour *arg2 = 0 ;
5800 void *argp1 = 0 ;
5801 int res1 = 0 ;
5802 wxColour temp2 ;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 char * kwnames[] = {
5806 (char *) "self",(char *) "col", NULL
5807 };
5808
5809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5811 if (!SWIG_IsOK(res1)) {
5812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5813 }
5814 arg1 = reinterpret_cast< wxBrush * >(argp1);
5815 {
5816 arg2 = &temp2;
5817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5818 }
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 (arg1)->SetColour((wxColour const &)*arg2);
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_Py_Void();
5826 return resultobj;
5827fail:
5828 return NULL;
5829}
5830
5831
5832SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj = 0;
5834 wxBrush *arg1 = (wxBrush *) 0 ;
5835 int arg2 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 int val2 ;
5839 int ecode2 = 0 ;
5840 PyObject * obj0 = 0 ;
5841 PyObject * obj1 = 0 ;
5842 char * kwnames[] = {
5843 (char *) "self",(char *) "style", NULL
5844 };
5845
5846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5850 }
5851 arg1 = reinterpret_cast< wxBrush * >(argp1);
5852 ecode2 = SWIG_AsVal_int(obj1, &val2);
5853 if (!SWIG_IsOK(ecode2)) {
5854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5855 }
5856 arg2 = static_cast< int >(val2);
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 (arg1)->SetStyle(arg2);
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 resultobj = SWIG_Py_Void();
5864 return resultobj;
5865fail:
5866 return NULL;
5867}
5868
5869
5870SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj = 0;
5872 wxBrush *arg1 = (wxBrush *) 0 ;
5873 wxBitmap *arg2 = 0 ;
5874 void *argp1 = 0 ;
5875 int res1 = 0 ;
5876 void *argp2 = 0 ;
5877 int res2 = 0 ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char * kwnames[] = {
5881 (char *) "self",(char *) "stipple", NULL
5882 };
5883
5884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5888 }
5889 arg1 = reinterpret_cast< wxBrush * >(argp1);
5890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5891 if (!SWIG_IsOK(res2)) {
5892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5893 }
5894 if (!argp2) {
5895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5896 }
5897 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 (arg1)->SetStipple((wxBitmap const &)*arg2);
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 resultobj = SWIG_Py_Void();
5905 return resultobj;
5906fail:
5907 return NULL;
d55e5bfc
RD
5908}
5909
5910
1bd55598
RD
5911SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5912 PyObject *resultobj = 0;
5913 wxBrush *arg1 = (wxBrush *) 0 ;
5914 wxColour result;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 PyObject *swig_obj[1] ;
5918
5919 if (!args) SWIG_fail;
5920 swig_obj[0] = args;
5921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5922 if (!SWIG_IsOK(res1)) {
5923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5924 }
5925 arg1 = reinterpret_cast< wxBrush * >(argp1);
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 result = ((wxBrush const *)arg1)->GetColour();
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5933 return resultobj;
5934fail:
5935 return NULL;
d55e5bfc
RD
5936}
5937
5938
1bd55598
RD
5939SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 PyObject *resultobj = 0;
5941 wxBrush *arg1 = (wxBrush *) 0 ;
5942 int result;
5943 void *argp1 = 0 ;
5944 int res1 = 0 ;
5945 PyObject *swig_obj[1] ;
5946
5947 if (!args) SWIG_fail;
5948 swig_obj[0] = args;
5949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5950 if (!SWIG_IsOK(res1)) {
5951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5952 }
5953 arg1 = reinterpret_cast< wxBrush * >(argp1);
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (int)((wxBrush const *)arg1)->GetStyle();
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_From_int(static_cast< int >(result));
5961 return resultobj;
5962fail:
5963 return NULL;
d55e5bfc
RD
5964}
5965
5966
1bd55598
RD
5967SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5968 PyObject *resultobj = 0;
5969 wxBrush *arg1 = (wxBrush *) 0 ;
5970 wxBitmap *result = 0 ;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 PyObject *swig_obj[1] ;
5974
5975 if (!args) SWIG_fail;
5976 swig_obj[0] = args;
5977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5980 }
5981 arg1 = reinterpret_cast< wxBrush * >(argp1);
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5989 return resultobj;
5990fail:
5991 return NULL;
d55e5bfc
RD
5992}
5993
5994
1bd55598
RD
5995SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 wxBrush *arg1 = (wxBrush *) 0 ;
5998 bool result;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject *swig_obj[1] ;
6002
6003 if (!args) SWIG_fail;
6004 swig_obj[0] = args;
6005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBrush * >(argp1);
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (bool)((wxBrush const *)arg1)->IsHatch();
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 {
6017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6018 }
6019 return resultobj;
6020fail:
6021 return NULL;
d55e5bfc
RD
6022}
6023
6024
b39fe951 6025SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6026 PyObject *resultobj = 0;
6027 wxBrush *arg1 = (wxBrush *) 0 ;
6028 bool result;
6029 void *argp1 = 0 ;
6030 int res1 = 0 ;
6031 PyObject *swig_obj[1] ;
6032
6033 if (!args) SWIG_fail;
6034 swig_obj[0] = args;
6035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6036 if (!SWIG_IsOK(res1)) {
b39fe951 6037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6038 }
6039 arg1 = reinterpret_cast< wxBrush * >(argp1);
6040 {
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6042 result = (bool)(arg1)->IsOk();
1bd55598
RD
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 {
6047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6048 }
6049 return resultobj;
6050fail:
6051 return NULL;
d55e5bfc
RD
6052}
6053
6054
1bd55598
RD
6055SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6056 PyObject *resultobj = 0;
6057 wxBrush *arg1 = (wxBrush *) 0 ;
6058 short result;
6059 void *argp1 = 0 ;
6060 int res1 = 0 ;
6061 PyObject *swig_obj[1] ;
6062
6063 if (!args) SWIG_fail;
6064 swig_obj[0] = args;
6065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6066 if (!SWIG_IsOK(res1)) {
6067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6068 }
6069 arg1 = reinterpret_cast< wxBrush * >(argp1);
6070 {
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (short)(arg1)->MacGetTheme();
6073 wxPyEndAllowThreads(__tstate);
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 resultobj = SWIG_From_short(static_cast< short >(result));
6077 return resultobj;
6078fail:
6079 return NULL;
6080}
6081
6082
6083SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6084 PyObject *resultobj = 0;
6085 wxBrush *arg1 = (wxBrush *) 0 ;
6086 short arg2 ;
6087 void *argp1 = 0 ;
6088 int res1 = 0 ;
6089 short val2 ;
6090 int ecode2 = 0 ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 char * kwnames[] = {
6094 (char *) "self",(char *) "macThemeBrush", NULL
6095 };
6096
6097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6099 if (!SWIG_IsOK(res1)) {
6100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6101 }
6102 arg1 = reinterpret_cast< wxBrush * >(argp1);
6103 ecode2 = SWIG_AsVal_short(obj1, &val2);
6104 if (!SWIG_IsOK(ecode2)) {
6105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6106 }
6107 arg2 = static_cast< short >(val2);
6108 {
6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
6110 (arg1)->MacSetTheme(arg2);
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 resultobj = SWIG_Py_Void();
6115 return resultobj;
6116fail:
6117 return NULL;
d55e5bfc
RD
6118}
6119
6120
1bd55598
RD
6121SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6122 PyObject *obj;
6123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6124 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6125 return SWIG_Py_Void();
d55e5bfc
RD
6126}
6127
1bd55598
RD
6128SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6129 return SWIG_Python_InitShadowInstance(args);
6130}
d55e5bfc 6131
1bd55598
RD
6132SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj = 0;
6134 wxString *arg1 = 0 ;
6135 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6136 wxBitmap *result = 0 ;
6137 bool temp1 = false ;
6138 int val2 ;
6139 int ecode2 = 0 ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 char * kwnames[] = {
6143 (char *) "name",(char *) "type", NULL
6144 };
6145
6146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6147 {
6148 arg1 = wxString_in_helper(obj0);
6149 if (arg1 == NULL) SWIG_fail;
6150 temp1 = true;
6151 }
6152 if (obj1) {
6153 ecode2 = SWIG_AsVal_int(obj1, &val2);
6154 if (!SWIG_IsOK(ecode2)) {
6155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6156 }
6157 arg2 = static_cast< wxBitmapType >(val2);
6158 }
6159 {
6160 if (!wxPyCheckForApp()) SWIG_fail;
6161 PyThreadState* __tstate = wxPyBeginAllowThreads();
6162 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6163 wxPyEndAllowThreads(__tstate);
6164 if (PyErr_Occurred()) SWIG_fail;
6165 }
6166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6167 {
6168 if (temp1)
6169 delete arg1;
6170 }
6171 return resultobj;
6172fail:
6173 {
6174 if (temp1)
6175 delete arg1;
6176 }
6177 return NULL;
d55e5bfc
RD
6178}
6179
6180
1bd55598
RD
6181SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6182 PyObject *resultobj = 0;
6183 wxBitmap *arg1 = (wxBitmap *) 0 ;
6184 void *argp1 = 0 ;
6185 int res1 = 0 ;
6186 PyObject *swig_obj[1] ;
6187
6188 if (!args) SWIG_fail;
6189 swig_obj[0] = args;
6190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6191 if (!SWIG_IsOK(res1)) {
6192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6193 }
6194 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6195 {
1bd55598 6196 delete arg1;
d55e5bfc 6197
1bd55598
RD
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 resultobj = SWIG_Py_Void();
6201 return resultobj;
6202fail:
6203 return NULL;
6204}
6205
6206
6207SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6208 PyObject *resultobj = 0;
6209 int arg1 ;
6210 int arg2 ;
6211 int arg3 = (int) -1 ;
6212 wxBitmap *result = 0 ;
6213 int val1 ;
6214 int ecode1 = 0 ;
6215 int val2 ;
6216 int ecode2 = 0 ;
6217 int val3 ;
6218 int ecode3 = 0 ;
6219 PyObject * obj0 = 0 ;
6220 PyObject * obj1 = 0 ;
6221 PyObject * obj2 = 0 ;
6222 char * kwnames[] = {
6223 (char *) "width",(char *) "height",(char *) "depth", NULL
6224 };
6225
6226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6227 ecode1 = SWIG_AsVal_int(obj0, &val1);
6228 if (!SWIG_IsOK(ecode1)) {
6229 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6230 }
6231 arg1 = static_cast< int >(val1);
6232 ecode2 = SWIG_AsVal_int(obj1, &val2);
6233 if (!SWIG_IsOK(ecode2)) {
6234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6235 }
6236 arg2 = static_cast< int >(val2);
6237 if (obj2) {
6238 ecode3 = SWIG_AsVal_int(obj2, &val3);
6239 if (!SWIG_IsOK(ecode3)) {
6240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6241 }
6242 arg3 = static_cast< int >(val3);
6243 }
6244 {
6245 if (!wxPyCheckForApp()) SWIG_fail;
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6252 return resultobj;
6253fail:
6254 return NULL;
6255}
6256
6257
6258SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj = 0;
6260 wxIcon *arg1 = 0 ;
6261 wxBitmap *result = 0 ;
6262 void *argp1 = 0 ;
6263 int res1 = 0 ;
6264 PyObject * obj0 = 0 ;
6265 char * kwnames[] = {
6266 (char *) "icon", NULL
6267 };
6268
6269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6270 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6273 }
6274 if (!argp1) {
6275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6276 }
6277 arg1 = reinterpret_cast< wxIcon * >(argp1);
6278 {
6279 if (!wxPyCheckForApp()) SWIG_fail;
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6286 return resultobj;
6287fail:
6288 return NULL;
6289}
6290
6291
6292SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj = 0;
6294 wxImage *arg1 = 0 ;
6295 int arg2 = (int) -1 ;
6296 wxBitmap *result = 0 ;
6297 void *argp1 = 0 ;
6298 int res1 = 0 ;
6299 int val2 ;
6300 int ecode2 = 0 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
6303 char * kwnames[] = {
6304 (char *) "image",(char *) "depth", NULL
6305 };
6306
6307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6308 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6309 if (!SWIG_IsOK(res1)) {
6310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6311 }
6312 if (!argp1) {
6313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6314 }
6315 arg1 = reinterpret_cast< wxImage * >(argp1);
6316 if (obj1) {
6317 ecode2 = SWIG_AsVal_int(obj1, &val2);
6318 if (!SWIG_IsOK(ecode2)) {
6319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6320 }
6321 arg2 = static_cast< int >(val2);
6322 }
6323 {
6324 if (!wxPyCheckForApp()) SWIG_fail;
6325 PyThreadState* __tstate = wxPyBeginAllowThreads();
6326 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6331 return resultobj;
6332fail:
6333 return NULL;
d55e5bfc
RD
6334}
6335
6336
1bd55598
RD
6337SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj = 0;
6339 PyObject *arg1 = (PyObject *) 0 ;
6340 wxBitmap *result = 0 ;
6341 PyObject * obj0 = 0 ;
6342 char * kwnames[] = {
6343 (char *) "listOfStrings", NULL
6344 };
6345
6346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6347 arg1 = obj0;
6348 {
6349 if (!wxPyCheckForApp()) SWIG_fail;
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 result = (wxBitmap *)new_wxBitmap(arg1);
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6356 return resultobj;
6357fail:
6358 return NULL;
6359}
6360
6361
6362SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 PyObject *arg1 = (PyObject *) 0 ;
6365 int arg2 ;
6366 int arg3 ;
6367 int arg4 = (int) 1 ;
6368 wxBitmap *result = 0 ;
6369 int val2 ;
6370 int ecode2 = 0 ;
6371 int val3 ;
6372 int ecode3 = 0 ;
6373 int val4 ;
6374 int ecode4 = 0 ;
6375 PyObject * obj0 = 0 ;
6376 PyObject * obj1 = 0 ;
6377 PyObject * obj2 = 0 ;
6378 PyObject * obj3 = 0 ;
6379 char * kwnames[] = {
6380 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6381 };
6382
6383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6384 arg1 = obj0;
6385 ecode2 = SWIG_AsVal_int(obj1, &val2);
6386 if (!SWIG_IsOK(ecode2)) {
6387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6388 }
6389 arg2 = static_cast< int >(val2);
6390 ecode3 = SWIG_AsVal_int(obj2, &val3);
6391 if (!SWIG_IsOK(ecode3)) {
6392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6393 }
6394 arg3 = static_cast< int >(val3);
6395 if (obj3) {
6396 ecode4 = SWIG_AsVal_int(obj3, &val4);
6397 if (!SWIG_IsOK(ecode4)) {
6398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6399 }
6400 arg4 = static_cast< int >(val4);
6401 }
6402 {
6403 if (!wxPyCheckForApp()) SWIG_fail;
6404 PyThreadState* __tstate = wxPyBeginAllowThreads();
6405 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6406 wxPyEndAllowThreads(__tstate);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6410 return resultobj;
6411fail:
6412 return NULL;
d55e5bfc
RD
6413}
6414
6415
b39fe951 6416SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6417 PyObject *resultobj = 0;
6418 wxBitmap *arg1 = (wxBitmap *) 0 ;
6419 bool result;
6420 void *argp1 = 0 ;
6421 int res1 = 0 ;
6422 PyObject *swig_obj[1] ;
6423
6424 if (!args) SWIG_fail;
6425 swig_obj[0] = args;
6426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6427 if (!SWIG_IsOK(res1)) {
b39fe951 6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6429 }
6430 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6431 {
b39fe951 6432 result = (bool)(arg1)->IsOk();
1bd55598
RD
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 {
6436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6437 }
6438 return resultobj;
6439fail:
6440 return NULL;
d55e5bfc
RD
6441}
6442
6443
1bd55598
RD
6444SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6445 PyObject *resultobj = 0;
6446 wxBitmap *arg1 = (wxBitmap *) 0 ;
6447 int result;
6448 void *argp1 = 0 ;
6449 int res1 = 0 ;
6450 PyObject *swig_obj[1] ;
6451
6452 if (!args) SWIG_fail;
6453 swig_obj[0] = args;
6454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6455 if (!SWIG_IsOK(res1)) {
6456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6457 }
6458 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6459 {
1bd55598 6460 result = (int)(arg1)->GetWidth();
1bd55598
RD
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_From_int(static_cast< int >(result));
6464 return resultobj;
6465fail:
6466 return NULL;
070c48b4
RD
6467}
6468
6469
1bd55598
RD
6470SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxBitmap *arg1 = (wxBitmap *) 0 ;
6473 int result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6483 }
6484 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6485 {
1bd55598 6486 result = (int)(arg1)->GetHeight();
1bd55598
RD
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_From_int(static_cast< int >(result));
6490 return resultobj;
6491fail:
6492 return NULL;
d55e5bfc
RD
6493}
6494
6495
1bd55598
RD
6496SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497 PyObject *resultobj = 0;
6498 wxBitmap *arg1 = (wxBitmap *) 0 ;
6499 int result;
6500 void *argp1 = 0 ;
6501 int res1 = 0 ;
6502 PyObject *swig_obj[1] ;
6503
6504 if (!args) SWIG_fail;
6505 swig_obj[0] = args;
6506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 {
1bd55598 6512 result = (int)(arg1)->GetDepth();
1bd55598
RD
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 resultobj = SWIG_From_int(static_cast< int >(result));
6516 return resultobj;
6517fail:
6518 return NULL;
d55e5bfc
RD
6519}
6520
6521
1bd55598
RD
6522SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6523 PyObject *resultobj = 0;
6524 wxBitmap *arg1 = (wxBitmap *) 0 ;
6525 wxSize result;
6526 void *argp1 = 0 ;
6527 int res1 = 0 ;
6528 PyObject *swig_obj[1] ;
6529
6530 if (!args) SWIG_fail;
6531 swig_obj[0] = args;
6532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6533 if (!SWIG_IsOK(res1)) {
6534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6535 }
6536 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6537 {
1bd55598 6538 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6542 return resultobj;
6543fail:
6544 return NULL;
d55e5bfc
RD
6545}
6546
6547
1bd55598
RD
6548SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6549 PyObject *resultobj = 0;
6550 wxBitmap *arg1 = (wxBitmap *) 0 ;
6551 SwigValueWrapper<wxImage > result;
6552 void *argp1 = 0 ;
6553 int res1 = 0 ;
6554 PyObject *swig_obj[1] ;
6555
6556 if (!args) SWIG_fail;
6557 swig_obj[0] = args;
6558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6559 if (!SWIG_IsOK(res1)) {
6560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6561 }
6562 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6563 {
1bd55598 6564 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6565 if (PyErr_Occurred()) SWIG_fail;
6566 }
6567 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6568 return resultobj;
6569fail:
6570 return NULL;
d55e5bfc
RD
6571}
6572
6573
1bd55598
RD
6574SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6575 PyObject *resultobj = 0;
6576 wxBitmap *arg1 = (wxBitmap *) 0 ;
6577 wxMask *result = 0 ;
6578 void *argp1 = 0 ;
6579 int res1 = 0 ;
6580 PyObject *swig_obj[1] ;
6581
6582 if (!args) SWIG_fail;
6583 swig_obj[0] = args;
6584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6585 if (!SWIG_IsOK(res1)) {
6586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6587 }
6588 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6589 {
1bd55598 6590 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6594 return resultobj;
6595fail:
6596 return NULL;
6597}
6598
6599
6600SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj = 0;
6602 wxBitmap *arg1 = (wxBitmap *) 0 ;
6603 wxMask *arg2 = (wxMask *) 0 ;
6604 void *argp1 = 0 ;
6605 int res1 = 0 ;
6606 int res2 = 0 ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 char * kwnames[] = {
6610 (char *) "self",(char *) "mask", NULL
6611 };
6612
6613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6615 if (!SWIG_IsOK(res1)) {
6616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6617 }
6618 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6619 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6620 if (!SWIG_IsOK(res2)) {
6621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6622 }
6623 {
1bd55598 6624 (arg1)->SetMask(arg2);
1bd55598
RD
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_Py_Void();
6628 return resultobj;
6629fail:
6630 return NULL;
6631}
6632
6633
6634SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj = 0;
6636 wxBitmap *arg1 = (wxBitmap *) 0 ;
6637 wxColour *arg2 = 0 ;
6638 void *argp1 = 0 ;
6639 int res1 = 0 ;
6640 wxColour temp2 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "colour", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 {
6654 arg2 = &temp2;
6655 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6656 }
6657 {
1bd55598 6658 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 resultobj = SWIG_Py_Void();
6662 return resultobj;
6663fail:
6664 return NULL;
6665}
6666
6667
6668SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj = 0;
6670 wxBitmap *arg1 = (wxBitmap *) 0 ;
6671 wxRect *arg2 = 0 ;
6672 SwigValueWrapper<wxBitmap > result;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 wxRect temp2 ;
6676 PyObject * obj0 = 0 ;
6677 PyObject * obj1 = 0 ;
6678 char * kwnames[] = {
6679 (char *) "self",(char *) "rect", NULL
6680 };
6681
6682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6684 if (!SWIG_IsOK(res1)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6686 }
6687 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6688 {
6689 arg2 = &temp2;
6690 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6691 }
6692 {
1bd55598 6693 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6697 return resultobj;
6698fail:
6699 return NULL;
6700}
6701
6702
6703SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj = 0;
6705 wxBitmap *arg1 = (wxBitmap *) 0 ;
6706 wxString *arg2 = 0 ;
6707 wxBitmapType arg3 ;
6708 wxPalette *arg4 = (wxPalette *) NULL ;
6709 bool result;
6710 void *argp1 = 0 ;
6711 int res1 = 0 ;
6712 bool temp2 = false ;
6713 int val3 ;
6714 int ecode3 = 0 ;
6715 void *argp4 = 0 ;
6716 int res4 = 0 ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 PyObject * obj2 = 0 ;
6720 PyObject * obj3 = 0 ;
6721 char * kwnames[] = {
6722 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6723 };
6724
6725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6727 if (!SWIG_IsOK(res1)) {
6728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6729 }
6730 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6731 {
6732 arg2 = wxString_in_helper(obj1);
6733 if (arg2 == NULL) SWIG_fail;
6734 temp2 = true;
6735 }
6736 ecode3 = SWIG_AsVal_int(obj2, &val3);
6737 if (!SWIG_IsOK(ecode3)) {
6738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6739 }
6740 arg3 = static_cast< wxBitmapType >(val3);
6741 if (obj3) {
6742 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6743 if (!SWIG_IsOK(res4)) {
6744 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6745 }
1bd55598
RD
6746 arg4 = reinterpret_cast< wxPalette * >(argp4);
6747 }
6748 {
1bd55598 6749 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 {
6753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6754 }
6755 {
6756 if (temp2)
6757 delete arg2;
6758 }
6759 return resultobj;
6760fail:
6761 {
6762 if (temp2)
6763 delete arg2;
6764 }
6765 return NULL;
6766}
6767
6768
6769SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6770 PyObject *resultobj = 0;
6771 wxBitmap *arg1 = (wxBitmap *) 0 ;
6772 wxString *arg2 = 0 ;
6773 wxBitmapType arg3 ;
6774 bool result;
6775 void *argp1 = 0 ;
6776 int res1 = 0 ;
6777 bool temp2 = false ;
6778 int val3 ;
6779 int ecode3 = 0 ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 PyObject * obj2 = 0 ;
6783 char * kwnames[] = {
6784 (char *) "self",(char *) "name",(char *) "type", NULL
6785 };
6786
6787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6789 if (!SWIG_IsOK(res1)) {
6790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6791 }
6792 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6793 {
6794 arg2 = wxString_in_helper(obj1);
6795 if (arg2 == NULL) SWIG_fail;
6796 temp2 = true;
6797 }
6798 ecode3 = SWIG_AsVal_int(obj2, &val3);
6799 if (!SWIG_IsOK(ecode3)) {
6800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6801 }
6802 arg3 = static_cast< wxBitmapType >(val3);
6803 {
1bd55598 6804 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6805 if (PyErr_Occurred()) SWIG_fail;
6806 }
6807 {
6808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6809 }
6810 {
6811 if (temp2)
6812 delete arg2;
6813 }
6814 return resultobj;
6815fail:
6816 {
6817 if (temp2)
6818 delete arg2;
6819 }
6820 return NULL;
d04418a7
RD
6821}
6822
6823
1bd55598
RD
6824SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6825 PyObject *resultobj = 0;
6826 wxBitmap *arg1 = (wxBitmap *) 0 ;
6827 wxPalette *result = 0 ;
6828 void *argp1 = 0 ;
6829 int res1 = 0 ;
6830 PyObject *swig_obj[1] ;
6831
6832 if (!args) SWIG_fail;
6833 swig_obj[0] = args;
6834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6835 if (!SWIG_IsOK(res1)) {
6836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6837 }
6838 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6839 {
1bd55598 6840 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
6843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6844 return resultobj;
6845fail:
6846 return NULL;
6847}
6848
6849
6850SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj = 0;
6852 wxBitmap *arg1 = (wxBitmap *) 0 ;
6853 wxIcon *arg2 = 0 ;
6854 bool result;
6855 void *argp1 = 0 ;
6856 int res1 = 0 ;
6857 void *argp2 = 0 ;
6858 int res2 = 0 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 char * kwnames[] = {
6862 (char *) "self",(char *) "icon", NULL
6863 };
6864
6865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6867 if (!SWIG_IsOK(res1)) {
6868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6869 }
6870 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6872 if (!SWIG_IsOK(res2)) {
6873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6874 }
6875 if (!argp2) {
6876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6877 }
6878 arg2 = reinterpret_cast< wxIcon * >(argp2);
6879 {
1bd55598 6880 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 {
6884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6885 }
6886 return resultobj;
6887fail:
6888 return NULL;
6889}
6890
6891
6892SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = 0;
6894 wxBitmap *arg1 = (wxBitmap *) 0 ;
6895 int arg2 ;
6896 void *argp1 = 0 ;
6897 int res1 = 0 ;
6898 int val2 ;
6899 int ecode2 = 0 ;
6900 PyObject * obj0 = 0 ;
6901 PyObject * obj1 = 0 ;
6902 char * kwnames[] = {
6903 (char *) "self",(char *) "height", NULL
6904 };
6905
6906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6908 if (!SWIG_IsOK(res1)) {
6909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6910 }
6911 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6912 ecode2 = SWIG_AsVal_int(obj1, &val2);
6913 if (!SWIG_IsOK(ecode2)) {
6914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6915 }
6916 arg2 = static_cast< int >(val2);
6917 {
1bd55598 6918 (arg1)->SetHeight(arg2);
1bd55598
RD
6919 if (PyErr_Occurred()) SWIG_fail;
6920 }
6921 resultobj = SWIG_Py_Void();
6922 return resultobj;
6923fail:
6924 return NULL;
6925}
6926
6927
6928SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6929 PyObject *resultobj = 0;
6930 wxBitmap *arg1 = (wxBitmap *) 0 ;
6931 int arg2 ;
6932 void *argp1 = 0 ;
6933 int res1 = 0 ;
6934 int val2 ;
6935 int ecode2 = 0 ;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 char * kwnames[] = {
6939 (char *) "self",(char *) "width", NULL
6940 };
6941
6942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6944 if (!SWIG_IsOK(res1)) {
6945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6946 }
6947 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6948 ecode2 = SWIG_AsVal_int(obj1, &val2);
6949 if (!SWIG_IsOK(ecode2)) {
6950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6951 }
6952 arg2 = static_cast< int >(val2);
6953 {
1bd55598 6954 (arg1)->SetWidth(arg2);
1bd55598
RD
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_Py_Void();
6958 return resultobj;
6959fail:
6960 return NULL;
6961}
6962
6963
6964SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 wxBitmap *arg1 = (wxBitmap *) 0 ;
6967 int arg2 ;
6968 void *argp1 = 0 ;
6969 int res1 = 0 ;
6970 int val2 ;
6971 int ecode2 = 0 ;
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char * kwnames[] = {
6975 (char *) "self",(char *) "depth", NULL
6976 };
6977
6978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6980 if (!SWIG_IsOK(res1)) {
6981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6982 }
6983 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6984 ecode2 = SWIG_AsVal_int(obj1, &val2);
6985 if (!SWIG_IsOK(ecode2)) {
6986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6987 }
6988 arg2 = static_cast< int >(val2);
6989 {
1bd55598 6990 (arg1)->SetDepth(arg2);
1bd55598
RD
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_Py_Void();
6994 return resultobj;
6995fail:
6996 return NULL;
6997}
6998
6999
7000SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj = 0;
7002 wxBitmap *arg1 = (wxBitmap *) 0 ;
7003 wxSize *arg2 = 0 ;
7004 void *argp1 = 0 ;
7005 int res1 = 0 ;
7006 wxSize temp2 ;
7007 PyObject * obj0 = 0 ;
7008 PyObject * obj1 = 0 ;
7009 char * kwnames[] = {
7010 (char *) "self",(char *) "size", NULL
7011 };
7012
7013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7015 if (!SWIG_IsOK(res1)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7017 }
7018 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7019 {
7020 arg2 = &temp2;
7021 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7022 }
7023 {
1bd55598 7024 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 resultobj = SWIG_Py_Void();
7028 return resultobj;
7029fail:
7030 return NULL;
7031}
7032
7033
8f514ab4
RD
7034SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj = 0;
7036 wxBitmap *arg1 = (wxBitmap *) 0 ;
7037 buffer arg2 ;
7038 int arg3 ;
7039 void *argp1 = 0 ;
7040 int res1 = 0 ;
7041 Py_ssize_t temp2 ;
7042 PyObject * obj0 = 0 ;
7043 PyObject * obj1 = 0 ;
7044 char * kwnames[] = {
7045 (char *) "self",(char *) "data", NULL
7046 };
7047
7048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7050 if (!SWIG_IsOK(res1)) {
7051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7052 }
7053 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7054 {
7055 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7056 arg3 = (int)temp2;
7057 }
7058 {
7059 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 resultobj = SWIG_Py_Void();
7063 return resultobj;
7064fail:
7065 return NULL;
7066}
7067
7068
7069SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7070 PyObject *resultobj = 0;
7071 wxBitmap *arg1 = (wxBitmap *) 0 ;
7072 buffer arg2 ;
7073 int arg3 ;
7074 void *argp1 = 0 ;
7075 int res1 = 0 ;
7076 Py_ssize_t temp2 ;
7077 PyObject * obj0 = 0 ;
7078 PyObject * obj1 = 0 ;
7079 char * kwnames[] = {
7080 (char *) "self",(char *) "data", NULL
7081 };
7082
7083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7085 if (!SWIG_IsOK(res1)) {
7086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7087 }
7088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7089 {
7090 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7091 arg3 = (int)temp2;
7092 }
7093 {
7094 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 resultobj = SWIG_Py_Void();
7098 return resultobj;
7099fail:
7100 return NULL;
7101}
7102
7103
1bd55598
RD
7104SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj = 0;
7106 wxBitmap *arg1 = (wxBitmap *) 0 ;
7107 wxBitmap *arg2 = (wxBitmap *) 0 ;
7108 bool result;
7109 void *argp1 = 0 ;
7110 int res1 = 0 ;
7111 void *argp2 = 0 ;
7112 int res2 = 0 ;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7115 char * kwnames[] = {
7116 (char *) "self",(char *) "other", NULL
7117 };
7118
7119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7121 if (!SWIG_IsOK(res1)) {
7122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7123 }
7124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7126 if (!SWIG_IsOK(res2)) {
7127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7128 }
7129 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7130 {
1bd55598 7131 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 {
fc46b7f3
RD
7135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7136 }
7137 return resultobj;
7138fail:
7139 return NULL;
7140}
7141
7142
7143SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7144 PyObject *resultobj = 0;
7145 wxBitmap *arg1 = (wxBitmap *) 0 ;
7146 wxBitmap *arg2 = (wxBitmap *) 0 ;
7147 bool result;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 void *argp2 = 0 ;
7151 int res2 = 0 ;
7152 PyObject * obj0 = 0 ;
7153 PyObject * obj1 = 0 ;
7154 char * kwnames[] = {
7155 (char *) "self",(char *) "other", NULL
7156 };
7157
7158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7162 }
7163 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7165 if (!SWIG_IsOK(res2)) {
7166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7167 }
7168 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7169 {
7170 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7175 }
7176 return resultobj;
7177fail:
7178 return NULL;
7179}
7180
7181
7182SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7183 PyObject *obj;
7184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7185 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7186 return SWIG_Py_Void();
7187}
7188
7189SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7190 return SWIG_Python_InitShadowInstance(args);
7191}
7192
7193SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7194 PyObject *resultobj = 0;
7195 int arg1 ;
7196 int arg2 ;
7197 buffer arg3 ;
7198 int arg4 ;
7199 buffer arg5 ;
7200 int arg6 ;
7201 wxBitmap *result = 0 ;
7202 int val1 ;
7203 int ecode1 = 0 ;
7204 int val2 ;
7205 int ecode2 = 0 ;
8c9c423b
RD
7206 Py_ssize_t temp3 ;
7207 Py_ssize_t temp5 ;
fc46b7f3
RD
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 PyObject * obj2 = 0 ;
7211 PyObject * obj3 = 0 ;
7212 char * kwnames[] = {
7213 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7214 };
7215
7216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7217 ecode1 = SWIG_AsVal_int(obj0, &val1);
7218 if (!SWIG_IsOK(ecode1)) {
7219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7220 }
7221 arg1 = static_cast< int >(val1);
7222 ecode2 = SWIG_AsVal_int(obj1, &val2);
7223 if (!SWIG_IsOK(ecode2)) {
7224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7225 }
7226 arg2 = static_cast< int >(val2);
7227 {
8c9c423b
RD
7228 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7229 arg4 = (int)temp3;
fc46b7f3
RD
7230 }
7231 {
7232 if (obj3 != Py_None) {
8c9c423b
RD
7233 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7234 arg6 = (int)temp5;
fc46b7f3
RD
7235 }
7236 }
7237 {
7238 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7242 return resultobj;
7243fail:
7244 return NULL;
7245}
7246
7247
7248SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj = 0;
7250 int arg1 ;
7251 int arg2 ;
7252 buffer arg3 ;
7253 int arg4 ;
7254 wxBitmap *result = 0 ;
7255 int val1 ;
7256 int ecode1 = 0 ;
7257 int val2 ;
7258 int ecode2 = 0 ;
8c9c423b 7259 Py_ssize_t temp3 ;
fc46b7f3
RD
7260 PyObject * obj0 = 0 ;
7261 PyObject * obj1 = 0 ;
7262 PyObject * obj2 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "width",(char *) "height",(char *) "data", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7268 ecode1 = SWIG_AsVal_int(obj0, &val1);
7269 if (!SWIG_IsOK(ecode1)) {
7270 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7271 }
7272 arg1 = static_cast< int >(val1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
8c9c423b
RD
7279 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7280 arg4 = (int)temp3;
fc46b7f3
RD
7281 }
7282 {
7283 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7287 return resultobj;
7288fail:
7289 return NULL;
7290}
7291
7292
7293SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj = 0;
7295 int arg1 ;
7296 int arg2 ;
7297 buffer arg3 ;
7298 int arg4 ;
7299 wxBitmap *result = 0 ;
7300 int val1 ;
7301 int ecode1 = 0 ;
7302 int val2 ;
7303 int ecode2 = 0 ;
8c9c423b 7304 Py_ssize_t temp3 ;
fc46b7f3
RD
7305 PyObject * obj0 = 0 ;
7306 PyObject * obj1 = 0 ;
7307 PyObject * obj2 = 0 ;
7308 char * kwnames[] = {
7309 (char *) "width",(char *) "height",(char *) "data", NULL
7310 };
7311
7312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7313 ecode1 = SWIG_AsVal_int(obj0, &val1);
7314 if (!SWIG_IsOK(ecode1)) {
7315 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7316 }
7317 arg1 = static_cast< int >(val1);
7318 ecode2 = SWIG_AsVal_int(obj1, &val2);
7319 if (!SWIG_IsOK(ecode2)) {
7320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7321 }
7322 arg2 = static_cast< int >(val2);
7323 {
8c9c423b
RD
7324 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7325 arg4 = (int)temp3;
fc46b7f3
RD
7326 }
7327 {
7328 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7332 return resultobj;
7333fail:
7334 return NULL;
7335}
7336
7337
7338SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7339 PyObject *resultobj = 0;
7340 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7341 wxPoint result;
7342 void *argp1 = 0 ;
7343 int res1 = 0 ;
7344 PyObject *swig_obj[1] ;
7345
7346 if (!args) SWIG_fail;
7347 swig_obj[0] = args;
7348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7349 if (!SWIG_IsOK(res1)) {
7350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7351 }
7352 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7353 {
7354 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7358 return resultobj;
7359fail:
7360 return NULL;
7361}
7362
7363
7364SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7365 PyObject *resultobj = 0;
7366 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7367 int result;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370 PyObject *swig_obj[1] ;
7371
7372 if (!args) SWIG_fail;
7373 swig_obj[0] = args;
7374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7375 if (!SWIG_IsOK(res1)) {
7376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7377 }
7378 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7379 {
7380 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = SWIG_From_int(static_cast< int >(result));
7384 return resultobj;
7385fail:
7386 return NULL;
7387}
7388
7389
7390SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7391 PyObject *resultobj = 0;
7392 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7393 int result;
7394 void *argp1 = 0 ;
7395 int res1 = 0 ;
7396 PyObject *swig_obj[1] ;
7397
7398 if (!args) SWIG_fail;
7399 swig_obj[0] = args;
7400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7401 if (!SWIG_IsOK(res1)) {
7402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7403 }
7404 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7405 {
7406 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7407 if (PyErr_Occurred()) SWIG_fail;
7408 }
7409 resultobj = SWIG_From_int(static_cast< int >(result));
7410 return resultobj;
7411fail:
7412 return NULL;
7413}
7414
7415
7416SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7417 PyObject *resultobj = 0;
7418 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7419 wxSize result;
7420 void *argp1 = 0 ;
7421 int res1 = 0 ;
7422 PyObject *swig_obj[1] ;
7423
7424 if (!args) SWIG_fail;
7425 swig_obj[0] = args;
7426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7427 if (!SWIG_IsOK(res1)) {
7428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7429 }
7430 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7431 {
7432 result = ((wxPixelDataBase const *)arg1)->GetSize();
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7436 return resultobj;
7437fail:
7438 return NULL;
7439}
7440
7441
7442SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7443 PyObject *resultobj = 0;
7444 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7445 int result;
7446 void *argp1 = 0 ;
7447 int res1 = 0 ;
7448 PyObject *swig_obj[1] ;
7449
7450 if (!args) SWIG_fail;
7451 swig_obj[0] = args;
7452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7453 if (!SWIG_IsOK(res1)) {
7454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7455 }
7456 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7457 {
7458 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 resultobj = SWIG_From_int(static_cast< int >(result));
7462 return resultobj;
7463fail:
7464 return NULL;
7465}
7466
7467
7468SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7469 PyObject *obj;
7470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7471 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7472 return SWIG_Py_Void();
7473}
7474
7475SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7476 PyObject *resultobj = 0;
7477 wxBitmap *arg1 = 0 ;
7478 wxNativePixelData *result = 0 ;
7479 void *argp1 = 0 ;
7480 int res1 = 0 ;
7481
7482 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7484 if (!SWIG_IsOK(res1)) {
7485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7486 }
7487 if (!argp1) {
7488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7489 }
7490 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7491 {
7492 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7496 return resultobj;
7497fail:
7498 return NULL;
7499}
7500
7501
7502SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7503 PyObject *resultobj = 0;
7504 wxBitmap *arg1 = 0 ;
7505 wxRect *arg2 = 0 ;
7506 wxNativePixelData *result = 0 ;
7507 void *argp1 = 0 ;
7508 int res1 = 0 ;
7509 wxRect temp2 ;
7510
7511 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7513 if (!SWIG_IsOK(res1)) {
7514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7515 }
7516 if (!argp1) {
7517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7518 }
7519 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7520 {
7521 arg2 = &temp2;
7522 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7523 }
7524 {
7525 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7529 return resultobj;
7530fail:
7531 return NULL;
7532}
7533
7534
7535SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7536 PyObject *resultobj = 0;
7537 wxBitmap *arg1 = 0 ;
7538 wxPoint *arg2 = 0 ;
7539 wxSize *arg3 = 0 ;
7540 wxNativePixelData *result = 0 ;
7541 void *argp1 = 0 ;
7542 int res1 = 0 ;
7543 wxPoint temp2 ;
7544 wxSize temp3 ;
7545
7546 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7548 if (!SWIG_IsOK(res1)) {
7549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7550 }
7551 if (!argp1) {
7552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7553 }
7554 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7555 {
7556 arg2 = &temp2;
7557 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7558 }
7559 {
7560 arg3 = &temp3;
7561 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7562 }
7563 {
7564 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7568 return resultobj;
7569fail:
7570 return NULL;
7571}
7572
7573
7574SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7575 int argc;
7576 PyObject *argv[4];
7577
7578 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7579 --argc;
7580 if (argc == 1) {
7581 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7582 }
7583 if (argc == 2) {
7584 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7585 }
7586 if (argc == 3) {
7587 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7588 }
7589
7590fail:
7591 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7592 return NULL;
7593}
7594
7595
7596SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7597 PyObject *resultobj = 0;
7598 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7599 void *argp1 = 0 ;
7600 int res1 = 0 ;
7601 PyObject *swig_obj[1] ;
7602
7603 if (!args) SWIG_fail;
7604 swig_obj[0] = args;
7605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7606 if (!SWIG_IsOK(res1)) {
7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7608 }
7609 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7610 {
7611 delete arg1;
7612
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_Py_Void();
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7623 PyObject *resultobj = 0;
7624 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7625 wxNativePixelData_Accessor result;
7626 void *argp1 = 0 ;
7627 int res1 = 0 ;
7628 PyObject *swig_obj[1] ;
7629
7630 if (!args) SWIG_fail;
7631 swig_obj[0] = args;
7632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7633 if (!SWIG_IsOK(res1)) {
7634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7635 }
7636 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7637 {
7638 result = ((wxNativePixelData const *)arg1)->GetPixels();
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7642 return resultobj;
7643fail:
7644 return NULL;
7645}
7646
7647
7648SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7649 PyObject *resultobj = 0;
7650 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7651 void *argp1 = 0 ;
7652 int res1 = 0 ;
7653 PyObject *swig_obj[1] ;
7654
7655 if (!args) SWIG_fail;
7656 swig_obj[0] = args;
7657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7660 }
7661 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7662 {
7663 (arg1)->UseAlpha();
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_Py_Void();
7667 return resultobj;
7668fail:
7669 return NULL;
7670}
7671
7672
7673SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *resultobj = 0;
7675 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7676 bool result;
7677 void *argp1 = 0 ;
7678 int res1 = 0 ;
7679 PyObject *swig_obj[1] ;
7680
7681 if (!args) SWIG_fail;
7682 swig_obj[0] = args;
7683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7686 }
7687 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7688 {
7689 result = (bool)wxNativePixelData___nonzero__(arg1);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 {
7693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7694 }
7695 return resultobj;
7696fail:
7697 return NULL;
7698}
7699
7700
7701SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7702 PyObject *obj;
7703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7704 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7705 return SWIG_Py_Void();
7706}
7707
7708SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7709 return SWIG_Python_InitShadowInstance(args);
7710}
7711
7712SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7713 PyObject *resultobj = 0;
7714 wxNativePixelData *arg1 = 0 ;
7715 wxNativePixelData_Accessor *result = 0 ;
7716 void *argp1 = 0 ;
7717 int res1 = 0 ;
7718
7719 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7721 if (!SWIG_IsOK(res1)) {
7722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7723 }
7724 if (!argp1) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7726 }
7727 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7728 {
7729 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7733 return resultobj;
7734fail:
7735 return NULL;
7736}
7737
7738
7739SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7740 PyObject *resultobj = 0;
7741 wxBitmap *arg1 = 0 ;
7742 wxNativePixelData *arg2 = 0 ;
7743 wxNativePixelData_Accessor *result = 0 ;
7744 void *argp1 = 0 ;
7745 int res1 = 0 ;
7746 void *argp2 = 0 ;
7747 int res2 = 0 ;
7748
7749 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7751 if (!SWIG_IsOK(res1)) {
7752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7753 }
7754 if (!argp1) {
7755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7756 }
7757 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7758 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7759 if (!SWIG_IsOK(res2)) {
7760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7761 }
7762 if (!argp2) {
7763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7764 }
7765 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7766 {
7767 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7771 return resultobj;
7772fail:
7773 return NULL;
7774}
7775
7776
7777SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7778 PyObject *resultobj = 0;
7779 wxNativePixelData_Accessor *result = 0 ;
7780
7781 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7782 {
7783 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7787 return resultobj;
7788fail:
7789 return NULL;
7790}
7791
7792
7793SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7794 int argc;
7795 PyObject *argv[3];
7796
7797 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7798 --argc;
7799 if (argc == 0) {
7800 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7801 }
7802 if (argc == 1) {
7803 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7804 }
7805 if (argc == 2) {
7806 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7807 }
7808
7809fail:
7810 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7811 return NULL;
7812}
7813
7814
7815SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7816 PyObject *resultobj = 0;
7817 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7818 void *argp1 = 0 ;
7819 int res1 = 0 ;
7820 PyObject *swig_obj[1] ;
7821
7822 if (!args) SWIG_fail;
7823 swig_obj[0] = args;
7824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7825 if (!SWIG_IsOK(res1)) {
7826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7827 }
7828 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7829 {
7830 delete arg1;
7831
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_Py_Void();
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7844 wxNativePixelData *arg2 = 0 ;
7845 void *argp1 = 0 ;
7846 int res1 = 0 ;
7847 void *argp2 = 0 ;
7848 int res2 = 0 ;
7849 PyObject * obj0 = 0 ;
7850 PyObject * obj1 = 0 ;
7851 char * kwnames[] = {
7852 (char *) "self",(char *) "data", NULL
7853 };
7854
7855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7857 if (!SWIG_IsOK(res1)) {
7858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7859 }
7860 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7862 if (!SWIG_IsOK(res2)) {
7863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7864 }
7865 if (!argp2) {
7866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7867 }
7868 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7869 {
7870 (arg1)->Reset((wxNativePixelData const &)*arg2);
7871 if (PyErr_Occurred()) SWIG_fail;
7872 }
7873 resultobj = SWIG_Py_Void();
7874 return resultobj;
7875fail:
7876 return NULL;
7877}
7878
7879
7880SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7881 PyObject *resultobj = 0;
7882 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7883 bool result;
7884 void *argp1 = 0 ;
7885 int res1 = 0 ;
7886 PyObject *swig_obj[1] ;
7887
7888 if (!args) SWIG_fail;
7889 swig_obj[0] = args;
7890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7891 if (!SWIG_IsOK(res1)) {
7892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7893 }
7894 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7895 {
7896 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 {
7900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7901 }
7902 return resultobj;
7903fail:
7904 return NULL;
7905}
7906
7907
7908SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7909 PyObject *resultobj = 0;
7910 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7911 void *argp1 = 0 ;
7912 int res1 = 0 ;
7913 PyObject *swig_obj[1] ;
7914
7915 if (!args) SWIG_fail;
7916 swig_obj[0] = args;
7917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7918 if (!SWIG_IsOK(res1)) {
7919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7920 }
7921 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7922 {
7923 wxNativePixelData_Accessor_nextPixel(arg1);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_Py_Void();
7927 return resultobj;
7928fail:
7929 return NULL;
7930}
7931
7932
7933SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj = 0;
7935 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7936 wxNativePixelData *arg2 = 0 ;
7937 int arg3 ;
7938 int arg4 ;
7939 void *argp1 = 0 ;
7940 int res1 = 0 ;
7941 void *argp2 = 0 ;
7942 int res2 = 0 ;
7943 int val3 ;
7944 int ecode3 = 0 ;
7945 int val4 ;
7946 int ecode4 = 0 ;
7947 PyObject * obj0 = 0 ;
7948 PyObject * obj1 = 0 ;
7949 PyObject * obj2 = 0 ;
7950 PyObject * obj3 = 0 ;
7951 char * kwnames[] = {
7952 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7953 };
7954
7955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7957 if (!SWIG_IsOK(res1)) {
7958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7959 }
7960 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7962 if (!SWIG_IsOK(res2)) {
7963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7964 }
7965 if (!argp2) {
7966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7967 }
7968 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7969 ecode3 = SWIG_AsVal_int(obj2, &val3);
7970 if (!SWIG_IsOK(ecode3)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7972 }
7973 arg3 = static_cast< int >(val3);
7974 ecode4 = SWIG_AsVal_int(obj3, &val4);
7975 if (!SWIG_IsOK(ecode4)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7977 }
7978 arg4 = static_cast< int >(val4);
7979 {
7980 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 resultobj = SWIG_Py_Void();
7984 return resultobj;
7985fail:
7986 return NULL;
7987}
7988
7989
7990SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7991 PyObject *resultobj = 0;
7992 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7993 wxNativePixelData *arg2 = 0 ;
7994 int arg3 ;
7995 void *argp1 = 0 ;
7996 int res1 = 0 ;
7997 void *argp2 = 0 ;
7998 int res2 = 0 ;
7999 int val3 ;
8000 int ecode3 = 0 ;
8001 PyObject * obj0 = 0 ;
8002 PyObject * obj1 = 0 ;
8003 PyObject * obj2 = 0 ;
8004 char * kwnames[] = {
8005 (char *) "self",(char *) "data",(char *) "x", NULL
8006 };
8007
8008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8012 }
8013 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8015 if (!SWIG_IsOK(res2)) {
8016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8017 }
8018 if (!argp2) {
8019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8020 }
8021 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8022 ecode3 = SWIG_AsVal_int(obj2, &val3);
8023 if (!SWIG_IsOK(ecode3)) {
8024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8025 }
8026 arg3 = static_cast< int >(val3);
8027 {
8028 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8029 if (PyErr_Occurred()) SWIG_fail;
8030 }
8031 resultobj = SWIG_Py_Void();
8032 return resultobj;
8033fail:
8034 return NULL;
8035}
8036
8037
8038SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj = 0;
8040 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8041 wxNativePixelData *arg2 = 0 ;
8042 int arg3 ;
8043 void *argp1 = 0 ;
8044 int res1 = 0 ;
8045 void *argp2 = 0 ;
8046 int res2 = 0 ;
8047 int val3 ;
8048 int ecode3 = 0 ;
8049 PyObject * obj0 = 0 ;
8050 PyObject * obj1 = 0 ;
8051 PyObject * obj2 = 0 ;
8052 char * kwnames[] = {
8053 (char *) "self",(char *) "data",(char *) "y", NULL
8054 };
8055
8056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8058 if (!SWIG_IsOK(res1)) {
8059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8060 }
8061 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8063 if (!SWIG_IsOK(res2)) {
8064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8065 }
8066 if (!argp2) {
8067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8068 }
8069 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8070 ecode3 = SWIG_AsVal_int(obj2, &val3);
8071 if (!SWIG_IsOK(ecode3)) {
8072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8073 }
8074 arg3 = static_cast< int >(val3);
8075 {
8076 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_Py_Void();
8080 return resultobj;
8081fail:
8082 return NULL;
8083}
8084
8085
8086SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8087 PyObject *resultobj = 0;
8088 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8089 wxNativePixelData *arg2 = 0 ;
8090 int arg3 ;
8091 int arg4 ;
8092 void *argp1 = 0 ;
8093 int res1 = 0 ;
8094 void *argp2 = 0 ;
8095 int res2 = 0 ;
8096 int val3 ;
8097 int ecode3 = 0 ;
8098 int val4 ;
8099 int ecode4 = 0 ;
8100 PyObject * obj0 = 0 ;
8101 PyObject * obj1 = 0 ;
8102 PyObject * obj2 = 0 ;
8103 PyObject * obj3 = 0 ;
8104 char * kwnames[] = {
8105 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8106 };
8107
8108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8110 if (!SWIG_IsOK(res1)) {
8111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8112 }
8113 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8115 if (!SWIG_IsOK(res2)) {
8116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8117 }
8118 if (!argp2) {
8119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8120 }
8121 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8122 ecode3 = SWIG_AsVal_int(obj2, &val3);
8123 if (!SWIG_IsOK(ecode3)) {
8124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8125 }
8126 arg3 = static_cast< int >(val3);
8127 ecode4 = SWIG_AsVal_int(obj3, &val4);
8128 if (!SWIG_IsOK(ecode4)) {
8129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8130 }
8131 arg4 = static_cast< int >(val4);
8132 {
8133 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 resultobj = SWIG_Py_Void();
8137 return resultobj;
8138fail:
8139 return NULL;
8140}
8141
8142
8143SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj = 0;
8145 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8146 byte arg2 ;
8147 byte arg3 ;
8148 byte arg4 ;
8149 void *argp1 = 0 ;
8150 int res1 = 0 ;
8151 unsigned char val2 ;
8152 int ecode2 = 0 ;
8153 unsigned char val3 ;
8154 int ecode3 = 0 ;
8155 unsigned char val4 ;
8156 int ecode4 = 0 ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 PyObject * obj2 = 0 ;
8160 PyObject * obj3 = 0 ;
8161 char * kwnames[] = {
8162 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8163 };
8164
8165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8167 if (!SWIG_IsOK(res1)) {
8168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8169 }
8170 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8171 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8172 if (!SWIG_IsOK(ecode2)) {
8173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8174 }
8175 arg2 = static_cast< byte >(val2);
8176 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8177 if (!SWIG_IsOK(ecode3)) {
8178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8179 }
8180 arg3 = static_cast< byte >(val3);
8181 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8182 if (!SWIG_IsOK(ecode4)) {
8183 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8184 }
8185 arg4 = static_cast< byte >(val4);
8186 {
8187 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 resultobj = SWIG_Py_Void();
8191 return resultobj;
8192fail:
8193 return NULL;
8194}
8195
8196
8197SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8198 PyObject *resultobj = 0;
8199 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8200 PyObject *result = 0 ;
8201 void *argp1 = 0 ;
8202 int res1 = 0 ;
8203 PyObject *swig_obj[1] ;
8204
8205 if (!args) SWIG_fail;
8206 swig_obj[0] = args;
8207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8208 if (!SWIG_IsOK(res1)) {
8209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8210 }
8211 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8212 {
8213 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = result;
8217 return resultobj;
8218fail:
8219 return NULL;
8220}
8221
8222
8223SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8224 PyObject *obj;
8225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8226 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8227 return SWIG_Py_Void();
8228}
8229
8230SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8231 return SWIG_Python_InitShadowInstance(args);
8232}
8233
8234SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8235 PyObject *resultobj = 0;
8236 wxBitmap *arg1 = 0 ;
8237 wxAlphaPixelData *result = 0 ;
8238 void *argp1 = 0 ;
8239 int res1 = 0 ;
8240
8241 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8243 if (!SWIG_IsOK(res1)) {
8244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8245 }
8246 if (!argp1) {
8247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8248 }
8249 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8250 {
8251 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8255 return resultobj;
8256fail:
8257 return NULL;
8258}
8259
8260
8261SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8262 PyObject *resultobj = 0;
8263 wxBitmap *arg1 = 0 ;
8264 wxRect *arg2 = 0 ;
8265 wxAlphaPixelData *result = 0 ;
8266 void *argp1 = 0 ;
8267 int res1 = 0 ;
8268 wxRect temp2 ;
8269
8270 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8272 if (!SWIG_IsOK(res1)) {
8273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8274 }
8275 if (!argp1) {
8276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8277 }
8278 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8279 {
8280 arg2 = &temp2;
8281 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8282 }
8283 {
8284 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8288 return resultobj;
8289fail:
8290 return NULL;
8291}
8292
8293
8294SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8295 PyObject *resultobj = 0;
8296 wxBitmap *arg1 = 0 ;
8297 wxPoint *arg2 = 0 ;
8298 wxSize *arg3 = 0 ;
8299 wxAlphaPixelData *result = 0 ;
8300 void *argp1 = 0 ;
8301 int res1 = 0 ;
8302 wxPoint temp2 ;
8303 wxSize temp3 ;
8304
8305 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8307 if (!SWIG_IsOK(res1)) {
8308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8309 }
8310 if (!argp1) {
8311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8312 }
8313 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8314 {
8315 arg2 = &temp2;
8316 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8317 }
8318 {
8319 arg3 = &temp3;
8320 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8321 }
8322 {
8323 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8327 return resultobj;
8328fail:
8329 return NULL;
8330}
8331
8332
8333SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8334 int argc;
8335 PyObject *argv[4];
8336
8337 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8338 --argc;
8339 if (argc == 1) {
8340 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8341 }
8342 if (argc == 2) {
8343 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8344 }
8345 if (argc == 3) {
8346 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8347 }
8348
8349fail:
8350 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8351 return NULL;
8352}
8353
8354
8355SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8356 PyObject *resultobj = 0;
8357 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8358 void *argp1 = 0 ;
8359 int res1 = 0 ;
8360 PyObject *swig_obj[1] ;
8361
8362 if (!args) SWIG_fail;
8363 swig_obj[0] = args;
8364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8365 if (!SWIG_IsOK(res1)) {
8366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8367 }
8368 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8369 {
8370 delete arg1;
8371
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_Py_Void();
8375 return resultobj;
8376fail:
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8382 PyObject *resultobj = 0;
8383 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8384 wxAlphaPixelData_Accessor result;
8385 void *argp1 = 0 ;
8386 int res1 = 0 ;
8387 PyObject *swig_obj[1] ;
8388
8389 if (!args) SWIG_fail;
8390 swig_obj[0] = args;
8391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8392 if (!SWIG_IsOK(res1)) {
8393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8394 }
8395 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8396 {
8397 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8398 if (PyErr_Occurred()) SWIG_fail;
8399 }
8400 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8401 return resultobj;
8402fail:
8403 return NULL;
8404}
8405
8406
8407SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8408 PyObject *resultobj = 0;
8409 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8410 void *argp1 = 0 ;
8411 int res1 = 0 ;
8412 PyObject *swig_obj[1] ;
8413
8414 if (!args) SWIG_fail;
8415 swig_obj[0] = args;
8416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8417 if (!SWIG_IsOK(res1)) {
8418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8419 }
8420 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8421 {
8422 (arg1)->UseAlpha();
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_Py_Void();
8426 return resultobj;
8427fail:
8428 return NULL;
8429}
8430
8431
8432SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8433 PyObject *resultobj = 0;
8434 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8435 bool result;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 PyObject *swig_obj[1] ;
8439
8440 if (!args) SWIG_fail;
8441 swig_obj[0] = args;
8442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8443 if (!SWIG_IsOK(res1)) {
8444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8445 }
8446 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8447 {
8448 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 {
8452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8453 }
8454 return resultobj;
8455fail:
8456 return NULL;
8457}
8458
8459
8460SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8461 PyObject *obj;
8462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8463 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8464 return SWIG_Py_Void();
8465}
8466
8467SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8468 return SWIG_Python_InitShadowInstance(args);
8469}
8470
8471SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8472 PyObject *resultobj = 0;
8473 wxAlphaPixelData *arg1 = 0 ;
8474 wxAlphaPixelData_Accessor *result = 0 ;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477
8478 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8480 if (!SWIG_IsOK(res1)) {
8481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8482 }
8483 if (!argp1) {
8484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8485 }
8486 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8487 {
8488 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8492 return resultobj;
8493fail:
8494 return NULL;
8495}
8496
8497
8498SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8499 PyObject *resultobj = 0;
8500 wxBitmap *arg1 = 0 ;
8501 wxAlphaPixelData *arg2 = 0 ;
8502 wxAlphaPixelData_Accessor *result = 0 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 void *argp2 = 0 ;
8506 int res2 = 0 ;
8507
8508 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8512 }
8513 if (!argp1) {
8514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8515 }
8516 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8517 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8518 if (!SWIG_IsOK(res2)) {
8519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8520 }
8521 if (!argp2) {
8522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8523 }
8524 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8525 {
8526 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8530 return resultobj;
8531fail:
8532 return NULL;
8533}
8534
8535
8536SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8537 PyObject *resultobj = 0;
8538 wxAlphaPixelData_Accessor *result = 0 ;
8539
8540 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8541 {
8542 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8543 if (PyErr_Occurred()) SWIG_fail;
8544 }
8545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8546 return resultobj;
8547fail:
8548 return NULL;
8549}
8550
8551
8552SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8553 int argc;
8554 PyObject *argv[3];
8555
8556 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8557 --argc;
8558 if (argc == 0) {
8559 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8560 }
8561 if (argc == 1) {
8562 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8563 }
8564 if (argc == 2) {
8565 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8566 }
8567
8568fail:
8569 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8570 return NULL;
8571}
8572
8573
8574SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8575 PyObject *resultobj = 0;
8576 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8577 void *argp1 = 0 ;
8578 int res1 = 0 ;
8579 PyObject *swig_obj[1] ;
8580
8581 if (!args) SWIG_fail;
8582 swig_obj[0] = args;
8583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8584 if (!SWIG_IsOK(res1)) {
8585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8586 }
8587 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8588 {
8589 delete arg1;
8590
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 resultobj = SWIG_Py_Void();
8594 return resultobj;
8595fail:
8596 return NULL;
8597}
8598
8599
8600SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8601 PyObject *resultobj = 0;
8602 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8603 wxAlphaPixelData *arg2 = 0 ;
8604 void *argp1 = 0 ;
8605 int res1 = 0 ;
8606 void *argp2 = 0 ;
8607 int res2 = 0 ;
8608 PyObject * obj0 = 0 ;
8609 PyObject * obj1 = 0 ;
8610 char * kwnames[] = {
8611 (char *) "self",(char *) "data", NULL
8612 };
8613
8614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8616 if (!SWIG_IsOK(res1)) {
8617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8618 }
8619 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8621 if (!SWIG_IsOK(res2)) {
8622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8623 }
8624 if (!argp2) {
8625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8626 }
8627 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8628 {
8629 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_Py_Void();
8633 return resultobj;
8634fail:
8635 return NULL;
8636}
8637
8638
8639SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8640 PyObject *resultobj = 0;
8641 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8642 bool result;
8643 void *argp1 = 0 ;
8644 int res1 = 0 ;
8645 PyObject *swig_obj[1] ;
8646
8647 if (!args) SWIG_fail;
8648 swig_obj[0] = args;
8649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8650 if (!SWIG_IsOK(res1)) {
8651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8652 }
8653 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8654 {
8655 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 {
8659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8660 }
8661 return resultobj;
8662fail:
8663 return NULL;
8664}
8665
8666
8667SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8668 PyObject *resultobj = 0;
8669 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8670 void *argp1 = 0 ;
8671 int res1 = 0 ;
8672 PyObject *swig_obj[1] ;
8673
8674 if (!args) SWIG_fail;
8675 swig_obj[0] = args;
8676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8677 if (!SWIG_IsOK(res1)) {
8678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8679 }
8680 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8681 {
8682 wxAlphaPixelData_Accessor_nextPixel(arg1);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_Py_Void();
8686 return resultobj;
8687fail:
8688 return NULL;
8689}
8690
8691
8692SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj = 0;
8694 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8695 wxAlphaPixelData *arg2 = 0 ;
8696 int arg3 ;
8697 int arg4 ;
8698 void *argp1 = 0 ;
8699 int res1 = 0 ;
8700 void *argp2 = 0 ;
8701 int res2 = 0 ;
8702 int val3 ;
8703 int ecode3 = 0 ;
8704 int val4 ;
8705 int ecode4 = 0 ;
8706 PyObject * obj0 = 0 ;
8707 PyObject * obj1 = 0 ;
8708 PyObject * obj2 = 0 ;
8709 PyObject * obj3 = 0 ;
8710 char * kwnames[] = {
8711 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8712 };
8713
8714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8716 if (!SWIG_IsOK(res1)) {
8717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8718 }
8719 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8721 if (!SWIG_IsOK(res2)) {
8722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8723 }
8724 if (!argp2) {
8725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8726 }
8727 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8728 ecode3 = SWIG_AsVal_int(obj2, &val3);
8729 if (!SWIG_IsOK(ecode3)) {
8730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8731 }
8732 arg3 = static_cast< int >(val3);
8733 ecode4 = SWIG_AsVal_int(obj3, &val4);
8734 if (!SWIG_IsOK(ecode4)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8736 }
8737 arg4 = static_cast< int >(val4);
8738 {
8739 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 resultobj = SWIG_Py_Void();
8743 return resultobj;
8744fail:
8745 return NULL;
8746}
8747
8748
8749SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj = 0;
8751 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8752 wxAlphaPixelData *arg2 = 0 ;
8753 int arg3 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 void *argp2 = 0 ;
8757 int res2 = 0 ;
8758 int val3 ;
8759 int ecode3 = 0 ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 PyObject * obj2 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "data",(char *) "x", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8771 }
8772 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8774 if (!SWIG_IsOK(res2)) {
8775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8776 }
8777 if (!argp2) {
8778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8779 }
8780 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8781 ecode3 = SWIG_AsVal_int(obj2, &val3);
8782 if (!SWIG_IsOK(ecode3)) {
8783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8784 }
8785 arg3 = static_cast< int >(val3);
8786 {
8787 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 resultobj = SWIG_Py_Void();
8791 return resultobj;
8792fail:
8793 return NULL;
8794}
8795
8796
8797SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj = 0;
8799 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8800 wxAlphaPixelData *arg2 = 0 ;
8801 int arg3 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 void *argp2 = 0 ;
8805 int res2 = 0 ;
8806 int val3 ;
8807 int ecode3 = 0 ;
8808 PyObject * obj0 = 0 ;
8809 PyObject * obj1 = 0 ;
8810 PyObject * obj2 = 0 ;
8811 char * kwnames[] = {
8812 (char *) "self",(char *) "data",(char *) "y", NULL
8813 };
8814
8815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8817 if (!SWIG_IsOK(res1)) {
8818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8819 }
8820 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8822 if (!SWIG_IsOK(res2)) {
8823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8824 }
8825 if (!argp2) {
8826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8827 }
8828 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8829 ecode3 = SWIG_AsVal_int(obj2, &val3);
8830 if (!SWIG_IsOK(ecode3)) {
8831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8832 }
8833 arg3 = static_cast< int >(val3);
8834 {
8835 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 resultobj = SWIG_Py_Void();
8839 return resultobj;
8840fail:
8841 return NULL;
8842}
8843
8844
8845SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj = 0;
8847 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8848 wxAlphaPixelData *arg2 = 0 ;
8849 int arg3 ;
8850 int arg4 ;
8851 void *argp1 = 0 ;
8852 int res1 = 0 ;
8853 void *argp2 = 0 ;
8854 int res2 = 0 ;
8855 int val3 ;
8856 int ecode3 = 0 ;
8857 int val4 ;
8858 int ecode4 = 0 ;
8859 PyObject * obj0 = 0 ;
8860 PyObject * obj1 = 0 ;
8861 PyObject * obj2 = 0 ;
8862 PyObject * obj3 = 0 ;
8863 char * kwnames[] = {
8864 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8865 };
8866
8867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8869 if (!SWIG_IsOK(res1)) {
8870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8871 }
8872 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8874 if (!SWIG_IsOK(res2)) {
8875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8876 }
8877 if (!argp2) {
8878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8879 }
8880 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8881 ecode3 = SWIG_AsVal_int(obj2, &val3);
8882 if (!SWIG_IsOK(ecode3)) {
8883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8884 }
8885 arg3 = static_cast< int >(val3);
8886 ecode4 = SWIG_AsVal_int(obj3, &val4);
8887 if (!SWIG_IsOK(ecode4)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8889 }
8890 arg4 = static_cast< int >(val4);
8891 {
8892 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 }
8895 resultobj = SWIG_Py_Void();
8896 return resultobj;
8897fail:
8898 return NULL;
8899}
8900
8901
8902SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8903 PyObject *resultobj = 0;
8904 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8905 byte arg2 ;
8906 byte arg3 ;
8907 byte arg4 ;
8908 byte arg5 ;
8909 void *argp1 = 0 ;
8910 int res1 = 0 ;
8911 unsigned char val2 ;
8912 int ecode2 = 0 ;
8913 unsigned char val3 ;
8914 int ecode3 = 0 ;
8915 unsigned char val4 ;
8916 int ecode4 = 0 ;
8917 unsigned char val5 ;
8918 int ecode5 = 0 ;
8919 PyObject * obj0 = 0 ;
8920 PyObject * obj1 = 0 ;
8921 PyObject * obj2 = 0 ;
8922 PyObject * obj3 = 0 ;
8923 PyObject * obj4 = 0 ;
8924 char * kwnames[] = {
8925 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8926 };
8927
8928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8930 if (!SWIG_IsOK(res1)) {
8931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8932 }
8933 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8934 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8935 if (!SWIG_IsOK(ecode2)) {
8936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8937 }
8938 arg2 = static_cast< byte >(val2);
8939 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8940 if (!SWIG_IsOK(ecode3)) {
8941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8942 }
8943 arg3 = static_cast< byte >(val3);
8944 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8945 if (!SWIG_IsOK(ecode4)) {
8946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8947 }
8948 arg4 = static_cast< byte >(val4);
8949 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8950 if (!SWIG_IsOK(ecode5)) {
8951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8952 }
8953 arg5 = static_cast< byte >(val5);
8954 {
8955 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8956 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8957 }
fc46b7f3 8958 resultobj = SWIG_Py_Void();
1bd55598
RD
8959 return resultobj;
8960fail:
8961 return NULL;
8962}
8963
8964
fc46b7f3 8965SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8966 PyObject *resultobj = 0;
fc46b7f3
RD
8967 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8968 PyObject *result = 0 ;
1bd55598
RD
8969 void *argp1 = 0 ;
8970 int res1 = 0 ;
fc46b7f3 8971 PyObject *swig_obj[1] ;
1bd55598 8972
fc46b7f3
RD
8973 if (!args) SWIG_fail;
8974 swig_obj[0] = args;
8975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8976 if (!SWIG_IsOK(res1)) {
fc46b7f3 8977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8978 }
fc46b7f3 8979 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8980 {
fc46b7f3 8981 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
fc46b7f3 8984 resultobj = result;
1bd55598
RD
8985 return resultobj;
8986fail:
8987 return NULL;
d55e5bfc
RD
8988}
8989
8990
fc46b7f3 8991SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8992 PyObject *obj;
8993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8994 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8995 return SWIG_Py_Void();
d55e5bfc
RD
8996}
8997
fc46b7f3 8998SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8999 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9000}
9001
1bd55598
RD
9002SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj = 0;
9004 wxBitmap *arg1 = 0 ;
9005 wxColour const &arg2_defvalue = wxNullColour ;
9006 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9007 wxMask *result = 0 ;
9008 void *argp1 = 0 ;
9009 int res1 = 0 ;
9010 wxColour temp2 ;
9011 PyObject * obj0 = 0 ;
9012 PyObject * obj1 = 0 ;
9013 char * kwnames[] = {
9014 (char *) "bitmap",(char *) "colour", NULL
9015 };
9016
9017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9018 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9019 if (!SWIG_IsOK(res1)) {
9020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9021 }
9022 if (!argp1) {
9023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9024 }
9025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9026 if (obj1) {
d55e5bfc 9027 {
1bd55598
RD
9028 arg2 = &temp2;
9029 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9030 }
1bd55598
RD
9031 }
9032 {
9033 if (!wxPyCheckForApp()) SWIG_fail;
9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
9035 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9040 return resultobj;
9041fail:
9042 return NULL;
d55e5bfc
RD
9043}
9044
9045
1bd55598
RD
9046SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9047 PyObject *resultobj = 0;
9048 wxMask *arg1 = (wxMask *) 0 ;
9049 void *argp1 = 0 ;
9050 int res1 = 0 ;
9051 PyObject *swig_obj[1] ;
9052
9053 if (!args) SWIG_fail;
9054 swig_obj[0] = args;
9055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9056 if (!SWIG_IsOK(res1)) {
9057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9058 }
9059 arg1 = reinterpret_cast< wxMask * >(argp1);
9060 {
1bd55598 9061 delete arg1;
d55e5bfc 9062
1bd55598
RD
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = SWIG_Py_Void();
9066 return resultobj;
9067fail:
9068 return NULL;
9069}
9070
9071
9072SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9073 PyObject *obj;
9074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9075 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9076 return SWIG_Py_Void();
9077}
9078
9079SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9080 return SWIG_Python_InitShadowInstance(args);
9081}
9082
9083SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9084 PyObject *resultobj = 0;
9085 wxString *arg1 = 0 ;
9086 wxBitmapType arg2 ;
9087 int arg3 = (int) -1 ;
9088 int arg4 = (int) -1 ;
9089 wxIcon *result = 0 ;
9090 bool temp1 = false ;
9091 int val2 ;
9092 int ecode2 = 0 ;
9093 int val3 ;
9094 int ecode3 = 0 ;
9095 int val4 ;
9096 int ecode4 = 0 ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 PyObject * obj2 = 0 ;
9100 PyObject * obj3 = 0 ;
9101 char * kwnames[] = {
9102 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9103 };
9104
9105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9106 {
9107 arg1 = wxString_in_helper(obj0);
9108 if (arg1 == NULL) SWIG_fail;
9109 temp1 = true;
9110 }
9111 ecode2 = SWIG_AsVal_int(obj1, &val2);
9112 if (!SWIG_IsOK(ecode2)) {
9113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9114 }
9115 arg2 = static_cast< wxBitmapType >(val2);
9116 if (obj2) {
9117 ecode3 = SWIG_AsVal_int(obj2, &val3);
9118 if (!SWIG_IsOK(ecode3)) {
9119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9120 }
9121 arg3 = static_cast< int >(val3);
9122 }
9123 if (obj3) {
9124 ecode4 = SWIG_AsVal_int(obj3, &val4);
9125 if (!SWIG_IsOK(ecode4)) {
9126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9127 }
9128 arg4 = static_cast< int >(val4);
9129 }
9130 {
9131 if (!wxPyCheckForApp()) SWIG_fail;
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9138 {
9139 if (temp1)
9140 delete arg1;
9141 }
9142 return resultobj;
9143fail:
9144 {
9145 if (temp1)
9146 delete arg1;
9147 }
9148 return NULL;
d55e5bfc
RD
9149}
9150
9151
1bd55598
RD
9152SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9153 PyObject *resultobj = 0;
9154 wxIcon *arg1 = (wxIcon *) 0 ;
9155 void *argp1 = 0 ;
9156 int res1 = 0 ;
9157 PyObject *swig_obj[1] ;
9158
9159 if (!args) SWIG_fail;
9160 swig_obj[0] = args;
9161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9162 if (!SWIG_IsOK(res1)) {
9163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9164 }
9165 arg1 = reinterpret_cast< wxIcon * >(argp1);
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 delete arg1;
d55e5bfc 9169
1bd55598
RD
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 resultobj = SWIG_Py_Void();
9174 return resultobj;
9175fail:
9176 return NULL;
d55e5bfc
RD
9177}
9178
9179
1bd55598
RD
9180SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9181 PyObject *resultobj = 0;
9182 wxIcon *result = 0 ;
9183
9184 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9185 {
9186 if (!wxPyCheckForApp()) SWIG_fail;
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (wxIcon *)new wxIcon();
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9193 return resultobj;
9194fail:
9195 return NULL;
9196}
9197
9198
9199SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj = 0;
9201 wxIconLocation *arg1 = 0 ;
9202 wxIcon *result = 0 ;
9203 void *argp1 = 0 ;
9204 int res1 = 0 ;
9205 PyObject * obj0 = 0 ;
9206 char * kwnames[] = {
9207 (char *) "loc", NULL
9208 };
9209
9210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9211 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9212 if (!SWIG_IsOK(res1)) {
9213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9214 }
9215 if (!argp1) {
9216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9217 }
9218 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9219 {
9220 if (!wxPyCheckForApp()) SWIG_fail;
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9223 wxPyEndAllowThreads(__tstate);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
9226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9227 return resultobj;
9228fail:
9229 return NULL;
9230}
9231
9232
9233SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9234 PyObject *resultobj = 0;
9235 wxBitmap *arg1 = 0 ;
9236 wxIcon *result = 0 ;
9237 void *argp1 = 0 ;
9238 int res1 = 0 ;
9239 PyObject * obj0 = 0 ;
9240 char * kwnames[] = {
9241 (char *) "bmp", NULL
9242 };
9243
9244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9245 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9246 if (!SWIG_IsOK(res1)) {
9247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9248 }
9249 if (!argp1) {
9250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9251 }
9252 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9253 {
9254 if (!wxPyCheckForApp()) SWIG_fail;
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9261 return resultobj;
9262fail:
9263 return NULL;
d55e5bfc
RD
9264}
9265
9266
1bd55598
RD
9267SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj = 0;
9269 PyObject *arg1 = (PyObject *) 0 ;
9270 wxIcon *result = 0 ;
9271 PyObject * obj0 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "listOfStrings", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9277 arg1 = obj0;
9278 {
9279 if (!wxPyCheckForApp()) SWIG_fail;
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (wxIcon *)new_wxIcon(arg1);
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9286 return resultobj;
9287fail:
9288 return NULL;
d55e5bfc
RD
9289}
9290
9291
b39fe951 9292SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9293 PyObject *resultobj = 0;
9294 wxIcon *arg1 = (wxIcon *) 0 ;
9295 bool result;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 PyObject *swig_obj[1] ;
9299
9300 if (!args) SWIG_fail;
9301 swig_obj[0] = args;
9302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9303 if (!SWIG_IsOK(res1)) {
b39fe951 9304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9305 }
9306 arg1 = reinterpret_cast< wxIcon * >(argp1);
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9309 result = (bool)(arg1)->IsOk();
1bd55598
RD
9310 wxPyEndAllowThreads(__tstate);
9311 if (PyErr_Occurred()) SWIG_fail;
9312 }
9313 {
9314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9315 }
9316 return resultobj;
9317fail:
9318 return NULL;
d55e5bfc
RD
9319}
9320
9321
1bd55598
RD
9322SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9323 PyObject *resultobj = 0;
9324 wxIcon *arg1 = (wxIcon *) 0 ;
9325 int result;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 PyObject *swig_obj[1] ;
9329
9330 if (!args) SWIG_fail;
9331 swig_obj[0] = args;
9332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9333 if (!SWIG_IsOK(res1)) {
9334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9335 }
9336 arg1 = reinterpret_cast< wxIcon * >(argp1);
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 result = (int)(arg1)->GetWidth();
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_From_int(static_cast< int >(result));
9344 return resultobj;
9345fail:
9346 return NULL;
d55e5bfc
RD
9347}
9348
9349
1bd55598
RD
9350SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9351 PyObject *resultobj = 0;
9352 wxIcon *arg1 = (wxIcon *) 0 ;
9353 int result;
9354 void *argp1 = 0 ;
9355 int res1 = 0 ;
9356 PyObject *swig_obj[1] ;
9357
9358 if (!args) SWIG_fail;
9359 swig_obj[0] = args;
9360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9361 if (!SWIG_IsOK(res1)) {
9362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9363 }
9364 arg1 = reinterpret_cast< wxIcon * >(argp1);
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = (int)(arg1)->GetHeight();
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 resultobj = SWIG_From_int(static_cast< int >(result));
9372 return resultobj;
9373fail:
9374 return NULL;
d55e5bfc
RD
9375}
9376
9377
1bd55598
RD
9378SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9379 PyObject *resultobj = 0;
9380 wxIcon *arg1 = (wxIcon *) 0 ;
9381 int result;
9382 void *argp1 = 0 ;
9383 int res1 = 0 ;
9384 PyObject *swig_obj[1] ;
9385
9386 if (!args) SWIG_fail;
9387 swig_obj[0] = args;
9388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9389 if (!SWIG_IsOK(res1)) {
9390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9391 }
9392 arg1 = reinterpret_cast< wxIcon * >(argp1);
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 result = (int)(arg1)->GetDepth();
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 resultobj = SWIG_From_int(static_cast< int >(result));
9400 return resultobj;
9401fail:
9402 return NULL;
9403}
9404
9405
9406SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj = 0;
9408 wxIcon *arg1 = (wxIcon *) 0 ;
9409 int arg2 ;
9410 void *argp1 = 0 ;
9411 int res1 = 0 ;
9412 int val2 ;
9413 int ecode2 = 0 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 char * kwnames[] = {
9417 (char *) "self",(char *) "w", NULL
9418 };
9419
9420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9424 }
9425 arg1 = reinterpret_cast< wxIcon * >(argp1);
9426 ecode2 = SWIG_AsVal_int(obj1, &val2);
9427 if (!SWIG_IsOK(ecode2)) {
9428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9429 }
9430 arg2 = static_cast< int >(val2);
9431 {
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
9433 (arg1)->SetWidth(arg2);
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 resultobj = SWIG_Py_Void();
9438 return resultobj;
9439fail:
9440 return NULL;
9441}
9442
9443
9444SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj = 0;
9446 wxIcon *arg1 = (wxIcon *) 0 ;
9447 int arg2 ;
9448 void *argp1 = 0 ;
9449 int res1 = 0 ;
9450 int val2 ;
9451 int ecode2 = 0 ;
9452 PyObject * obj0 = 0 ;
9453 PyObject * obj1 = 0 ;
9454 char * kwnames[] = {
9455 (char *) "self",(char *) "h", NULL
9456 };
9457
9458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9460 if (!SWIG_IsOK(res1)) {
9461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9462 }
9463 arg1 = reinterpret_cast< wxIcon * >(argp1);
9464 ecode2 = SWIG_AsVal_int(obj1, &val2);
9465 if (!SWIG_IsOK(ecode2)) {
9466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9467 }
9468 arg2 = static_cast< int >(val2);
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 (arg1)->SetHeight(arg2);
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 resultobj = SWIG_Py_Void();
9476 return resultobj;
9477fail:
9478 return NULL;
9479}
9480
9481
9482SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj = 0;
9484 wxIcon *arg1 = (wxIcon *) 0 ;
9485 int arg2 ;
9486 void *argp1 = 0 ;
9487 int res1 = 0 ;
9488 int val2 ;
9489 int ecode2 = 0 ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 char * kwnames[] = {
9493 (char *) "self",(char *) "d", NULL
9494 };
9495
9496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9498 if (!SWIG_IsOK(res1)) {
9499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9500 }
9501 arg1 = reinterpret_cast< wxIcon * >(argp1);
9502 ecode2 = SWIG_AsVal_int(obj1, &val2);
9503 if (!SWIG_IsOK(ecode2)) {
9504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9505 }
9506 arg2 = static_cast< int >(val2);
9507 {
9508 PyThreadState* __tstate = wxPyBeginAllowThreads();
9509 (arg1)->SetDepth(arg2);
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 resultobj = SWIG_Py_Void();
9514 return resultobj;
9515fail:
9516 return NULL;
9517}
9518
9519
9520SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj = 0;
9522 wxIcon *arg1 = (wxIcon *) 0 ;
9523 wxBitmap *arg2 = 0 ;
9524 void *argp1 = 0 ;
9525 int res1 = 0 ;
9526 void *argp2 = 0 ;
9527 int res2 = 0 ;
9528 PyObject * obj0 = 0 ;
9529 PyObject * obj1 = 0 ;
9530 char * kwnames[] = {
9531 (char *) "self",(char *) "bmp", NULL
9532 };
9533
9534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9536 if (!SWIG_IsOK(res1)) {
9537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9538 }
9539 arg1 = reinterpret_cast< wxIcon * >(argp1);
9540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9541 if (!SWIG_IsOK(res2)) {
9542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9543 }
9544 if (!argp2) {
9545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9546 }
9547 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 resultobj = SWIG_Py_Void();
9555 return resultobj;
9556fail:
9557 return NULL;
d55e5bfc
RD
9558}
9559
9560
1bd55598
RD
9561SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9562 PyObject *obj;
9563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9564 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9565 return SWIG_Py_Void();
d55e5bfc
RD
9566}
9567
1bd55598
RD
9568SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9569 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9570}
9571
1bd55598
RD
9572SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9573 PyObject *resultobj = 0;
9574 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9575 int arg2 = (int) 0 ;
9576 wxIconLocation *result = 0 ;
9577 bool temp1 = false ;
9578 int val2 ;
9579 int ecode2 = 0 ;
9580 PyObject * obj0 = 0 ;
9581 PyObject * obj1 = 0 ;
9582 char * kwnames[] = {
9583 (char *) "filename",(char *) "num", NULL
9584 };
9585
9586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9587 if (obj0) {
d55e5bfc 9588 {
1bd55598
RD
9589 arg1 = wxString_in_helper(obj0);
9590 if (arg1 == NULL) SWIG_fail;
9591 temp1 = true;
d55e5bfc 9592 }
1bd55598
RD
9593 }
9594 if (obj1) {
9595 ecode2 = SWIG_AsVal_int(obj1, &val2);
9596 if (!SWIG_IsOK(ecode2)) {
9597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9598 }
9599 arg2 = static_cast< int >(val2);
9600 }
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9608 {
9609 if (temp1)
9610 delete arg1;
9611 }
9612 return resultobj;
9613fail:
9614 {
9615 if (temp1)
9616 delete arg1;
9617 }
9618 return NULL;
d55e5bfc
RD
9619}
9620
9621
1bd55598
RD
9622SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9623 PyObject *resultobj = 0;
9624 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9625 void *argp1 = 0 ;
9626 int res1 = 0 ;
9627 PyObject *swig_obj[1] ;
9628
9629 if (!args) SWIG_fail;
9630 swig_obj[0] = args;
9631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9632 if (!SWIG_IsOK(res1)) {
9633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9634 }
9635 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 delete arg1;
d55e5bfc 9639
1bd55598
RD
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 resultobj = SWIG_Py_Void();
9644 return resultobj;
9645fail:
9646 return NULL;
d55e5bfc
RD
9647}
9648
9649
1bd55598
RD
9650SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9651 PyObject *resultobj = 0;
9652 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9653 bool result;
9654 void *argp1 = 0 ;
9655 int res1 = 0 ;
9656 PyObject *swig_obj[1] ;
9657
9658 if (!args) SWIG_fail;
9659 swig_obj[0] = args;
9660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9661 if (!SWIG_IsOK(res1)) {
9662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9663 }
9664 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 {
9672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9673 }
9674 return resultobj;
9675fail:
9676 return NULL;
9677}
9678
9679
9680SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9681 PyObject *resultobj = 0;
9682 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9683 wxString *arg2 = 0 ;
9684 void *argp1 = 0 ;
9685 int res1 = 0 ;
9686 bool temp2 = false ;
9687 PyObject * obj0 = 0 ;
9688 PyObject * obj1 = 0 ;
9689 char * kwnames[] = {
9690 (char *) "self",(char *) "filename", NULL
9691 };
9692
9693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9695 if (!SWIG_IsOK(res1)) {
9696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9697 }
9698 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9699 {
9700 arg2 = wxString_in_helper(obj1);
9701 if (arg2 == NULL) SWIG_fail;
9702 temp2 = true;
9703 }
9704 {
9705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9706 (arg1)->SetFileName((wxString const &)*arg2);
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 }
9710 resultobj = SWIG_Py_Void();
9711 {
9712 if (temp2)
9713 delete arg2;
9714 }
9715 return resultobj;
9716fail:
9717 {
9718 if (temp2)
9719 delete arg2;
9720 }
9721 return NULL;
d55e5bfc
RD
9722}
9723
9724
1bd55598
RD
9725SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9726 PyObject *resultobj = 0;
9727 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9728 wxString *result = 0 ;
9729 void *argp1 = 0 ;
9730 int res1 = 0 ;
9731 PyObject *swig_obj[1] ;
9732
9733 if (!args) SWIG_fail;
9734 swig_obj[0] = args;
9735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9736 if (!SWIG_IsOK(res1)) {
9737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9738 }
9739 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9742 {
1bd55598
RD
9743 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9744 result = (wxString *) &_result_ref;
d55e5bfc 9745 }
1bd55598
RD
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 {
9750#if wxUSE_UNICODE
9751 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9752#else
9753 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9754#endif
9755 }
9756 return resultobj;
9757fail:
9758 return NULL;
9759}
9760
9761
9762SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj = 0;
9764 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9765 int arg2 ;
9766 void *argp1 = 0 ;
9767 int res1 = 0 ;
9768 int val2 ;
9769 int ecode2 = 0 ;
9770 PyObject * obj0 = 0 ;
9771 PyObject * obj1 = 0 ;
9772 char * kwnames[] = {
9773 (char *) "self",(char *) "num", NULL
9774 };
9775
9776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9778 if (!SWIG_IsOK(res1)) {
9779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9780 }
9781 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9782 ecode2 = SWIG_AsVal_int(obj1, &val2);
9783 if (!SWIG_IsOK(ecode2)) {
9784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9785 }
9786 arg2 = static_cast< int >(val2);
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 wxIconLocation_SetIndex(arg1,arg2);
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 resultobj = SWIG_Py_Void();
9794 return resultobj;
9795fail:
9796 return NULL;
d55e5bfc
RD
9797}
9798
9799
1bd55598
RD
9800SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9801 PyObject *resultobj = 0;
9802 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9803 int result;
9804 void *argp1 = 0 ;
9805 int res1 = 0 ;
9806 PyObject *swig_obj[1] ;
9807
9808 if (!args) SWIG_fail;
9809 swig_obj[0] = args;
9810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9811 if (!SWIG_IsOK(res1)) {
9812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9813 }
9814 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (int)wxIconLocation_GetIndex(arg1);
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 resultobj = SWIG_From_int(static_cast< int >(result));
9822 return resultobj;
9823fail:
9824 return NULL;
d55e5bfc
RD
9825}
9826
9827
1bd55598
RD
9828SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9829 PyObject *obj;
9830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9831 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9832 return SWIG_Py_Void();
d55e5bfc
RD
9833}
9834
1bd55598
RD
9835SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9836 return SWIG_Python_InitShadowInstance(args);
9837}
d55e5bfc 9838
1bd55598
RD
9839SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 PyObject *resultobj = 0;
9841 wxIconBundle *result = 0 ;
9842
9843 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = (wxIconBundle *)new wxIconBundle();
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9851 return resultobj;
9852fail:
9853 return NULL;
9854}
9855
9856
9857SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9858 PyObject *resultobj = 0;
9859 wxString *arg1 = 0 ;
9860 long arg2 ;
9861 wxIconBundle *result = 0 ;
9862 bool temp1 = false ;
9863 long val2 ;
9864 int ecode2 = 0 ;
9865 PyObject * obj0 = 0 ;
9866 PyObject * obj1 = 0 ;
9867 char * kwnames[] = {
9868 (char *) "file",(char *) "type", NULL
9869 };
9870
9871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9872 {
9873 arg1 = wxString_in_helper(obj0);
9874 if (arg1 == NULL) SWIG_fail;
9875 temp1 = true;
9876 }
9877 ecode2 = SWIG_AsVal_long(obj1, &val2);
9878 if (!SWIG_IsOK(ecode2)) {
9879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9880 }
9881 arg2 = static_cast< long >(val2);
9882 {
9883 PyThreadState* __tstate = wxPyBeginAllowThreads();
9884 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9885 wxPyEndAllowThreads(__tstate);
9886 if (PyErr_Occurred()) SWIG_fail;
9887 }
9888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9889 {
9890 if (temp1)
9891 delete arg1;
9892 }
9893 return resultobj;
9894fail:
9895 {
9896 if (temp1)
9897 delete arg1;
9898 }
9899 return NULL;
d55e5bfc
RD
9900}
9901
9902
1bd55598
RD
9903SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj = 0;
9905 wxIcon *arg1 = 0 ;
9906 wxIconBundle *result = 0 ;
9907 void *argp1 = 0 ;
9908 int res1 = 0 ;
9909 PyObject * obj0 = 0 ;
9910 char * kwnames[] = {
9911 (char *) "icon", NULL
9912 };
9913
9914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9915 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9916 if (!SWIG_IsOK(res1)) {
9917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9918 }
9919 if (!argp1) {
9920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9921 }
9922 arg1 = reinterpret_cast< wxIcon * >(argp1);
9923 {
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9930 return resultobj;
9931fail:
9932 return NULL;
d55e5bfc
RD
9933}
9934
9935
1bd55598
RD
9936SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9937 PyObject *resultobj = 0;
9938 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9939 void *argp1 = 0 ;
9940 int res1 = 0 ;
9941 PyObject *swig_obj[1] ;
9942
9943 if (!args) SWIG_fail;
9944 swig_obj[0] = args;
9945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9946 if (!SWIG_IsOK(res1)) {
9947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9948 }
9949 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 delete arg1;
d55e5bfc 9953
1bd55598
RD
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_Py_Void();
9958 return resultobj;
9959fail:
9960 return NULL;
9961}
9962
9963
9964SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj = 0;
9966 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9967 wxIcon *arg2 = 0 ;
9968 void *argp1 = 0 ;
9969 int res1 = 0 ;
9970 void *argp2 = 0 ;
9971 int res2 = 0 ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 char * kwnames[] = {
9975 (char *) "self",(char *) "icon", NULL
9976 };
9977
9978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9980 if (!SWIG_IsOK(res1)) {
9981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9982 }
9983 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9985 if (!SWIG_IsOK(res2)) {
9986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9987 }
9988 if (!argp2) {
9989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9990 }
9991 arg2 = reinterpret_cast< wxIcon * >(argp2);
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 (arg1)->AddIcon((wxIcon const &)*arg2);
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 resultobj = SWIG_Py_Void();
9999 return resultobj;
10000fail:
10001 return NULL;
10002}
10003
10004
10005SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10006 PyObject *resultobj = 0;
10007 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10008 wxString *arg2 = 0 ;
10009 long arg3 ;
10010 void *argp1 = 0 ;
10011 int res1 = 0 ;
10012 bool temp2 = false ;
10013 long val3 ;
10014 int ecode3 = 0 ;
10015 PyObject * obj0 = 0 ;
10016 PyObject * obj1 = 0 ;
10017 PyObject * obj2 = 0 ;
10018 char * kwnames[] = {
10019 (char *) "self",(char *) "file",(char *) "type", NULL
10020 };
10021
10022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10024 if (!SWIG_IsOK(res1)) {
10025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10026 }
10027 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10028 {
10029 arg2 = wxString_in_helper(obj1);
10030 if (arg2 == NULL) SWIG_fail;
10031 temp2 = true;
10032 }
10033 ecode3 = SWIG_AsVal_long(obj2, &val3);
10034 if (!SWIG_IsOK(ecode3)) {
10035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10036 }
10037 arg3 = static_cast< long >(val3);
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 resultobj = SWIG_Py_Void();
10045 {
10046 if (temp2)
10047 delete arg2;
10048 }
10049 return resultobj;
10050fail:
10051 {
10052 if (temp2)
10053 delete arg2;
10054 }
10055 return NULL;
10056}
10057
10058
10059SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10060 PyObject *resultobj = 0;
10061 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10062 wxSize *arg2 = 0 ;
10063 wxIcon *result = 0 ;
10064 void *argp1 = 0 ;
10065 int res1 = 0 ;
10066 wxSize temp2 ;
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 char * kwnames[] = {
10070 (char *) "self",(char *) "size", NULL
10071 };
10072
10073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10075 if (!SWIG_IsOK(res1)) {
10076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10077 }
10078 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10079 {
10080 arg2 = &temp2;
10081 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10085 {
1bd55598
RD
10086 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10087 result = (wxIcon *) &_result_ref;
d55e5bfc 10088 }
1bd55598
RD
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 {
10093 wxIcon* resultptr = new wxIcon(*result);
10094 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10095 }
10096 return resultobj;
10097fail:
10098 return NULL;
10099}
10100
10101
10102SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10103 PyObject *obj;
10104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10105 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10106 return SWIG_Py_Void();
10107}
10108
10109SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10110 return SWIG_Python_InitShadowInstance(args);
10111}
10112
10113SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10114 PyObject *resultobj = 0;
10115 wxString *arg1 = 0 ;
10116 long arg2 ;
10117 int arg3 = (int) 0 ;
10118 int arg4 = (int) 0 ;
10119 wxCursor *result = 0 ;
10120 bool temp1 = false ;
10121 long val2 ;
10122 int ecode2 = 0 ;
10123 int val3 ;
10124 int ecode3 = 0 ;
10125 int val4 ;
10126 int ecode4 = 0 ;
10127 PyObject * obj0 = 0 ;
10128 PyObject * obj1 = 0 ;
10129 PyObject * obj2 = 0 ;
10130 PyObject * obj3 = 0 ;
10131 char * kwnames[] = {
10132 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10133 };
10134
10135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10136 {
10137 arg1 = wxString_in_helper(obj0);
10138 if (arg1 == NULL) SWIG_fail;
10139 temp1 = true;
10140 }
10141 ecode2 = SWIG_AsVal_long(obj1, &val2);
10142 if (!SWIG_IsOK(ecode2)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10144 }
10145 arg2 = static_cast< long >(val2);
10146 if (obj2) {
10147 ecode3 = SWIG_AsVal_int(obj2, &val3);
10148 if (!SWIG_IsOK(ecode3)) {
10149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10150 }
10151 arg3 = static_cast< int >(val3);
10152 }
10153 if (obj3) {
10154 ecode4 = SWIG_AsVal_int(obj3, &val4);
10155 if (!SWIG_IsOK(ecode4)) {
10156 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10157 }
10158 arg4 = static_cast< int >(val4);
10159 }
10160 {
10161 if (!wxPyCheckForApp()) SWIG_fail;
10162 PyThreadState* __tstate = wxPyBeginAllowThreads();
10163 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10164 wxPyEndAllowThreads(__tstate);
10165 if (PyErr_Occurred()) SWIG_fail;
10166 }
10167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10168 {
10169 if (temp1)
10170 delete arg1;
10171 }
10172 return resultobj;
10173fail:
10174 {
10175 if (temp1)
10176 delete arg1;
10177 }
10178 return NULL;
d55e5bfc
RD
10179}
10180
10181
1bd55598
RD
10182SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10183 PyObject *resultobj = 0;
10184 wxCursor *arg1 = (wxCursor *) 0 ;
10185 void *argp1 = 0 ;
10186 int res1 = 0 ;
10187 PyObject *swig_obj[1] ;
10188
10189 if (!args) SWIG_fail;
10190 swig_obj[0] = args;
10191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10192 if (!SWIG_IsOK(res1)) {
10193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10194 }
10195 arg1 = reinterpret_cast< wxCursor * >(argp1);
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 delete arg1;
d55e5bfc 10199
1bd55598
RD
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_Py_Void();
10204 return resultobj;
10205fail:
10206 return NULL;
10207}
10208
10209
10210SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj = 0;
10212 int arg1 ;
10213 wxCursor *result = 0 ;
10214 int val1 ;
10215 int ecode1 = 0 ;
10216 PyObject * obj0 = 0 ;
10217 char * kwnames[] = {
10218 (char *) "id", NULL
10219 };
10220
10221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10222 ecode1 = SWIG_AsVal_int(obj0, &val1);
10223 if (!SWIG_IsOK(ecode1)) {
10224 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10225 }
10226 arg1 = static_cast< int >(val1);
10227 {
10228 if (!wxPyCheckForApp()) SWIG_fail;
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = (wxCursor *)new wxCursor(arg1);
10231 wxPyEndAllowThreads(__tstate);
10232 if (PyErr_Occurred()) SWIG_fail;
10233 }
10234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10235 return resultobj;
10236fail:
10237 return NULL;
10238}
10239
10240
10241SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj = 0;
10243 wxImage *arg1 = 0 ;
10244 wxCursor *result = 0 ;
10245 void *argp1 = 0 ;
10246 int res1 = 0 ;
10247 PyObject * obj0 = 0 ;
10248 char * kwnames[] = {
10249 (char *) "image", NULL
10250 };
10251
10252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10253 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10254 if (!SWIG_IsOK(res1)) {
10255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10256 }
10257 if (!argp1) {
10258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10259 }
10260 arg1 = reinterpret_cast< wxImage * >(argp1);
10261 {
10262 if (!wxPyCheckForApp()) SWIG_fail;
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10269 return resultobj;
10270fail:
10271 return NULL;
d55e5bfc
RD
10272}
10273
10274
b39fe951 10275SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10276 PyObject *resultobj = 0;
10277 wxCursor *arg1 = (wxCursor *) 0 ;
10278 bool result;
10279 void *argp1 = 0 ;
10280 int res1 = 0 ;
10281 PyObject *swig_obj[1] ;
10282
10283 if (!args) SWIG_fail;
10284 swig_obj[0] = args;
10285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10286 if (!SWIG_IsOK(res1)) {
b39fe951 10287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10288 }
10289 arg1 = reinterpret_cast< wxCursor * >(argp1);
10290 {
10291 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10292 result = (bool)(arg1)->IsOk();
1bd55598
RD
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 {
10297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10298 }
10299 return resultobj;
10300fail:
10301 return NULL;
10302}
10303
10304
10305SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10306 PyObject *obj;
10307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10308 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10309 return SWIG_Py_Void();
10310}
10311
10312SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10313 return SWIG_Python_InitShadowInstance(args);
10314}
10315
10316SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 int arg1 = (int) 0 ;
10319 int arg2 = (int) 0 ;
10320 int arg3 = (int) 0 ;
10321 int arg4 = (int) 0 ;
10322 wxRegion *result = 0 ;
10323 int val1 ;
10324 int ecode1 = 0 ;
10325 int val2 ;
10326 int ecode2 = 0 ;
10327 int val3 ;
10328 int ecode3 = 0 ;
10329 int val4 ;
10330 int ecode4 = 0 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 PyObject * obj2 = 0 ;
10334 PyObject * obj3 = 0 ;
10335 char * kwnames[] = {
10336 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10337 };
10338
10339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10340 if (obj0) {
10341 ecode1 = SWIG_AsVal_int(obj0, &val1);
10342 if (!SWIG_IsOK(ecode1)) {
10343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10344 }
10345 arg1 = static_cast< int >(val1);
10346 }
10347 if (obj1) {
10348 ecode2 = SWIG_AsVal_int(obj1, &val2);
10349 if (!SWIG_IsOK(ecode2)) {
10350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10351 }
10352 arg2 = static_cast< int >(val2);
10353 }
10354 if (obj2) {
10355 ecode3 = SWIG_AsVal_int(obj2, &val3);
10356 if (!SWIG_IsOK(ecode3)) {
10357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10358 }
10359 arg3 = static_cast< int >(val3);
10360 }
10361 if (obj3) {
10362 ecode4 = SWIG_AsVal_int(obj3, &val4);
10363 if (!SWIG_IsOK(ecode4)) {
10364 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10365 }
10366 arg4 = static_cast< int >(val4);
10367 }
10368 {
10369 if (!wxPyCheckForApp()) SWIG_fail;
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10376 return resultobj;
10377fail:
10378 return NULL;
10379}
10380
10381
10382SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj = 0;
10384 wxBitmap *arg1 = 0 ;
10385 wxRegion *result = 0 ;
10386 void *argp1 = 0 ;
10387 int res1 = 0 ;
10388 PyObject * obj0 = 0 ;
10389 char * kwnames[] = {
10390 (char *) "bmp", NULL
10391 };
10392
10393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10394 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10397 }
10398 if (!argp1) {
10399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10400 }
10401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10402 {
10403 if (!wxPyCheckForApp()) SWIG_fail;
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10410 return resultobj;
10411fail:
10412 return NULL;
10413}
10414
10415
10416SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10417 PyObject *resultobj = 0;
10418 wxBitmap *arg1 = 0 ;
10419 wxColour *arg2 = 0 ;
10420 int arg3 = (int) 0 ;
10421 wxRegion *result = 0 ;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 wxColour temp2 ;
10425 int val3 ;
10426 int ecode3 = 0 ;
10427 PyObject * obj0 = 0 ;
10428 PyObject * obj1 = 0 ;
10429 PyObject * obj2 = 0 ;
10430 char * kwnames[] = {
10431 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10432 };
10433
10434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10435 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10436 if (!SWIG_IsOK(res1)) {
10437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10438 }
10439 if (!argp1) {
10440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10441 }
10442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10443 {
10444 arg2 = &temp2;
10445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10446 }
10447 if (obj2) {
10448 ecode3 = SWIG_AsVal_int(obj2, &val3);
10449 if (!SWIG_IsOK(ecode3)) {
10450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10451 }
10452 arg3 = static_cast< int >(val3);
10453 }
10454 {
10455 if (!wxPyCheckForApp()) SWIG_fail;
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10462 return resultobj;
10463fail:
10464 return NULL;
10465}
10466
10467
10468SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10469 PyObject *resultobj = 0;
10470 int arg1 ;
10471 wxPoint *arg2 = (wxPoint *) 0 ;
10472 int arg3 = (int) wxWINDING_RULE ;
10473 wxRegion *result = 0 ;
10474 int val3 ;
10475 int ecode3 = 0 ;
10476 PyObject * obj0 = 0 ;
10477 PyObject * obj1 = 0 ;
10478 char * kwnames[] = {
10479 (char *) "points",(char *) "fillStyle", NULL
10480 };
10481
10482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10483 {
10484 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10485 if (arg2 == NULL) SWIG_fail;
10486 }
10487 if (obj1) {
10488 ecode3 = SWIG_AsVal_int(obj1, &val3);
10489 if (!SWIG_IsOK(ecode3)) {
10490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10491 }
10492 arg3 = static_cast< int >(val3);
10493 }
10494 {
10495 if (!wxPyCheckForApp()) SWIG_fail;
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10502 {
10503 if (arg2) delete [] arg2;
10504 }
10505 return resultobj;
10506fail:
10507 {
10508 if (arg2) delete [] arg2;
10509 }
10510 return NULL;
d55e5bfc
RD
10511}
10512
10513
1bd55598
RD
10514SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxRegion *arg1 = (wxRegion *) 0 ;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 PyObject *swig_obj[1] ;
10520
10521 if (!args) SWIG_fail;
10522 swig_obj[0] = args;
10523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10526 }
10527 arg1 = reinterpret_cast< wxRegion * >(argp1);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 delete arg1;
d55e5bfc 10531
1bd55598
RD
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537fail:
10538 return NULL;
d55e5bfc
RD
10539}
10540
10541
1bd55598
RD
10542SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxRegion *arg1 = (wxRegion *) 0 ;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 PyObject *swig_obj[1] ;
10548
10549 if (!args) SWIG_fail;
10550 swig_obj[0] = args;
10551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10554 }
10555 arg1 = reinterpret_cast< wxRegion * >(argp1);
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 (arg1)->Clear();
10559 wxPyEndAllowThreads(__tstate);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 resultobj = SWIG_Py_Void();
10563 return resultobj;
10564fail:
10565 return NULL;
10566}
10567
10568
10569SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10570 PyObject *resultobj = 0;
10571 wxRegion *arg1 = (wxRegion *) 0 ;
10572 int arg2 ;
10573 int arg3 ;
10574 bool result;
10575 void *argp1 = 0 ;
10576 int res1 = 0 ;
10577 int val2 ;
10578 int ecode2 = 0 ;
10579 int val3 ;
10580 int ecode3 = 0 ;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 PyObject * obj2 = 0 ;
10584 char * kwnames[] = {
10585 (char *) "self",(char *) "x",(char *) "y", NULL
10586 };
10587
10588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10590 if (!SWIG_IsOK(res1)) {
10591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10592 }
10593 arg1 = reinterpret_cast< wxRegion * >(argp1);
10594 ecode2 = SWIG_AsVal_int(obj1, &val2);
10595 if (!SWIG_IsOK(ecode2)) {
10596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10597 }
10598 arg2 = static_cast< int >(val2);
10599 ecode3 = SWIG_AsVal_int(obj2, &val3);
10600 if (!SWIG_IsOK(ecode3)) {
10601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10602 }
10603 arg3 = static_cast< int >(val3);
10604 {
10605 PyThreadState* __tstate = wxPyBeginAllowThreads();
10606 result = (bool)(arg1)->Offset(arg2,arg3);
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 {
10611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10612 }
10613 return resultobj;
10614fail:
10615 return NULL;
10616}
10617
10618
10619SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj = 0;
10621 wxRegion *arg1 = (wxRegion *) 0 ;
10622 int arg2 ;
10623 int arg3 ;
10624 wxRegionContain result;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 int val2 ;
10628 int ecode2 = 0 ;
10629 int val3 ;
10630 int ecode3 = 0 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 PyObject * obj2 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "self",(char *) "x",(char *) "y", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10640 if (!SWIG_IsOK(res1)) {
10641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10642 }
10643 arg1 = reinterpret_cast< wxRegion * >(argp1);
10644 ecode2 = SWIG_AsVal_int(obj1, &val2);
10645 if (!SWIG_IsOK(ecode2)) {
10646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10647 }
10648 arg2 = static_cast< int >(val2);
10649 ecode3 = SWIG_AsVal_int(obj2, &val3);
10650 if (!SWIG_IsOK(ecode3)) {
10651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10652 }
10653 arg3 = static_cast< int >(val3);
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_From_int(static_cast< int >(result));
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 wxPoint *arg2 = 0 ;
10671 wxRegionContain result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 wxPoint temp2 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "pt", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10685 }
10686 arg1 = reinterpret_cast< wxRegion * >(argp1);
10687 {
10688 arg2 = &temp2;
10689 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10690 }
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_From_int(static_cast< int >(result));
10698 return resultobj;
10699fail:
10700 return NULL;
10701}
10702
10703
10704SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxRegion *arg1 = (wxRegion *) 0 ;
10707 wxRect *arg2 = 0 ;
10708 wxRegionContain result;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 wxRect temp2 ;
10712 PyObject * obj0 = 0 ;
10713 PyObject * obj1 = 0 ;
10714 char * kwnames[] = {
10715 (char *) "self",(char *) "rect", NULL
10716 };
10717
10718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10720 if (!SWIG_IsOK(res1)) {
10721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10722 }
10723 arg1 = reinterpret_cast< wxRegion * >(argp1);
10724 {
10725 arg2 = &temp2;
10726 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10727 }
10728 {
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_From_int(static_cast< int >(result));
10735 return resultobj;
10736fail:
10737 return NULL;
10738}
10739
10740
10741SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj = 0;
10743 wxRegion *arg1 = (wxRegion *) 0 ;
10744 int arg2 ;
10745 int arg3 ;
10746 int arg4 ;
10747 int arg5 ;
10748 wxRegionContain result;
10749 void *argp1 = 0 ;
10750 int res1 = 0 ;
10751 int val2 ;
10752 int ecode2 = 0 ;
10753 int val3 ;
10754 int ecode3 = 0 ;
10755 int val4 ;
10756 int ecode4 = 0 ;
10757 int val5 ;
10758 int ecode5 = 0 ;
10759 PyObject * obj0 = 0 ;
10760 PyObject * obj1 = 0 ;
10761 PyObject * obj2 = 0 ;
10762 PyObject * obj3 = 0 ;
10763 PyObject * obj4 = 0 ;
10764 char * kwnames[] = {
10765 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10766 };
10767
10768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10770 if (!SWIG_IsOK(res1)) {
10771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10772 }
10773 arg1 = reinterpret_cast< wxRegion * >(argp1);
10774 ecode2 = SWIG_AsVal_int(obj1, &val2);
10775 if (!SWIG_IsOK(ecode2)) {
10776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10777 }
10778 arg2 = static_cast< int >(val2);
10779 ecode3 = SWIG_AsVal_int(obj2, &val3);
10780 if (!SWIG_IsOK(ecode3)) {
10781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10782 }
10783 arg3 = static_cast< int >(val3);
10784 ecode4 = SWIG_AsVal_int(obj3, &val4);
10785 if (!SWIG_IsOK(ecode4)) {
10786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10787 }
10788 arg4 = static_cast< int >(val4);
10789 ecode5 = SWIG_AsVal_int(obj4, &val5);
10790 if (!SWIG_IsOK(ecode5)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10792 }
10793 arg5 = static_cast< int >(val5);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_From_int(static_cast< int >(result));
10801 return resultobj;
10802fail:
10803 return NULL;
d55e5bfc
RD
10804}
10805
10806
1bd55598
RD
10807SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10808 PyObject *resultobj = 0;
10809 wxRegion *arg1 = (wxRegion *) 0 ;
10810 wxRect result;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 PyObject *swig_obj[1] ;
10814
10815 if (!args) SWIG_fail;
10816 swig_obj[0] = args;
10817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10818 if (!SWIG_IsOK(res1)) {
10819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10820 }
10821 arg1 = reinterpret_cast< wxRegion * >(argp1);
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 result = (arg1)->GetBox();
10825 wxPyEndAllowThreads(__tstate);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10829 return resultobj;
10830fail:
10831 return NULL;
10832}
10833
10834
10835SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj = 0;
10837 wxRegion *arg1 = (wxRegion *) 0 ;
10838 int arg2 ;
10839 int arg3 ;
10840 int arg4 ;
10841 int arg5 ;
10842 bool result;
10843 void *argp1 = 0 ;
10844 int res1 = 0 ;
10845 int val2 ;
10846 int ecode2 = 0 ;
10847 int val3 ;
10848 int ecode3 = 0 ;
10849 int val4 ;
10850 int ecode4 = 0 ;
10851 int val5 ;
10852 int ecode5 = 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 PyObject * obj2 = 0 ;
10856 PyObject * obj3 = 0 ;
10857 PyObject * obj4 = 0 ;
10858 char * kwnames[] = {
10859 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10860 };
10861
10862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10864 if (!SWIG_IsOK(res1)) {
10865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10866 }
10867 arg1 = reinterpret_cast< wxRegion * >(argp1);
10868 ecode2 = SWIG_AsVal_int(obj1, &val2);
10869 if (!SWIG_IsOK(ecode2)) {
10870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10871 }
10872 arg2 = static_cast< int >(val2);
10873 ecode3 = SWIG_AsVal_int(obj2, &val3);
10874 if (!SWIG_IsOK(ecode3)) {
10875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10876 }
10877 arg3 = static_cast< int >(val3);
10878 ecode4 = SWIG_AsVal_int(obj3, &val4);
10879 if (!SWIG_IsOK(ecode4)) {
10880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10881 }
10882 arg4 = static_cast< int >(val4);
10883 ecode5 = SWIG_AsVal_int(obj4, &val5);
10884 if (!SWIG_IsOK(ecode5)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10886 }
10887 arg5 = static_cast< int >(val5);
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
10890 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10891 wxPyEndAllowThreads(__tstate);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 }
10894 {
10895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10896 }
10897 return resultobj;
10898fail:
10899 return NULL;
10900}
10901
10902
10903SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10904 PyObject *resultobj = 0;
10905 wxRegion *arg1 = (wxRegion *) 0 ;
10906 wxRect *arg2 = 0 ;
10907 bool result;
10908 void *argp1 = 0 ;
10909 int res1 = 0 ;
10910 wxRect temp2 ;
10911 PyObject * obj0 = 0 ;
10912 PyObject * obj1 = 0 ;
10913 char * kwnames[] = {
10914 (char *) "self",(char *) "rect", NULL
10915 };
10916
10917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10919 if (!SWIG_IsOK(res1)) {
10920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10921 }
10922 arg1 = reinterpret_cast< wxRegion * >(argp1);
10923 {
10924 arg2 = &temp2;
10925 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10926 }
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 {
10934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10935 }
10936 return resultobj;
10937fail:
10938 return NULL;
10939}
10940
10941
10942SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10943 PyObject *resultobj = 0;
10944 wxRegion *arg1 = (wxRegion *) 0 ;
10945 wxRegion *arg2 = 0 ;
10946 bool result;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 void *argp2 = 0 ;
10950 int res2 = 0 ;
10951 PyObject * obj0 = 0 ;
10952 PyObject * obj1 = 0 ;
10953 char * kwnames[] = {
10954 (char *) "self",(char *) "region", NULL
10955 };
10956
10957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10959 if (!SWIG_IsOK(res1)) {
10960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10961 }
10962 arg1 = reinterpret_cast< wxRegion * >(argp1);
10963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10964 if (!SWIG_IsOK(res2)) {
10965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10966 }
10967 if (!argp2) {
10968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10969 }
10970 arg2 = reinterpret_cast< wxRegion * >(argp2);
10971 {
10972 PyThreadState* __tstate = wxPyBeginAllowThreads();
10973 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10979 }
10980 return resultobj;
10981fail:
10982 return NULL;
d55e5bfc
RD
10983}
10984
10985
1bd55598
RD
10986SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10987 PyObject *resultobj = 0;
10988 wxRegion *arg1 = (wxRegion *) 0 ;
10989 bool result;
10990 void *argp1 = 0 ;
10991 int res1 = 0 ;
10992 PyObject *swig_obj[1] ;
10993
10994 if (!args) SWIG_fail;
10995 swig_obj[0] = args;
10996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10997 if (!SWIG_IsOK(res1)) {
10998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10999 }
11000 arg1 = reinterpret_cast< wxRegion * >(argp1);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 result = (bool)(arg1)->IsEmpty();
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 {
11008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11009 }
11010 return resultobj;
11011fail:
11012 return NULL;
11013}
11014
11015
f5263701
RD
11016SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj = 0;
11018 wxRegion *arg1 = (wxRegion *) 0 ;
11019 wxRegion *arg2 = 0 ;
11020 bool result;
11021 void *argp1 = 0 ;
11022 int res1 = 0 ;
11023 void *argp2 = 0 ;
11024 int res2 = 0 ;
11025 PyObject * obj0 = 0 ;
11026 PyObject * obj1 = 0 ;
11027 char * kwnames[] = {
11028 (char *) "self",(char *) "region", NULL
11029 };
11030
11031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11035 }
11036 arg1 = reinterpret_cast< wxRegion * >(argp1);
11037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11038 if (!SWIG_IsOK(res2)) {
11039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11040 }
11041 if (!argp2) {
11042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11043 }
11044 arg2 = reinterpret_cast< wxRegion * >(argp2);
11045 {
11046 PyThreadState* __tstate = wxPyBeginAllowThreads();
11047 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 {
11052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11053 }
11054 return resultobj;
11055fail:
11056 return NULL;
11057}
11058
11059
1bd55598
RD
11060SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11061 PyObject *resultobj = 0;
11062 wxRegion *arg1 = (wxRegion *) 0 ;
11063 int arg2 ;
11064 int arg3 ;
11065 int arg4 ;
11066 int arg5 ;
11067 bool result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 int val2 ;
11071 int ecode2 = 0 ;
11072 int val3 ;
11073 int ecode3 = 0 ;
11074 int val4 ;
11075 int ecode4 = 0 ;
11076 int val5 ;
11077 int ecode5 = 0 ;
11078 PyObject * obj0 = 0 ;
11079 PyObject * obj1 = 0 ;
11080 PyObject * obj2 = 0 ;
11081 PyObject * obj3 = 0 ;
11082 PyObject * obj4 = 0 ;
11083 char * kwnames[] = {
11084 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11085 };
11086
11087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11089 if (!SWIG_IsOK(res1)) {
11090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11091 }
11092 arg1 = reinterpret_cast< wxRegion * >(argp1);
11093 ecode2 = SWIG_AsVal_int(obj1, &val2);
11094 if (!SWIG_IsOK(ecode2)) {
11095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11096 }
11097 arg2 = static_cast< int >(val2);
11098 ecode3 = SWIG_AsVal_int(obj2, &val3);
11099 if (!SWIG_IsOK(ecode3)) {
11100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11101 }
11102 arg3 = static_cast< int >(val3);
11103 ecode4 = SWIG_AsVal_int(obj3, &val4);
11104 if (!SWIG_IsOK(ecode4)) {
11105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11106 }
11107 arg4 = static_cast< int >(val4);
11108 ecode5 = SWIG_AsVal_int(obj4, &val5);
11109 if (!SWIG_IsOK(ecode5)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11111 }
11112 arg5 = static_cast< int >(val5);
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 {
11120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11121 }
11122 return resultobj;
11123fail:
11124 return NULL;
11125}
11126
11127
11128SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj = 0;
11130 wxRegion *arg1 = (wxRegion *) 0 ;
11131 wxRect *arg2 = 0 ;
11132 bool result;
11133 void *argp1 = 0 ;
11134 int res1 = 0 ;
11135 wxRect temp2 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 char * kwnames[] = {
11139 (char *) "self",(char *) "rect", NULL
11140 };
11141
11142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11146 }
11147 arg1 = reinterpret_cast< wxRegion * >(argp1);
11148 {
11149 arg2 = &temp2;
11150 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11151 }
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 {
11159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11160 }
11161 return resultobj;
11162fail:
11163 return NULL;
11164}
11165
11166
11167SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11168 PyObject *resultobj = 0;
11169 wxRegion *arg1 = (wxRegion *) 0 ;
11170 wxRegion *arg2 = 0 ;
11171 bool result;
11172 void *argp1 = 0 ;
11173 int res1 = 0 ;
11174 void *argp2 = 0 ;
11175 int res2 = 0 ;
11176 PyObject * obj0 = 0 ;
11177 PyObject * obj1 = 0 ;
11178 char * kwnames[] = {
11179 (char *) "self",(char *) "region", NULL
11180 };
11181
11182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11186 }
11187 arg1 = reinterpret_cast< wxRegion * >(argp1);
11188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11189 if (!SWIG_IsOK(res2)) {
11190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11191 }
11192 if (!argp2) {
11193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11194 }
11195 arg2 = reinterpret_cast< wxRegion * >(argp2);
11196 {
11197 PyThreadState* __tstate = wxPyBeginAllowThreads();
11198 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11199 wxPyEndAllowThreads(__tstate);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 {
11203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11204 }
11205 return resultobj;
11206fail:
11207 return NULL;
11208}
11209
11210
11211SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11212 PyObject *resultobj = 0;
11213 wxRegion *arg1 = (wxRegion *) 0 ;
11214 int arg2 ;
11215 int arg3 ;
11216 int arg4 ;
11217 int arg5 ;
11218 bool result;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 int val2 ;
11222 int ecode2 = 0 ;
11223 int val3 ;
11224 int ecode3 = 0 ;
11225 int val4 ;
11226 int ecode4 = 0 ;
11227 int val5 ;
11228 int ecode5 = 0 ;
11229 PyObject * obj0 = 0 ;
11230 PyObject * obj1 = 0 ;
11231 PyObject * obj2 = 0 ;
11232 PyObject * obj3 = 0 ;
11233 PyObject * obj4 = 0 ;
11234 char * kwnames[] = {
11235 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11236 };
11237
11238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11240 if (!SWIG_IsOK(res1)) {
11241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11242 }
11243 arg1 = reinterpret_cast< wxRegion * >(argp1);
11244 ecode2 = SWIG_AsVal_int(obj1, &val2);
11245 if (!SWIG_IsOK(ecode2)) {
11246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11247 }
11248 arg2 = static_cast< int >(val2);
11249 ecode3 = SWIG_AsVal_int(obj2, &val3);
11250 if (!SWIG_IsOK(ecode3)) {
11251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11252 }
11253 arg3 = static_cast< int >(val3);
11254 ecode4 = SWIG_AsVal_int(obj3, &val4);
11255 if (!SWIG_IsOK(ecode4)) {
11256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11257 }
11258 arg4 = static_cast< int >(val4);
11259 ecode5 = SWIG_AsVal_int(obj4, &val5);
11260 if (!SWIG_IsOK(ecode5)) {
11261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11262 }
11263 arg5 = static_cast< int >(val5);
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11272 }
11273 return resultobj;
11274fail:
11275 return NULL;
11276}
11277
11278
11279SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj = 0;
11281 wxRegion *arg1 = (wxRegion *) 0 ;
11282 wxRect *arg2 = 0 ;
11283 bool result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 wxRect temp2 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 char * kwnames[] = {
11290 (char *) "self",(char *) "rect", NULL
11291 };
11292
11293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11295 if (!SWIG_IsOK(res1)) {
11296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11297 }
11298 arg1 = reinterpret_cast< wxRegion * >(argp1);
11299 {
11300 arg2 = &temp2;
11301 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11302 }
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11306 wxPyEndAllowThreads(__tstate);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 {
11310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11311 }
11312 return resultobj;
11313fail:
11314 return NULL;
11315}
11316
11317
11318SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj = 0;
11320 wxRegion *arg1 = (wxRegion *) 0 ;
11321 wxRegion *arg2 = 0 ;
11322 bool result;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 void *argp2 = 0 ;
11326 int res2 = 0 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 char * kwnames[] = {
11330 (char *) "self",(char *) "region", NULL
11331 };
11332
11333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11335 if (!SWIG_IsOK(res1)) {
11336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11337 }
11338 arg1 = reinterpret_cast< wxRegion * >(argp1);
11339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11340 if (!SWIG_IsOK(res2)) {
11341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11342 }
11343 if (!argp2) {
11344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11345 }
11346 arg2 = reinterpret_cast< wxRegion * >(argp2);
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 {
11354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11355 }
11356 return resultobj;
11357fail:
11358 return NULL;
11359}
11360
11361
11362SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11363 PyObject *resultobj = 0;
11364 wxRegion *arg1 = (wxRegion *) 0 ;
11365 int arg2 ;
11366 int arg3 ;
11367 int arg4 ;
11368 int arg5 ;
11369 bool result;
11370 void *argp1 = 0 ;
11371 int res1 = 0 ;
11372 int val2 ;
11373 int ecode2 = 0 ;
11374 int val3 ;
11375 int ecode3 = 0 ;
11376 int val4 ;
11377 int ecode4 = 0 ;
11378 int val5 ;
11379 int ecode5 = 0 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 PyObject * obj2 = 0 ;
11383 PyObject * obj3 = 0 ;
11384 PyObject * obj4 = 0 ;
11385 char * kwnames[] = {
11386 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11387 };
11388
11389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11391 if (!SWIG_IsOK(res1)) {
11392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11393 }
11394 arg1 = reinterpret_cast< wxRegion * >(argp1);
11395 ecode2 = SWIG_AsVal_int(obj1, &val2);
11396 if (!SWIG_IsOK(ecode2)) {
11397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11398 }
11399 arg2 = static_cast< int >(val2);
11400 ecode3 = SWIG_AsVal_int(obj2, &val3);
11401 if (!SWIG_IsOK(ecode3)) {
11402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11403 }
11404 arg3 = static_cast< int >(val3);
11405 ecode4 = SWIG_AsVal_int(obj3, &val4);
11406 if (!SWIG_IsOK(ecode4)) {
11407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11408 }
11409 arg4 = static_cast< int >(val4);
11410 ecode5 = SWIG_AsVal_int(obj4, &val5);
11411 if (!SWIG_IsOK(ecode5)) {
11412 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11413 }
11414 arg5 = static_cast< int >(val5);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 {
11422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11423 }
11424 return resultobj;
11425fail:
11426 return NULL;
11427}
11428
11429
11430SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11431 PyObject *resultobj = 0;
11432 wxRegion *arg1 = (wxRegion *) 0 ;
11433 wxRect *arg2 = 0 ;
11434 bool result;
11435 void *argp1 = 0 ;
11436 int res1 = 0 ;
11437 wxRect temp2 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 char * kwnames[] = {
11441 (char *) "self",(char *) "rect", NULL
11442 };
11443
11444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11446 if (!SWIG_IsOK(res1)) {
11447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11448 }
11449 arg1 = reinterpret_cast< wxRegion * >(argp1);
11450 {
11451 arg2 = &temp2;
11452 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11453 }
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 {
11461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11462 }
11463 return resultobj;
11464fail:
11465 return NULL;
11466}
11467
11468
11469SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11470 PyObject *resultobj = 0;
11471 wxRegion *arg1 = (wxRegion *) 0 ;
11472 wxRegion *arg2 = 0 ;
11473 bool result;
11474 void *argp1 = 0 ;
11475 int res1 = 0 ;
11476 void *argp2 = 0 ;
11477 int res2 = 0 ;
11478 PyObject * obj0 = 0 ;
11479 PyObject * obj1 = 0 ;
11480 char * kwnames[] = {
11481 (char *) "self",(char *) "region", NULL
11482 };
11483
11484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11486 if (!SWIG_IsOK(res1)) {
11487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11488 }
11489 arg1 = reinterpret_cast< wxRegion * >(argp1);
11490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11491 if (!SWIG_IsOK(res2)) {
11492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11493 }
11494 if (!argp2) {
11495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11496 }
11497 arg2 = reinterpret_cast< wxRegion * >(argp2);
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11506 }
11507 return resultobj;
11508fail:
11509 return NULL;
d55e5bfc
RD
11510}
11511
11512
1bd55598
RD
11513SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11514 PyObject *resultobj = 0;
11515 wxRegion *arg1 = (wxRegion *) 0 ;
11516 SwigValueWrapper<wxBitmap > result;
11517 void *argp1 = 0 ;
11518 int res1 = 0 ;
11519 PyObject *swig_obj[1] ;
11520
11521 if (!args) SWIG_fail;
11522 swig_obj[0] = args;
11523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11524 if (!SWIG_IsOK(res1)) {
11525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11526 }
11527 arg1 = reinterpret_cast< wxRegion * >(argp1);
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 result = (arg1)->ConvertToBitmap();
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11535 return resultobj;
11536fail:
11537 return NULL;
11538}
11539
11540
11541SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11542 PyObject *resultobj = 0;
11543 wxRegion *arg1 = (wxRegion *) 0 ;
11544 wxBitmap *arg2 = 0 ;
11545 bool result;
11546 void *argp1 = 0 ;
11547 int res1 = 0 ;
11548 void *argp2 = 0 ;
11549 int res2 = 0 ;
11550 PyObject * obj0 = 0 ;
11551 PyObject * obj1 = 0 ;
11552 char * kwnames[] = {
11553 (char *) "self",(char *) "bmp", NULL
11554 };
11555
11556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11558 if (!SWIG_IsOK(res1)) {
11559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11560 }
11561 arg1 = reinterpret_cast< wxRegion * >(argp1);
11562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11563 if (!SWIG_IsOK(res2)) {
11564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11565 }
11566 if (!argp2) {
11567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11568 }
11569 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11570 {
11571 PyThreadState* __tstate = wxPyBeginAllowThreads();
11572 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 {
11577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11578 }
11579 return resultobj;
11580fail:
11581 return NULL;
11582}
11583
11584
11585SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj = 0;
11587 wxRegion *arg1 = (wxRegion *) 0 ;
11588 wxBitmap *arg2 = 0 ;
11589 wxColour *arg3 = 0 ;
11590 int arg4 = (int) 0 ;
11591 bool result;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 void *argp2 = 0 ;
11595 int res2 = 0 ;
11596 wxColour temp3 ;
11597 int val4 ;
11598 int ecode4 = 0 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 PyObject * obj2 = 0 ;
11602 PyObject * obj3 = 0 ;
11603 char * kwnames[] = {
11604 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11605 };
11606
11607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11609 if (!SWIG_IsOK(res1)) {
11610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11611 }
11612 arg1 = reinterpret_cast< wxRegion * >(argp1);
11613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11614 if (!SWIG_IsOK(res2)) {
11615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11616 }
11617 if (!argp2) {
11618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11619 }
11620 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11621 {
11622 arg3 = &temp3;
11623 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11624 }
11625 if (obj3) {
11626 ecode4 = SWIG_AsVal_int(obj3, &val4);
11627 if (!SWIG_IsOK(ecode4)) {
11628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11629 }
11630 arg4 = static_cast< int >(val4);
11631 }
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11635 wxPyEndAllowThreads(__tstate);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 {
11639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11640 }
11641 return resultobj;
11642fail:
11643 return NULL;
d55e5bfc
RD
11644}
11645
11646
1bd55598
RD
11647SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11648 PyObject *obj;
11649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11650 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11651 return SWIG_Py_Void();
d55e5bfc
RD
11652}
11653
1bd55598
RD
11654SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11655 return SWIG_Python_InitShadowInstance(args);
11656}
d55e5bfc 11657
1bd55598
RD
11658SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11659 PyObject *resultobj = 0;
11660 wxRegion *arg1 = 0 ;
11661 wxRegionIterator *result = 0 ;
11662 void *argp1 = 0 ;
11663 int res1 = 0 ;
11664 PyObject * obj0 = 0 ;
11665 char * kwnames[] = {
11666 (char *) "region", NULL
11667 };
11668
11669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11671 if (!SWIG_IsOK(res1)) {
11672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11673 }
11674 if (!argp1) {
11675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11676 }
11677 arg1 = reinterpret_cast< wxRegion * >(argp1);
11678 {
11679 if (!wxPyCheckForApp()) SWIG_fail;
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11686 return resultobj;
11687fail:
11688 return NULL;
d55e5bfc
RD
11689}
11690
11691
1bd55598
RD
11692SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11693 PyObject *resultobj = 0;
11694 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11695 void *argp1 = 0 ;
11696 int res1 = 0 ;
11697 PyObject *swig_obj[1] ;
11698
11699 if (!args) SWIG_fail;
11700 swig_obj[0] = args;
11701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11702 if (!SWIG_IsOK(res1)) {
11703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11704 }
11705 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11706 {
11707 PyThreadState* __tstate = wxPyBeginAllowThreads();
11708 delete arg1;
d55e5bfc 11709
1bd55598
RD
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 resultobj = SWIG_Py_Void();
11714 return resultobj;
11715fail:
11716 return NULL;
d55e5bfc
RD
11717}
11718
11719
1bd55598
RD
11720SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11721 PyObject *resultobj = 0;
11722 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11723 int result;
11724 void *argp1 = 0 ;
11725 int res1 = 0 ;
11726 PyObject *swig_obj[1] ;
11727
11728 if (!args) SWIG_fail;
11729 swig_obj[0] = args;
11730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11731 if (!SWIG_IsOK(res1)) {
11732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11733 }
11734 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 result = (int)(arg1)->GetX();
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 resultobj = SWIG_From_int(static_cast< int >(result));
11742 return resultobj;
11743fail:
11744 return NULL;
d55e5bfc
RD
11745}
11746
11747
1bd55598
RD
11748SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 PyObject *resultobj = 0;
11750 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11751 int result;
11752 void *argp1 = 0 ;
11753 int res1 = 0 ;
11754 PyObject *swig_obj[1] ;
11755
11756 if (!args) SWIG_fail;
11757 swig_obj[0] = args;
11758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11759 if (!SWIG_IsOK(res1)) {
11760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11761 }
11762 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 result = (int)(arg1)->GetY();
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 resultobj = SWIG_From_int(static_cast< int >(result));
11770 return resultobj;
11771fail:
11772 return NULL;
d55e5bfc
RD
11773}
11774
11775
1bd55598
RD
11776SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11777 PyObject *resultobj = 0;
11778 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11779 int result;
11780 void *argp1 = 0 ;
11781 int res1 = 0 ;
11782 PyObject *swig_obj[1] ;
11783
11784 if (!args) SWIG_fail;
11785 swig_obj[0] = args;
11786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11787 if (!SWIG_IsOK(res1)) {
11788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11789 }
11790 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (int)(arg1)->GetW();
11794 wxPyEndAllowThreads(__tstate);
11795 if (PyErr_Occurred()) SWIG_fail;
11796 }
11797 resultobj = SWIG_From_int(static_cast< int >(result));
11798 return resultobj;
11799fail:
11800 return NULL;
d55e5bfc
RD
11801}
11802
11803
1bd55598
RD
11804SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11805 PyObject *resultobj = 0;
11806 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11807 int result;
11808 void *argp1 = 0 ;
11809 int res1 = 0 ;
11810 PyObject *swig_obj[1] ;
11811
11812 if (!args) SWIG_fail;
11813 swig_obj[0] = args;
11814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11817 }
11818 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 result = (int)(arg1)->GetWidth();
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 resultobj = SWIG_From_int(static_cast< int >(result));
11826 return resultobj;
11827fail:
11828 return NULL;
d55e5bfc
RD
11829}
11830
11831
1bd55598
RD
11832SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11833 PyObject *resultobj = 0;
11834 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11835 int result;
11836 void *argp1 = 0 ;
11837 int res1 = 0 ;
11838 PyObject *swig_obj[1] ;
11839
11840 if (!args) SWIG_fail;
11841 swig_obj[0] = args;
11842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11843 if (!SWIG_IsOK(res1)) {
11844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11845 }
11846 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 result = (int)(arg1)->GetH();
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_From_int(static_cast< int >(result));
11854 return resultobj;
11855fail:
11856 return NULL;
d07096ad
RD
11857}
11858
11859
1bd55598
RD
11860SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11861 PyObject *resultobj = 0;
11862 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11863 int result;
11864 void *argp1 = 0 ;
11865 int res1 = 0 ;
11866 PyObject *swig_obj[1] ;
11867
11868 if (!args) SWIG_fail;
11869 swig_obj[0] = args;
11870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11871 if (!SWIG_IsOK(res1)) {
11872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11873 }
11874 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (int)(arg1)->GetHeight();
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 resultobj = SWIG_From_int(static_cast< int >(result));
11882 return resultobj;
11883fail:
11884 return NULL;
d55e5bfc
RD
11885}
11886
11887
1bd55598
RD
11888SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11891 wxRect result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11901 }
11902 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = (arg1)->GetRect();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11910 return resultobj;
11911fail:
11912 return NULL;
d55e5bfc
RD
11913}
11914
11915
1bd55598
RD
11916SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11917 PyObject *resultobj = 0;
11918 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11919 bool result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 PyObject *swig_obj[1] ;
11923
11924 if (!args) SWIG_fail;
11925 swig_obj[0] = args;
11926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11927 if (!SWIG_IsOK(res1)) {
11928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11929 }
11930 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (bool)(arg1)->HaveRects();
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 {
11938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11939 }
11940 return resultobj;
11941fail:
11942 return NULL;
d55e5bfc
RD
11943}
11944
11945
1bd55598
RD
11946SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11947 PyObject *resultobj = 0;
11948 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 PyObject *swig_obj[1] ;
11952
11953 if (!args) SWIG_fail;
11954 swig_obj[0] = args;
11955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11956 if (!SWIG_IsOK(res1)) {
11957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11958 }
11959 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->Reset();
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 return resultobj;
11968fail:
11969 return NULL;
d55e5bfc
RD
11970}
11971
11972
1bd55598
RD
11973SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11974 PyObject *resultobj = 0;
11975 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11985 }
11986 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 wxRegionIterator_Next(arg1);
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_Py_Void();
11994 return resultobj;
11995fail:
11996 return NULL;
070c48b4
RD
11997}
11998
11999
1bd55598
RD
12000SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 PyObject *resultobj = 0;
12002 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12003 bool result;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject *swig_obj[1] ;
12007
12008 if (!args) SWIG_fail;
12009 swig_obj[0] = args;
12010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12013 }
12014 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (bool)wxRegionIterator___nonzero__(arg1);
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 {
12022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12023 }
12024 return resultobj;
12025fail:
12026 return NULL;
d55e5bfc
RD
12027}
12028
12029
1bd55598
RD
12030SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *obj;
12032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12033 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12034 return SWIG_Py_Void();
d55e5bfc
RD
12035}
12036
1bd55598
RD
12037SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12038 return SWIG_Python_InitShadowInstance(args);
12039}
d55e5bfc 12040
1bd55598
RD
12041SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12042 PyObject *resultobj = 0;
12043 wxNativeFontInfo *result = 0 ;
12044
12045 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12053 return resultobj;
12054fail:
12055 return NULL;
d55e5bfc
RD
12056}
12057
12058
1bd55598
RD
12059SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12060 PyObject *resultobj = 0;
12061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12071 }
12072 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 delete arg1;
d55e5bfc 12076
1bd55598
RD
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 resultobj = SWIG_Py_Void();
12081 return resultobj;
12082fail:
12083 return NULL;
d55e5bfc
RD
12084}
12085
12086
1bd55598
RD
12087SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12088 PyObject *resultobj = 0;
12089 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 PyObject *swig_obj[1] ;
12093
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12099 }
12100 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 (arg1)->Init();
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_Py_Void();
12108 return resultobj;
12109fail:
12110 return NULL;
12111}
12112
12113
12114SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12117 wxFont *arg2 = 0 ;
12118 void *argp1 = 0 ;
12119 int res1 = 0 ;
12120 void *argp2 = 0 ;
12121 int res2 = 0 ;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char * kwnames[] = {
12125 (char *) "self",(char *) "font", NULL
12126 };
12127
12128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12130 if (!SWIG_IsOK(res1)) {
12131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12132 }
12133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12135 if (!SWIG_IsOK(res2)) {
12136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12137 }
12138 if (!argp2) {
12139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12140 }
12141 arg2 = reinterpret_cast< wxFont * >(argp2);
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 (arg1)->InitFromFont((wxFont const &)*arg2);
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = SWIG_Py_Void();
12149 return resultobj;
12150fail:
12151 return NULL;
d55e5bfc
RD
12152}
12153
12154
1bd55598
RD
12155SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12156 PyObject *resultobj = 0;
12157 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12158 int result;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 PyObject *swig_obj[1] ;
12162
12163 if (!args) SWIG_fail;
12164 swig_obj[0] = args;
12165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12168 }
12169 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 resultobj = SWIG_From_int(static_cast< int >(result));
12177 return resultobj;
12178fail:
12179 return NULL;
d55e5bfc
RD
12180}
12181
12182
1bd55598
RD
12183SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12184 PyObject *resultobj = 0;
12185 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12186 wxFontStyle result;
12187 void *argp1 = 0 ;
12188 int res1 = 0 ;
12189 PyObject *swig_obj[1] ;
12190
12191 if (!args) SWIG_fail;
12192 swig_obj[0] = args;
12193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12194 if (!SWIG_IsOK(res1)) {
12195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12196 }
12197 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12198 {
12199 PyThreadState* __tstate = wxPyBeginAllowThreads();
12200 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 resultobj = SWIG_From_int(static_cast< int >(result));
12205 return resultobj;
12206fail:
12207 return NULL;
d55e5bfc
RD
12208}
12209
12210
1bd55598
RD
12211SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12212 PyObject *resultobj = 0;
12213 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12214 wxFontWeight result;
12215 void *argp1 = 0 ;
12216 int res1 = 0 ;
12217 PyObject *swig_obj[1] ;
12218
12219 if (!args) SWIG_fail;
12220 swig_obj[0] = args;
12221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12224 }
12225 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 resultobj = SWIG_From_int(static_cast< int >(result));
12233 return resultobj;
12234fail:
12235 return NULL;
d55e5bfc
RD
12236}
12237
12238
1bd55598
RD
12239SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12240 PyObject *resultobj = 0;
12241 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 PyObject *swig_obj[1] ;
12246
12247 if (!args) SWIG_fail;
12248 swig_obj[0] = args;
12249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12262 }
12263 return resultobj;
12264fail:
12265 return NULL;
d55e5bfc
RD
12266}
12267
12268
1bd55598
RD
12269SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12272 wxString result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12282 }
12283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291#if wxUSE_UNICODE
12292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12293#else
12294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12295#endif
12296 }
12297 return resultobj;
12298fail:
12299 return NULL;
d55e5bfc
RD
12300}
12301
12302
1bd55598
RD
12303SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12306 wxFontFamily result;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12316 }
12317 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_From_int(static_cast< int >(result));
12325 return resultobj;
12326fail:
12327 return NULL;
d55e5bfc
RD
12328}
12329
12330
1bd55598
RD
12331SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 wxFontEncoding result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12344 }
12345 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_From_int(static_cast< int >(result));
12353 return resultobj;
12354fail:
12355 return NULL;
12356}
12357
12358
12359SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj = 0;
12361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12362 int arg2 ;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 int val2 ;
12366 int ecode2 = 0 ;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 char * kwnames[] = {
12370 (char *) "self",(char *) "pointsize", NULL
12371 };
12372
12373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12375 if (!SWIG_IsOK(res1)) {
12376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12377 }
12378 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12379 ecode2 = SWIG_AsVal_int(obj1, &val2);
12380 if (!SWIG_IsOK(ecode2)) {
12381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12382 }
12383 arg2 = static_cast< int >(val2);
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetPointSize(arg2);
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 resultobj = SWIG_Py_Void();
12391 return resultobj;
12392fail:
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12400 wxFontStyle arg2 ;
12401 void *argp1 = 0 ;
12402 int res1 = 0 ;
12403 int val2 ;
12404 int ecode2 = 0 ;
12405 PyObject * obj0 = 0 ;
12406 PyObject * obj1 = 0 ;
12407 char * kwnames[] = {
12408 (char *) "self",(char *) "style", NULL
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12415 }
12416 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12417 ecode2 = SWIG_AsVal_int(obj1, &val2);
12418 if (!SWIG_IsOK(ecode2)) {
12419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12420 }
12421 arg2 = static_cast< wxFontStyle >(val2);
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 (arg1)->SetStyle(arg2);
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 resultobj = SWIG_Py_Void();
12429 return resultobj;
12430fail:
12431 return NULL;
12432}
12433
12434
12435SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj = 0;
12437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12438 wxFontWeight arg2 ;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 int val2 ;
12442 int ecode2 = 0 ;
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
12445 char * kwnames[] = {
12446 (char *) "self",(char *) "weight", NULL
12447 };
12448
12449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12451 if (!SWIG_IsOK(res1)) {
12452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12453 }
12454 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12455 ecode2 = SWIG_AsVal_int(obj1, &val2);
12456 if (!SWIG_IsOK(ecode2)) {
12457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12458 }
12459 arg2 = static_cast< wxFontWeight >(val2);
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 (arg1)->SetWeight(arg2);
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_Py_Void();
12467 return resultobj;
12468fail:
12469 return NULL;
12470}
12471
12472
12473SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12474 PyObject *resultobj = 0;
12475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12476 bool arg2 ;
12477 void *argp1 = 0 ;
12478 int res1 = 0 ;
12479 bool val2 ;
12480 int ecode2 = 0 ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char * kwnames[] = {
12484 (char *) "self",(char *) "underlined", NULL
12485 };
12486
12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12491 }
12492 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12493 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12494 if (!SWIG_IsOK(ecode2)) {
12495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12496 }
12497 arg2 = static_cast< bool >(val2);
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 (arg1)->SetUnderlined(arg2);
12501 wxPyEndAllowThreads(__tstate);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 resultobj = SWIG_Py_Void();
12505 return resultobj;
12506fail:
12507 return NULL;
12508}
12509
12510
12511SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12512 PyObject *resultobj = 0;
12513 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12514 wxString arg2 ;
704eda0c 12515 bool result;
1bd55598
RD
12516 void *argp1 = 0 ;
12517 int res1 = 0 ;
12518 PyObject * obj0 = 0 ;
12519 PyObject * obj1 = 0 ;
12520 char * kwnames[] = {
12521 (char *) "self",(char *) "facename", NULL
12522 };
12523
12524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12526 if (!SWIG_IsOK(res1)) {
12527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12528 }
12529 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12530 {
12531 wxString* sptr = wxString_in_helper(obj1);
12532 if (sptr == NULL) SWIG_fail;
12533 arg2 = *sptr;
12534 delete sptr;
12535 }
12536 {
12537 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12538 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
704eda0c
RD
12542 {
12543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12544 }
1bd55598
RD
12545 return resultobj;
12546fail:
12547 return NULL;
12548}
12549
12550
12551SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj = 0;
12553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12554 wxFontFamily arg2 ;
12555 void *argp1 = 0 ;
12556 int res1 = 0 ;
12557 int val2 ;
12558 int ecode2 = 0 ;
12559 PyObject * obj0 = 0 ;
12560 PyObject * obj1 = 0 ;
12561 char * kwnames[] = {
12562 (char *) "self",(char *) "family", NULL
12563 };
12564
12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12569 }
12570 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12571 ecode2 = SWIG_AsVal_int(obj1, &val2);
12572 if (!SWIG_IsOK(ecode2)) {
12573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12574 }
12575 arg2 = static_cast< wxFontFamily >(val2);
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
12578 (arg1)->SetFamily(arg2);
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 resultobj = SWIG_Py_Void();
12583 return resultobj;
12584fail:
12585 return NULL;
12586}
12587
12588
12589SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12590 PyObject *resultobj = 0;
12591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12592 wxFontEncoding arg2 ;
12593 void *argp1 = 0 ;
12594 int res1 = 0 ;
12595 int val2 ;
12596 int ecode2 = 0 ;
12597 PyObject * obj0 = 0 ;
12598 PyObject * obj1 = 0 ;
12599 char * kwnames[] = {
12600 (char *) "self",(char *) "encoding", NULL
12601 };
12602
12603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12605 if (!SWIG_IsOK(res1)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12607 }
12608 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12609 ecode2 = SWIG_AsVal_int(obj1, &val2);
12610 if (!SWIG_IsOK(ecode2)) {
12611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12612 }
12613 arg2 = static_cast< wxFontEncoding >(val2);
12614 {
12615 PyThreadState* __tstate = wxPyBeginAllowThreads();
12616 (arg1)->SetEncoding(arg2);
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 resultobj = SWIG_Py_Void();
12621 return resultobj;
12622fail:
12623 return NULL;
12624}
12625
12626
12627SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12628 PyObject *resultobj = 0;
12629 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12630 wxString *arg2 = 0 ;
12631 bool result;
12632 void *argp1 = 0 ;
12633 int res1 = 0 ;
12634 bool temp2 = false ;
12635 PyObject * obj0 = 0 ;
12636 PyObject * obj1 = 0 ;
12637 char * kwnames[] = {
12638 (char *) "self",(char *) "s", NULL
12639 };
12640
12641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12643 if (!SWIG_IsOK(res1)) {
12644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12645 }
12646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12647 {
12648 arg2 = wxString_in_helper(obj1);
12649 if (arg2 == NULL) SWIG_fail;
12650 temp2 = true;
12651 }
12652 {
12653 PyThreadState* __tstate = wxPyBeginAllowThreads();
12654 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 {
12659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12660 }
12661 {
12662 if (temp2)
12663 delete arg2;
12664 }
12665 return resultobj;
12666fail:
12667 {
12668 if (temp2)
12669 delete arg2;
12670 }
12671 return NULL;
d55e5bfc
RD
12672}
12673
12674
1bd55598
RD
12675SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12676 PyObject *resultobj = 0;
12677 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12678 wxString result;
12679 void *argp1 = 0 ;
12680 int res1 = 0 ;
12681 PyObject *swig_obj[1] ;
12682
12683 if (!args) SWIG_fail;
12684 swig_obj[0] = args;
12685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12686 if (!SWIG_IsOK(res1)) {
12687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12688 }
12689 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12690 {
12691 PyThreadState* __tstate = wxPyBeginAllowThreads();
12692 result = ((wxNativeFontInfo const *)arg1)->ToString();
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 {
12697#if wxUSE_UNICODE
12698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12699#else
12700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12701#endif
12702 }
12703 return resultobj;
12704fail:
12705 return NULL;
d55e5bfc
RD
12706}
12707
12708
1bd55598
RD
12709SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12710 PyObject *resultobj = 0;
12711 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12712 wxString result;
12713 void *argp1 = 0 ;
12714 int res1 = 0 ;
12715 PyObject *swig_obj[1] ;
12716
12717 if (!args) SWIG_fail;
12718 swig_obj[0] = args;
12719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12720 if (!SWIG_IsOK(res1)) {
12721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12722 }
12723 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = wxNativeFontInfo___str__(arg1);
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 {
12731#if wxUSE_UNICODE
12732 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12733#else
12734 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12735#endif
12736 }
12737 return resultobj;
12738fail:
12739 return NULL;
12740}
12741
12742
12743SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj = 0;
12745 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12746 wxString *arg2 = 0 ;
12747 bool result;
12748 void *argp1 = 0 ;
12749 int res1 = 0 ;
12750 bool temp2 = false ;
12751 PyObject * obj0 = 0 ;
12752 PyObject * obj1 = 0 ;
12753 char * kwnames[] = {
12754 (char *) "self",(char *) "s", NULL
12755 };
12756
12757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12759 if (!SWIG_IsOK(res1)) {
12760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12761 }
12762 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12763 {
12764 arg2 = wxString_in_helper(obj1);
12765 if (arg2 == NULL) SWIG_fail;
12766 temp2 = true;
12767 }
12768 {
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 {
12775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12776 }
12777 {
12778 if (temp2)
12779 delete arg2;
12780 }
12781 return resultobj;
12782fail:
12783 {
12784 if (temp2)
12785 delete arg2;
12786 }
12787 return NULL;
d55e5bfc
RD
12788}
12789
12790
1bd55598
RD
12791SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12792 PyObject *resultobj = 0;
12793 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12794 wxString result;
12795 void *argp1 = 0 ;
12796 int res1 = 0 ;
12797 PyObject *swig_obj[1] ;
12798
12799 if (!args) SWIG_fail;
12800 swig_obj[0] = args;
12801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12802 if (!SWIG_IsOK(res1)) {
12803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12804 }
12805 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12806 {
12807 PyThreadState* __tstate = wxPyBeginAllowThreads();
12808 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12809 wxPyEndAllowThreads(__tstate);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 }
12812 {
36ed4f51 12813#if wxUSE_UNICODE
1bd55598 12814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12815#else
1bd55598 12816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12817#endif
1bd55598
RD
12818 }
12819 return resultobj;
12820fail:
12821 return NULL;
d55e5bfc
RD
12822}
12823
12824
1bd55598
RD
12825SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12826 PyObject *obj;
12827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12828 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12829 return SWIG_Py_Void();
d55e5bfc
RD
12830}
12831
1bd55598
RD
12832SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12833 return SWIG_Python_InitShadowInstance(args);
12834}
d55e5bfc 12835
1bd55598
RD
12836SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12837 PyObject *resultobj = 0;
12838 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12839 wxString *arg2 = (wxString *) 0 ;
12840 void *argp1 = 0 ;
12841 int res1 = 0 ;
12842 bool temp2 = false ;
12843 PyObject *swig_obj[2] ;
12844
12845 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12851 {
12852 arg2 = wxString_in_helper(swig_obj[1]);
12853 if (arg2 == NULL) SWIG_fail;
12854 temp2 = true;
12855 }
12856 if (arg1) (arg1)->facename = *arg2;
12857
12858 resultobj = SWIG_Py_Void();
12859 {
12860 if (temp2)
12861 delete arg2;
12862 }
12863 return resultobj;
12864fail:
12865 {
12866 if (temp2)
12867 delete arg2;
12868 }
12869 return NULL;
d55e5bfc
RD
12870}
12871
12872
1bd55598
RD
12873SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12874 PyObject *resultobj = 0;
12875 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12876 wxString *result = 0 ;
12877 void *argp1 = 0 ;
12878 int res1 = 0 ;
12879 PyObject *swig_obj[1] ;
12880
12881 if (!args) SWIG_fail;
12882 swig_obj[0] = args;
12883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12884 if (!SWIG_IsOK(res1)) {
12885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12886 }
12887 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12888 result = (wxString *)& ((arg1)->facename);
12889 {
12890#if wxUSE_UNICODE
12891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12892#else
12893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12894#endif
12895 }
12896 return resultobj;
12897fail:
12898 return NULL;
d55e5bfc
RD
12899}
12900
12901
1bd55598
RD
12902SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12903 PyObject *resultobj = 0;
12904 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12905 wxFontEncoding arg2 ;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 int val2 ;
12909 int ecode2 = 0 ;
12910 PyObject *swig_obj[2] ;
12911
12912 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12914 if (!SWIG_IsOK(res1)) {
12915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12916 }
12917 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12918 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12919 if (!SWIG_IsOK(ecode2)) {
12920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12921 }
12922 arg2 = static_cast< wxFontEncoding >(val2);
12923 if (arg1) (arg1)->encoding = arg2;
12924
12925 resultobj = SWIG_Py_Void();
12926 return resultobj;
12927fail:
12928 return NULL;
d55e5bfc
RD
12929}
12930
12931
1bd55598
RD
12932SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12933 PyObject *resultobj = 0;
12934 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12935 wxFontEncoding result;
12936 void *argp1 = 0 ;
12937 int res1 = 0 ;
12938 PyObject *swig_obj[1] ;
12939
12940 if (!args) SWIG_fail;
12941 swig_obj[0] = args;
12942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12943 if (!SWIG_IsOK(res1)) {
12944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12945 }
12946 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12947 result = (wxFontEncoding) ((arg1)->encoding);
12948 resultobj = SWIG_From_int(static_cast< int >(result));
12949 return resultobj;
12950fail:
12951 return NULL;
d07096ad
RD
12952}
12953
12954
1bd55598
RD
12955SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12956 PyObject *resultobj = 0;
12957 wxNativeEncodingInfo *result = 0 ;
12958
12959 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12963 wxPyEndAllowThreads(__tstate);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 }
12966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12967 return resultobj;
12968fail:
12969 return NULL;
d55e5bfc
RD
12970}
12971
12972
1bd55598
RD
12973SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12974 PyObject *resultobj = 0;
12975 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12976 void *argp1 = 0 ;
12977 int res1 = 0 ;
12978 PyObject *swig_obj[1] ;
12979
12980 if (!args) SWIG_fail;
12981 swig_obj[0] = args;
12982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12983 if (!SWIG_IsOK(res1)) {
12984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12985 }
12986 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 delete arg1;
d55e5bfc 12990
1bd55598
RD
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = SWIG_Py_Void();
12995 return resultobj;
12996fail:
12997 return NULL;
12998}
12999
13000
13001SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj = 0;
13003 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13004 wxString *arg2 = 0 ;
13005 bool result;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 bool temp2 = false ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "self",(char *) "s", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13019 }
13020 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
13024 temp2 = true;
13025 }
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 {
13033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13034 }
13035 {
13036 if (temp2)
13037 delete arg2;
13038 }
13039 return resultobj;
13040fail:
13041 {
13042 if (temp2)
13043 delete arg2;
13044 }
13045 return NULL;
d55e5bfc
RD
13046}
13047
13048
1bd55598
RD
13049SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13050 PyObject *resultobj = 0;
13051 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13052 wxString result;
13053 void *argp1 = 0 ;
13054 int res1 = 0 ;
13055 PyObject *swig_obj[1] ;
13056
13057 if (!args) SWIG_fail;
13058 swig_obj[0] = args;
13059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13060 if (!SWIG_IsOK(res1)) {
13061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13062 }
13063 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 {
13071#if wxUSE_UNICODE
13072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13073#else
13074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13075#endif
13076 }
13077 return resultobj;
13078fail:
13079 return NULL;
d55e5bfc
RD
13080}
13081
13082
1bd55598
RD
13083SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13084 PyObject *obj;
13085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13086 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13087 return SWIG_Py_Void();
d55e5bfc
RD
13088}
13089
1bd55598
RD
13090SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13091 return SWIG_Python_InitShadowInstance(args);
13092}
d55e5bfc 13093
1bd55598
RD
13094SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13095 PyObject *resultobj = 0;
13096 wxFontEncoding arg1 ;
13097 wxNativeEncodingInfo *result = 0 ;
13098 int val1 ;
13099 int ecode1 = 0 ;
13100 PyObject * obj0 = 0 ;
13101 char * kwnames[] = {
13102 (char *) "encoding", NULL
13103 };
13104
13105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13106 ecode1 = SWIG_AsVal_int(obj0, &val1);
13107 if (!SWIG_IsOK(ecode1)) {
13108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13109 }
13110 arg1 = static_cast< wxFontEncoding >(val1);
13111 {
13112 PyThreadState* __tstate = wxPyBeginAllowThreads();
13113 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13114 wxPyEndAllowThreads(__tstate);
13115 if (PyErr_Occurred()) SWIG_fail;
13116 }
13117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13118 return resultobj;
13119fail:
13120 return NULL;
13121}
13122
13123
13124SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj = 0;
13126 wxNativeEncodingInfo *arg1 = 0 ;
13127 bool result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 PyObject * obj0 = 0 ;
13131 char * kwnames[] = {
13132 (char *) "info", NULL
13133 };
13134
13135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13136 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13137 if (!SWIG_IsOK(res1)) {
13138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13139 }
13140 if (!argp1) {
13141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13142 }
13143 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13144 {
13145 PyThreadState* __tstate = wxPyBeginAllowThreads();
13146 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13147 wxPyEndAllowThreads(__tstate);
13148 if (PyErr_Occurred()) SWIG_fail;
13149 }
13150 {
13151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13152 }
13153 return resultobj;
13154fail:
13155 return NULL;
d55e5bfc
RD
13156}
13157
13158
1bd55598
RD
13159SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13160 PyObject *resultobj = 0;
13161 wxFontMapper *result = 0 ;
13162
13163 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 result = (wxFontMapper *)new wxFontMapper();
13167 wxPyEndAllowThreads(__tstate);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13171 return resultobj;
13172fail:
13173 return NULL;
d55e5bfc
RD
13174}
13175
13176
1bd55598
RD
13177SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13178 PyObject *resultobj = 0;
13179 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13180 void *argp1 = 0 ;
13181 int res1 = 0 ;
13182 PyObject *swig_obj[1] ;
13183
13184 if (!args) SWIG_fail;
13185 swig_obj[0] = args;
13186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13187 if (!SWIG_IsOK(res1)) {
13188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13189 }
13190 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 delete arg1;
d55e5bfc 13194
1bd55598
RD
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 resultobj = SWIG_Py_Void();
13199 return resultobj;
13200fail:
13201 return NULL;
d55e5bfc
RD
13202}
13203
13204
1bd55598
RD
13205SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13206 PyObject *resultobj = 0;
13207 wxFontMapper *result = 0 ;
13208
13209 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 result = (wxFontMapper *)wxFontMapper::Get();
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13217 return resultobj;
13218fail:
13219 return NULL;
13220}
13221
13222
13223SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13224 PyObject *resultobj = 0;
13225 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13226 wxFontMapper *result = 0 ;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 PyObject * obj0 = 0 ;
13230 char * kwnames[] = {
13231 (char *) "mapper", NULL
13232 };
13233
13234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13236 if (!SWIG_IsOK(res1)) {
13237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13238 }
13239 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13247 return resultobj;
13248fail:
13249 return NULL;
13250}
13251
13252
13253SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13254 PyObject *resultobj = 0;
13255 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13256 wxString *arg2 = 0 ;
13257 bool arg3 = (bool) true ;
13258 wxFontEncoding result;
13259 void *argp1 = 0 ;
13260 int res1 = 0 ;
13261 bool temp2 = false ;
13262 bool val3 ;
13263 int ecode3 = 0 ;
13264 PyObject * obj0 = 0 ;
13265 PyObject * obj1 = 0 ;
13266 PyObject * obj2 = 0 ;
13267 char * kwnames[] = {
13268 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13269 };
13270
13271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13273 if (!SWIG_IsOK(res1)) {
13274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13275 }
13276 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13277 {
13278 arg2 = wxString_in_helper(obj1);
13279 if (arg2 == NULL) SWIG_fail;
13280 temp2 = true;
13281 }
13282 if (obj2) {
13283 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13284 if (!SWIG_IsOK(ecode3)) {
13285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13286 }
13287 arg3 = static_cast< bool >(val3);
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_From_int(static_cast< int >(result));
13296 {
13297 if (temp2)
13298 delete arg2;
13299 }
13300 return resultobj;
13301fail:
13302 {
13303 if (temp2)
13304 delete arg2;
13305 }
13306 return NULL;
d55e5bfc
RD
13307}
13308
13309
1bd55598
RD
13310SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 size_t result;
13313
13314 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13315 {
13316 PyThreadState* __tstate = wxPyBeginAllowThreads();
13317 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13322 return resultobj;
13323fail:
13324 return NULL;
13325}
13326
13327
13328SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13329 PyObject *resultobj = 0;
13330 size_t arg1 ;
13331 wxFontEncoding result;
13332 size_t val1 ;
13333 int ecode1 = 0 ;
13334 PyObject * obj0 = 0 ;
13335 char * kwnames[] = {
13336 (char *) "n", NULL
13337 };
13338
13339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13340 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13341 if (!SWIG_IsOK(ecode1)) {
13342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13343 }
13344 arg1 = static_cast< size_t >(val1);
13345 {
13346 PyThreadState* __tstate = wxPyBeginAllowThreads();
13347 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 resultobj = SWIG_From_int(static_cast< int >(result));
13352 return resultobj;
13353fail:
13354 return NULL;
13355}
13356
13357
13358SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13359 PyObject *resultobj = 0;
13360 wxFontEncoding arg1 ;
13361 wxString result;
13362 int val1 ;
13363 int ecode1 = 0 ;
13364 PyObject * obj0 = 0 ;
13365 char * kwnames[] = {
13366 (char *) "encoding", NULL
13367 };
13368
13369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13370 ecode1 = SWIG_AsVal_int(obj0, &val1);
13371 if (!SWIG_IsOK(ecode1)) {
13372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13373 }
13374 arg1 = static_cast< wxFontEncoding >(val1);
13375 {
13376 PyThreadState* __tstate = wxPyBeginAllowThreads();
13377 result = wxFontMapper::GetEncodingName(arg1);
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382#if wxUSE_UNICODE
13383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13384#else
13385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13386#endif
13387 }
13388 return resultobj;
13389fail:
13390 return NULL;
d55e5bfc
RD
13391}
13392
13393
1bd55598
RD
13394SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj = 0;
13396 wxFontEncoding arg1 ;
13397 wxString result;
13398 int val1 ;
13399 int ecode1 = 0 ;
13400 PyObject * obj0 = 0 ;
13401 char * kwnames[] = {
13402 (char *) "encoding", NULL
13403 };
13404
13405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13406 ecode1 = SWIG_AsVal_int(obj0, &val1);
13407 if (!SWIG_IsOK(ecode1)) {
13408 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13409 }
13410 arg1 = static_cast< wxFontEncoding >(val1);
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = wxFontMapper::GetEncodingDescription(arg1);
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 {
13418#if wxUSE_UNICODE
13419 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13420#else
13421 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13422#endif
13423 }
13424 return resultobj;
13425fail:
13426 return NULL;
d55e5bfc
RD
13427}
13428
13429
1bd55598
RD
13430SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 wxString *arg1 = 0 ;
13433 wxFontEncoding result;
13434 bool temp1 = false ;
13435 PyObject * obj0 = 0 ;
13436 char * kwnames[] = {
13437 (char *) "name", NULL
13438 };
13439
13440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13441 {
13442 arg1 = wxString_in_helper(obj0);
13443 if (arg1 == NULL) SWIG_fail;
13444 temp1 = true;
13445 }
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13449 wxPyEndAllowThreads(__tstate);
13450 if (PyErr_Occurred()) SWIG_fail;
13451 }
13452 resultobj = SWIG_From_int(static_cast< int >(result));
13453 {
13454 if (temp1)
13455 delete arg1;
13456 }
13457 return resultobj;
13458fail:
13459 {
13460 if (temp1)
13461 delete arg1;
13462 }
13463 return NULL;
d55e5bfc
RD
13464}
13465
13466
1bd55598
RD
13467SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13468 PyObject *resultobj = 0;
13469 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13470 wxString *arg2 = 0 ;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 bool temp2 = false ;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char * kwnames[] = {
13477 (char *) "self",(char *) "prefix", NULL
13478 };
13479
13480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13482 if (!SWIG_IsOK(res1)) {
13483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13484 }
13485 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13486 {
13487 arg2 = wxString_in_helper(obj1);
13488 if (arg2 == NULL) SWIG_fail;
13489 temp2 = true;
13490 }
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 (arg1)->SetConfigPath((wxString const &)*arg2);
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_Py_Void();
13498 {
13499 if (temp2)
13500 delete arg2;
13501 }
13502 return resultobj;
13503fail:
13504 {
13505 if (temp2)
13506 delete arg2;
13507 }
13508 return NULL;
13509}
13510
13511
13512SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13513 PyObject *resultobj = 0;
13514 wxString result;
13515
13516 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = wxFontMapper::GetDefaultConfigPath();
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 {
13524#if wxUSE_UNICODE
13525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13526#else
13527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13528#endif
13529 }
13530 return resultobj;
13531fail:
13532 return NULL;
13533}
13534
13535
13536SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj = 0;
13538 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13539 wxFontEncoding arg2 ;
13540 wxString const &arg3_defvalue = wxPyEmptyString ;
13541 wxString *arg3 = (wxString *) &arg3_defvalue ;
13542 bool arg4 = (bool) true ;
13543 PyObject *result = 0 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 int val2 ;
13547 int ecode2 = 0 ;
13548 bool temp3 = false ;
13549 bool val4 ;
13550 int ecode4 = 0 ;
13551 PyObject * obj0 = 0 ;
13552 PyObject * obj1 = 0 ;
13553 PyObject * obj2 = 0 ;
13554 PyObject * obj3 = 0 ;
13555 char * kwnames[] = {
13556 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13557 };
13558
13559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13561 if (!SWIG_IsOK(res1)) {
13562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13563 }
13564 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13565 ecode2 = SWIG_AsVal_int(obj1, &val2);
13566 if (!SWIG_IsOK(ecode2)) {
13567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13568 }
13569 arg2 = static_cast< wxFontEncoding >(val2);
13570 if (obj2) {
36ed4f51 13571 {
1bd55598
RD
13572 arg3 = wxString_in_helper(obj2);
13573 if (arg3 == NULL) SWIG_fail;
13574 temp3 = true;
36ed4f51 13575 }
1bd55598
RD
13576 }
13577 if (obj3) {
13578 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13579 if (!SWIG_IsOK(ecode4)) {
13580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13581 }
13582 arg4 = static_cast< bool >(val4);
13583 }
13584 {
13585 PyThreadState* __tstate = wxPyBeginAllowThreads();
13586 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 resultobj = result;
13591 {
13592 if (temp3)
13593 delete arg3;
13594 }
13595 return resultobj;
13596fail:
13597 {
13598 if (temp3)
13599 delete arg3;
13600 }
13601 return NULL;
13602}
13603
13604
13605SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13606 PyObject *resultobj = 0;
13607 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13608 wxFontEncoding arg2 ;
13609 wxString const &arg3_defvalue = wxPyEmptyString ;
13610 wxString *arg3 = (wxString *) &arg3_defvalue ;
13611 bool result;
13612 void *argp1 = 0 ;
13613 int res1 = 0 ;
13614 int val2 ;
13615 int ecode2 = 0 ;
13616 bool temp3 = false ;
13617 PyObject * obj0 = 0 ;
13618 PyObject * obj1 = 0 ;
13619 PyObject * obj2 = 0 ;
13620 char * kwnames[] = {
13621 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13622 };
13623
13624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13626 if (!SWIG_IsOK(res1)) {
13627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13628 }
13629 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13630 ecode2 = SWIG_AsVal_int(obj1, &val2);
13631 if (!SWIG_IsOK(ecode2)) {
13632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13633 }
13634 arg2 = static_cast< wxFontEncoding >(val2);
13635 if (obj2) {
36ed4f51 13636 {
1bd55598
RD
13637 arg3 = wxString_in_helper(obj2);
13638 if (arg3 == NULL) SWIG_fail;
13639 temp3 = true;
36ed4f51 13640 }
1bd55598
RD
13641 }
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 {
13649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13650 }
13651 {
13652 if (temp3)
13653 delete arg3;
13654 }
13655 return resultobj;
13656fail:
13657 {
13658 if (temp3)
13659 delete arg3;
13660 }
13661 return NULL;
13662}
13663
13664
13665SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13666 PyObject *resultobj = 0;
13667 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13668 wxWindow *arg2 = (wxWindow *) 0 ;
13669 void *argp1 = 0 ;
13670 int res1 = 0 ;
13671 void *argp2 = 0 ;
13672 int res2 = 0 ;
13673 PyObject * obj0 = 0 ;
13674 PyObject * obj1 = 0 ;
13675 char * kwnames[] = {
13676 (char *) "self",(char *) "parent", NULL
13677 };
13678
13679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13681 if (!SWIG_IsOK(res1)) {
13682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13683 }
13684 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13686 if (!SWIG_IsOK(res2)) {
13687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13688 }
13689 arg2 = reinterpret_cast< wxWindow * >(argp2);
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 (arg1)->SetDialogParent(arg2);
13693 wxPyEndAllowThreads(__tstate);
13694 if (PyErr_Occurred()) SWIG_fail;
13695 }
13696 resultobj = SWIG_Py_Void();
13697 return resultobj;
13698fail:
13699 return NULL;
13700}
13701
13702
13703SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13704 PyObject *resultobj = 0;
13705 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13706 wxString *arg2 = 0 ;
13707 void *argp1 = 0 ;
13708 int res1 = 0 ;
13709 bool temp2 = false ;
13710 PyObject * obj0 = 0 ;
13711 PyObject * obj1 = 0 ;
13712 char * kwnames[] = {
13713 (char *) "self",(char *) "title", NULL
13714 };
13715
13716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13718 if (!SWIG_IsOK(res1)) {
13719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13720 }
13721 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13722 {
13723 arg2 = wxString_in_helper(obj1);
13724 if (arg2 == NULL) SWIG_fail;
13725 temp2 = true;
13726 }
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 (arg1)->SetDialogTitle((wxString const &)*arg2);
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 resultobj = SWIG_Py_Void();
13734 {
13735 if (temp2)
13736 delete arg2;
13737 }
13738 return resultobj;
13739fail:
13740 {
13741 if (temp2)
13742 delete arg2;
13743 }
13744 return NULL;
13745}
13746
13747
13748SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13749 PyObject *obj;
13750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13751 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13752 return SWIG_Py_Void();
13753}
13754
13755SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13756 return SWIG_Python_InitShadowInstance(args);
13757}
13758
13759SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 int arg1 ;
13762 int arg2 ;
13763 int arg3 ;
13764 int arg4 ;
13765 bool arg5 = (bool) false ;
13766 wxString const &arg6_defvalue = wxPyEmptyString ;
13767 wxString *arg6 = (wxString *) &arg6_defvalue ;
13768 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13769 wxFont *result = 0 ;
13770 int val1 ;
13771 int ecode1 = 0 ;
13772 int val2 ;
13773 int ecode2 = 0 ;
13774 int val3 ;
13775 int ecode3 = 0 ;
13776 int val4 ;
13777 int ecode4 = 0 ;
13778 bool val5 ;
13779 int ecode5 = 0 ;
13780 bool temp6 = false ;
13781 int val7 ;
13782 int ecode7 = 0 ;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 PyObject * obj2 = 0 ;
13786 PyObject * obj3 = 0 ;
13787 PyObject * obj4 = 0 ;
13788 PyObject * obj5 = 0 ;
13789 PyObject * obj6 = 0 ;
13790 char * kwnames[] = {
13791 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13792 };
13793
13794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13795 ecode1 = SWIG_AsVal_int(obj0, &val1);
13796 if (!SWIG_IsOK(ecode1)) {
13797 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13798 }
13799 arg1 = static_cast< int >(val1);
13800 ecode2 = SWIG_AsVal_int(obj1, &val2);
13801 if (!SWIG_IsOK(ecode2)) {
13802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13803 }
13804 arg2 = static_cast< int >(val2);
13805 ecode3 = SWIG_AsVal_int(obj2, &val3);
13806 if (!SWIG_IsOK(ecode3)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13808 }
13809 arg3 = static_cast< int >(val3);
13810 ecode4 = SWIG_AsVal_int(obj3, &val4);
13811 if (!SWIG_IsOK(ecode4)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13813 }
13814 arg4 = static_cast< int >(val4);
13815 if (obj4) {
13816 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13817 if (!SWIG_IsOK(ecode5)) {
13818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13819 }
13820 arg5 = static_cast< bool >(val5);
13821 }
13822 if (obj5) {
d55e5bfc 13823 {
1bd55598
RD
13824 arg6 = wxString_in_helper(obj5);
13825 if (arg6 == NULL) SWIG_fail;
13826 temp6 = true;
d55e5bfc 13827 }
1bd55598
RD
13828 }
13829 if (obj6) {
13830 ecode7 = SWIG_AsVal_int(obj6, &val7);
13831 if (!SWIG_IsOK(ecode7)) {
13832 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13833 }
13834 arg7 = static_cast< wxFontEncoding >(val7);
13835 }
13836 {
13837 if (!wxPyCheckForApp()) SWIG_fail;
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13844 {
13845 if (temp6)
13846 delete arg6;
13847 }
13848 return resultobj;
13849fail:
13850 {
13851 if (temp6)
13852 delete arg6;
13853 }
13854 return NULL;
d55e5bfc
RD
13855}
13856
13857
1bd55598
RD
13858SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13859 PyObject *resultobj = 0;
13860 wxFont *arg1 = (wxFont *) 0 ;
13861 void *argp1 = 0 ;
13862 int res1 = 0 ;
13863 PyObject *swig_obj[1] ;
13864
13865 if (!args) SWIG_fail;
13866 swig_obj[0] = args;
13867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13868 if (!SWIG_IsOK(res1)) {
13869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13870 }
13871 arg1 = reinterpret_cast< wxFont * >(argp1);
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 delete arg1;
d55e5bfc 13875
1bd55598
RD
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = SWIG_Py_Void();
13880 return resultobj;
13881fail:
13882 return NULL;
13883}
13884
13885
13886SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = 0;
13888 wxNativeFontInfo *arg1 = 0 ;
13889 wxFont *result = 0 ;
13890 void *argp1 = 0 ;
13891 int res1 = 0 ;
13892 PyObject * obj0 = 0 ;
13893 char * kwnames[] = {
13894 (char *) "info", NULL
13895 };
13896
13897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13898 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13901 }
13902 if (!argp1) {
13903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13904 }
13905 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13906 {
13907 if (!wxPyCheckForApp()) SWIG_fail;
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13914 return resultobj;
13915fail:
13916 return NULL;
d55e5bfc
RD
13917}
13918
13919
1bd55598
RD
13920SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13921 PyObject *resultobj = 0;
13922 wxString *arg1 = 0 ;
13923 wxFont *result = 0 ;
13924 bool temp1 = false ;
13925 PyObject * obj0 = 0 ;
13926 char * kwnames[] = {
13927 (char *) "info", NULL
13928 };
13929
13930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13931 {
13932 arg1 = wxString_in_helper(obj0);
13933 if (arg1 == NULL) SWIG_fail;
13934 temp1 = true;
13935 }
13936 {
13937 if (!wxPyCheckForApp()) SWIG_fail;
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13940 wxPyEndAllowThreads(__tstate);
13941 if (PyErr_Occurred()) SWIG_fail;
13942 }
13943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13944 {
13945 if (temp1)
13946 delete arg1;
13947 }
13948 return resultobj;
13949fail:
13950 {
13951 if (temp1)
13952 delete arg1;
13953 }
13954 return NULL;
13955}
13956
13957
13958SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13959 PyObject *resultobj = 0;
13960 int arg1 ;
13961 wxFontFamily arg2 ;
13962 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13963 wxString const &arg4_defvalue = wxPyEmptyString ;
13964 wxString *arg4 = (wxString *) &arg4_defvalue ;
13965 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13966 wxFont *result = 0 ;
13967 int val1 ;
13968 int ecode1 = 0 ;
13969 int val2 ;
13970 int ecode2 = 0 ;
13971 int val3 ;
13972 int ecode3 = 0 ;
13973 bool temp4 = false ;
13974 int val5 ;
13975 int ecode5 = 0 ;
13976 PyObject * obj0 = 0 ;
13977 PyObject * obj1 = 0 ;
13978 PyObject * obj2 = 0 ;
13979 PyObject * obj3 = 0 ;
13980 PyObject * obj4 = 0 ;
13981 char * kwnames[] = {
13982 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13983 };
13984
13985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13986 ecode1 = SWIG_AsVal_int(obj0, &val1);
13987 if (!SWIG_IsOK(ecode1)) {
13988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13989 }
13990 arg1 = static_cast< int >(val1);
13991 ecode2 = SWIG_AsVal_int(obj1, &val2);
13992 if (!SWIG_IsOK(ecode2)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13994 }
13995 arg2 = static_cast< wxFontFamily >(val2);
13996 if (obj2) {
13997 ecode3 = SWIG_AsVal_int(obj2, &val3);
13998 if (!SWIG_IsOK(ecode3)) {
13999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14000 }
14001 arg3 = static_cast< int >(val3);
14002 }
14003 if (obj3) {
36ed4f51 14004 {
1bd55598
RD
14005 arg4 = wxString_in_helper(obj3);
14006 if (arg4 == NULL) SWIG_fail;
14007 temp4 = true;
36ed4f51 14008 }
1bd55598
RD
14009 }
14010 if (obj4) {
14011 ecode5 = SWIG_AsVal_int(obj4, &val5);
14012 if (!SWIG_IsOK(ecode5)) {
14013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14014 }
14015 arg5 = static_cast< wxFontEncoding >(val5);
14016 }
14017 {
14018 if (!wxPyCheckForApp()) SWIG_fail;
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14025 {
14026 if (temp4)
14027 delete arg4;
14028 }
14029 return resultobj;
14030fail:
14031 {
14032 if (temp4)
14033 delete arg4;
14034 }
14035 return NULL;
14036}
14037
14038
14039SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14040 PyObject *resultobj = 0;
14041 wxSize *arg1 = 0 ;
14042 int arg2 ;
14043 int arg3 ;
14044 int arg4 ;
14045 bool arg5 = (bool) false ;
14046 wxString const &arg6_defvalue = wxEmptyString ;
14047 wxString *arg6 = (wxString *) &arg6_defvalue ;
14048 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14049 wxFont *result = 0 ;
14050 wxSize temp1 ;
14051 int val2 ;
14052 int ecode2 = 0 ;
14053 int val3 ;
14054 int ecode3 = 0 ;
14055 int val4 ;
14056 int ecode4 = 0 ;
14057 bool val5 ;
14058 int ecode5 = 0 ;
14059 bool temp6 = false ;
14060 int val7 ;
14061 int ecode7 = 0 ;
14062 PyObject * obj0 = 0 ;
14063 PyObject * obj1 = 0 ;
14064 PyObject * obj2 = 0 ;
14065 PyObject * obj3 = 0 ;
14066 PyObject * obj4 = 0 ;
14067 PyObject * obj5 = 0 ;
14068 PyObject * obj6 = 0 ;
14069 char * kwnames[] = {
14070 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14071 };
14072
14073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14074 {
14075 arg1 = &temp1;
14076 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14077 }
14078 ecode2 = SWIG_AsVal_int(obj1, &val2);
14079 if (!SWIG_IsOK(ecode2)) {
14080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14081 }
14082 arg2 = static_cast< int >(val2);
14083 ecode3 = SWIG_AsVal_int(obj2, &val3);
14084 if (!SWIG_IsOK(ecode3)) {
14085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14086 }
14087 arg3 = static_cast< int >(val3);
14088 ecode4 = SWIG_AsVal_int(obj3, &val4);
14089 if (!SWIG_IsOK(ecode4)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14091 }
14092 arg4 = static_cast< int >(val4);
14093 if (obj4) {
14094 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14095 if (!SWIG_IsOK(ecode5)) {
14096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14097 }
14098 arg5 = static_cast< bool >(val5);
14099 }
14100 if (obj5) {
d55e5bfc 14101 {
1bd55598
RD
14102 arg6 = wxString_in_helper(obj5);
14103 if (arg6 == NULL) SWIG_fail;
14104 temp6 = true;
d55e5bfc 14105 }
1bd55598
RD
14106 }
14107 if (obj6) {
14108 ecode7 = SWIG_AsVal_int(obj6, &val7);
14109 if (!SWIG_IsOK(ecode7)) {
14110 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14111 }
14112 arg7 = static_cast< wxFontEncoding >(val7);
14113 }
14114 {
14115 if (!wxPyCheckForApp()) SWIG_fail;
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14122 {
14123 if (temp6)
14124 delete arg6;
14125 }
14126 return resultobj;
14127fail:
14128 {
14129 if (temp6)
14130 delete arg6;
14131 }
14132 return NULL;
14133}
14134
14135
14136SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj = 0;
14138 wxSize *arg1 = 0 ;
14139 wxFontFamily arg2 ;
14140 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14141 wxString const &arg4_defvalue = wxEmptyString ;
14142 wxString *arg4 = (wxString *) &arg4_defvalue ;
14143 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14144 wxFont *result = 0 ;
14145 wxSize temp1 ;
14146 int val2 ;
14147 int ecode2 = 0 ;
14148 int val3 ;
14149 int ecode3 = 0 ;
14150 bool temp4 = false ;
14151 int val5 ;
14152 int ecode5 = 0 ;
14153 PyObject * obj0 = 0 ;
14154 PyObject * obj1 = 0 ;
14155 PyObject * obj2 = 0 ;
14156 PyObject * obj3 = 0 ;
14157 PyObject * obj4 = 0 ;
14158 char * kwnames[] = {
14159 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14160 };
14161
14162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14163 {
14164 arg1 = &temp1;
14165 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14166 }
14167 ecode2 = SWIG_AsVal_int(obj1, &val2);
14168 if (!SWIG_IsOK(ecode2)) {
14169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14170 }
14171 arg2 = static_cast< wxFontFamily >(val2);
14172 if (obj2) {
14173 ecode3 = SWIG_AsVal_int(obj2, &val3);
14174 if (!SWIG_IsOK(ecode3)) {
14175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14176 }
14177 arg3 = static_cast< int >(val3);
14178 }
14179 if (obj3) {
36ed4f51 14180 {
1bd55598
RD
14181 arg4 = wxString_in_helper(obj3);
14182 if (arg4 == NULL) SWIG_fail;
14183 temp4 = true;
36ed4f51 14184 }
1bd55598
RD
14185 }
14186 if (obj4) {
14187 ecode5 = SWIG_AsVal_int(obj4, &val5);
14188 if (!SWIG_IsOK(ecode5)) {
14189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14190 }
14191 arg5 = static_cast< wxFontEncoding >(val5);
14192 }
14193 {
14194 if (!wxPyCheckForApp()) SWIG_fail;
14195 PyThreadState* __tstate = wxPyBeginAllowThreads();
14196 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14201 {
14202 if (temp4)
14203 delete arg4;
14204 }
14205 return resultobj;
14206fail:
14207 {
14208 if (temp4)
14209 delete arg4;
14210 }
14211 return NULL;
d55e5bfc
RD
14212}
14213
14214
b39fe951 14215SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14216 PyObject *resultobj = 0;
14217 wxFont *arg1 = (wxFont *) 0 ;
14218 bool result;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 PyObject *swig_obj[1] ;
14222
14223 if (!args) SWIG_fail;
14224 swig_obj[0] = args;
14225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14226 if (!SWIG_IsOK(res1)) {
b39fe951 14227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14228 }
14229 arg1 = reinterpret_cast< wxFont * >(argp1);
14230 {
14231 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14232 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 {
14237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14238 }
14239 return resultobj;
14240fail:
14241 return NULL;
14242}
14243
14244
14245SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14246 PyObject *resultobj = 0;
14247 wxFont *arg1 = (wxFont *) 0 ;
14248 wxFont *arg2 = (wxFont *) 0 ;
14249 bool result;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 void *argp2 = 0 ;
14253 int res2 = 0 ;
14254 PyObject * obj0 = 0 ;
14255 PyObject * obj1 = 0 ;
14256 char * kwnames[] = {
14257 (char *) "self",(char *) "other", NULL
14258 };
14259
14260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14262 if (!SWIG_IsOK(res1)) {
14263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14264 }
14265 arg1 = reinterpret_cast< wxFont * >(argp1);
14266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14267 if (!SWIG_IsOK(res2)) {
14268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14269 }
14270 arg2 = reinterpret_cast< wxFont * >(argp2);
14271 {
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14274 wxPyEndAllowThreads(__tstate);
14275 if (PyErr_Occurred()) SWIG_fail;
14276 }
14277 {
14278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14279 }
14280 return resultobj;
14281fail:
14282 return NULL;
14283}
14284
14285
14286SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14287 PyObject *resultobj = 0;
14288 wxFont *arg1 = (wxFont *) 0 ;
14289 wxFont *arg2 = (wxFont *) 0 ;
14290 bool result;
14291 void *argp1 = 0 ;
14292 int res1 = 0 ;
14293 void *argp2 = 0 ;
14294 int res2 = 0 ;
14295 PyObject * obj0 = 0 ;
14296 PyObject * obj1 = 0 ;
14297 char * kwnames[] = {
14298 (char *) "self",(char *) "other", NULL
14299 };
14300
14301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14303 if (!SWIG_IsOK(res1)) {
14304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14305 }
14306 arg1 = reinterpret_cast< wxFont * >(argp1);
14307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14308 if (!SWIG_IsOK(res2)) {
14309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14310 }
14311 arg2 = reinterpret_cast< wxFont * >(argp2);
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 {
14319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14320 }
14321 return resultobj;
14322fail:
14323 return NULL;
d55e5bfc
RD
14324}
14325
14326
1bd55598
RD
14327SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14328 PyObject *resultobj = 0;
14329 wxFont *arg1 = (wxFont *) 0 ;
14330 int result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 PyObject *swig_obj[1] ;
14334
14335 if (!args) SWIG_fail;
14336 swig_obj[0] = args;
14337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14340 }
14341 arg1 = reinterpret_cast< wxFont * >(argp1);
14342 {
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = (int)((wxFont const *)arg1)->GetPointSize();
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 resultobj = SWIG_From_int(static_cast< int >(result));
14349 return resultobj;
14350fail:
14351 return NULL;
d55e5bfc
RD
14352}
14353
14354
1bd55598
RD
14355SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *resultobj = 0;
14357 wxFont *arg1 = (wxFont *) 0 ;
14358 wxSize result;
14359 void *argp1 = 0 ;
14360 int res1 = 0 ;
14361 PyObject *swig_obj[1] ;
14362
14363 if (!args) SWIG_fail;
14364 swig_obj[0] = args;
14365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14366 if (!SWIG_IsOK(res1)) {
14367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14368 }
14369 arg1 = reinterpret_cast< wxFont * >(argp1);
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = ((wxFont const *)arg1)->GetPixelSize();
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14377 return resultobj;
14378fail:
14379 return NULL;
d55e5bfc
RD
14380}
14381
14382
1bd55598
RD
14383SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14384 PyObject *resultobj = 0;
14385 wxFont *arg1 = (wxFont *) 0 ;
14386 bool result;
14387 void *argp1 = 0 ;
14388 int res1 = 0 ;
14389 PyObject *swig_obj[1] ;
14390
14391 if (!args) SWIG_fail;
14392 swig_obj[0] = args;
14393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14394 if (!SWIG_IsOK(res1)) {
14395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14396 }
14397 arg1 = reinterpret_cast< wxFont * >(argp1);
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 {
14405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14406 }
14407 return resultobj;
14408fail:
14409 return NULL;
d55e5bfc
RD
14410}
14411
14412
1bd55598
RD
14413SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14414 PyObject *resultobj = 0;
14415 wxFont *arg1 = (wxFont *) 0 ;
14416 int result;
14417 void *argp1 = 0 ;
14418 int res1 = 0 ;
14419 PyObject *swig_obj[1] ;
14420
14421 if (!args) SWIG_fail;
14422 swig_obj[0] = args;
14423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14426 }
14427 arg1 = reinterpret_cast< wxFont * >(argp1);
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (int)((wxFont const *)arg1)->GetFamily();
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 resultobj = SWIG_From_int(static_cast< int >(result));
14435 return resultobj;
14436fail:
14437 return NULL;
d55e5bfc
RD
14438}
14439
14440
1bd55598
RD
14441SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14442 PyObject *resultobj = 0;
14443 wxFont *arg1 = (wxFont *) 0 ;
14444 int result;
14445 void *argp1 = 0 ;
14446 int res1 = 0 ;
14447 PyObject *swig_obj[1] ;
14448
14449 if (!args) SWIG_fail;
14450 swig_obj[0] = args;
14451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14452 if (!SWIG_IsOK(res1)) {
14453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14454 }
14455 arg1 = reinterpret_cast< wxFont * >(argp1);
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (int)((wxFont const *)arg1)->GetStyle();
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = SWIG_From_int(static_cast< int >(result));
14463 return resultobj;
14464fail:
14465 return NULL;
d55e5bfc
RD
14466}
14467
14468
1bd55598
RD
14469SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14470 PyObject *resultobj = 0;
14471 wxFont *arg1 = (wxFont *) 0 ;
14472 int result;
14473 void *argp1 = 0 ;
14474 int res1 = 0 ;
14475 PyObject *swig_obj[1] ;
14476
14477 if (!args) SWIG_fail;
14478 swig_obj[0] = args;
14479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14480 if (!SWIG_IsOK(res1)) {
14481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14482 }
14483 arg1 = reinterpret_cast< wxFont * >(argp1);
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 result = (int)((wxFont const *)arg1)->GetWeight();
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 resultobj = SWIG_From_int(static_cast< int >(result));
14491 return resultobj;
14492fail:
14493 return NULL;
d55e5bfc
RD
14494}
14495
14496
1bd55598
RD
14497SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14498 PyObject *resultobj = 0;
14499 wxFont *arg1 = (wxFont *) 0 ;
14500 bool result;
14501 void *argp1 = 0 ;
14502 int res1 = 0 ;
14503 PyObject *swig_obj[1] ;
14504
14505 if (!args) SWIG_fail;
14506 swig_obj[0] = args;
14507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14508 if (!SWIG_IsOK(res1)) {
14509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14510 }
14511 arg1 = reinterpret_cast< wxFont * >(argp1);
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 {
14519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14520 }
14521 return resultobj;
14522fail:
14523 return NULL;
d55e5bfc
RD
14524}
14525
14526
1bd55598
RD
14527SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14528 PyObject *resultobj = 0;
14529 wxFont *arg1 = (wxFont *) 0 ;
14530 wxString result;
14531 void *argp1 = 0 ;
14532 int res1 = 0 ;
14533 PyObject *swig_obj[1] ;
14534
14535 if (!args) SWIG_fail;
14536 swig_obj[0] = args;
14537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14540 }
14541 arg1 = reinterpret_cast< wxFont * >(argp1);
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = ((wxFont const *)arg1)->GetFaceName();
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 {
14549#if wxUSE_UNICODE
14550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14551#else
14552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14553#endif
14554 }
14555 return resultobj;
14556fail:
14557 return NULL;
d55e5bfc
RD
14558}
14559
14560
1bd55598
RD
14561SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14562 PyObject *resultobj = 0;
14563 wxFont *arg1 = (wxFont *) 0 ;
14564 wxFontEncoding result;
14565 void *argp1 = 0 ;
14566 int res1 = 0 ;
14567 PyObject *swig_obj[1] ;
14568
14569 if (!args) SWIG_fail;
14570 swig_obj[0] = args;
14571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14572 if (!SWIG_IsOK(res1)) {
14573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14574 }
14575 arg1 = reinterpret_cast< wxFont * >(argp1);
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14579 wxPyEndAllowThreads(__tstate);
14580 if (PyErr_Occurred()) SWIG_fail;
14581 }
14582 resultobj = SWIG_From_int(static_cast< int >(result));
14583 return resultobj;
14584fail:
14585 return NULL;
d55e5bfc
RD
14586}
14587
14588
1bd55598
RD
14589SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14590 PyObject *resultobj = 0;
14591 wxFont *arg1 = (wxFont *) 0 ;
14592 wxNativeFontInfo *result = 0 ;
14593 void *argp1 = 0 ;
14594 int res1 = 0 ;
14595 PyObject *swig_obj[1] ;
14596
14597 if (!args) SWIG_fail;
14598 swig_obj[0] = args;
14599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14600 if (!SWIG_IsOK(res1)) {
14601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14602 }
14603 arg1 = reinterpret_cast< wxFont * >(argp1);
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14611 return resultobj;
14612fail:
14613 return NULL;
d55e5bfc
RD
14614}
14615
14616
1bd55598
RD
14617SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14618 PyObject *resultobj = 0;
14619 wxFont *arg1 = (wxFont *) 0 ;
14620 bool result;
14621 void *argp1 = 0 ;
14622 int res1 = 0 ;
14623 PyObject *swig_obj[1] ;
14624
14625 if (!args) SWIG_fail;
14626 swig_obj[0] = args;
14627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14628 if (!SWIG_IsOK(res1)) {
14629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14630 }
14631 arg1 = reinterpret_cast< wxFont * >(argp1);
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 {
14639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14640 }
14641 return resultobj;
14642fail:
14643 return NULL;
d55e5bfc
RD
14644}
14645
14646
1bd55598
RD
14647SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14648 PyObject *resultobj = 0;
14649 wxFont *arg1 = (wxFont *) 0 ;
14650 wxString result;
14651 void *argp1 = 0 ;
14652 int res1 = 0 ;
14653 PyObject *swig_obj[1] ;
14654
14655 if (!args) SWIG_fail;
14656 swig_obj[0] = args;
14657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14658 if (!SWIG_IsOK(res1)) {
14659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14660 }
14661 arg1 = reinterpret_cast< wxFont * >(argp1);
14662 {
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 {
14669#if wxUSE_UNICODE
14670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14671#else
14672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14673#endif
14674 }
14675 return resultobj;
14676fail:
14677 return NULL;
d55e5bfc
RD
14678}
14679
14680
1bd55598
RD
14681SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14682 PyObject *resultobj = 0;
14683 wxFont *arg1 = (wxFont *) 0 ;
14684 wxString result;
14685 void *argp1 = 0 ;
14686 int res1 = 0 ;
14687 PyObject *swig_obj[1] ;
14688
14689 if (!args) SWIG_fail;
14690 swig_obj[0] = args;
14691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14692 if (!SWIG_IsOK(res1)) {
14693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14694 }
14695 arg1 = reinterpret_cast< wxFont * >(argp1);
14696 {
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 {
14703#if wxUSE_UNICODE
14704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14705#else
14706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14707#endif
14708 }
14709 return resultobj;
14710fail:
14711 return NULL;
14712}
14713
14714
14715SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj = 0;
14717 wxFont *arg1 = (wxFont *) 0 ;
14718 int arg2 ;
14719 void *argp1 = 0 ;
14720 int res1 = 0 ;
14721 int val2 ;
14722 int ecode2 = 0 ;
14723 PyObject * obj0 = 0 ;
14724 PyObject * obj1 = 0 ;
14725 char * kwnames[] = {
14726 (char *) "self",(char *) "pointSize", NULL
14727 };
14728
14729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14731 if (!SWIG_IsOK(res1)) {
14732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14733 }
14734 arg1 = reinterpret_cast< wxFont * >(argp1);
14735 ecode2 = SWIG_AsVal_int(obj1, &val2);
14736 if (!SWIG_IsOK(ecode2)) {
14737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14738 }
14739 arg2 = static_cast< int >(val2);
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 (arg1)->SetPointSize(arg2);
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 resultobj = SWIG_Py_Void();
14747 return resultobj;
14748fail:
14749 return NULL;
14750}
14751
14752
14753SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14754 PyObject *resultobj = 0;
14755 wxFont *arg1 = (wxFont *) 0 ;
14756 wxSize *arg2 = 0 ;
14757 void *argp1 = 0 ;
14758 int res1 = 0 ;
14759 wxSize temp2 ;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762 char * kwnames[] = {
14763 (char *) "self",(char *) "pixelSize", NULL
14764 };
14765
14766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 {
14773 arg2 = &temp2;
14774 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14775 }
14776 {
14777 PyThreadState* __tstate = wxPyBeginAllowThreads();
14778 (arg1)->SetPixelSize((wxSize const &)*arg2);
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_Py_Void();
14783 return resultobj;
14784fail:
14785 return NULL;
14786}
14787
14788
14789SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj = 0;
14791 wxFont *arg1 = (wxFont *) 0 ;
14792 int arg2 ;
14793 void *argp1 = 0 ;
14794 int res1 = 0 ;
14795 int val2 ;
14796 int ecode2 = 0 ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 char * kwnames[] = {
14800 (char *) "self",(char *) "family", NULL
14801 };
14802
14803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14805 if (!SWIG_IsOK(res1)) {
14806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14807 }
14808 arg1 = reinterpret_cast< wxFont * >(argp1);
14809 ecode2 = SWIG_AsVal_int(obj1, &val2);
14810 if (!SWIG_IsOK(ecode2)) {
14811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14812 }
14813 arg2 = static_cast< int >(val2);
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 (arg1)->SetFamily(arg2);
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 resultobj = SWIG_Py_Void();
14821 return resultobj;
14822fail:
14823 return NULL;
14824}
14825
14826
14827SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14828 PyObject *resultobj = 0;
14829 wxFont *arg1 = (wxFont *) 0 ;
14830 int arg2 ;
14831 void *argp1 = 0 ;
14832 int res1 = 0 ;
14833 int val2 ;
14834 int ecode2 = 0 ;
14835 PyObject * obj0 = 0 ;
14836 PyObject * obj1 = 0 ;
14837 char * kwnames[] = {
14838 (char *) "self",(char *) "style", NULL
14839 };
14840
14841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14843 if (!SWIG_IsOK(res1)) {
14844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14845 }
14846 arg1 = reinterpret_cast< wxFont * >(argp1);
14847 ecode2 = SWIG_AsVal_int(obj1, &val2);
14848 if (!SWIG_IsOK(ecode2)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14850 }
14851 arg2 = static_cast< int >(val2);
14852 {
14853 PyThreadState* __tstate = wxPyBeginAllowThreads();
14854 (arg1)->SetStyle(arg2);
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = SWIG_Py_Void();
14859 return resultobj;
14860fail:
14861 return NULL;
14862}
14863
14864
14865SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj = 0;
14867 wxFont *arg1 = (wxFont *) 0 ;
14868 int arg2 ;
14869 void *argp1 = 0 ;
14870 int res1 = 0 ;
14871 int val2 ;
14872 int ecode2 = 0 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 char * kwnames[] = {
14876 (char *) "self",(char *) "weight", NULL
14877 };
14878
14879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14883 }
14884 arg1 = reinterpret_cast< wxFont * >(argp1);
14885 ecode2 = SWIG_AsVal_int(obj1, &val2);
14886 if (!SWIG_IsOK(ecode2)) {
14887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14888 }
14889 arg2 = static_cast< int >(val2);
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 (arg1)->SetWeight(arg2);
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_Py_Void();
14897 return resultobj;
14898fail:
14899 return NULL;
14900}
14901
14902
14903SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxFont *arg1 = (wxFont *) 0 ;
14906 wxString *arg2 = 0 ;
704eda0c 14907 bool result;
1bd55598
RD
14908 void *argp1 = 0 ;
14909 int res1 = 0 ;
14910 bool temp2 = false ;
14911 PyObject * obj0 = 0 ;
14912 PyObject * obj1 = 0 ;
14913 char * kwnames[] = {
14914 (char *) "self",(char *) "faceName", NULL
14915 };
14916
14917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14921 }
14922 arg1 = reinterpret_cast< wxFont * >(argp1);
14923 {
14924 arg2 = wxString_in_helper(obj1);
14925 if (arg2 == NULL) SWIG_fail;
14926 temp2 = true;
14927 }
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14930 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
704eda0c
RD
14934 {
14935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14936 }
1bd55598
RD
14937 {
14938 if (temp2)
14939 delete arg2;
14940 }
14941 return resultobj;
14942fail:
14943 {
14944 if (temp2)
14945 delete arg2;
14946 }
14947 return NULL;
14948}
14949
14950
14951SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj = 0;
14953 wxFont *arg1 = (wxFont *) 0 ;
14954 bool arg2 ;
14955 void *argp1 = 0 ;
14956 int res1 = 0 ;
14957 bool val2 ;
14958 int ecode2 = 0 ;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char * kwnames[] = {
14962 (char *) "self",(char *) "underlined", NULL
14963 };
14964
14965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14969 }
14970 arg1 = reinterpret_cast< wxFont * >(argp1);
14971 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14972 if (!SWIG_IsOK(ecode2)) {
14973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14974 }
14975 arg2 = static_cast< bool >(val2);
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 (arg1)->SetUnderlined(arg2);
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 resultobj = SWIG_Py_Void();
14983 return resultobj;
14984fail:
14985 return NULL;
14986}
14987
14988
14989SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj = 0;
14991 wxFont *arg1 = (wxFont *) 0 ;
14992 wxFontEncoding arg2 ;
14993 void *argp1 = 0 ;
14994 int res1 = 0 ;
14995 int val2 ;
14996 int ecode2 = 0 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char * kwnames[] = {
15000 (char *) "self",(char *) "encoding", NULL
15001 };
15002
15003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15005 if (!SWIG_IsOK(res1)) {
15006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15007 }
15008 arg1 = reinterpret_cast< wxFont * >(argp1);
15009 ecode2 = SWIG_AsVal_int(obj1, &val2);
15010 if (!SWIG_IsOK(ecode2)) {
15011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15012 }
15013 arg2 = static_cast< wxFontEncoding >(val2);
15014 {
15015 PyThreadState* __tstate = wxPyBeginAllowThreads();
15016 (arg1)->SetEncoding(arg2);
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 resultobj = SWIG_Py_Void();
15021 return resultobj;
15022fail:
15023 return NULL;
15024}
15025
15026
15027SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15028 PyObject *resultobj = 0;
15029 wxFont *arg1 = (wxFont *) 0 ;
15030 wxNativeFontInfo *arg2 = 0 ;
15031 void *argp1 = 0 ;
15032 int res1 = 0 ;
15033 void *argp2 = 0 ;
15034 int res2 = 0 ;
15035 PyObject * obj0 = 0 ;
15036 PyObject * obj1 = 0 ;
15037 char * kwnames[] = {
15038 (char *) "self",(char *) "info", NULL
15039 };
15040
15041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15043 if (!SWIG_IsOK(res1)) {
15044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15045 }
15046 arg1 = reinterpret_cast< wxFont * >(argp1);
15047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15048 if (!SWIG_IsOK(res2)) {
15049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15050 }
15051 if (!argp2) {
15052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15053 }
15054 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15055 {
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
15057 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15058 wxPyEndAllowThreads(__tstate);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 }
15061 resultobj = SWIG_Py_Void();
15062 return resultobj;
15063fail:
15064 return NULL;
15065}
15066
15067
15068SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15069 PyObject *resultobj = 0;
15070 wxFont *arg1 = (wxFont *) 0 ;
15071 wxString *arg2 = 0 ;
704eda0c 15072 bool result;
1bd55598
RD
15073 void *argp1 = 0 ;
15074 int res1 = 0 ;
15075 bool temp2 = false ;
15076 PyObject * obj0 = 0 ;
15077 PyObject * obj1 = 0 ;
15078 char * kwnames[] = {
15079 (char *) "self",(char *) "info", NULL
15080 };
15081
15082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15084 if (!SWIG_IsOK(res1)) {
15085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15086 }
15087 arg1 = reinterpret_cast< wxFont * >(argp1);
15088 {
15089 arg2 = wxString_in_helper(obj1);
15090 if (arg2 == NULL) SWIG_fail;
15091 temp2 = true;
15092 }
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15095 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
704eda0c
RD
15099 {
15100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15101 }
1bd55598
RD
15102 {
15103 if (temp2)
15104 delete arg2;
15105 }
15106 return resultobj;
15107fail:
15108 {
15109 if (temp2)
15110 delete arg2;
15111 }
15112 return NULL;
d55e5bfc
RD
15113}
15114
15115
1bd55598
RD
15116SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj = 0;
15118 wxFont *arg1 = (wxFont *) 0 ;
15119 wxString *arg2 = 0 ;
704eda0c 15120 bool result;
1bd55598
RD
15121 void *argp1 = 0 ;
15122 int res1 = 0 ;
15123 bool temp2 = false ;
15124 PyObject * obj0 = 0 ;
15125 PyObject * obj1 = 0 ;
15126 char * kwnames[] = {
15127 (char *) "self",(char *) "info", NULL
15128 };
15129
15130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15132 if (!SWIG_IsOK(res1)) {
15133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15134 }
15135 arg1 = reinterpret_cast< wxFont * >(argp1);
15136 {
15137 arg2 = wxString_in_helper(obj1);
15138 if (arg2 == NULL) SWIG_fail;
15139 temp2 = true;
15140 }
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15143 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
704eda0c
RD
15147 {
15148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15149 }
1bd55598
RD
15150 {
15151 if (temp2)
15152 delete arg2;
15153 }
15154 return resultobj;
15155fail:
15156 {
15157 if (temp2)
15158 delete arg2;
15159 }
15160 return NULL;
d55e5bfc
RD
15161}
15162
15163
1bd55598
RD
15164SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15165 PyObject *resultobj = 0;
15166 wxFont *arg1 = (wxFont *) 0 ;
15167 wxString result;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 PyObject *swig_obj[1] ;
15171
15172 if (!args) SWIG_fail;
15173 swig_obj[0] = args;
15174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15175 if (!SWIG_IsOK(res1)) {
15176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15177 }
15178 arg1 = reinterpret_cast< wxFont * >(argp1);
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
15181 result = ((wxFont const *)arg1)->GetFamilyString();
15182 wxPyEndAllowThreads(__tstate);
15183 if (PyErr_Occurred()) SWIG_fail;
15184 }
15185 {
15186#if wxUSE_UNICODE
15187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15188#else
15189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15190#endif
15191 }
15192 return resultobj;
15193fail:
15194 return NULL;
d55e5bfc
RD
15195}
15196
15197
1bd55598
RD
15198SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15199 PyObject *resultobj = 0;
15200 wxFont *arg1 = (wxFont *) 0 ;
15201 wxString result;
15202 void *argp1 = 0 ;
15203 int res1 = 0 ;
15204 PyObject *swig_obj[1] ;
15205
15206 if (!args) SWIG_fail;
15207 swig_obj[0] = args;
15208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15209 if (!SWIG_IsOK(res1)) {
15210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15211 }
15212 arg1 = reinterpret_cast< wxFont * >(argp1);
15213 {
15214 PyThreadState* __tstate = wxPyBeginAllowThreads();
15215 result = ((wxFont const *)arg1)->GetStyleString();
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 {
15220#if wxUSE_UNICODE
15221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15222#else
15223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15224#endif
15225 }
15226 return resultobj;
15227fail:
15228 return NULL;
d55e5bfc
RD
15229}
15230
15231
1bd55598
RD
15232SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15233 PyObject *resultobj = 0;
15234 wxFont *arg1 = (wxFont *) 0 ;
15235 wxString result;
15236 void *argp1 = 0 ;
15237 int res1 = 0 ;
15238 PyObject *swig_obj[1] ;
15239
15240 if (!args) SWIG_fail;
15241 swig_obj[0] = args;
15242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15243 if (!SWIG_IsOK(res1)) {
15244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15245 }
15246 arg1 = reinterpret_cast< wxFont * >(argp1);
15247 {
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 result = ((wxFont const *)arg1)->GetWeightString();
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 {
15254#if wxUSE_UNICODE
15255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15256#else
15257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15258#endif
15259 }
15260 return resultobj;
15261fail:
15262 return NULL;
15263}
15264
15265
15266SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15267 PyObject *resultobj = 0;
15268 wxFont *arg1 = (wxFont *) 0 ;
15269 bool arg2 = (bool) true ;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 bool val2 ;
15273 int ecode2 = 0 ;
15274 PyObject * obj0 = 0 ;
15275 PyObject * obj1 = 0 ;
15276 char * kwnames[] = {
15277 (char *) "self",(char *) "no", NULL
15278 };
15279
15280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15282 if (!SWIG_IsOK(res1)) {
15283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15284 }
15285 arg1 = reinterpret_cast< wxFont * >(argp1);
15286 if (obj1) {
15287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15288 if (!SWIG_IsOK(ecode2)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15290 }
15291 arg2 = static_cast< bool >(val2);
15292 }
15293 {
15294 PyThreadState* __tstate = wxPyBeginAllowThreads();
15295 (arg1)->SetNoAntiAliasing(arg2);
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 resultobj = SWIG_Py_Void();
15300 return resultobj;
15301fail:
15302 return NULL;
d55e5bfc
RD
15303}
15304
15305
1bd55598
RD
15306SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15307 PyObject *resultobj = 0;
15308 wxFont *arg1 = (wxFont *) 0 ;
15309 bool result;
15310 void *argp1 = 0 ;
15311 int res1 = 0 ;
15312 PyObject *swig_obj[1] ;
15313
15314 if (!args) SWIG_fail;
15315 swig_obj[0] = args;
15316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15317 if (!SWIG_IsOK(res1)) {
15318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15319 }
15320 arg1 = reinterpret_cast< wxFont * >(argp1);
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 {
15328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15329 }
15330 return resultobj;
15331fail:
15332 return NULL;
d55e5bfc
RD
15333}
15334
15335
1bd55598
RD
15336SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxFontEncoding result;
15339
15340 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15341 {
15342 if (!wxPyCheckForApp()) SWIG_fail;
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 resultobj = SWIG_From_int(static_cast< int >(result));
15349 return resultobj;
15350fail:
15351 return NULL;
d55e5bfc
RD
15352}
15353
15354
1bd55598
RD
15355SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj = 0;
15357 wxFontEncoding arg1 ;
15358 int val1 ;
15359 int ecode1 = 0 ;
15360 PyObject * obj0 = 0 ;
15361 char * kwnames[] = {
15362 (char *) "encoding", NULL
15363 };
15364
15365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15366 ecode1 = SWIG_AsVal_int(obj0, &val1);
15367 if (!SWIG_IsOK(ecode1)) {
15368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15369 }
15370 arg1 = static_cast< wxFontEncoding >(val1);
15371 {
15372 if (!wxPyCheckForApp()) SWIG_fail;
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 wxFont::SetDefaultEncoding(arg1);
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_Py_Void();
15379 return resultobj;
15380fail:
15381 return NULL;
d55e5bfc
RD
15382}
15383
15384
1bd55598
RD
15385SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15386 PyObject *obj;
15387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15388 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15389 return SWIG_Py_Void();
d55e5bfc 15390}
d55e5bfc 15391
1bd55598
RD
15392SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15394}
15395
1bd55598
RD
15396SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15397 PyObject *resultobj = 0;
15398 wxPyFontEnumerator *result = 0 ;
15399
15400 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15401 {
15402 if (!wxPyCheckForApp()) SWIG_fail;
15403 PyThreadState* __tstate = wxPyBeginAllowThreads();
15404 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15409 return resultobj;
15410fail:
15411 return NULL;
d55e5bfc
RD
15412}
15413
15414
1bd55598
RD
15415SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15416 PyObject *resultobj = 0;
15417 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15418 void *argp1 = 0 ;
15419 int res1 = 0 ;
15420 PyObject *swig_obj[1] ;
15421
15422 if (!args) SWIG_fail;
15423 swig_obj[0] = args;
15424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15425 if (!SWIG_IsOK(res1)) {
15426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15427 }
15428 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 delete arg1;
d55e5bfc 15432
1bd55598
RD
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 resultobj = SWIG_Py_Void();
15437 return resultobj;
15438fail:
15439 return NULL;
15440}
15441
15442
15443SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15444 PyObject *resultobj = 0;
15445 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15446 PyObject *arg2 = (PyObject *) 0 ;
15447 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15448 int arg4 = (int) 0 ;
1bd55598
RD
15449 void *argp1 = 0 ;
15450 int res1 = 0 ;
c25f90f6 15451 int val4 ;
1bd55598
RD
15452 int ecode4 = 0 ;
15453 PyObject * obj0 = 0 ;
15454 PyObject * obj1 = 0 ;
15455 PyObject * obj2 = 0 ;
15456 PyObject * obj3 = 0 ;
15457 char * kwnames[] = {
15458 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15459 };
15460
c25f90f6 15461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
15462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15463 if (!SWIG_IsOK(res1)) {
15464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15465 }
15466 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15467 arg2 = obj1;
15468 arg3 = obj2;
c25f90f6
RD
15469 if (obj3) {
15470 ecode4 = SWIG_AsVal_int(obj3, &val4);
15471 if (!SWIG_IsOK(ecode4)) {
15472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15473 }
15474 arg4 = static_cast< int >(val4);
15475 }
1bd55598
RD
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_Py_Void();
15483 return resultobj;
15484fail:
15485 return NULL;
15486}
15487
15488
15489SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj = 0;
15491 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15492 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15493 bool arg3 = (bool) false ;
15494 bool result;
15495 void *argp1 = 0 ;
15496 int res1 = 0 ;
15497 int val2 ;
15498 int ecode2 = 0 ;
15499 bool val3 ;
15500 int ecode3 = 0 ;
15501 PyObject * obj0 = 0 ;
15502 PyObject * obj1 = 0 ;
15503 PyObject * obj2 = 0 ;
15504 char * kwnames[] = {
15505 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15506 };
15507
15508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15510 if (!SWIG_IsOK(res1)) {
15511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15512 }
15513 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15514 if (obj1) {
15515 ecode2 = SWIG_AsVal_int(obj1, &val2);
15516 if (!SWIG_IsOK(ecode2)) {
15517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15518 }
15519 arg2 = static_cast< wxFontEncoding >(val2);
15520 }
15521 if (obj2) {
15522 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15523 if (!SWIG_IsOK(ecode3)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15525 }
15526 arg3 = static_cast< bool >(val3);
15527 }
15528 {
15529 PyThreadState* __tstate = wxPyBeginAllowThreads();
15530 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 {
15535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15536 }
15537 return resultobj;
15538fail:
15539 return NULL;
15540}
15541
15542
15543SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj = 0;
15545 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15546 wxString const &arg2_defvalue = wxPyEmptyString ;
15547 wxString *arg2 = (wxString *) &arg2_defvalue ;
15548 bool result;
15549 void *argp1 = 0 ;
15550 int res1 = 0 ;
15551 bool temp2 = false ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 char * kwnames[] = {
15555 (char *) "self",(char *) "facename", NULL
15556 };
15557
15558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15562 }
15563 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15564 if (obj1) {
36ed4f51 15565 {
1bd55598
RD
15566 arg2 = wxString_in_helper(obj1);
15567 if (arg2 == NULL) SWIG_fail;
15568 temp2 = true;
36ed4f51 15569 }
1bd55598
RD
15570 }
15571 {
15572 PyThreadState* __tstate = wxPyBeginAllowThreads();
15573 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15574 wxPyEndAllowThreads(__tstate);
15575 if (PyErr_Occurred()) SWIG_fail;
15576 }
15577 {
15578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15579 }
15580 {
15581 if (temp2)
15582 delete arg2;
15583 }
15584 return resultobj;
15585fail:
15586 {
15587 if (temp2)
15588 delete arg2;
15589 }
15590 return NULL;
d55e5bfc
RD
15591}
15592
15593
1bd55598
RD
15594SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15595 PyObject *resultobj = 0;
1bd55598 15596 PyObject *result = 0 ;
1bd55598 15597
704eda0c 15598 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15599 {
15600 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15601 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15602 wxPyEndAllowThreads(__tstate);
15603 if (PyErr_Occurred()) SWIG_fail;
15604 }
15605 resultobj = result;
15606 return resultobj;
15607fail:
15608 return NULL;
d55e5bfc
RD
15609}
15610
15611
1bd55598
RD
15612SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15613 PyObject *resultobj = 0;
1bd55598 15614 PyObject *result = 0 ;
1bd55598 15615
704eda0c 15616 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15617 {
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15619 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 resultobj = result;
15624 return resultobj;
15625fail:
15626 return NULL;
d55e5bfc
RD
15627}
15628
15629
704eda0c
RD
15630SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15631 PyObject *resultobj = 0;
15632 wxString *arg1 = 0 ;
15633 bool result;
15634 bool temp1 = false ;
15635 PyObject * obj0 = 0 ;
15636 char * kwnames[] = {
15637 (char *) "str", NULL
15638 };
15639
15640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15641 {
15642 arg1 = wxString_in_helper(obj0);
15643 if (arg1 == NULL) SWIG_fail;
15644 temp1 = true;
15645 }
15646 {
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 {
15653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15654 }
15655 {
15656 if (temp1)
15657 delete arg1;
15658 }
15659 return resultobj;
15660fail:
15661 {
15662 if (temp1)
15663 delete arg1;
15664 }
15665 return NULL;
15666}
15667
15668
1bd55598
RD
15669SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15670 PyObject *obj;
15671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15672 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15673 return SWIG_Py_Void();
d55e5bfc
RD
15674}
15675
1bd55598
RD
15676SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15677 return SWIG_Python_InitShadowInstance(args);
15678}
d55e5bfc 15679
1bd55598
RD
15680SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15681 PyObject *resultobj = 0;
15682 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15683 int arg2 ;
15684 void *argp1 = 0 ;
15685 int res1 = 0 ;
15686 int val2 ;
15687 int ecode2 = 0 ;
15688 PyObject *swig_obj[2] ;
15689
15690 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15692 if (!SWIG_IsOK(res1)) {
15693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15694 }
15695 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15696 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15697 if (!SWIG_IsOK(ecode2)) {
15698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15699 }
15700 arg2 = static_cast< int >(val2);
15701 if (arg1) (arg1)->Language = arg2;
15702
15703 resultobj = SWIG_Py_Void();
15704 return resultobj;
15705fail:
15706 return NULL;
d55e5bfc
RD
15707}
15708
15709
1bd55598
RD
15710SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15711 PyObject *resultobj = 0;
15712 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15713 int result;
15714 void *argp1 = 0 ;
15715 int res1 = 0 ;
15716 PyObject *swig_obj[1] ;
15717
15718 if (!args) SWIG_fail;
15719 swig_obj[0] = args;
15720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15721 if (!SWIG_IsOK(res1)) {
15722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15723 }
15724 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15725 result = (int) ((arg1)->Language);
15726 resultobj = SWIG_From_int(static_cast< int >(result));
15727 return resultobj;
15728fail:
15729 return NULL;
15730}
15731
15732
15733SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15734 PyObject *resultobj = 0;
15735 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15736 wxString *arg2 = (wxString *) 0 ;
15737 void *argp1 = 0 ;
15738 int res1 = 0 ;
15739 bool temp2 = false ;
15740 PyObject *swig_obj[2] ;
15741
15742 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15744 if (!SWIG_IsOK(res1)) {
15745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15746 }
15747 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15748 {
15749 arg2 = wxString_in_helper(swig_obj[1]);
15750 if (arg2 == NULL) SWIG_fail;
15751 temp2 = true;
15752 }
15753 if (arg1) (arg1)->CanonicalName = *arg2;
15754
15755 resultobj = SWIG_Py_Void();
15756 {
15757 if (temp2)
15758 delete arg2;
15759 }
15760 return resultobj;
15761fail:
15762 {
15763 if (temp2)
15764 delete arg2;
15765 }
15766 return NULL;
d55e5bfc
RD
15767}
15768
15769
1bd55598
RD
15770SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15771 PyObject *resultobj = 0;
15772 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15773 wxString *result = 0 ;
15774 void *argp1 = 0 ;
15775 int res1 = 0 ;
15776 PyObject *swig_obj[1] ;
15777
15778 if (!args) SWIG_fail;
15779 swig_obj[0] = args;
15780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15781 if (!SWIG_IsOK(res1)) {
15782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15783 }
15784 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15785 result = (wxString *)& ((arg1)->CanonicalName);
15786 {
15787#if wxUSE_UNICODE
15788 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15789#else
15790 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15791#endif
15792 }
15793 return resultobj;
15794fail:
15795 return NULL;
d55e5bfc
RD
15796}
15797
15798
1bd55598
RD
15799SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15800 PyObject *resultobj = 0;
15801 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15802 wxString *arg2 = (wxString *) 0 ;
15803 void *argp1 = 0 ;
15804 int res1 = 0 ;
15805 bool temp2 = false ;
15806 PyObject *swig_obj[2] ;
15807
15808 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15810 if (!SWIG_IsOK(res1)) {
15811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15812 }
15813 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15814 {
15815 arg2 = wxString_in_helper(swig_obj[1]);
15816 if (arg2 == NULL) SWIG_fail;
15817 temp2 = true;
15818 }
15819 if (arg1) (arg1)->Description = *arg2;
15820
15821 resultobj = SWIG_Py_Void();
15822 {
15823 if (temp2)
15824 delete arg2;
15825 }
15826 return resultobj;
15827fail:
15828 {
15829 if (temp2)
15830 delete arg2;
15831 }
15832 return NULL;
d55e5bfc
RD
15833}
15834
15835
1bd55598
RD
15836SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15837 PyObject *resultobj = 0;
15838 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15839 wxString *result = 0 ;
15840 void *argp1 = 0 ;
15841 int res1 = 0 ;
15842 PyObject *swig_obj[1] ;
15843
15844 if (!args) SWIG_fail;
15845 swig_obj[0] = args;
15846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15849 }
15850 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15851 result = (wxString *)& ((arg1)->Description);
15852 {
15853#if wxUSE_UNICODE
15854 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15855#else
15856 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15857#endif
15858 }
15859 return resultobj;
15860fail:
15861 return NULL;
15862}
15863
15864
15865SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15866 PyObject *obj;
15867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15868 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15869 return SWIG_Py_Void();
15870}
15871
15872SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15873 PyObject *resultobj = 0;
15874 int arg1 = (int) -1 ;
15875 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15876 wxLocale *result = 0 ;
15877 int val1 ;
15878 int ecode1 = 0 ;
15879 int val2 ;
15880 int ecode2 = 0 ;
15881 PyObject * obj0 = 0 ;
15882 PyObject * obj1 = 0 ;
15883 char * kwnames[] = {
15884 (char *) "language",(char *) "flags", NULL
15885 };
15886
15887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15888 if (obj0) {
15889 ecode1 = SWIG_AsVal_int(obj0, &val1);
15890 if (!SWIG_IsOK(ecode1)) {
15891 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15892 }
15893 arg1 = static_cast< int >(val1);
15894 }
15895 if (obj1) {
15896 ecode2 = SWIG_AsVal_int(obj1, &val2);
15897 if (!SWIG_IsOK(ecode2)) {
15898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15899 }
15900 arg2 = static_cast< int >(val2);
15901 }
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 result = (wxLocale *)new_wxLocale(arg1,arg2);
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15909 return resultobj;
15910fail:
15911 return NULL;
d55e5bfc
RD
15912}
15913
15914
1bd55598
RD
15915SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15916 PyObject *resultobj = 0;
15917 wxLocale *arg1 = (wxLocale *) 0 ;
15918 void *argp1 = 0 ;
15919 int res1 = 0 ;
15920 PyObject *swig_obj[1] ;
15921
15922 if (!args) SWIG_fail;
15923 swig_obj[0] = args;
15924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15925 if (!SWIG_IsOK(res1)) {
15926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15927 }
15928 arg1 = reinterpret_cast< wxLocale * >(argp1);
15929 {
15930 PyThreadState* __tstate = wxPyBeginAllowThreads();
15931 delete arg1;
d55e5bfc 15932
1bd55598
RD
15933 wxPyEndAllowThreads(__tstate);
15934 if (PyErr_Occurred()) SWIG_fail;
15935 }
15936 resultobj = SWIG_Py_Void();
15937 return resultobj;
15938fail:
15939 return NULL;
15940}
15941
15942
15943SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15944 PyObject *resultobj = 0;
15945 wxLocale *arg1 = (wxLocale *) 0 ;
15946 wxString *arg2 = 0 ;
15947 wxString const &arg3_defvalue = wxPyEmptyString ;
15948 wxString *arg3 = (wxString *) &arg3_defvalue ;
15949 wxString const &arg4_defvalue = wxPyEmptyString ;
15950 wxString *arg4 = (wxString *) &arg4_defvalue ;
15951 bool arg5 = (bool) true ;
15952 bool arg6 = (bool) false ;
15953 bool result;
15954 void *argp1 = 0 ;
15955 int res1 = 0 ;
15956 bool temp2 = false ;
15957 bool temp3 = false ;
15958 bool temp4 = false ;
15959 bool val5 ;
15960 int ecode5 = 0 ;
15961 bool val6 ;
15962 int ecode6 = 0 ;
15963 PyObject * obj0 = 0 ;
15964 PyObject * obj1 = 0 ;
15965 PyObject * obj2 = 0 ;
15966 PyObject * obj3 = 0 ;
15967 PyObject * obj4 = 0 ;
15968 PyObject * obj5 = 0 ;
15969 char * kwnames[] = {
15970 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15971 };
15972
15973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15975 if (!SWIG_IsOK(res1)) {
15976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15977 }
15978 arg1 = reinterpret_cast< wxLocale * >(argp1);
15979 {
15980 arg2 = wxString_in_helper(obj1);
15981 if (arg2 == NULL) SWIG_fail;
15982 temp2 = true;
15983 }
15984 if (obj2) {
d55e5bfc 15985 {
1bd55598
RD
15986 arg3 = wxString_in_helper(obj2);
15987 if (arg3 == NULL) SWIG_fail;
15988 temp3 = true;
d55e5bfc 15989 }
1bd55598
RD
15990 }
15991 if (obj3) {
36ed4f51 15992 {
1bd55598
RD
15993 arg4 = wxString_in_helper(obj3);
15994 if (arg4 == NULL) SWIG_fail;
15995 temp4 = true;
36ed4f51 15996 }
1bd55598
RD
15997 }
15998 if (obj4) {
15999 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16000 if (!SWIG_IsOK(ecode5)) {
16001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16002 }
16003 arg5 = static_cast< bool >(val5);
16004 }
16005 if (obj5) {
16006 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16007 if (!SWIG_IsOK(ecode6)) {
16008 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16009 }
16010 arg6 = static_cast< bool >(val6);
16011 }
16012 {
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 {
16019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16020 }
16021 {
16022 if (temp2)
16023 delete arg2;
16024 }
16025 {
16026 if (temp3)
16027 delete arg3;
16028 }
16029 {
16030 if (temp4)
16031 delete arg4;
16032 }
16033 return resultobj;
16034fail:
16035 {
16036 if (temp2)
16037 delete arg2;
16038 }
16039 {
16040 if (temp3)
16041 delete arg3;
16042 }
16043 {
16044 if (temp4)
16045 delete arg4;
16046 }
16047 return NULL;
16048}
16049
16050
16051SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16052 PyObject *resultobj = 0;
16053 wxLocale *arg1 = (wxLocale *) 0 ;
16054 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16055 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16056 bool result;
16057 void *argp1 = 0 ;
16058 int res1 = 0 ;
16059 int val2 ;
16060 int ecode2 = 0 ;
16061 int val3 ;
16062 int ecode3 = 0 ;
16063 PyObject * obj0 = 0 ;
16064 PyObject * obj1 = 0 ;
16065 PyObject * obj2 = 0 ;
16066 char * kwnames[] = {
16067 (char *) "self",(char *) "language",(char *) "flags", NULL
16068 };
16069
16070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16072 if (!SWIG_IsOK(res1)) {
16073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16074 }
16075 arg1 = reinterpret_cast< wxLocale * >(argp1);
16076 if (obj1) {
16077 ecode2 = SWIG_AsVal_int(obj1, &val2);
16078 if (!SWIG_IsOK(ecode2)) {
16079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16080 }
16081 arg2 = static_cast< int >(val2);
16082 }
16083 if (obj2) {
16084 ecode3 = SWIG_AsVal_int(obj2, &val3);
16085 if (!SWIG_IsOK(ecode3)) {
16086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16087 }
16088 arg3 = static_cast< int >(val3);
16089 }
16090 {
16091 PyThreadState* __tstate = wxPyBeginAllowThreads();
16092 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16093 wxPyEndAllowThreads(__tstate);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 {
16097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16098 }
16099 return resultobj;
16100fail:
16101 return NULL;
d55e5bfc
RD
16102}
16103
16104
1bd55598
RD
16105SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16106 PyObject *resultobj = 0;
16107 int result;
16108
16109 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16110 {
16111 PyThreadState* __tstate = wxPyBeginAllowThreads();
16112 result = (int)wxLocale::GetSystemLanguage();
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 resultobj = SWIG_From_int(static_cast< int >(result));
16117 return resultobj;
16118fail:
16119 return NULL;
d55e5bfc
RD
16120}
16121
16122
1bd55598
RD
16123SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16124 PyObject *resultobj = 0;
16125 wxFontEncoding result;
16126
16127 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16131 wxPyEndAllowThreads(__tstate);
16132 if (PyErr_Occurred()) SWIG_fail;
16133 }
16134 resultobj = SWIG_From_int(static_cast< int >(result));
16135 return resultobj;
16136fail:
16137 return NULL;
d55e5bfc
RD
16138}
16139
16140
1bd55598
RD
16141SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 PyObject *resultobj = 0;
16143 wxString result;
16144
16145 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16146 {
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = wxLocale::GetSystemEncodingName();
16149 wxPyEndAllowThreads(__tstate);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 {
16153#if wxUSE_UNICODE
16154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16155#else
16156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16157#endif
16158 }
16159 return resultobj;
16160fail:
16161 return NULL;
d55e5bfc
RD
16162}
16163
16164
1bd55598
RD
16165SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16166 PyObject *resultobj = 0;
16167 wxLocale *arg1 = (wxLocale *) 0 ;
16168 bool result;
16169 void *argp1 = 0 ;
16170 int res1 = 0 ;
16171 PyObject *swig_obj[1] ;
16172
16173 if (!args) SWIG_fail;
16174 swig_obj[0] = args;
16175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16176 if (!SWIG_IsOK(res1)) {
16177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16178 }
16179 arg1 = reinterpret_cast< wxLocale * >(argp1);
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = (bool)((wxLocale const *)arg1)->IsOk();
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16188 }
16189 return resultobj;
16190fail:
16191 return NULL;
d55e5bfc
RD
16192}
16193
16194
1bd55598
RD
16195SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16196 PyObject *resultobj = 0;
16197 wxLocale *arg1 = (wxLocale *) 0 ;
16198 wxString result;
16199 void *argp1 = 0 ;
16200 int res1 = 0 ;
16201 PyObject *swig_obj[1] ;
16202
16203 if (!args) SWIG_fail;
16204 swig_obj[0] = args;
16205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16206 if (!SWIG_IsOK(res1)) {
16207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16208 }
16209 arg1 = reinterpret_cast< wxLocale * >(argp1);
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 result = ((wxLocale const *)arg1)->GetLocale();
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 {
16217#if wxUSE_UNICODE
16218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16219#else
16220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16221#endif
16222 }
16223 return resultobj;
16224fail:
16225 return NULL;
d55e5bfc
RD
16226}
16227
16228
1bd55598
RD
16229SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
16231 wxLocale *arg1 = (wxLocale *) 0 ;
16232 int result;
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 PyObject *swig_obj[1] ;
16236
16237 if (!args) SWIG_fail;
16238 swig_obj[0] = args;
16239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16242 }
16243 arg1 = reinterpret_cast< wxLocale * >(argp1);
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 result = (int)((wxLocale const *)arg1)->GetLanguage();
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 resultobj = SWIG_From_int(static_cast< int >(result));
16251 return resultobj;
16252fail:
16253 return NULL;
d55e5bfc
RD
16254}
16255
16256
1bd55598
RD
16257SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16258 PyObject *resultobj = 0;
16259 wxLocale *arg1 = (wxLocale *) 0 ;
16260 wxString result;
16261 void *argp1 = 0 ;
16262 int res1 = 0 ;
16263 PyObject *swig_obj[1] ;
16264
16265 if (!args) SWIG_fail;
16266 swig_obj[0] = args;
16267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16268 if (!SWIG_IsOK(res1)) {
16269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16270 }
16271 arg1 = reinterpret_cast< wxLocale * >(argp1);
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = ((wxLocale const *)arg1)->GetSysName();
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 {
36ed4f51 16279#if wxUSE_UNICODE
1bd55598 16280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16281#else
1bd55598 16282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16283#endif
1bd55598
RD
16284 }
16285 return resultobj;
16286fail:
16287 return NULL;
d55e5bfc
RD
16288}
16289
16290
1bd55598
RD
16291SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16292 PyObject *resultobj = 0;
16293 wxLocale *arg1 = (wxLocale *) 0 ;
16294 wxString result;
16295 void *argp1 = 0 ;
16296 int res1 = 0 ;
16297 PyObject *swig_obj[1] ;
16298
16299 if (!args) SWIG_fail;
16300 swig_obj[0] = args;
16301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16302 if (!SWIG_IsOK(res1)) {
16303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16304 }
16305 arg1 = reinterpret_cast< wxLocale * >(argp1);
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = ((wxLocale const *)arg1)->GetCanonicalName();
16309 wxPyEndAllowThreads(__tstate);
16310 if (PyErr_Occurred()) SWIG_fail;
16311 }
16312 {
16313#if wxUSE_UNICODE
16314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16315#else
16316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16317#endif
16318 }
16319 return resultobj;
16320fail:
16321 return NULL;
d55e5bfc
RD
16322}
16323
16324
1bd55598
RD
16325SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16326 PyObject *resultobj = 0;
16327 wxString *arg1 = 0 ;
16328 bool temp1 = false ;
16329 PyObject * obj0 = 0 ;
16330 char * kwnames[] = {
16331 (char *) "prefix", NULL
16332 };
16333
16334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16335 {
16336 arg1 = wxString_in_helper(obj0);
16337 if (arg1 == NULL) SWIG_fail;
16338 temp1 = true;
16339 }
16340 {
16341 PyThreadState* __tstate = wxPyBeginAllowThreads();
16342 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 resultobj = SWIG_Py_Void();
16347 {
16348 if (temp1)
16349 delete arg1;
16350 }
16351 return resultobj;
16352fail:
16353 {
16354 if (temp1)
16355 delete arg1;
16356 }
16357 return NULL;
16358}
16359
16360
16361SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16362 PyObject *resultobj = 0;
16363 wxLocale *arg1 = (wxLocale *) 0 ;
16364 wxString *arg2 = 0 ;
16365 bool result;
16366 void *argp1 = 0 ;
16367 int res1 = 0 ;
16368 bool temp2 = false ;
16369 PyObject * obj0 = 0 ;
16370 PyObject * obj1 = 0 ;
16371 char * kwnames[] = {
16372 (char *) "self",(char *) "szDomain", NULL
16373 };
16374
16375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16377 if (!SWIG_IsOK(res1)) {
16378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16379 }
16380 arg1 = reinterpret_cast< wxLocale * >(argp1);
16381 {
16382 arg2 = wxString_in_helper(obj1);
16383 if (arg2 == NULL) SWIG_fail;
16384 temp2 = true;
16385 }
16386 {
16387 PyThreadState* __tstate = wxPyBeginAllowThreads();
16388 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16389 wxPyEndAllowThreads(__tstate);
16390 if (PyErr_Occurred()) SWIG_fail;
16391 }
16392 {
16393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16394 }
16395 {
16396 if (temp2)
16397 delete arg2;
16398 }
16399 return resultobj;
16400fail:
16401 {
16402 if (temp2)
16403 delete arg2;
16404 }
16405 return NULL;
16406}
16407
16408
33d6fd3b
RD
16409SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16410 PyObject *resultobj = 0;
16411 int arg1 ;
16412 bool result;
16413 int val1 ;
16414 int ecode1 = 0 ;
16415 PyObject * obj0 = 0 ;
16416 char * kwnames[] = {
16417 (char *) "lang", NULL
16418 };
16419
16420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16421 ecode1 = SWIG_AsVal_int(obj0, &val1);
16422 if (!SWIG_IsOK(ecode1)) {
16423 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16424 }
16425 arg1 = static_cast< int >(val1);
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 result = (bool)wxLocale::IsAvailable(arg1);
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 {
16433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16434 }
16435 return resultobj;
16436fail:
16437 return NULL;
16438}
16439
16440
1bd55598
RD
16441SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16442 PyObject *resultobj = 0;
16443 wxLocale *arg1 = (wxLocale *) 0 ;
16444 wxString *arg2 = 0 ;
16445 bool result;
16446 void *argp1 = 0 ;
16447 int res1 = 0 ;
16448 bool temp2 = false ;
16449 PyObject * obj0 = 0 ;
16450 PyObject * obj1 = 0 ;
16451 char * kwnames[] = {
16452 (char *) "self",(char *) "szDomain", NULL
16453 };
16454
16455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16457 if (!SWIG_IsOK(res1)) {
16458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16459 }
16460 arg1 = reinterpret_cast< wxLocale * >(argp1);
16461 {
16462 arg2 = wxString_in_helper(obj1);
16463 if (arg2 == NULL) SWIG_fail;
16464 temp2 = true;
16465 }
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16469 wxPyEndAllowThreads(__tstate);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 {
16473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16474 }
16475 {
16476 if (temp2)
16477 delete arg2;
16478 }
16479 return resultobj;
16480fail:
16481 {
16482 if (temp2)
16483 delete arg2;
16484 }
16485 return NULL;
d55e5bfc
RD
16486}
16487
16488
1bd55598
RD
16489SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16490 PyObject *resultobj = 0;
16491 int arg1 ;
16492 wxLanguageInfo *result = 0 ;
16493 int val1 ;
16494 int ecode1 = 0 ;
16495 PyObject * obj0 = 0 ;
16496 char * kwnames[] = {
16497 (char *) "lang", NULL
16498 };
16499
16500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16501 ecode1 = SWIG_AsVal_int(obj0, &val1);
16502 if (!SWIG_IsOK(ecode1)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16504 }
16505 arg1 = static_cast< int >(val1);
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16513 return resultobj;
16514fail:
16515 return NULL;
16516}
16517
16518
16519SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj = 0;
16521 int arg1 ;
16522 wxString result;
16523 int val1 ;
16524 int ecode1 = 0 ;
16525 PyObject * obj0 = 0 ;
16526 char * kwnames[] = {
16527 (char *) "lang", NULL
16528 };
16529
16530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16531 ecode1 = SWIG_AsVal_int(obj0, &val1);
16532 if (!SWIG_IsOK(ecode1)) {
16533 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16534 }
16535 arg1 = static_cast< int >(val1);
16536 {
16537 PyThreadState* __tstate = wxPyBeginAllowThreads();
16538 result = wxLocale::GetLanguageName(arg1);
16539 wxPyEndAllowThreads(__tstate);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 {
16543#if wxUSE_UNICODE
16544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16545#else
16546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16547#endif
16548 }
16549 return resultobj;
16550fail:
16551 return NULL;
d55e5bfc
RD
16552}
16553
16554
1bd55598
RD
16555SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16556 PyObject *resultobj = 0;
16557 wxString *arg1 = 0 ;
16558 wxLanguageInfo *result = 0 ;
16559 bool temp1 = false ;
16560 PyObject * obj0 = 0 ;
16561 char * kwnames[] = {
16562 (char *) "locale", NULL
16563 };
16564
16565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16566 {
16567 arg1 = wxString_in_helper(obj0);
16568 if (arg1 == NULL) SWIG_fail;
16569 temp1 = true;
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16573 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16578 {
16579 if (temp1)
16580 delete arg1;
16581 }
16582 return resultobj;
16583fail:
16584 {
16585 if (temp1)
16586 delete arg1;
16587 }
16588 return NULL;
16589}
16590
16591
16592SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16593 PyObject *resultobj = 0;
16594 wxLanguageInfo *arg1 = 0 ;
16595 void *argp1 = 0 ;
16596 int res1 = 0 ;
16597 PyObject * obj0 = 0 ;
16598 char * kwnames[] = {
16599 (char *) "info", NULL
16600 };
16601
16602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16603 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16604 if (!SWIG_IsOK(res1)) {
16605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16606 }
16607 if (!argp1) {
16608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16609 }
16610 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16611 {
16612 PyThreadState* __tstate = wxPyBeginAllowThreads();
16613 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16614 wxPyEndAllowThreads(__tstate);
16615 if (PyErr_Occurred()) SWIG_fail;
16616 }
16617 resultobj = SWIG_Py_Void();
16618 return resultobj;
16619fail:
16620 return NULL;
16621}
16622
16623
16624SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16625 PyObject *resultobj = 0;
16626 wxLocale *arg1 = (wxLocale *) 0 ;
16627 wxString *arg2 = 0 ;
16628 wxString const &arg3_defvalue = wxPyEmptyString ;
16629 wxString *arg3 = (wxString *) &arg3_defvalue ;
16630 wxString result;
16631 void *argp1 = 0 ;
16632 int res1 = 0 ;
16633 bool temp2 = false ;
16634 bool temp3 = false ;
16635 PyObject * obj0 = 0 ;
16636 PyObject * obj1 = 0 ;
16637 PyObject * obj2 = 0 ;
16638 char * kwnames[] = {
16639 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16640 };
16641
16642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16644 if (!SWIG_IsOK(res1)) {
16645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16646 }
16647 arg1 = reinterpret_cast< wxLocale * >(argp1);
16648 {
16649 arg2 = wxString_in_helper(obj1);
16650 if (arg2 == NULL) SWIG_fail;
16651 temp2 = true;
16652 }
16653 if (obj2) {
16654 {
16655 arg3 = wxString_in_helper(obj2);
16656 if (arg3 == NULL) SWIG_fail;
16657 temp3 = true;
16658 }
16659 }
16660 {
16661 PyThreadState* __tstate = wxPyBeginAllowThreads();
16662 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16663 wxPyEndAllowThreads(__tstate);
16664 if (PyErr_Occurred()) SWIG_fail;
16665 }
16666 {
16667#if wxUSE_UNICODE
16668 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16669#else
16670 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16671#endif
16672 }
16673 {
16674 if (temp2)
16675 delete arg2;
16676 }
16677 {
16678 if (temp3)
16679 delete arg3;
16680 }
16681 return resultobj;
16682fail:
16683 {
16684 if (temp2)
16685 delete arg2;
16686 }
16687 {
16688 if (temp3)
16689 delete arg3;
16690 }
16691 return NULL;
16692}
16693
16694
16695SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16696 PyObject *resultobj = 0;
16697 wxLocale *arg1 = (wxLocale *) 0 ;
16698 wxString *result = 0 ;
16699 void *argp1 = 0 ;
16700 int res1 = 0 ;
16701 PyObject *swig_obj[1] ;
16702
16703 if (!args) SWIG_fail;
16704 swig_obj[0] = args;
16705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16706 if (!SWIG_IsOK(res1)) {
16707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16708 }
16709 arg1 = reinterpret_cast< wxLocale * >(argp1);
16710 {
16711 PyThreadState* __tstate = wxPyBeginAllowThreads();
16712 {
16713 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16714 result = (wxString *) &_result_ref;
16715 }
16716 wxPyEndAllowThreads(__tstate);
16717 if (PyErr_Occurred()) SWIG_fail;
16718 }
16719 {
16720#if wxUSE_UNICODE
16721 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16722#else
16723 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16724#endif
16725 }
16726 return resultobj;
16727fail:
16728 return NULL;
16729}
16730
16731
16732SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16733 PyObject *obj;
16734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16735 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16736 return SWIG_Py_Void();
16737}
16738
16739SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16740 return SWIG_Python_InitShadowInstance(args);
16741}
16742
16743SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16744 PyObject *resultobj = 0;
16745 int arg1 = (int) -1 ;
16746 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16747 wxPyLocale *result = 0 ;
16748 int val1 ;
16749 int ecode1 = 0 ;
16750 int val2 ;
16751 int ecode2 = 0 ;
16752 PyObject * obj0 = 0 ;
16753 PyObject * obj1 = 0 ;
16754 char * kwnames[] = {
16755 (char *) "language",(char *) "flags", NULL
16756 };
16757
16758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16759 if (obj0) {
16760 ecode1 = SWIG_AsVal_int(obj0, &val1);
16761 if (!SWIG_IsOK(ecode1)) {
16762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16763 }
16764 arg1 = static_cast< int >(val1);
16765 }
16766 if (obj1) {
16767 ecode2 = SWIG_AsVal_int(obj1, &val2);
16768 if (!SWIG_IsOK(ecode2)) {
16769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16770 }
16771 arg2 = static_cast< int >(val2);
16772 }
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16780 return resultobj;
16781fail:
16782 return NULL;
16783}
16784
16785
16786SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16787 PyObject *resultobj = 0;
16788 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16789 void *argp1 = 0 ;
16790 int res1 = 0 ;
16791 PyObject *swig_obj[1] ;
16792
16793 if (!args) SWIG_fail;
16794 swig_obj[0] = args;
16795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16796 if (!SWIG_IsOK(res1)) {
16797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16798 }
16799 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16800 {
16801 PyThreadState* __tstate = wxPyBeginAllowThreads();
16802 delete arg1;
16803
1bd55598
RD
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
fc46b7f3 16807 resultobj = SWIG_Py_Void();
1bd55598
RD
16808 return resultobj;
16809fail:
1bd55598 16810 return NULL;
d55e5bfc
RD
16811}
16812
16813
fc46b7f3 16814SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16815 PyObject *resultobj = 0;
fc46b7f3
RD
16816 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16817 PyObject *arg2 = (PyObject *) 0 ;
16818 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16819 void *argp1 = 0 ;
16820 int res1 = 0 ;
16821 PyObject * obj0 = 0 ;
fc46b7f3
RD
16822 PyObject * obj1 = 0 ;
16823 PyObject * obj2 = 0 ;
1bd55598 16824 char * kwnames[] = {
fc46b7f3 16825 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16826 };
16827
fc46b7f3
RD
16828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16830 if (!SWIG_IsOK(res1)) {
fc46b7f3 16831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16832 }
fc46b7f3
RD
16833 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16834 arg2 = obj1;
16835 arg3 = obj2;
1bd55598
RD
16836 {
16837 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16838 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16839 wxPyEndAllowThreads(__tstate);
16840 if (PyErr_Occurred()) SWIG_fail;
16841 }
16842 resultobj = SWIG_Py_Void();
16843 return resultobj;
16844fail:
16845 return NULL;
16846}
16847
16848
fc46b7f3 16849SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16850 PyObject *resultobj = 0;
fc46b7f3
RD
16851 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16852 wxChar *arg2 = (wxChar *) 0 ;
16853 wxChar *arg3 = (wxChar *) NULL ;
16854 wxChar *result = 0 ;
1bd55598
RD
16855 void *argp1 = 0 ;
16856 int res1 = 0 ;
fc46b7f3
RD
16857 void *argp2 = 0 ;
16858 int res2 = 0 ;
16859 void *argp3 = 0 ;
16860 int res3 = 0 ;
1bd55598
RD
16861 PyObject * obj0 = 0 ;
16862 PyObject * obj1 = 0 ;
16863 PyObject * obj2 = 0 ;
16864 char * kwnames[] = {
16865 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16866 };
16867
fc46b7f3
RD
16868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16870 if (!SWIG_IsOK(res1)) {
fc46b7f3 16871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16872 }
fc46b7f3
RD
16873 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16874 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16875 if (!SWIG_IsOK(res2)) {
16876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16877 }
fc46b7f3 16878 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16879 if (obj2) {
fc46b7f3
RD
16880 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16881 if (!SWIG_IsOK(res3)) {
16882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16883 }
fc46b7f3 16884 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16885 }
16886 {
16887 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16888 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
fc46b7f3 16892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16893 return resultobj;
16894fail:
1bd55598 16895 return NULL;
d55e5bfc
RD
16896}
16897
16898
fc46b7f3 16899SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16900 PyObject *resultobj = 0;
fc46b7f3
RD
16901 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16902 wxChar *arg2 = (wxChar *) 0 ;
16903 wxChar *arg3 = (wxChar *) 0 ;
16904 size_t arg4 ;
16905 wxChar *arg5 = (wxChar *) NULL ;
16906 wxChar *result = 0 ;
1bd55598
RD
16907 void *argp1 = 0 ;
16908 int res1 = 0 ;
fc46b7f3
RD
16909 void *argp2 = 0 ;
16910 int res2 = 0 ;
16911 void *argp3 = 0 ;
16912 int res3 = 0 ;
16913 size_t val4 ;
16914 int ecode4 = 0 ;
16915 void *argp5 = 0 ;
16916 int res5 = 0 ;
16917 PyObject * obj0 = 0 ;
16918 PyObject * obj1 = 0 ;
16919 PyObject * obj2 = 0 ;
16920 PyObject * obj3 = 0 ;
16921 PyObject * obj4 = 0 ;
16922 char * kwnames[] = {
16923 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16924 };
1bd55598 16925
fc46b7f3
RD
16926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16928 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16930 }
16931 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16933 if (!SWIG_IsOK(res2)) {
16934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16935 }
16936 arg2 = reinterpret_cast< wxChar * >(argp2);
16937 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16938 if (!SWIG_IsOK(res3)) {
16939 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16940 }
16941 arg3 = reinterpret_cast< wxChar * >(argp3);
16942 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16943 if (!SWIG_IsOK(ecode4)) {
16944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16945 }
16946 arg4 = static_cast< size_t >(val4);
16947 if (obj4) {
16948 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16949 if (!SWIG_IsOK(res5)) {
16950 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16951 }
16952 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16953 }
1bd55598
RD
16954 {
16955 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16956 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16957 wxPyEndAllowThreads(__tstate);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
fc46b7f3 16960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16961 return resultobj;
16962fail:
16963 return NULL;
d55e5bfc
RD
16964}
16965
16966
fc46b7f3 16967SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16968 PyObject *obj;
16969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16970 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16971 return SWIG_Py_Void();
d55e5bfc
RD
16972}
16973
fc46b7f3 16974SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16975 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16976}
16977
1bd55598
RD
16978SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16979 PyObject *resultobj = 0;
16980 wxLocale *result = 0 ;
16981
16982 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 result = (wxLocale *)wxGetLocale();
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16990 return resultobj;
16991fail:
16992 return NULL;
d55e5bfc
RD
16993}
16994
16995
1bd55598
RD
16996SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16997 PyObject *resultobj = 0;
16998 wxString *arg1 = 0 ;
16999 wxString result;
17000 bool temp1 = false ;
17001
17002 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17003 {
17004 arg1 = wxString_in_helper(swig_obj[0]);
17005 if (arg1 == NULL) SWIG_fail;
17006 temp1 = true;
17007 }
17008 {
17009 PyThreadState* __tstate = wxPyBeginAllowThreads();
17010 result = wxGetTranslation((wxString const &)*arg1);
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 {
36ed4f51 17015#if wxUSE_UNICODE
1bd55598 17016 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17017#else
1bd55598 17018 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17019#endif
1bd55598
RD
17020 }
17021 {
17022 if (temp1)
17023 delete arg1;
17024 }
17025 return resultobj;
17026fail:
17027 {
17028 if (temp1)
17029 delete arg1;
17030 }
17031 return NULL;
5e483524
RD
17032}
17033
17034
1bd55598 17035SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17036 PyObject *resultobj = 0;
17037 wxString *arg1 = 0 ;
17038 wxString *arg2 = 0 ;
17039 wxString result;
17040 bool temp1 = false ;
17041 bool temp2 = false ;
17042
17043 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17044 {
17045 arg1 = wxString_in_helper(swig_obj[0]);
17046 if (arg1 == NULL) SWIG_fail;
17047 temp1 = true;
17048 }
17049 {
17050 arg2 = wxString_in_helper(swig_obj[1]);
17051 if (arg2 == NULL) SWIG_fail;
17052 temp2 = true;
17053 }
17054 {
17055 PyThreadState* __tstate = wxPyBeginAllowThreads();
17056 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17057 wxPyEndAllowThreads(__tstate);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 }
17060 {
17061#if wxUSE_UNICODE
17062 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17063#else
17064 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17065#endif
17066 }
17067 {
17068 if (temp1)
17069 delete arg1;
17070 }
17071 {
17072 if (temp2)
17073 delete arg2;
17074 }
17075 return resultobj;
17076fail:
17077 {
17078 if (temp1)
17079 delete arg1;
17080 }
17081 {
17082 if (temp2)
17083 delete arg2;
17084 }
17085 return NULL;
17086}
17087
17088
17089SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17090 PyObject *resultobj = 0;
17091 wxString *arg1 = 0 ;
17092 wxString *arg2 = 0 ;
17093 size_t arg3 ;
17094 wxString result;
17095 bool temp1 = false ;
17096 bool temp2 = false ;
17097 size_t val3 ;
17098 int ecode3 = 0 ;
17099
17100 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17101 {
17102 arg1 = wxString_in_helper(swig_obj[0]);
17103 if (arg1 == NULL) SWIG_fail;
17104 temp1 = true;
17105 }
17106 {
17107 arg2 = wxString_in_helper(swig_obj[1]);
17108 if (arg2 == NULL) SWIG_fail;
17109 temp2 = true;
17110 }
17111 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17112 if (!SWIG_IsOK(ecode3)) {
17113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17114 }
17115 arg3 = static_cast< size_t >(val3);
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 {
36ed4f51 17123#if wxUSE_UNICODE
1bd55598 17124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17125#else
1bd55598 17126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17127#endif
1bd55598
RD
17128 }
17129 {
17130 if (temp1)
17131 delete arg1;
17132 }
17133 {
17134 if (temp2)
17135 delete arg2;
17136 }
17137 return resultobj;
17138fail:
17139 {
17140 if (temp1)
17141 delete arg1;
17142 }
17143 {
17144 if (temp2)
17145 delete arg2;
17146 }
17147 return NULL;
d55e5bfc
RD
17148}
17149
17150
fc46b7f3
RD
17151SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17152 PyObject *resultobj = 0;
17153 wxString *arg1 = 0 ;
17154 wxString *arg2 = 0 ;
17155 size_t arg3 ;
17156 wxString *arg4 = 0 ;
17157 wxString result;
17158 bool temp1 = false ;
17159 bool temp2 = false ;
17160 size_t val3 ;
17161 int ecode3 = 0 ;
17162 bool temp4 = false ;
17163
17164 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17165 {
17166 arg1 = wxString_in_helper(swig_obj[0]);
17167 if (arg1 == NULL) SWIG_fail;
17168 temp1 = true;
17169 }
17170 {
17171 arg2 = wxString_in_helper(swig_obj[1]);
17172 if (arg2 == NULL) SWIG_fail;
17173 temp2 = true;
17174 }
17175 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17176 if (!SWIG_IsOK(ecode3)) {
17177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17178 }
17179 arg3 = static_cast< size_t >(val3);
17180 {
17181 arg4 = wxString_in_helper(swig_obj[3]);
17182 if (arg4 == NULL) SWIG_fail;
17183 temp4 = true;
17184 }
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192#if wxUSE_UNICODE
17193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17194#else
17195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17196#endif
17197 }
17198 {
17199 if (temp1)
17200 delete arg1;
17201 }
17202 {
17203 if (temp2)
17204 delete arg2;
17205 }
17206 {
17207 if (temp4)
17208 delete arg4;
17209 }
17210 return resultobj;
17211fail:
17212 {
17213 if (temp1)
17214 delete arg1;
17215 }
17216 {
17217 if (temp2)
17218 delete arg2;
17219 }
17220 {
17221 if (temp4)
17222 delete arg4;
17223 }
17224 return NULL;
17225}
17226
17227
1bd55598
RD
17228SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17229 int argc;
fc46b7f3 17230 PyObject *argv[5];
1bd55598 17231
fc46b7f3 17232 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17233 --argc;
17234 if (argc == 1) {
17235 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17236 }
fc46b7f3 17237 if (argc == 2) {
1bd55598
RD
17238 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17239 }
fc46b7f3
RD
17240 if (argc == 3) {
17241 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17242 }
17243 if (argc == 4) {
17244 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17245 }
1bd55598
RD
17246
17247fail:
17248 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17249 return NULL;
d55e5bfc
RD
17250}
17251
17252
1bd55598
RD
17253SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17254 PyObject *resultobj = 0;
17255 wxEncodingConverter *result = 0 ;
17256
17257 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17258 {
17259 PyThreadState* __tstate = wxPyBeginAllowThreads();
17260 result = (wxEncodingConverter *)new wxEncodingConverter();
17261 wxPyEndAllowThreads(__tstate);
17262 if (PyErr_Occurred()) SWIG_fail;
17263 }
17264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17265 return resultobj;
17266fail:
17267 return NULL;
d55e5bfc
RD
17268}
17269
17270
1bd55598
RD
17271SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17272 PyObject *resultobj = 0;
17273 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17274 void *argp1 = 0 ;
17275 int res1 = 0 ;
17276 PyObject *swig_obj[1] ;
17277
17278 if (!args) SWIG_fail;
17279 swig_obj[0] = args;
17280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17281 if (!SWIG_IsOK(res1)) {
17282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17283 }
17284 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17285 {
17286 PyThreadState* __tstate = wxPyBeginAllowThreads();
17287 delete arg1;
d55e5bfc 17288
1bd55598
RD
17289 wxPyEndAllowThreads(__tstate);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 }
17292 resultobj = SWIG_Py_Void();
17293 return resultobj;
17294fail:
17295 return NULL;
17296}
17297
17298
17299SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj = 0;
17301 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17302 wxFontEncoding arg2 ;
17303 wxFontEncoding arg3 ;
17304 int arg4 = (int) wxCONVERT_STRICT ;
17305 bool result;
17306 void *argp1 = 0 ;
17307 int res1 = 0 ;
17308 int val2 ;
17309 int ecode2 = 0 ;
17310 int val3 ;
17311 int ecode3 = 0 ;
17312 int val4 ;
17313 int ecode4 = 0 ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 PyObject * obj2 = 0 ;
17317 PyObject * obj3 = 0 ;
17318 char * kwnames[] = {
17319 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17320 };
17321
17322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17324 if (!SWIG_IsOK(res1)) {
17325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17326 }
17327 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17328 ecode2 = SWIG_AsVal_int(obj1, &val2);
17329 if (!SWIG_IsOK(ecode2)) {
17330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17331 }
17332 arg2 = static_cast< wxFontEncoding >(val2);
17333 ecode3 = SWIG_AsVal_int(obj2, &val3);
17334 if (!SWIG_IsOK(ecode3)) {
17335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17336 }
17337 arg3 = static_cast< wxFontEncoding >(val3);
17338 if (obj3) {
17339 ecode4 = SWIG_AsVal_int(obj3, &val4);
17340 if (!SWIG_IsOK(ecode4)) {
17341 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17342 }
17343 arg4 = static_cast< int >(val4);
17344 }
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17348 wxPyEndAllowThreads(__tstate);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 }
17351 {
17352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17353 }
17354 return resultobj;
17355fail:
17356 return NULL;
17357}
17358
17359
17360SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17361 PyObject *resultobj = 0;
17362 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17363 wxString *arg2 = 0 ;
17364 wxString result;
17365 void *argp1 = 0 ;
17366 int res1 = 0 ;
17367 bool temp2 = false ;
17368 PyObject * obj0 = 0 ;
17369 PyObject * obj1 = 0 ;
17370 char * kwnames[] = {
17371 (char *) "self",(char *) "input", NULL
17372 };
17373
17374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17376 if (!SWIG_IsOK(res1)) {
17377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17378 }
17379 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17380 {
17381 arg2 = wxString_in_helper(obj1);
17382 if (arg2 == NULL) SWIG_fail;
17383 temp2 = true;
17384 }
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 result = (arg1)->Convert((wxString const &)*arg2);
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 {
d55e5bfc 17392#if wxUSE_UNICODE
1bd55598 17393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17394#else
1bd55598 17395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17396#endif
1bd55598
RD
17397 }
17398 {
17399 if (temp2)
17400 delete arg2;
17401 }
17402 return resultobj;
17403fail:
17404 {
17405 if (temp2)
17406 delete arg2;
17407 }
17408 return NULL;
17409}
17410
17411
17412SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17413 PyObject *resultobj = 0;
17414 wxFontEncoding arg1 ;
17415 int arg2 = (int) wxPLATFORM_CURRENT ;
17416 wxFontEncodingArray result;
17417 int val1 ;
17418 int ecode1 = 0 ;
17419 int val2 ;
17420 int ecode2 = 0 ;
17421 PyObject * obj0 = 0 ;
17422 PyObject * obj1 = 0 ;
17423 char * kwnames[] = {
17424 (char *) "enc",(char *) "platform", NULL
17425 };
17426
17427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17428 ecode1 = SWIG_AsVal_int(obj0, &val1);
17429 if (!SWIG_IsOK(ecode1)) {
17430 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17431 }
17432 arg1 = static_cast< wxFontEncoding >(val1);
17433 if (obj1) {
17434 ecode2 = SWIG_AsVal_int(obj1, &val2);
17435 if (!SWIG_IsOK(ecode2)) {
17436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17437 }
17438 arg2 = static_cast< int >(val2);
17439 }
17440 {
17441 PyThreadState* __tstate = wxPyBeginAllowThreads();
17442 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17443 wxPyEndAllowThreads(__tstate);
17444 if (PyErr_Occurred()) SWIG_fail;
17445 }
17446 {
17447 resultobj = PyList_New(0);
17448 for (size_t i=0; i < (&result)->GetCount(); i++) {
17449 PyObject* number = PyInt_FromLong((&result)->Item(i));
17450 PyList_Append(resultobj, number);
17451 Py_DECREF(number);
d55e5bfc 17452 }
1bd55598
RD
17453 }
17454 return resultobj;
17455fail:
17456 return NULL;
d55e5bfc
RD
17457}
17458
17459
1bd55598
RD
17460SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17461 PyObject *resultobj = 0;
17462 wxFontEncoding arg1 ;
17463 wxFontEncodingArray result;
17464 int val1 ;
17465 int ecode1 = 0 ;
17466 PyObject * obj0 = 0 ;
17467 char * kwnames[] = {
17468 (char *) "enc", NULL
17469 };
17470
17471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17472 ecode1 = SWIG_AsVal_int(obj0, &val1);
17473 if (!SWIG_IsOK(ecode1)) {
17474 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17475 }
17476 arg1 = static_cast< wxFontEncoding >(val1);
17477 {
17478 PyThreadState* __tstate = wxPyBeginAllowThreads();
17479 result = wxEncodingConverter::GetAllEquivalents(arg1);
17480 wxPyEndAllowThreads(__tstate);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 }
17483 {
17484 resultobj = PyList_New(0);
17485 for (size_t i=0; i < (&result)->GetCount(); i++) {
17486 PyObject* number = PyInt_FromLong((&result)->Item(i));
17487 PyList_Append(resultobj, number);
17488 Py_DECREF(number);
d55e5bfc 17489 }
1bd55598
RD
17490 }
17491 return resultobj;
17492fail:
17493 return NULL;
17494}
17495
17496
17497SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj = 0;
17499 wxFontEncoding arg1 ;
17500 wxFontEncoding arg2 ;
17501 bool result;
17502 int val1 ;
17503 int ecode1 = 0 ;
17504 int val2 ;
17505 int ecode2 = 0 ;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 char * kwnames[] = {
17509 (char *) "encIn",(char *) "encOut", NULL
17510 };
17511
17512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17513 ecode1 = SWIG_AsVal_int(obj0, &val1);
17514 if (!SWIG_IsOK(ecode1)) {
17515 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17516 }
17517 arg1 = static_cast< wxFontEncoding >(val1);
17518 ecode2 = SWIG_AsVal_int(obj1, &val2);
17519 if (!SWIG_IsOK(ecode2)) {
17520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17521 }
17522 arg2 = static_cast< wxFontEncoding >(val2);
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17526 wxPyEndAllowThreads(__tstate);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 {
17530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17531 }
17532 return resultobj;
17533fail:
17534 return NULL;
d55e5bfc
RD
17535}
17536
17537
1bd55598
RD
17538SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17539 PyObject *obj;
17540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17541 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17542 return SWIG_Py_Void();
d55e5bfc
RD
17543}
17544
1bd55598
RD
17545SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17546 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17547}
17548
1bd55598
RD
17549SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17550 PyObject *resultobj = 0;
17551 wxDC *arg1 = (wxDC *) 0 ;
17552 void *argp1 = 0 ;
17553 int res1 = 0 ;
17554 PyObject *swig_obj[1] ;
17555
17556 if (!args) SWIG_fail;
17557 swig_obj[0] = args;
17558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17559 if (!SWIG_IsOK(res1)) {
17560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17561 }
17562 arg1 = reinterpret_cast< wxDC * >(argp1);
17563 {
17564 PyThreadState* __tstate = wxPyBeginAllowThreads();
17565 delete arg1;
d55e5bfc 17566
1bd55598
RD
17567 wxPyEndAllowThreads(__tstate);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 }
17570 resultobj = SWIG_Py_Void();
17571 return resultobj;
17572fail:
17573 return NULL;
17574}
17575
17576
17577SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17578 PyObject *resultobj = 0;
17579 wxDC *arg1 = (wxDC *) 0 ;
17580 int arg2 ;
17581 int arg3 ;
17582 wxColour *arg4 = 0 ;
17583 int arg5 = (int) wxFLOOD_SURFACE ;
17584 bool result;
17585 void *argp1 = 0 ;
17586 int res1 = 0 ;
17587 int val2 ;
17588 int ecode2 = 0 ;
17589 int val3 ;
17590 int ecode3 = 0 ;
17591 wxColour temp4 ;
17592 int val5 ;
17593 int ecode5 = 0 ;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 PyObject * obj2 = 0 ;
17597 PyObject * obj3 = 0 ;
17598 PyObject * obj4 = 0 ;
17599 char * kwnames[] = {
17600 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17601 };
17602
17603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17605 if (!SWIG_IsOK(res1)) {
17606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17607 }
17608 arg1 = reinterpret_cast< wxDC * >(argp1);
17609 ecode2 = SWIG_AsVal_int(obj1, &val2);
17610 if (!SWIG_IsOK(ecode2)) {
17611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17612 }
17613 arg2 = static_cast< int >(val2);
17614 ecode3 = SWIG_AsVal_int(obj2, &val3);
17615 if (!SWIG_IsOK(ecode3)) {
17616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17617 }
17618 arg3 = static_cast< int >(val3);
17619 {
17620 arg4 = &temp4;
17621 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17622 }
17623 if (obj4) {
17624 ecode5 = SWIG_AsVal_int(obj4, &val5);
17625 if (!SWIG_IsOK(ecode5)) {
17626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17627 }
17628 arg5 = static_cast< int >(val5);
17629 }
17630 {
17631 PyThreadState* __tstate = wxPyBeginAllowThreads();
17632 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17633 wxPyEndAllowThreads(__tstate);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 {
17637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17638 }
17639 return resultobj;
17640fail:
17641 return NULL;
17642}
17643
17644
17645SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17646 PyObject *resultobj = 0;
17647 wxDC *arg1 = (wxDC *) 0 ;
17648 wxPoint *arg2 = 0 ;
17649 wxColour *arg3 = 0 ;
17650 int arg4 = (int) wxFLOOD_SURFACE ;
17651 bool result;
17652 void *argp1 = 0 ;
17653 int res1 = 0 ;
17654 wxPoint temp2 ;
17655 wxColour temp3 ;
17656 int val4 ;
17657 int ecode4 = 0 ;
17658 PyObject * obj0 = 0 ;
17659 PyObject * obj1 = 0 ;
17660 PyObject * obj2 = 0 ;
17661 PyObject * obj3 = 0 ;
17662 char * kwnames[] = {
17663 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17664 };
17665
17666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17668 if (!SWIG_IsOK(res1)) {
17669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17670 }
17671 arg1 = reinterpret_cast< wxDC * >(argp1);
17672 {
17673 arg2 = &temp2;
17674 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17675 }
17676 {
17677 arg3 = &temp3;
17678 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17679 }
17680 if (obj3) {
17681 ecode4 = SWIG_AsVal_int(obj3, &val4);
17682 if (!SWIG_IsOK(ecode4)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17684 }
17685 arg4 = static_cast< int >(val4);
17686 }
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17690 wxPyEndAllowThreads(__tstate);
17691 if (PyErr_Occurred()) SWIG_fail;
17692 }
17693 {
17694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17695 }
17696 return resultobj;
17697fail:
17698 return NULL;
17699}
17700
17701
17702SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17703 PyObject *resultobj = 0;
17704 wxDC *arg1 = (wxDC *) 0 ;
17705 wxRect *arg2 = 0 ;
17706 wxColour *arg3 = 0 ;
17707 wxColour *arg4 = 0 ;
17708 wxPoint *arg5 = 0 ;
17709 void *argp1 = 0 ;
17710 int res1 = 0 ;
17711 wxRect temp2 ;
17712 wxColour temp3 ;
17713 wxColour temp4 ;
17714 wxPoint temp5 ;
17715 PyObject * obj0 = 0 ;
17716 PyObject * obj1 = 0 ;
17717 PyObject * obj2 = 0 ;
17718 PyObject * obj3 = 0 ;
17719 PyObject * obj4 = 0 ;
17720 char * kwnames[] = {
17721 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17722 };
17723
17724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17726 if (!SWIG_IsOK(res1)) {
17727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17728 }
17729 arg1 = reinterpret_cast< wxDC * >(argp1);
17730 {
17731 arg2 = &temp2;
17732 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17733 }
17734 {
17735 arg3 = &temp3;
17736 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17737 }
17738 {
17739 arg4 = &temp4;
17740 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17741 }
17742 {
17743 arg5 = &temp5;
17744 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17745 }
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 resultobj = SWIG_Py_Void();
17753 return resultobj;
17754fail:
17755 return NULL;
17756}
17757
17758
17759SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj = 0;
17761 wxDC *arg1 = (wxDC *) 0 ;
17762 wxRect *arg2 = 0 ;
17763 wxColour *arg3 = 0 ;
17764 wxColour *arg4 = 0 ;
17765 wxDirection arg5 = (wxDirection) wxEAST ;
17766 void *argp1 = 0 ;
17767 int res1 = 0 ;
17768 wxRect temp2 ;
17769 wxColour temp3 ;
17770 wxColour temp4 ;
17771 int val5 ;
17772 int ecode5 = 0 ;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 PyObject * obj2 = 0 ;
17776 PyObject * obj3 = 0 ;
17777 PyObject * obj4 = 0 ;
17778 char * kwnames[] = {
17779 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17780 };
17781
17782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17784 if (!SWIG_IsOK(res1)) {
17785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17786 }
17787 arg1 = reinterpret_cast< wxDC * >(argp1);
17788 {
17789 arg2 = &temp2;
17790 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17791 }
17792 {
17793 arg3 = &temp3;
17794 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17795 }
17796 {
17797 arg4 = &temp4;
17798 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17799 }
17800 if (obj4) {
17801 ecode5 = SWIG_AsVal_int(obj4, &val5);
17802 if (!SWIG_IsOK(ecode5)) {
17803 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17804 }
17805 arg5 = static_cast< wxDirection >(val5);
17806 }
17807 {
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_Py_Void();
17814 return resultobj;
17815fail:
17816 return NULL;
17817}
17818
17819
17820SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj = 0;
17822 wxDC *arg1 = (wxDC *) 0 ;
17823 int arg2 ;
17824 int arg3 ;
17825 wxColour result;
17826 void *argp1 = 0 ;
17827 int res1 = 0 ;
17828 int val2 ;
17829 int ecode2 = 0 ;
17830 int val3 ;
17831 int ecode3 = 0 ;
17832 PyObject * obj0 = 0 ;
17833 PyObject * obj1 = 0 ;
17834 PyObject * obj2 = 0 ;
17835 char * kwnames[] = {
17836 (char *) "self",(char *) "x",(char *) "y", NULL
17837 };
17838
17839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17841 if (!SWIG_IsOK(res1)) {
17842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17843 }
17844 arg1 = reinterpret_cast< wxDC * >(argp1);
17845 ecode2 = SWIG_AsVal_int(obj1, &val2);
17846 if (!SWIG_IsOK(ecode2)) {
17847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17848 }
17849 arg2 = static_cast< int >(val2);
17850 ecode3 = SWIG_AsVal_int(obj2, &val3);
17851 if (!SWIG_IsOK(ecode3)) {
17852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17853 }
17854 arg3 = static_cast< int >(val3);
17855 {
17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
17857 result = wxDC_GetPixel(arg1,arg2,arg3);
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17862 return resultobj;
17863fail:
17864 return NULL;
17865}
17866
17867
17868SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj = 0;
17870 wxDC *arg1 = (wxDC *) 0 ;
17871 wxPoint *arg2 = 0 ;
17872 wxColour result;
17873 void *argp1 = 0 ;
17874 int res1 = 0 ;
17875 wxPoint temp2 ;
17876 PyObject * obj0 = 0 ;
17877 PyObject * obj1 = 0 ;
17878 char * kwnames[] = {
17879 (char *) "self",(char *) "pt", NULL
17880 };
17881
17882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17884 if (!SWIG_IsOK(res1)) {
17885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17886 }
17887 arg1 = reinterpret_cast< wxDC * >(argp1);
17888 {
17889 arg2 = &temp2;
17890 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17891 }
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17899 return resultobj;
17900fail:
17901 return NULL;
17902}
17903
17904
17905SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17906 PyObject *resultobj = 0;
17907 wxDC *arg1 = (wxDC *) 0 ;
17908 int arg2 ;
17909 int arg3 ;
17910 int arg4 ;
17911 int arg5 ;
17912 void *argp1 = 0 ;
17913 int res1 = 0 ;
17914 int val2 ;
17915 int ecode2 = 0 ;
17916 int val3 ;
17917 int ecode3 = 0 ;
17918 int val4 ;
17919 int ecode4 = 0 ;
17920 int val5 ;
17921 int ecode5 = 0 ;
17922 PyObject * obj0 = 0 ;
17923 PyObject * obj1 = 0 ;
17924 PyObject * obj2 = 0 ;
17925 PyObject * obj3 = 0 ;
17926 PyObject * obj4 = 0 ;
17927 char * kwnames[] = {
17928 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17929 };
17930
17931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17933 if (!SWIG_IsOK(res1)) {
17934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17935 }
17936 arg1 = reinterpret_cast< wxDC * >(argp1);
17937 ecode2 = SWIG_AsVal_int(obj1, &val2);
17938 if (!SWIG_IsOK(ecode2)) {
17939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17940 }
17941 arg2 = static_cast< int >(val2);
17942 ecode3 = SWIG_AsVal_int(obj2, &val3);
17943 if (!SWIG_IsOK(ecode3)) {
17944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17945 }
17946 arg3 = static_cast< int >(val3);
17947 ecode4 = SWIG_AsVal_int(obj3, &val4);
17948 if (!SWIG_IsOK(ecode4)) {
17949 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17950 }
17951 arg4 = static_cast< int >(val4);
17952 ecode5 = SWIG_AsVal_int(obj4, &val5);
17953 if (!SWIG_IsOK(ecode5)) {
17954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17955 }
17956 arg5 = static_cast< int >(val5);
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = SWIG_Py_Void();
17964 return resultobj;
17965fail:
17966 return NULL;
17967}
17968
17969
17970SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj = 0;
17972 wxDC *arg1 = (wxDC *) 0 ;
17973 wxPoint *arg2 = 0 ;
17974 wxPoint *arg3 = 0 ;
17975 void *argp1 = 0 ;
17976 int res1 = 0 ;
17977 wxPoint temp2 ;
17978 wxPoint temp3 ;
17979 PyObject * obj0 = 0 ;
17980 PyObject * obj1 = 0 ;
17981 PyObject * obj2 = 0 ;
17982 char * kwnames[] = {
17983 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17984 };
17985
17986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17988 if (!SWIG_IsOK(res1)) {
17989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17990 }
17991 arg1 = reinterpret_cast< wxDC * >(argp1);
17992 {
17993 arg2 = &temp2;
17994 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17995 }
17996 {
17997 arg3 = &temp3;
17998 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17999 }
18000 {
18001 PyThreadState* __tstate = wxPyBeginAllowThreads();
18002 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18003 wxPyEndAllowThreads(__tstate);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 resultobj = SWIG_Py_Void();
18007 return resultobj;
18008fail:
18009 return NULL;
18010}
18011
18012
18013SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18014 PyObject *resultobj = 0;
18015 wxDC *arg1 = (wxDC *) 0 ;
18016 int arg2 ;
18017 int arg3 ;
18018 void *argp1 = 0 ;
18019 int res1 = 0 ;
18020 int val2 ;
18021 int ecode2 = 0 ;
18022 int val3 ;
18023 int ecode3 = 0 ;
18024 PyObject * obj0 = 0 ;
18025 PyObject * obj1 = 0 ;
18026 PyObject * obj2 = 0 ;
18027 char * kwnames[] = {
18028 (char *) "self",(char *) "x",(char *) "y", NULL
18029 };
18030
18031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18033 if (!SWIG_IsOK(res1)) {
18034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18035 }
18036 arg1 = reinterpret_cast< wxDC * >(argp1);
18037 ecode2 = SWIG_AsVal_int(obj1, &val2);
18038 if (!SWIG_IsOK(ecode2)) {
18039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18040 }
18041 arg2 = static_cast< int >(val2);
18042 ecode3 = SWIG_AsVal_int(obj2, &val3);
18043 if (!SWIG_IsOK(ecode3)) {
18044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18045 }
18046 arg3 = static_cast< int >(val3);
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 (arg1)->CrossHair(arg2,arg3);
18050 wxPyEndAllowThreads(__tstate);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 resultobj = SWIG_Py_Void();
18054 return resultobj;
18055fail:
18056 return NULL;
18057}
18058
18059
18060SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18061 PyObject *resultobj = 0;
18062 wxDC *arg1 = (wxDC *) 0 ;
18063 wxPoint *arg2 = 0 ;
18064 void *argp1 = 0 ;
18065 int res1 = 0 ;
18066 wxPoint temp2 ;
18067 PyObject * obj0 = 0 ;
18068 PyObject * obj1 = 0 ;
18069 char * kwnames[] = {
18070 (char *) "self",(char *) "pt", NULL
18071 };
18072
18073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18075 if (!SWIG_IsOK(res1)) {
18076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18077 }
18078 arg1 = reinterpret_cast< wxDC * >(argp1);
18079 {
18080 arg2 = &temp2;
18081 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18082 }
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 (arg1)->CrossHair((wxPoint const &)*arg2);
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 resultobj = SWIG_Py_Void();
18090 return resultobj;
18091fail:
18092 return NULL;
18093}
18094
18095
18096SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj = 0;
18098 wxDC *arg1 = (wxDC *) 0 ;
18099 int arg2 ;
18100 int arg3 ;
18101 int arg4 ;
18102 int arg5 ;
18103 int arg6 ;
18104 int arg7 ;
18105 void *argp1 = 0 ;
18106 int res1 = 0 ;
18107 int val2 ;
18108 int ecode2 = 0 ;
18109 int val3 ;
18110 int ecode3 = 0 ;
18111 int val4 ;
18112 int ecode4 = 0 ;
18113 int val5 ;
18114 int ecode5 = 0 ;
18115 int val6 ;
18116 int ecode6 = 0 ;
18117 int val7 ;
18118 int ecode7 = 0 ;
18119 PyObject * obj0 = 0 ;
18120 PyObject * obj1 = 0 ;
18121 PyObject * obj2 = 0 ;
18122 PyObject * obj3 = 0 ;
18123 PyObject * obj4 = 0 ;
18124 PyObject * obj5 = 0 ;
18125 PyObject * obj6 = 0 ;
18126 char * kwnames[] = {
18127 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18128 };
18129
18130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18132 if (!SWIG_IsOK(res1)) {
18133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18134 }
18135 arg1 = reinterpret_cast< wxDC * >(argp1);
18136 ecode2 = SWIG_AsVal_int(obj1, &val2);
18137 if (!SWIG_IsOK(ecode2)) {
18138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18139 }
18140 arg2 = static_cast< int >(val2);
18141 ecode3 = SWIG_AsVal_int(obj2, &val3);
18142 if (!SWIG_IsOK(ecode3)) {
18143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18144 }
18145 arg3 = static_cast< int >(val3);
18146 ecode4 = SWIG_AsVal_int(obj3, &val4);
18147 if (!SWIG_IsOK(ecode4)) {
18148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18149 }
18150 arg4 = static_cast< int >(val4);
18151 ecode5 = SWIG_AsVal_int(obj4, &val5);
18152 if (!SWIG_IsOK(ecode5)) {
18153 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18154 }
18155 arg5 = static_cast< int >(val5);
18156 ecode6 = SWIG_AsVal_int(obj5, &val6);
18157 if (!SWIG_IsOK(ecode6)) {
18158 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18159 }
18160 arg6 = static_cast< int >(val6);
18161 ecode7 = SWIG_AsVal_int(obj6, &val7);
18162 if (!SWIG_IsOK(ecode7)) {
18163 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18164 }
18165 arg7 = static_cast< int >(val7);
18166 {
18167 PyThreadState* __tstate = wxPyBeginAllowThreads();
18168 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18169 wxPyEndAllowThreads(__tstate);
18170 if (PyErr_Occurred()) SWIG_fail;
18171 }
18172 resultobj = SWIG_Py_Void();
18173 return resultobj;
18174fail:
18175 return NULL;
18176}
18177
18178
18179SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18180 PyObject *resultobj = 0;
18181 wxDC *arg1 = (wxDC *) 0 ;
18182 wxPoint *arg2 = 0 ;
18183 wxPoint *arg3 = 0 ;
18184 wxPoint *arg4 = 0 ;
18185 void *argp1 = 0 ;
18186 int res1 = 0 ;
18187 wxPoint temp2 ;
18188 wxPoint temp3 ;
18189 wxPoint temp4 ;
18190 PyObject * obj0 = 0 ;
18191 PyObject * obj1 = 0 ;
18192 PyObject * obj2 = 0 ;
18193 PyObject * obj3 = 0 ;
18194 char * kwnames[] = {
18195 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18196 };
18197
18198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18202 }
18203 arg1 = reinterpret_cast< wxDC * >(argp1);
18204 {
18205 arg2 = &temp2;
18206 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18207 }
18208 {
18209 arg3 = &temp3;
18210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18211 }
18212 {
18213 arg4 = &temp4;
18214 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18215 }
18216 {
18217 PyThreadState* __tstate = wxPyBeginAllowThreads();
18218 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 resultobj = SWIG_Py_Void();
18223 return resultobj;
18224fail:
18225 return NULL;
18226}
18227
18228
18229SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj = 0;
18231 wxDC *arg1 = (wxDC *) 0 ;
18232 int arg2 ;
18233 int arg3 ;
18234 int arg4 ;
18235 int arg5 ;
18236 void *argp1 = 0 ;
18237 int res1 = 0 ;
18238 int val2 ;
18239 int ecode2 = 0 ;
18240 int val3 ;
18241 int ecode3 = 0 ;
18242 int val4 ;
18243 int ecode4 = 0 ;
18244 int val5 ;
18245 int ecode5 = 0 ;
18246 PyObject * obj0 = 0 ;
18247 PyObject * obj1 = 0 ;
18248 PyObject * obj2 = 0 ;
18249 PyObject * obj3 = 0 ;
18250 PyObject * obj4 = 0 ;
18251 char * kwnames[] = {
18252 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18253 };
18254
18255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18257 if (!SWIG_IsOK(res1)) {
18258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18259 }
18260 arg1 = reinterpret_cast< wxDC * >(argp1);
18261 ecode2 = SWIG_AsVal_int(obj1, &val2);
18262 if (!SWIG_IsOK(ecode2)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18264 }
18265 arg2 = static_cast< int >(val2);
18266 ecode3 = SWIG_AsVal_int(obj2, &val3);
18267 if (!SWIG_IsOK(ecode3)) {
18268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18269 }
18270 arg3 = static_cast< int >(val3);
18271 ecode4 = SWIG_AsVal_int(obj3, &val4);
18272 if (!SWIG_IsOK(ecode4)) {
18273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18274 }
18275 arg4 = static_cast< int >(val4);
18276 ecode5 = SWIG_AsVal_int(obj4, &val5);
18277 if (!SWIG_IsOK(ecode5)) {
18278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18279 }
18280 arg5 = static_cast< int >(val5);
18281 {
18282 PyThreadState* __tstate = wxPyBeginAllowThreads();
18283 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18284 wxPyEndAllowThreads(__tstate);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
18287 resultobj = SWIG_Py_Void();
18288 return resultobj;
18289fail:
18290 return NULL;
18291}
18292
18293
18294SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18295 PyObject *resultobj = 0;
18296 wxDC *arg1 = (wxDC *) 0 ;
18297 wxRect *arg2 = 0 ;
18298 void *argp1 = 0 ;
18299 int res1 = 0 ;
18300 wxRect temp2 ;
18301 PyObject * obj0 = 0 ;
18302 PyObject * obj1 = 0 ;
18303 char * kwnames[] = {
18304 (char *) "self",(char *) "rect", NULL
18305 };
18306
18307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18309 if (!SWIG_IsOK(res1)) {
18310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18311 }
18312 arg1 = reinterpret_cast< wxDC * >(argp1);
18313 {
18314 arg2 = &temp2;
18315 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18316 }
18317 {
18318 PyThreadState* __tstate = wxPyBeginAllowThreads();
18319 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18320 wxPyEndAllowThreads(__tstate);
18321 if (PyErr_Occurred()) SWIG_fail;
18322 }
18323 resultobj = SWIG_Py_Void();
18324 return resultobj;
18325fail:
18326 return NULL;
18327}
18328
18329
18330SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18331 PyObject *resultobj = 0;
18332 wxDC *arg1 = (wxDC *) 0 ;
18333 int arg2 ;
18334 int arg3 ;
18335 int arg4 ;
18336 int arg5 ;
18337 double arg6 ;
18338 double arg7 ;
18339 void *argp1 = 0 ;
18340 int res1 = 0 ;
18341 int val2 ;
18342 int ecode2 = 0 ;
18343 int val3 ;
18344 int ecode3 = 0 ;
18345 int val4 ;
18346 int ecode4 = 0 ;
18347 int val5 ;
18348 int ecode5 = 0 ;
18349 double val6 ;
18350 int ecode6 = 0 ;
18351 double val7 ;
18352 int ecode7 = 0 ;
18353 PyObject * obj0 = 0 ;
18354 PyObject * obj1 = 0 ;
18355 PyObject * obj2 = 0 ;
18356 PyObject * obj3 = 0 ;
18357 PyObject * obj4 = 0 ;
18358 PyObject * obj5 = 0 ;
18359 PyObject * obj6 = 0 ;
18360 char * kwnames[] = {
18361 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18362 };
18363
18364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18366 if (!SWIG_IsOK(res1)) {
18367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18368 }
18369 arg1 = reinterpret_cast< wxDC * >(argp1);
18370 ecode2 = SWIG_AsVal_int(obj1, &val2);
18371 if (!SWIG_IsOK(ecode2)) {
18372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18373 }
18374 arg2 = static_cast< int >(val2);
18375 ecode3 = SWIG_AsVal_int(obj2, &val3);
18376 if (!SWIG_IsOK(ecode3)) {
18377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18378 }
18379 arg3 = static_cast< int >(val3);
18380 ecode4 = SWIG_AsVal_int(obj3, &val4);
18381 if (!SWIG_IsOK(ecode4)) {
18382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18383 }
18384 arg4 = static_cast< int >(val4);
18385 ecode5 = SWIG_AsVal_int(obj4, &val5);
18386 if (!SWIG_IsOK(ecode5)) {
18387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18388 }
18389 arg5 = static_cast< int >(val5);
18390 ecode6 = SWIG_AsVal_double(obj5, &val6);
18391 if (!SWIG_IsOK(ecode6)) {
18392 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18393 }
18394 arg6 = static_cast< double >(val6);
18395 ecode7 = SWIG_AsVal_double(obj6, &val7);
18396 if (!SWIG_IsOK(ecode7)) {
18397 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18398 }
18399 arg7 = static_cast< double >(val7);
18400 {
18401 PyThreadState* __tstate = wxPyBeginAllowThreads();
18402 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18403 wxPyEndAllowThreads(__tstate);
18404 if (PyErr_Occurred()) SWIG_fail;
18405 }
18406 resultobj = SWIG_Py_Void();
18407 return resultobj;
18408fail:
18409 return NULL;
18410}
18411
18412
18413SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18414 PyObject *resultobj = 0;
18415 wxDC *arg1 = (wxDC *) 0 ;
18416 wxPoint *arg2 = 0 ;
18417 wxSize *arg3 = 0 ;
18418 double arg4 ;
18419 double arg5 ;
18420 void *argp1 = 0 ;
18421 int res1 = 0 ;
18422 wxPoint temp2 ;
18423 wxSize temp3 ;
18424 double val4 ;
18425 int ecode4 = 0 ;
18426 double val5 ;
18427 int ecode5 = 0 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 PyObject * obj2 = 0 ;
18431 PyObject * obj3 = 0 ;
18432 PyObject * obj4 = 0 ;
18433 char * kwnames[] = {
18434 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18435 };
18436
18437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18439 if (!SWIG_IsOK(res1)) {
18440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18441 }
18442 arg1 = reinterpret_cast< wxDC * >(argp1);
18443 {
18444 arg2 = &temp2;
18445 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18446 }
18447 {
18448 arg3 = &temp3;
18449 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18450 }
18451 ecode4 = SWIG_AsVal_double(obj3, &val4);
18452 if (!SWIG_IsOK(ecode4)) {
18453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18454 }
18455 arg4 = static_cast< double >(val4);
18456 ecode5 = SWIG_AsVal_double(obj4, &val5);
18457 if (!SWIG_IsOK(ecode5)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18459 }
18460 arg5 = static_cast< double >(val5);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469fail:
18470 return NULL;
18471}
18472
18473
18474SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18475 PyObject *resultobj = 0;
18476 wxDC *arg1 = (wxDC *) 0 ;
18477 int arg2 ;
18478 int arg3 ;
18479 void *argp1 = 0 ;
18480 int res1 = 0 ;
18481 int val2 ;
18482 int ecode2 = 0 ;
18483 int val3 ;
18484 int ecode3 = 0 ;
18485 PyObject * obj0 = 0 ;
18486 PyObject * obj1 = 0 ;
18487 PyObject * obj2 = 0 ;
18488 char * kwnames[] = {
18489 (char *) "self",(char *) "x",(char *) "y", NULL
18490 };
18491
18492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18494 if (!SWIG_IsOK(res1)) {
18495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18496 }
18497 arg1 = reinterpret_cast< wxDC * >(argp1);
18498 ecode2 = SWIG_AsVal_int(obj1, &val2);
18499 if (!SWIG_IsOK(ecode2)) {
18500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18501 }
18502 arg2 = static_cast< int >(val2);
18503 ecode3 = SWIG_AsVal_int(obj2, &val3);
18504 if (!SWIG_IsOK(ecode3)) {
18505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18506 }
18507 arg3 = static_cast< int >(val3);
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 (arg1)->DrawPoint(arg2,arg3);
18511 wxPyEndAllowThreads(__tstate);
18512 if (PyErr_Occurred()) SWIG_fail;
18513 }
18514 resultobj = SWIG_Py_Void();
18515 return resultobj;
18516fail:
18517 return NULL;
18518}
18519
18520
18521SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18522 PyObject *resultobj = 0;
18523 wxDC *arg1 = (wxDC *) 0 ;
18524 wxPoint *arg2 = 0 ;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 wxPoint temp2 ;
18528 PyObject * obj0 = 0 ;
18529 PyObject * obj1 = 0 ;
18530 char * kwnames[] = {
18531 (char *) "self",(char *) "pt", NULL
18532 };
18533
18534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18536 if (!SWIG_IsOK(res1)) {
18537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18538 }
18539 arg1 = reinterpret_cast< wxDC * >(argp1);
18540 {
18541 arg2 = &temp2;
18542 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18543 }
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 (arg1)->DrawPoint((wxPoint const &)*arg2);
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_Py_Void();
18551 return resultobj;
18552fail:
18553 return NULL;
18554}
18555
18556
18557SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj = 0;
18559 wxDC *arg1 = (wxDC *) 0 ;
18560 int arg2 ;
18561 int arg3 ;
18562 int arg4 ;
18563 int arg5 ;
18564 void *argp1 = 0 ;
18565 int res1 = 0 ;
18566 int val2 ;
18567 int ecode2 = 0 ;
18568 int val3 ;
18569 int ecode3 = 0 ;
18570 int val4 ;
18571 int ecode4 = 0 ;
18572 int val5 ;
18573 int ecode5 = 0 ;
18574 PyObject * obj0 = 0 ;
18575 PyObject * obj1 = 0 ;
18576 PyObject * obj2 = 0 ;
18577 PyObject * obj3 = 0 ;
18578 PyObject * obj4 = 0 ;
18579 char * kwnames[] = {
18580 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18581 };
18582
18583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18585 if (!SWIG_IsOK(res1)) {
18586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18587 }
18588 arg1 = reinterpret_cast< wxDC * >(argp1);
18589 ecode2 = SWIG_AsVal_int(obj1, &val2);
18590 if (!SWIG_IsOK(ecode2)) {
18591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18592 }
18593 arg2 = static_cast< int >(val2);
18594 ecode3 = SWIG_AsVal_int(obj2, &val3);
18595 if (!SWIG_IsOK(ecode3)) {
18596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18597 }
18598 arg3 = static_cast< int >(val3);
18599 ecode4 = SWIG_AsVal_int(obj3, &val4);
18600 if (!SWIG_IsOK(ecode4)) {
18601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18602 }
18603 arg4 = static_cast< int >(val4);
18604 ecode5 = SWIG_AsVal_int(obj4, &val5);
18605 if (!SWIG_IsOK(ecode5)) {
18606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18607 }
18608 arg5 = static_cast< int >(val5);
18609 {
18610 PyThreadState* __tstate = wxPyBeginAllowThreads();
18611 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_Py_Void();
18616 return resultobj;
18617fail:
18618 return NULL;
18619}
18620
18621
18622SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj = 0;
18624 wxDC *arg1 = (wxDC *) 0 ;
18625 wxRect *arg2 = 0 ;
18626 void *argp1 = 0 ;
18627 int res1 = 0 ;
18628 wxRect temp2 ;
18629 PyObject * obj0 = 0 ;
18630 PyObject * obj1 = 0 ;
18631 char * kwnames[] = {
18632 (char *) "self",(char *) "rect", NULL
18633 };
18634
18635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18637 if (!SWIG_IsOK(res1)) {
18638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18639 }
18640 arg1 = reinterpret_cast< wxDC * >(argp1);
18641 {
18642 arg2 = &temp2;
18643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18644 }
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 (arg1)->DrawRectangle((wxRect const &)*arg2);
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 resultobj = SWIG_Py_Void();
18652 return resultobj;
18653fail:
18654 return NULL;
18655}
18656
18657
18658SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18659 PyObject *resultobj = 0;
18660 wxDC *arg1 = (wxDC *) 0 ;
18661 wxPoint *arg2 = 0 ;
18662 wxSize *arg3 = 0 ;
18663 void *argp1 = 0 ;
18664 int res1 = 0 ;
18665 wxPoint temp2 ;
18666 wxSize temp3 ;
18667 PyObject * obj0 = 0 ;
18668 PyObject * obj1 = 0 ;
18669 PyObject * obj2 = 0 ;
18670 char * kwnames[] = {
18671 (char *) "self",(char *) "pt",(char *) "sz", NULL
18672 };
18673
18674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18676 if (!SWIG_IsOK(res1)) {
18677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18678 }
18679 arg1 = reinterpret_cast< wxDC * >(argp1);
18680 {
18681 arg2 = &temp2;
18682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18683 }
18684 {
18685 arg3 = &temp3;
18686 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18687 }
18688 {
18689 PyThreadState* __tstate = wxPyBeginAllowThreads();
18690 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18691 wxPyEndAllowThreads(__tstate);
18692 if (PyErr_Occurred()) SWIG_fail;
18693 }
18694 resultobj = SWIG_Py_Void();
18695 return resultobj;
18696fail:
18697 return NULL;
18698}
18699
18700
18701SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18702 PyObject *resultobj = 0;
18703 wxDC *arg1 = (wxDC *) 0 ;
18704 int arg2 ;
18705 int arg3 ;
18706 int arg4 ;
18707 int arg5 ;
18708 double arg6 ;
18709 void *argp1 = 0 ;
18710 int res1 = 0 ;
18711 int val2 ;
18712 int ecode2 = 0 ;
18713 int val3 ;
18714 int ecode3 = 0 ;
18715 int val4 ;
18716 int ecode4 = 0 ;
18717 int val5 ;
18718 int ecode5 = 0 ;
18719 double val6 ;
18720 int ecode6 = 0 ;
18721 PyObject * obj0 = 0 ;
18722 PyObject * obj1 = 0 ;
18723 PyObject * obj2 = 0 ;
18724 PyObject * obj3 = 0 ;
18725 PyObject * obj4 = 0 ;
18726 PyObject * obj5 = 0 ;
18727 char * kwnames[] = {
18728 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18729 };
18730
18731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18733 if (!SWIG_IsOK(res1)) {
18734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18735 }
18736 arg1 = reinterpret_cast< wxDC * >(argp1);
18737 ecode2 = SWIG_AsVal_int(obj1, &val2);
18738 if (!SWIG_IsOK(ecode2)) {
18739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18740 }
18741 arg2 = static_cast< int >(val2);
18742 ecode3 = SWIG_AsVal_int(obj2, &val3);
18743 if (!SWIG_IsOK(ecode3)) {
18744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18745 }
18746 arg3 = static_cast< int >(val3);
18747 ecode4 = SWIG_AsVal_int(obj3, &val4);
18748 if (!SWIG_IsOK(ecode4)) {
18749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18750 }
18751 arg4 = static_cast< int >(val4);
18752 ecode5 = SWIG_AsVal_int(obj4, &val5);
18753 if (!SWIG_IsOK(ecode5)) {
18754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18755 }
18756 arg5 = static_cast< int >(val5);
18757 ecode6 = SWIG_AsVal_double(obj5, &val6);
18758 if (!SWIG_IsOK(ecode6)) {
18759 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18760 }
18761 arg6 = static_cast< double >(val6);
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_Py_Void();
18769 return resultobj;
18770fail:
18771 return NULL;
18772}
18773
18774
18775SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18776 PyObject *resultobj = 0;
18777 wxDC *arg1 = (wxDC *) 0 ;
18778 wxRect *arg2 = 0 ;
18779 double arg3 ;
18780 void *argp1 = 0 ;
18781 int res1 = 0 ;
18782 wxRect temp2 ;
18783 double val3 ;
18784 int ecode3 = 0 ;
18785 PyObject * obj0 = 0 ;
18786 PyObject * obj1 = 0 ;
18787 PyObject * obj2 = 0 ;
18788 char * kwnames[] = {
18789 (char *) "self",(char *) "r",(char *) "radius", NULL
18790 };
18791
18792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18794 if (!SWIG_IsOK(res1)) {
18795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18796 }
18797 arg1 = reinterpret_cast< wxDC * >(argp1);
18798 {
18799 arg2 = &temp2;
18800 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18801 }
18802 ecode3 = SWIG_AsVal_double(obj2, &val3);
18803 if (!SWIG_IsOK(ecode3)) {
18804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18805 }
18806 arg3 = static_cast< double >(val3);
18807 {
18808 PyThreadState* __tstate = wxPyBeginAllowThreads();
18809 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18810 wxPyEndAllowThreads(__tstate);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 resultobj = SWIG_Py_Void();
18814 return resultobj;
18815fail:
18816 return NULL;
18817}
18818
18819
18820SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18821 PyObject *resultobj = 0;
18822 wxDC *arg1 = (wxDC *) 0 ;
18823 wxPoint *arg2 = 0 ;
18824 wxSize *arg3 = 0 ;
18825 double arg4 ;
18826 void *argp1 = 0 ;
18827 int res1 = 0 ;
18828 wxPoint temp2 ;
18829 wxSize temp3 ;
18830 double val4 ;
18831 int ecode4 = 0 ;
18832 PyObject * obj0 = 0 ;
18833 PyObject * obj1 = 0 ;
18834 PyObject * obj2 = 0 ;
18835 PyObject * obj3 = 0 ;
18836 char * kwnames[] = {
18837 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18838 };
18839
18840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18842 if (!SWIG_IsOK(res1)) {
18843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18844 }
18845 arg1 = reinterpret_cast< wxDC * >(argp1);
18846 {
18847 arg2 = &temp2;
18848 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18849 }
18850 {
18851 arg3 = &temp3;
18852 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18853 }
18854 ecode4 = SWIG_AsVal_double(obj3, &val4);
18855 if (!SWIG_IsOK(ecode4)) {
18856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18857 }
18858 arg4 = static_cast< double >(val4);
18859 {
18860 PyThreadState* __tstate = wxPyBeginAllowThreads();
18861 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 resultobj = SWIG_Py_Void();
18866 return resultobj;
18867fail:
18868 return NULL;
18869}
18870
18871
18872SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18873 PyObject *resultobj = 0;
18874 wxDC *arg1 = (wxDC *) 0 ;
18875 int arg2 ;
18876 int arg3 ;
18877 int arg4 ;
18878 void *argp1 = 0 ;
18879 int res1 = 0 ;
18880 int val2 ;
18881 int ecode2 = 0 ;
18882 int val3 ;
18883 int ecode3 = 0 ;
18884 int val4 ;
18885 int ecode4 = 0 ;
18886 PyObject * obj0 = 0 ;
18887 PyObject * obj1 = 0 ;
18888 PyObject * obj2 = 0 ;
18889 PyObject * obj3 = 0 ;
18890 char * kwnames[] = {
18891 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18892 };
18893
18894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18896 if (!SWIG_IsOK(res1)) {
18897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18898 }
18899 arg1 = reinterpret_cast< wxDC * >(argp1);
18900 ecode2 = SWIG_AsVal_int(obj1, &val2);
18901 if (!SWIG_IsOK(ecode2)) {
18902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18903 }
18904 arg2 = static_cast< int >(val2);
18905 ecode3 = SWIG_AsVal_int(obj2, &val3);
18906 if (!SWIG_IsOK(ecode3)) {
18907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18908 }
18909 arg3 = static_cast< int >(val3);
18910 ecode4 = SWIG_AsVal_int(obj3, &val4);
18911 if (!SWIG_IsOK(ecode4)) {
18912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18913 }
18914 arg4 = static_cast< int >(val4);
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 (arg1)->DrawCircle(arg2,arg3,arg4);
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 resultobj = SWIG_Py_Void();
18922 return resultobj;
18923fail:
18924 return NULL;
18925}
18926
18927
18928SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj = 0;
18930 wxDC *arg1 = (wxDC *) 0 ;
18931 wxPoint *arg2 = 0 ;
18932 int arg3 ;
18933 void *argp1 = 0 ;
18934 int res1 = 0 ;
18935 wxPoint temp2 ;
18936 int val3 ;
18937 int ecode3 = 0 ;
18938 PyObject * obj0 = 0 ;
18939 PyObject * obj1 = 0 ;
18940 PyObject * obj2 = 0 ;
18941 char * kwnames[] = {
18942 (char *) "self",(char *) "pt",(char *) "radius", NULL
18943 };
18944
18945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18947 if (!SWIG_IsOK(res1)) {
18948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18949 }
18950 arg1 = reinterpret_cast< wxDC * >(argp1);
18951 {
18952 arg2 = &temp2;
18953 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18954 }
18955 ecode3 = SWIG_AsVal_int(obj2, &val3);
18956 if (!SWIG_IsOK(ecode3)) {
18957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18958 }
18959 arg3 = static_cast< int >(val3);
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 resultobj = SWIG_Py_Void();
18967 return resultobj;
18968fail:
18969 return NULL;
18970}
18971
18972
18973SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj = 0;
18975 wxDC *arg1 = (wxDC *) 0 ;
18976 int arg2 ;
18977 int arg3 ;
18978 int arg4 ;
18979 int arg5 ;
18980 void *argp1 = 0 ;
18981 int res1 = 0 ;
18982 int val2 ;
18983 int ecode2 = 0 ;
18984 int val3 ;
18985 int ecode3 = 0 ;
18986 int val4 ;
18987 int ecode4 = 0 ;
18988 int val5 ;
18989 int ecode5 = 0 ;
18990 PyObject * obj0 = 0 ;
18991 PyObject * obj1 = 0 ;
18992 PyObject * obj2 = 0 ;
18993 PyObject * obj3 = 0 ;
18994 PyObject * obj4 = 0 ;
18995 char * kwnames[] = {
18996 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18997 };
18998
18999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19001 if (!SWIG_IsOK(res1)) {
19002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19003 }
19004 arg1 = reinterpret_cast< wxDC * >(argp1);
19005 ecode2 = SWIG_AsVal_int(obj1, &val2);
19006 if (!SWIG_IsOK(ecode2)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19008 }
19009 arg2 = static_cast< int >(val2);
19010 ecode3 = SWIG_AsVal_int(obj2, &val3);
19011 if (!SWIG_IsOK(ecode3)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19013 }
19014 arg3 = static_cast< int >(val3);
19015 ecode4 = SWIG_AsVal_int(obj3, &val4);
19016 if (!SWIG_IsOK(ecode4)) {
19017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19018 }
19019 arg4 = static_cast< int >(val4);
19020 ecode5 = SWIG_AsVal_int(obj4, &val5);
19021 if (!SWIG_IsOK(ecode5)) {
19022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19023 }
19024 arg5 = static_cast< int >(val5);
19025 {
19026 PyThreadState* __tstate = wxPyBeginAllowThreads();
19027 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 resultobj = SWIG_Py_Void();
19032 return resultobj;
19033fail:
19034 return NULL;
19035}
19036
19037
19038SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj = 0;
19040 wxDC *arg1 = (wxDC *) 0 ;
19041 wxRect *arg2 = 0 ;
19042 void *argp1 = 0 ;
19043 int res1 = 0 ;
19044 wxRect temp2 ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 char * kwnames[] = {
19048 (char *) "self",(char *) "rect", NULL
19049 };
19050
19051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19053 if (!SWIG_IsOK(res1)) {
19054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19055 }
19056 arg1 = reinterpret_cast< wxDC * >(argp1);
19057 {
19058 arg2 = &temp2;
19059 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19060 }
19061 {
19062 PyThreadState* __tstate = wxPyBeginAllowThreads();
19063 (arg1)->DrawEllipse((wxRect const &)*arg2);
19064 wxPyEndAllowThreads(__tstate);
19065 if (PyErr_Occurred()) SWIG_fail;
19066 }
19067 resultobj = SWIG_Py_Void();
19068 return resultobj;
19069fail:
19070 return NULL;
19071}
19072
19073
19074SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19075 PyObject *resultobj = 0;
19076 wxDC *arg1 = (wxDC *) 0 ;
19077 wxPoint *arg2 = 0 ;
19078 wxSize *arg3 = 0 ;
19079 void *argp1 = 0 ;
19080 int res1 = 0 ;
19081 wxPoint temp2 ;
19082 wxSize temp3 ;
19083 PyObject * obj0 = 0 ;
19084 PyObject * obj1 = 0 ;
19085 PyObject * obj2 = 0 ;
19086 char * kwnames[] = {
19087 (char *) "self",(char *) "pt",(char *) "sz", NULL
19088 };
19089
19090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19092 if (!SWIG_IsOK(res1)) {
19093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19094 }
19095 arg1 = reinterpret_cast< wxDC * >(argp1);
19096 {
19097 arg2 = &temp2;
19098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19099 }
19100 {
19101 arg3 = &temp3;
19102 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19103 }
19104 {
19105 PyThreadState* __tstate = wxPyBeginAllowThreads();
19106 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19107 wxPyEndAllowThreads(__tstate);
19108 if (PyErr_Occurred()) SWIG_fail;
19109 }
19110 resultobj = SWIG_Py_Void();
19111 return resultobj;
19112fail:
19113 return NULL;
19114}
19115
19116
19117SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19118 PyObject *resultobj = 0;
19119 wxDC *arg1 = (wxDC *) 0 ;
19120 wxIcon *arg2 = 0 ;
19121 int arg3 ;
19122 int arg4 ;
19123 void *argp1 = 0 ;
19124 int res1 = 0 ;
19125 void *argp2 = 0 ;
19126 int res2 = 0 ;
19127 int val3 ;
19128 int ecode3 = 0 ;
19129 int val4 ;
19130 int ecode4 = 0 ;
19131 PyObject * obj0 = 0 ;
19132 PyObject * obj1 = 0 ;
19133 PyObject * obj2 = 0 ;
19134 PyObject * obj3 = 0 ;
19135 char * kwnames[] = {
19136 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19137 };
19138
19139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19141 if (!SWIG_IsOK(res1)) {
19142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19143 }
19144 arg1 = reinterpret_cast< wxDC * >(argp1);
19145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19146 if (!SWIG_IsOK(res2)) {
19147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19148 }
19149 if (!argp2) {
19150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19151 }
19152 arg2 = reinterpret_cast< wxIcon * >(argp2);
19153 ecode3 = SWIG_AsVal_int(obj2, &val3);
19154 if (!SWIG_IsOK(ecode3)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19156 }
19157 arg3 = static_cast< int >(val3);
19158 ecode4 = SWIG_AsVal_int(obj3, &val4);
19159 if (!SWIG_IsOK(ecode4)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19161 }
19162 arg4 = static_cast< int >(val4);
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
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_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxDC *arg1 = (wxDC *) 0 ;
19179 wxIcon *arg2 = 0 ;
19180 wxPoint *arg3 = 0 ;
19181 void *argp1 = 0 ;
19182 int res1 = 0 ;
19183 void *argp2 = 0 ;
19184 int res2 = 0 ;
19185 wxPoint temp3 ;
19186 PyObject * obj0 = 0 ;
19187 PyObject * obj1 = 0 ;
19188 PyObject * obj2 = 0 ;
19189 char * kwnames[] = {
19190 (char *) "self",(char *) "icon",(char *) "pt", NULL
19191 };
19192
19193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19195 if (!SWIG_IsOK(res1)) {
19196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19197 }
19198 arg1 = reinterpret_cast< wxDC * >(argp1);
19199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19200 if (!SWIG_IsOK(res2)) {
19201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19202 }
19203 if (!argp2) {
19204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19205 }
19206 arg2 = reinterpret_cast< wxIcon * >(argp2);
19207 {
19208 arg3 = &temp3;
19209 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19210 }
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 resultobj = SWIG_Py_Void();
19218 return resultobj;
19219fail:
19220 return NULL;
19221}
19222
19223
19224SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj = 0;
19226 wxDC *arg1 = (wxDC *) 0 ;
19227 wxBitmap *arg2 = 0 ;
19228 int arg3 ;
19229 int arg4 ;
19230 bool arg5 = (bool) false ;
19231 void *argp1 = 0 ;
19232 int res1 = 0 ;
19233 void *argp2 = 0 ;
19234 int res2 = 0 ;
19235 int val3 ;
19236 int ecode3 = 0 ;
19237 int val4 ;
19238 int ecode4 = 0 ;
19239 bool val5 ;
19240 int ecode5 = 0 ;
19241 PyObject * obj0 = 0 ;
19242 PyObject * obj1 = 0 ;
19243 PyObject * obj2 = 0 ;
19244 PyObject * obj3 = 0 ;
19245 PyObject * obj4 = 0 ;
19246 char * kwnames[] = {
19247 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19248 };
19249
19250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19252 if (!SWIG_IsOK(res1)) {
19253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19254 }
19255 arg1 = reinterpret_cast< wxDC * >(argp1);
19256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19257 if (!SWIG_IsOK(res2)) {
19258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19259 }
19260 if (!argp2) {
19261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19262 }
19263 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19264 ecode3 = SWIG_AsVal_int(obj2, &val3);
19265 if (!SWIG_IsOK(ecode3)) {
19266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19267 }
19268 arg3 = static_cast< int >(val3);
19269 ecode4 = SWIG_AsVal_int(obj3, &val4);
19270 if (!SWIG_IsOK(ecode4)) {
19271 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19272 }
19273 arg4 = static_cast< int >(val4);
19274 if (obj4) {
19275 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19276 if (!SWIG_IsOK(ecode5)) {
19277 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19278 }
19279 arg5 = static_cast< bool >(val5);
19280 }
19281 {
19282 PyThreadState* __tstate = wxPyBeginAllowThreads();
19283 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19284 wxPyEndAllowThreads(__tstate);
19285 if (PyErr_Occurred()) SWIG_fail;
19286 }
19287 resultobj = SWIG_Py_Void();
19288 return resultobj;
19289fail:
19290 return NULL;
19291}
19292
19293
19294SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj = 0;
19296 wxDC *arg1 = (wxDC *) 0 ;
19297 wxBitmap *arg2 = 0 ;
19298 wxPoint *arg3 = 0 ;
19299 bool arg4 = (bool) false ;
19300 void *argp1 = 0 ;
19301 int res1 = 0 ;
19302 void *argp2 = 0 ;
19303 int res2 = 0 ;
19304 wxPoint temp3 ;
19305 bool val4 ;
19306 int ecode4 = 0 ;
19307 PyObject * obj0 = 0 ;
19308 PyObject * obj1 = 0 ;
19309 PyObject * obj2 = 0 ;
19310 PyObject * obj3 = 0 ;
19311 char * kwnames[] = {
19312 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19313 };
19314
19315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19317 if (!SWIG_IsOK(res1)) {
19318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19319 }
19320 arg1 = reinterpret_cast< wxDC * >(argp1);
19321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19322 if (!SWIG_IsOK(res2)) {
19323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19324 }
19325 if (!argp2) {
19326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19327 }
19328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19329 {
19330 arg3 = &temp3;
19331 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19332 }
19333 if (obj3) {
19334 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19335 if (!SWIG_IsOK(ecode4)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19337 }
19338 arg4 = static_cast< bool >(val4);
19339 }
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
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_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 wxString *arg2 = 0 ;
19357 int arg3 ;
19358 int arg4 ;
19359 void *argp1 = 0 ;
19360 int res1 = 0 ;
19361 bool temp2 = false ;
19362 int val3 ;
19363 int ecode3 = 0 ;
19364 int 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 *) "text",(char *) "x",(char *) "y", NULL
19372 };
19373
19374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",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_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19378 }
19379 arg1 = reinterpret_cast< wxDC * >(argp1);
19380 {
19381 arg2 = wxString_in_helper(obj1);
19382 if (arg2 == NULL) SWIG_fail;
19383 temp2 = true;
19384 }
19385 ecode3 = SWIG_AsVal_int(obj2, &val3);
19386 if (!SWIG_IsOK(ecode3)) {
19387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19388 }
19389 arg3 = static_cast< int >(val3);
19390 ecode4 = SWIG_AsVal_int(obj3, &val4);
19391 if (!SWIG_IsOK(ecode4)) {
19392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19393 }
19394 arg4 = static_cast< int >(val4);
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 resultobj = SWIG_Py_Void();
19402 {
19403 if (temp2)
19404 delete arg2;
19405 }
19406 return resultobj;
19407fail:
19408 {
19409 if (temp2)
19410 delete arg2;
19411 }
19412 return NULL;
19413}
19414
19415
19416SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19417 PyObject *resultobj = 0;
19418 wxDC *arg1 = (wxDC *) 0 ;
19419 wxString *arg2 = 0 ;
19420 wxPoint *arg3 = 0 ;
19421 void *argp1 = 0 ;
19422 int res1 = 0 ;
19423 bool temp2 = false ;
19424 wxPoint temp3 ;
19425 PyObject * obj0 = 0 ;
19426 PyObject * obj1 = 0 ;
19427 PyObject * obj2 = 0 ;
19428 char * kwnames[] = {
19429 (char *) "self",(char *) "text",(char *) "pt", NULL
19430 };
19431
19432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19436 }
19437 arg1 = reinterpret_cast< wxDC * >(argp1);
19438 {
19439 arg2 = wxString_in_helper(obj1);
19440 if (arg2 == NULL) SWIG_fail;
19441 temp2 = true;
19442 }
19443 {
19444 arg3 = &temp3;
19445 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19446 }
19447 {
19448 PyThreadState* __tstate = wxPyBeginAllowThreads();
19449 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19450 wxPyEndAllowThreads(__tstate);
19451 if (PyErr_Occurred()) SWIG_fail;
19452 }
19453 resultobj = SWIG_Py_Void();
19454 {
19455 if (temp2)
19456 delete arg2;
19457 }
19458 return resultobj;
19459fail:
19460 {
19461 if (temp2)
19462 delete arg2;
19463 }
19464 return NULL;
19465}
19466
19467
19468SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19469 PyObject *resultobj = 0;
19470 wxDC *arg1 = (wxDC *) 0 ;
19471 wxString *arg2 = 0 ;
19472 int arg3 ;
19473 int arg4 ;
19474 double arg5 ;
19475 void *argp1 = 0 ;
19476 int res1 = 0 ;
19477 bool temp2 = false ;
19478 int val3 ;
19479 int ecode3 = 0 ;
19480 int val4 ;
19481 int ecode4 = 0 ;
19482 double val5 ;
19483 int ecode5 = 0 ;
19484 PyObject * obj0 = 0 ;
19485 PyObject * obj1 = 0 ;
19486 PyObject * obj2 = 0 ;
19487 PyObject * obj3 = 0 ;
19488 PyObject * obj4 = 0 ;
19489 char * kwnames[] = {
19490 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19491 };
19492
19493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19495 if (!SWIG_IsOK(res1)) {
19496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19497 }
19498 arg1 = reinterpret_cast< wxDC * >(argp1);
19499 {
19500 arg2 = wxString_in_helper(obj1);
19501 if (arg2 == NULL) SWIG_fail;
19502 temp2 = true;
19503 }
19504 ecode3 = SWIG_AsVal_int(obj2, &val3);
19505 if (!SWIG_IsOK(ecode3)) {
19506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19507 }
19508 arg3 = static_cast< int >(val3);
19509 ecode4 = SWIG_AsVal_int(obj3, &val4);
19510 if (!SWIG_IsOK(ecode4)) {
19511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19512 }
19513 arg4 = static_cast< int >(val4);
19514 ecode5 = SWIG_AsVal_double(obj4, &val5);
19515 if (!SWIG_IsOK(ecode5)) {
19516 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19517 }
19518 arg5 = static_cast< double >(val5);
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 resultobj = SWIG_Py_Void();
19526 {
19527 if (temp2)
19528 delete arg2;
19529 }
19530 return resultobj;
19531fail:
19532 {
19533 if (temp2)
19534 delete arg2;
19535 }
19536 return NULL;
19537}
19538
19539
19540SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19541 PyObject *resultobj = 0;
19542 wxDC *arg1 = (wxDC *) 0 ;
19543 wxString *arg2 = 0 ;
19544 wxPoint *arg3 = 0 ;
19545 double arg4 ;
19546 void *argp1 = 0 ;
19547 int res1 = 0 ;
19548 bool temp2 = false ;
19549 wxPoint temp3 ;
19550 double val4 ;
19551 int ecode4 = 0 ;
19552 PyObject * obj0 = 0 ;
19553 PyObject * obj1 = 0 ;
19554 PyObject * obj2 = 0 ;
19555 PyObject * obj3 = 0 ;
19556 char * kwnames[] = {
19557 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19558 };
19559
19560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19562 if (!SWIG_IsOK(res1)) {
19563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19564 }
19565 arg1 = reinterpret_cast< wxDC * >(argp1);
19566 {
19567 arg2 = wxString_in_helper(obj1);
19568 if (arg2 == NULL) SWIG_fail;
19569 temp2 = true;
19570 }
19571 {
19572 arg3 = &temp3;
19573 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19574 }
19575 ecode4 = SWIG_AsVal_double(obj3, &val4);
19576 if (!SWIG_IsOK(ecode4)) {
19577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19578 }
19579 arg4 = static_cast< double >(val4);
19580 {
19581 PyThreadState* __tstate = wxPyBeginAllowThreads();
19582 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19583 wxPyEndAllowThreads(__tstate);
19584 if (PyErr_Occurred()) SWIG_fail;
19585 }
19586 resultobj = SWIG_Py_Void();
19587 {
19588 if (temp2)
19589 delete arg2;
19590 }
19591 return resultobj;
19592fail:
19593 {
19594 if (temp2)
19595 delete arg2;
19596 }
19597 return NULL;
19598}
19599
19600
19601SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19602 PyObject *resultobj = 0;
19603 wxDC *arg1 = (wxDC *) 0 ;
19604 int arg2 ;
19605 int arg3 ;
19606 int arg4 ;
19607 int arg5 ;
19608 wxDC *arg6 = (wxDC *) 0 ;
19609 int arg7 ;
19610 int arg8 ;
19611 int arg9 = (int) wxCOPY ;
19612 bool arg10 = (bool) false ;
19613 int arg11 = (int) -1 ;
19614 int arg12 = (int) -1 ;
19615 bool result;
19616 void *argp1 = 0 ;
19617 int res1 = 0 ;
19618 int val2 ;
19619 int ecode2 = 0 ;
19620 int val3 ;
19621 int ecode3 = 0 ;
19622 int val4 ;
19623 int ecode4 = 0 ;
19624 int val5 ;
19625 int ecode5 = 0 ;
19626 void *argp6 = 0 ;
19627 int res6 = 0 ;
19628 int val7 ;
19629 int ecode7 = 0 ;
19630 int val8 ;
19631 int ecode8 = 0 ;
19632 int val9 ;
19633 int ecode9 = 0 ;
19634 bool val10 ;
19635 int ecode10 = 0 ;
19636 int val11 ;
19637 int ecode11 = 0 ;
19638 int val12 ;
19639 int ecode12 = 0 ;
19640 PyObject * obj0 = 0 ;
19641 PyObject * obj1 = 0 ;
19642 PyObject * obj2 = 0 ;
19643 PyObject * obj3 = 0 ;
19644 PyObject * obj4 = 0 ;
19645 PyObject * obj5 = 0 ;
19646 PyObject * obj6 = 0 ;
19647 PyObject * obj7 = 0 ;
19648 PyObject * obj8 = 0 ;
19649 PyObject * obj9 = 0 ;
19650 PyObject * obj10 = 0 ;
19651 PyObject * obj11 = 0 ;
19652 char * kwnames[] = {
19653 (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
19654 };
19655
19656 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;
19657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19658 if (!SWIG_IsOK(res1)) {
19659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19660 }
19661 arg1 = reinterpret_cast< wxDC * >(argp1);
19662 ecode2 = SWIG_AsVal_int(obj1, &val2);
19663 if (!SWIG_IsOK(ecode2)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19665 }
19666 arg2 = static_cast< int >(val2);
19667 ecode3 = SWIG_AsVal_int(obj2, &val3);
19668 if (!SWIG_IsOK(ecode3)) {
19669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19670 }
19671 arg3 = static_cast< int >(val3);
19672 ecode4 = SWIG_AsVal_int(obj3, &val4);
19673 if (!SWIG_IsOK(ecode4)) {
19674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19675 }
19676 arg4 = static_cast< int >(val4);
19677 ecode5 = SWIG_AsVal_int(obj4, &val5);
19678 if (!SWIG_IsOK(ecode5)) {
19679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19680 }
19681 arg5 = static_cast< int >(val5);
19682 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19683 if (!SWIG_IsOK(res6)) {
19684 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19685 }
19686 arg6 = reinterpret_cast< wxDC * >(argp6);
19687 ecode7 = SWIG_AsVal_int(obj6, &val7);
19688 if (!SWIG_IsOK(ecode7)) {
19689 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19690 }
19691 arg7 = static_cast< int >(val7);
19692 ecode8 = SWIG_AsVal_int(obj7, &val8);
19693 if (!SWIG_IsOK(ecode8)) {
19694 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19695 }
19696 arg8 = static_cast< int >(val8);
19697 if (obj8) {
19698 ecode9 = SWIG_AsVal_int(obj8, &val9);
19699 if (!SWIG_IsOK(ecode9)) {
19700 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19701 }
19702 arg9 = static_cast< int >(val9);
19703 }
19704 if (obj9) {
19705 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19706 if (!SWIG_IsOK(ecode10)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19708 }
19709 arg10 = static_cast< bool >(val10);
19710 }
19711 if (obj10) {
19712 ecode11 = SWIG_AsVal_int(obj10, &val11);
19713 if (!SWIG_IsOK(ecode11)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19715 }
19716 arg11 = static_cast< int >(val11);
19717 }
19718 if (obj11) {
19719 ecode12 = SWIG_AsVal_int(obj11, &val12);
19720 if (!SWIG_IsOK(ecode12)) {
19721 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19722 }
19723 arg12 = static_cast< int >(val12);
19724 }
19725 {
19726 PyThreadState* __tstate = wxPyBeginAllowThreads();
19727 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19728 wxPyEndAllowThreads(__tstate);
19729 if (PyErr_Occurred()) SWIG_fail;
19730 }
19731 {
19732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19733 }
19734 return resultobj;
19735fail:
19736 return NULL;
19737}
19738
19739
19740SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19741 PyObject *resultobj = 0;
19742 wxDC *arg1 = (wxDC *) 0 ;
19743 wxPoint *arg2 = 0 ;
19744 wxSize *arg3 = 0 ;
19745 wxDC *arg4 = (wxDC *) 0 ;
19746 wxPoint *arg5 = 0 ;
19747 int arg6 = (int) wxCOPY ;
19748 bool arg7 = (bool) false ;
19749 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19750 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19751 bool result;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 wxPoint temp2 ;
19755 wxSize temp3 ;
19756 void *argp4 = 0 ;
19757 int res4 = 0 ;
19758 wxPoint temp5 ;
19759 int val6 ;
19760 int ecode6 = 0 ;
19761 bool val7 ;
19762 int ecode7 = 0 ;
19763 wxPoint temp8 ;
19764 PyObject * obj0 = 0 ;
19765 PyObject * obj1 = 0 ;
19766 PyObject * obj2 = 0 ;
19767 PyObject * obj3 = 0 ;
19768 PyObject * obj4 = 0 ;
19769 PyObject * obj5 = 0 ;
19770 PyObject * obj6 = 0 ;
19771 PyObject * obj7 = 0 ;
19772 char * kwnames[] = {
19773 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19774 };
19775
19776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19778 if (!SWIG_IsOK(res1)) {
19779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19780 }
19781 arg1 = reinterpret_cast< wxDC * >(argp1);
19782 {
19783 arg2 = &temp2;
19784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19785 }
19786 {
19787 arg3 = &temp3;
19788 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19789 }
19790 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19791 if (!SWIG_IsOK(res4)) {
19792 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19793 }
19794 arg4 = reinterpret_cast< wxDC * >(argp4);
19795 {
19796 arg5 = &temp5;
19797 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19798 }
19799 if (obj5) {
19800 ecode6 = SWIG_AsVal_int(obj5, &val6);
19801 if (!SWIG_IsOK(ecode6)) {
19802 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19803 }
19804 arg6 = static_cast< int >(val6);
19805 }
19806 if (obj6) {
19807 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19808 if (!SWIG_IsOK(ecode7)) {
19809 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19810 }
19811 arg7 = static_cast< bool >(val7);
19812 }
19813 if (obj7) {
36ed4f51 19814 {
1bd55598
RD
19815 arg8 = &temp8;
19816 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19817 }
1bd55598
RD
19818 }
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19822 wxPyEndAllowThreads(__tstate);
19823 if (PyErr_Occurred()) SWIG_fail;
19824 }
19825 {
19826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19827 }
19828 return resultobj;
19829fail:
19830 return NULL;
19831}
19832
19833
8f514ab4
RD
19834SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj = 0;
19836 wxDC *arg1 = (wxDC *) 0 ;
19837 wxRect *arg2 = (wxRect *) NULL ;
19838 SwigValueWrapper<wxBitmap > result;
19839 void *argp1 = 0 ;
19840 int res1 = 0 ;
19841 void *argp2 = 0 ;
19842 int res2 = 0 ;
19843 PyObject * obj0 = 0 ;
19844 PyObject * obj1 = 0 ;
19845 char * kwnames[] = {
19846 (char *) "self",(char *) "subrect", NULL
19847 };
19848
19849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19851 if (!SWIG_IsOK(res1)) {
19852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19853 }
19854 arg1 = reinterpret_cast< wxDC * >(argp1);
19855 if (obj1) {
19856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19857 if (!SWIG_IsOK(res2)) {
19858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19859 }
19860 arg2 = reinterpret_cast< wxRect * >(argp2);
19861 }
19862 {
19863 PyThreadState* __tstate = wxPyBeginAllowThreads();
19864 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19865 wxPyEndAllowThreads(__tstate);
19866 if (PyErr_Occurred()) SWIG_fail;
19867 }
19868 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19869 return resultobj;
19870fail:
19871 return NULL;
19872}
19873
19874
1bd55598
RD
19875SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19876 PyObject *resultobj = 0;
19877 wxDC *arg1 = (wxDC *) 0 ;
19878 int arg2 ;
19879 int arg3 ;
19880 int arg4 ;
19881 int arg5 ;
19882 void *argp1 = 0 ;
19883 int res1 = 0 ;
19884 int val2 ;
19885 int ecode2 = 0 ;
19886 int val3 ;
19887 int ecode3 = 0 ;
19888 int val4 ;
19889 int ecode4 = 0 ;
19890 int val5 ;
19891 int ecode5 = 0 ;
19892 PyObject * obj0 = 0 ;
19893 PyObject * obj1 = 0 ;
19894 PyObject * obj2 = 0 ;
19895 PyObject * obj3 = 0 ;
19896 PyObject * obj4 = 0 ;
19897 char * kwnames[] = {
19898 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19899 };
19900
19901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19903 if (!SWIG_IsOK(res1)) {
19904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19905 }
19906 arg1 = reinterpret_cast< wxDC * >(argp1);
19907 ecode2 = SWIG_AsVal_int(obj1, &val2);
19908 if (!SWIG_IsOK(ecode2)) {
19909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19910 }
19911 arg2 = static_cast< int >(val2);
19912 ecode3 = SWIG_AsVal_int(obj2, &val3);
19913 if (!SWIG_IsOK(ecode3)) {
19914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19915 }
19916 arg3 = static_cast< int >(val3);
19917 ecode4 = SWIG_AsVal_int(obj3, &val4);
19918 if (!SWIG_IsOK(ecode4)) {
19919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19920 }
19921 arg4 = static_cast< int >(val4);
19922 ecode5 = SWIG_AsVal_int(obj4, &val5);
19923 if (!SWIG_IsOK(ecode5)) {
19924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19925 }
19926 arg5 = static_cast< int >(val5);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_Py_Void();
19934 return resultobj;
19935fail:
19936 return NULL;
19937}
19938
19939
19940SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19941 PyObject *resultobj = 0;
19942 wxDC *arg1 = (wxDC *) 0 ;
19943 wxPoint *arg2 = 0 ;
19944 wxSize *arg3 = 0 ;
19945 void *argp1 = 0 ;
19946 int res1 = 0 ;
19947 wxPoint temp2 ;
19948 wxSize temp3 ;
19949 PyObject * obj0 = 0 ;
19950 PyObject * obj1 = 0 ;
19951 PyObject * obj2 = 0 ;
19952 char * kwnames[] = {
19953 (char *) "self",(char *) "pt",(char *) "sz", NULL
19954 };
19955
19956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) 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_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19960 }
19961 arg1 = reinterpret_cast< wxDC * >(argp1);
19962 {
19963 arg2 = &temp2;
19964 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19965 }
19966 {
19967 arg3 = &temp3;
19968 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19969 }
19970 {
19971 PyThreadState* __tstate = wxPyBeginAllowThreads();
19972 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19973 wxPyEndAllowThreads(__tstate);
19974 if (PyErr_Occurred()) SWIG_fail;
19975 }
19976 resultobj = SWIG_Py_Void();
19977 return resultobj;
19978fail:
19979 return NULL;
19980}
19981
19982
19983SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19984 PyObject *resultobj = 0;
19985 wxDC *arg1 = (wxDC *) 0 ;
19986 wxRegion *arg2 = 0 ;
19987 void *argp1 = 0 ;
19988 int res1 = 0 ;
19989 void *argp2 = 0 ;
19990 int res2 = 0 ;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 char * kwnames[] = {
19994 (char *) "self",(char *) "region", NULL
19995 };
19996
19997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19999 if (!SWIG_IsOK(res1)) {
20000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20001 }
20002 arg1 = reinterpret_cast< wxDC * >(argp1);
20003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20004 if (!SWIG_IsOK(res2)) {
20005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20006 }
20007 if (!argp2) {
20008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20009 }
20010 arg2 = reinterpret_cast< wxRegion * >(argp2);
20011 {
20012 PyThreadState* __tstate = wxPyBeginAllowThreads();
20013 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20014 wxPyEndAllowThreads(__tstate);
20015 if (PyErr_Occurred()) SWIG_fail;
20016 }
20017 resultobj = SWIG_Py_Void();
20018 return resultobj;
20019fail:
20020 return NULL;
20021}
20022
20023
20024SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20025 PyObject *resultobj = 0;
20026 wxDC *arg1 = (wxDC *) 0 ;
20027 wxRect *arg2 = 0 ;
20028 void *argp1 = 0 ;
20029 int res1 = 0 ;
20030 wxRect temp2 ;
20031 PyObject * obj0 = 0 ;
20032 PyObject * obj1 = 0 ;
20033 char * kwnames[] = {
20034 (char *) "self",(char *) "rect", NULL
20035 };
20036
20037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20039 if (!SWIG_IsOK(res1)) {
20040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20041 }
20042 arg1 = reinterpret_cast< wxDC * >(argp1);
20043 {
20044 arg2 = &temp2;
20045 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20046 }
20047 {
20048 PyThreadState* __tstate = wxPyBeginAllowThreads();
20049 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20050 wxPyEndAllowThreads(__tstate);
20051 if (PyErr_Occurred()) SWIG_fail;
20052 }
20053 resultobj = SWIG_Py_Void();
20054 return resultobj;
20055fail:
20056 return NULL;
20057}
20058
20059
20060SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20061 PyObject *resultobj = 0;
20062 wxDC *arg1 = (wxDC *) 0 ;
20063 int arg2 ;
20064 wxPoint *arg3 = (wxPoint *) 0 ;
20065 int arg4 = (int) 0 ;
20066 int arg5 = (int) 0 ;
20067 void *argp1 = 0 ;
20068 int res1 = 0 ;
20069 int val4 ;
20070 int ecode4 = 0 ;
20071 int val5 ;
20072 int ecode5 = 0 ;
20073 PyObject * obj0 = 0 ;
20074 PyObject * obj1 = 0 ;
20075 PyObject * obj2 = 0 ;
20076 PyObject * obj3 = 0 ;
20077 char * kwnames[] = {
20078 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20079 };
20080
20081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20083 if (!SWIG_IsOK(res1)) {
20084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20085 }
20086 arg1 = reinterpret_cast< wxDC * >(argp1);
20087 {
20088 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20089 if (arg3 == NULL) SWIG_fail;
20090 }
20091 if (obj2) {
20092 ecode4 = SWIG_AsVal_int(obj2, &val4);
20093 if (!SWIG_IsOK(ecode4)) {
20094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20095 }
20096 arg4 = static_cast< int >(val4);
20097 }
20098 if (obj3) {
20099 ecode5 = SWIG_AsVal_int(obj3, &val5);
20100 if (!SWIG_IsOK(ecode5)) {
20101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20102 }
20103 arg5 = static_cast< int >(val5);
20104 }
20105 {
20106 PyThreadState* __tstate = wxPyBeginAllowThreads();
20107 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20108 wxPyEndAllowThreads(__tstate);
20109 if (PyErr_Occurred()) SWIG_fail;
20110 }
20111 resultobj = SWIG_Py_Void();
20112 {
20113 if (arg3) delete [] arg3;
20114 }
20115 return resultobj;
20116fail:
20117 {
20118 if (arg3) delete [] arg3;
20119 }
20120 return NULL;
20121}
20122
20123
20124SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20125 PyObject *resultobj = 0;
20126 wxDC *arg1 = (wxDC *) 0 ;
20127 int arg2 ;
20128 wxPoint *arg3 = (wxPoint *) 0 ;
20129 int arg4 = (int) 0 ;
20130 int arg5 = (int) 0 ;
20131 int arg6 = (int) wxODDEVEN_RULE ;
20132 void *argp1 = 0 ;
20133 int res1 = 0 ;
20134 int val4 ;
20135 int ecode4 = 0 ;
20136 int val5 ;
20137 int ecode5 = 0 ;
20138 int val6 ;
20139 int ecode6 = 0 ;
20140 PyObject * obj0 = 0 ;
20141 PyObject * obj1 = 0 ;
20142 PyObject * obj2 = 0 ;
20143 PyObject * obj3 = 0 ;
20144 PyObject * obj4 = 0 ;
20145 char * kwnames[] = {
20146 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20147 };
20148
20149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20151 if (!SWIG_IsOK(res1)) {
20152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20153 }
20154 arg1 = reinterpret_cast< wxDC * >(argp1);
20155 {
20156 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20157 if (arg3 == NULL) SWIG_fail;
20158 }
20159 if (obj2) {
20160 ecode4 = SWIG_AsVal_int(obj2, &val4);
20161 if (!SWIG_IsOK(ecode4)) {
20162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20163 }
20164 arg4 = static_cast< int >(val4);
20165 }
20166 if (obj3) {
20167 ecode5 = SWIG_AsVal_int(obj3, &val5);
20168 if (!SWIG_IsOK(ecode5)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20170 }
20171 arg5 = static_cast< int >(val5);
20172 }
20173 if (obj4) {
20174 ecode6 = SWIG_AsVal_int(obj4, &val6);
20175 if (!SWIG_IsOK(ecode6)) {
20176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20177 }
20178 arg6 = static_cast< int >(val6);
20179 }
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 resultobj = SWIG_Py_Void();
20187 {
20188 if (arg3) delete [] arg3;
20189 }
20190 return resultobj;
20191fail:
20192 {
20193 if (arg3) delete [] arg3;
20194 }
20195 return NULL;
20196}
20197
20198
20199SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20200 PyObject *resultobj = 0;
20201 wxDC *arg1 = (wxDC *) 0 ;
20202 wxString *arg2 = 0 ;
20203 wxRect *arg3 = 0 ;
20204 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20205 int arg5 = (int) -1 ;
20206 void *argp1 = 0 ;
20207 int res1 = 0 ;
20208 bool temp2 = false ;
20209 wxRect temp3 ;
20210 int val4 ;
20211 int ecode4 = 0 ;
20212 int val5 ;
20213 int ecode5 = 0 ;
20214 PyObject * obj0 = 0 ;
20215 PyObject * obj1 = 0 ;
20216 PyObject * obj2 = 0 ;
20217 PyObject * obj3 = 0 ;
20218 PyObject * obj4 = 0 ;
20219 char * kwnames[] = {
20220 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20221 };
20222
20223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20225 if (!SWIG_IsOK(res1)) {
20226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20227 }
20228 arg1 = reinterpret_cast< wxDC * >(argp1);
20229 {
20230 arg2 = wxString_in_helper(obj1);
20231 if (arg2 == NULL) SWIG_fail;
20232 temp2 = true;
20233 }
20234 {
20235 arg3 = &temp3;
20236 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20237 }
20238 if (obj3) {
20239 ecode4 = SWIG_AsVal_int(obj3, &val4);
20240 if (!SWIG_IsOK(ecode4)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20242 }
20243 arg4 = static_cast< int >(val4);
20244 }
20245 if (obj4) {
20246 ecode5 = SWIG_AsVal_int(obj4, &val5);
20247 if (!SWIG_IsOK(ecode5)) {
20248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20249 }
20250 arg5 = static_cast< int >(val5);
20251 }
20252 {
20253 PyThreadState* __tstate = wxPyBeginAllowThreads();
20254 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20255 wxPyEndAllowThreads(__tstate);
20256 if (PyErr_Occurred()) SWIG_fail;
20257 }
20258 resultobj = SWIG_Py_Void();
20259 {
20260 if (temp2)
20261 delete arg2;
20262 }
20263 return resultobj;
20264fail:
20265 {
20266 if (temp2)
20267 delete arg2;
20268 }
20269 return NULL;
20270}
20271
20272
20273SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20274 PyObject *resultobj = 0;
20275 wxDC *arg1 = (wxDC *) 0 ;
20276 wxString *arg2 = 0 ;
20277 wxBitmap *arg3 = 0 ;
20278 wxRect *arg4 = 0 ;
20279 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20280 int arg6 = (int) -1 ;
20281 wxRect result;
20282 void *argp1 = 0 ;
20283 int res1 = 0 ;
20284 bool temp2 = false ;
20285 void *argp3 = 0 ;
20286 int res3 = 0 ;
20287 wxRect temp4 ;
20288 int val5 ;
20289 int ecode5 = 0 ;
20290 int val6 ;
20291 int ecode6 = 0 ;
20292 PyObject * obj0 = 0 ;
20293 PyObject * obj1 = 0 ;
20294 PyObject * obj2 = 0 ;
20295 PyObject * obj3 = 0 ;
20296 PyObject * obj4 = 0 ;
20297 PyObject * obj5 = 0 ;
20298 char * kwnames[] = {
20299 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20300 };
20301
20302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20304 if (!SWIG_IsOK(res1)) {
20305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20306 }
20307 arg1 = reinterpret_cast< wxDC * >(argp1);
20308 {
20309 arg2 = wxString_in_helper(obj1);
20310 if (arg2 == NULL) SWIG_fail;
20311 temp2 = true;
20312 }
20313 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20314 if (!SWIG_IsOK(res3)) {
20315 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20316 }
20317 if (!argp3) {
20318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20319 }
20320 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20321 {
20322 arg4 = &temp4;
20323 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20324 }
20325 if (obj4) {
20326 ecode5 = SWIG_AsVal_int(obj4, &val5);
20327 if (!SWIG_IsOK(ecode5)) {
20328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20329 }
20330 arg5 = static_cast< int >(val5);
20331 }
20332 if (obj5) {
20333 ecode6 = SWIG_AsVal_int(obj5, &val6);
20334 if (!SWIG_IsOK(ecode6)) {
20335 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20336 }
20337 arg6 = static_cast< int >(val6);
20338 }
20339 {
20340 PyThreadState* __tstate = wxPyBeginAllowThreads();
20341 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20342 wxPyEndAllowThreads(__tstate);
20343 if (PyErr_Occurred()) SWIG_fail;
20344 }
20345 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20346 {
20347 if (temp2)
20348 delete arg2;
20349 }
20350 return resultobj;
20351fail:
20352 {
20353 if (temp2)
20354 delete arg2;
20355 }
20356 return NULL;
20357}
20358
20359
20360SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20361 PyObject *resultobj = 0;
20362 wxDC *arg1 = (wxDC *) 0 ;
20363 int arg2 ;
20364 wxPoint *arg3 = (wxPoint *) 0 ;
20365 void *argp1 = 0 ;
20366 int res1 = 0 ;
20367 PyObject * obj0 = 0 ;
20368 PyObject * obj1 = 0 ;
20369 char * kwnames[] = {
20370 (char *) "self",(char *) "points", NULL
20371 };
20372
20373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20375 if (!SWIG_IsOK(res1)) {
20376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20377 }
20378 arg1 = reinterpret_cast< wxDC * >(argp1);
20379 {
20380 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20381 if (arg3 == NULL) SWIG_fail;
20382 }
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 (arg1)->DrawSpline(arg2,arg3);
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 resultobj = SWIG_Py_Void();
20390 {
20391 if (arg3) delete [] arg3;
20392 }
20393 return resultobj;
20394fail:
20395 {
20396 if (arg3) delete [] arg3;
20397 }
20398 return NULL;
20399}
20400
20401
20402SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20403 PyObject *resultobj = 0;
20404 wxDC *arg1 = (wxDC *) 0 ;
20405 void *argp1 = 0 ;
20406 int res1 = 0 ;
20407 PyObject *swig_obj[1] ;
20408
20409 if (!args) SWIG_fail;
20410 swig_obj[0] = args;
20411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20412 if (!SWIG_IsOK(res1)) {
20413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20414 }
20415 arg1 = reinterpret_cast< wxDC * >(argp1);
20416 {
20417 PyThreadState* __tstate = wxPyBeginAllowThreads();
20418 (arg1)->Clear();
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 resultobj = SWIG_Py_Void();
20423 return resultobj;
20424fail:
20425 return NULL;
20426}
20427
20428
20429SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20430 PyObject *resultobj = 0;
20431 wxDC *arg1 = (wxDC *) 0 ;
20432 wxString *arg2 = 0 ;
20433 bool result;
20434 void *argp1 = 0 ;
20435 int res1 = 0 ;
20436 bool temp2 = false ;
20437 PyObject * obj0 = 0 ;
20438 PyObject * obj1 = 0 ;
20439 char * kwnames[] = {
20440 (char *) "self",(char *) "message", NULL
20441 };
20442
20443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20445 if (!SWIG_IsOK(res1)) {
20446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20447 }
20448 arg1 = reinterpret_cast< wxDC * >(argp1);
20449 {
20450 arg2 = wxString_in_helper(obj1);
20451 if (arg2 == NULL) SWIG_fail;
20452 temp2 = true;
20453 }
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 {
20461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20462 }
20463 {
20464 if (temp2)
20465 delete arg2;
20466 }
20467 return resultobj;
20468fail:
20469 {
20470 if (temp2)
20471 delete arg2;
20472 }
20473 return NULL;
20474}
20475
20476
20477SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20478 PyObject *resultobj = 0;
20479 wxDC *arg1 = (wxDC *) 0 ;
20480 void *argp1 = 0 ;
20481 int res1 = 0 ;
20482 PyObject *swig_obj[1] ;
20483
20484 if (!args) SWIG_fail;
20485 swig_obj[0] = args;
20486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20489 }
20490 arg1 = reinterpret_cast< wxDC * >(argp1);
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 (arg1)->EndDoc();
20494 wxPyEndAllowThreads(__tstate);
20495 if (PyErr_Occurred()) SWIG_fail;
20496 }
20497 resultobj = SWIG_Py_Void();
20498 return resultobj;
20499fail:
20500 return NULL;
20501}
20502
20503
20504SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20505 PyObject *resultobj = 0;
20506 wxDC *arg1 = (wxDC *) 0 ;
20507 void *argp1 = 0 ;
20508 int res1 = 0 ;
20509 PyObject *swig_obj[1] ;
20510
20511 if (!args) SWIG_fail;
20512 swig_obj[0] = args;
20513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20514 if (!SWIG_IsOK(res1)) {
20515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20516 }
20517 arg1 = reinterpret_cast< wxDC * >(argp1);
20518 {
20519 PyThreadState* __tstate = wxPyBeginAllowThreads();
20520 (arg1)->StartPage();
20521 wxPyEndAllowThreads(__tstate);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
20524 resultobj = SWIG_Py_Void();
20525 return resultobj;
20526fail:
20527 return NULL;
20528}
20529
20530
20531SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20532 PyObject *resultobj = 0;
20533 wxDC *arg1 = (wxDC *) 0 ;
20534 void *argp1 = 0 ;
20535 int res1 = 0 ;
20536 PyObject *swig_obj[1] ;
20537
20538 if (!args) SWIG_fail;
20539 swig_obj[0] = args;
20540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20541 if (!SWIG_IsOK(res1)) {
20542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20543 }
20544 arg1 = reinterpret_cast< wxDC * >(argp1);
20545 {
20546 PyThreadState* __tstate = wxPyBeginAllowThreads();
20547 (arg1)->EndPage();
20548 wxPyEndAllowThreads(__tstate);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
20551 resultobj = SWIG_Py_Void();
20552 return resultobj;
20553fail:
20554 return NULL;
20555}
20556
20557
20558SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20559 PyObject *resultobj = 0;
20560 wxDC *arg1 = (wxDC *) 0 ;
20561 wxFont *arg2 = 0 ;
20562 void *argp1 = 0 ;
20563 int res1 = 0 ;
20564 void *argp2 = 0 ;
20565 int res2 = 0 ;
20566 PyObject * obj0 = 0 ;
20567 PyObject * obj1 = 0 ;
20568 char * kwnames[] = {
20569 (char *) "self",(char *) "font", NULL
20570 };
20571
20572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20574 if (!SWIG_IsOK(res1)) {
20575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20576 }
20577 arg1 = reinterpret_cast< wxDC * >(argp1);
20578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20579 if (!SWIG_IsOK(res2)) {
20580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20581 }
20582 if (!argp2) {
20583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20584 }
20585 arg2 = reinterpret_cast< wxFont * >(argp2);
20586 {
20587 PyThreadState* __tstate = wxPyBeginAllowThreads();
20588 (arg1)->SetFont((wxFont const &)*arg2);
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
20592 resultobj = SWIG_Py_Void();
20593 return resultobj;
20594fail:
20595 return NULL;
20596}
20597
20598
20599SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20600 PyObject *resultobj = 0;
20601 wxDC *arg1 = (wxDC *) 0 ;
20602 wxPen *arg2 = 0 ;
20603 void *argp1 = 0 ;
20604 int res1 = 0 ;
20605 void *argp2 = 0 ;
20606 int res2 = 0 ;
20607 PyObject * obj0 = 0 ;
20608 PyObject * obj1 = 0 ;
20609 char * kwnames[] = {
20610 (char *) "self",(char *) "pen", NULL
20611 };
20612
20613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20615 if (!SWIG_IsOK(res1)) {
20616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20617 }
20618 arg1 = reinterpret_cast< wxDC * >(argp1);
20619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20620 if (!SWIG_IsOK(res2)) {
20621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20622 }
20623 if (!argp2) {
20624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20625 }
20626 arg2 = reinterpret_cast< wxPen * >(argp2);
20627 {
20628 PyThreadState* __tstate = wxPyBeginAllowThreads();
20629 (arg1)->SetPen((wxPen const &)*arg2);
20630 wxPyEndAllowThreads(__tstate);
20631 if (PyErr_Occurred()) SWIG_fail;
20632 }
20633 resultobj = SWIG_Py_Void();
20634 return resultobj;
20635fail:
20636 return NULL;
20637}
20638
20639
20640SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20641 PyObject *resultobj = 0;
20642 wxDC *arg1 = (wxDC *) 0 ;
20643 wxBrush *arg2 = 0 ;
20644 void *argp1 = 0 ;
20645 int res1 = 0 ;
20646 void *argp2 = 0 ;
20647 int res2 = 0 ;
20648 PyObject * obj0 = 0 ;
20649 PyObject * obj1 = 0 ;
20650 char * kwnames[] = {
20651 (char *) "self",(char *) "brush", NULL
20652 };
20653
20654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20656 if (!SWIG_IsOK(res1)) {
20657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20658 }
20659 arg1 = reinterpret_cast< wxDC * >(argp1);
20660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20661 if (!SWIG_IsOK(res2)) {
20662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20663 }
20664 if (!argp2) {
20665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20666 }
20667 arg2 = reinterpret_cast< wxBrush * >(argp2);
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 (arg1)->SetBrush((wxBrush const &)*arg2);
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_Py_Void();
20675 return resultobj;
20676fail:
20677 return NULL;
20678}
20679
20680
20681SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20682 PyObject *resultobj = 0;
20683 wxDC *arg1 = (wxDC *) 0 ;
20684 wxBrush *arg2 = 0 ;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 void *argp2 = 0 ;
20688 int res2 = 0 ;
20689 PyObject * obj0 = 0 ;
20690 PyObject * obj1 = 0 ;
20691 char * kwnames[] = {
20692 (char *) "self",(char *) "brush", NULL
20693 };
20694
20695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20697 if (!SWIG_IsOK(res1)) {
20698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20699 }
20700 arg1 = reinterpret_cast< wxDC * >(argp1);
20701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20702 if (!SWIG_IsOK(res2)) {
20703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20704 }
20705 if (!argp2) {
20706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20707 }
20708 arg2 = reinterpret_cast< wxBrush * >(argp2);
20709 {
20710 PyThreadState* __tstate = wxPyBeginAllowThreads();
20711 (arg1)->SetBackground((wxBrush const &)*arg2);
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 resultobj = SWIG_Py_Void();
20716 return resultobj;
20717fail:
20718 return NULL;
20719}
20720
20721
20722SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20723 PyObject *resultobj = 0;
20724 wxDC *arg1 = (wxDC *) 0 ;
20725 int arg2 ;
20726 void *argp1 = 0 ;
20727 int res1 = 0 ;
20728 int val2 ;
20729 int ecode2 = 0 ;
20730 PyObject * obj0 = 0 ;
20731 PyObject * obj1 = 0 ;
20732 char * kwnames[] = {
20733 (char *) "self",(char *) "mode", NULL
20734 };
20735
20736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20738 if (!SWIG_IsOK(res1)) {
20739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20740 }
20741 arg1 = reinterpret_cast< wxDC * >(argp1);
20742 ecode2 = SWIG_AsVal_int(obj1, &val2);
20743 if (!SWIG_IsOK(ecode2)) {
20744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20745 }
20746 arg2 = static_cast< int >(val2);
20747 {
20748 PyThreadState* __tstate = wxPyBeginAllowThreads();
20749 (arg1)->SetBackgroundMode(arg2);
20750 wxPyEndAllowThreads(__tstate);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 }
20753 resultobj = SWIG_Py_Void();
20754 return resultobj;
20755fail:
20756 return NULL;
20757}
20758
20759
20760SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20761 PyObject *resultobj = 0;
20762 wxDC *arg1 = (wxDC *) 0 ;
20763 wxPalette *arg2 = 0 ;
20764 void *argp1 = 0 ;
20765 int res1 = 0 ;
20766 void *argp2 = 0 ;
20767 int res2 = 0 ;
20768 PyObject * obj0 = 0 ;
20769 PyObject * obj1 = 0 ;
20770 char * kwnames[] = {
20771 (char *) "self",(char *) "palette", NULL
20772 };
20773
20774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20776 if (!SWIG_IsOK(res1)) {
20777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20778 }
20779 arg1 = reinterpret_cast< wxDC * >(argp1);
20780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20781 if (!SWIG_IsOK(res2)) {
20782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20783 }
20784 if (!argp2) {
20785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20786 }
20787 arg2 = reinterpret_cast< wxPalette * >(argp2);
20788 {
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 (arg1)->SetPalette((wxPalette const &)*arg2);
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 resultobj = SWIG_Py_Void();
20795 return resultobj;
20796fail:
20797 return NULL;
20798}
20799
20800
20801SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20802 PyObject *resultobj = 0;
20803 wxDC *arg1 = (wxDC *) 0 ;
20804 void *argp1 = 0 ;
20805 int res1 = 0 ;
20806 PyObject *swig_obj[1] ;
20807
20808 if (!args) SWIG_fail;
20809 swig_obj[0] = args;
20810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20811 if (!SWIG_IsOK(res1)) {
20812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20813 }
20814 arg1 = reinterpret_cast< wxDC * >(argp1);
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 (arg1)->DestroyClippingRegion();
20818 wxPyEndAllowThreads(__tstate);
20819 if (PyErr_Occurred()) SWIG_fail;
20820 }
20821 resultobj = SWIG_Py_Void();
20822 return resultobj;
20823fail:
20824 return NULL;
20825}
20826
20827
20828SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20829 PyObject *resultobj = 0;
20830 wxDC *arg1 = (wxDC *) 0 ;
20831 int *arg2 = (int *) 0 ;
20832 int *arg3 = (int *) 0 ;
20833 int *arg4 = (int *) 0 ;
20834 int *arg5 = (int *) 0 ;
20835 void *argp1 = 0 ;
20836 int res1 = 0 ;
20837 int temp2 ;
20838 int res2 = SWIG_TMPOBJ ;
20839 int temp3 ;
20840 int res3 = SWIG_TMPOBJ ;
20841 int temp4 ;
20842 int res4 = SWIG_TMPOBJ ;
20843 int temp5 ;
20844 int res5 = SWIG_TMPOBJ ;
20845 PyObject *swig_obj[1] ;
20846
20847 arg2 = &temp2;
20848 arg3 = &temp3;
20849 arg4 = &temp4;
20850 arg5 = &temp5;
20851 if (!args) SWIG_fail;
20852 swig_obj[0] = args;
20853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20854 if (!SWIG_IsOK(res1)) {
20855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20856 }
20857 arg1 = reinterpret_cast< wxDC * >(argp1);
20858 {
20859 PyThreadState* __tstate = wxPyBeginAllowThreads();
20860 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20861 wxPyEndAllowThreads(__tstate);
20862 if (PyErr_Occurred()) SWIG_fail;
20863 }
20864 resultobj = SWIG_Py_Void();
20865 if (SWIG_IsTmpObj(res2)) {
20866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20867 } else {
20868 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20870 }
20871 if (SWIG_IsTmpObj(res3)) {
20872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20873 } else {
20874 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20876 }
20877 if (SWIG_IsTmpObj(res4)) {
20878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20879 } else {
20880 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20882 }
20883 if (SWIG_IsTmpObj(res5)) {
20884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20885 } else {
20886 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20888 }
20889 return resultobj;
20890fail:
20891 return NULL;
20892}
20893
20894
20895SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20896 PyObject *resultobj = 0;
20897 wxDC *arg1 = (wxDC *) 0 ;
20898 wxRect result;
20899 void *argp1 = 0 ;
20900 int res1 = 0 ;
20901 PyObject *swig_obj[1] ;
20902
20903 if (!args) SWIG_fail;
20904 swig_obj[0] = args;
20905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20906 if (!SWIG_IsOK(res1)) {
20907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20908 }
20909 arg1 = reinterpret_cast< wxDC * >(argp1);
20910 {
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 result = wxDC_GetClippingRect(arg1);
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20917 return resultobj;
20918fail:
20919 return NULL;
20920}
20921
20922
20923SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20924 PyObject *resultobj = 0;
20925 wxDC *arg1 = (wxDC *) 0 ;
20926 int result;
20927 void *argp1 = 0 ;
20928 int res1 = 0 ;
20929 PyObject *swig_obj[1] ;
20930
20931 if (!args) SWIG_fail;
20932 swig_obj[0] = args;
20933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20936 }
20937 arg1 = reinterpret_cast< wxDC * >(argp1);
20938 {
20939 PyThreadState* __tstate = wxPyBeginAllowThreads();
20940 result = (int)((wxDC const *)arg1)->GetCharHeight();
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 resultobj = SWIG_From_int(static_cast< int >(result));
20945 return resultobj;
20946fail:
20947 return NULL;
20948}
20949
20950
20951SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20952 PyObject *resultobj = 0;
20953 wxDC *arg1 = (wxDC *) 0 ;
20954 int result;
20955 void *argp1 = 0 ;
20956 int res1 = 0 ;
20957 PyObject *swig_obj[1] ;
20958
20959 if (!args) SWIG_fail;
20960 swig_obj[0] = args;
20961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20962 if (!SWIG_IsOK(res1)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20964 }
20965 arg1 = reinterpret_cast< wxDC * >(argp1);
20966 {
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 result = (int)((wxDC const *)arg1)->GetCharWidth();
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 resultobj = SWIG_From_int(static_cast< int >(result));
20973 return resultobj;
20974fail:
20975 return NULL;
20976}
20977
20978
20979SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20980 PyObject *resultobj = 0;
20981 wxDC *arg1 = (wxDC *) 0 ;
20982 wxString *arg2 = 0 ;
20983 int *arg3 = (int *) 0 ;
20984 int *arg4 = (int *) 0 ;
20985 void *argp1 = 0 ;
20986 int res1 = 0 ;
20987 bool temp2 = false ;
20988 int temp3 ;
20989 int res3 = SWIG_TMPOBJ ;
20990 int temp4 ;
20991 int res4 = SWIG_TMPOBJ ;
20992 PyObject * obj0 = 0 ;
20993 PyObject * obj1 = 0 ;
20994 char * kwnames[] = {
20995 (char *) "self",(char *) "string", NULL
20996 };
20997
20998 arg3 = &temp3;
20999 arg4 = &temp4;
21000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21002 if (!SWIG_IsOK(res1)) {
21003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21004 }
21005 arg1 = reinterpret_cast< wxDC * >(argp1);
21006 {
21007 arg2 = wxString_in_helper(obj1);
21008 if (arg2 == NULL) SWIG_fail;
21009 temp2 = true;
21010 }
21011 {
21012 PyThreadState* __tstate = wxPyBeginAllowThreads();
21013 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21014 wxPyEndAllowThreads(__tstate);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 resultobj = SWIG_Py_Void();
21018 if (SWIG_IsTmpObj(res3)) {
21019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21020 } else {
21021 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21023 }
21024 if (SWIG_IsTmpObj(res4)) {
21025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21026 } else {
21027 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21029 }
21030 {
21031 if (temp2)
21032 delete arg2;
21033 }
21034 return resultobj;
21035fail:
21036 {
21037 if (temp2)
21038 delete arg2;
21039 }
21040 return NULL;
21041}
21042
21043
21044SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21045 PyObject *resultobj = 0;
21046 wxDC *arg1 = (wxDC *) 0 ;
21047 wxString *arg2 = 0 ;
21048 int *arg3 = (int *) 0 ;
21049 int *arg4 = (int *) 0 ;
21050 int *arg5 = (int *) 0 ;
21051 int *arg6 = (int *) 0 ;
21052 wxFont *arg7 = (wxFont *) NULL ;
21053 void *argp1 = 0 ;
21054 int res1 = 0 ;
21055 bool temp2 = false ;
21056 int temp3 ;
21057 int res3 = SWIG_TMPOBJ ;
21058 int temp4 ;
21059 int res4 = SWIG_TMPOBJ ;
21060 int temp5 ;
21061 int res5 = SWIG_TMPOBJ ;
21062 int temp6 ;
21063 int res6 = SWIG_TMPOBJ ;
21064 void *argp7 = 0 ;
21065 int res7 = 0 ;
21066 PyObject * obj0 = 0 ;
21067 PyObject * obj1 = 0 ;
21068 PyObject * obj2 = 0 ;
21069 char * kwnames[] = {
21070 (char *) "self",(char *) "string",(char *) "font", NULL
21071 };
21072
21073 arg3 = &temp3;
21074 arg4 = &temp4;
21075 arg5 = &temp5;
21076 arg6 = &temp6;
21077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21079 if (!SWIG_IsOK(res1)) {
21080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21081 }
21082 arg1 = reinterpret_cast< wxDC * >(argp1);
21083 {
21084 arg2 = wxString_in_helper(obj1);
21085 if (arg2 == NULL) SWIG_fail;
21086 temp2 = true;
21087 }
21088 if (obj2) {
21089 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21090 if (!SWIG_IsOK(res7)) {
21091 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21092 }
1bd55598
RD
21093 arg7 = reinterpret_cast< wxFont * >(argp7);
21094 }
21095 {
21096 PyThreadState* __tstate = wxPyBeginAllowThreads();
21097 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 resultobj = SWIG_Py_Void();
21102 if (SWIG_IsTmpObj(res3)) {
21103 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21104 } else {
21105 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21107 }
21108 if (SWIG_IsTmpObj(res4)) {
21109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21110 } else {
21111 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21113 }
21114 if (SWIG_IsTmpObj(res5)) {
21115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21116 } else {
21117 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21119 }
21120 if (SWIG_IsTmpObj(res6)) {
21121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21122 } else {
21123 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21125 }
21126 {
21127 if (temp2)
21128 delete arg2;
21129 }
21130 return resultobj;
21131fail:
21132 {
21133 if (temp2)
21134 delete arg2;
21135 }
21136 return NULL;
21137}
21138
21139
21140SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21141 PyObject *resultobj = 0;
21142 wxDC *arg1 = (wxDC *) 0 ;
21143 wxString *arg2 = 0 ;
21144 int *arg3 = (int *) 0 ;
21145 int *arg4 = (int *) 0 ;
21146 int *arg5 = (int *) 0 ;
21147 wxFont *arg6 = (wxFont *) NULL ;
21148 void *argp1 = 0 ;
21149 int res1 = 0 ;
21150 bool temp2 = false ;
21151 int temp3 ;
21152 int res3 = SWIG_TMPOBJ ;
21153 int temp4 ;
21154 int res4 = SWIG_TMPOBJ ;
21155 int temp5 ;
21156 int res5 = SWIG_TMPOBJ ;
21157 void *argp6 = 0 ;
21158 int res6 = 0 ;
21159 PyObject * obj0 = 0 ;
21160 PyObject * obj1 = 0 ;
21161 PyObject * obj2 = 0 ;
21162 char * kwnames[] = {
21163 (char *) "self",(char *) "text",(char *) "font", NULL
21164 };
21165
21166 arg3 = &temp3;
21167 arg4 = &temp4;
21168 arg5 = &temp5;
21169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21171 if (!SWIG_IsOK(res1)) {
21172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21173 }
21174 arg1 = reinterpret_cast< wxDC * >(argp1);
21175 {
21176 arg2 = wxString_in_helper(obj1);
21177 if (arg2 == NULL) SWIG_fail;
21178 temp2 = true;
21179 }
21180 if (obj2) {
21181 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21182 if (!SWIG_IsOK(res6)) {
21183 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21184 }
1bd55598
RD
21185 arg6 = reinterpret_cast< wxFont * >(argp6);
21186 }
21187 {
21188 PyThreadState* __tstate = wxPyBeginAllowThreads();
21189 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21190 wxPyEndAllowThreads(__tstate);
21191 if (PyErr_Occurred()) SWIG_fail;
21192 }
21193 resultobj = SWIG_Py_Void();
21194 if (SWIG_IsTmpObj(res3)) {
21195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21196 } else {
21197 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21199 }
21200 if (SWIG_IsTmpObj(res4)) {
21201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21202 } else {
21203 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21205 }
21206 if (SWIG_IsTmpObj(res5)) {
21207 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21208 } else {
21209 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21211 }
21212 {
21213 if (temp2)
21214 delete arg2;
21215 }
21216 return resultobj;
21217fail:
21218 {
21219 if (temp2)
21220 delete arg2;
21221 }
21222 return NULL;
21223}
21224
21225
21226SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21227 PyObject *resultobj = 0;
21228 wxDC *arg1 = (wxDC *) 0 ;
21229 wxString *arg2 = 0 ;
21230 wxArrayInt result;
21231 void *argp1 = 0 ;
21232 int res1 = 0 ;
21233 bool temp2 = false ;
21234 PyObject * obj0 = 0 ;
21235 PyObject * obj1 = 0 ;
21236 char * kwnames[] = {
21237 (char *) "self",(char *) "text", NULL
21238 };
21239
21240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21242 if (!SWIG_IsOK(res1)) {
21243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21244 }
21245 arg1 = reinterpret_cast< wxDC * >(argp1);
21246 {
21247 arg2 = wxString_in_helper(obj1);
21248 if (arg2 == NULL) SWIG_fail;
21249 temp2 = true;
21250 }
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21254 wxPyEndAllowThreads(__tstate);
21255 if (PyErr_Occurred()) SWIG_fail;
21256 }
21257 {
b39fe951 21258 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21259 }
21260 {
21261 if (temp2)
21262 delete arg2;
21263 }
21264 return resultobj;
21265fail:
21266 {
21267 if (temp2)
21268 delete arg2;
21269 }
21270 return NULL;
21271}
21272
21273
21274SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21275 PyObject *resultobj = 0;
21276 wxDC *arg1 = (wxDC *) 0 ;
21277 wxSize result;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 PyObject *swig_obj[1] ;
21281
21282 if (!args) SWIG_fail;
21283 swig_obj[0] = args;
21284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21285 if (!SWIG_IsOK(res1)) {
21286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21287 }
21288 arg1 = reinterpret_cast< wxDC * >(argp1);
21289 {
21290 PyThreadState* __tstate = wxPyBeginAllowThreads();
21291 result = (arg1)->GetSize();
21292 wxPyEndAllowThreads(__tstate);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 }
21295 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21296 return resultobj;
21297fail:
21298 return NULL;
21299}
21300
21301
21302SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21303 PyObject *resultobj = 0;
21304 wxDC *arg1 = (wxDC *) 0 ;
21305 int *arg2 = (int *) 0 ;
21306 int *arg3 = (int *) 0 ;
21307 void *argp1 = 0 ;
21308 int res1 = 0 ;
21309 int temp2 ;
21310 int res2 = SWIG_TMPOBJ ;
21311 int temp3 ;
21312 int res3 = SWIG_TMPOBJ ;
21313 PyObject *swig_obj[1] ;
21314
21315 arg2 = &temp2;
21316 arg3 = &temp3;
21317 if (!args) SWIG_fail;
21318 swig_obj[0] = args;
21319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21320 if (!SWIG_IsOK(res1)) {
21321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21322 }
21323 arg1 = reinterpret_cast< wxDC * >(argp1);
21324 {
21325 PyThreadState* __tstate = wxPyBeginAllowThreads();
21326 (arg1)->GetSize(arg2,arg3);
21327 wxPyEndAllowThreads(__tstate);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 }
21330 resultobj = SWIG_Py_Void();
21331 if (SWIG_IsTmpObj(res2)) {
21332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21333 } else {
21334 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21335 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21336 }
21337 if (SWIG_IsTmpObj(res3)) {
21338 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21339 } else {
21340 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21341 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21342 }
21343 return resultobj;
21344fail:
21345 return NULL;
21346}
21347
21348
21349SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21350 PyObject *resultobj = 0;
21351 wxDC *arg1 = (wxDC *) 0 ;
21352 wxSize result;
21353 void *argp1 = 0 ;
21354 int res1 = 0 ;
21355 PyObject *swig_obj[1] ;
21356
21357 if (!args) SWIG_fail;
21358 swig_obj[0] = args;
21359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21360 if (!SWIG_IsOK(res1)) {
21361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21362 }
21363 arg1 = reinterpret_cast< wxDC * >(argp1);
21364 {
21365 PyThreadState* __tstate = wxPyBeginAllowThreads();
21366 result = ((wxDC const *)arg1)->GetSizeMM();
21367 wxPyEndAllowThreads(__tstate);
21368 if (PyErr_Occurred()) SWIG_fail;
21369 }
21370 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21371 return resultobj;
21372fail:
21373 return NULL;
21374}
21375
21376
21377SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21378 PyObject *resultobj = 0;
21379 wxDC *arg1 = (wxDC *) 0 ;
21380 int *arg2 = (int *) 0 ;
21381 int *arg3 = (int *) 0 ;
21382 void *argp1 = 0 ;
21383 int res1 = 0 ;
21384 int temp2 ;
21385 int res2 = SWIG_TMPOBJ ;
21386 int temp3 ;
21387 int res3 = SWIG_TMPOBJ ;
21388 PyObject *swig_obj[1] ;
21389
21390 arg2 = &temp2;
21391 arg3 = &temp3;
21392 if (!args) SWIG_fail;
21393 swig_obj[0] = args;
21394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21395 if (!SWIG_IsOK(res1)) {
21396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21397 }
21398 arg1 = reinterpret_cast< wxDC * >(argp1);
21399 {
21400 PyThreadState* __tstate = wxPyBeginAllowThreads();
21401 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21402 wxPyEndAllowThreads(__tstate);
21403 if (PyErr_Occurred()) SWIG_fail;
21404 }
21405 resultobj = SWIG_Py_Void();
21406 if (SWIG_IsTmpObj(res2)) {
21407 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21408 } else {
21409 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21410 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21411 }
21412 if (SWIG_IsTmpObj(res3)) {
21413 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21414 } else {
21415 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21417 }
21418 return resultobj;
21419fail:
21420 return NULL;
21421}
21422
21423
21424SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21425 PyObject *resultobj = 0;
21426 wxDC *arg1 = (wxDC *) 0 ;
21427 int arg2 ;
21428 int result;
21429 void *argp1 = 0 ;
21430 int res1 = 0 ;
21431 int val2 ;
21432 int ecode2 = 0 ;
21433 PyObject * obj0 = 0 ;
21434 PyObject * obj1 = 0 ;
21435 char * kwnames[] = {
21436 (char *) "self",(char *) "x", NULL
21437 };
21438
21439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21441 if (!SWIG_IsOK(res1)) {
21442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21443 }
21444 arg1 = reinterpret_cast< wxDC * >(argp1);
21445 ecode2 = SWIG_AsVal_int(obj1, &val2);
21446 if (!SWIG_IsOK(ecode2)) {
21447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21448 }
21449 arg2 = static_cast< int >(val2);
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 resultobj = SWIG_From_int(static_cast< int >(result));
21457 return resultobj;
21458fail:
21459 return NULL;
21460}
21461
21462
21463SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21464 PyObject *resultobj = 0;
21465 wxDC *arg1 = (wxDC *) 0 ;
21466 int arg2 ;
21467 int result;
21468 void *argp1 = 0 ;
21469 int res1 = 0 ;
21470 int val2 ;
21471 int ecode2 = 0 ;
21472 PyObject * obj0 = 0 ;
21473 PyObject * obj1 = 0 ;
21474 char * kwnames[] = {
21475 (char *) "self",(char *) "y", NULL
21476 };
21477
21478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21480 if (!SWIG_IsOK(res1)) {
21481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21482 }
21483 arg1 = reinterpret_cast< wxDC * >(argp1);
21484 ecode2 = SWIG_AsVal_int(obj1, &val2);
21485 if (!SWIG_IsOK(ecode2)) {
21486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21487 }
21488 arg2 = static_cast< int >(val2);
21489 {
21490 PyThreadState* __tstate = wxPyBeginAllowThreads();
21491 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21492 wxPyEndAllowThreads(__tstate);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 resultobj = SWIG_From_int(static_cast< int >(result));
21496 return resultobj;
21497fail:
21498 return NULL;
21499}
21500
21501
21502SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21503 PyObject *resultobj = 0;
21504 wxDC *arg1 = (wxDC *) 0 ;
21505 int arg2 ;
21506 int result;
21507 void *argp1 = 0 ;
21508 int res1 = 0 ;
21509 int val2 ;
21510 int ecode2 = 0 ;
21511 PyObject * obj0 = 0 ;
21512 PyObject * obj1 = 0 ;
21513 char * kwnames[] = {
21514 (char *) "self",(char *) "x", NULL
21515 };
21516
21517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21519 if (!SWIG_IsOK(res1)) {
21520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21521 }
21522 arg1 = reinterpret_cast< wxDC * >(argp1);
21523 ecode2 = SWIG_AsVal_int(obj1, &val2);
21524 if (!SWIG_IsOK(ecode2)) {
21525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21526 }
21527 arg2 = static_cast< int >(val2);
21528 {
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 resultobj = SWIG_From_int(static_cast< int >(result));
21535 return resultobj;
21536fail:
21537 return NULL;
21538}
21539
21540
21541SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21542 PyObject *resultobj = 0;
21543 wxDC *arg1 = (wxDC *) 0 ;
21544 int arg2 ;
21545 int result;
21546 void *argp1 = 0 ;
21547 int res1 = 0 ;
21548 int val2 ;
21549 int ecode2 = 0 ;
21550 PyObject * obj0 = 0 ;
21551 PyObject * obj1 = 0 ;
21552 char * kwnames[] = {
21553 (char *) "self",(char *) "y", NULL
21554 };
21555
21556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 ecode2 = SWIG_AsVal_int(obj1, &val2);
21563 if (!SWIG_IsOK(ecode2)) {
21564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21565 }
21566 arg2 = static_cast< int >(val2);
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 resultobj = SWIG_From_int(static_cast< int >(result));
21574 return resultobj;
21575fail:
21576 return NULL;
21577}
21578
21579
21580SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21581 PyObject *resultobj = 0;
21582 wxDC *arg1 = (wxDC *) 0 ;
21583 int arg2 ;
21584 int result;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 int val2 ;
21588 int ecode2 = 0 ;
21589 PyObject * obj0 = 0 ;
21590 PyObject * obj1 = 0 ;
21591 char * kwnames[] = {
21592 (char *) "self",(char *) "x", NULL
21593 };
21594
21595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21597 if (!SWIG_IsOK(res1)) {
21598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21599 }
21600 arg1 = reinterpret_cast< wxDC * >(argp1);
21601 ecode2 = SWIG_AsVal_int(obj1, &val2);
21602 if (!SWIG_IsOK(ecode2)) {
21603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21604 }
21605 arg2 = static_cast< int >(val2);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21609 wxPyEndAllowThreads(__tstate);
21610 if (PyErr_Occurred()) SWIG_fail;
21611 }
21612 resultobj = SWIG_From_int(static_cast< int >(result));
21613 return resultobj;
21614fail:
21615 return NULL;
21616}
21617
21618
21619SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21620 PyObject *resultobj = 0;
21621 wxDC *arg1 = (wxDC *) 0 ;
21622 int arg2 ;
21623 int result;
21624 void *argp1 = 0 ;
21625 int res1 = 0 ;
21626 int val2 ;
21627 int ecode2 = 0 ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char * kwnames[] = {
21631 (char *) "self",(char *) "y", NULL
21632 };
21633
21634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21636 if (!SWIG_IsOK(res1)) {
21637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21638 }
21639 arg1 = reinterpret_cast< wxDC * >(argp1);
21640 ecode2 = SWIG_AsVal_int(obj1, &val2);
21641 if (!SWIG_IsOK(ecode2)) {
21642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21643 }
21644 arg2 = static_cast< int >(val2);
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_From_int(static_cast< int >(result));
21652 return resultobj;
21653fail:
21654 return NULL;
21655}
21656
21657
21658SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj = 0;
21660 wxDC *arg1 = (wxDC *) 0 ;
21661 int arg2 ;
21662 int result;
21663 void *argp1 = 0 ;
21664 int res1 = 0 ;
21665 int val2 ;
21666 int ecode2 = 0 ;
21667 PyObject * obj0 = 0 ;
21668 PyObject * obj1 = 0 ;
21669 char * kwnames[] = {
21670 (char *) "self",(char *) "x", NULL
21671 };
21672
21673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21675 if (!SWIG_IsOK(res1)) {
21676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21677 }
21678 arg1 = reinterpret_cast< wxDC * >(argp1);
21679 ecode2 = SWIG_AsVal_int(obj1, &val2);
21680 if (!SWIG_IsOK(ecode2)) {
21681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21682 }
21683 arg2 = static_cast< int >(val2);
21684 {
21685 PyThreadState* __tstate = wxPyBeginAllowThreads();
21686 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21687 wxPyEndAllowThreads(__tstate);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 }
21690 resultobj = SWIG_From_int(static_cast< int >(result));
21691 return resultobj;
21692fail:
21693 return NULL;
21694}
21695
21696
21697SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21698 PyObject *resultobj = 0;
21699 wxDC *arg1 = (wxDC *) 0 ;
21700 int arg2 ;
21701 int result;
21702 void *argp1 = 0 ;
21703 int res1 = 0 ;
21704 int val2 ;
21705 int ecode2 = 0 ;
21706 PyObject * obj0 = 0 ;
21707 PyObject * obj1 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "self",(char *) "y", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21716 }
21717 arg1 = reinterpret_cast< wxDC * >(argp1);
21718 ecode2 = SWIG_AsVal_int(obj1, &val2);
21719 if (!SWIG_IsOK(ecode2)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21721 }
21722 arg2 = static_cast< int >(val2);
21723 {
21724 PyThreadState* __tstate = wxPyBeginAllowThreads();
21725 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 resultobj = SWIG_From_int(static_cast< int >(result));
21730 return resultobj;
21731fail:
21732 return NULL;
21733}
21734
21735
21736SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21737 PyObject *resultobj = 0;
21738 wxDC *arg1 = (wxDC *) 0 ;
21739 bool result;
21740 void *argp1 = 0 ;
21741 int res1 = 0 ;
21742 PyObject *swig_obj[1] ;
21743
21744 if (!args) SWIG_fail;
21745 swig_obj[0] = args;
21746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21747 if (!SWIG_IsOK(res1)) {
21748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21749 }
21750 arg1 = reinterpret_cast< wxDC * >(argp1);
21751 {
21752 PyThreadState* __tstate = wxPyBeginAllowThreads();
21753 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 {
21758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21759 }
21760 return resultobj;
21761fail:
21762 return NULL;
21763}
21764
21765
21766SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21767 PyObject *resultobj = 0;
21768 wxDC *arg1 = (wxDC *) 0 ;
21769 bool result;
21770 void *argp1 = 0 ;
21771 int res1 = 0 ;
21772 PyObject *swig_obj[1] ;
21773
21774 if (!args) SWIG_fail;
21775 swig_obj[0] = args;
21776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21777 if (!SWIG_IsOK(res1)) {
21778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21779 }
21780 arg1 = reinterpret_cast< wxDC * >(argp1);
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21784 wxPyEndAllowThreads(__tstate);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 }
21787 {
21788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21789 }
21790 return resultobj;
21791fail:
21792 return NULL;
21793}
21794
21795
21796SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21797 PyObject *resultobj = 0;
21798 wxDC *arg1 = (wxDC *) 0 ;
21799 int result;
21800 void *argp1 = 0 ;
21801 int res1 = 0 ;
21802 PyObject *swig_obj[1] ;
21803
21804 if (!args) SWIG_fail;
21805 swig_obj[0] = args;
21806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21807 if (!SWIG_IsOK(res1)) {
21808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21809 }
21810 arg1 = reinterpret_cast< wxDC * >(argp1);
21811 {
21812 PyThreadState* __tstate = wxPyBeginAllowThreads();
21813 result = (int)((wxDC const *)arg1)->GetDepth();
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 resultobj = SWIG_From_int(static_cast< int >(result));
21818 return resultobj;
21819fail:
21820 return NULL;
21821}
21822
21823
21824SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21825 PyObject *resultobj = 0;
21826 wxDC *arg1 = (wxDC *) 0 ;
21827 wxSize result;
21828 void *argp1 = 0 ;
21829 int res1 = 0 ;
21830 PyObject *swig_obj[1] ;
21831
21832 if (!args) SWIG_fail;
21833 swig_obj[0] = args;
21834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21835 if (!SWIG_IsOK(res1)) {
21836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21837 }
21838 arg1 = reinterpret_cast< wxDC * >(argp1);
21839 {
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 result = ((wxDC const *)arg1)->GetPPI();
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21846 return resultobj;
21847fail:
21848 return NULL;
21849}
21850
21851
b39fe951 21852SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21853 PyObject *resultobj = 0;
21854 wxDC *arg1 = (wxDC *) 0 ;
21855 bool result;
21856 void *argp1 = 0 ;
21857 int res1 = 0 ;
21858 PyObject *swig_obj[1] ;
21859
21860 if (!args) SWIG_fail;
21861 swig_obj[0] = args;
21862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21863 if (!SWIG_IsOK(res1)) {
b39fe951 21864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21865 }
21866 arg1 = reinterpret_cast< wxDC * >(argp1);
21867 {
21868 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21869 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21870 wxPyEndAllowThreads(__tstate);
21871 if (PyErr_Occurred()) SWIG_fail;
21872 }
21873 {
21874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21875 }
21876 return resultobj;
21877fail:
21878 return NULL;
21879}
21880
21881
21882SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21883 PyObject *resultobj = 0;
21884 wxDC *arg1 = (wxDC *) 0 ;
21885 int result;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 PyObject *swig_obj[1] ;
21889
21890 if (!args) SWIG_fail;
21891 swig_obj[0] = args;
21892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21893 if (!SWIG_IsOK(res1)) {
21894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21895 }
21896 arg1 = reinterpret_cast< wxDC * >(argp1);
21897 {
21898 PyThreadState* __tstate = wxPyBeginAllowThreads();
21899 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21900 wxPyEndAllowThreads(__tstate);
21901 if (PyErr_Occurred()) SWIG_fail;
21902 }
21903 resultobj = SWIG_From_int(static_cast< int >(result));
21904 return resultobj;
21905fail:
21906 return NULL;
21907}
21908
21909
21910SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21911 PyObject *resultobj = 0;
21912 wxDC *arg1 = (wxDC *) 0 ;
21913 wxBrush *result = 0 ;
21914 void *argp1 = 0 ;
21915 int res1 = 0 ;
21916 PyObject *swig_obj[1] ;
21917
21918 if (!args) SWIG_fail;
21919 swig_obj[0] = args;
21920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21921 if (!SWIG_IsOK(res1)) {
21922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21923 }
21924 arg1 = reinterpret_cast< wxDC * >(argp1);
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21927 {
1bd55598
RD
21928 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21929 result = (wxBrush *) &_result_ref;
36ed4f51 21930 }
1bd55598
RD
21931 wxPyEndAllowThreads(__tstate);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 }
21934 {
21935 wxBrush* resultptr = new wxBrush(*result);
21936 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21937 }
21938 return resultobj;
21939fail:
21940 return NULL;
21941}
21942
21943
21944SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21945 PyObject *resultobj = 0;
21946 wxDC *arg1 = (wxDC *) 0 ;
21947 wxBrush *result = 0 ;
21948 void *argp1 = 0 ;
21949 int res1 = 0 ;
21950 PyObject *swig_obj[1] ;
21951
21952 if (!args) SWIG_fail;
21953 swig_obj[0] = args;
21954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21955 if (!SWIG_IsOK(res1)) {
21956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21957 }
21958 arg1 = reinterpret_cast< wxDC * >(argp1);
21959 {
21960 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21961 {
1bd55598
RD
21962 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21963 result = (wxBrush *) &_result_ref;
36ed4f51 21964 }
1bd55598
RD
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 {
21969 wxBrush* resultptr = new wxBrush(*result);
21970 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21971 }
21972 return resultobj;
21973fail:
21974 return NULL;
21975}
21976
21977
21978SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21979 PyObject *resultobj = 0;
21980 wxDC *arg1 = (wxDC *) 0 ;
21981 wxFont *result = 0 ;
21982 void *argp1 = 0 ;
21983 int res1 = 0 ;
21984 PyObject *swig_obj[1] ;
21985
21986 if (!args) SWIG_fail;
21987 swig_obj[0] = args;
21988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21989 if (!SWIG_IsOK(res1)) {
21990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21991 }
21992 arg1 = reinterpret_cast< wxDC * >(argp1);
21993 {
21994 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21995 {
1bd55598
RD
21996 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21997 result = (wxFont *) &_result_ref;
36ed4f51 21998 }
1bd55598
RD
21999 wxPyEndAllowThreads(__tstate);
22000 if (PyErr_Occurred()) SWIG_fail;
22001 }
22002 {
22003 wxFont* resultptr = new wxFont(*result);
22004 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22005 }
22006 return resultobj;
22007fail:
22008 return NULL;
22009}
22010
22011
22012SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22013 PyObject *resultobj = 0;
22014 wxDC *arg1 = (wxDC *) 0 ;
22015 wxPen *result = 0 ;
22016 void *argp1 = 0 ;
22017 int res1 = 0 ;
22018 PyObject *swig_obj[1] ;
22019
22020 if (!args) SWIG_fail;
22021 swig_obj[0] = args;
22022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22023 if (!SWIG_IsOK(res1)) {
22024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22025 }
22026 arg1 = reinterpret_cast< wxDC * >(argp1);
22027 {
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22029 {
1bd55598
RD
22030 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22031 result = (wxPen *) &_result_ref;
36ed4f51 22032 }
1bd55598
RD
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 {
22037 wxPen* resultptr = new wxPen(*result);
22038 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22039 }
22040 return resultobj;
22041fail:
22042 return NULL;
22043}
22044
22045
22046SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22047 PyObject *resultobj = 0;
22048 wxDC *arg1 = (wxDC *) 0 ;
22049 wxColour *result = 0 ;
22050 void *argp1 = 0 ;
22051 int res1 = 0 ;
22052 PyObject *swig_obj[1] ;
22053
22054 if (!args) SWIG_fail;
22055 swig_obj[0] = args;
22056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22057 if (!SWIG_IsOK(res1)) {
22058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22059 }
22060 arg1 = reinterpret_cast< wxDC * >(argp1);
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22063 {
1bd55598
RD
22064 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22065 result = (wxColour *) &_result_ref;
36ed4f51 22066 }
1bd55598
RD
22067 wxPyEndAllowThreads(__tstate);
22068 if (PyErr_Occurred()) SWIG_fail;
22069 }
22070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22071 return resultobj;
22072fail:
22073 return NULL;
22074}
22075
22076
22077SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22078 PyObject *resultobj = 0;
22079 wxDC *arg1 = (wxDC *) 0 ;
22080 wxColour *result = 0 ;
22081 void *argp1 = 0 ;
22082 int res1 = 0 ;
22083 PyObject *swig_obj[1] ;
22084
22085 if (!args) SWIG_fail;
22086 swig_obj[0] = args;
22087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22088 if (!SWIG_IsOK(res1)) {
22089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22090 }
22091 arg1 = reinterpret_cast< wxDC * >(argp1);
22092 {
22093 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22094 {
1bd55598
RD
22095 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22096 result = (wxColour *) &_result_ref;
36ed4f51 22097 }
1bd55598
RD
22098 wxPyEndAllowThreads(__tstate);
22099 if (PyErr_Occurred()) SWIG_fail;
22100 }
22101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22102 return resultobj;
22103fail:
22104 return NULL;
22105}
22106
22107
22108SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22109 PyObject *resultobj = 0;
22110 wxDC *arg1 = (wxDC *) 0 ;
22111 wxColour *arg2 = 0 ;
22112 void *argp1 = 0 ;
22113 int res1 = 0 ;
22114 wxColour temp2 ;
22115 PyObject * obj0 = 0 ;
22116 PyObject * obj1 = 0 ;
22117 char * kwnames[] = {
22118 (char *) "self",(char *) "colour", NULL
22119 };
22120
22121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22123 if (!SWIG_IsOK(res1)) {
22124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22125 }
22126 arg1 = reinterpret_cast< wxDC * >(argp1);
22127 {
22128 arg2 = &temp2;
22129 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22130 }
22131 {
22132 PyThreadState* __tstate = wxPyBeginAllowThreads();
22133 (arg1)->SetTextForeground((wxColour const &)*arg2);
22134 wxPyEndAllowThreads(__tstate);
22135 if (PyErr_Occurred()) SWIG_fail;
22136 }
22137 resultobj = SWIG_Py_Void();
22138 return resultobj;
22139fail:
22140 return NULL;
22141}
22142
22143
22144SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22145 PyObject *resultobj = 0;
22146 wxDC *arg1 = (wxDC *) 0 ;
22147 wxColour *arg2 = 0 ;
22148 void *argp1 = 0 ;
22149 int res1 = 0 ;
22150 wxColour temp2 ;
22151 PyObject * obj0 = 0 ;
22152 PyObject * obj1 = 0 ;
22153 char * kwnames[] = {
22154 (char *) "self",(char *) "colour", NULL
22155 };
22156
22157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22159 if (!SWIG_IsOK(res1)) {
22160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22161 }
22162 arg1 = reinterpret_cast< wxDC * >(argp1);
22163 {
22164 arg2 = &temp2;
22165 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22166 }
22167 {
22168 PyThreadState* __tstate = wxPyBeginAllowThreads();
22169 (arg1)->SetTextBackground((wxColour const &)*arg2);
22170 wxPyEndAllowThreads(__tstate);
22171 if (PyErr_Occurred()) SWIG_fail;
22172 }
22173 resultobj = SWIG_Py_Void();
22174 return resultobj;
22175fail:
22176 return NULL;
22177}
22178
22179
22180SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22181 PyObject *resultobj = 0;
22182 wxDC *arg1 = (wxDC *) 0 ;
22183 int result;
22184 void *argp1 = 0 ;
22185 int res1 = 0 ;
22186 PyObject *swig_obj[1] ;
22187
22188 if (!args) SWIG_fail;
22189 swig_obj[0] = args;
22190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22191 if (!SWIG_IsOK(res1)) {
22192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22193 }
22194 arg1 = reinterpret_cast< wxDC * >(argp1);
22195 {
22196 PyThreadState* __tstate = wxPyBeginAllowThreads();
22197 result = (int)((wxDC const *)arg1)->GetMapMode();
22198 wxPyEndAllowThreads(__tstate);
22199 if (PyErr_Occurred()) SWIG_fail;
22200 }
22201 resultobj = SWIG_From_int(static_cast< int >(result));
22202 return resultobj;
22203fail:
22204 return NULL;
22205}
22206
22207
22208SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22209 PyObject *resultobj = 0;
22210 wxDC *arg1 = (wxDC *) 0 ;
22211 int arg2 ;
22212 void *argp1 = 0 ;
22213 int res1 = 0 ;
22214 int val2 ;
22215 int ecode2 = 0 ;
22216 PyObject * obj0 = 0 ;
22217 PyObject * obj1 = 0 ;
22218 char * kwnames[] = {
22219 (char *) "self",(char *) "mode", NULL
22220 };
22221
22222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22224 if (!SWIG_IsOK(res1)) {
22225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22226 }
22227 arg1 = reinterpret_cast< wxDC * >(argp1);
22228 ecode2 = SWIG_AsVal_int(obj1, &val2);
22229 if (!SWIG_IsOK(ecode2)) {
22230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22231 }
22232 arg2 = static_cast< int >(val2);
22233 {
22234 PyThreadState* __tstate = wxPyBeginAllowThreads();
22235 (arg1)->SetMapMode(arg2);
22236 wxPyEndAllowThreads(__tstate);
22237 if (PyErr_Occurred()) SWIG_fail;
22238 }
22239 resultobj = SWIG_Py_Void();
22240 return resultobj;
22241fail:
22242 return NULL;
22243}
22244
22245
22246SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22247 PyObject *resultobj = 0;
22248 wxDC *arg1 = (wxDC *) 0 ;
22249 double *arg2 = (double *) 0 ;
22250 double *arg3 = (double *) 0 ;
22251 void *argp1 = 0 ;
22252 int res1 = 0 ;
22253 double temp2 ;
22254 int res2 = SWIG_TMPOBJ ;
22255 double temp3 ;
22256 int res3 = SWIG_TMPOBJ ;
22257 PyObject *swig_obj[1] ;
22258
22259 arg2 = &temp2;
22260 arg3 = &temp3;
22261 if (!args) SWIG_fail;
22262 swig_obj[0] = args;
22263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22264 if (!SWIG_IsOK(res1)) {
22265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22266 }
22267 arg1 = reinterpret_cast< wxDC * >(argp1);
22268 {
22269 PyThreadState* __tstate = wxPyBeginAllowThreads();
22270 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22271 wxPyEndAllowThreads(__tstate);
22272 if (PyErr_Occurred()) SWIG_fail;
22273 }
22274 resultobj = SWIG_Py_Void();
22275 if (SWIG_IsTmpObj(res2)) {
22276 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22277 } else {
22278 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22280 }
22281 if (SWIG_IsTmpObj(res3)) {
22282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22283 } else {
22284 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22286 }
22287 return resultobj;
22288fail:
22289 return NULL;
22290}
22291
22292
22293SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22294 PyObject *resultobj = 0;
22295 wxDC *arg1 = (wxDC *) 0 ;
22296 double arg2 ;
22297 double arg3 ;
22298 void *argp1 = 0 ;
22299 int res1 = 0 ;
22300 double val2 ;
22301 int ecode2 = 0 ;
22302 double val3 ;
22303 int ecode3 = 0 ;
22304 PyObject * obj0 = 0 ;
22305 PyObject * obj1 = 0 ;
22306 PyObject * obj2 = 0 ;
22307 char * kwnames[] = {
22308 (char *) "self",(char *) "x",(char *) "y", NULL
22309 };
22310
22311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22313 if (!SWIG_IsOK(res1)) {
22314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22315 }
22316 arg1 = reinterpret_cast< wxDC * >(argp1);
22317 ecode2 = SWIG_AsVal_double(obj1, &val2);
22318 if (!SWIG_IsOK(ecode2)) {
22319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22320 }
22321 arg2 = static_cast< double >(val2);
22322 ecode3 = SWIG_AsVal_double(obj2, &val3);
22323 if (!SWIG_IsOK(ecode3)) {
22324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22325 }
22326 arg3 = static_cast< double >(val3);
22327 {
22328 PyThreadState* __tstate = wxPyBeginAllowThreads();
22329 (arg1)->SetUserScale(arg2,arg3);
22330 wxPyEndAllowThreads(__tstate);
22331 if (PyErr_Occurred()) SWIG_fail;
22332 }
22333 resultobj = SWIG_Py_Void();
22334 return resultobj;
22335fail:
22336 return NULL;
22337}
22338
22339
22340SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22341 PyObject *resultobj = 0;
22342 wxDC *arg1 = (wxDC *) 0 ;
22343 double *arg2 = (double *) 0 ;
22344 double *arg3 = (double *) 0 ;
22345 void *argp1 = 0 ;
22346 int res1 = 0 ;
22347 double temp2 ;
22348 int res2 = SWIG_TMPOBJ ;
22349 double temp3 ;
22350 int res3 = SWIG_TMPOBJ ;
22351 PyObject *swig_obj[1] ;
22352
22353 arg2 = &temp2;
22354 arg3 = &temp3;
22355 if (!args) SWIG_fail;
22356 swig_obj[0] = args;
22357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22358 if (!SWIG_IsOK(res1)) {
22359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22360 }
22361 arg1 = reinterpret_cast< wxDC * >(argp1);
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 (arg1)->GetLogicalScale(arg2,arg3);
22365 wxPyEndAllowThreads(__tstate);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 }
22368 resultobj = SWIG_Py_Void();
22369 if (SWIG_IsTmpObj(res2)) {
22370 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22371 } else {
22372 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22374 }
22375 if (SWIG_IsTmpObj(res3)) {
22376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22377 } else {
22378 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22380 }
22381 return resultobj;
22382fail:
22383 return NULL;
22384}
22385
22386
22387SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj = 0;
22389 wxDC *arg1 = (wxDC *) 0 ;
22390 double arg2 ;
22391 double arg3 ;
22392 void *argp1 = 0 ;
22393 int res1 = 0 ;
22394 double val2 ;
22395 int ecode2 = 0 ;
22396 double val3 ;
22397 int ecode3 = 0 ;
22398 PyObject * obj0 = 0 ;
22399 PyObject * obj1 = 0 ;
22400 PyObject * obj2 = 0 ;
22401 char * kwnames[] = {
22402 (char *) "self",(char *) "x",(char *) "y", NULL
22403 };
22404
22405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22407 if (!SWIG_IsOK(res1)) {
22408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22409 }
22410 arg1 = reinterpret_cast< wxDC * >(argp1);
22411 ecode2 = SWIG_AsVal_double(obj1, &val2);
22412 if (!SWIG_IsOK(ecode2)) {
22413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22414 }
22415 arg2 = static_cast< double >(val2);
22416 ecode3 = SWIG_AsVal_double(obj2, &val3);
22417 if (!SWIG_IsOK(ecode3)) {
22418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22419 }
22420 arg3 = static_cast< double >(val3);
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 (arg1)->SetLogicalScale(arg2,arg3);
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 resultobj = SWIG_Py_Void();
22428 return resultobj;
22429fail:
22430 return NULL;
22431}
22432
22433
22434SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22435 PyObject *resultobj = 0;
22436 wxDC *arg1 = (wxDC *) 0 ;
22437 wxPoint result;
22438 void *argp1 = 0 ;
22439 int res1 = 0 ;
22440 PyObject *swig_obj[1] ;
22441
22442 if (!args) SWIG_fail;
22443 swig_obj[0] = args;
22444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22445 if (!SWIG_IsOK(res1)) {
22446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22447 }
22448 arg1 = reinterpret_cast< wxDC * >(argp1);
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
22451 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22452 wxPyEndAllowThreads(__tstate);
22453 if (PyErr_Occurred()) SWIG_fail;
22454 }
22455 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22456 return resultobj;
22457fail:
22458 return NULL;
22459}
22460
22461
22462SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22463 PyObject *resultobj = 0;
22464 wxDC *arg1 = (wxDC *) 0 ;
22465 int *arg2 = (int *) 0 ;
22466 int *arg3 = (int *) 0 ;
22467 void *argp1 = 0 ;
22468 int res1 = 0 ;
22469 int temp2 ;
22470 int res2 = SWIG_TMPOBJ ;
22471 int temp3 ;
22472 int res3 = SWIG_TMPOBJ ;
22473 PyObject *swig_obj[1] ;
22474
22475 arg2 = &temp2;
22476 arg3 = &temp3;
22477 if (!args) SWIG_fail;
22478 swig_obj[0] = args;
22479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22480 if (!SWIG_IsOK(res1)) {
22481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22482 }
22483 arg1 = reinterpret_cast< wxDC * >(argp1);
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 resultobj = SWIG_Py_Void();
22491 if (SWIG_IsTmpObj(res2)) {
22492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22493 } else {
22494 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22496 }
22497 if (SWIG_IsTmpObj(res3)) {
22498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22499 } else {
22500 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22502 }
22503 return resultobj;
22504fail:
22505 return NULL;
22506}
22507
22508
22509SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22510 PyObject *resultobj = 0;
22511 wxDC *arg1 = (wxDC *) 0 ;
22512 int arg2 ;
22513 int arg3 ;
22514 void *argp1 = 0 ;
22515 int res1 = 0 ;
22516 int val2 ;
22517 int ecode2 = 0 ;
22518 int val3 ;
22519 int ecode3 = 0 ;
22520 PyObject * obj0 = 0 ;
22521 PyObject * obj1 = 0 ;
22522 PyObject * obj2 = 0 ;
22523 char * kwnames[] = {
22524 (char *) "self",(char *) "x",(char *) "y", NULL
22525 };
22526
22527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22529 if (!SWIG_IsOK(res1)) {
22530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22531 }
22532 arg1 = reinterpret_cast< wxDC * >(argp1);
22533 ecode2 = SWIG_AsVal_int(obj1, &val2);
22534 if (!SWIG_IsOK(ecode2)) {
22535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22536 }
22537 arg2 = static_cast< int >(val2);
22538 ecode3 = SWIG_AsVal_int(obj2, &val3);
22539 if (!SWIG_IsOK(ecode3)) {
22540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22541 }
22542 arg3 = static_cast< int >(val3);
22543 {
22544 PyThreadState* __tstate = wxPyBeginAllowThreads();
22545 (arg1)->SetLogicalOrigin(arg2,arg3);
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 resultobj = SWIG_Py_Void();
22550 return resultobj;
22551fail:
22552 return NULL;
22553}
22554
22555
22556SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22557 PyObject *resultobj = 0;
22558 wxDC *arg1 = (wxDC *) 0 ;
22559 wxPoint *arg2 = 0 ;
22560 void *argp1 = 0 ;
22561 int res1 = 0 ;
22562 wxPoint temp2 ;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 char * kwnames[] = {
22566 (char *) "self",(char *) "point", NULL
22567 };
22568
22569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22571 if (!SWIG_IsOK(res1)) {
22572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22573 }
22574 arg1 = reinterpret_cast< wxDC * >(argp1);
22575 {
22576 arg2 = &temp2;
22577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22578 }
22579 {
22580 PyThreadState* __tstate = wxPyBeginAllowThreads();
22581 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 resultobj = SWIG_Py_Void();
22586 return resultobj;
22587fail:
22588 return NULL;
22589}
22590
22591
22592SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22593 PyObject *resultobj = 0;
22594 wxDC *arg1 = (wxDC *) 0 ;
22595 wxPoint result;
22596 void *argp1 = 0 ;
22597 int res1 = 0 ;
22598 PyObject *swig_obj[1] ;
22599
22600 if (!args) SWIG_fail;
22601 swig_obj[0] = args;
22602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22603 if (!SWIG_IsOK(res1)) {
22604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22605 }
22606 arg1 = reinterpret_cast< wxDC * >(argp1);
22607 {
22608 PyThreadState* __tstate = wxPyBeginAllowThreads();
22609 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22610 wxPyEndAllowThreads(__tstate);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 }
22613 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22614 return resultobj;
22615fail:
22616 return NULL;
22617}
22618
22619
22620SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22621 PyObject *resultobj = 0;
22622 wxDC *arg1 = (wxDC *) 0 ;
22623 int *arg2 = (int *) 0 ;
22624 int *arg3 = (int *) 0 ;
22625 void *argp1 = 0 ;
22626 int res1 = 0 ;
22627 int temp2 ;
22628 int res2 = SWIG_TMPOBJ ;
22629 int temp3 ;
22630 int res3 = SWIG_TMPOBJ ;
22631 PyObject *swig_obj[1] ;
22632
22633 arg2 = &temp2;
22634 arg3 = &temp3;
22635 if (!args) SWIG_fail;
22636 swig_obj[0] = args;
22637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22638 if (!SWIG_IsOK(res1)) {
22639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22640 }
22641 arg1 = reinterpret_cast< wxDC * >(argp1);
22642 {
22643 PyThreadState* __tstate = wxPyBeginAllowThreads();
22644 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22645 wxPyEndAllowThreads(__tstate);
22646 if (PyErr_Occurred()) SWIG_fail;
22647 }
22648 resultobj = SWIG_Py_Void();
22649 if (SWIG_IsTmpObj(res2)) {
22650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22651 } else {
22652 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22654 }
22655 if (SWIG_IsTmpObj(res3)) {
22656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22657 } else {
22658 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22660 }
22661 return resultobj;
22662fail:
22663 return NULL;
22664}
22665
22666
22667SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22668 PyObject *resultobj = 0;
22669 wxDC *arg1 = (wxDC *) 0 ;
22670 int arg2 ;
22671 int arg3 ;
22672 void *argp1 = 0 ;
22673 int res1 = 0 ;
22674 int val2 ;
22675 int ecode2 = 0 ;
22676 int val3 ;
22677 int ecode3 = 0 ;
22678 PyObject * obj0 = 0 ;
22679 PyObject * obj1 = 0 ;
22680 PyObject * obj2 = 0 ;
22681 char * kwnames[] = {
22682 (char *) "self",(char *) "x",(char *) "y", NULL
22683 };
22684
22685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22687 if (!SWIG_IsOK(res1)) {
22688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22689 }
22690 arg1 = reinterpret_cast< wxDC * >(argp1);
22691 ecode2 = SWIG_AsVal_int(obj1, &val2);
22692 if (!SWIG_IsOK(ecode2)) {
22693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22694 }
22695 arg2 = static_cast< int >(val2);
22696 ecode3 = SWIG_AsVal_int(obj2, &val3);
22697 if (!SWIG_IsOK(ecode3)) {
22698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22699 }
22700 arg3 = static_cast< int >(val3);
22701 {
22702 PyThreadState* __tstate = wxPyBeginAllowThreads();
22703 (arg1)->SetDeviceOrigin(arg2,arg3);
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 resultobj = SWIG_Py_Void();
22708 return resultobj;
22709fail:
22710 return NULL;
22711}
22712
22713
22714SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22715 PyObject *resultobj = 0;
22716 wxDC *arg1 = (wxDC *) 0 ;
22717 wxPoint *arg2 = 0 ;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 wxPoint temp2 ;
22721 PyObject * obj0 = 0 ;
22722 PyObject * obj1 = 0 ;
22723 char * kwnames[] = {
22724 (char *) "self",(char *) "point", NULL
22725 };
22726
22727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22729 if (!SWIG_IsOK(res1)) {
22730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22731 }
22732 arg1 = reinterpret_cast< wxDC * >(argp1);
22733 {
22734 arg2 = &temp2;
22735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22736 }
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 resultobj = SWIG_Py_Void();
22744 return resultobj;
22745fail:
22746 return NULL;
22747}
22748
22749
22750SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22751 PyObject *resultobj = 0;
22752 wxDC *arg1 = (wxDC *) 0 ;
22753 bool arg2 ;
22754 bool arg3 ;
22755 void *argp1 = 0 ;
22756 int res1 = 0 ;
22757 bool val2 ;
22758 int ecode2 = 0 ;
22759 bool val3 ;
22760 int ecode3 = 0 ;
22761 PyObject * obj0 = 0 ;
22762 PyObject * obj1 = 0 ;
22763 PyObject * obj2 = 0 ;
22764 char * kwnames[] = {
22765 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22766 };
22767
22768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22770 if (!SWIG_IsOK(res1)) {
22771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22772 }
22773 arg1 = reinterpret_cast< wxDC * >(argp1);
22774 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22775 if (!SWIG_IsOK(ecode2)) {
22776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22777 }
22778 arg2 = static_cast< bool >(val2);
22779 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22780 if (!SWIG_IsOK(ecode3)) {
22781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22782 }
22783 arg3 = static_cast< bool >(val3);
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 (arg1)->SetAxisOrientation(arg2,arg3);
22787 wxPyEndAllowThreads(__tstate);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 resultobj = SWIG_Py_Void();
22791 return resultobj;
22792fail:
22793 return NULL;
22794}
22795
22796
22797SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *resultobj = 0;
22799 wxDC *arg1 = (wxDC *) 0 ;
22800 int result;
22801 void *argp1 = 0 ;
22802 int res1 = 0 ;
22803 PyObject *swig_obj[1] ;
22804
22805 if (!args) SWIG_fail;
22806 swig_obj[0] = args;
22807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22808 if (!SWIG_IsOK(res1)) {
22809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22810 }
22811 arg1 = reinterpret_cast< wxDC * >(argp1);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_From_int(static_cast< int >(result));
22819 return resultobj;
22820fail:
22821 return NULL;
22822}
22823
22824
22825SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22826 PyObject *resultobj = 0;
22827 wxDC *arg1 = (wxDC *) 0 ;
22828 int arg2 ;
22829 void *argp1 = 0 ;
22830 int res1 = 0 ;
22831 int val2 ;
22832 int ecode2 = 0 ;
22833 PyObject * obj0 = 0 ;
22834 PyObject * obj1 = 0 ;
22835 char * kwnames[] = {
22836 (char *) "self",(char *) "function", NULL
22837 };
22838
22839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22841 if (!SWIG_IsOK(res1)) {
22842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22843 }
22844 arg1 = reinterpret_cast< wxDC * >(argp1);
22845 ecode2 = SWIG_AsVal_int(obj1, &val2);
22846 if (!SWIG_IsOK(ecode2)) {
22847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22848 }
22849 arg2 = static_cast< int >(val2);
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 (arg1)->SetLogicalFunction(arg2);
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 resultobj = SWIG_Py_Void();
22857 return resultobj;
22858fail:
22859 return NULL;
22860}
22861
22862
22863SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22864 PyObject *resultobj = 0;
22865 wxDC *arg1 = (wxDC *) 0 ;
22866 void *argp1 = 0 ;
22867 int res1 = 0 ;
22868 PyObject *swig_obj[1] ;
22869
22870 if (!args) SWIG_fail;
22871 swig_obj[0] = args;
22872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22873 if (!SWIG_IsOK(res1)) {
22874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22875 }
22876 arg1 = reinterpret_cast< wxDC * >(argp1);
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 (arg1)->ComputeScaleAndOrigin();
22880 wxPyEndAllowThreads(__tstate);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 }
22883 resultobj = SWIG_Py_Void();
22884 return resultobj;
22885fail:
22886 return NULL;
22887}
22888
22889
22890SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22891 PyObject *resultobj = 0;
22892 wxDC *arg1 = (wxDC *) 0 ;
22893 int arg2 ;
22894 int arg3 ;
22895 void *argp1 = 0 ;
22896 int res1 = 0 ;
22897 int val2 ;
22898 int ecode2 = 0 ;
22899 int val3 ;
22900 int ecode3 = 0 ;
22901 PyObject * obj0 = 0 ;
22902 PyObject * obj1 = 0 ;
22903 PyObject * obj2 = 0 ;
22904 char * kwnames[] = {
22905 (char *) "self",(char *) "x",(char *) "y", NULL
22906 };
22907
22908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22910 if (!SWIG_IsOK(res1)) {
22911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22912 }
22913 arg1 = reinterpret_cast< wxDC * >(argp1);
22914 ecode2 = SWIG_AsVal_int(obj1, &val2);
22915 if (!SWIG_IsOK(ecode2)) {
22916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22917 }
22918 arg2 = static_cast< int >(val2);
22919 ecode3 = SWIG_AsVal_int(obj2, &val3);
22920 if (!SWIG_IsOK(ecode3)) {
22921 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22922 }
22923 arg3 = static_cast< int >(val3);
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 (arg1)->CalcBoundingBox(arg2,arg3);
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 resultobj = SWIG_Py_Void();
22931 return resultobj;
22932fail:
22933 return NULL;
22934}
22935
22936
22937SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22938 PyObject *resultobj = 0;
22939 wxDC *arg1 = (wxDC *) 0 ;
22940 wxPoint *arg2 = 0 ;
22941 void *argp1 = 0 ;
22942 int res1 = 0 ;
22943 wxPoint temp2 ;
22944 PyObject * obj0 = 0 ;
22945 PyObject * obj1 = 0 ;
22946 char * kwnames[] = {
22947 (char *) "self",(char *) "point", NULL
22948 };
22949
22950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22952 if (!SWIG_IsOK(res1)) {
22953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22954 }
22955 arg1 = reinterpret_cast< wxDC * >(argp1);
22956 {
22957 arg2 = &temp2;
22958 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22959 }
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22963 wxPyEndAllowThreads(__tstate);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 resultobj = SWIG_Py_Void();
22967 return resultobj;
22968fail:
22969 return NULL;
22970}
22971
22972
22973SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxDC *arg1 = (wxDC *) 0 ;
22976 void *argp1 = 0 ;
22977 int res1 = 0 ;
22978 PyObject *swig_obj[1] ;
22979
22980 if (!args) SWIG_fail;
22981 swig_obj[0] = args;
22982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22983 if (!SWIG_IsOK(res1)) {
22984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22985 }
22986 arg1 = reinterpret_cast< wxDC * >(argp1);
22987 {
22988 PyThreadState* __tstate = wxPyBeginAllowThreads();
22989 (arg1)->ResetBoundingBox();
22990 wxPyEndAllowThreads(__tstate);
22991 if (PyErr_Occurred()) SWIG_fail;
22992 }
22993 resultobj = SWIG_Py_Void();
22994 return resultobj;
22995fail:
22996 return NULL;
22997}
22998
22999
23000SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23001 PyObject *resultobj = 0;
23002 wxDC *arg1 = (wxDC *) 0 ;
23003 int result;
23004 void *argp1 = 0 ;
23005 int res1 = 0 ;
23006 PyObject *swig_obj[1] ;
23007
23008 if (!args) SWIG_fail;
23009 swig_obj[0] = args;
23010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23011 if (!SWIG_IsOK(res1)) {
23012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23013 }
23014 arg1 = reinterpret_cast< wxDC * >(argp1);
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 result = (int)((wxDC const *)arg1)->MinX();
23018 wxPyEndAllowThreads(__tstate);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 }
23021 resultobj = SWIG_From_int(static_cast< int >(result));
23022 return resultobj;
23023fail:
23024 return NULL;
23025}
23026
23027
23028SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23029 PyObject *resultobj = 0;
23030 wxDC *arg1 = (wxDC *) 0 ;
23031 int result;
23032 void *argp1 = 0 ;
23033 int res1 = 0 ;
23034 PyObject *swig_obj[1] ;
23035
23036 if (!args) SWIG_fail;
23037 swig_obj[0] = args;
23038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23039 if (!SWIG_IsOK(res1)) {
23040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23041 }
23042 arg1 = reinterpret_cast< wxDC * >(argp1);
23043 {
23044 PyThreadState* __tstate = wxPyBeginAllowThreads();
23045 result = (int)((wxDC const *)arg1)->MaxX();
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 resultobj = SWIG_From_int(static_cast< int >(result));
23050 return resultobj;
23051fail:
23052 return NULL;
23053}
23054
23055
23056SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23057 PyObject *resultobj = 0;
23058 wxDC *arg1 = (wxDC *) 0 ;
23059 int result;
23060 void *argp1 = 0 ;
23061 int res1 = 0 ;
23062 PyObject *swig_obj[1] ;
23063
23064 if (!args) SWIG_fail;
23065 swig_obj[0] = args;
23066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23069 }
23070 arg1 = reinterpret_cast< wxDC * >(argp1);
23071 {
23072 PyThreadState* __tstate = wxPyBeginAllowThreads();
23073 result = (int)((wxDC const *)arg1)->MinY();
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 resultobj = SWIG_From_int(static_cast< int >(result));
23078 return resultobj;
23079fail:
23080 return NULL;
23081}
23082
23083
23084SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23085 PyObject *resultobj = 0;
23086 wxDC *arg1 = (wxDC *) 0 ;
23087 int result;
23088 void *argp1 = 0 ;
23089 int res1 = 0 ;
23090 PyObject *swig_obj[1] ;
23091
23092 if (!args) SWIG_fail;
23093 swig_obj[0] = args;
23094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23095 if (!SWIG_IsOK(res1)) {
23096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23097 }
23098 arg1 = reinterpret_cast< wxDC * >(argp1);
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = (int)((wxDC const *)arg1)->MaxY();
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = SWIG_From_int(static_cast< int >(result));
23106 return resultobj;
23107fail:
23108 return NULL;
23109}
23110
23111
23112SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23113 PyObject *resultobj = 0;
23114 wxDC *arg1 = (wxDC *) 0 ;
23115 int *arg2 = (int *) 0 ;
23116 int *arg3 = (int *) 0 ;
23117 int *arg4 = (int *) 0 ;
23118 int *arg5 = (int *) 0 ;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 int temp2 ;
23122 int res2 = SWIG_TMPOBJ ;
23123 int temp3 ;
23124 int res3 = SWIG_TMPOBJ ;
23125 int temp4 ;
23126 int res4 = SWIG_TMPOBJ ;
23127 int temp5 ;
23128 int res5 = SWIG_TMPOBJ ;
23129 PyObject *swig_obj[1] ;
23130
23131 arg2 = &temp2;
23132 arg3 = &temp3;
23133 arg4 = &temp4;
23134 arg5 = &temp5;
23135 if (!args) SWIG_fail;
23136 swig_obj[0] = args;
23137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23138 if (!SWIG_IsOK(res1)) {
23139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23140 }
23141 arg1 = reinterpret_cast< wxDC * >(argp1);
23142 {
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_Py_Void();
23149 if (SWIG_IsTmpObj(res2)) {
23150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23151 } else {
23152 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23154 }
23155 if (SWIG_IsTmpObj(res3)) {
23156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23157 } else {
23158 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23160 }
23161 if (SWIG_IsTmpObj(res4)) {
23162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23163 } else {
23164 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23166 }
23167 if (SWIG_IsTmpObj(res5)) {
23168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23169 } else {
23170 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23172 }
23173 return resultobj;
23174fail:
23175 return NULL;
23176}
23177
23178
b39fe951
RD
23179SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23180 PyObject *resultobj = 0;
23181 wxDC *arg1 = (wxDC *) 0 ;
23182 wxLayoutDirection result;
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_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23192 }
23193 arg1 = reinterpret_cast< wxDC * >(argp1);
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 resultobj = SWIG_From_int(static_cast< int >(result));
23201 return resultobj;
23202fail:
23203 return NULL;
23204}
23205
23206
23207SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23208 PyObject *resultobj = 0;
23209 wxDC *arg1 = (wxDC *) 0 ;
23210 wxLayoutDirection arg2 ;
23211 void *argp1 = 0 ;
23212 int res1 = 0 ;
23213 int val2 ;
23214 int ecode2 = 0 ;
23215 PyObject * obj0 = 0 ;
23216 PyObject * obj1 = 0 ;
23217 char * kwnames[] = {
23218 (char *) "self",(char *) "dir", NULL
23219 };
23220
23221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23223 if (!SWIG_IsOK(res1)) {
23224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23225 }
23226 arg1 = reinterpret_cast< wxDC * >(argp1);
23227 ecode2 = SWIG_AsVal_int(obj1, &val2);
23228 if (!SWIG_IsOK(ecode2)) {
23229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23230 }
23231 arg2 = static_cast< wxLayoutDirection >(val2);
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 (arg1)->SetLayoutDirection(arg2);
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 resultobj = SWIG_Py_Void();
23239 return resultobj;
23240fail:
23241 return NULL;
23242}
23243
23244
1bd55598
RD
23245SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj = 0;
23247 wxDC *arg1 = (wxDC *) 0 ;
23248 PyObject *arg2 = (PyObject *) 0 ;
23249 PyObject *arg3 = (PyObject *) 0 ;
23250 PyObject *arg4 = (PyObject *) 0 ;
23251 PyObject *result = 0 ;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 PyObject * obj2 = 0 ;
23257 PyObject * obj3 = 0 ;
23258 char * kwnames[] = {
23259 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23260 };
23261
23262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23264 if (!SWIG_IsOK(res1)) {
23265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23266 }
23267 arg1 = reinterpret_cast< wxDC * >(argp1);
23268 arg2 = obj1;
23269 arg3 = obj2;
23270 arg4 = obj3;
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 resultobj = result;
23278 return resultobj;
23279fail:
23280 return NULL;
23281}
23282
23283
23284SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj = 0;
23286 wxDC *arg1 = (wxDC *) 0 ;
23287 PyObject *arg2 = (PyObject *) 0 ;
23288 PyObject *arg3 = (PyObject *) 0 ;
23289 PyObject *arg4 = (PyObject *) 0 ;
23290 PyObject *result = 0 ;
23291 void *argp1 = 0 ;
23292 int res1 = 0 ;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 PyObject * obj2 = 0 ;
23296 PyObject * obj3 = 0 ;
23297 char * kwnames[] = {
23298 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23299 };
23300
23301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23303 if (!SWIG_IsOK(res1)) {
23304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23305 }
23306 arg1 = reinterpret_cast< wxDC * >(argp1);
23307 arg2 = obj1;
23308 arg3 = obj2;
23309 arg4 = obj3;
23310 {
23311 PyThreadState* __tstate = wxPyBeginAllowThreads();
23312 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 resultobj = result;
23317 return resultobj;
23318fail:
23319 return NULL;
23320}
23321
23322
23323SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23324 PyObject *resultobj = 0;
23325 wxDC *arg1 = (wxDC *) 0 ;
23326 PyObject *arg2 = (PyObject *) 0 ;
23327 PyObject *arg3 = (PyObject *) 0 ;
23328 PyObject *arg4 = (PyObject *) 0 ;
23329 PyObject *result = 0 ;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 PyObject * obj0 = 0 ;
23333 PyObject * obj1 = 0 ;
23334 PyObject * obj2 = 0 ;
23335 PyObject * obj3 = 0 ;
23336 char * kwnames[] = {
23337 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23338 };
23339
23340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23342 if (!SWIG_IsOK(res1)) {
23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23344 }
23345 arg1 = reinterpret_cast< wxDC * >(argp1);
23346 arg2 = obj1;
23347 arg3 = obj2;
23348 arg4 = obj3;
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = result;
23356 return resultobj;
23357fail:
23358 return NULL;
23359}
23360
23361
23362SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23363 PyObject *resultobj = 0;
23364 wxDC *arg1 = (wxDC *) 0 ;
23365 PyObject *arg2 = (PyObject *) 0 ;
23366 PyObject *arg3 = (PyObject *) 0 ;
23367 PyObject *arg4 = (PyObject *) 0 ;
23368 PyObject *result = 0 ;
23369 void *argp1 = 0 ;
23370 int res1 = 0 ;
23371 PyObject * obj0 = 0 ;
23372 PyObject * obj1 = 0 ;
23373 PyObject * obj2 = 0 ;
23374 PyObject * obj3 = 0 ;
23375 char * kwnames[] = {
23376 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23377 };
23378
23379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23381 if (!SWIG_IsOK(res1)) {
23382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23383 }
23384 arg1 = reinterpret_cast< wxDC * >(argp1);
23385 arg2 = obj1;
23386 arg3 = obj2;
23387 arg4 = obj3;
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = result;
23395 return resultobj;
23396fail:
23397 return NULL;
23398}
23399
23400
23401SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj = 0;
23403 wxDC *arg1 = (wxDC *) 0 ;
23404 PyObject *arg2 = (PyObject *) 0 ;
23405 PyObject *arg3 = (PyObject *) 0 ;
23406 PyObject *arg4 = (PyObject *) 0 ;
23407 PyObject *result = 0 ;
23408 void *argp1 = 0 ;
23409 int res1 = 0 ;
23410 PyObject * obj0 = 0 ;
23411 PyObject * obj1 = 0 ;
23412 PyObject * obj2 = 0 ;
23413 PyObject * obj3 = 0 ;
23414 char * kwnames[] = {
23415 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23416 };
23417
23418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23420 if (!SWIG_IsOK(res1)) {
23421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23422 }
23423 arg1 = reinterpret_cast< wxDC * >(argp1);
23424 arg2 = obj1;
23425 arg3 = obj2;
23426 arg4 = obj3;
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = result;
23434 return resultobj;
23435fail:
23436 return NULL;
23437}
23438
23439
23440SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj = 0;
23442 wxDC *arg1 = (wxDC *) 0 ;
23443 PyObject *arg2 = (PyObject *) 0 ;
23444 PyObject *arg3 = (PyObject *) 0 ;
23445 PyObject *arg4 = (PyObject *) 0 ;
23446 PyObject *arg5 = (PyObject *) 0 ;
23447 PyObject *result = 0 ;
23448 void *argp1 = 0 ;
23449 int res1 = 0 ;
23450 PyObject * obj0 = 0 ;
23451 PyObject * obj1 = 0 ;
23452 PyObject * obj2 = 0 ;
23453 PyObject * obj3 = 0 ;
23454 PyObject * obj4 = 0 ;
23455 char * kwnames[] = {
23456 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23457 };
23458
23459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23461 if (!SWIG_IsOK(res1)) {
23462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23463 }
23464 arg1 = reinterpret_cast< wxDC * >(argp1);
23465 arg2 = obj1;
23466 arg3 = obj2;
23467 arg4 = obj3;
23468 arg5 = obj4;
23469 {
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 resultobj = result;
23476 return resultobj;
23477fail:
23478 return NULL;
23479}
23480
23481
23482SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23483 PyObject *obj;
23484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23485 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23486 return SWIG_Py_Void();
23487}
23488
70d7cb34
RD
23489SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23490 PyObject *resultobj = 0;
23491 wxDC *arg1 = 0 ;
23492 wxColour *arg2 = 0 ;
23493 wxDCTextColourChanger *result = 0 ;
23494 void *argp1 = 0 ;
23495 int res1 = 0 ;
23496 wxColour temp2 ;
23497 PyObject * obj0 = 0 ;
23498 PyObject * obj1 = 0 ;
23499 char * kwnames[] = {
23500 (char *) "dc",(char *) "col", NULL
23501 };
23502
23503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23504 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23505 if (!SWIG_IsOK(res1)) {
23506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23507 }
23508 if (!argp1) {
23509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23510 }
23511 arg1 = reinterpret_cast< wxDC * >(argp1);
23512 {
23513 arg2 = &temp2;
23514 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23515 }
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23523 return resultobj;
23524fail:
23525 return NULL;
23526}
23527
23528
23529SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23530 PyObject *resultobj = 0;
23531 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23532 void *argp1 = 0 ;
23533 int res1 = 0 ;
23534 PyObject *swig_obj[1] ;
23535
23536 if (!args) SWIG_fail;
23537 swig_obj[0] = args;
23538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23539 if (!SWIG_IsOK(res1)) {
23540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23541 }
23542 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23543 {
23544 PyThreadState* __tstate = wxPyBeginAllowThreads();
23545 delete arg1;
23546
23547 wxPyEndAllowThreads(__tstate);
23548 if (PyErr_Occurred()) SWIG_fail;
23549 }
23550 resultobj = SWIG_Py_Void();
23551 return resultobj;
23552fail:
23553 return NULL;
23554}
23555
23556
23557SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23558 PyObject *obj;
23559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23560 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23561 return SWIG_Py_Void();
23562}
23563
23564SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23565 return SWIG_Python_InitShadowInstance(args);
23566}
23567
23568SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23569 PyObject *resultobj = 0;
23570 wxDC *arg1 = 0 ;
23571 wxPen *arg2 = 0 ;
23572 wxDCPenChanger *result = 0 ;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 void *argp2 = 0 ;
23576 int res2 = 0 ;
23577 PyObject * obj0 = 0 ;
23578 PyObject * obj1 = 0 ;
23579 char * kwnames[] = {
23580 (char *) "dc",(char *) "pen", NULL
23581 };
23582
23583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23584 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23585 if (!SWIG_IsOK(res1)) {
23586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23587 }
23588 if (!argp1) {
23589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23590 }
23591 arg1 = reinterpret_cast< wxDC * >(argp1);
23592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23593 if (!SWIG_IsOK(res2)) {
23594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23595 }
23596 if (!argp2) {
23597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23598 }
23599 arg2 = reinterpret_cast< wxPen * >(argp2);
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23607 return resultobj;
23608fail:
23609 return NULL;
23610}
23611
23612
23613SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23614 PyObject *resultobj = 0;
23615 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23616 void *argp1 = 0 ;
23617 int res1 = 0 ;
23618 PyObject *swig_obj[1] ;
23619
23620 if (!args) SWIG_fail;
23621 swig_obj[0] = args;
23622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23623 if (!SWIG_IsOK(res1)) {
23624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23625 }
23626 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23627 {
23628 PyThreadState* __tstate = wxPyBeginAllowThreads();
23629 delete arg1;
23630
23631 wxPyEndAllowThreads(__tstate);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 }
23634 resultobj = SWIG_Py_Void();
23635 return resultobj;
23636fail:
23637 return NULL;
23638}
23639
23640
23641SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23642 PyObject *obj;
23643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23644 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23645 return SWIG_Py_Void();
23646}
23647
23648SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23649 return SWIG_Python_InitShadowInstance(args);
23650}
23651
23652SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj = 0;
23654 wxDC *arg1 = 0 ;
23655 wxBrush *arg2 = 0 ;
23656 wxDCBrushChanger *result = 0 ;
23657 void *argp1 = 0 ;
23658 int res1 = 0 ;
23659 void *argp2 = 0 ;
23660 int res2 = 0 ;
23661 PyObject * obj0 = 0 ;
23662 PyObject * obj1 = 0 ;
23663 char * kwnames[] = {
23664 (char *) "dc",(char *) "brush", NULL
23665 };
23666
23667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23668 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23669 if (!SWIG_IsOK(res1)) {
23670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23671 }
23672 if (!argp1) {
23673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23674 }
23675 arg1 = reinterpret_cast< wxDC * >(argp1);
23676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23677 if (!SWIG_IsOK(res2)) {
23678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23679 }
23680 if (!argp2) {
23681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23682 }
23683 arg2 = reinterpret_cast< wxBrush * >(argp2);
23684 {
23685 PyThreadState* __tstate = wxPyBeginAllowThreads();
23686 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23687 wxPyEndAllowThreads(__tstate);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 }
23690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23691 return resultobj;
23692fail:
23693 return NULL;
23694}
23695
23696
23697SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23698 PyObject *resultobj = 0;
23699 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23700 void *argp1 = 0 ;
23701 int res1 = 0 ;
23702 PyObject *swig_obj[1] ;
23703
23704 if (!args) SWIG_fail;
23705 swig_obj[0] = args;
23706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23707 if (!SWIG_IsOK(res1)) {
23708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23709 }
23710 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23711 {
23712 PyThreadState* __tstate = wxPyBeginAllowThreads();
23713 delete arg1;
23714
23715 wxPyEndAllowThreads(__tstate);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 }
23718 resultobj = SWIG_Py_Void();
23719 return resultobj;
23720fail:
23721 return NULL;
23722}
23723
23724
23725SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23726 PyObject *obj;
23727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23728 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23729 return SWIG_Py_Void();
23730}
23731
23732SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23733 return SWIG_Python_InitShadowInstance(args);
23734}
23735
23736SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23737 PyObject *resultobj = 0;
23738 wxDC *arg1 = 0 ;
23739 wxRegion *arg2 = 0 ;
23740 wxDCClipper *result = 0 ;
23741 void *argp1 = 0 ;
23742 int res1 = 0 ;
23743 void *argp2 = 0 ;
23744 int res2 = 0 ;
23745
23746 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23748 if (!SWIG_IsOK(res1)) {
23749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23750 }
23751 if (!argp1) {
23752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23753 }
23754 arg1 = reinterpret_cast< wxDC * >(argp1);
23755 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23756 if (!SWIG_IsOK(res2)) {
23757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23758 }
23759 if (!argp2) {
23760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23761 }
23762 arg2 = reinterpret_cast< wxRegion * >(argp2);
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23770 return resultobj;
23771fail:
23772 return NULL;
23773}
23774
23775
23776SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23777 PyObject *resultobj = 0;
23778 wxDC *arg1 = 0 ;
23779 wxRect *arg2 = 0 ;
23780 wxDCClipper *result = 0 ;
23781 void *argp1 = 0 ;
23782 int res1 = 0 ;
23783 wxRect temp2 ;
23784
23785 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23787 if (!SWIG_IsOK(res1)) {
23788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23789 }
23790 if (!argp1) {
23791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23792 }
23793 arg1 = reinterpret_cast< wxDC * >(argp1);
23794 {
23795 arg2 = &temp2;
23796 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23797 }
23798 {
23799 PyThreadState* __tstate = wxPyBeginAllowThreads();
23800 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23801 wxPyEndAllowThreads(__tstate);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 }
23804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23805 return resultobj;
23806fail:
23807 return NULL;
23808}
23809
23810
23811SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23812 PyObject *resultobj = 0;
23813 wxDC *arg1 = 0 ;
23814 int arg2 ;
23815 int arg3 ;
23816 int arg4 ;
23817 int arg5 ;
23818 wxDCClipper *result = 0 ;
23819 void *argp1 = 0 ;
23820 int res1 = 0 ;
23821 int val2 ;
23822 int ecode2 = 0 ;
23823 int val3 ;
23824 int ecode3 = 0 ;
23825 int val4 ;
23826 int ecode4 = 0 ;
23827 int val5 ;
23828 int ecode5 = 0 ;
23829
23830 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23832 if (!SWIG_IsOK(res1)) {
23833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23834 }
23835 if (!argp1) {
23836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23837 }
23838 arg1 = reinterpret_cast< wxDC * >(argp1);
23839 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23840 if (!SWIG_IsOK(ecode2)) {
23841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23842 }
23843 arg2 = static_cast< int >(val2);
23844 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23845 if (!SWIG_IsOK(ecode3)) {
23846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23847 }
23848 arg3 = static_cast< int >(val3);
23849 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23850 if (!SWIG_IsOK(ecode4)) {
23851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23852 }
23853 arg4 = static_cast< int >(val4);
23854 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23855 if (!SWIG_IsOK(ecode5)) {
23856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23857 }
23858 arg5 = static_cast< int >(val5);
23859 {
23860 PyThreadState* __tstate = wxPyBeginAllowThreads();
23861 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23862 wxPyEndAllowThreads(__tstate);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23866 return resultobj;
23867fail:
23868 return NULL;
23869}
23870
23871
23872SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23873 int argc;
23874 PyObject *argv[6];
23875
23876 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23877 --argc;
23878 if (argc == 2) {
23879 int _v = 0;
23880 {
23881 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23882 _v = SWIG_CheckState(res);
23883 }
23884 if (!_v) goto check_1;
23885 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23886 }
23887check_1:
23888
23889 if (argc == 2) {
23890 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23891 }
23892 if (argc == 5) {
23893 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23894 }
23895
23896fail:
23897 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23898 return NULL;
23899}
23900
23901
23902SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23903 PyObject *resultobj = 0;
23904 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23905 void *argp1 = 0 ;
23906 int res1 = 0 ;
23907 PyObject *swig_obj[1] ;
23908
23909 if (!args) SWIG_fail;
23910 swig_obj[0] = args;
23911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23912 if (!SWIG_IsOK(res1)) {
23913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23914 }
23915 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 delete arg1;
23919
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 resultobj = SWIG_Py_Void();
23924 return resultobj;
23925fail:
23926 return NULL;
23927}
23928
23929
23930SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23931 PyObject *obj;
23932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23933 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23934 return SWIG_Py_Void();
23935}
23936
23937SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23938 return SWIG_Python_InitShadowInstance(args);
23939}
23940
24f6c4e8
RD
23941SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23942 PyObject *resultobj = 0;
23943 wxScreenDC *result = 0 ;
23944
23945 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23946 {
23947 if (!wxPyCheckForApp()) SWIG_fail;
23948 PyThreadState* __tstate = wxPyBeginAllowThreads();
23949 result = (wxScreenDC *)new wxScreenDC();
23950 wxPyEndAllowThreads(__tstate);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 }
23953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23954 return resultobj;
23955fail:
23956 return NULL;
23957}
23958
23959
23960SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23961 PyObject *resultobj = 0;
23962 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23963 wxWindow *arg2 = (wxWindow *) 0 ;
23964 bool result;
23965 void *argp1 = 0 ;
23966 int res1 = 0 ;
23967 void *argp2 = 0 ;
23968 int res2 = 0 ;
23969 PyObject * obj0 = 0 ;
23970 PyObject * obj1 = 0 ;
23971 char * kwnames[] = {
23972 (char *) "self",(char *) "window", NULL
23973 };
23974
23975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23977 if (!SWIG_IsOK(res1)) {
23978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23979 }
23980 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23981 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23982 if (!SWIG_IsOK(res2)) {
23983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23984 }
23985 arg2 = reinterpret_cast< wxWindow * >(argp2);
23986 {
23987 PyThreadState* __tstate = wxPyBeginAllowThreads();
23988 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23989 wxPyEndAllowThreads(__tstate);
23990 if (PyErr_Occurred()) SWIG_fail;
23991 }
23992 {
23993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23994 }
23995 return resultobj;
23996fail:
23997 return NULL;
23998}
23999
24000
24001SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24002 PyObject *resultobj = 0;
24003 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24004 wxRect *arg2 = (wxRect *) NULL ;
24005 bool result;
24006 void *argp1 = 0 ;
24007 int res1 = 0 ;
24008 void *argp2 = 0 ;
24009 int res2 = 0 ;
24010 PyObject * obj0 = 0 ;
24011 PyObject * obj1 = 0 ;
24012 char * kwnames[] = {
24013 (char *) "self",(char *) "rect", NULL
24014 };
24015
24016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24018 if (!SWIG_IsOK(res1)) {
24019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24020 }
24021 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24022 if (obj1) {
24023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24024 if (!SWIG_IsOK(res2)) {
24025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24026 }
24027 arg2 = reinterpret_cast< wxRect * >(argp2);
24028 }
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 {
24036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24037 }
24038 return resultobj;
24039fail:
24040 return NULL;
24041}
24042
24043
24044SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24045 PyObject *resultobj = 0;
24046 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24047 bool result;
24048 void *argp1 = 0 ;
24049 int res1 = 0 ;
24050 PyObject *swig_obj[1] ;
24051
24052 if (!args) SWIG_fail;
24053 swig_obj[0] = args;
24054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24055 if (!SWIG_IsOK(res1)) {
24056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24057 }
24058 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24059 {
24060 PyThreadState* __tstate = wxPyBeginAllowThreads();
24061 result = (bool)(arg1)->EndDrawingOnTop();
24062 wxPyEndAllowThreads(__tstate);
24063 if (PyErr_Occurred()) SWIG_fail;
24064 }
24065 {
24066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24067 }
24068 return resultobj;
24069fail:
24070 return NULL;
24071}
24072
24073
24074SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24075 PyObject *obj;
24076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24077 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24078 return SWIG_Py_Void();
24079}
24080
24081SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24082 return SWIG_Python_InitShadowInstance(args);
24083}
24084
24085SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24086 PyObject *resultobj = 0;
24087 wxWindow *arg1 = (wxWindow *) 0 ;
24088 wxWindowDC *result = 0 ;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 char * kwnames[] = {
24093 (char *) "win", NULL
24094 };
24095
24096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24098 if (!SWIG_IsOK(res1)) {
24099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24100 }
24101 arg1 = reinterpret_cast< wxWindow * >(argp1);
24102 {
24103 if (!wxPyCheckForApp()) SWIG_fail;
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 result = (wxWindowDC *)new wxWindowDC(arg1);
24106 wxPyEndAllowThreads(__tstate);
24107 if (PyErr_Occurred()) SWIG_fail;
24108 }
24109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24110 return resultobj;
24111fail:
24112 return NULL;
24113}
24114
24115
24116SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24117 PyObject *obj;
24118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24119 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24120 return SWIG_Py_Void();
24121}
24122
24123SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24124 return SWIG_Python_InitShadowInstance(args);
24125}
24126
24127SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj = 0;
24129 wxWindow *arg1 = (wxWindow *) 0 ;
24130 wxClientDC *result = 0 ;
24131 void *argp1 = 0 ;
24132 int res1 = 0 ;
24133 PyObject * obj0 = 0 ;
24134 char * kwnames[] = {
24135 (char *) "win", NULL
24136 };
24137
24138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24142 }
24143 arg1 = reinterpret_cast< wxWindow * >(argp1);
24144 {
24145 if (!wxPyCheckForApp()) SWIG_fail;
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (wxClientDC *)new wxClientDC(arg1);
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24152 return resultobj;
24153fail:
24154 return NULL;
24155}
24156
24157
24158SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24159 PyObject *obj;
24160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24161 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24162 return SWIG_Py_Void();
24163}
24164
24165SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24166 return SWIG_Python_InitShadowInstance(args);
24167}
24168
24169SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj = 0;
24171 wxWindow *arg1 = (wxWindow *) 0 ;
24172 wxPaintDC *result = 0 ;
24173 void *argp1 = 0 ;
24174 int res1 = 0 ;
24175 PyObject * obj0 = 0 ;
24176 char * kwnames[] = {
24177 (char *) "win", NULL
24178 };
24179
24180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24182 if (!SWIG_IsOK(res1)) {
24183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24184 }
24185 arg1 = reinterpret_cast< wxWindow * >(argp1);
24186 {
24187 if (!wxPyCheckForApp()) SWIG_fail;
24188 PyThreadState* __tstate = wxPyBeginAllowThreads();
24189 result = (wxPaintDC *)new wxPaintDC(arg1);
24190 wxPyEndAllowThreads(__tstate);
24191 if (PyErr_Occurred()) SWIG_fail;
24192 }
24193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24194 return resultobj;
24195fail:
24196 return NULL;
24197}
24198
24199
24200SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24201 PyObject *obj;
24202 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24203 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24204 return SWIG_Py_Void();
24205}
24206
24207SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24208 return SWIG_Python_InitShadowInstance(args);
24209}
24210
26c4d26f
RD
24211SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24212 PyObject *resultobj = 0;
24213 wxBitmap &arg1_defvalue = wxNullBitmap ;
24214 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24215 wxMemoryDC *result = 0 ;
24216 void *argp1 = 0 ;
24217 int res1 = 0 ;
24218 PyObject * obj0 = 0 ;
24219 char * kwnames[] = {
24220 (char *) "bitmap", NULL
24221 };
24222
24223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24224 if (obj0) {
24225 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24226 if (!SWIG_IsOK(res1)) {
24227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24228 }
24229 if (!argp1) {
24230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24231 }
24232 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24233 }
24234 {
24235 if (!wxPyCheckForApp()) SWIG_fail;
24236 PyThreadState* __tstate = wxPyBeginAllowThreads();
24237 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24238 wxPyEndAllowThreads(__tstate);
24239 if (PyErr_Occurred()) SWIG_fail;
24240 }
24241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24242 return resultobj;
24243fail:
24244 return NULL;
24245}
24246
24247
24248SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24249 PyObject *resultobj = 0;
24250 wxDC *arg1 = (wxDC *) 0 ;
24251 wxMemoryDC *result = 0 ;
24252 void *argp1 = 0 ;
24253 int res1 = 0 ;
24254 PyObject * obj0 = 0 ;
24255 char * kwnames[] = {
24256 (char *) "oldDC", NULL
24257 };
24258
24259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24263 }
24264 arg1 = reinterpret_cast< wxDC * >(argp1);
24265 {
24266 if (!wxPyCheckForApp()) SWIG_fail;
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24273 return resultobj;
24274fail:
24275 return NULL;
24276}
24277
24278
24279SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24280 PyObject *resultobj = 0;
24281 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24282 wxBitmap *arg2 = 0 ;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 void *argp2 = 0 ;
24286 int res2 = 0 ;
24287 PyObject * obj0 = 0 ;
24288 PyObject * obj1 = 0 ;
24289 char * kwnames[] = {
24290 (char *) "self",(char *) "bitmap", NULL
24291 };
24292
24293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24295 if (!SWIG_IsOK(res1)) {
24296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24297 }
24298 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24300 if (!SWIG_IsOK(res2)) {
24301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24302 }
24303 if (!argp2) {
24304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24305 }
24306 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 (arg1)->SelectObject(*arg2);
24310 wxPyEndAllowThreads(__tstate);
24311 if (PyErr_Occurred()) SWIG_fail;
24312 }
24313 resultobj = SWIG_Py_Void();
24314 return resultobj;
24315fail:
24316 return NULL;
24317}
24318
24319
24320SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24321 PyObject *resultobj = 0;
24322 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24323 wxBitmap *arg2 = 0 ;
24324 void *argp1 = 0 ;
24325 int res1 = 0 ;
24326 void *argp2 = 0 ;
24327 int res2 = 0 ;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 char * kwnames[] = {
24331 (char *) "self",(char *) "bmp", NULL
24332 };
24333
24334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24336 if (!SWIG_IsOK(res1)) {
24337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24338 }
24339 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24341 if (!SWIG_IsOK(res2)) {
24342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24343 }
24344 if (!argp2) {
24345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24346 }
24347 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24351 wxPyEndAllowThreads(__tstate);
24352 if (PyErr_Occurred()) SWIG_fail;
24353 }
24354 resultobj = SWIG_Py_Void();
24355 return resultobj;
24356fail:
24357 return NULL;
24358}
24359
24360
24361SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24362 PyObject *obj;
24363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24364 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24365 return SWIG_Py_Void();
24366}
24367
24368SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24369 return SWIG_Python_InitShadowInstance(args);
24370}
24371
1bd55598
RD
24372SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24373 PyObject *resultobj = 0;
24374 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24375 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24376 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24377 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24378 wxBufferedDC *result = 0 ;
24379 void *argp1 = 0 ;
24380 int res1 = 0 ;
24381 void *argp2 = 0 ;
24382 int res2 = 0 ;
24383 int val3 ;
24384 int ecode3 = 0 ;
24385
24386 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24388 if (!SWIG_IsOK(res1)) {
24389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24390 }
24391 arg1 = reinterpret_cast< wxDC * >(argp1);
24392 if (swig_obj[1]) {
b6df5cf9 24393 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24394 if (!SWIG_IsOK(res2)) {
b6df5cf9 24395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24396 }
1bd55598 24397 if (!argp2) {
b6df5cf9 24398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24399 }
1bd55598
RD
24400 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24401 }
24402 if (swig_obj[2]) {
24403 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24404 if (!SWIG_IsOK(ecode3)) {
24405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24406 }
24407 arg3 = static_cast< int >(val3);
24408 }
24409 {
24410 if (!wxPyCheckForApp()) SWIG_fail;
24411 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24412 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24413 wxPyEndAllowThreads(__tstate);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 }
24416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24417 return resultobj;
24418fail:
24419 return NULL;
24420}
24421
24422
24423SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24424 PyObject *resultobj = 0;
24425 wxDC *arg1 = (wxDC *) 0 ;
24426 wxSize *arg2 = 0 ;
24427 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24428 wxBufferedDC *result = 0 ;
24429 void *argp1 = 0 ;
24430 int res1 = 0 ;
24431 wxSize temp2 ;
24432 int val3 ;
24433 int ecode3 = 0 ;
24434
24435 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24437 if (!SWIG_IsOK(res1)) {
24438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24439 }
24440 arg1 = reinterpret_cast< wxDC * >(argp1);
24441 {
24442 arg2 = &temp2;
24443 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24444 }
24445 if (swig_obj[2]) {
24446 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24447 if (!SWIG_IsOK(ecode3)) {
24448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24449 }
24450 arg3 = static_cast< int >(val3);
24451 }
24452 {
24453 if (!wxPyCheckForApp()) SWIG_fail;
24454 PyThreadState* __tstate = wxPyBeginAllowThreads();
24455 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24456 wxPyEndAllowThreads(__tstate);
24457 if (PyErr_Occurred()) SWIG_fail;
24458 }
24459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24460 return resultobj;
24461fail:
24462 return NULL;
24463}
24464
24465
24466SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24467 int argc;
8e99bda9 24468 PyObject *argv[4];
1bd55598 24469
8e99bda9 24470 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24471 --argc;
24472 if ((argc >= 1) && (argc <= 3)) {
24473 int _v = 0;
24474 if (argc > 1) {
24475 {
b6df5cf9
RD
24476 void *vptr = 0;
24477 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24478 _v = SWIG_CheckState(res);
24479 }
24480 if (!_v) goto check_1;
36ed4f51 24481 }
1bd55598
RD
24482 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24483 }
24484check_1:
24485
24486 if ((argc >= 2) && (argc <= 3)) {
24487 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24488 }
24489
24490fail:
24491 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24492 return NULL;
24493}
24494
24495
24496SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24497 PyObject *resultobj = 0;
24498 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 PyObject *swig_obj[1] ;
24502
24503 if (!args) SWIG_fail;
24504 swig_obj[0] = args;
24505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24506 if (!SWIG_IsOK(res1)) {
24507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24508 }
24509 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24510 {
24511 PyThreadState* __tstate = wxPyBeginAllowThreads();
24512 delete arg1;
24513
24514 wxPyEndAllowThreads(__tstate);
24515 if (PyErr_Occurred()) SWIG_fail;
24516 }
24517 resultobj = SWIG_Py_Void();
24518 return resultobj;
24519fail:
24520 return NULL;
24521}
24522
24523
24524SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24525 PyObject *resultobj = 0;
24526 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24527 void *argp1 = 0 ;
24528 int res1 = 0 ;
24529 PyObject *swig_obj[1] ;
24530
24531 if (!args) SWIG_fail;
24532 swig_obj[0] = args;
24533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24534 if (!SWIG_IsOK(res1)) {
24535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24536 }
24537 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 (arg1)->UnMask();
24541 wxPyEndAllowThreads(__tstate);
24542 if (PyErr_Occurred()) SWIG_fail;
24543 }
24544 resultobj = SWIG_Py_Void();
24545 return resultobj;
24546fail:
24547 return NULL;
24548}
24549
24550
b6df5cf9
RD
24551SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj = 0;
24553 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24554 int arg2 ;
24555 void *argp1 = 0 ;
24556 int res1 = 0 ;
24557 int val2 ;
24558 int ecode2 = 0 ;
24559 PyObject * obj0 = 0 ;
24560 PyObject * obj1 = 0 ;
24561 char * kwnames[] = {
24562 (char *) "self",(char *) "style", NULL
24563 };
24564
24565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24567 if (!SWIG_IsOK(res1)) {
24568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24569 }
24570 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24571 ecode2 = SWIG_AsVal_int(obj1, &val2);
24572 if (!SWIG_IsOK(ecode2)) {
24573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24574 }
24575 arg2 = static_cast< int >(val2);
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 (arg1)->SetStyle(arg2);
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 resultobj = SWIG_Py_Void();
24583 return resultobj;
24584fail:
24585 return NULL;
24586}
24587
24588
24589SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24590 PyObject *resultobj = 0;
24591 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24592 int result;
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 PyObject *swig_obj[1] ;
24596
24597 if (!args) SWIG_fail;
24598 swig_obj[0] = args;
24599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24600 if (!SWIG_IsOK(res1)) {
24601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24602 }
24603 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24604 {
24605 PyThreadState* __tstate = wxPyBeginAllowThreads();
24606 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24607 wxPyEndAllowThreads(__tstate);
24608 if (PyErr_Occurred()) SWIG_fail;
24609 }
24610 resultobj = SWIG_From_int(static_cast< int >(result));
24611 return resultobj;
24612fail:
24613 return NULL;
24614}
24615
24616
1bd55598
RD
24617SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24618 PyObject *obj;
24619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24620 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24621 return SWIG_Py_Void();
24622}
24623
24624SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24625 return SWIG_Python_InitShadowInstance(args);
24626}
24627
24628SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24629 PyObject *resultobj = 0;
24630 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24631 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24632 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24633 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24634 wxBufferedPaintDC *result = 0 ;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 void *argp2 = 0 ;
24638 int res2 = 0 ;
24639 int val3 ;
24640 int ecode3 = 0 ;
24641 PyObject * obj0 = 0 ;
24642 PyObject * obj1 = 0 ;
24643 PyObject * obj2 = 0 ;
24644 char * kwnames[] = {
24645 (char *) "window",(char *) "buffer",(char *) "style", NULL
24646 };
24647
24648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24650 if (!SWIG_IsOK(res1)) {
24651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24652 }
24653 arg1 = reinterpret_cast< wxWindow * >(argp1);
24654 if (obj1) {
b6df5cf9 24655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24656 if (!SWIG_IsOK(res2)) {
b6df5cf9 24657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24658 }
1bd55598 24659 if (!argp2) {
b6df5cf9 24660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24661 }
1bd55598
RD
24662 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24663 }
24664 if (obj2) {
24665 ecode3 = SWIG_AsVal_int(obj2, &val3);
24666 if (!SWIG_IsOK(ecode3)) {
24667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24668 }
24669 arg3 = static_cast< int >(val3);
24670 }
24671 {
24672 if (!wxPyCheckForApp()) SWIG_fail;
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24674 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24675 wxPyEndAllowThreads(__tstate);
24676 if (PyErr_Occurred()) SWIG_fail;
24677 }
24678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24679 return resultobj;
24680fail:
24681 return NULL;
24682}
24683
24684
24685SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24686 PyObject *obj;
24687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24688 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24689 return SWIG_Py_Void();
24690}
24691
24692SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24693 return SWIG_Python_InitShadowInstance(args);
24694}
24695
24f6c4e8 24696SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24697 PyObject *resultobj = 0;
24698 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24699 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24700 void *argp1 = 0 ;
24701 int res1 = 0 ;
24702 PyObject * obj0 = 0 ;
24703 char * kwnames[] = {
24704 (char *) "win", NULL
24705 };
24706
24f6c4e8 24707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24709 if (!SWIG_IsOK(res1)) {
24f6c4e8 24710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24711 }
24712 arg1 = reinterpret_cast< wxWindow * >(argp1);
24713 {
1bd55598 24714 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24715 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24716 wxPyEndAllowThreads(__tstate);
24717 if (PyErr_Occurred()) SWIG_fail;
24718 }
24f6c4e8 24719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24720 return resultobj;
24721fail:
24722 return NULL;
24723}
24724
24725
24f6c4e8 24726SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24727 PyObject *obj;
24728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24729 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24730 return SWIG_Py_Void();
24731}
24732
24f6c4e8 24733SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24734 return SWIG_Python_InitShadowInstance(args);
24735}
24736
8e99bda9
RD
24737SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24738 PyObject *resultobj = 0;
24739 wxWindow *arg1 = (wxWindow *) 0 ;
24740 wxDC *result = 0 ;
24741 void *argp1 = 0 ;
24742 int res1 = 0 ;
24743 PyObject * obj0 = 0 ;
24744 char * kwnames[] = {
24745 (char *) "window", NULL
24746 };
24747
24748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24750 if (!SWIG_IsOK(res1)) {
24751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24752 }
24753 arg1 = reinterpret_cast< wxWindow * >(argp1);
24754 {
24755 PyThreadState* __tstate = wxPyBeginAllowThreads();
24756 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 {
24761 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24762 }
24763 return resultobj;
24764fail:
24765 return NULL;
24766}
24767
24768
1bd55598
RD
24769SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24770 PyObject *resultobj = 0;
24771 wxDC *arg1 = 0 ;
24772 bool arg2 ;
24773 wxMirrorDC *result = 0 ;
24774 void *argp1 = 0 ;
24775 int res1 = 0 ;
24776 bool val2 ;
24777 int ecode2 = 0 ;
24778 PyObject * obj0 = 0 ;
24779 PyObject * obj1 = 0 ;
24780 char * kwnames[] = {
24781 (char *) "dc",(char *) "mirror", NULL
24782 };
24783
24784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24785 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24786 if (!SWIG_IsOK(res1)) {
24787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24788 }
24789 if (!argp1) {
24790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24791 }
24792 arg1 = reinterpret_cast< wxDC * >(argp1);
24793 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24794 if (!SWIG_IsOK(ecode2)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24796 }
24797 arg2 = static_cast< bool >(val2);
24798 {
24799 if (!wxPyCheckForApp()) SWIG_fail;
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24802 wxPyEndAllowThreads(__tstate);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24806 return resultobj;
24807fail:
24808 return NULL;
24809}
24810
24811
24812SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24813 PyObject *obj;
24814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24815 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24816 return SWIG_Py_Void();
24817}
24818
24819SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24820 return SWIG_Python_InitShadowInstance(args);
24821}
24822
24823SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24824 PyObject *resultobj = 0;
24825 wxPrintData *arg1 = 0 ;
24826 wxPostScriptDC *result = 0 ;
24827 void *argp1 = 0 ;
24828 int res1 = 0 ;
24829 PyObject * obj0 = 0 ;
24830 char * kwnames[] = {
24831 (char *) "printData", NULL
24832 };
24833
24834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24835 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24836 if (!SWIG_IsOK(res1)) {
24837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24838 }
24839 if (!argp1) {
24840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24841 }
24842 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24843 {
24844 if (!wxPyCheckForApp()) SWIG_fail;
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24847 wxPyEndAllowThreads(__tstate);
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24851 return resultobj;
24852fail:
24853 return NULL;
24854}
24855
24856
24857SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24858 PyObject *resultobj = 0;
24859 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24860 wxPrintData *result = 0 ;
24861 void *argp1 = 0 ;
24862 int res1 = 0 ;
24863 PyObject *swig_obj[1] ;
24864
24865 if (!args) SWIG_fail;
24866 swig_obj[0] = args;
24867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24868 if (!SWIG_IsOK(res1)) {
24869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24870 }
24871 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24872 {
24873 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24874 {
1bd55598
RD
24875 wxPrintData &_result_ref = (arg1)->GetPrintData();
24876 result = (wxPrintData *) &_result_ref;
e2950dbb 24877 }
1bd55598
RD
24878 wxPyEndAllowThreads(__tstate);
24879 if (PyErr_Occurred()) SWIG_fail;
24880 }
24881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24882 return resultobj;
24883fail:
24884 return NULL;
24885}
24886
24887
24888SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24889 PyObject *resultobj = 0;
24890 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24891 wxPrintData *arg2 = 0 ;
24892 void *argp1 = 0 ;
24893 int res1 = 0 ;
24894 void *argp2 = 0 ;
24895 int res2 = 0 ;
24896 PyObject * obj0 = 0 ;
24897 PyObject * obj1 = 0 ;
24898 char * kwnames[] = {
24899 (char *) "self",(char *) "data", NULL
24900 };
24901
24902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24904 if (!SWIG_IsOK(res1)) {
24905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24906 }
24907 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24909 if (!SWIG_IsOK(res2)) {
24910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24911 }
24912 if (!argp2) {
24913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24914 }
24915 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24916 {
24917 PyThreadState* __tstate = wxPyBeginAllowThreads();
24918 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24919 wxPyEndAllowThreads(__tstate);
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 resultobj = SWIG_Py_Void();
24923 return resultobj;
24924fail:
24925 return NULL;
24926}
24927
24928
24929SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24930 PyObject *resultobj = 0;
24931 int arg1 ;
24932 int val1 ;
24933 int ecode1 = 0 ;
24934 PyObject * obj0 = 0 ;
24935 char * kwnames[] = {
24936 (char *) "ppi", NULL
24937 };
24938
24939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24940 ecode1 = SWIG_AsVal_int(obj0, &val1);
24941 if (!SWIG_IsOK(ecode1)) {
24942 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24943 }
24944 arg1 = static_cast< int >(val1);
24945 {
24946 PyThreadState* __tstate = wxPyBeginAllowThreads();
24947 wxPostScriptDC::SetResolution(arg1);
24948 wxPyEndAllowThreads(__tstate);
24949 if (PyErr_Occurred()) SWIG_fail;
24950 }
24951 resultobj = SWIG_Py_Void();
24952 return resultobj;
24953fail:
24954 return NULL;
24955}
24956
24957
24958SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24959 PyObject *resultobj = 0;
24960 int result;
24961
24962 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24963 {
24964 PyThreadState* __tstate = wxPyBeginAllowThreads();
24965 result = (int)wxPostScriptDC::GetResolution();
24966 wxPyEndAllowThreads(__tstate);
24967 if (PyErr_Occurred()) SWIG_fail;
24968 }
24969 resultobj = SWIG_From_int(static_cast< int >(result));
24970 return resultobj;
24971fail:
24972 return NULL;
24973}
24974
24975
24976SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24977 PyObject *obj;
24978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24979 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24980 return SWIG_Py_Void();
24981}
24982
24983SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24984 return SWIG_Python_InitShadowInstance(args);
24985}
24986
24987SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24988 PyObject *resultobj = 0;
24989 wxString const &arg1_defvalue = wxPyEmptyString ;
24990 wxString *arg1 = (wxString *) &arg1_defvalue ;
24991 wxMetaFile *result = 0 ;
24992 bool temp1 = false ;
24993 PyObject * obj0 = 0 ;
24994 char * kwnames[] = {
24995 (char *) "filename", NULL
24996 };
24997
24998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24999 if (obj0) {
36ed4f51 25000 {
1bd55598
RD
25001 arg1 = wxString_in_helper(obj0);
25002 if (arg1 == NULL) SWIG_fail;
25003 temp1 = true;
36ed4f51 25004 }
1bd55598
RD
25005 }
25006 {
25007 if (!wxPyCheckForApp()) SWIG_fail;
25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
25009 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25010 wxPyEndAllowThreads(__tstate);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 }
25013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25014 {
25015 if (temp1)
25016 delete arg1;
25017 }
25018 return resultobj;
25019fail:
25020 {
25021 if (temp1)
25022 delete arg1;
25023 }
25024 return NULL;
25025}
25026
25027
25028SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25029 PyObject *resultobj = 0;
25030 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25031 void *argp1 = 0 ;
25032 int res1 = 0 ;
25033 PyObject *swig_obj[1] ;
25034
25035 if (!args) SWIG_fail;
25036 swig_obj[0] = args;
25037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25038 if (!SWIG_IsOK(res1)) {
25039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25040 }
25041 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25042 {
25043 PyThreadState* __tstate = wxPyBeginAllowThreads();
25044 delete arg1;
25045
25046 wxPyEndAllowThreads(__tstate);
25047 if (PyErr_Occurred()) SWIG_fail;
25048 }
25049 resultobj = SWIG_Py_Void();
25050 return resultobj;
25051fail:
25052 return NULL;
25053}
25054
25055
b39fe951 25056SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25057 PyObject *resultobj = 0;
25058 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25059 bool result;
25060 void *argp1 = 0 ;
25061 int res1 = 0 ;
25062 PyObject *swig_obj[1] ;
25063
25064 if (!args) SWIG_fail;
25065 swig_obj[0] = args;
25066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25067 if (!SWIG_IsOK(res1)) {
b39fe951 25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25069 }
25070 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25071 {
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25073 result = (bool)(arg1)->IsOk();
1bd55598
RD
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 {
25078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25079 }
25080 return resultobj;
25081fail:
25082 return NULL;
25083}
25084
25085
25086SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25087 PyObject *resultobj = 0;
25088 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25089 int arg2 = (int) 0 ;
25090 int arg3 = (int) 0 ;
25091 bool result;
25092 void *argp1 = 0 ;
25093 int res1 = 0 ;
25094 int val2 ;
25095 int ecode2 = 0 ;
25096 int val3 ;
25097 int ecode3 = 0 ;
25098 PyObject * obj0 = 0 ;
25099 PyObject * obj1 = 0 ;
25100 PyObject * obj2 = 0 ;
25101 char * kwnames[] = {
25102 (char *) "self",(char *) "width",(char *) "height", NULL
25103 };
25104
25105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25107 if (!SWIG_IsOK(res1)) {
25108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25109 }
25110 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25111 if (obj1) {
25112 ecode2 = SWIG_AsVal_int(obj1, &val2);
25113 if (!SWIG_IsOK(ecode2)) {
25114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25115 }
25116 arg2 = static_cast< int >(val2);
25117 }
25118 if (obj2) {
25119 ecode3 = SWIG_AsVal_int(obj2, &val3);
25120 if (!SWIG_IsOK(ecode3)) {
25121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25122 }
25123 arg3 = static_cast< int >(val3);
25124 }
25125 {
25126 PyThreadState* __tstate = wxPyBeginAllowThreads();
25127 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25128 wxPyEndAllowThreads(__tstate);
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 {
25132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25133 }
25134 return resultobj;
25135fail:
25136 return NULL;
25137}
25138
25139
25140SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25141 PyObject *resultobj = 0;
25142 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25143 wxSize result;
25144 void *argp1 = 0 ;
25145 int res1 = 0 ;
25146 PyObject *swig_obj[1] ;
25147
25148 if (!args) SWIG_fail;
25149 swig_obj[0] = args;
25150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25151 if (!SWIG_IsOK(res1)) {
25152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25153 }
25154 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25155 {
25156 PyThreadState* __tstate = wxPyBeginAllowThreads();
25157 result = (arg1)->GetSize();
25158 wxPyEndAllowThreads(__tstate);
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25162 return resultobj;
25163fail:
25164 return NULL;
25165}
25166
25167
25168SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25169 PyObject *resultobj = 0;
25170 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25171 int result;
25172 void *argp1 = 0 ;
25173 int res1 = 0 ;
25174 PyObject *swig_obj[1] ;
25175
25176 if (!args) SWIG_fail;
25177 swig_obj[0] = args;
25178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25179 if (!SWIG_IsOK(res1)) {
25180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25181 }
25182 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25183 {
25184 PyThreadState* __tstate = wxPyBeginAllowThreads();
25185 result = (int)(arg1)->GetWidth();
25186 wxPyEndAllowThreads(__tstate);
25187 if (PyErr_Occurred()) SWIG_fail;
25188 }
25189 resultobj = SWIG_From_int(static_cast< int >(result));
25190 return resultobj;
25191fail:
25192 return NULL;
25193}
25194
25195
25196SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25197 PyObject *resultobj = 0;
25198 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25199 int result;
25200 void *argp1 = 0 ;
25201 int res1 = 0 ;
25202 PyObject *swig_obj[1] ;
25203
25204 if (!args) SWIG_fail;
25205 swig_obj[0] = args;
25206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25207 if (!SWIG_IsOK(res1)) {
25208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25209 }
25210 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25211 {
25212 PyThreadState* __tstate = wxPyBeginAllowThreads();
25213 result = (int)(arg1)->GetHeight();
25214 wxPyEndAllowThreads(__tstate);
25215 if (PyErr_Occurred()) SWIG_fail;
25216 }
25217 resultobj = SWIG_From_int(static_cast< int >(result));
25218 return resultobj;
25219fail:
25220 return NULL;
25221}
25222
25223
25224SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25225 PyObject *obj;
25226 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25227 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25228 return SWIG_Py_Void();
25229}
25230
25231SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25232 return SWIG_Python_InitShadowInstance(args);
25233}
25234
25235SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25236 PyObject *resultobj = 0;
25237 wxString const &arg1_defvalue = wxPyEmptyString ;
25238 wxString *arg1 = (wxString *) &arg1_defvalue ;
25239 int arg2 = (int) 0 ;
25240 int arg3 = (int) 0 ;
25241 wxString const &arg4_defvalue = wxPyEmptyString ;
25242 wxString *arg4 = (wxString *) &arg4_defvalue ;
25243 wxMetaFileDC *result = 0 ;
25244 bool temp1 = false ;
25245 int val2 ;
25246 int ecode2 = 0 ;
25247 int val3 ;
25248 int ecode3 = 0 ;
25249 bool temp4 = false ;
25250 PyObject * obj0 = 0 ;
25251 PyObject * obj1 = 0 ;
25252 PyObject * obj2 = 0 ;
25253 PyObject * obj3 = 0 ;
25254 char * kwnames[] = {
25255 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25256 };
25257
25258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25259 if (obj0) {
36ed4f51 25260 {
1bd55598
RD
25261 arg1 = wxString_in_helper(obj0);
25262 if (arg1 == NULL) SWIG_fail;
25263 temp1 = true;
36ed4f51 25264 }
1bd55598
RD
25265 }
25266 if (obj1) {
25267 ecode2 = SWIG_AsVal_int(obj1, &val2);
25268 if (!SWIG_IsOK(ecode2)) {
25269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25270 }
25271 arg2 = static_cast< int >(val2);
25272 }
25273 if (obj2) {
25274 ecode3 = SWIG_AsVal_int(obj2, &val3);
25275 if (!SWIG_IsOK(ecode3)) {
25276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25277 }
25278 arg3 = static_cast< int >(val3);
25279 }
25280 if (obj3) {
36ed4f51 25281 {
1bd55598
RD
25282 arg4 = wxString_in_helper(obj3);
25283 if (arg4 == NULL) SWIG_fail;
25284 temp4 = true;
36ed4f51 25285 }
1bd55598
RD
25286 }
25287 {
25288 if (!wxPyCheckForApp()) SWIG_fail;
25289 PyThreadState* __tstate = wxPyBeginAllowThreads();
25290 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
25294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25295 {
25296 if (temp1)
25297 delete arg1;
25298 }
25299 {
25300 if (temp4)
25301 delete arg4;
25302 }
25303 return resultobj;
25304fail:
25305 {
25306 if (temp1)
25307 delete arg1;
25308 }
25309 {
25310 if (temp4)
25311 delete arg4;
25312 }
25313 return NULL;
25314}
25315
25316
25317SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25318 PyObject *resultobj = 0;
25319 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25320 wxMetaFile *result = 0 ;
25321 void *argp1 = 0 ;
25322 int res1 = 0 ;
25323 PyObject *swig_obj[1] ;
25324
25325 if (!args) SWIG_fail;
25326 swig_obj[0] = args;
25327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25330 }
25331 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25332 {
25333 PyThreadState* __tstate = wxPyBeginAllowThreads();
25334 result = (wxMetaFile *)(arg1)->Close();
25335 wxPyEndAllowThreads(__tstate);
25336 if (PyErr_Occurred()) SWIG_fail;
25337 }
25338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25339 return resultobj;
25340fail:
25341 return NULL;
25342}
25343
25344
25345SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25346 PyObject *obj;
25347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25348 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25349 return SWIG_Py_Void();
25350}
25351
25352SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25353 return SWIG_Python_InitShadowInstance(args);
25354}
25355
25356SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25357 PyObject *resultobj = 0;
25358 wxPrintData *arg1 = 0 ;
25359 wxPrinterDC *result = 0 ;
25360 void *argp1 = 0 ;
25361 int res1 = 0 ;
25362 PyObject * obj0 = 0 ;
25363 char * kwnames[] = {
25364 (char *) "printData", NULL
25365 };
25366
25367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25368 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25369 if (!SWIG_IsOK(res1)) {
25370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25371 }
25372 if (!argp1) {
25373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25374 }
25375 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25376 {
25377 if (!wxPyCheckForApp()) SWIG_fail;
25378 PyThreadState* __tstate = wxPyBeginAllowThreads();
25379 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25380 wxPyEndAllowThreads(__tstate);
25381 if (PyErr_Occurred()) SWIG_fail;
25382 }
25383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25384 return resultobj;
25385fail:
25386 return NULL;
25387}
25388
25389
25390SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25391 PyObject *obj;
25392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25393 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25394 return SWIG_Py_Void();
25395}
25396
25397SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25398 return SWIG_Python_InitShadowInstance(args);
25399}
25400
70d7cb34
RD
25401SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25402 PyObject *resultobj = 0;
25403 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25404 wxGraphicsObject *result = 0 ;
25405 void *argp1 = 0 ;
25406 int res1 = 0 ;
25407 PyObject * obj0 = 0 ;
25408 char * kwnames[] = {
25409 (char *) "renderer", NULL
25410 };
25411
25412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25413 if (obj0) {
25414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25415 if (!SWIG_IsOK(res1)) {
25416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25417 }
25418 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25419 }
25420 {
25421 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25425 return resultobj;
25426fail:
25427 return NULL;
25428}
25429
25430
25431SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25432 PyObject *resultobj = 0;
25433 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25434 void *argp1 = 0 ;
25435 int res1 = 0 ;
25436 PyObject *swig_obj[1] ;
25437
25438 if (!args) SWIG_fail;
25439 swig_obj[0] = args;
25440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25443 }
25444 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25445 {
25446 delete arg1;
25447
25448 if (PyErr_Occurred()) SWIG_fail;
25449 }
25450 resultobj = SWIG_Py_Void();
25451 return resultobj;
25452fail:
25453 return NULL;
25454}
25455
25456
25457SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25458 PyObject *resultobj = 0;
25459 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25460 bool 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_wxGraphicsObject, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25470 }
25471 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25472 {
25473 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25474 if (PyErr_Occurred()) SWIG_fail;
25475 }
25476 {
25477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25478 }
25479 return resultobj;
25480fail:
25481 return NULL;
25482}
25483
25484
25485SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25486 PyObject *resultobj = 0;
25487 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25488 wxGraphicsRenderer *result = 0 ;
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_wxGraphicsObject, 0 | 0 );
25496 if (!SWIG_IsOK(res1)) {
25497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25498 }
25499 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25500 {
25501 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25505 return resultobj;
25506fail:
25507 return NULL;
25508}
25509
25510
25511SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25512 PyObject *obj;
25513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25514 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25515 return SWIG_Py_Void();
25516}
25517
25518SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25519 return SWIG_Python_InitShadowInstance(args);
25520}
25521
25522SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25523 PyObject *resultobj = 0;
25524 wxGraphicsPen *result = 0 ;
25525
25526 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25527 {
25528 result = (wxGraphicsPen *)new wxGraphicsPen();
25529 if (PyErr_Occurred()) SWIG_fail;
25530 }
25531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25532 return resultobj;
25533fail:
25534 return NULL;
25535}
25536
25537
25538SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25539 PyObject *resultobj = 0;
25540 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 PyObject *swig_obj[1] ;
25544
25545 if (!args) SWIG_fail;
25546 swig_obj[0] = args;
25547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25548 if (!SWIG_IsOK(res1)) {
25549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25550 }
25551 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25552 {
25553 delete arg1;
25554
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 resultobj = SWIG_Py_Void();
25558 return resultobj;
25559fail:
25560 return NULL;
25561}
25562
25563
25564SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25565 PyObject *obj;
25566 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25567 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25568 return SWIG_Py_Void();
25569}
25570
25571SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25572 return SWIG_Python_InitShadowInstance(args);
25573}
25574
25575SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25576 PyObject *resultobj = 0;
25577 wxGraphicsBrush *result = 0 ;
25578
25579 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25580 {
25581 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25585 return resultobj;
25586fail:
25587 return NULL;
25588}
25589
25590
25591SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25592 PyObject *resultobj = 0;
25593 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25594 void *argp1 = 0 ;
25595 int res1 = 0 ;
25596 PyObject *swig_obj[1] ;
25597
25598 if (!args) SWIG_fail;
25599 swig_obj[0] = args;
25600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25601 if (!SWIG_IsOK(res1)) {
25602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25603 }
25604 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25605 {
25606 delete arg1;
25607
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 resultobj = SWIG_Py_Void();
25611 return resultobj;
25612fail:
25613 return NULL;
25614}
25615
25616
25617SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25618 PyObject *obj;
25619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25620 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25621 return SWIG_Py_Void();
25622}
25623
25624SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25625 return SWIG_Python_InitShadowInstance(args);
25626}
25627
25628SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25629 PyObject *resultobj = 0;
25630 wxGraphicsFont *result = 0 ;
25631
25632 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25633 {
25634 result = (wxGraphicsFont *)new wxGraphicsFont();
25635 if (PyErr_Occurred()) SWIG_fail;
25636 }
25637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25638 return resultobj;
25639fail:
25640 return NULL;
25641}
25642
25643
25644SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25645 PyObject *resultobj = 0;
25646 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25647 void *argp1 = 0 ;
25648 int res1 = 0 ;
25649 PyObject *swig_obj[1] ;
25650
25651 if (!args) SWIG_fail;
25652 swig_obj[0] = args;
25653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25654 if (!SWIG_IsOK(res1)) {
25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25656 }
25657 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25658 {
25659 delete arg1;
25660
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 resultobj = SWIG_Py_Void();
25664 return resultobj;
25665fail:
25666 return NULL;
25667}
25668
25669
25670SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25671 PyObject *obj;
25672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25673 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25674 return SWIG_Py_Void();
25675}
25676
25677SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25678 return SWIG_Python_InitShadowInstance(args);
25679}
25680
8f514ab4
RD
25681SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25682 PyObject *resultobj = 0;
25683 wxGraphicsMatrix *result = 0 ;
25684
25685 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25686 {
25687 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
25690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25691 return resultobj;
25692fail:
25693 return NULL;
25694}
25695
25696
5c8c7dd3 25697SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25698 PyObject *resultobj = 0;
5c8c7dd3 25699 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25700 void *argp1 = 0 ;
25701 int res1 = 0 ;
25702 PyObject *swig_obj[1] ;
25703
25704 if (!args) SWIG_fail;
25705 swig_obj[0] = args;
5c8c7dd3 25706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25707 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25709 }
5c8c7dd3 25710 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25711 {
1bd55598
RD
25712 delete arg1;
25713
1bd55598
RD
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 resultobj = SWIG_Py_Void();
25717 return resultobj;
25718fail:
25719 return NULL;
25720}
25721
25722
5c8c7dd3 25723SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25724 PyObject *resultobj = 0;
5c8c7dd3
RD
25725 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25726 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25727 void *argp1 = 0 ;
25728 int res1 = 0 ;
5c8c7dd3
RD
25729 void *argp2 = 0 ;
25730 int res2 = 0 ;
25731 PyObject * obj0 = 0 ;
25732 PyObject * obj1 = 0 ;
25733 char * kwnames[] = {
25734 (char *) "self",(char *) "t", NULL
25735 };
70d7cb34 25736
5c8c7dd3
RD
25737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25739 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25741 }
5c8c7dd3
RD
25742 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25743 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25744 if (!SWIG_IsOK(res2)) {
25745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25746 }
25747 if (!argp2) {
25748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25749 }
25750 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25751 {
5c8c7dd3 25752 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
5c8c7dd3 25755 resultobj = SWIG_Py_Void();
70d7cb34
RD
25756 return resultobj;
25757fail:
25758 return NULL;
25759}
25760
25761
5c8c7dd3 25762SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25763 PyObject *resultobj = 0;
5c8c7dd3
RD
25764 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25765 wxDouble arg2 = (wxDouble) 1.0 ;
25766 wxDouble arg3 = (wxDouble) 0.0 ;
25767 wxDouble arg4 = (wxDouble) 0.0 ;
25768 wxDouble arg5 = (wxDouble) 1.0 ;
25769 wxDouble arg6 = (wxDouble) 0.0 ;
25770 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25771 void *argp1 = 0 ;
25772 int res1 = 0 ;
5c8c7dd3
RD
25773 double val2 ;
25774 int ecode2 = 0 ;
25775 double val3 ;
25776 int ecode3 = 0 ;
25777 double val4 ;
25778 int ecode4 = 0 ;
25779 double val5 ;
25780 int ecode5 = 0 ;
25781 double val6 ;
25782 int ecode6 = 0 ;
25783 double val7 ;
25784 int ecode7 = 0 ;
25785 PyObject * obj0 = 0 ;
25786 PyObject * obj1 = 0 ;
25787 PyObject * obj2 = 0 ;
25788 PyObject * obj3 = 0 ;
25789 PyObject * obj4 = 0 ;
25790 PyObject * obj5 = 0 ;
25791 PyObject * obj6 = 0 ;
25792 char * kwnames[] = {
25793 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25794 };
70d7cb34 25795
5c8c7dd3
RD
25796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25798 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25800 }
5c8c7dd3
RD
25801 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25802 if (obj1) {
25803 ecode2 = SWIG_AsVal_double(obj1, &val2);
25804 if (!SWIG_IsOK(ecode2)) {
25805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25806 }
25807 arg2 = static_cast< wxDouble >(val2);
25808 }
25809 if (obj2) {
25810 ecode3 = SWIG_AsVal_double(obj2, &val3);
25811 if (!SWIG_IsOK(ecode3)) {
25812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25813 }
25814 arg3 = static_cast< wxDouble >(val3);
25815 }
25816 if (obj3) {
25817 ecode4 = SWIG_AsVal_double(obj3, &val4);
25818 if (!SWIG_IsOK(ecode4)) {
25819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25820 }
25821 arg4 = static_cast< wxDouble >(val4);
25822 }
25823 if (obj4) {
25824 ecode5 = SWIG_AsVal_double(obj4, &val5);
25825 if (!SWIG_IsOK(ecode5)) {
25826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25827 }
25828 arg5 = static_cast< wxDouble >(val5);
25829 }
25830 if (obj5) {
25831 ecode6 = SWIG_AsVal_double(obj5, &val6);
25832 if (!SWIG_IsOK(ecode6)) {
25833 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25834 }
25835 arg6 = static_cast< wxDouble >(val6);
25836 }
25837 if (obj6) {
25838 ecode7 = SWIG_AsVal_double(obj6, &val7);
25839 if (!SWIG_IsOK(ecode7)) {
25840 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25841 }
25842 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25843 }
25844 {
5c8c7dd3 25845 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_Py_Void();
25849 return resultobj;
25850fail:
25851 return NULL;
25852}
25853
25854
5c8c7dd3 25855SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25856 PyObject *resultobj = 0;
5c8c7dd3 25857 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25858 void *argp1 = 0 ;
25859 int res1 = 0 ;
5c8c7dd3 25860 PyObject *swig_obj[1] ;
1bd55598 25861
5c8c7dd3
RD
25862 if (!args) SWIG_fail;
25863 swig_obj[0] = args;
25864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25865 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25867 }
5c8c7dd3 25868 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25869 {
5c8c7dd3 25870 (arg1)->Invert();
1bd55598
RD
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
72ef6efb 25873 resultobj = SWIG_Py_Void();
1bd55598
RD
25874 return resultobj;
25875fail:
25876 return NULL;
25877}
25878
25879
5c8c7dd3 25880SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25881 PyObject *resultobj = 0;
5c8c7dd3
RD
25882 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25883 wxGraphicsMatrix *arg2 = 0 ;
25884 bool result;
70d7cb34
RD
25885 void *argp1 = 0 ;
25886 int res1 = 0 ;
5c8c7dd3
RD
25887 void *argp2 = 0 ;
25888 int res2 = 0 ;
25889 PyObject * obj0 = 0 ;
25890 PyObject * obj1 = 0 ;
25891 char * kwnames[] = {
25892 (char *) "self",(char *) "t", NULL
25893 };
70d7cb34 25894
5c8c7dd3
RD
25895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25897 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25899 }
5c8c7dd3
RD
25900 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25902 if (!SWIG_IsOK(res2)) {
25903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25904 }
25905 if (!argp2) {
25906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25907 }
5c8c7dd3 25908 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25909 {
5c8c7dd3 25910 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25911 if (PyErr_Occurred()) SWIG_fail;
25912 }
5c8c7dd3
RD
25913 {
25914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25915 }
70d7cb34
RD
25916 return resultobj;
25917fail:
25918 return NULL;
25919}
25920
25921
5c8c7dd3
RD
25922SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25923 PyObject *resultobj = 0;
25924 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25925 bool result;
25926 void *argp1 = 0 ;
25927 int res1 = 0 ;
25928 PyObject *swig_obj[1] ;
70d7cb34 25929
5c8c7dd3
RD
25930 if (!args) SWIG_fail;
25931 swig_obj[0] = args;
25932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25933 if (!SWIG_IsOK(res1)) {
8f514ab4 25934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25935 }
5c8c7dd3
RD
25936 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25937 {
8f514ab4 25938 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 25939 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25940 }
5c8c7dd3
RD
25941 {
25942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25943 }
25944 return resultobj;
70d7cb34 25945fail:
70d7cb34
RD
25946 return NULL;
25947}
25948
25949
5c8c7dd3 25950SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25951 PyObject *resultobj = 0;
5c8c7dd3 25952 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25953 wxDouble arg2 ;
25954 wxDouble arg3 ;
1bd55598
RD
25955 void *argp1 = 0 ;
25956 int res1 = 0 ;
72ef6efb
RD
25957 double val2 ;
25958 int ecode2 = 0 ;
25959 double val3 ;
25960 int ecode3 = 0 ;
5c8c7dd3
RD
25961 PyObject * obj0 = 0 ;
25962 PyObject * obj1 = 0 ;
25963 PyObject * obj2 = 0 ;
25964 char * kwnames[] = {
25965 (char *) "self",(char *) "dx",(char *) "dy", NULL
25966 };
72ef6efb 25967
5c8c7dd3
RD
25968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25970 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25972 }
5c8c7dd3
RD
25973 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25974 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25975 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25977 }
25978 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25979 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25980 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25982 }
25983 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25984 {
5c8c7dd3 25985 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_Py_Void();
25989 return resultobj;
25990fail:
25991 return NULL;
25992}
25993
25994
5c8c7dd3 25995SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25996 PyObject *resultobj = 0;
5c8c7dd3
RD
25997 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25998 wxDouble arg2 ;
25999 wxDouble arg3 ;
70d7cb34
RD
26000 void *argp1 = 0 ;
26001 int res1 = 0 ;
5c8c7dd3
RD
26002 double val2 ;
26003 int ecode2 = 0 ;
26004 double val3 ;
26005 int ecode3 = 0 ;
26006 PyObject * obj0 = 0 ;
26007 PyObject * obj1 = 0 ;
26008 PyObject * obj2 = 0 ;
26009 char * kwnames[] = {
26010 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26011 };
70d7cb34 26012
5c8c7dd3
RD
26013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26015 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26017 }
5c8c7dd3
RD
26018 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26019 ecode2 = SWIG_AsVal_double(obj1, &val2);
26020 if (!SWIG_IsOK(ecode2)) {
26021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26022 }
26023 arg2 = static_cast< wxDouble >(val2);
26024 ecode3 = SWIG_AsVal_double(obj2, &val3);
26025 if (!SWIG_IsOK(ecode3)) {
26026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26027 }
26028 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26029 {
5c8c7dd3 26030 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26031 if (PyErr_Occurred()) SWIG_fail;
26032 }
26033 resultobj = SWIG_Py_Void();
26034 return resultobj;
26035fail:
26036 return NULL;
26037}
26038
26039
5c8c7dd3 26040SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26041 PyObject *resultobj = 0;
5c8c7dd3
RD
26042 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26043 wxDouble arg2 ;
70d7cb34
RD
26044 void *argp1 = 0 ;
26045 int res1 = 0 ;
5c8c7dd3
RD
26046 double val2 ;
26047 int ecode2 = 0 ;
70d7cb34
RD
26048 PyObject * obj0 = 0 ;
26049 PyObject * obj1 = 0 ;
26050 char * kwnames[] = {
5c8c7dd3 26051 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26052 };
26053
5c8c7dd3
RD
26054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26056 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26058 }
5c8c7dd3
RD
26059 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26060 ecode2 = SWIG_AsVal_double(obj1, &val2);
26061 if (!SWIG_IsOK(ecode2)) {
26062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26063 }
26064 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26065 {
5c8c7dd3 26066 (arg1)->Rotate(arg2);
70d7cb34
RD
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_Py_Void();
26070 return resultobj;
26071fail:
26072 return NULL;
26073}
26074
26075
5c8c7dd3 26076SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26077 PyObject *resultobj = 0;
5c8c7dd3
RD
26078 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26079 wxDouble *arg2 = (wxDouble *) 0 ;
26080 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26081 void *argp1 = 0 ;
26082 int res1 = 0 ;
5c8c7dd3
RD
26083 wxDouble temp2 ;
26084 int res2 = 0 ;
26085 wxDouble temp3 ;
26086 int res3 = 0 ;
26087 PyObject * obj0 = 0 ;
26088 PyObject * obj1 = 0 ;
26089 PyObject * obj2 = 0 ;
26090 char * kwnames[] = {
26091 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26092 };
72ef6efb 26093
5c8c7dd3
RD
26094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26096 if (!SWIG_IsOK(res1)) {
8f514ab4 26097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26098 }
5c8c7dd3
RD
26099 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26100 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26101 double val;
26102 int ecode = SWIG_AsVal_double(obj1, &val);
26103 if (!SWIG_IsOK(ecode)) {
26104 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26105 }
26106 temp2 = static_cast< wxDouble >(val);
26107 arg2 = &temp2;
26108 res2 = SWIG_AddTmpMask(ecode);
26109 }
26110 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26111 double val;
26112 int ecode = SWIG_AsVal_double(obj2, &val);
26113 if (!SWIG_IsOK(ecode)) {
26114 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26115 }
26116 temp3 = static_cast< wxDouble >(val);
26117 arg3 = &temp3;
26118 res3 = SWIG_AddTmpMask(ecode);
26119 }
26120 {
8f514ab4 26121 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26125 if (SWIG_IsTmpObj(res2)) {
26126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26127 } else {
26128 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26130 }
26131 if (SWIG_IsTmpObj(res3)) {
26132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26133 } else {
26134 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26136 }
72ef6efb
RD
26137 return resultobj;
26138fail:
26139 return NULL;
26140}
26141
26142
5c8c7dd3
RD
26143SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26146 wxDouble *arg2 = (wxDouble *) 0 ;
26147 wxDouble *arg3 = (wxDouble *) 0 ;
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 wxDouble temp2 ;
26151 int res2 = 0 ;
26152 wxDouble temp3 ;
26153 int res3 = 0 ;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 PyObject * obj2 = 0 ;
26157 char * kwnames[] = {
26158 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26159 };
26160
26161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26163 if (!SWIG_IsOK(res1)) {
8f514ab4 26164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26165 }
26166 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26167 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26168 double val;
26169 int ecode = SWIG_AsVal_double(obj1, &val);
26170 if (!SWIG_IsOK(ecode)) {
26171 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26172 }
26173 temp2 = static_cast< wxDouble >(val);
26174 arg2 = &temp2;
26175 res2 = SWIG_AddTmpMask(ecode);
26176 }
26177 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26178 double val;
26179 int ecode = SWIG_AsVal_double(obj2, &val);
26180 if (!SWIG_IsOK(ecode)) {
26181 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26182 }
26183 temp3 = static_cast< wxDouble >(val);
26184 arg3 = &temp3;
26185 res3 = SWIG_AddTmpMask(ecode);
26186 }
26187 {
8f514ab4 26188 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 if (SWIG_IsTmpObj(res2)) {
26193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26194 } else {
26195 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26197 }
26198 if (SWIG_IsTmpObj(res3)) {
26199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26200 } else {
26201 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26203 }
26204 return resultobj;
26205fail:
26206 return NULL;
26207}
26208
26209
26210SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26211 PyObject *resultobj = 0;
26212 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26213 void *result = 0 ;
26214 void *argp1 = 0 ;
26215 int res1 = 0 ;
26216 PyObject *swig_obj[1] ;
26217
26218 if (!args) SWIG_fail;
26219 swig_obj[0] = args;
26220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26221 if (!SWIG_IsOK(res1)) {
26222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26223 }
26224 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26225 {
26226 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26230 return resultobj;
26231fail:
26232 return NULL;
26233}
26234
26235
26236SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *obj;
26238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26239 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26240 return SWIG_Py_Void();
26241}
26242
8f514ab4
RD
26243SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26244 return SWIG_Python_InitShadowInstance(args);
26245}
26246
26247SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26248 PyObject *resultobj = 0;
26249 wxGraphicsPath *result = 0 ;
26250
26251 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26252 {
26253 if (!wxPyCheckForApp()) SWIG_fail;
26254 PyThreadState* __tstate = wxPyBeginAllowThreads();
26255 result = (wxGraphicsPath *)new wxGraphicsPath();
26256 wxPyEndAllowThreads(__tstate);
26257 if (PyErr_Occurred()) SWIG_fail;
26258 }
26259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26260 return resultobj;
26261fail:
26262 return NULL;
26263}
26264
26265
5c8c7dd3 26266SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26267 PyObject *resultobj = 0;
26268 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26269 void *argp1 = 0 ;
26270 int res1 = 0 ;
26271 PyObject *swig_obj[1] ;
26272
26273 if (!args) SWIG_fail;
26274 swig_obj[0] = args;
5c8c7dd3 26275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26276 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26278 }
26279 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26280 {
5c8c7dd3
RD
26281 delete arg1;
26282
72ef6efb
RD
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
5c8c7dd3 26285 resultobj = SWIG_Py_Void();
70d7cb34
RD
26286 return resultobj;
26287fail:
26288 return NULL;
26289}
26290
26291
5c8c7dd3 26292SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26293 PyObject *resultobj = 0;
26294 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26295 wxDouble arg2 ;
26296 wxDouble arg3 ;
70d7cb34
RD
26297 void *argp1 = 0 ;
26298 int res1 = 0 ;
26299 double val2 ;
26300 int ecode2 = 0 ;
26301 double val3 ;
26302 int ecode3 = 0 ;
70d7cb34 26303
5c8c7dd3 26304 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26308 }
26309 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26310 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26311 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26313 }
26314 arg2 = static_cast< wxDouble >(val2);
26315 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26316 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26318 }
26319 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26320 {
5c8c7dd3 26321 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_Py_Void();
26325 return resultobj;
26326fail:
26327 return NULL;
26328}
26329
26330
5c8c7dd3 26331SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26332 PyObject *resultobj = 0;
26333 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26334 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26335 void *argp1 = 0 ;
26336 int res1 = 0 ;
26337 wxPoint2D temp2 ;
70d7cb34 26338
5c8c7dd3 26339 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26341 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26343 }
26344 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26345 {
26346 arg2 = &temp2;
26347 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26348 }
70d7cb34 26349 {
5c8c7dd3 26350 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_Py_Void();
26354 return resultobj;
26355fail:
26356 return NULL;
26357}
26358
26359
5c8c7dd3 26360SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26361 int argc;
5c8c7dd3 26362 PyObject *argv[4];
70d7cb34 26363
5c8c7dd3 26364 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26365 --argc;
5c8c7dd3
RD
26366 if (argc == 2) {
26367 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26368 }
5c8c7dd3
RD
26369 if (argc == 3) {
26370 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26371 }
26372
26373fail:
5c8c7dd3 26374 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26375 return NULL;
26376}
26377
26378
5c8c7dd3 26379SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26380 PyObject *resultobj = 0;
26381 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26382 wxDouble arg2 ;
26383 wxDouble arg3 ;
70d7cb34
RD
26384 void *argp1 = 0 ;
26385 int res1 = 0 ;
26386 double val2 ;
26387 int ecode2 = 0 ;
26388 double val3 ;
26389 int ecode3 = 0 ;
70d7cb34 26390
5c8c7dd3
RD
26391 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26393 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26395 }
26396 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26397 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26398 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26400 }
26401 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26402 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26403 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26405 }
26406 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26407 {
5c8c7dd3 26408 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26409 if (PyErr_Occurred()) SWIG_fail;
26410 }
26411 resultobj = SWIG_Py_Void();
26412 return resultobj;
26413fail:
26414 return NULL;
26415}
26416
26417
5c8c7dd3 26418SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26419 PyObject *resultobj = 0;
26420 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26421 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
5c8c7dd3 26424 wxPoint2D temp2 ;
70d7cb34 26425
5c8c7dd3
RD
26426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26428 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26430 }
26431 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26432 {
5c8c7dd3
RD
26433 arg2 = &temp2;
26434 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26435 }
26436 {
26437 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_Py_Void();
26441 return resultobj;
26442fail:
26443 return NULL;
26444}
26445
26446
5c8c7dd3
RD
26447SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26448 int argc;
26449 PyObject *argv[4];
70d7cb34 26450
5c8c7dd3
RD
26451 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26452 --argc;
26453 if (argc == 2) {
26454 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26455 }
5c8c7dd3
RD
26456 if (argc == 3) {
26457 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26458 }
5c8c7dd3 26459
70d7cb34 26460fail:
5c8c7dd3 26461 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26462 return NULL;
26463}
26464
26465
5c8c7dd3 26466SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26467 PyObject *resultobj = 0;
26468 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26469 wxDouble arg2 ;
26470 wxDouble arg3 ;
26471 wxDouble arg4 ;
26472 wxDouble arg5 ;
26473 wxDouble arg6 ;
5c8c7dd3 26474 wxDouble arg7 ;
70d7cb34
RD
26475 void *argp1 = 0 ;
26476 int res1 = 0 ;
26477 double val2 ;
26478 int ecode2 = 0 ;
26479 double val3 ;
26480 int ecode3 = 0 ;
26481 double val4 ;
26482 int ecode4 = 0 ;
26483 double val5 ;
26484 int ecode5 = 0 ;
26485 double val6 ;
26486 int ecode6 = 0 ;
5c8c7dd3
RD
26487 double val7 ;
26488 int ecode7 = 0 ;
70d7cb34 26489
5c8c7dd3
RD
26490 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26492 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26494 }
26495 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26496 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26497 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26499 }
26500 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26501 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26502 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26504 }
26505 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26506 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26507 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26508 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26509 }
26510 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26511 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26512 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26514 }
26515 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26516 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26517 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26518 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26519 }
26520 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26521 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26522 if (!SWIG_IsOK(ecode7)) {
26523 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26524 }
26525 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26526 {
5c8c7dd3 26527 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_Py_Void();
26531 return resultobj;
26532fail:
26533 return NULL;
26534}
26535
26536
5c8c7dd3 26537SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26538 PyObject *resultobj = 0;
26539 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26540 wxPoint2D *arg2 = 0 ;
26541 wxPoint2D *arg3 = 0 ;
26542 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26543 void *argp1 = 0 ;
26544 int res1 = 0 ;
5c8c7dd3
RD
26545 wxPoint2D temp2 ;
26546 wxPoint2D temp3 ;
26547 wxPoint2D temp4 ;
70d7cb34 26548
5c8c7dd3
RD
26549 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26551 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26553 }
26554 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26555 {
5c8c7dd3
RD
26556 arg2 = &temp2;
26557 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26558 }
5c8c7dd3
RD
26559 {
26560 arg3 = &temp3;
26561 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26562 }
70d7cb34 26563 {
5c8c7dd3
RD
26564 arg4 = &temp4;
26565 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26566 }
26567 {
26568 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26569 if (PyErr_Occurred()) SWIG_fail;
26570 }
26571 resultobj = SWIG_Py_Void();
26572 return resultobj;
26573fail:
26574 return NULL;
26575}
26576
26577
5c8c7dd3
RD
26578SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26579 int argc;
26580 PyObject *argv[8];
70d7cb34 26581
5c8c7dd3
RD
26582 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26583 --argc;
26584 if (argc == 4) {
26585 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26586 }
5c8c7dd3
RD
26587 if (argc == 7) {
26588 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26589 }
5c8c7dd3 26590
70d7cb34 26591fail:
5c8c7dd3 26592 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26593 return NULL;
26594}
26595
26596
5c8c7dd3 26597SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26598 PyObject *resultobj = 0;
26599 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26600 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26601 void *argp1 = 0 ;
26602 int res1 = 0 ;
5c8c7dd3
RD
26603 void *argp2 = 0 ;
26604 int res2 = 0 ;
70d7cb34
RD
26605 PyObject * obj0 = 0 ;
26606 PyObject * obj1 = 0 ;
26607 char * kwnames[] = {
5c8c7dd3 26608 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26609 };
26610
5c8c7dd3 26611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26613 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26615 }
26616 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26618 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26620 }
26621 if (!argp2) {
26622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26623 }
5c8c7dd3 26624 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26625 {
5c8c7dd3 26626 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26627 if (PyErr_Occurred()) SWIG_fail;
26628 }
26629 resultobj = SWIG_Py_Void();
26630 return resultobj;
26631fail:
26632 return NULL;
26633}
26634
26635
5c8c7dd3 26636SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26637 PyObject *resultobj = 0;
26638 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26639 void *argp1 = 0 ;
26640 int res1 = 0 ;
5c8c7dd3 26641 PyObject *swig_obj[1] ;
70d7cb34 26642
5c8c7dd3
RD
26643 if (!args) SWIG_fail;
26644 swig_obj[0] = args;
26645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26646 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26648 }
26649 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26650 {
5c8c7dd3 26651 (arg1)->CloseSubpath();
70d7cb34
RD
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 resultobj = SWIG_Py_Void();
26655 return resultobj;
26656fail:
26657 return NULL;
26658}
26659
26660
5c8c7dd3 26661SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26662 PyObject *resultobj = 0;
26663 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26664 wxPoint2D result;
70d7cb34
RD
26665 void *argp1 = 0 ;
26666 int res1 = 0 ;
26667 PyObject *swig_obj[1] ;
26668
26669 if (!args) SWIG_fail;
26670 swig_obj[0] = args;
26671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26672 if (!SWIG_IsOK(res1)) {
8f514ab4 26673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26674 }
26675 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26676 {
8f514ab4 26677 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
5c8c7dd3 26680 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26681 return resultobj;
26682fail:
26683 return NULL;
26684}
26685
26686
5c8c7dd3 26687SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26688 PyObject *resultobj = 0;
26689 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26690 wxDouble arg2 ;
26691 wxDouble arg3 ;
5c8c7dd3
RD
26692 wxDouble arg4 ;
26693 wxDouble arg5 ;
26694 wxDouble arg6 ;
26695 bool arg7 ;
70d7cb34
RD
26696 void *argp1 = 0 ;
26697 int res1 = 0 ;
26698 double val2 ;
26699 int ecode2 = 0 ;
26700 double val3 ;
26701 int ecode3 = 0 ;
5c8c7dd3 26702 double val4 ;
70d7cb34 26703 int ecode4 = 0 ;
5c8c7dd3
RD
26704 double val5 ;
26705 int ecode5 = 0 ;
26706 double val6 ;
26707 int ecode6 = 0 ;
26708 bool val7 ;
26709 int ecode7 = 0 ;
70d7cb34 26710
5c8c7dd3 26711 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26713 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26715 }
26716 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26717 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26718 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26720 }
26721 arg2 = static_cast< wxDouble >(val2);
26722 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26723 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26725 }
26726 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26727 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26728 if (!SWIG_IsOK(ecode4)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26730 }
26731 arg4 = static_cast< wxDouble >(val4);
26732 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26733 if (!SWIG_IsOK(ecode5)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26735 }
26736 arg5 = static_cast< wxDouble >(val5);
26737 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26738 if (!SWIG_IsOK(ecode6)) {
26739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26740 }
26741 arg6 = static_cast< wxDouble >(val6);
26742 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26743 if (!SWIG_IsOK(ecode7)) {
26744 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26745 }
26746 arg7 = static_cast< bool >(val7);
70d7cb34 26747 {
5c8c7dd3 26748 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26749 if (PyErr_Occurred()) SWIG_fail;
26750 }
5c8c7dd3 26751 resultobj = SWIG_Py_Void();
70d7cb34
RD
26752 return resultobj;
26753fail:
26754 return NULL;
26755}
26756
26757
5c8c7dd3 26758SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26759 PyObject *resultobj = 0;
26760 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26761 wxPoint2D *arg2 = 0 ;
26762 wxDouble arg3 ;
26763 wxDouble arg4 ;
26764 wxDouble arg5 ;
26765 bool arg6 ;
70d7cb34
RD
26766 void *argp1 = 0 ;
26767 int res1 = 0 ;
5c8c7dd3
RD
26768 wxPoint2D temp2 ;
26769 double val3 ;
70d7cb34 26770 int ecode3 = 0 ;
5c8c7dd3
RD
26771 double val4 ;
26772 int ecode4 = 0 ;
26773 double val5 ;
26774 int ecode5 = 0 ;
26775 bool val6 ;
26776 int ecode6 = 0 ;
70d7cb34 26777
5c8c7dd3 26778 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26780 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26782 }
26783 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26784 {
5c8c7dd3
RD
26785 arg2 = &temp2;
26786 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26787 }
5c8c7dd3
RD
26788 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26789 if (!SWIG_IsOK(ecode3)) {
26790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26791 }
26792 arg3 = static_cast< wxDouble >(val3);
26793 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26794 if (!SWIG_IsOK(ecode4)) {
26795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26796 }
26797 arg4 = static_cast< wxDouble >(val4);
26798 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26799 if (!SWIG_IsOK(ecode5)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26801 }
26802 arg5 = static_cast< wxDouble >(val5);
26803 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26804 if (!SWIG_IsOK(ecode6)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26806 }
26807 arg6 = static_cast< bool >(val6);
70d7cb34 26808 {
5c8c7dd3
RD
26809 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26810 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26811 }
5c8c7dd3 26812 resultobj = SWIG_Py_Void();
70d7cb34
RD
26813 return resultobj;
26814fail:
26815 return NULL;
26816}
26817
26818
5c8c7dd3 26819SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26820 int argc;
5c8c7dd3 26821 PyObject *argv[8];
70d7cb34 26822
5c8c7dd3 26823 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26824 --argc;
5c8c7dd3
RD
26825 if (argc == 6) {
26826 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26827 }
5c8c7dd3
RD
26828 if (argc == 7) {
26829 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26830 }
26831
26832fail:
5c8c7dd3 26833 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26834 return NULL;
26835}
26836
26837
5c8c7dd3 26838SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26839 PyObject *resultobj = 0;
5c8c7dd3
RD
26840 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26841 wxDouble arg2 ;
26842 wxDouble arg3 ;
26843 wxDouble arg4 ;
26844 wxDouble arg5 ;
70d7cb34
RD
26845 void *argp1 = 0 ;
26846 int res1 = 0 ;
5c8c7dd3
RD
26847 double val2 ;
26848 int ecode2 = 0 ;
26849 double val3 ;
26850 int ecode3 = 0 ;
26851 double val4 ;
26852 int ecode4 = 0 ;
26853 double val5 ;
26854 int ecode5 = 0 ;
26855 PyObject * obj0 = 0 ;
26856 PyObject * obj1 = 0 ;
26857 PyObject * obj2 = 0 ;
26858 PyObject * obj3 = 0 ;
26859 PyObject * obj4 = 0 ;
26860 char * kwnames[] = {
26861 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26862 };
70d7cb34 26863
5c8c7dd3
RD
26864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26866 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26868 }
5c8c7dd3
RD
26869 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26870 ecode2 = SWIG_AsVal_double(obj1, &val2);
26871 if (!SWIG_IsOK(ecode2)) {
26872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26873 }
26874 arg2 = static_cast< wxDouble >(val2);
26875 ecode3 = SWIG_AsVal_double(obj2, &val3);
26876 if (!SWIG_IsOK(ecode3)) {
26877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26878 }
26879 arg3 = static_cast< wxDouble >(val3);
26880 ecode4 = SWIG_AsVal_double(obj3, &val4);
26881 if (!SWIG_IsOK(ecode4)) {
26882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26883 }
26884 arg4 = static_cast< wxDouble >(val4);
26885 ecode5 = SWIG_AsVal_double(obj4, &val5);
26886 if (!SWIG_IsOK(ecode5)) {
26887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26888 }
26889 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26890 {
5c8c7dd3 26891 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 resultobj = SWIG_Py_Void();
26895 return resultobj;
26896fail:
26897 return NULL;
26898}
26899
26900
5c8c7dd3 26901SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26902 PyObject *resultobj = 0;
5c8c7dd3
RD
26903 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26904 wxDouble arg2 ;
26905 wxDouble arg3 ;
26906 wxDouble arg4 ;
26907 wxDouble arg5 ;
70d7cb34
RD
26908 void *argp1 = 0 ;
26909 int res1 = 0 ;
5c8c7dd3
RD
26910 double val2 ;
26911 int ecode2 = 0 ;
26912 double val3 ;
26913 int ecode3 = 0 ;
26914 double val4 ;
26915 int ecode4 = 0 ;
26916 double val5 ;
26917 int ecode5 = 0 ;
70d7cb34
RD
26918 PyObject * obj0 = 0 ;
26919 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26920 PyObject * obj2 = 0 ;
26921 PyObject * obj3 = 0 ;
26922 PyObject * obj4 = 0 ;
70d7cb34 26923 char * kwnames[] = {
5c8c7dd3 26924 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26925 };
26926
5c8c7dd3
RD
26927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26929 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26931 }
5c8c7dd3
RD
26932 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26933 ecode2 = SWIG_AsVal_double(obj1, &val2);
26934 if (!SWIG_IsOK(ecode2)) {
26935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26936 }
26937 arg2 = static_cast< wxDouble >(val2);
26938 ecode3 = SWIG_AsVal_double(obj2, &val3);
26939 if (!SWIG_IsOK(ecode3)) {
26940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26941 }
26942 arg3 = static_cast< wxDouble >(val3);
26943 ecode4 = SWIG_AsVal_double(obj3, &val4);
26944 if (!SWIG_IsOK(ecode4)) {
26945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26946 }
26947 arg4 = static_cast< wxDouble >(val4);
26948 ecode5 = SWIG_AsVal_double(obj4, &val5);
26949 if (!SWIG_IsOK(ecode5)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26951 }
26952 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26953 {
5c8c7dd3 26954 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 resultobj = SWIG_Py_Void();
26958 return resultobj;
26959fail:
26960 return NULL;
26961}
26962
26963
5c8c7dd3 26964SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26965 PyObject *resultobj = 0;
5c8c7dd3
RD
26966 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26967 wxDouble arg2 ;
26968 wxDouble arg3 ;
26969 wxDouble arg4 ;
70d7cb34
RD
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
5c8c7dd3
RD
26972 double val2 ;
26973 int ecode2 = 0 ;
26974 double val3 ;
26975 int ecode3 = 0 ;
26976 double val4 ;
26977 int ecode4 = 0 ;
70d7cb34
RD
26978 PyObject * obj0 = 0 ;
26979 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26980 PyObject * obj2 = 0 ;
26981 PyObject * obj3 = 0 ;
70d7cb34 26982 char * kwnames[] = {
5c8c7dd3 26983 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26984 };
26985
5c8c7dd3
RD
26986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26988 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26990 }
5c8c7dd3
RD
26991 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26992 ecode2 = SWIG_AsVal_double(obj1, &val2);
26993 if (!SWIG_IsOK(ecode2)) {
26994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26995 }
26996 arg2 = static_cast< wxDouble >(val2);
26997 ecode3 = SWIG_AsVal_double(obj2, &val3);
26998 if (!SWIG_IsOK(ecode3)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27000 }
27001 arg3 = static_cast< wxDouble >(val3);
27002 ecode4 = SWIG_AsVal_double(obj3, &val4);
27003 if (!SWIG_IsOK(ecode4)) {
27004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27005 }
27006 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27007 {
5c8c7dd3 27008 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_Py_Void();
27012 return resultobj;
27013fail:
27014 return NULL;
27015}
27016
27017
5c8c7dd3 27018SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27019 PyObject *resultobj = 0;
5c8c7dd3
RD
27020 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27021 wxDouble arg2 ;
27022 wxDouble arg3 ;
27023 wxDouble arg4 ;
27024 wxDouble arg5 ;
27025 wxDouble arg6 ;
70d7cb34
RD
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 double val2 ;
27029 int ecode2 = 0 ;
27030 double val3 ;
27031 int ecode3 = 0 ;
27032 double val4 ;
27033 int ecode4 = 0 ;
27034 double val5 ;
27035 int ecode5 = 0 ;
27036 double val6 ;
27037 int ecode6 = 0 ;
70d7cb34
RD
27038 PyObject * obj0 = 0 ;
27039 PyObject * obj1 = 0 ;
27040 PyObject * obj2 = 0 ;
27041 PyObject * obj3 = 0 ;
27042 PyObject * obj4 = 0 ;
27043 PyObject * obj5 = 0 ;
70d7cb34 27044 char * kwnames[] = {
5c8c7dd3 27045 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27046 };
27047
5c8c7dd3
RD
27048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27050 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27052 }
5c8c7dd3
RD
27053 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27054 ecode2 = SWIG_AsVal_double(obj1, &val2);
27055 if (!SWIG_IsOK(ecode2)) {
27056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27057 }
27058 arg2 = static_cast< wxDouble >(val2);
27059 ecode3 = SWIG_AsVal_double(obj2, &val3);
27060 if (!SWIG_IsOK(ecode3)) {
27061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27062 }
27063 arg3 = static_cast< wxDouble >(val3);
27064 ecode4 = SWIG_AsVal_double(obj3, &val4);
27065 if (!SWIG_IsOK(ecode4)) {
27066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27067 }
27068 arg4 = static_cast< wxDouble >(val4);
27069 ecode5 = SWIG_AsVal_double(obj4, &val5);
27070 if (!SWIG_IsOK(ecode5)) {
27071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27072 }
27073 arg5 = static_cast< wxDouble >(val5);
27074 ecode6 = SWIG_AsVal_double(obj5, &val6);
27075 if (!SWIG_IsOK(ecode6)) {
27076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27077 }
27078 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27079 {
5c8c7dd3 27080 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = SWIG_Py_Void();
27084 return resultobj;
27085fail:
27086 return NULL;
27087}
27088
27089
5c8c7dd3 27090SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27091 PyObject *resultobj = 0;
5c8c7dd3
RD
27092 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27093 wxDouble arg2 ;
27094 wxDouble arg3 ;
27095 wxDouble arg4 ;
27096 wxDouble arg5 ;
70d7cb34
RD
27097 void *argp1 = 0 ;
27098 int res1 = 0 ;
5c8c7dd3
RD
27099 double val2 ;
27100 int ecode2 = 0 ;
27101 double val3 ;
27102 int ecode3 = 0 ;
27103 double val4 ;
27104 int ecode4 = 0 ;
27105 double val5 ;
27106 int ecode5 = 0 ;
27107 PyObject * obj0 = 0 ;
27108 PyObject * obj1 = 0 ;
27109 PyObject * obj2 = 0 ;
27110 PyObject * obj3 = 0 ;
27111 PyObject * obj4 = 0 ;
27112 char * kwnames[] = {
27113 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27114 };
70d7cb34 27115
5c8c7dd3
RD
27116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27118 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27120 }
5c8c7dd3
RD
27121 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27122 ecode2 = SWIG_AsVal_double(obj1, &val2);
27123 if (!SWIG_IsOK(ecode2)) {
27124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27125 }
27126 arg2 = static_cast< wxDouble >(val2);
27127 ecode3 = SWIG_AsVal_double(obj2, &val3);
27128 if (!SWIG_IsOK(ecode3)) {
27129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27130 }
27131 arg3 = static_cast< wxDouble >(val3);
27132 ecode4 = SWIG_AsVal_double(obj3, &val4);
27133 if (!SWIG_IsOK(ecode4)) {
27134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27135 }
27136 arg4 = static_cast< wxDouble >(val4);
27137 ecode5 = SWIG_AsVal_double(obj4, &val5);
27138 if (!SWIG_IsOK(ecode5)) {
27139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27140 }
27141 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27142 {
5c8c7dd3 27143 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27144 if (PyErr_Occurred()) SWIG_fail;
27145 }
27146 resultobj = SWIG_Py_Void();
27147 return resultobj;
27148fail:
27149 return NULL;
27150}
27151
27152
5c8c7dd3 27153SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27154 PyObject *resultobj = 0;
5c8c7dd3
RD
27155 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27156 wxDouble arg2 ;
27157 wxDouble arg3 ;
27158 wxDouble arg4 ;
27159 wxDouble arg5 ;
27160 wxDouble arg6 ;
70d7cb34
RD
27161 void *argp1 = 0 ;
27162 int res1 = 0 ;
5c8c7dd3
RD
27163 double val2 ;
27164 int ecode2 = 0 ;
27165 double val3 ;
27166 int ecode3 = 0 ;
27167 double val4 ;
27168 int ecode4 = 0 ;
27169 double val5 ;
27170 int ecode5 = 0 ;
27171 double val6 ;
27172 int ecode6 = 0 ;
70d7cb34
RD
27173 PyObject * obj0 = 0 ;
27174 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27175 PyObject * obj2 = 0 ;
27176 PyObject * obj3 = 0 ;
27177 PyObject * obj4 = 0 ;
27178 PyObject * obj5 = 0 ;
70d7cb34 27179 char * kwnames[] = {
5c8c7dd3 27180 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27181 };
27182
5c8c7dd3
RD
27183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27185 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27187 }
5c8c7dd3
RD
27188 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27189 ecode2 = SWIG_AsVal_double(obj1, &val2);
27190 if (!SWIG_IsOK(ecode2)) {
27191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27192 }
27193 arg2 = static_cast< wxDouble >(val2);
27194 ecode3 = SWIG_AsVal_double(obj2, &val3);
27195 if (!SWIG_IsOK(ecode3)) {
27196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27197 }
27198 arg3 = static_cast< wxDouble >(val3);
27199 ecode4 = SWIG_AsVal_double(obj3, &val4);
27200 if (!SWIG_IsOK(ecode4)) {
27201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27202 }
27203 arg4 = static_cast< wxDouble >(val4);
27204 ecode5 = SWIG_AsVal_double(obj4, &val5);
27205 if (!SWIG_IsOK(ecode5)) {
27206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27207 }
27208 arg5 = static_cast< wxDouble >(val5);
27209 ecode6 = SWIG_AsVal_double(obj5, &val6);
27210 if (!SWIG_IsOK(ecode6)) {
27211 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27212 }
27213 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27214 {
5c8c7dd3 27215 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
5c8c7dd3 27218 resultobj = SWIG_Py_Void();
70d7cb34
RD
27219 return resultobj;
27220fail:
27221 return NULL;
27222}
27223
27224
5c8c7dd3 27225SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27226 PyObject *resultobj = 0;
5c8c7dd3
RD
27227 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27228 void *result = 0 ;
70d7cb34
RD
27229 void *argp1 = 0 ;
27230 int res1 = 0 ;
27231 PyObject *swig_obj[1] ;
27232
27233 if (!args) SWIG_fail;
27234 swig_obj[0] = args;
5c8c7dd3 27235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27236 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27238 }
5c8c7dd3 27239 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27240 {
5c8c7dd3 27241 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
5c8c7dd3 27244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27245 return resultobj;
27246fail:
27247 return NULL;
27248}
27249
27250
5c8c7dd3 27251SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27252 PyObject *resultobj = 0;
5c8c7dd3
RD
27253 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27254 void *arg2 = (void *) 0 ;
70d7cb34
RD
27255 void *argp1 = 0 ;
27256 int res1 = 0 ;
5c8c7dd3 27257 int res2 ;
70d7cb34
RD
27258 PyObject * obj0 = 0 ;
27259 PyObject * obj1 = 0 ;
70d7cb34 27260 char * kwnames[] = {
5c8c7dd3 27261 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27262 };
27263
5c8c7dd3
RD
27264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27266 if (!SWIG_IsOK(res1)) {
8f514ab4 27267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27268 }
27269 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27270 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27271 if (!SWIG_IsOK(res2)) {
27272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27273 }
70d7cb34 27274 {
8f514ab4 27275 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_Py_Void();
27279 return resultobj;
27280fail:
27281 return NULL;
27282}
27283
27284
5c8c7dd3 27285SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27286 PyObject *resultobj = 0;
5c8c7dd3
RD
27287 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27288 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
5c8c7dd3
RD
27291 void *argp2 = 0 ;
27292 int res2 = 0 ;
70d7cb34
RD
27293 PyObject * obj0 = 0 ;
27294 PyObject * obj1 = 0 ;
70d7cb34 27295 char * kwnames[] = {
5c8c7dd3 27296 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27297 };
27298
5c8c7dd3
RD
27299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27301 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27303 }
5c8c7dd3
RD
27304 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27305 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27306 if (!SWIG_IsOK(res2)) {
27307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27308 }
27309 if (!argp2) {
27310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27311 }
27312 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27313 {
5c8c7dd3 27314 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27315 if (PyErr_Occurred()) SWIG_fail;
27316 }
27317 resultobj = SWIG_Py_Void();
27318 return resultobj;
27319fail:
27320 return NULL;
27321}
27322
27323
5c8c7dd3 27324SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27325 PyObject *resultobj = 0;
5c8c7dd3
RD
27326 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27327 wxRect2DDouble result;
70d7cb34
RD
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
5c8c7dd3 27330 PyObject *swig_obj[1] ;
70d7cb34 27331
5c8c7dd3
RD
27332 if (!args) SWIG_fail;
27333 swig_obj[0] = args;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27335 if (!SWIG_IsOK(res1)) {
8f514ab4 27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27337 }
5c8c7dd3 27338 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27339 {
8f514ab4 27340 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
5c8c7dd3 27343 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27344 return resultobj;
27345fail:
27346 return NULL;
27347}
27348
27349
5c8c7dd3 27350SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27351 PyObject *resultobj = 0;
5c8c7dd3
RD
27352 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27353 wxDouble arg2 ;
27354 wxDouble arg3 ;
8f514ab4 27355 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27356 bool result;
70d7cb34
RD
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
5c8c7dd3
RD
27359 double val2 ;
27360 int ecode2 = 0 ;
27361 double val3 ;
27362 int ecode3 = 0 ;
27363 int val4 ;
27364 int ecode4 = 0 ;
70d7cb34 27365
5c8c7dd3
RD
27366 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27368 if (!SWIG_IsOK(res1)) {
8f514ab4 27369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27370 }
5c8c7dd3
RD
27371 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27372 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27373 if (!SWIG_IsOK(ecode2)) {
27374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27375 }
27376 arg2 = static_cast< wxDouble >(val2);
27377 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27378 if (!SWIG_IsOK(ecode3)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27380 }
27381 arg3 = static_cast< wxDouble >(val3);
27382 if (swig_obj[3]) {
27383 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27384 if (!SWIG_IsOK(ecode4)) {
27385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27386 }
27387 arg4 = static_cast< int >(val4);
70d7cb34
RD
27388 }
27389 {
8f514ab4 27390 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
5c8c7dd3
RD
27393 {
27394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27395 }
27396 return resultobj;
27397fail:
27398 return NULL;
27399}
27400
27401
5c8c7dd3 27402SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27403 PyObject *resultobj = 0;
5c8c7dd3
RD
27404 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27405 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 27406 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27407 bool result;
70d7cb34
RD
27408 void *argp1 = 0 ;
27409 int res1 = 0 ;
5c8c7dd3 27410 void *argp2 = 0 ;
70d7cb34 27411 int res2 = 0 ;
5c8c7dd3
RD
27412 int val3 ;
27413 int ecode3 = 0 ;
70d7cb34 27414
5c8c7dd3
RD
27415 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27417 if (!SWIG_IsOK(res1)) {
8f514ab4 27418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27419 }
5c8c7dd3
RD
27420 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27421 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27422 if (!SWIG_IsOK(res2)) {
27423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27424 }
5c8c7dd3
RD
27425 if (!argp2) {
27426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27427 }
27428 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27429 if (swig_obj[2]) {
27430 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27431 if (!SWIG_IsOK(ecode3)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27433 }
27434 arg3 = static_cast< int >(val3);
70d7cb34
RD
27435 }
27436 {
8f514ab4 27437 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27438 if (PyErr_Occurred()) SWIG_fail;
27439 }
5c8c7dd3
RD
27440 {
27441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27442 }
27443 return resultobj;
27444fail:
27445 return NULL;
27446}
27447
27448
5c8c7dd3
RD
27449SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27450 int argc;
27451 PyObject *argv[5];
70d7cb34 27452
5c8c7dd3
RD
27453 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27454 --argc;
27455 if ((argc >= 2) && (argc <= 3)) {
27456 int _v = 0;
27457 {
27458 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27459 _v = SWIG_CheckState(res);
27460 }
27461 if (!_v) goto check_1;
27462 if (argc > 2) {
27463 {
27464 {
27465 int res = SWIG_AsVal_int(argv[2], NULL);
27466 _v = SWIG_CheckState(res);
27467 }
27468 }
27469 if (!_v) goto check_1;
27470 }
27471 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27472 }
5c8c7dd3
RD
27473check_1:
27474
27475 if ((argc >= 3) && (argc <= 4)) {
27476 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27477 }
5c8c7dd3 27478
70d7cb34 27479fail:
5c8c7dd3 27480 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27481 return NULL;
27482}
27483
27484
5c8c7dd3 27485SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27486 PyObject *obj;
27487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27488 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27489 return SWIG_Py_Void();
27490}
27491
8f514ab4
RD
27492SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27493 return SWIG_Python_InitShadowInstance(args);
27494}
27495
5c8c7dd3
RD
27496SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27497 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27498 return 1;
27499}
27500
27501
27502SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27503 PyObject *pyobj = 0;
27504
27505 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27506 return pyobj;
27507}
27508
27509
27510SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27511 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27512 return 1;
27513}
27514
27515
27516SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27517 PyObject *pyobj = 0;
27518
27519 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27520 return pyobj;
27521}
27522
27523
27524SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27525 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27526 return 1;
27527}
27528
27529
27530SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27531 PyObject *pyobj = 0;
27532
27533 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27534 return pyobj;
27535}
27536
27537
27538SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27539 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27540 return 1;
27541}
27542
27543
27544SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27545 PyObject *pyobj = 0;
27546
27547 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27548 return pyobj;
27549}
27550
27551
27552SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27553 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27554 return 1;
27555}
27556
27557
27558SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27559 PyObject *pyobj = 0;
27560
27561 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27562 return pyobj;
27563}
27564
27565
70d7cb34
RD
27566SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27567 PyObject *resultobj = 0;
27568 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 PyObject *swig_obj[1] ;
27572
27573 if (!args) SWIG_fail;
27574 swig_obj[0] = args;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27578 }
27579 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27580 {
27581 delete arg1;
27582
27583 if (PyErr_Occurred()) SWIG_fail;
27584 }
27585 resultobj = SWIG_Py_Void();
27586 return resultobj;
27587fail:
27588 return NULL;
27589}
27590
27591
27592SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27593 PyObject *resultobj = 0;
27594 wxWindowDC *arg1 = 0 ;
27595 wxGraphicsContext *result = 0 ;
27596 void *argp1 = 0 ;
27597 int res1 = 0 ;
27598
27599 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27601 if (!SWIG_IsOK(res1)) {
27602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27603 }
27604 if (!argp1) {
27605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27606 }
27607 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27608 {
27609 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27610 if (PyErr_Occurred()) SWIG_fail;
27611 }
27612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27613 return resultobj;
27614fail:
27615 return NULL;
27616}
27617
27618
27619SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27620 PyObject *resultobj = 0;
27621 wxWindow *arg1 = (wxWindow *) 0 ;
27622 wxGraphicsContext *result = 0 ;
27623 void *argp1 = 0 ;
27624 int res1 = 0 ;
27625
27626 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27628 if (!SWIG_IsOK(res1)) {
27629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27630 }
27631 arg1 = reinterpret_cast< wxWindow * >(argp1);
27632 {
27633 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27637 return resultobj;
27638fail:
27639 return NULL;
27640}
27641
27642
27643SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27644 int argc;
27645 PyObject *argv[2];
27646
27647 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27648 --argc;
27649 if (argc == 1) {
27650 int _v = 0;
27651 {
27652 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27653 _v = SWIG_CheckState(res);
27654 }
27655 if (!_v) goto check_1;
27656 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27657 }
27658check_1:
27659
27660 if (argc == 1) {
27661 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27662 }
27663
27664fail:
27665 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27666 return NULL;
27667}
27668
27669
f89238b9
RD
27670SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27671 PyObject *resultobj = 0;
27672 wxGraphicsContext *result = 0 ;
27673
27674 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27675 {
27676 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27677 if (PyErr_Occurred()) SWIG_fail;
27678 }
27679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27680 return resultobj;
27681fail:
27682 return NULL;
27683}
27684
27685
70d7cb34
RD
27686SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27687 PyObject *resultobj = 0;
27688 void *arg1 = (void *) 0 ;
27689 wxGraphicsContext *result = 0 ;
27690 int res1 ;
27691 PyObject * obj0 = 0 ;
27692 char * kwnames[] = {
27693 (char *) "context", NULL
27694 };
27695
27696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27697 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27698 if (!SWIG_IsOK(res1)) {
27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27700 }
27701 {
27702 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27703 if (PyErr_Occurred()) SWIG_fail;
27704 }
27705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27706 return resultobj;
27707fail:
27708 return NULL;
27709}
27710
27711
27712SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27713 PyObject *resultobj = 0;
27714 void *arg1 = (void *) 0 ;
27715 wxGraphicsContext *result = 0 ;
27716 int res1 ;
27717 PyObject * obj0 = 0 ;
27718 char * kwnames[] = {
27719 (char *) "window", NULL
27720 };
27721
27722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27723 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27724 if (!SWIG_IsOK(res1)) {
27725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27726 }
27727 {
27728 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27729 if (PyErr_Occurred()) SWIG_fail;
27730 }
27731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27732 return resultobj;
27733fail:
27734 return NULL;
27735}
27736
27737
27738SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27739 PyObject *resultobj = 0;
27740 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27741 wxGraphicsPath result;
70d7cb34
RD
27742 void *argp1 = 0 ;
27743 int res1 = 0 ;
27744 PyObject *swig_obj[1] ;
27745
27746 if (!args) SWIG_fail;
27747 swig_obj[0] = args;
27748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27749 if (!SWIG_IsOK(res1)) {
27750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27751 }
27752 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27753 {
5c8c7dd3 27754 result = (arg1)->CreatePath();
70d7cb34
RD
27755 if (PyErr_Occurred()) SWIG_fail;
27756 }
5c8c7dd3 27757 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27758 return resultobj;
27759fail:
27760 return NULL;
27761}
27762
27763
70d7cb34 27764SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27765 PyObject *resultobj = 0;
70d7cb34
RD
27766 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27767 wxPen *arg2 = 0 ;
27768 wxGraphicsPen result;
72ef6efb
RD
27769 void *argp1 = 0 ;
27770 int res1 = 0 ;
70d7cb34
RD
27771 void *argp2 = 0 ;
27772 int res2 = 0 ;
72ef6efb
RD
27773 PyObject * obj0 = 0 ;
27774 PyObject * obj1 = 0 ;
72ef6efb 27775 char * kwnames[] = {
70d7cb34 27776 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27777 };
27778
70d7cb34
RD
27779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27781 if (!SWIG_IsOK(res1)) {
70d7cb34 27782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27783 }
70d7cb34
RD
27784 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27786 if (!SWIG_IsOK(res2)) {
27787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27788 }
27789 if (!argp2) {
27790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27791 }
27792 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27793 {
70d7cb34 27794 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
70d7cb34 27797 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27798 return resultobj;
27799fail:
27800 return NULL;
27801}
27802
27803
70d7cb34 27804SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27805 PyObject *resultobj = 0;
70d7cb34
RD
27806 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27807 wxBrush *arg2 = 0 ;
27808 wxGraphicsBrush result;
72ef6efb
RD
27809 void *argp1 = 0 ;
27810 int res1 = 0 ;
70d7cb34
RD
27811 void *argp2 = 0 ;
27812 int res2 = 0 ;
72ef6efb
RD
27813 PyObject * obj0 = 0 ;
27814 PyObject * obj1 = 0 ;
72ef6efb 27815 char * kwnames[] = {
70d7cb34 27816 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27817 };
27818
70d7cb34
RD
27819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27821 if (!SWIG_IsOK(res1)) {
70d7cb34 27822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27823 }
70d7cb34
RD
27824 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27826 if (!SWIG_IsOK(res2)) {
27827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27828 }
27829 if (!argp2) {
27830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27831 }
27832 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27833 {
70d7cb34 27834 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27835 if (PyErr_Occurred()) SWIG_fail;
27836 }
70d7cb34 27837 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27838 return resultobj;
27839fail:
27840 return NULL;
27841}
27842
27843
70d7cb34 27844SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27845 PyObject *resultobj = 0;
70d7cb34 27846 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27847 wxDouble arg2 ;
27848 wxDouble arg3 ;
27849 wxDouble arg4 ;
27850 wxDouble arg5 ;
70d7cb34
RD
27851 wxColour *arg6 = 0 ;
27852 wxColour *arg7 = 0 ;
27853 wxGraphicsBrush result;
72ef6efb
RD
27854 void *argp1 = 0 ;
27855 int res1 = 0 ;
27856 double val2 ;
27857 int ecode2 = 0 ;
27858 double val3 ;
27859 int ecode3 = 0 ;
27860 double val4 ;
27861 int ecode4 = 0 ;
27862 double val5 ;
27863 int ecode5 = 0 ;
70d7cb34
RD
27864 wxColour temp6 ;
27865 wxColour temp7 ;
72ef6efb
RD
27866 PyObject * obj0 = 0 ;
27867 PyObject * obj1 = 0 ;
27868 PyObject * obj2 = 0 ;
27869 PyObject * obj3 = 0 ;
27870 PyObject * obj4 = 0 ;
70d7cb34
RD
27871 PyObject * obj5 = 0 ;
27872 PyObject * obj6 = 0 ;
72ef6efb 27873 char * kwnames[] = {
70d7cb34 27874 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27875 };
27876
70d7cb34
RD
27877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27879 if (!SWIG_IsOK(res1)) {
70d7cb34 27880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27881 }
70d7cb34 27882 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27883 ecode2 = SWIG_AsVal_double(obj1, &val2);
27884 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27886 }
27887 arg2 = static_cast< wxDouble >(val2);
27888 ecode3 = SWIG_AsVal_double(obj2, &val3);
27889 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27891 }
27892 arg3 = static_cast< wxDouble >(val3);
27893 ecode4 = SWIG_AsVal_double(obj3, &val4);
27894 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27896 }
27897 arg4 = static_cast< wxDouble >(val4);
27898 ecode5 = SWIG_AsVal_double(obj4, &val5);
27899 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27901 }
27902 arg5 = static_cast< wxDouble >(val5);
27903 {
70d7cb34
RD
27904 arg6 = &temp6;
27905 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27906 }
70d7cb34
RD
27907 {
27908 arg7 = &temp7;
27909 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27910 }
72ef6efb 27911 {
70d7cb34 27912 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27913 if (PyErr_Occurred()) SWIG_fail;
27914 }
70d7cb34 27915 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27916 return resultobj;
27917fail:
27918 return NULL;
27919}
27920
27921
70d7cb34 27922SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27923 PyObject *resultobj = 0;
70d7cb34 27924 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27925 wxDouble arg2 ;
27926 wxDouble arg3 ;
27927 wxDouble arg4 ;
27928 wxDouble arg5 ;
27929 wxDouble arg6 ;
70d7cb34
RD
27930 wxColour *arg7 = 0 ;
27931 wxColour *arg8 = 0 ;
27932 wxGraphicsBrush result;
72ef6efb
RD
27933 void *argp1 = 0 ;
27934 int res1 = 0 ;
27935 double val2 ;
27936 int ecode2 = 0 ;
27937 double val3 ;
27938 int ecode3 = 0 ;
27939 double val4 ;
27940 int ecode4 = 0 ;
27941 double val5 ;
27942 int ecode5 = 0 ;
27943 double val6 ;
27944 int ecode6 = 0 ;
70d7cb34
RD
27945 wxColour temp7 ;
27946 wxColour temp8 ;
72ef6efb
RD
27947 PyObject * obj0 = 0 ;
27948 PyObject * obj1 = 0 ;
27949 PyObject * obj2 = 0 ;
27950 PyObject * obj3 = 0 ;
27951 PyObject * obj4 = 0 ;
27952 PyObject * obj5 = 0 ;
70d7cb34
RD
27953 PyObject * obj6 = 0 ;
27954 PyObject * obj7 = 0 ;
72ef6efb 27955 char * kwnames[] = {
70d7cb34 27956 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27957 };
27958
70d7cb34
RD
27959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27961 if (!SWIG_IsOK(res1)) {
70d7cb34 27962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27963 }
70d7cb34 27964 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27965 ecode2 = SWIG_AsVal_double(obj1, &val2);
27966 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27968 }
27969 arg2 = static_cast< wxDouble >(val2);
27970 ecode3 = SWIG_AsVal_double(obj2, &val3);
27971 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27973 }
27974 arg3 = static_cast< wxDouble >(val3);
27975 ecode4 = SWIG_AsVal_double(obj3, &val4);
27976 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27978 }
27979 arg4 = static_cast< wxDouble >(val4);
27980 ecode5 = SWIG_AsVal_double(obj4, &val5);
27981 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27982 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27983 }
27984 arg5 = static_cast< wxDouble >(val5);
27985 ecode6 = SWIG_AsVal_double(obj5, &val6);
27986 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27987 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27988 }
27989 arg6 = static_cast< wxDouble >(val6);
27990 {
70d7cb34
RD
27991 arg7 = &temp7;
27992 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27993 }
27994 {
27995 arg8 = &temp8;
27996 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27997 }
27998 {
27999 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28000 if (PyErr_Occurred()) SWIG_fail;
28001 }
70d7cb34 28002 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28003 return resultobj;
28004fail:
28005 return NULL;
28006}
28007
28008
70d7cb34 28009SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28010 PyObject *resultobj = 0;
28011 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28012 wxFont *arg2 = 0 ;
28013 wxColour const &arg3_defvalue = *wxBLACK ;
28014 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28015 wxGraphicsFont result;
72ef6efb
RD
28016 void *argp1 = 0 ;
28017 int res1 = 0 ;
70d7cb34
RD
28018 void *argp2 = 0 ;
28019 int res2 = 0 ;
28020 wxColour temp3 ;
28021 PyObject * obj0 = 0 ;
28022 PyObject * obj1 = 0 ;
28023 PyObject * obj2 = 0 ;
28024 char * kwnames[] = {
28025 (char *) "self",(char *) "font",(char *) "col", NULL
28026 };
72ef6efb 28027
70d7cb34
RD
28028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28030 if (!SWIG_IsOK(res1)) {
70d7cb34 28031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28032 }
28033 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28035 if (!SWIG_IsOK(res2)) {
28036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28037 }
70d7cb34
RD
28038 if (!argp2) {
28039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28040 }
70d7cb34
RD
28041 arg2 = reinterpret_cast< wxFont * >(argp2);
28042 if (obj2) {
28043 {
28044 arg3 = &temp3;
28045 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28046 }
72ef6efb 28047 }
72ef6efb 28048 {
70d7cb34 28049 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28050 if (PyErr_Occurred()) SWIG_fail;
28051 }
70d7cb34 28052 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28053 return resultobj;
28054fail:
28055 return NULL;
28056}
28057
28058
70d7cb34 28059SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28060 PyObject *resultobj = 0;
70d7cb34
RD
28061 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28062 wxDouble arg2 = (wxDouble) 1.0 ;
28063 wxDouble arg3 = (wxDouble) 0.0 ;
28064 wxDouble arg4 = (wxDouble) 0.0 ;
28065 wxDouble arg5 = (wxDouble) 1.0 ;
28066 wxDouble arg6 = (wxDouble) 0.0 ;
28067 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28068 wxGraphicsMatrix result;
0a27f394
RD
28069 void *argp1 = 0 ;
28070 int res1 = 0 ;
70d7cb34
RD
28071 double val2 ;
28072 int ecode2 = 0 ;
28073 double val3 ;
28074 int ecode3 = 0 ;
28075 double val4 ;
28076 int ecode4 = 0 ;
28077 double val5 ;
28078 int ecode5 = 0 ;
28079 double val6 ;
28080 int ecode6 = 0 ;
28081 double val7 ;
28082 int ecode7 = 0 ;
28083 PyObject * obj0 = 0 ;
28084 PyObject * obj1 = 0 ;
28085 PyObject * obj2 = 0 ;
28086 PyObject * obj3 = 0 ;
28087 PyObject * obj4 = 0 ;
28088 PyObject * obj5 = 0 ;
28089 PyObject * obj6 = 0 ;
28090 char * kwnames[] = {
28091 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28092 };
0a27f394 28093
70d7cb34
RD
28094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28096 if (!SWIG_IsOK(res1)) {
70d7cb34 28097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28098 }
70d7cb34
RD
28099 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28100 if (obj1) {
28101 ecode2 = SWIG_AsVal_double(obj1, &val2);
28102 if (!SWIG_IsOK(ecode2)) {
28103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28104 }
28105 arg2 = static_cast< wxDouble >(val2);
0a27f394 28106 }
70d7cb34
RD
28107 if (obj2) {
28108 ecode3 = SWIG_AsVal_double(obj2, &val3);
28109 if (!SWIG_IsOK(ecode3)) {
28110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28111 }
28112 arg3 = static_cast< wxDouble >(val3);
0a27f394 28113 }
70d7cb34
RD
28114 if (obj3) {
28115 ecode4 = SWIG_AsVal_double(obj3, &val4);
28116 if (!SWIG_IsOK(ecode4)) {
28117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28118 }
28119 arg4 = static_cast< wxDouble >(val4);
0a27f394 28120 }
70d7cb34
RD
28121 if (obj4) {
28122 ecode5 = SWIG_AsVal_double(obj4, &val5);
28123 if (!SWIG_IsOK(ecode5)) {
28124 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28125 }
28126 arg5 = static_cast< wxDouble >(val5);
0a27f394 28127 }
70d7cb34
RD
28128 if (obj5) {
28129 ecode6 = SWIG_AsVal_double(obj5, &val6);
28130 if (!SWIG_IsOK(ecode6)) {
28131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28132 }
28133 arg6 = static_cast< wxDouble >(val6);
0a27f394 28134 }
70d7cb34
RD
28135 if (obj6) {
28136 ecode7 = SWIG_AsVal_double(obj6, &val7);
28137 if (!SWIG_IsOK(ecode7)) {
28138 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28139 }
28140 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28141 }
72ef6efb 28142 {
5c8c7dd3 28143 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28144 if (PyErr_Occurred()) SWIG_fail;
28145 }
5c8c7dd3 28146 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28147 return resultobj;
28148fail:
28149 return NULL;
28150}
28151
28152
28153SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28154 PyObject *resultobj = 0;
28155 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28156 void *argp1 = 0 ;
28157 int res1 = 0 ;
28158 PyObject *swig_obj[1] ;
28159
28160 if (!args) SWIG_fail;
28161 swig_obj[0] = args;
28162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28165 }
28166 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28167 {
72ef6efb 28168 (arg1)->PushState();
72ef6efb
RD
28169 if (PyErr_Occurred()) SWIG_fail;
28170 }
28171 resultobj = SWIG_Py_Void();
28172 return resultobj;
28173fail:
28174 return NULL;
28175}
28176
28177
28178SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28179 PyObject *resultobj = 0;
28180 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 PyObject *swig_obj[1] ;
28184
28185 if (!args) SWIG_fail;
28186 swig_obj[0] = args;
28187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28188 if (!SWIG_IsOK(res1)) {
28189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28190 }
28191 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28192 {
72ef6efb 28193 (arg1)->PopState();
72ef6efb
RD
28194 if (PyErr_Occurred()) SWIG_fail;
28195 }
28196 resultobj = SWIG_Py_Void();
28197 return resultobj;
28198fail:
28199 return NULL;
28200}
28201
28202
0a27f394 28203SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28204 PyObject *resultobj = 0;
28205 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28206 wxRegion *arg2 = 0 ;
28207 void *argp1 = 0 ;
28208 int res1 = 0 ;
28209 void *argp2 = 0 ;
28210 int res2 = 0 ;
28211 PyObject * obj0 = 0 ;
28212 PyObject * obj1 = 0 ;
28213 char * kwnames[] = {
28214 (char *) "self",(char *) "region", NULL
28215 };
28216
0a27f394 28217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28219 if (!SWIG_IsOK(res1)) {
0a27f394 28220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28221 }
28222 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28224 if (!SWIG_IsOK(res2)) {
0a27f394 28225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28226 }
28227 if (!argp2) {
0a27f394 28228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28229 }
28230 arg2 = reinterpret_cast< wxRegion * >(argp2);
28231 {
72ef6efb 28232 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28233 if (PyErr_Occurred()) SWIG_fail;
28234 }
28235 resultobj = SWIG_Py_Void();
28236 return resultobj;
28237fail:
28238 return NULL;
28239}
28240
28241
0a27f394
RD
28242SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28243 PyObject *resultobj = 0;
28244 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28245 wxDouble arg2 ;
28246 wxDouble arg3 ;
28247 wxDouble arg4 ;
28248 wxDouble arg5 ;
28249 void *argp1 = 0 ;
28250 int res1 = 0 ;
28251 double val2 ;
28252 int ecode2 = 0 ;
28253 double val3 ;
28254 int ecode3 = 0 ;
28255 double val4 ;
28256 int ecode4 = 0 ;
28257 double val5 ;
28258 int ecode5 = 0 ;
28259 PyObject * obj0 = 0 ;
28260 PyObject * obj1 = 0 ;
28261 PyObject * obj2 = 0 ;
28262 PyObject * obj3 = 0 ;
28263 PyObject * obj4 = 0 ;
28264 char * kwnames[] = {
28265 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28266 };
28267
28268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28270 if (!SWIG_IsOK(res1)) {
28271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28272 }
28273 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28274 ecode2 = SWIG_AsVal_double(obj1, &val2);
28275 if (!SWIG_IsOK(ecode2)) {
28276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28277 }
28278 arg2 = static_cast< wxDouble >(val2);
28279 ecode3 = SWIG_AsVal_double(obj2, &val3);
28280 if (!SWIG_IsOK(ecode3)) {
28281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28282 }
28283 arg3 = static_cast< wxDouble >(val3);
28284 ecode4 = SWIG_AsVal_double(obj3, &val4);
28285 if (!SWIG_IsOK(ecode4)) {
28286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28287 }
28288 arg4 = static_cast< wxDouble >(val4);
28289 ecode5 = SWIG_AsVal_double(obj4, &val5);
28290 if (!SWIG_IsOK(ecode5)) {
28291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28292 }
28293 arg5 = static_cast< wxDouble >(val5);
28294 {
28295 (arg1)->Clip(arg2,arg3,arg4,arg5);
28296 if (PyErr_Occurred()) SWIG_fail;
28297 }
28298 resultobj = SWIG_Py_Void();
28299 return resultobj;
28300fail:
28301 return NULL;
28302}
28303
28304
28305SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28306 PyObject *resultobj = 0;
28307 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28308 void *argp1 = 0 ;
28309 int res1 = 0 ;
28310 PyObject *swig_obj[1] ;
28311
28312 if (!args) SWIG_fail;
28313 swig_obj[0] = args;
28314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28315 if (!SWIG_IsOK(res1)) {
28316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28317 }
28318 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28319 {
28320 (arg1)->ResetClip();
28321 if (PyErr_Occurred()) SWIG_fail;
28322 }
28323 resultobj = SWIG_Py_Void();
28324 return resultobj;
28325fail:
28326 return NULL;
28327}
28328
28329
28330SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28331 PyObject *resultobj = 0;
28332 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28333 void *result = 0 ;
28334 void *argp1 = 0 ;
28335 int res1 = 0 ;
28336 PyObject *swig_obj[1] ;
28337
28338 if (!args) SWIG_fail;
28339 swig_obj[0] = args;
28340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28341 if (!SWIG_IsOK(res1)) {
28342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28343 }
28344 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28345 {
28346 result = (void *)(arg1)->GetNativeContext();
28347 if (PyErr_Occurred()) SWIG_fail;
28348 }
28349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28350 return resultobj;
28351fail:
28352 return NULL;
28353}
28354
28355
72ef6efb
RD
28356SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28357 PyObject *resultobj = 0;
28358 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28359 wxDouble arg2 ;
28360 wxDouble arg3 ;
28361 void *argp1 = 0 ;
28362 int res1 = 0 ;
28363 double val2 ;
28364 int ecode2 = 0 ;
28365 double val3 ;
28366 int ecode3 = 0 ;
28367 PyObject * obj0 = 0 ;
28368 PyObject * obj1 = 0 ;
28369 PyObject * obj2 = 0 ;
28370 char * kwnames[] = {
28371 (char *) "self",(char *) "dx",(char *) "dy", NULL
28372 };
28373
28374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28376 if (!SWIG_IsOK(res1)) {
28377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28378 }
28379 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28380 ecode2 = SWIG_AsVal_double(obj1, &val2);
28381 if (!SWIG_IsOK(ecode2)) {
28382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28383 }
28384 arg2 = static_cast< wxDouble >(val2);
28385 ecode3 = SWIG_AsVal_double(obj2, &val3);
28386 if (!SWIG_IsOK(ecode3)) {
28387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28388 }
28389 arg3 = static_cast< wxDouble >(val3);
28390 {
72ef6efb 28391 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 resultobj = SWIG_Py_Void();
28395 return resultobj;
28396fail:
28397 return NULL;
28398}
28399
28400
28401SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28402 PyObject *resultobj = 0;
28403 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28404 wxDouble arg2 ;
28405 wxDouble arg3 ;
28406 void *argp1 = 0 ;
28407 int res1 = 0 ;
28408 double val2 ;
28409 int ecode2 = 0 ;
28410 double val3 ;
28411 int ecode3 = 0 ;
28412 PyObject * obj0 = 0 ;
28413 PyObject * obj1 = 0 ;
28414 PyObject * obj2 = 0 ;
28415 char * kwnames[] = {
28416 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28417 };
28418
28419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28421 if (!SWIG_IsOK(res1)) {
28422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28423 }
28424 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28425 ecode2 = SWIG_AsVal_double(obj1, &val2);
28426 if (!SWIG_IsOK(ecode2)) {
28427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28428 }
28429 arg2 = static_cast< wxDouble >(val2);
28430 ecode3 = SWIG_AsVal_double(obj2, &val3);
28431 if (!SWIG_IsOK(ecode3)) {
28432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28433 }
28434 arg3 = static_cast< wxDouble >(val3);
28435 {
72ef6efb 28436 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28437 if (PyErr_Occurred()) SWIG_fail;
28438 }
28439 resultobj = SWIG_Py_Void();
28440 return resultobj;
28441fail:
28442 return NULL;
28443}
28444
28445
28446SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = 0;
28448 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28449 wxDouble arg2 ;
28450 void *argp1 = 0 ;
28451 int res1 = 0 ;
28452 double val2 ;
28453 int ecode2 = 0 ;
28454 PyObject * obj0 = 0 ;
28455 PyObject * obj1 = 0 ;
28456 char * kwnames[] = {
28457 (char *) "self",(char *) "angle", NULL
28458 };
28459
28460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28462 if (!SWIG_IsOK(res1)) {
28463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28464 }
28465 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28466 ecode2 = SWIG_AsVal_double(obj1, &val2);
28467 if (!SWIG_IsOK(ecode2)) {
28468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28469 }
28470 arg2 = static_cast< wxDouble >(val2);
28471 {
72ef6efb 28472 (arg1)->Rotate(arg2);
72ef6efb
RD
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 resultobj = SWIG_Py_Void();
28476 return resultobj;
28477fail:
28478 return NULL;
28479}
28480
28481
5c8c7dd3
RD
28482SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28483 PyObject *resultobj = 0;
28484 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28485 wxGraphicsMatrix *arg2 = 0 ;
28486 void *argp1 = 0 ;
28487 int res1 = 0 ;
28488 void *argp2 = 0 ;
28489 int res2 = 0 ;
28490 PyObject * obj0 = 0 ;
28491 PyObject * obj1 = 0 ;
28492 char * kwnames[] = {
28493 (char *) "self",(char *) "matrix", NULL
28494 };
28495
28496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28498 if (!SWIG_IsOK(res1)) {
28499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28500 }
28501 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28503 if (!SWIG_IsOK(res2)) {
28504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28505 }
28506 if (!argp2) {
28507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28508 }
28509 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28510 {
28511 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28512 if (PyErr_Occurred()) SWIG_fail;
28513 }
28514 resultobj = SWIG_Py_Void();
28515 return resultobj;
28516fail:
28517 return NULL;
28518}
28519
28520
28521SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28522 PyObject *resultobj = 0;
28523 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28524 wxGraphicsMatrix *arg2 = 0 ;
28525 void *argp1 = 0 ;
28526 int res1 = 0 ;
28527 void *argp2 = 0 ;
28528 int res2 = 0 ;
28529 PyObject * obj0 = 0 ;
28530 PyObject * obj1 = 0 ;
28531 char * kwnames[] = {
28532 (char *) "self",(char *) "matrix", NULL
28533 };
28534
28535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28537 if (!SWIG_IsOK(res1)) {
28538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28539 }
28540 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28542 if (!SWIG_IsOK(res2)) {
28543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28544 }
28545 if (!argp2) {
28546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28547 }
28548 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28549 {
28550 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28551 if (PyErr_Occurred()) SWIG_fail;
28552 }
28553 resultobj = SWIG_Py_Void();
28554 return resultobj;
28555fail:
28556 return NULL;
28557}
28558
28559
28560SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28561 PyObject *resultobj = 0;
28562 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28563 wxGraphicsMatrix result;
28564 void *argp1 = 0 ;
28565 int res1 = 0 ;
28566 PyObject *swig_obj[1] ;
28567
28568 if (!args) SWIG_fail;
28569 swig_obj[0] = args;
28570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28571 if (!SWIG_IsOK(res1)) {
28572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28573 }
28574 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28575 {
28576 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28580 return resultobj;
28581fail:
28582 return NULL;
28583}
28584
28585
70d7cb34
RD
28586SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28587 PyObject *resultobj = 0;
28588 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28589 wxGraphicsPen *arg2 = 0 ;
28590 void *argp1 = 0 ;
28591 int res1 = 0 ;
28592 void *argp2 = 0 ;
28593 int res2 = 0 ;
28594
28595 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28597 if (!SWIG_IsOK(res1)) {
28598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28599 }
28600 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28601 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28602 if (!SWIG_IsOK(res2)) {
28603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28604 }
28605 if (!argp2) {
28606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28607 }
28608 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28609 {
28610 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 resultobj = SWIG_Py_Void();
28614 return resultobj;
28615fail:
28616 return NULL;
28617}
28618
28619
28620SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28621 PyObject *resultobj = 0;
28622 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28623 wxPen *arg2 = 0 ;
28624 void *argp1 = 0 ;
28625 int res1 = 0 ;
28626 void *argp2 = 0 ;
28627 int res2 = 0 ;
72ef6efb 28628
70d7cb34
RD
28629 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28631 if (!SWIG_IsOK(res1)) {
28632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28633 }
28634 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28635 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28636 if (!SWIG_IsOK(res2)) {
28637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28638 }
28639 if (!argp2) {
28640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28641 }
28642 arg2 = reinterpret_cast< wxPen * >(argp2);
28643 {
72ef6efb 28644 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28645 if (PyErr_Occurred()) SWIG_fail;
28646 }
28647 resultobj = SWIG_Py_Void();
28648 return resultobj;
28649fail:
28650 return NULL;
28651}
28652
28653
70d7cb34
RD
28654SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28655 int argc;
28656 PyObject *argv[3];
28657
28658 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28659 --argc;
28660 if (argc == 2) {
28661 int _v = 0;
28662 {
28663 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28664 _v = SWIG_CheckState(res);
28665 }
28666 if (!_v) goto check_1;
28667 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28668 }
28669check_1:
28670
28671 if (argc == 2) {
28672 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28673 }
28674
28675fail:
28676 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28677 return NULL;
28678}
28679
28680
28681SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28682 PyObject *resultobj = 0;
28683 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28684 wxGraphicsBrush *arg2 = 0 ;
28685 void *argp1 = 0 ;
28686 int res1 = 0 ;
28687 void *argp2 = 0 ;
28688 int res2 = 0 ;
28689
28690 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
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_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28694 }
28695 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28696 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28697 if (!SWIG_IsOK(res2)) {
28698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28699 }
28700 if (!argp2) {
28701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28702 }
28703 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28704 {
28705 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 resultobj = SWIG_Py_Void();
28709 return resultobj;
28710fail:
28711 return NULL;
28712}
28713
28714
28715SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28716 PyObject *resultobj = 0;
28717 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28718 wxBrush *arg2 = 0 ;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 void *argp2 = 0 ;
28722 int res2 = 0 ;
72ef6efb 28723
70d7cb34
RD
28724 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28726 if (!SWIG_IsOK(res1)) {
28727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28728 }
28729 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28730 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28731 if (!SWIG_IsOK(res2)) {
28732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28733 }
28734 if (!argp2) {
28735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28736 }
28737 arg2 = reinterpret_cast< wxBrush * >(argp2);
28738 {
72ef6efb 28739 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28740 if (PyErr_Occurred()) SWIG_fail;
28741 }
28742 resultobj = SWIG_Py_Void();
28743 return resultobj;
28744fail:
28745 return NULL;
28746}
28747
28748
70d7cb34
RD
28749SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28750 int argc;
28751 PyObject *argv[3];
72ef6efb 28752
70d7cb34
RD
28753 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28754 --argc;
28755 if (argc == 2) {
28756 int _v = 0;
28757 {
28758 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28759 _v = SWIG_CheckState(res);
28760 }
28761 if (!_v) goto check_1;
28762 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28763 }
70d7cb34
RD
28764check_1:
28765
28766 if (argc == 2) {
28767 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28768 }
70d7cb34 28769
72ef6efb 28770fail:
70d7cb34 28771 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28772 return NULL;
28773}
28774
28775
70d7cb34 28776SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28777 PyObject *resultobj = 0;
28778 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28779 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28780 void *argp1 = 0 ;
28781 int res1 = 0 ;
70d7cb34
RD
28782 void *argp2 = 0 ;
28783 int res2 = 0 ;
72ef6efb 28784
70d7cb34
RD
28785 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28787 if (!SWIG_IsOK(res1)) {
70d7cb34 28788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28789 }
28790 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28791 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28792 if (!SWIG_IsOK(res2)) {
28793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28794 }
70d7cb34
RD
28795 if (!argp2) {
28796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28797 }
70d7cb34 28798 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28799 {
70d7cb34 28800 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_Py_Void();
28804 return resultobj;
28805fail:
28806 return NULL;
28807}
28808
28809
70d7cb34 28810SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28811 PyObject *resultobj = 0;
28812 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28813 wxFont *arg2 = 0 ;
70d7cb34
RD
28814 wxColour const &arg3_defvalue = *wxBLACK ;
28815 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28816 void *argp1 = 0 ;
28817 int res1 = 0 ;
28818 void *argp2 = 0 ;
28819 int res2 = 0 ;
70d7cb34 28820 wxColour temp3 ;
72ef6efb 28821
70d7cb34
RD
28822 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28824 if (!SWIG_IsOK(res1)) {
28825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28826 }
28827 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28828 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28829 if (!SWIG_IsOK(res2)) {
28830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28831 }
28832 if (!argp2) {
28833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28834 }
28835 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28836 if (swig_obj[2]) {
28837 {
28838 arg3 = &temp3;
28839 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28840 }
28841 }
72ef6efb 28842 {
70d7cb34 28843 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28844 if (PyErr_Occurred()) SWIG_fail;
28845 }
28846 resultobj = SWIG_Py_Void();
28847 return resultobj;
28848fail:
28849 return NULL;
28850}
28851
28852
70d7cb34
RD
28853SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28854 int argc;
28855 PyObject *argv[4];
72ef6efb 28856
70d7cb34
RD
28857 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28858 --argc;
28859 if (argc == 2) {
28860 int _v = 0;
28861 {
28862 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28863 _v = SWIG_CheckState(res);
28864 }
28865 if (!_v) goto check_1;
28866 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28867 }
70d7cb34
RD
28868check_1:
28869
28870 if ((argc >= 2) && (argc <= 3)) {
28871 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28872 }
70d7cb34 28873
72ef6efb 28874fail:
70d7cb34 28875 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28876 return NULL;
28877}
28878
28879
28880SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28881 PyObject *resultobj = 0;
28882 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28883 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28884 void *argp1 = 0 ;
28885 int res1 = 0 ;
28886 void *argp2 = 0 ;
28887 int res2 = 0 ;
28888 PyObject * obj0 = 0 ;
28889 PyObject * obj1 = 0 ;
28890 char * kwnames[] = {
28891 (char *) "self",(char *) "path", NULL
28892 };
28893
28894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28896 if (!SWIG_IsOK(res1)) {
28897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28898 }
28899 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28901 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28903 }
28904 if (!argp2) {
28905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28906 }
28907 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28908 {
5c8c7dd3 28909 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28910 if (PyErr_Occurred()) SWIG_fail;
28911 }
28912 resultobj = SWIG_Py_Void();
28913 return resultobj;
28914fail:
28915 return NULL;
28916}
28917
28918
28919SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28920 PyObject *resultobj = 0;
28921 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28922 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28923 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28924 void *argp1 = 0 ;
28925 int res1 = 0 ;
28926 void *argp2 = 0 ;
28927 int res2 = 0 ;
28928 int val3 ;
28929 int ecode3 = 0 ;
28930 PyObject * obj0 = 0 ;
28931 PyObject * obj1 = 0 ;
28932 PyObject * obj2 = 0 ;
28933 char * kwnames[] = {
28934 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28935 };
28936
28937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28939 if (!SWIG_IsOK(res1)) {
28940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28941 }
28942 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28944 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28946 }
28947 if (!argp2) {
28948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28949 }
28950 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28951 if (obj2) {
28952 ecode3 = SWIG_AsVal_int(obj2, &val3);
28953 if (!SWIG_IsOK(ecode3)) {
28954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28955 }
28956 arg3 = static_cast< int >(val3);
28957 }
28958 {
5c8c7dd3 28959 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28960 if (PyErr_Occurred()) SWIG_fail;
28961 }
28962 resultobj = SWIG_Py_Void();
28963 return resultobj;
28964fail:
28965 return NULL;
28966}
28967
28968
28969SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28970 PyObject *resultobj = 0;
28971 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28972 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28973 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28974 void *argp1 = 0 ;
28975 int res1 = 0 ;
28976 void *argp2 = 0 ;
28977 int res2 = 0 ;
28978 int val3 ;
28979 int ecode3 = 0 ;
28980 PyObject * obj0 = 0 ;
28981 PyObject * obj1 = 0 ;
28982 PyObject * obj2 = 0 ;
28983 char * kwnames[] = {
28984 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28985 };
28986
28987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28989 if (!SWIG_IsOK(res1)) {
28990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28991 }
28992 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28994 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28996 }
28997 if (!argp2) {
28998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28999 }
29000 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29001 if (obj2) {
29002 ecode3 = SWIG_AsVal_int(obj2, &val3);
29003 if (!SWIG_IsOK(ecode3)) {
29004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29005 }
29006 arg3 = static_cast< int >(val3);
29007 }
29008 {
5c8c7dd3 29009 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29010 if (PyErr_Occurred()) SWIG_fail;
29011 }
29012 resultobj = SWIG_Py_Void();
29013 return resultobj;
29014fail:
29015 return NULL;
29016}
29017
29018
b39fe951 29019SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29020 PyObject *resultobj = 0;
29021 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29022 wxString *arg2 = 0 ;
29023 wxDouble arg3 ;
29024 wxDouble arg4 ;
f89238b9
RD
29025 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29026 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29027 void *argp1 = 0 ;
29028 int res1 = 0 ;
29029 bool temp2 = false ;
29030 double val3 ;
29031 int ecode3 = 0 ;
29032 double val4 ;
29033 int ecode4 = 0 ;
f89238b9
RD
29034 void *argp5 = 0 ;
29035 int res5 = 0 ;
b39fe951
RD
29036 PyObject * obj0 = 0 ;
29037 PyObject * obj1 = 0 ;
29038 PyObject * obj2 = 0 ;
29039 PyObject * obj3 = 0 ;
f89238b9 29040 PyObject * obj4 = 0 ;
b39fe951 29041 char * kwnames[] = {
f89238b9 29042 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29043 };
72ef6efb 29044
f89238b9 29045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29047 if (!SWIG_IsOK(res1)) {
29048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29049 }
29050 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29051 {
b39fe951 29052 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29053 if (arg2 == NULL) SWIG_fail;
29054 temp2 = true;
29055 }
b39fe951 29056 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29057 if (!SWIG_IsOK(ecode3)) {
29058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29059 }
29060 arg3 = static_cast< wxDouble >(val3);
b39fe951 29061 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29062 if (!SWIG_IsOK(ecode4)) {
29063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29064 }
29065 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29066 if (obj4) {
29067 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29068 if (!SWIG_IsOK(res5)) {
29069 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29070 }
29071 if (!argp5) {
29072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29073 }
29074 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29075 }
72ef6efb 29076 {
f89238b9 29077 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29078 if (PyErr_Occurred()) SWIG_fail;
29079 }
29080 resultobj = SWIG_Py_Void();
29081 {
29082 if (temp2)
29083 delete arg2;
29084 }
29085 return resultobj;
29086fail:
29087 {
29088 if (temp2)
29089 delete arg2;
29090 }
29091 return NULL;
29092}
29093
29094
b39fe951 29095SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29096 PyObject *resultobj = 0;
29097 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29098 wxString *arg2 = 0 ;
29099 wxDouble arg3 ;
29100 wxDouble arg4 ;
29101 wxDouble arg5 ;
f89238b9
RD
29102 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29103 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29104 void *argp1 = 0 ;
29105 int res1 = 0 ;
29106 bool temp2 = false ;
29107 double val3 ;
29108 int ecode3 = 0 ;
29109 double val4 ;
29110 int ecode4 = 0 ;
29111 double val5 ;
29112 int ecode5 = 0 ;
f89238b9
RD
29113 void *argp6 = 0 ;
29114 int res6 = 0 ;
b39fe951
RD
29115 PyObject * obj0 = 0 ;
29116 PyObject * obj1 = 0 ;
29117 PyObject * obj2 = 0 ;
29118 PyObject * obj3 = 0 ;
29119 PyObject * obj4 = 0 ;
f89238b9 29120 PyObject * obj5 = 0 ;
b39fe951 29121 char * kwnames[] = {
f89238b9 29122 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29123 };
72ef6efb 29124
f89238b9 29125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29127 if (!SWIG_IsOK(res1)) {
b39fe951 29128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29129 }
29130 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29131 {
b39fe951 29132 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29133 if (arg2 == NULL) SWIG_fail;
29134 temp2 = true;
29135 }
b39fe951 29136 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29137 if (!SWIG_IsOK(ecode3)) {
b39fe951 29138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29139 }
29140 arg3 = static_cast< wxDouble >(val3);
b39fe951 29141 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29142 if (!SWIG_IsOK(ecode4)) {
b39fe951 29143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29144 }
29145 arg4 = static_cast< wxDouble >(val4);
b39fe951 29146 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29147 if (!SWIG_IsOK(ecode5)) {
b39fe951 29148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29149 }
29150 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29151 if (obj5) {
29152 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29153 if (!SWIG_IsOK(res6)) {
29154 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29155 }
29156 if (!argp6) {
29157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29158 }
29159 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29160 }
72ef6efb 29161 {
f89238b9 29162 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29163 if (PyErr_Occurred()) SWIG_fail;
29164 }
29165 resultobj = SWIG_Py_Void();
29166 {
29167 if (temp2)
29168 delete arg2;
29169 }
29170 return resultobj;
29171fail:
29172 {
29173 if (temp2)
29174 delete arg2;
29175 }
29176 return NULL;
29177}
29178
29179
be68621e 29180SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29181 PyObject *resultobj = 0;
29182 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29183 wxString *arg2 = 0 ;
29184 wxDouble *arg3 = (wxDouble *) 0 ;
29185 wxDouble *arg4 = (wxDouble *) 0 ;
29186 wxDouble *arg5 = (wxDouble *) 0 ;
29187 wxDouble *arg6 = (wxDouble *) 0 ;
29188 void *argp1 = 0 ;
29189 int res1 = 0 ;
29190 bool temp2 = false ;
29191 wxDouble temp3 ;
29192 int res3 = SWIG_TMPOBJ ;
29193 wxDouble temp4 ;
29194 int res4 = SWIG_TMPOBJ ;
29195 wxDouble temp5 ;
29196 int res5 = SWIG_TMPOBJ ;
29197 wxDouble temp6 ;
29198 int res6 = SWIG_TMPOBJ ;
29199 PyObject * obj0 = 0 ;
29200 PyObject * obj1 = 0 ;
29201 char * kwnames[] = {
29202 (char *) "self",(char *) "text", NULL
29203 };
29204
29205 arg3 = &temp3;
29206 arg4 = &temp4;
29207 arg5 = &temp5;
29208 arg6 = &temp6;
be68621e 29209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29211 if (!SWIG_IsOK(res1)) {
be68621e 29212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29213 }
29214 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29215 {
29216 arg2 = wxString_in_helper(obj1);
29217 if (arg2 == NULL) SWIG_fail;
29218 temp2 = true;
29219 }
29220 {
72ef6efb 29221 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29222 if (PyErr_Occurred()) SWIG_fail;
29223 }
29224 resultobj = SWIG_Py_Void();
29225 if (SWIG_IsTmpObj(res3)) {
29226 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29227 } else {
29228 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29230 }
29231 if (SWIG_IsTmpObj(res4)) {
29232 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29233 } else {
29234 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29236 }
29237 if (SWIG_IsTmpObj(res5)) {
29238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29239 } else {
29240 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29241 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29242 }
29243 if (SWIG_IsTmpObj(res6)) {
29244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29245 } else {
29246 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29248 }
29249 {
29250 if (temp2)
29251 delete arg2;
29252 }
29253 return resultobj;
29254fail:
29255 {
29256 if (temp2)
29257 delete arg2;
29258 }
29259 return NULL;
29260}
29261
29262
be68621e
RD
29263SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29264 PyObject *resultobj = 0;
29265 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29266 wxString *arg2 = 0 ;
29267 PyObject *result = 0 ;
29268 void *argp1 = 0 ;
29269 int res1 = 0 ;
29270 bool temp2 = false ;
29271 PyObject * obj0 = 0 ;
29272 PyObject * obj1 = 0 ;
29273 char * kwnames[] = {
29274 (char *) "self",(char *) "text", NULL
29275 };
29276
29277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29279 if (!SWIG_IsOK(res1)) {
29280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29281 }
29282 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29283 {
29284 arg2 = wxString_in_helper(obj1);
29285 if (arg2 == NULL) SWIG_fail;
29286 temp2 = true;
29287 }
29288 {
29289 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29290 if (PyErr_Occurred()) SWIG_fail;
29291 }
29292 resultobj = result;
29293 {
29294 if (temp2)
29295 delete arg2;
29296 }
29297 return resultobj;
29298fail:
29299 {
29300 if (temp2)
29301 delete arg2;
29302 }
29303 return NULL;
29304}
29305
29306
72ef6efb
RD
29307SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29310 wxString *arg2 = 0 ;
b39fe951 29311 wxArrayDouble result;
72ef6efb
RD
29312 void *argp1 = 0 ;
29313 int res1 = 0 ;
29314 bool temp2 = false ;
72ef6efb
RD
29315 PyObject * obj0 = 0 ;
29316 PyObject * obj1 = 0 ;
72ef6efb 29317 char * kwnames[] = {
b39fe951 29318 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29319 };
29320
b39fe951 29321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29323 if (!SWIG_IsOK(res1)) {
b39fe951 29324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29325 }
29326 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29327 {
29328 arg2 = wxString_in_helper(obj1);
29329 if (arg2 == NULL) SWIG_fail;
29330 temp2 = true;
29331 }
72ef6efb 29332 {
b39fe951 29333 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
b39fe951
RD
29336 {
29337 resultobj = wxArrayDouble2PyList_helper(result);
29338 }
72ef6efb
RD
29339 {
29340 if (temp2)
29341 delete arg2;
29342 }
29343 return resultobj;
29344fail:
29345 {
29346 if (temp2)
29347 delete arg2;
29348 }
29349 return NULL;
29350}
29351
29352
29353SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29354 PyObject *resultobj = 0;
29355 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29356 wxBitmap *arg2 = 0 ;
29357 wxDouble arg3 ;
29358 wxDouble arg4 ;
29359 wxDouble arg5 ;
29360 wxDouble arg6 ;
29361 void *argp1 = 0 ;
29362 int res1 = 0 ;
29363 void *argp2 = 0 ;
29364 int res2 = 0 ;
29365 double val3 ;
29366 int ecode3 = 0 ;
29367 double val4 ;
29368 int ecode4 = 0 ;
29369 double val5 ;
29370 int ecode5 = 0 ;
29371 double val6 ;
29372 int ecode6 = 0 ;
29373 PyObject * obj0 = 0 ;
29374 PyObject * obj1 = 0 ;
29375 PyObject * obj2 = 0 ;
29376 PyObject * obj3 = 0 ;
29377 PyObject * obj4 = 0 ;
29378 PyObject * obj5 = 0 ;
29379 char * kwnames[] = {
29380 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29381 };
29382
29383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29385 if (!SWIG_IsOK(res1)) {
29386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29387 }
29388 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29389 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29390 if (!SWIG_IsOK(res2)) {
29391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29392 }
29393 if (!argp2) {
29394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29395 }
29396 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29397 ecode3 = SWIG_AsVal_double(obj2, &val3);
29398 if (!SWIG_IsOK(ecode3)) {
29399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29400 }
29401 arg3 = static_cast< wxDouble >(val3);
29402 ecode4 = SWIG_AsVal_double(obj3, &val4);
29403 if (!SWIG_IsOK(ecode4)) {
29404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29405 }
29406 arg4 = static_cast< wxDouble >(val4);
29407 ecode5 = SWIG_AsVal_double(obj4, &val5);
29408 if (!SWIG_IsOK(ecode5)) {
29409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29410 }
29411 arg5 = static_cast< wxDouble >(val5);
29412 ecode6 = SWIG_AsVal_double(obj5, &val6);
29413 if (!SWIG_IsOK(ecode6)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29415 }
29416 arg6 = static_cast< wxDouble >(val6);
29417 {
72ef6efb 29418 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29419 if (PyErr_Occurred()) SWIG_fail;
29420 }
29421 resultobj = SWIG_Py_Void();
29422 return resultobj;
29423fail:
29424 return NULL;
29425}
29426
29427
29428SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29429 PyObject *resultobj = 0;
29430 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29431 wxIcon *arg2 = 0 ;
29432 wxDouble arg3 ;
29433 wxDouble arg4 ;
29434 wxDouble arg5 ;
29435 wxDouble arg6 ;
29436 void *argp1 = 0 ;
29437 int res1 = 0 ;
29438 void *argp2 = 0 ;
29439 int res2 = 0 ;
29440 double val3 ;
29441 int ecode3 = 0 ;
29442 double val4 ;
29443 int ecode4 = 0 ;
29444 double val5 ;
29445 int ecode5 = 0 ;
70d7cb34
RD
29446 double val6 ;
29447 int ecode6 = 0 ;
29448 PyObject * obj0 = 0 ;
29449 PyObject * obj1 = 0 ;
29450 PyObject * obj2 = 0 ;
29451 PyObject * obj3 = 0 ;
29452 PyObject * obj4 = 0 ;
29453 PyObject * obj5 = 0 ;
29454 char * kwnames[] = {
29455 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29456 };
29457
29458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29460 if (!SWIG_IsOK(res1)) {
29461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29462 }
29463 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29465 if (!SWIG_IsOK(res2)) {
29466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29467 }
29468 if (!argp2) {
29469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29470 }
29471 arg2 = reinterpret_cast< wxIcon * >(argp2);
29472 ecode3 = SWIG_AsVal_double(obj2, &val3);
29473 if (!SWIG_IsOK(ecode3)) {
29474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29475 }
29476 arg3 = static_cast< wxDouble >(val3);
29477 ecode4 = SWIG_AsVal_double(obj3, &val4);
29478 if (!SWIG_IsOK(ecode4)) {
29479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29480 }
29481 arg4 = static_cast< wxDouble >(val4);
29482 ecode5 = SWIG_AsVal_double(obj4, &val5);
29483 if (!SWIG_IsOK(ecode5)) {
29484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29485 }
29486 arg5 = static_cast< wxDouble >(val5);
29487 ecode6 = SWIG_AsVal_double(obj5, &val6);
29488 if (!SWIG_IsOK(ecode6)) {
29489 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29490 }
29491 arg6 = static_cast< wxDouble >(val6);
29492 {
29493 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 resultobj = SWIG_Py_Void();
29497 return resultobj;
29498fail:
29499 return NULL;
29500}
29501
29502
29503SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj = 0;
29505 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29506 wxDouble arg2 ;
29507 wxDouble arg3 ;
29508 wxDouble arg4 ;
29509 wxDouble arg5 ;
29510 void *argp1 = 0 ;
29511 int res1 = 0 ;
29512 double val2 ;
29513 int ecode2 = 0 ;
29514 double val3 ;
29515 int ecode3 = 0 ;
29516 double val4 ;
29517 int ecode4 = 0 ;
29518 double val5 ;
29519 int ecode5 = 0 ;
29520 PyObject * obj0 = 0 ;
29521 PyObject * obj1 = 0 ;
29522 PyObject * obj2 = 0 ;
29523 PyObject * obj3 = 0 ;
29524 PyObject * obj4 = 0 ;
29525 char * kwnames[] = {
29526 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29527 };
29528
29529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29531 if (!SWIG_IsOK(res1)) {
29532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29533 }
29534 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29535 ecode2 = SWIG_AsVal_double(obj1, &val2);
29536 if (!SWIG_IsOK(ecode2)) {
29537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29538 }
29539 arg2 = static_cast< wxDouble >(val2);
29540 ecode3 = SWIG_AsVal_double(obj2, &val3);
29541 if (!SWIG_IsOK(ecode3)) {
29542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29543 }
29544 arg3 = static_cast< wxDouble >(val3);
29545 ecode4 = SWIG_AsVal_double(obj3, &val4);
29546 if (!SWIG_IsOK(ecode4)) {
29547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29548 }
29549 arg4 = static_cast< wxDouble >(val4);
29550 ecode5 = SWIG_AsVal_double(obj4, &val5);
29551 if (!SWIG_IsOK(ecode5)) {
29552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29553 }
29554 arg5 = static_cast< wxDouble >(val5);
29555 {
29556 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29557 if (PyErr_Occurred()) SWIG_fail;
29558 }
29559 resultobj = SWIG_Py_Void();
29560 return resultobj;
29561fail:
29562 return NULL;
29563}
29564
29565
29566SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29567 PyObject *resultobj = 0;
29568 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29569 size_t arg2 ;
29570 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29571 void *argp1 = 0 ;
29572 int res1 = 0 ;
29573 PyObject * obj0 = 0 ;
29574 PyObject * obj1 = 0 ;
29575 char * kwnames[] = {
29576 (char *) "self",(char *) "points", NULL
29577 };
29578
29579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29581 if (!SWIG_IsOK(res1)) {
29582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29583 }
29584 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29585 {
29586 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29587 if (arg3 == NULL) SWIG_fail;
29588 }
29589 {
29590 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29591 if (PyErr_Occurred()) SWIG_fail;
29592 }
29593 resultobj = SWIG_Py_Void();
29594 {
29595 if (arg3) delete [] arg3;
29596 }
29597 return resultobj;
29598fail:
29599 {
29600 if (arg3) delete [] arg3;
29601 }
29602 return NULL;
29603}
29604
29605
29606SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29607 PyObject *resultobj = 0;
29608 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29609 PyObject *arg2 = (PyObject *) 0 ;
29610 PyObject *arg3 = (PyObject *) 0 ;
29611 void *argp1 = 0 ;
29612 int res1 = 0 ;
29613 PyObject * obj0 = 0 ;
29614 PyObject * obj1 = 0 ;
29615 PyObject * obj2 = 0 ;
29616 char * kwnames[] = {
29617 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29618 };
29619
29620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29622 if (!SWIG_IsOK(res1)) {
29623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29624 }
29625 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29626 arg2 = obj1;
29627 arg3 = obj2;
29628 {
29629 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29630 if (PyErr_Occurred()) SWIG_fail;
29631 }
29632 resultobj = SWIG_Py_Void();
29633 return resultobj;
29634fail:
29635 return NULL;
29636}
29637
29638
29639SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29640 PyObject *resultobj = 0;
29641 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29642 size_t arg2 ;
29643 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29644 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29645 void *argp1 = 0 ;
29646 int res1 = 0 ;
29647 int val4 ;
29648 int ecode4 = 0 ;
29649 PyObject * obj0 = 0 ;
29650 PyObject * obj1 = 0 ;
29651 PyObject * obj2 = 0 ;
29652 char * kwnames[] = {
29653 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29654 };
29655
29656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29658 if (!SWIG_IsOK(res1)) {
29659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29660 }
29661 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29662 {
29663 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29664 if (arg3 == NULL) SWIG_fail;
29665 }
29666 if (obj2) {
29667 ecode4 = SWIG_AsVal_int(obj2, &val4);
29668 if (!SWIG_IsOK(ecode4)) {
29669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29670 }
29671 arg4 = static_cast< int >(val4);
29672 }
29673 {
29674 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29675 if (PyErr_Occurred()) SWIG_fail;
29676 }
29677 resultobj = SWIG_Py_Void();
29678 {
29679 if (arg3) delete [] arg3;
29680 }
29681 return resultobj;
29682fail:
29683 {
29684 if (arg3) delete [] arg3;
29685 }
29686 return NULL;
29687}
29688
29689
29690SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29691 PyObject *resultobj = 0;
29692 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29693 wxDouble arg2 ;
29694 wxDouble arg3 ;
29695 wxDouble arg4 ;
29696 wxDouble arg5 ;
29697 void *argp1 = 0 ;
29698 int res1 = 0 ;
29699 double val2 ;
29700 int ecode2 = 0 ;
29701 double val3 ;
29702 int ecode3 = 0 ;
29703 double val4 ;
29704 int ecode4 = 0 ;
29705 double val5 ;
29706 int ecode5 = 0 ;
29707 PyObject * obj0 = 0 ;
29708 PyObject * obj1 = 0 ;
29709 PyObject * obj2 = 0 ;
29710 PyObject * obj3 = 0 ;
29711 PyObject * obj4 = 0 ;
29712 char * kwnames[] = {
29713 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29714 };
29715
29716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29718 if (!SWIG_IsOK(res1)) {
29719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29720 }
29721 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29722 ecode2 = SWIG_AsVal_double(obj1, &val2);
29723 if (!SWIG_IsOK(ecode2)) {
29724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29725 }
29726 arg2 = static_cast< wxDouble >(val2);
29727 ecode3 = SWIG_AsVal_double(obj2, &val3);
29728 if (!SWIG_IsOK(ecode3)) {
29729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29730 }
29731 arg3 = static_cast< wxDouble >(val3);
29732 ecode4 = SWIG_AsVal_double(obj3, &val4);
29733 if (!SWIG_IsOK(ecode4)) {
29734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29735 }
29736 arg4 = static_cast< wxDouble >(val4);
29737 ecode5 = SWIG_AsVal_double(obj4, &val5);
29738 if (!SWIG_IsOK(ecode5)) {
29739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29740 }
29741 arg5 = static_cast< wxDouble >(val5);
29742 {
29743 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29744 if (PyErr_Occurred()) SWIG_fail;
29745 }
29746 resultobj = SWIG_Py_Void();
29747 return resultobj;
29748fail:
29749 return NULL;
29750}
29751
29752
29753SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29754 PyObject *resultobj = 0;
29755 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29756 wxDouble arg2 ;
29757 wxDouble arg3 ;
29758 wxDouble arg4 ;
29759 wxDouble arg5 ;
29760 void *argp1 = 0 ;
29761 int res1 = 0 ;
29762 double val2 ;
29763 int ecode2 = 0 ;
29764 double val3 ;
29765 int ecode3 = 0 ;
29766 double val4 ;
29767 int ecode4 = 0 ;
29768 double val5 ;
29769 int ecode5 = 0 ;
72ef6efb
RD
29770 PyObject * obj0 = 0 ;
29771 PyObject * obj1 = 0 ;
29772 PyObject * obj2 = 0 ;
29773 PyObject * obj3 = 0 ;
29774 PyObject * obj4 = 0 ;
72ef6efb 29775 char * kwnames[] = {
70d7cb34 29776 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29777 };
29778
70d7cb34 29779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29781 if (!SWIG_IsOK(res1)) {
70d7cb34 29782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29783 }
29784 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29785 ecode2 = SWIG_AsVal_double(obj1, &val2);
29786 if (!SWIG_IsOK(ecode2)) {
29787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29788 }
29789 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29790 ecode3 = SWIG_AsVal_double(obj2, &val3);
29791 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29793 }
29794 arg3 = static_cast< wxDouble >(val3);
29795 ecode4 = SWIG_AsVal_double(obj3, &val4);
29796 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29798 }
29799 arg4 = static_cast< wxDouble >(val4);
29800 ecode5 = SWIG_AsVal_double(obj4, &val5);
29801 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29803 }
29804 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29805 {
70d7cb34 29806 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29807 if (PyErr_Occurred()) SWIG_fail;
29808 }
29809 resultobj = SWIG_Py_Void();
29810 return resultobj;
29811fail:
29812 return NULL;
29813}
29814
29815
70d7cb34 29816SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29817 PyObject *resultobj = 0;
29818 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29819 wxDouble arg2 ;
29820 wxDouble arg3 ;
29821 wxDouble arg4 ;
29822 wxDouble arg5 ;
70d7cb34 29823 wxDouble arg6 ;
72ef6efb
RD
29824 void *argp1 = 0 ;
29825 int res1 = 0 ;
29826 double val2 ;
29827 int ecode2 = 0 ;
29828 double val3 ;
29829 int ecode3 = 0 ;
29830 double val4 ;
29831 int ecode4 = 0 ;
29832 double val5 ;
29833 int ecode5 = 0 ;
70d7cb34
RD
29834 double val6 ;
29835 int ecode6 = 0 ;
72ef6efb
RD
29836 PyObject * obj0 = 0 ;
29837 PyObject * obj1 = 0 ;
29838 PyObject * obj2 = 0 ;
29839 PyObject * obj3 = 0 ;
29840 PyObject * obj4 = 0 ;
70d7cb34 29841 PyObject * obj5 = 0 ;
72ef6efb 29842 char * kwnames[] = {
70d7cb34 29843 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29844 };
29845
70d7cb34 29846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29848 if (!SWIG_IsOK(res1)) {
70d7cb34 29849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29850 }
29851 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29852 ecode2 = SWIG_AsVal_double(obj1, &val2);
29853 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29855 }
29856 arg2 = static_cast< wxDouble >(val2);
29857 ecode3 = SWIG_AsVal_double(obj2, &val3);
29858 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29860 }
29861 arg3 = static_cast< wxDouble >(val3);
29862 ecode4 = SWIG_AsVal_double(obj3, &val4);
29863 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29865 }
29866 arg4 = static_cast< wxDouble >(val4);
29867 ecode5 = SWIG_AsVal_double(obj4, &val5);
29868 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29870 }
29871 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29872 ecode6 = SWIG_AsVal_double(obj5, &val6);
29873 if (!SWIG_IsOK(ecode6)) {
29874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29875 }
29876 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29877 {
70d7cb34 29878 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29879 if (PyErr_Occurred()) SWIG_fail;
29880 }
29881 resultobj = SWIG_Py_Void();
29882 return resultobj;
29883fail:
29884 return NULL;
29885}
29886
29887
70d7cb34 29888SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29889 PyObject *resultobj = 0;
29890 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29891 bool result;
72ef6efb
RD
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
70d7cb34 29894 PyObject *swig_obj[1] ;
72ef6efb 29895
70d7cb34
RD
29896 if (!args) SWIG_fail;
29897 swig_obj[0] = args;
29898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29899 if (!SWIG_IsOK(res1)) {
70d7cb34 29900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29901 }
29902 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29903 {
70d7cb34
RD
29904 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29905 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29906 }
72ef6efb 29907 {
70d7cb34
RD
29908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29909 }
29910 return resultobj;
29911fail:
29912 return NULL;
29913}
29914
29915
29916SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29917 PyObject *obj;
29918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29919 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29920 return SWIG_Py_Void();
29921}
29922
29923SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29924 PyObject *resultobj = 0;
29925 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 PyObject *swig_obj[1] ;
29929
29930 if (!args) SWIG_fail;
29931 swig_obj[0] = args;
29932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29933 if (!SWIG_IsOK(res1)) {
29934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29935 }
29936 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29937 {
29938 delete arg1;
29939
72ef6efb
RD
29940 if (PyErr_Occurred()) SWIG_fail;
29941 }
29942 resultobj = SWIG_Py_Void();
70d7cb34
RD
29943 return resultobj;
29944fail:
29945 return NULL;
29946}
29947
29948
29949SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29950 PyObject *resultobj = 0;
29951 wxGraphicsRenderer *result = 0 ;
29952
29953 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29954 {
70d7cb34
RD
29955 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29956 if (PyErr_Occurred()) SWIG_fail;
29957 }
29958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29959 return resultobj;
29960fail:
29961 return NULL;
29962}
29963
29964
29965SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29966 PyObject *resultobj = 0;
29967 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29968 wxWindowDC *arg2 = 0 ;
29969 wxGraphicsContext *result = 0 ;
29970 void *argp1 = 0 ;
29971 int res1 = 0 ;
29972 void *argp2 = 0 ;
29973 int res2 = 0 ;
29974
29975 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29977 if (!SWIG_IsOK(res1)) {
29978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29979 }
29980 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29981 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29982 if (!SWIG_IsOK(res2)) {
29983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29984 }
29985 if (!argp2) {
29986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29987 }
29988 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29989 {
29990 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29991 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29992 }
70d7cb34 29993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29994 return resultobj;
29995fail:
70d7cb34
RD
29996 return NULL;
29997}
29998
29999
30000SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30001 PyObject *resultobj = 0;
30002 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30003 wxWindow *arg2 = (wxWindow *) 0 ;
30004 wxGraphicsContext *result = 0 ;
30005 void *argp1 = 0 ;
30006 int res1 = 0 ;
30007 void *argp2 = 0 ;
30008 int res2 = 0 ;
30009
30010 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30012 if (!SWIG_IsOK(res1)) {
30013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30014 }
30015 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30016 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30017 if (!SWIG_IsOK(res2)) {
30018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30019 }
30020 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30021 {
70d7cb34
RD
30022 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30023 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30024 }
70d7cb34
RD
30025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30026 return resultobj;
30027fail:
72ef6efb
RD
30028 return NULL;
30029}
30030
30031
70d7cb34
RD
30032SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30033 int argc;
30034 PyObject *argv[3];
30035
30036 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30037 --argc;
30038 if (argc == 2) {
30039 int _v = 0;
30040 {
30041 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30042 _v = SWIG_CheckState(res);
30043 }
30044 if (!_v) goto check_1;
30045 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30046 }
30047check_1:
30048
30049 if (argc == 2) {
30050 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30051 }
30052
30053fail:
30054 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30055 return NULL;
30056}
30057
30058
f89238b9
RD
30059SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30060 PyObject *resultobj = 0;
30061 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30062 wxGraphicsContext *result = 0 ;
30063 void *argp1 = 0 ;
30064 int res1 = 0 ;
30065 PyObject *swig_obj[1] ;
30066
30067 if (!args) SWIG_fail;
30068 swig_obj[0] = args;
30069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30070 if (!SWIG_IsOK(res1)) {
30071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30072 }
30073 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30074 {
30075 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30076 if (PyErr_Occurred()) SWIG_fail;
30077 }
30078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30079 return resultobj;
30080fail:
30081 return NULL;
30082}
30083
30084
70d7cb34 30085SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30086 PyObject *resultobj = 0;
70d7cb34
RD
30087 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30088 void *arg2 = (void *) 0 ;
30089 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30090 void *argp1 = 0 ;
30091 int res1 = 0 ;
70d7cb34 30092 int res2 ;
b39fe951
RD
30093 PyObject * obj0 = 0 ;
30094 PyObject * obj1 = 0 ;
b39fe951 30095 char * kwnames[] = {
70d7cb34 30096 (char *) "self",(char *) "context", NULL
b39fe951 30097 };
72ef6efb 30098
70d7cb34
RD
30099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30101 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30103 }
30104 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30105 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30106 if (!SWIG_IsOK(res2)) {
30107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30108 }
72ef6efb 30109 {
70d7cb34 30110 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30111 if (PyErr_Occurred()) SWIG_fail;
30112 }
70d7cb34 30113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30114 return resultobj;
30115fail:
30116 return NULL;
30117}
30118
30119
70d7cb34 30120SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30121 PyObject *resultobj = 0;
70d7cb34
RD
30122 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30123 void *arg2 = (void *) 0 ;
30124 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30125 void *argp1 = 0 ;
30126 int res1 = 0 ;
70d7cb34 30127 int res2 ;
72ef6efb
RD
30128 PyObject * obj0 = 0 ;
30129 PyObject * obj1 = 0 ;
72ef6efb 30130 char * kwnames[] = {
70d7cb34 30131 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30132 };
30133
70d7cb34
RD
30134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30136 if (!SWIG_IsOK(res1)) {
70d7cb34 30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30138 }
70d7cb34
RD
30139 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30140 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30141 if (!SWIG_IsOK(res2)) {
30142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30143 }
30144 {
70d7cb34 30145 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30146 if (PyErr_Occurred()) SWIG_fail;
30147 }
70d7cb34 30148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30149 return resultobj;
30150fail:
70d7cb34
RD
30151 return NULL;
30152}
30153
30154
30155SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30156 PyObject *resultobj = 0;
30157 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30158 wxGraphicsPath result;
70d7cb34
RD
30159 void *argp1 = 0 ;
30160 int res1 = 0 ;
30161 PyObject *swig_obj[1] ;
30162
30163 if (!args) SWIG_fail;
30164 swig_obj[0] = args;
30165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30168 }
30169 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30170 {
5c8c7dd3 30171 result = (arg1)->CreatePath();
70d7cb34 30172 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30173 }
5c8c7dd3 30174 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30175 return resultobj;
30176fail:
72ef6efb
RD
30177 return NULL;
30178}
30179
30180
70d7cb34 30181SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30182 PyObject *resultobj = 0;
70d7cb34
RD
30183 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30184 wxDouble arg2 = (wxDouble) 1.0 ;
30185 wxDouble arg3 = (wxDouble) 0.0 ;
30186 wxDouble arg4 = (wxDouble) 0.0 ;
30187 wxDouble arg5 = (wxDouble) 1.0 ;
30188 wxDouble arg6 = (wxDouble) 0.0 ;
30189 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30190 wxGraphicsMatrix result;
72ef6efb
RD
30191 void *argp1 = 0 ;
30192 int res1 = 0 ;
30193 double val2 ;
30194 int ecode2 = 0 ;
30195 double val3 ;
30196 int ecode3 = 0 ;
30197 double val4 ;
30198 int ecode4 = 0 ;
30199 double val5 ;
30200 int ecode5 = 0 ;
70d7cb34
RD
30201 double val6 ;
30202 int ecode6 = 0 ;
30203 double val7 ;
30204 int ecode7 = 0 ;
72ef6efb
RD
30205 PyObject * obj0 = 0 ;
30206 PyObject * obj1 = 0 ;
30207 PyObject * obj2 = 0 ;
30208 PyObject * obj3 = 0 ;
30209 PyObject * obj4 = 0 ;
70d7cb34
RD
30210 PyObject * obj5 = 0 ;
30211 PyObject * obj6 = 0 ;
72ef6efb 30212 char * kwnames[] = {
70d7cb34 30213 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30214 };
30215
70d7cb34
RD
30216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30218 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30220 }
30221 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30222 if (obj1) {
30223 ecode2 = SWIG_AsVal_double(obj1, &val2);
30224 if (!SWIG_IsOK(ecode2)) {
30225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30226 }
30227 arg2 = static_cast< wxDouble >(val2);
30228 }
30229 if (obj2) {
30230 ecode3 = SWIG_AsVal_double(obj2, &val3);
30231 if (!SWIG_IsOK(ecode3)) {
30232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30233 }
30234 arg3 = static_cast< wxDouble >(val3);
30235 }
30236 if (obj3) {
30237 ecode4 = SWIG_AsVal_double(obj3, &val4);
30238 if (!SWIG_IsOK(ecode4)) {
30239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30240 }
30241 arg4 = static_cast< wxDouble >(val4);
30242 }
30243 if (obj4) {
30244 ecode5 = SWIG_AsVal_double(obj4, &val5);
30245 if (!SWIG_IsOK(ecode5)) {
30246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30247 }
30248 arg5 = static_cast< wxDouble >(val5);
30249 }
30250 if (obj5) {
30251 ecode6 = SWIG_AsVal_double(obj5, &val6);
30252 if (!SWIG_IsOK(ecode6)) {
30253 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30254 }
30255 arg6 = static_cast< wxDouble >(val6);
30256 }
30257 if (obj6) {
30258 ecode7 = SWIG_AsVal_double(obj6, &val7);
30259 if (!SWIG_IsOK(ecode7)) {
30260 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30261 }
30262 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30263 }
72ef6efb 30264 {
5c8c7dd3 30265 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30266 if (PyErr_Occurred()) SWIG_fail;
30267 }
5c8c7dd3 30268 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30269 return resultobj;
30270fail:
30271 return NULL;
30272}
30273
30274
70d7cb34 30275SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30276 PyObject *resultobj = 0;
70d7cb34
RD
30277 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30278 wxPen *arg2 = 0 ;
30279 wxGraphicsPen result;
30280 void *argp1 = 0 ;
30281 int res1 = 0 ;
30282 void *argp2 = 0 ;
30283 int res2 = 0 ;
30284 PyObject * obj0 = 0 ;
30285 PyObject * obj1 = 0 ;
30286 char * kwnames[] = {
30287 (char *) "self",(char *) "pen", NULL
30288 };
30289
30290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30292 if (!SWIG_IsOK(res1)) {
30293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30294 }
30295 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30297 if (!SWIG_IsOK(res2)) {
30298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30299 }
30300 if (!argp2) {
30301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30302 }
30303 arg2 = reinterpret_cast< wxPen * >(argp2);
30304 {
30305 result = (arg1)->CreatePen((wxPen const &)*arg2);
30306 if (PyErr_Occurred()) SWIG_fail;
30307 }
30308 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30309 return resultobj;
30310fail:
30311 return NULL;
30312}
30313
30314
30315SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30316 PyObject *resultobj = 0;
30317 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30318 wxBrush *arg2 = 0 ;
30319 wxGraphicsBrush result;
30320 void *argp1 = 0 ;
30321 int res1 = 0 ;
30322 void *argp2 = 0 ;
30323 int res2 = 0 ;
30324 PyObject * obj0 = 0 ;
30325 PyObject * obj1 = 0 ;
30326 char * kwnames[] = {
30327 (char *) "self",(char *) "brush", NULL
30328 };
30329
30330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30334 }
30335 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30337 if (!SWIG_IsOK(res2)) {
30338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30339 }
30340 if (!argp2) {
30341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30342 }
30343 arg2 = reinterpret_cast< wxBrush * >(argp2);
30344 {
30345 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30346 if (PyErr_Occurred()) SWIG_fail;
30347 }
30348 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30349 return resultobj;
30350fail:
30351 return NULL;
30352}
30353
30354
30355SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30356 PyObject *resultobj = 0;
30357 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30358 wxDouble arg2 ;
30359 wxDouble arg3 ;
30360 wxDouble arg4 ;
30361 wxDouble arg5 ;
70d7cb34
RD
30362 wxColour *arg6 = 0 ;
30363 wxColour *arg7 = 0 ;
30364 wxGraphicsBrush result;
72ef6efb
RD
30365 void *argp1 = 0 ;
30366 int res1 = 0 ;
30367 double val2 ;
30368 int ecode2 = 0 ;
30369 double val3 ;
30370 int ecode3 = 0 ;
30371 double val4 ;
30372 int ecode4 = 0 ;
30373 double val5 ;
30374 int ecode5 = 0 ;
70d7cb34
RD
30375 wxColour temp6 ;
30376 wxColour temp7 ;
72ef6efb
RD
30377 PyObject * obj0 = 0 ;
30378 PyObject * obj1 = 0 ;
30379 PyObject * obj2 = 0 ;
30380 PyObject * obj3 = 0 ;
30381 PyObject * obj4 = 0 ;
70d7cb34
RD
30382 PyObject * obj5 = 0 ;
30383 PyObject * obj6 = 0 ;
72ef6efb 30384 char * kwnames[] = {
70d7cb34 30385 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30386 };
30387
70d7cb34
RD
30388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30390 if (!SWIG_IsOK(res1)) {
70d7cb34 30391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30392 }
70d7cb34 30393 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30394 ecode2 = SWIG_AsVal_double(obj1, &val2);
30395 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30397 }
30398 arg2 = static_cast< wxDouble >(val2);
30399 ecode3 = SWIG_AsVal_double(obj2, &val3);
30400 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30402 }
30403 arg3 = static_cast< wxDouble >(val3);
30404 ecode4 = SWIG_AsVal_double(obj3, &val4);
30405 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30407 }
30408 arg4 = static_cast< wxDouble >(val4);
30409 ecode5 = SWIG_AsVal_double(obj4, &val5);
30410 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30411 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30412 }
30413 arg5 = static_cast< wxDouble >(val5);
30414 {
70d7cb34
RD
30415 arg6 = &temp6;
30416 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30417 }
30418 {
30419 arg7 = &temp7;
30420 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30421 }
30422 {
30423 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
70d7cb34 30426 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30427 return resultobj;
30428fail:
30429 return NULL;
30430}
30431
30432
70d7cb34 30433SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30434 PyObject *resultobj = 0;
70d7cb34 30435 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30436 wxDouble arg2 ;
30437 wxDouble arg3 ;
30438 wxDouble arg4 ;
30439 wxDouble arg5 ;
30440 wxDouble arg6 ;
70d7cb34
RD
30441 wxColour *arg7 = 0 ;
30442 wxColour *arg8 = 0 ;
30443 wxGraphicsBrush result;
72ef6efb
RD
30444 void *argp1 = 0 ;
30445 int res1 = 0 ;
30446 double val2 ;
30447 int ecode2 = 0 ;
30448 double val3 ;
30449 int ecode3 = 0 ;
30450 double val4 ;
30451 int ecode4 = 0 ;
30452 double val5 ;
30453 int ecode5 = 0 ;
30454 double val6 ;
30455 int ecode6 = 0 ;
70d7cb34
RD
30456 wxColour temp7 ;
30457 wxColour temp8 ;
72ef6efb
RD
30458 PyObject * obj0 = 0 ;
30459 PyObject * obj1 = 0 ;
30460 PyObject * obj2 = 0 ;
30461 PyObject * obj3 = 0 ;
30462 PyObject * obj4 = 0 ;
30463 PyObject * obj5 = 0 ;
70d7cb34
RD
30464 PyObject * obj6 = 0 ;
30465 PyObject * obj7 = 0 ;
72ef6efb 30466 char * kwnames[] = {
70d7cb34 30467 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30468 };
30469
70d7cb34
RD
30470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30472 if (!SWIG_IsOK(res1)) {
70d7cb34 30473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30474 }
70d7cb34 30475 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30476 ecode2 = SWIG_AsVal_double(obj1, &val2);
30477 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30479 }
30480 arg2 = static_cast< wxDouble >(val2);
30481 ecode3 = SWIG_AsVal_double(obj2, &val3);
30482 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30484 }
30485 arg3 = static_cast< wxDouble >(val3);
30486 ecode4 = SWIG_AsVal_double(obj3, &val4);
30487 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30489 }
30490 arg4 = static_cast< wxDouble >(val4);
30491 ecode5 = SWIG_AsVal_double(obj4, &val5);
30492 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30494 }
30495 arg5 = static_cast< wxDouble >(val5);
30496 ecode6 = SWIG_AsVal_double(obj5, &val6);
30497 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30498 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30499 }
30500 arg6 = static_cast< wxDouble >(val6);
30501 {
70d7cb34
RD
30502 arg7 = &temp7;
30503 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30504 }
30505 {
30506 arg8 = &temp8;
30507 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30508 }
30509 {
30510 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30511 if (PyErr_Occurred()) SWIG_fail;
30512 }
70d7cb34 30513 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30514 return resultobj;
30515fail:
30516 return NULL;
30517}
30518
30519
70d7cb34
RD
30520SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30521 PyObject *resultobj = 0;
30522 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30523 wxFont *arg2 = 0 ;
30524 wxColour const &arg3_defvalue = *wxBLACK ;
30525 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30526 wxGraphicsFont result;
30527 void *argp1 = 0 ;
30528 int res1 = 0 ;
30529 void *argp2 = 0 ;
30530 int res2 = 0 ;
30531 wxColour temp3 ;
30532 PyObject * obj0 = 0 ;
30533 PyObject * obj1 = 0 ;
30534 PyObject * obj2 = 0 ;
30535 char * kwnames[] = {
30536 (char *) "self",(char *) "font",(char *) "col", NULL
30537 };
30538
30539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30541 if (!SWIG_IsOK(res1)) {
30542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30543 }
30544 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30546 if (!SWIG_IsOK(res2)) {
30547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30548 }
30549 if (!argp2) {
30550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30551 }
30552 arg2 = reinterpret_cast< wxFont * >(argp2);
30553 if (obj2) {
30554 {
30555 arg3 = &temp3;
30556 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30557 }
30558 }
30559 {
30560 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30561 if (PyErr_Occurred()) SWIG_fail;
30562 }
30563 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30564 return resultobj;
30565fail:
30566 return NULL;
30567}
30568
30569
30570SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30571 PyObject *obj;
30572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30573 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30574 return SWIG_Py_Void();
30575}
30576
48a0c021 30577SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30578 PyObject *resultobj = 0;
30579 wxWindowDC *arg1 = 0 ;
30580 wxGCDC *result = 0 ;
30581 void *argp1 = 0 ;
30582 int res1 = 0 ;
72ef6efb 30583
48a0c021
RD
30584 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30586 if (!SWIG_IsOK(res1)) {
30587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30588 }
30589 if (!argp1) {
30590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30591 }
30592 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30593 {
30594 if (!wxPyCheckForApp()) SWIG_fail;
30595 PyThreadState* __tstate = wxPyBeginAllowThreads();
30596 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30597 wxPyEndAllowThreads(__tstate);
30598 if (PyErr_Occurred()) SWIG_fail;
30599 }
30600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30601 return resultobj;
30602fail:
30603 return NULL;
30604}
30605
30606
48a0c021
RD
30607SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30608 PyObject *resultobj = 0;
30609 wxWindow *arg1 = (wxWindow *) 0 ;
30610 wxGCDC *result = 0 ;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613
30614 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30616 if (!SWIG_IsOK(res1)) {
30617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30618 }
30619 arg1 = reinterpret_cast< wxWindow * >(argp1);
30620 {
30621 if (!wxPyCheckForApp()) SWIG_fail;
30622 PyThreadState* __tstate = wxPyBeginAllowThreads();
30623 result = (wxGCDC *)new wxGCDC(arg1);
30624 wxPyEndAllowThreads(__tstate);
30625 if (PyErr_Occurred()) SWIG_fail;
30626 }
30627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30628 return resultobj;
30629fail:
30630 return NULL;
30631}
30632
30633
30634SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30635 int argc;
30636 PyObject *argv[2];
30637
30638 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30639 --argc;
30640 if (argc == 1) {
30641 int _v = 0;
30642 {
30643 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30644 _v = SWIG_CheckState(res);
30645 }
30646 if (!_v) goto check_1;
30647 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30648 }
30649check_1:
30650
30651 if (argc == 1) {
30652 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30653 }
30654
30655fail:
30656 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30657 return NULL;
30658}
30659
30660
72ef6efb
RD
30661SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30662 PyObject *resultobj = 0;
30663 wxGCDC *arg1 = (wxGCDC *) 0 ;
30664 void *argp1 = 0 ;
30665 int res1 = 0 ;
30666 PyObject *swig_obj[1] ;
30667
30668 if (!args) SWIG_fail;
30669 swig_obj[0] = args;
30670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30671 if (!SWIG_IsOK(res1)) {
30672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30673 }
30674 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30675 {
72ef6efb
RD
30676 delete arg1;
30677
72ef6efb
RD
30678 if (PyErr_Occurred()) SWIG_fail;
30679 }
30680 resultobj = SWIG_Py_Void();
30681 return resultobj;
30682fail:
30683 return NULL;
30684}
30685
30686
0a27f394 30687SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30688 PyObject *resultobj = 0;
30689 wxGCDC *arg1 = (wxGCDC *) 0 ;
30690 wxGraphicsContext *result = 0 ;
30691 void *argp1 = 0 ;
30692 int res1 = 0 ;
30693 PyObject *swig_obj[1] ;
30694
30695 if (!args) SWIG_fail;
30696 swig_obj[0] = args;
30697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30698 if (!SWIG_IsOK(res1)) {
0a27f394 30699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30700 }
30701 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30702 {
0a27f394 30703 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30704 if (PyErr_Occurred()) SWIG_fail;
30705 }
30706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30707 return resultobj;
30708fail:
30709 return NULL;
30710}
30711
30712
0a27f394
RD
30713SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30714 PyObject *resultobj = 0;
30715 wxGCDC *arg1 = (wxGCDC *) 0 ;
30716 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30717 void *argp1 = 0 ;
30718 int res1 = 0 ;
30719 void *argp2 = 0 ;
30720 int res2 = 0 ;
30721 PyObject * obj0 = 0 ;
30722 PyObject * obj1 = 0 ;
30723 char * kwnames[] = {
30724 (char *) "self",(char *) "ctx", NULL
30725 };
30726
30727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30729 if (!SWIG_IsOK(res1)) {
30730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30731 }
30732 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30733 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30734 if (!SWIG_IsOK(res2)) {
30735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30736 }
30737 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30738 {
30739 (arg1)->SetGraphicsContext(arg2);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 resultobj = SWIG_Py_Void();
30743 return resultobj;
30744fail:
30745 return NULL;
30746}
30747
30748
72ef6efb
RD
30749SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30750 PyObject *obj;
30751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30752 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30753 return SWIG_Py_Void();
30754}
30755
30756SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30757 return SWIG_Python_InitShadowInstance(args);
30758}
30759
b39fe951
RD
30760SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30761 PyObject *resultobj = 0;
30762 wxOverlay *result = 0 ;
30763
30764 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30765 {
30766 PyThreadState* __tstate = wxPyBeginAllowThreads();
30767 result = (wxOverlay *)new wxOverlay();
30768 wxPyEndAllowThreads(__tstate);
30769 if (PyErr_Occurred()) SWIG_fail;
30770 }
30771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30772 return resultobj;
30773fail:
30774 return NULL;
30775}
30776
30777
30778SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30779 PyObject *resultobj = 0;
30780 wxOverlay *arg1 = (wxOverlay *) 0 ;
30781 void *argp1 = 0 ;
30782 int res1 = 0 ;
30783 PyObject *swig_obj[1] ;
30784
30785 if (!args) SWIG_fail;
30786 swig_obj[0] = args;
30787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30788 if (!SWIG_IsOK(res1)) {
30789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30790 }
30791 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30792 {
30793 PyThreadState* __tstate = wxPyBeginAllowThreads();
30794 delete arg1;
30795
30796 wxPyEndAllowThreads(__tstate);
30797 if (PyErr_Occurred()) SWIG_fail;
30798 }
30799 resultobj = SWIG_Py_Void();
30800 return resultobj;
30801fail:
30802 return NULL;
30803}
30804
30805
30806SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30807 PyObject *resultobj = 0;
30808 wxOverlay *arg1 = (wxOverlay *) 0 ;
30809 void *argp1 = 0 ;
30810 int res1 = 0 ;
30811 PyObject *swig_obj[1] ;
30812
30813 if (!args) SWIG_fail;
30814 swig_obj[0] = args;
30815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30816 if (!SWIG_IsOK(res1)) {
30817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30818 }
30819 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30820 {
30821 PyThreadState* __tstate = wxPyBeginAllowThreads();
30822 (arg1)->Reset();
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 resultobj = SWIG_Py_Void();
30827 return resultobj;
30828fail:
30829 return NULL;
30830}
30831
30832
30833SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30834 PyObject *obj;
30835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30836 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30837 return SWIG_Py_Void();
30838}
30839
30840SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30841 return SWIG_Python_InitShadowInstance(args);
30842}
30843
30844SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30845 PyObject *resultobj = 0;
30846 wxOverlay *arg1 = 0 ;
30847 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30848 int arg3 ;
30849 int arg4 ;
30850 int arg5 ;
30851 int arg6 ;
30852 wxDCOverlay *result = 0 ;
30853 void *argp1 = 0 ;
30854 int res1 = 0 ;
30855 void *argp2 = 0 ;
30856 int res2 = 0 ;
30857 int val3 ;
30858 int ecode3 = 0 ;
30859 int val4 ;
30860 int ecode4 = 0 ;
30861 int val5 ;
30862 int ecode5 = 0 ;
30863 int val6 ;
30864 int ecode6 = 0 ;
30865
30866 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30868 if (!SWIG_IsOK(res1)) {
30869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30870 }
30871 if (!argp1) {
30872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30873 }
30874 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30875 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30876 if (!SWIG_IsOK(res2)) {
30877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30878 }
30879 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30880 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30881 if (!SWIG_IsOK(ecode3)) {
30882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30883 }
30884 arg3 = static_cast< int >(val3);
30885 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30886 if (!SWIG_IsOK(ecode4)) {
30887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30888 }
30889 arg4 = static_cast< int >(val4);
30890 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30891 if (!SWIG_IsOK(ecode5)) {
30892 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30893 }
30894 arg5 = static_cast< int >(val5);
30895 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30896 if (!SWIG_IsOK(ecode6)) {
30897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30898 }
30899 arg6 = static_cast< int >(val6);
30900 {
30901 PyThreadState* __tstate = wxPyBeginAllowThreads();
30902 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30903 wxPyEndAllowThreads(__tstate);
30904 if (PyErr_Occurred()) SWIG_fail;
30905 }
30906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30907 return resultobj;
30908fail:
30909 return NULL;
30910}
30911
30912
30913SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30914 PyObject *resultobj = 0;
30915 wxOverlay *arg1 = 0 ;
30916 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30917 wxDCOverlay *result = 0 ;
30918 void *argp1 = 0 ;
30919 int res1 = 0 ;
30920 void *argp2 = 0 ;
30921 int res2 = 0 ;
30922
30923 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30925 if (!SWIG_IsOK(res1)) {
30926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30927 }
30928 if (!argp1) {
30929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30930 }
30931 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30932 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30933 if (!SWIG_IsOK(res2)) {
30934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30935 }
30936 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30937 {
30938 PyThreadState* __tstate = wxPyBeginAllowThreads();
30939 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30940 wxPyEndAllowThreads(__tstate);
30941 if (PyErr_Occurred()) SWIG_fail;
30942 }
30943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30944 return resultobj;
30945fail:
30946 return NULL;
30947}
30948
30949
30950SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30951 int argc;
30952 PyObject *argv[7];
30953
30954 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30955 --argc;
30956 if (argc == 2) {
30957 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30958 }
30959 if (argc == 6) {
30960 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30961 }
30962
30963fail:
30964 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30965 return NULL;
30966}
30967
30968
30969SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30970 PyObject *resultobj = 0;
30971 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30972 void *argp1 = 0 ;
30973 int res1 = 0 ;
30974 PyObject *swig_obj[1] ;
30975
30976 if (!args) SWIG_fail;
30977 swig_obj[0] = args;
30978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30979 if (!SWIG_IsOK(res1)) {
30980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30981 }
30982 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30983 {
30984 PyThreadState* __tstate = wxPyBeginAllowThreads();
30985 delete arg1;
30986
30987 wxPyEndAllowThreads(__tstate);
30988 if (PyErr_Occurred()) SWIG_fail;
30989 }
30990 resultobj = SWIG_Py_Void();
30991 return resultobj;
30992fail:
30993 return NULL;
30994}
30995
30996
30997SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30998 PyObject *resultobj = 0;
30999 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31000 void *argp1 = 0 ;
31001 int res1 = 0 ;
31002 PyObject *swig_obj[1] ;
31003
31004 if (!args) SWIG_fail;
31005 swig_obj[0] = args;
31006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31009 }
31010 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31011 {
31012 PyThreadState* __tstate = wxPyBeginAllowThreads();
31013 (arg1)->Clear();
31014 wxPyEndAllowThreads(__tstate);
31015 if (PyErr_Occurred()) SWIG_fail;
31016 }
31017 resultobj = SWIG_Py_Void();
31018 return resultobj;
31019fail:
31020 return NULL;
31021}
31022
31023
31024SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31025 PyObject *obj;
31026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31027 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31028 return SWIG_Py_Void();
31029}
31030
31031SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31032 return SWIG_Python_InitShadowInstance(args);
31033}
31034
72ef6efb
RD
31035SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31036 PyObject *resultobj = 0;
31037 int arg1 ;
31038 int arg2 ;
31039 int arg3 = (int) true ;
31040 int arg4 = (int) 1 ;
31041 wxImageList *result = 0 ;
31042 int val1 ;
31043 int ecode1 = 0 ;
31044 int val2 ;
31045 int ecode2 = 0 ;
31046 int val3 ;
31047 int ecode3 = 0 ;
31048 int val4 ;
31049 int ecode4 = 0 ;
31050 PyObject * obj0 = 0 ;
31051 PyObject * obj1 = 0 ;
31052 PyObject * obj2 = 0 ;
31053 PyObject * obj3 = 0 ;
31054 char * kwnames[] = {
31055 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31056 };
31057
31058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31059 ecode1 = SWIG_AsVal_int(obj0, &val1);
31060 if (!SWIG_IsOK(ecode1)) {
31061 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31062 }
31063 arg1 = static_cast< int >(val1);
31064 ecode2 = SWIG_AsVal_int(obj1, &val2);
31065 if (!SWIG_IsOK(ecode2)) {
31066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31067 }
31068 arg2 = static_cast< int >(val2);
31069 if (obj2) {
31070 ecode3 = SWIG_AsVal_int(obj2, &val3);
31071 if (!SWIG_IsOK(ecode3)) {
31072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31073 }
31074 arg3 = static_cast< int >(val3);
31075 }
31076 if (obj3) {
31077 ecode4 = SWIG_AsVal_int(obj3, &val4);
31078 if (!SWIG_IsOK(ecode4)) {
31079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31080 }
31081 arg4 = static_cast< int >(val4);
31082 }
31083 {
31084 if (!wxPyCheckForApp()) SWIG_fail;
31085 PyThreadState* __tstate = wxPyBeginAllowThreads();
31086 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31087 wxPyEndAllowThreads(__tstate);
31088 if (PyErr_Occurred()) SWIG_fail;
31089 }
e02c0a13 31090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31091 return resultobj;
31092fail:
31093 return NULL;
31094}
31095
31096
31097SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31098 PyObject *resultobj = 0;
31099 wxImageList *arg1 = (wxImageList *) 0 ;
31100 void *argp1 = 0 ;
31101 int res1 = 0 ;
31102 PyObject *swig_obj[1] ;
31103
31104 if (!args) SWIG_fail;
31105 swig_obj[0] = args;
31106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31107 if (!SWIG_IsOK(res1)) {
31108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31109 }
31110 arg1 = reinterpret_cast< wxImageList * >(argp1);
31111 {
31112 PyThreadState* __tstate = wxPyBeginAllowThreads();
31113 delete arg1;
31114
31115 wxPyEndAllowThreads(__tstate);
31116 if (PyErr_Occurred()) SWIG_fail;
31117 }
31118 resultobj = SWIG_Py_Void();
31119 return resultobj;
31120fail:
31121 return NULL;
31122}
31123
31124
31125SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31126 PyObject *resultobj = 0;
31127 wxImageList *arg1 = (wxImageList *) 0 ;
31128 wxBitmap *arg2 = 0 ;
31129 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31130 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31131 int result;
31132 void *argp1 = 0 ;
31133 int res1 = 0 ;
31134 void *argp2 = 0 ;
31135 int res2 = 0 ;
31136 void *argp3 = 0 ;
31137 int res3 = 0 ;
31138 PyObject * obj0 = 0 ;
31139 PyObject * obj1 = 0 ;
31140 PyObject * obj2 = 0 ;
31141 char * kwnames[] = {
31142 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31143 };
31144
31145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31147 if (!SWIG_IsOK(res1)) {
31148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31149 }
31150 arg1 = reinterpret_cast< wxImageList * >(argp1);
31151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31152 if (!SWIG_IsOK(res2)) {
31153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31154 }
31155 if (!argp2) {
31156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31157 }
31158 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31159 if (obj2) {
31160 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31161 if (!SWIG_IsOK(res3)) {
31162 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31163 }
31164 if (!argp3) {
31165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31166 }
31167 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31168 }
31169 {
31170 PyThreadState* __tstate = wxPyBeginAllowThreads();
31171 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31172 wxPyEndAllowThreads(__tstate);
31173 if (PyErr_Occurred()) SWIG_fail;
31174 }
31175 resultobj = SWIG_From_int(static_cast< int >(result));
31176 return resultobj;
31177fail:
31178 return NULL;
31179}
31180
31181
31182SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31183 PyObject *resultobj = 0;
31184 wxImageList *arg1 = (wxImageList *) 0 ;
31185 wxBitmap *arg2 = 0 ;
31186 wxColour *arg3 = 0 ;
31187 int result;
31188 void *argp1 = 0 ;
31189 int res1 = 0 ;
31190 void *argp2 = 0 ;
31191 int res2 = 0 ;
31192 wxColour temp3 ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 PyObject * obj2 = 0 ;
31196 char * kwnames[] = {
31197 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31198 };
31199
31200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31202 if (!SWIG_IsOK(res1)) {
31203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31204 }
31205 arg1 = reinterpret_cast< wxImageList * >(argp1);
31206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31207 if (!SWIG_IsOK(res2)) {
31208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31209 }
31210 if (!argp2) {
31211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31212 }
31213 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31214 {
31215 arg3 = &temp3;
31216 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31217 }
31218 {
31219 PyThreadState* __tstate = wxPyBeginAllowThreads();
31220 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31221 wxPyEndAllowThreads(__tstate);
31222 if (PyErr_Occurred()) SWIG_fail;
31223 }
31224 resultobj = SWIG_From_int(static_cast< int >(result));
31225 return resultobj;
31226fail:
31227 return NULL;
31228}
31229
31230
31231SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31232 PyObject *resultobj = 0;
31233 wxImageList *arg1 = (wxImageList *) 0 ;
31234 wxIcon *arg2 = 0 ;
31235 int result;
31236 void *argp1 = 0 ;
31237 int res1 = 0 ;
31238 void *argp2 = 0 ;
31239 int res2 = 0 ;
31240 PyObject * obj0 = 0 ;
31241 PyObject * obj1 = 0 ;
31242 char * kwnames[] = {
31243 (char *) "self",(char *) "icon", NULL
31244 };
31245
31246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31248 if (!SWIG_IsOK(res1)) {
31249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31250 }
1bd55598
RD
31251 arg1 = reinterpret_cast< wxImageList * >(argp1);
31252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31253 if (!SWIG_IsOK(res2)) {
31254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31255 }
31256 if (!argp2) {
31257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31258 }
31259 arg2 = reinterpret_cast< wxIcon * >(argp2);
31260 {
31261 PyThreadState* __tstate = wxPyBeginAllowThreads();
31262 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31263 wxPyEndAllowThreads(__tstate);
31264 if (PyErr_Occurred()) SWIG_fail;
31265 }
31266 resultobj = SWIG_From_int(static_cast< int >(result));
31267 return resultobj;
31268fail:
31269 return NULL;
31270}
31271
31272
31273SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31274 PyObject *resultobj = 0;
31275 wxImageList *arg1 = (wxImageList *) 0 ;
31276 int arg2 ;
31277 SwigValueWrapper<wxBitmap > result;
31278 void *argp1 = 0 ;
31279 int res1 = 0 ;
31280 int val2 ;
31281 int ecode2 = 0 ;
31282 PyObject * obj0 = 0 ;
31283 PyObject * obj1 = 0 ;
31284 char * kwnames[] = {
31285 (char *) "self",(char *) "index", NULL
31286 };
31287
31288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31290 if (!SWIG_IsOK(res1)) {
31291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31292 }
31293 arg1 = reinterpret_cast< wxImageList * >(argp1);
31294 ecode2 = SWIG_AsVal_int(obj1, &val2);
31295 if (!SWIG_IsOK(ecode2)) {
31296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31297 }
31298 arg2 = static_cast< int >(val2);
31299 {
31300 PyThreadState* __tstate = wxPyBeginAllowThreads();
31301 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31302 wxPyEndAllowThreads(__tstate);
31303 if (PyErr_Occurred()) SWIG_fail;
31304 }
31305 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31306 return resultobj;
31307fail:
31308 return NULL;
31309}
31310
31311
31312SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31313 PyObject *resultobj = 0;
31314 wxImageList *arg1 = (wxImageList *) 0 ;
31315 int arg2 ;
31316 wxIcon result;
31317 void *argp1 = 0 ;
31318 int res1 = 0 ;
31319 int val2 ;
31320 int ecode2 = 0 ;
31321 PyObject * obj0 = 0 ;
31322 PyObject * obj1 = 0 ;
31323 char * kwnames[] = {
31324 (char *) "self",(char *) "index", NULL
31325 };
31326
31327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31329 if (!SWIG_IsOK(res1)) {
31330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31331 }
31332 arg1 = reinterpret_cast< wxImageList * >(argp1);
31333 ecode2 = SWIG_AsVal_int(obj1, &val2);
31334 if (!SWIG_IsOK(ecode2)) {
31335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31336 }
31337 arg2 = static_cast< int >(val2);
31338 {
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31341 wxPyEndAllowThreads(__tstate);
31342 if (PyErr_Occurred()) SWIG_fail;
31343 }
31344 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31345 return resultobj;
31346fail:
31347 return NULL;
31348}
31349
31350
31351SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31352 PyObject *resultobj = 0;
31353 wxImageList *arg1 = (wxImageList *) 0 ;
31354 int arg2 ;
31355 wxBitmap *arg3 = 0 ;
2131d850
RD
31356 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31357 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31358 bool result;
31359 void *argp1 = 0 ;
31360 int res1 = 0 ;
31361 int val2 ;
31362 int ecode2 = 0 ;
31363 void *argp3 = 0 ;
31364 int res3 = 0 ;
2131d850
RD
31365 void *argp4 = 0 ;
31366 int res4 = 0 ;
1bd55598
RD
31367 PyObject * obj0 = 0 ;
31368 PyObject * obj1 = 0 ;
31369 PyObject * obj2 = 0 ;
2131d850 31370 PyObject * obj3 = 0 ;
1bd55598 31371 char * kwnames[] = {
2131d850 31372 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31373 };
31374
2131d850 31375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31377 if (!SWIG_IsOK(res1)) {
31378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31379 }
31380 arg1 = reinterpret_cast< wxImageList * >(argp1);
31381 ecode2 = SWIG_AsVal_int(obj1, &val2);
31382 if (!SWIG_IsOK(ecode2)) {
31383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31384 }
31385 arg2 = static_cast< int >(val2);
31386 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31387 if (!SWIG_IsOK(res3)) {
31388 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31389 }
31390 if (!argp3) {
31391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31392 }
31393 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31394 if (obj3) {
31395 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31396 if (!SWIG_IsOK(res4)) {
31397 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31398 }
31399 if (!argp4) {
31400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31401 }
31402 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31403 }
1bd55598
RD
31404 {
31405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31406 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31407 wxPyEndAllowThreads(__tstate);
31408 if (PyErr_Occurred()) SWIG_fail;
31409 }
31410 {
31411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31412 }
31413 return resultobj;
31414fail:
31415 return NULL;
31416}
31417
31418
31419SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj = 0;
31421 wxImageList *arg1 = (wxImageList *) 0 ;
31422 int arg2 ;
31423 wxDC *arg3 = 0 ;
31424 int arg4 ;
31425 int arg5 ;
31426 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31427 bool arg7 = (bool) (bool)false ;
31428 bool result;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 int val2 ;
31432 int ecode2 = 0 ;
31433 void *argp3 = 0 ;
31434 int res3 = 0 ;
31435 int val4 ;
31436 int ecode4 = 0 ;
31437 int val5 ;
31438 int ecode5 = 0 ;
31439 int val6 ;
31440 int ecode6 = 0 ;
31441 bool val7 ;
31442 int ecode7 = 0 ;
31443 PyObject * obj0 = 0 ;
31444 PyObject * obj1 = 0 ;
31445 PyObject * obj2 = 0 ;
31446 PyObject * obj3 = 0 ;
31447 PyObject * obj4 = 0 ;
31448 PyObject * obj5 = 0 ;
31449 PyObject * obj6 = 0 ;
31450 char * kwnames[] = {
31451 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31452 };
31453
31454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31456 if (!SWIG_IsOK(res1)) {
31457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31458 }
31459 arg1 = reinterpret_cast< wxImageList * >(argp1);
31460 ecode2 = SWIG_AsVal_int(obj1, &val2);
31461 if (!SWIG_IsOK(ecode2)) {
31462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31463 }
31464 arg2 = static_cast< int >(val2);
31465 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31466 if (!SWIG_IsOK(res3)) {
31467 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31468 }
31469 if (!argp3) {
31470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31471 }
31472 arg3 = reinterpret_cast< wxDC * >(argp3);
31473 ecode4 = SWIG_AsVal_int(obj3, &val4);
31474 if (!SWIG_IsOK(ecode4)) {
31475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31476 }
31477 arg4 = static_cast< int >(val4);
31478 ecode5 = SWIG_AsVal_int(obj4, &val5);
31479 if (!SWIG_IsOK(ecode5)) {
31480 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31481 }
31482 arg5 = static_cast< int >(val5);
31483 if (obj5) {
31484 ecode6 = SWIG_AsVal_int(obj5, &val6);
31485 if (!SWIG_IsOK(ecode6)) {
31486 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31487 }
31488 arg6 = static_cast< int >(val6);
31489 }
31490 if (obj6) {
31491 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31492 if (!SWIG_IsOK(ecode7)) {
31493 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31494 }
31495 arg7 = static_cast< bool >(val7);
31496 }
31497 {
31498 PyThreadState* __tstate = wxPyBeginAllowThreads();
31499 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31500 wxPyEndAllowThreads(__tstate);
31501 if (PyErr_Occurred()) SWIG_fail;
31502 }
31503 {
31504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31505 }
31506 return resultobj;
31507fail:
31508 return NULL;
31509}
31510
31511
31512SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31513 PyObject *resultobj = 0;
31514 wxImageList *arg1 = (wxImageList *) 0 ;
31515 int result;
31516 void *argp1 = 0 ;
31517 int res1 = 0 ;
31518 PyObject *swig_obj[1] ;
31519
31520 if (!args) SWIG_fail;
31521 swig_obj[0] = args;
31522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31523 if (!SWIG_IsOK(res1)) {
31524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31525 }
31526 arg1 = reinterpret_cast< wxImageList * >(argp1);
31527 {
31528 PyThreadState* __tstate = wxPyBeginAllowThreads();
31529 result = (int)(arg1)->GetImageCount();
31530 wxPyEndAllowThreads(__tstate);
31531 if (PyErr_Occurred()) SWIG_fail;
31532 }
31533 resultobj = SWIG_From_int(static_cast< int >(result));
31534 return resultobj;
31535fail:
31536 return NULL;
31537}
31538
31539
31540SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31541 PyObject *resultobj = 0;
31542 wxImageList *arg1 = (wxImageList *) 0 ;
31543 int arg2 ;
31544 bool result;
31545 void *argp1 = 0 ;
31546 int res1 = 0 ;
31547 int val2 ;
31548 int ecode2 = 0 ;
31549 PyObject * obj0 = 0 ;
31550 PyObject * obj1 = 0 ;
31551 char * kwnames[] = {
31552 (char *) "self",(char *) "index", NULL
31553 };
31554
31555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31557 if (!SWIG_IsOK(res1)) {
31558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31559 }
31560 arg1 = reinterpret_cast< wxImageList * >(argp1);
31561 ecode2 = SWIG_AsVal_int(obj1, &val2);
31562 if (!SWIG_IsOK(ecode2)) {
31563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31564 }
31565 arg2 = static_cast< int >(val2);
31566 {
31567 PyThreadState* __tstate = wxPyBeginAllowThreads();
31568 result = (bool)(arg1)->Remove(arg2);
31569 wxPyEndAllowThreads(__tstate);
31570 if (PyErr_Occurred()) SWIG_fail;
31571 }
31572 {
31573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31574 }
31575 return resultobj;
31576fail:
31577 return NULL;
31578}
31579
31580
31581SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31582 PyObject *resultobj = 0;
31583 wxImageList *arg1 = (wxImageList *) 0 ;
31584 bool result;
31585 void *argp1 = 0 ;
31586 int res1 = 0 ;
31587 PyObject *swig_obj[1] ;
31588
31589 if (!args) SWIG_fail;
31590 swig_obj[0] = args;
31591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31592 if (!SWIG_IsOK(res1)) {
31593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31594 }
31595 arg1 = reinterpret_cast< wxImageList * >(argp1);
31596 {
31597 PyThreadState* __tstate = wxPyBeginAllowThreads();
31598 result = (bool)(arg1)->RemoveAll();
31599 wxPyEndAllowThreads(__tstate);
31600 if (PyErr_Occurred()) SWIG_fail;
31601 }
31602 {
31603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31604 }
31605 return resultobj;
31606fail:
31607 return NULL;
31608}
31609
31610
31611SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31612 PyObject *resultobj = 0;
31613 wxImageList *arg1 = (wxImageList *) 0 ;
31614 int arg2 ;
31615 int *arg3 = 0 ;
31616 int *arg4 = 0 ;
31617 void *argp1 = 0 ;
31618 int res1 = 0 ;
31619 int val2 ;
31620 int ecode2 = 0 ;
31621 int temp3 ;
31622 int res3 = SWIG_TMPOBJ ;
31623 int temp4 ;
31624 int res4 = SWIG_TMPOBJ ;
31625 PyObject * obj0 = 0 ;
31626 PyObject * obj1 = 0 ;
31627 char * kwnames[] = {
31628 (char *) "self",(char *) "index", NULL
31629 };
31630
31631 arg3 = &temp3;
31632 arg4 = &temp4;
31633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31635 if (!SWIG_IsOK(res1)) {
31636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31637 }
31638 arg1 = reinterpret_cast< wxImageList * >(argp1);
31639 ecode2 = SWIG_AsVal_int(obj1, &val2);
31640 if (!SWIG_IsOK(ecode2)) {
31641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31642 }
31643 arg2 = static_cast< int >(val2);
31644 {
31645 PyThreadState* __tstate = wxPyBeginAllowThreads();
31646 (arg1)->GetSize(arg2,*arg3,*arg4);
31647 wxPyEndAllowThreads(__tstate);
31648 if (PyErr_Occurred()) SWIG_fail;
31649 }
31650 resultobj = SWIG_Py_Void();
31651 if (SWIG_IsTmpObj(res3)) {
31652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31653 } else {
31654 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31656 }
31657 if (SWIG_IsTmpObj(res4)) {
31658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31659 } else {
31660 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31662 }
31663 return resultobj;
31664fail:
31665 return NULL;
31666}
31667
31668
31669SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31670 PyObject *obj;
31671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31672 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31673 return SWIG_Py_Void();
31674}
31675
31676SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31677 return SWIG_Python_InitShadowInstance(args);
31678}
31679
da91cb0f
RD
31680SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31681 PyObject *resultobj = 0;
31682 wxStockGDI *result = 0 ;
1bd55598 31683
da91cb0f
RD
31684 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31685 {
31686 PyThreadState* __tstate = wxPyBeginAllowThreads();
31687 result = (wxStockGDI *)new wxStockGDI();
31688 wxPyEndAllowThreads(__tstate);
31689 if (PyErr_Occurred()) SWIG_fail;
31690 }
31691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31692 return resultobj;
31693fail:
31694 return NULL;
1bd55598
RD
31695}
31696
31697
da91cb0f
RD
31698SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31699 PyObject *resultobj = 0;
31700 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31701 void *argp1 = 0 ;
31702 int res1 = 0 ;
31703 PyObject *swig_obj[1] ;
1bd55598 31704
da91cb0f
RD
31705 if (!args) SWIG_fail;
31706 swig_obj[0] = args;
31707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31708 if (!SWIG_IsOK(res1)) {
31709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31710 }
31711 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31712 {
31713 PyThreadState* __tstate = wxPyBeginAllowThreads();
31714 delete arg1;
31715
31716 wxPyEndAllowThreads(__tstate);
31717 if (PyErr_Occurred()) SWIG_fail;
31718 }
31719 resultobj = SWIG_Py_Void();
31720 return resultobj;
31721fail:
31722 return NULL;
1bd55598
RD
31723}
31724
31725
da91cb0f
RD
31726SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31727 PyObject *resultobj = 0;
1bd55598 31728
da91cb0f
RD
31729 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31730 {
31731 PyThreadState* __tstate = wxPyBeginAllowThreads();
31732 wxStockGDI::DeleteAll();
31733 wxPyEndAllowThreads(__tstate);
31734 if (PyErr_Occurred()) SWIG_fail;
31735 }
31736 resultobj = SWIG_Py_Void();
31737 return resultobj;
31738fail:
31739 return NULL;
1bd55598
RD
31740}
31741
31742
da91cb0f
RD
31743SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31744 PyObject *resultobj = 0;
31745 wxStockGDI *result = 0 ;
1bd55598 31746
da91cb0f
RD
31747 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31748 {
31749 PyThreadState* __tstate = wxPyBeginAllowThreads();
31750 {
31751 wxStockGDI &_result_ref = wxStockGDI::instance();
31752 result = (wxStockGDI *) &_result_ref;
31753 }
31754 wxPyEndAllowThreads(__tstate);
31755 if (PyErr_Occurred()) SWIG_fail;
31756 }
31757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31758 return resultobj;
31759fail:
31760 return NULL;
1bd55598
RD
31761}
31762
31763
da91cb0f
RD
31764SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31765 PyObject *resultobj = 0;
31766 wxStockGDI::Item arg1 ;
31767 wxBrush *result = 0 ;
31768 int val1 ;
31769 int ecode1 = 0 ;
31770 PyObject * obj0 = 0 ;
31771 char * kwnames[] = {
31772 (char *) "item", NULL
31773 };
31774
31775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31776 ecode1 = SWIG_AsVal_int(obj0, &val1);
31777 if (!SWIG_IsOK(ecode1)) {
31778 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31779 }
31780 arg1 = static_cast< wxStockGDI::Item >(val1);
31781 {
31782 PyThreadState* __tstate = wxPyBeginAllowThreads();
31783 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31784 wxPyEndAllowThreads(__tstate);
31785 if (PyErr_Occurred()) SWIG_fail;
31786 }
31787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31788 return resultobj;
31789fail:
31790 return NULL;
1bd55598
RD
31791}
31792
31793
da91cb0f
RD
31794SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31795 PyObject *resultobj = 0;
31796 wxStockGDI::Item arg1 ;
31797 wxColour *result = 0 ;
31798 int val1 ;
31799 int ecode1 = 0 ;
31800 PyObject * obj0 = 0 ;
31801 char * kwnames[] = {
31802 (char *) "item", NULL
31803 };
1bd55598 31804
da91cb0f
RD
31805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31806 ecode1 = SWIG_AsVal_int(obj0, &val1);
31807 if (!SWIG_IsOK(ecode1)) {
31808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31809 }
31810 arg1 = static_cast< wxStockGDI::Item >(val1);
31811 {
31812 PyThreadState* __tstate = wxPyBeginAllowThreads();
31813 result = (wxColour *)wxStockGDI::GetColour(arg1);
31814 wxPyEndAllowThreads(__tstate);
31815 if (PyErr_Occurred()) SWIG_fail;
31816 }
31817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31818 return resultobj;
31819fail:
31820 return NULL;
1bd55598
RD
31821}
31822
31823
da91cb0f
RD
31824SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31825 PyObject *resultobj = 0;
31826 wxStockGDI::Item arg1 ;
31827 wxCursor *result = 0 ;
31828 int val1 ;
31829 int ecode1 = 0 ;
31830 PyObject * obj0 = 0 ;
31831 char * kwnames[] = {
31832 (char *) "item", NULL
31833 };
31834
31835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31836 ecode1 = SWIG_AsVal_int(obj0, &val1);
31837 if (!SWIG_IsOK(ecode1)) {
31838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31839 }
31840 arg1 = static_cast< wxStockGDI::Item >(val1);
31841 {
31842 PyThreadState* __tstate = wxPyBeginAllowThreads();
31843 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31844 wxPyEndAllowThreads(__tstate);
31845 if (PyErr_Occurred()) SWIG_fail;
31846 }
31847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31848 return resultobj;
31849fail:
31850 return NULL;
1bd55598
RD
31851}
31852
31853
da91cb0f
RD
31854SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31855 PyObject *resultobj = 0;
31856 wxStockGDI::Item arg1 ;
31857 wxPen *result = 0 ;
31858 int val1 ;
31859 int ecode1 = 0 ;
31860 PyObject * obj0 = 0 ;
31861 char * kwnames[] = {
31862 (char *) "item", NULL
31863 };
31864
31865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31866 ecode1 = SWIG_AsVal_int(obj0, &val1);
31867 if (!SWIG_IsOK(ecode1)) {
31868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31869 }
31870 arg1 = static_cast< wxStockGDI::Item >(val1);
31871 {
31872 PyThreadState* __tstate = wxPyBeginAllowThreads();
31873 result = (wxPen *)wxStockGDI::GetPen(arg1);
31874 wxPyEndAllowThreads(__tstate);
31875 if (PyErr_Occurred()) SWIG_fail;
31876 }
31877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31878 return resultobj;
31879fail:
31880 return NULL;
1bd55598
RD
31881}
31882
31883
da91cb0f
RD
31884SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31885 PyObject *resultobj = 0;
31886 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31887 wxStockGDI::Item arg2 ;
31888 wxFont *result = 0 ;
31889 void *argp1 = 0 ;
31890 int res1 = 0 ;
31891 int val2 ;
31892 int ecode2 = 0 ;
31893 PyObject * obj0 = 0 ;
31894 PyObject * obj1 = 0 ;
31895 char * kwnames[] = {
31896 (char *) "self",(char *) "item", NULL
31897 };
1bd55598 31898
da91cb0f
RD
31899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31901 if (!SWIG_IsOK(res1)) {
31902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31903 }
31904 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31905 ecode2 = SWIG_AsVal_int(obj1, &val2);
31906 if (!SWIG_IsOK(ecode2)) {
31907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31908 }
31909 arg2 = static_cast< wxStockGDI::Item >(val2);
31910 {
31911 PyThreadState* __tstate = wxPyBeginAllowThreads();
31912 result = (wxFont *)(arg1)->GetFont(arg2);
31913 wxPyEndAllowThreads(__tstate);
31914 if (PyErr_Occurred()) SWIG_fail;
31915 }
31916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31917 return resultobj;
31918fail:
31919 return NULL;
1bd55598
RD
31920}
31921
31922
da91cb0f
RD
31923SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31924 PyObject *obj;
31925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31926 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31927 return SWIG_Py_Void();
1bd55598
RD
31928}
31929
da91cb0f
RD
31930SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31931 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31932}
31933
1bd55598
RD
31934SWIGINTERN int NullBitmap_set(PyObject *) {
31935 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31936 return 1;
31937}
31938
31939
31940SWIGINTERN PyObject *NullBitmap_get(void) {
31941 PyObject *pyobj = 0;
31942
31943 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31944 return pyobj;
31945}
31946
31947
31948SWIGINTERN int NullIcon_set(PyObject *) {
31949 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31950 return 1;
31951}
31952
31953
31954SWIGINTERN PyObject *NullIcon_get(void) {
31955 PyObject *pyobj = 0;
31956
31957 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31958 return pyobj;
31959}
31960
31961
31962SWIGINTERN int NullCursor_set(PyObject *) {
31963 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31964 return 1;
31965}
31966
31967
31968SWIGINTERN PyObject *NullCursor_get(void) {
31969 PyObject *pyobj = 0;
31970
31971 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31972 return pyobj;
31973}
31974
31975
31976SWIGINTERN int NullPen_set(PyObject *) {
31977 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31978 return 1;
31979}
31980
31981
31982SWIGINTERN PyObject *NullPen_get(void) {
31983 PyObject *pyobj = 0;
31984
31985 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31986 return pyobj;
31987}
31988
31989
31990SWIGINTERN int NullBrush_set(PyObject *) {
31991 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31992 return 1;
31993}
31994
31995
31996SWIGINTERN PyObject *NullBrush_get(void) {
31997 PyObject *pyobj = 0;
31998
31999 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32000 return pyobj;
32001}
32002
32003
32004SWIGINTERN int NullPalette_set(PyObject *) {
32005 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32006 return 1;
32007}
32008
32009
32010SWIGINTERN PyObject *NullPalette_get(void) {
32011 PyObject *pyobj = 0;
32012
32013 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32014 return pyobj;
32015}
32016
32017
32018SWIGINTERN int NullFont_set(PyObject *) {
32019 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32020 return 1;
32021}
32022
32023
32024SWIGINTERN PyObject *NullFont_get(void) {
32025 PyObject *pyobj = 0;
32026
32027 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32028 return pyobj;
32029}
32030
32031
32032SWIGINTERN int NullColour_set(PyObject *) {
32033 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32034 return 1;
32035}
32036
32037
32038SWIGINTERN PyObject *NullColour_get(void) {
32039 PyObject *pyobj = 0;
32040
32041 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32042 return pyobj;
32043}
32044
32045
da91cb0f 32046SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32047 PyObject *resultobj = 0;
da91cb0f
RD
32048 wxGDIObjListBase *result = 0 ;
32049
32050 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32051 {
32052 PyThreadState* __tstate = wxPyBeginAllowThreads();
32053 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32054 wxPyEndAllowThreads(__tstate);
32055 if (PyErr_Occurred()) SWIG_fail;
32056 }
32057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32058 return resultobj;
32059fail:
32060 return NULL;
32061}
32062
32063
32064SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32065 PyObject *resultobj = 0;
32066 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32067 void *argp1 = 0 ;
32068 int res1 = 0 ;
da91cb0f 32069 PyObject *swig_obj[1] ;
1bd55598 32070
da91cb0f
RD
32071 if (!args) SWIG_fail;
32072 swig_obj[0] = args;
32073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32074 if (!SWIG_IsOK(res1)) {
da91cb0f 32075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32076 }
da91cb0f 32077 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32078 {
32079 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32080 delete arg1;
32081
1bd55598
RD
32082 wxPyEndAllowThreads(__tstate);
32083 if (PyErr_Occurred()) SWIG_fail;
32084 }
32085 resultobj = SWIG_Py_Void();
32086 return resultobj;
32087fail:
32088 return NULL;
32089}
32090
32091
da91cb0f
RD
32092SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32093 PyObject *obj;
32094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32095 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32096 return SWIG_Py_Void();
32097}
32098
32099SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32100 return SWIG_Python_InitShadowInstance(args);
32101}
32102
1bd55598
RD
32103SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32104 PyObject *resultobj = 0;
32105 wxPenList *arg1 = (wxPenList *) 0 ;
32106 wxColour *arg2 = 0 ;
32107 int arg3 ;
32108 int arg4 ;
32109 wxPen *result = 0 ;
32110 void *argp1 = 0 ;
32111 int res1 = 0 ;
32112 wxColour temp2 ;
32113 int val3 ;
32114 int ecode3 = 0 ;
32115 int val4 ;
32116 int ecode4 = 0 ;
32117 PyObject * obj0 = 0 ;
32118 PyObject * obj1 = 0 ;
32119 PyObject * obj2 = 0 ;
32120 PyObject * obj3 = 0 ;
32121 char * kwnames[] = {
32122 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32123 };
32124
32125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32127 if (!SWIG_IsOK(res1)) {
32128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32129 }
32130 arg1 = reinterpret_cast< wxPenList * >(argp1);
32131 {
32132 arg2 = &temp2;
32133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32134 }
32135 ecode3 = SWIG_AsVal_int(obj2, &val3);
32136 if (!SWIG_IsOK(ecode3)) {
32137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32138 }
32139 arg3 = static_cast< int >(val3);
32140 ecode4 = SWIG_AsVal_int(obj3, &val4);
32141 if (!SWIG_IsOK(ecode4)) {
32142 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32143 }
32144 arg4 = static_cast< int >(val4);
32145 {
32146 PyThreadState* __tstate = wxPyBeginAllowThreads();
32147 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32148 wxPyEndAllowThreads(__tstate);
32149 if (PyErr_Occurred()) SWIG_fail;
32150 }
32151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32152 return resultobj;
32153fail:
32154 return NULL;
32155}
32156
32157
da91cb0f 32158SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32159 PyObject *resultobj = 0;
32160 wxPenList *arg1 = (wxPenList *) 0 ;
32161 wxPen *arg2 = (wxPen *) 0 ;
32162 void *argp1 = 0 ;
32163 int res1 = 0 ;
32164 void *argp2 = 0 ;
32165 int res2 = 0 ;
32166 PyObject * obj0 = 0 ;
32167 PyObject * obj1 = 0 ;
32168 char * kwnames[] = {
32169 (char *) "self",(char *) "pen", NULL
32170 };
32171
da91cb0f 32172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
32173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32174 if (!SWIG_IsOK(res1)) {
da91cb0f 32175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32176 }
32177 arg1 = reinterpret_cast< wxPenList * >(argp1);
32178 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32179 if (!SWIG_IsOK(res2)) {
da91cb0f 32180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
32181 }
32182 arg2 = reinterpret_cast< wxPen * >(argp2);
32183 {
32184 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32185 (arg1)->AddPen(arg2);
1bd55598
RD
32186 wxPyEndAllowThreads(__tstate);
32187 if (PyErr_Occurred()) SWIG_fail;
32188 }
32189 resultobj = SWIG_Py_Void();
32190 return resultobj;
32191fail:
32192 return NULL;
32193}
32194
32195
da91cb0f 32196SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32197 PyObject *resultobj = 0;
32198 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32199 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
da91cb0f
RD
32202 void *argp2 = 0 ;
32203 int res2 = 0 ;
32204 PyObject * obj0 = 0 ;
32205 PyObject * obj1 = 0 ;
32206 char * kwnames[] = {
32207 (char *) "self",(char *) "pen", NULL
32208 };
1bd55598 32209
da91cb0f
RD
32210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32212 if (!SWIG_IsOK(res1)) {
da91cb0f 32213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32214 }
32215 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32217 if (!SWIG_IsOK(res2)) {
32218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32219 }
32220 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32221 {
32222 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32223 (arg1)->RemovePen(arg2);
1bd55598
RD
32224 wxPyEndAllowThreads(__tstate);
32225 if (PyErr_Occurred()) SWIG_fail;
32226 }
da91cb0f 32227 resultobj = SWIG_Py_Void();
1bd55598
RD
32228 return resultobj;
32229fail:
32230 return NULL;
32231}
32232
32233
32234SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32235 PyObject *obj;
32236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32237 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32238 return SWIG_Py_Void();
32239}
32240
da91cb0f
RD
32241SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32242 PyObject *resultobj = 0;
32243 wxBrushList *arg1 = (wxBrushList *) 0 ;
32244 wxColour *arg2 = 0 ;
32245 int arg3 = (int) wxSOLID ;
32246 wxBrush *result = 0 ;
32247 void *argp1 = 0 ;
32248 int res1 = 0 ;
32249 wxColour temp2 ;
32250 int val3 ;
32251 int ecode3 = 0 ;
32252 PyObject * obj0 = 0 ;
32253 PyObject * obj1 = 0 ;
32254 PyObject * obj2 = 0 ;
32255 char * kwnames[] = {
32256 (char *) "self",(char *) "colour",(char *) "style", NULL
32257 };
32258
32259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32261 if (!SWIG_IsOK(res1)) {
32262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32263 }
32264 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32265 {
32266 arg2 = &temp2;
32267 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32268 }
32269 if (obj2) {
32270 ecode3 = SWIG_AsVal_int(obj2, &val3);
32271 if (!SWIG_IsOK(ecode3)) {
32272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32273 }
32274 arg3 = static_cast< int >(val3);
32275 }
32276 {
32277 PyThreadState* __tstate = wxPyBeginAllowThreads();
32278 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32279 wxPyEndAllowThreads(__tstate);
32280 if (PyErr_Occurred()) SWIG_fail;
32281 }
32282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32283 return resultobj;
32284fail:
32285 return NULL;
32286}
32287
32288
1bd55598
RD
32289SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32290 PyObject *resultobj = 0;
32291 wxBrushList *arg1 = (wxBrushList *) 0 ;
32292 wxBrush *arg2 = (wxBrush *) 0 ;
32293 void *argp1 = 0 ;
32294 int res1 = 0 ;
32295 void *argp2 = 0 ;
32296 int res2 = 0 ;
32297 PyObject * obj0 = 0 ;
32298 PyObject * obj1 = 0 ;
32299 char * kwnames[] = {
32300 (char *) "self",(char *) "brush", NULL
32301 };
32302
32303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32305 if (!SWIG_IsOK(res1)) {
32306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32307 }
32308 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32310 if (!SWIG_IsOK(res2)) {
32311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32312 }
32313 arg2 = reinterpret_cast< wxBrush * >(argp2);
32314 {
32315 PyThreadState* __tstate = wxPyBeginAllowThreads();
32316 (arg1)->AddBrush(arg2);
32317 wxPyEndAllowThreads(__tstate);
32318 if (PyErr_Occurred()) SWIG_fail;
32319 }
32320 resultobj = SWIG_Py_Void();
32321 return resultobj;
32322fail:
32323 return NULL;
32324}
32325
32326
da91cb0f 32327SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32328 PyObject *resultobj = 0;
32329 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32330 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32331 void *argp1 = 0 ;
32332 int res1 = 0 ;
da91cb0f
RD
32333 void *argp2 = 0 ;
32334 int res2 = 0 ;
32335 PyObject * obj0 = 0 ;
32336 PyObject * obj1 = 0 ;
32337 char * kwnames[] = {
32338 (char *) "self",(char *) "brush", NULL
32339 };
32340
32341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32343 if (!SWIG_IsOK(res1)) {
32344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32345 }
32346 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32348 if (!SWIG_IsOK(res2)) {
32349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32350 }
32351 arg2 = reinterpret_cast< wxBrush * >(argp2);
32352 {
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
32354 (arg1)->RemoveBrush(arg2);
32355 wxPyEndAllowThreads(__tstate);
32356 if (PyErr_Occurred()) SWIG_fail;
32357 }
32358 resultobj = SWIG_Py_Void();
32359 return resultobj;
32360fail:
32361 return NULL;
32362}
32363
32364
32365SWIGINTERN PyObject *BrushList_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_wxBrushList, SWIG_NewClientData(obj));
32369 return SWIG_Py_Void();
32370}
32371
32372SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32373 PyObject *resultobj = 0;
32374 wxFontList *arg1 = (wxFontList *) 0 ;
32375 int arg2 ;
32376 int arg3 ;
32377 int arg4 ;
32378 int arg5 ;
32379 bool arg6 = (bool) false ;
32380 wxString const &arg7_defvalue = wxPyEmptyString ;
32381 wxString *arg7 = (wxString *) &arg7_defvalue ;
32382 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32383 wxFont *result = 0 ;
32384 void *argp1 = 0 ;
32385 int res1 = 0 ;
32386 int val2 ;
32387 int ecode2 = 0 ;
1bd55598
RD
32388 int val3 ;
32389 int ecode3 = 0 ;
da91cb0f
RD
32390 int val4 ;
32391 int ecode4 = 0 ;
32392 int val5 ;
32393 int ecode5 = 0 ;
32394 bool val6 ;
32395 int ecode6 = 0 ;
32396 bool temp7 = false ;
32397 int val8 ;
32398 int ecode8 = 0 ;
1bd55598
RD
32399 PyObject * obj0 = 0 ;
32400 PyObject * obj1 = 0 ;
32401 PyObject * obj2 = 0 ;
da91cb0f
RD
32402 PyObject * obj3 = 0 ;
32403 PyObject * obj4 = 0 ;
32404 PyObject * obj5 = 0 ;
32405 PyObject * obj6 = 0 ;
32406 PyObject * obj7 = 0 ;
1bd55598 32407 char * kwnames[] = {
da91cb0f 32408 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32409 };
32410
da91cb0f
RD
32411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32413 if (!SWIG_IsOK(res1)) {
da91cb0f 32414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32415 }
da91cb0f
RD
32416 arg1 = reinterpret_cast< wxFontList * >(argp1);
32417 ecode2 = SWIG_AsVal_int(obj1, &val2);
32418 if (!SWIG_IsOK(ecode2)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32420 }
32421 arg2 = static_cast< int >(val2);
32422 ecode3 = SWIG_AsVal_int(obj2, &val3);
32423 if (!SWIG_IsOK(ecode3)) {
32424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32425 }
32426 arg3 = static_cast< int >(val3);
32427 ecode4 = SWIG_AsVal_int(obj3, &val4);
32428 if (!SWIG_IsOK(ecode4)) {
32429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32430 }
32431 arg4 = static_cast< int >(val4);
32432 ecode5 = SWIG_AsVal_int(obj4, &val5);
32433 if (!SWIG_IsOK(ecode5)) {
32434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32435 }
32436 arg5 = static_cast< int >(val5);
32437 if (obj5) {
32438 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32439 if (!SWIG_IsOK(ecode6)) {
32440 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32441 }
32442 arg6 = static_cast< bool >(val6);
1bd55598 32443 }
da91cb0f
RD
32444 if (obj6) {
32445 {
32446 arg7 = wxString_in_helper(obj6);
32447 if (arg7 == NULL) SWIG_fail;
32448 temp7 = true;
32449 }
32450 }
32451 if (obj7) {
32452 ecode8 = SWIG_AsVal_int(obj7, &val8);
32453 if (!SWIG_IsOK(ecode8)) {
32454 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32455 }
da91cb0f 32456 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32457 }
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32460 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
da91cb0f
RD
32464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32465 {
32466 if (temp7)
32467 delete arg7;
32468 }
1bd55598
RD
32469 return resultobj;
32470fail:
da91cb0f
RD
32471 {
32472 if (temp7)
32473 delete arg7;
32474 }
1bd55598
RD
32475 return NULL;
32476}
32477
32478
da91cb0f 32479SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32480 PyObject *resultobj = 0;
da91cb0f
RD
32481 wxFontList *arg1 = (wxFontList *) 0 ;
32482 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32483 void *argp1 = 0 ;
32484 int res1 = 0 ;
32485 void *argp2 = 0 ;
32486 int res2 = 0 ;
32487 PyObject * obj0 = 0 ;
32488 PyObject * obj1 = 0 ;
32489 char * kwnames[] = {
da91cb0f 32490 (char *) "self",(char *) "font", NULL
1bd55598
RD
32491 };
32492
da91cb0f
RD
32493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32495 if (!SWIG_IsOK(res1)) {
da91cb0f 32496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32497 }
da91cb0f
RD
32498 arg1 = reinterpret_cast< wxFontList * >(argp1);
32499 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32500 if (!SWIG_IsOK(res2)) {
da91cb0f 32501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32502 }
da91cb0f 32503 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32504 {
32505 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32506 (arg1)->AddFont(arg2);
1bd55598
RD
32507 wxPyEndAllowThreads(__tstate);
32508 if (PyErr_Occurred()) SWIG_fail;
32509 }
32510 resultobj = SWIG_Py_Void();
32511 return resultobj;
32512fail:
32513 return NULL;
32514}
32515
32516
da91cb0f 32517SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32518 PyObject *resultobj = 0;
da91cb0f
RD
32519 wxFontList *arg1 = (wxFontList *) 0 ;
32520 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32521 void *argp1 = 0 ;
32522 int res1 = 0 ;
da91cb0f
RD
32523 void *argp2 = 0 ;
32524 int res2 = 0 ;
32525 PyObject * obj0 = 0 ;
32526 PyObject * obj1 = 0 ;
32527 char * kwnames[] = {
32528 (char *) "self",(char *) "font", NULL
32529 };
1bd55598 32530
da91cb0f
RD
32531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32533 if (!SWIG_IsOK(res1)) {
da91cb0f 32534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32535 }
da91cb0f
RD
32536 arg1 = reinterpret_cast< wxFontList * >(argp1);
32537 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32538 if (!SWIG_IsOK(res2)) {
32539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32540 }
32541 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32542 {
32543 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32544 (arg1)->RemoveFont(arg2);
1bd55598
RD
32545 wxPyEndAllowThreads(__tstate);
32546 if (PyErr_Occurred()) SWIG_fail;
32547 }
da91cb0f 32548 resultobj = SWIG_Py_Void();
1bd55598
RD
32549 return resultobj;
32550fail:
32551 return NULL;
32552}
32553
32554
da91cb0f 32555SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32556 PyObject *obj;
32557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32558 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32559 return SWIG_Py_Void();
32560}
32561
32562SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32563 PyObject *resultobj = 0;
32564 wxColourDatabase *result = 0 ;
32565
32566 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32567 {
32568 if (!wxPyCheckForApp()) SWIG_fail;
32569 PyThreadState* __tstate = wxPyBeginAllowThreads();
32570 result = (wxColourDatabase *)new wxColourDatabase();
32571 wxPyEndAllowThreads(__tstate);
32572 if (PyErr_Occurred()) SWIG_fail;
32573 }
32574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32575 return resultobj;
32576fail:
32577 return NULL;
32578}
32579
32580
32581SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32582 PyObject *resultobj = 0;
32583 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32584 void *argp1 = 0 ;
32585 int res1 = 0 ;
32586 PyObject *swig_obj[1] ;
32587
32588 if (!args) SWIG_fail;
32589 swig_obj[0] = args;
32590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32591 if (!SWIG_IsOK(res1)) {
32592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32593 }
32594 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32595 {
32596 PyThreadState* __tstate = wxPyBeginAllowThreads();
32597 delete arg1;
32598
32599 wxPyEndAllowThreads(__tstate);
32600 if (PyErr_Occurred()) SWIG_fail;
32601 }
32602 resultobj = SWIG_Py_Void();
32603 return resultobj;
32604fail:
32605 return NULL;
32606}
32607
32608
32609SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32610 PyObject *resultobj = 0;
32611 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32612 wxString *arg2 = 0 ;
32613 wxColour result;
32614 void *argp1 = 0 ;
32615 int res1 = 0 ;
32616 bool temp2 = false ;
32617 PyObject * obj0 = 0 ;
32618 PyObject * obj1 = 0 ;
32619 char * kwnames[] = {
32620 (char *) "self",(char *) "name", NULL
32621 };
32622
32623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32625 if (!SWIG_IsOK(res1)) {
32626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32627 }
32628 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32629 {
32630 arg2 = wxString_in_helper(obj1);
32631 if (arg2 == NULL) SWIG_fail;
32632 temp2 = true;
32633 }
32634 {
32635 PyThreadState* __tstate = wxPyBeginAllowThreads();
32636 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32637 wxPyEndAllowThreads(__tstate);
32638 if (PyErr_Occurred()) SWIG_fail;
32639 }
32640 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32641 {
32642 if (temp2)
32643 delete arg2;
32644 }
32645 return resultobj;
32646fail:
32647 {
32648 if (temp2)
32649 delete arg2;
32650 }
32651 return NULL;
32652}
32653
32654
32655SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32656 PyObject *resultobj = 0;
32657 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32658 wxColour *arg2 = 0 ;
32659 wxString result;
32660 void *argp1 = 0 ;
32661 int res1 = 0 ;
32662 wxColour temp2 ;
32663 PyObject * obj0 = 0 ;
32664 PyObject * obj1 = 0 ;
32665 char * kwnames[] = {
32666 (char *) "self",(char *) "colour", NULL
32667 };
32668
32669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32671 if (!SWIG_IsOK(res1)) {
32672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32673 }
32674 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32675 {
32676 arg2 = &temp2;
32677 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32678 }
32679 {
32680 PyThreadState* __tstate = wxPyBeginAllowThreads();
32681 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32682 wxPyEndAllowThreads(__tstate);
32683 if (PyErr_Occurred()) SWIG_fail;
32684 }
32685 {
32686#if wxUSE_UNICODE
32687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32688#else
32689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32690#endif
32691 }
32692 return resultobj;
32693fail:
32694 return NULL;
32695}
32696
32697
32698SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32699 PyObject *resultobj = 0;
32700 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32701 wxString *arg2 = 0 ;
32702 wxColour *arg3 = 0 ;
32703 void *argp1 = 0 ;
32704 int res1 = 0 ;
32705 bool temp2 = false ;
32706 wxColour temp3 ;
32707 PyObject * obj0 = 0 ;
32708 PyObject * obj1 = 0 ;
32709 PyObject * obj2 = 0 ;
32710 char * kwnames[] = {
32711 (char *) "self",(char *) "name",(char *) "colour", NULL
32712 };
32713
32714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32716 if (!SWIG_IsOK(res1)) {
32717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32718 }
32719 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32720 {
32721 arg2 = wxString_in_helper(obj1);
32722 if (arg2 == NULL) SWIG_fail;
32723 temp2 = true;
32724 }
32725 {
32726 arg3 = &temp3;
32727 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32728 }
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32732 wxPyEndAllowThreads(__tstate);
32733 if (PyErr_Occurred()) SWIG_fail;
32734 }
32735 resultobj = SWIG_Py_Void();
32736 {
32737 if (temp2)
32738 delete arg2;
32739 }
32740 return resultobj;
32741fail:
32742 {
32743 if (temp2)
32744 delete arg2;
32745 }
32746 return NULL;
32747}
32748
32749
32750SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32751 PyObject *resultobj = 0;
32752 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32753 wxString *arg2 = 0 ;
32754 int arg3 ;
32755 int arg4 ;
32756 int arg5 ;
32757 void *argp1 = 0 ;
32758 int res1 = 0 ;
32759 bool temp2 = false ;
32760 int val3 ;
32761 int ecode3 = 0 ;
32762 int val4 ;
32763 int ecode4 = 0 ;
da91cb0f
RD
32764 int val5 ;
32765 int ecode5 = 0 ;
1bd55598
RD
32766 PyObject * obj0 = 0 ;
32767 PyObject * obj1 = 0 ;
32768 PyObject * obj2 = 0 ;
32769 PyObject * obj3 = 0 ;
32770 PyObject * obj4 = 0 ;
1bd55598 32771 char * kwnames[] = {
da91cb0f 32772 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32773 };
32774
da91cb0f
RD
32775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32777 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32779 }
32780 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32781 {
32782 arg2 = wxString_in_helper(obj1);
32783 if (arg2 == NULL) SWIG_fail;
32784 temp2 = true;
1bd55598 32785 }
1bd55598
RD
32786 ecode3 = SWIG_AsVal_int(obj2, &val3);
32787 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32789 }
32790 arg3 = static_cast< int >(val3);
32791 ecode4 = SWIG_AsVal_int(obj3, &val4);
32792 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32794 }
32795 arg4 = static_cast< int >(val4);
32796 ecode5 = SWIG_AsVal_int(obj4, &val5);
32797 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32799 }
32800 arg5 = static_cast< int >(val5);
1bd55598
RD
32801 {
32802 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32803 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32804 wxPyEndAllowThreads(__tstate);
32805 if (PyErr_Occurred()) SWIG_fail;
32806 }
da91cb0f 32807 resultobj = SWIG_Py_Void();
1bd55598 32808 {
da91cb0f
RD
32809 if (temp2)
32810 delete arg2;
1bd55598
RD
32811 }
32812 return resultobj;
32813fail:
32814 {
da91cb0f
RD
32815 if (temp2)
32816 delete arg2;
1bd55598
RD
32817 }
32818 return NULL;
32819}
32820
32821
da91cb0f
RD
32822SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32823 PyObject *obj;
32824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32825 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32826 return SWIG_Py_Void();
32827}
32828
32829SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32830 return SWIG_Python_InitShadowInstance(args);
32831}
32832
32833SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32834 PyObject *resultobj = 0;
da91cb0f 32835 wxFontList *result = 0 ;
1bd55598 32836
da91cb0f 32837 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32838 {
32839 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32840 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32841 wxPyEndAllowThreads(__tstate);
32842 if (PyErr_Occurred()) SWIG_fail;
32843 }
da91cb0f 32844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32845 return resultobj;
32846fail:
32847 return NULL;
32848}
32849
32850
da91cb0f 32851SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32852 PyObject *resultobj = 0;
da91cb0f 32853 wxPenList *result = 0 ;
1bd55598 32854
da91cb0f 32855 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32856 {
32857 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32858 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32859 wxPyEndAllowThreads(__tstate);
32860 if (PyErr_Occurred()) SWIG_fail;
32861 }
da91cb0f 32862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32863 return resultobj;
32864fail:
32865 return NULL;
32866}
32867
32868
da91cb0f
RD
32869SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32870 PyObject *resultobj = 0;
32871 wxBrushList *result = 0 ;
1bd55598 32872
da91cb0f
RD
32873 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32874 {
32875 PyThreadState* __tstate = wxPyBeginAllowThreads();
32876 result = (wxBrushList *)_wxPyInitTheBrushList();
32877 wxPyEndAllowThreads(__tstate);
32878 if (PyErr_Occurred()) SWIG_fail;
32879 }
32880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32881 return resultobj;
32882fail:
32883 return NULL;
1bd55598
RD
32884}
32885
32886
da91cb0f
RD
32887SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32888 PyObject *resultobj = 0;
32889 wxColourDatabase *result = 0 ;
1bd55598 32890
da91cb0f
RD
32891 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32892 {
32893 PyThreadState* __tstate = wxPyBeginAllowThreads();
32894 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32895 wxPyEndAllowThreads(__tstate);
32896 if (PyErr_Occurred()) SWIG_fail;
32897 }
32898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32899 return resultobj;
32900fail:
32901 return NULL;
1bd55598
RD
32902}
32903
32904
32905SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32906 PyObject *resultobj = 0;
32907 wxEffects *result = 0 ;
32908
32909 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32910 {
32911 PyThreadState* __tstate = wxPyBeginAllowThreads();
32912 result = (wxEffects *)new wxEffects();
32913 wxPyEndAllowThreads(__tstate);
32914 if (PyErr_Occurred()) SWIG_fail;
32915 }
32916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32917 return resultobj;
32918fail:
32919 return NULL;
32920}
32921
32922
32923SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32924 PyObject *resultobj = 0;
32925 wxEffects *arg1 = (wxEffects *) 0 ;
32926 wxColour result;
32927 void *argp1 = 0 ;
32928 int res1 = 0 ;
32929 PyObject *swig_obj[1] ;
32930
32931 if (!args) SWIG_fail;
32932 swig_obj[0] = args;
32933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32934 if (!SWIG_IsOK(res1)) {
32935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32936 }
32937 arg1 = reinterpret_cast< wxEffects * >(argp1);
32938 {
32939 PyThreadState* __tstate = wxPyBeginAllowThreads();
32940 result = ((wxEffects const *)arg1)->GetHighlightColour();
32941 wxPyEndAllowThreads(__tstate);
32942 if (PyErr_Occurred()) SWIG_fail;
32943 }
32944 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32945 return resultobj;
32946fail:
32947 return NULL;
32948}
32949
32950
32951SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32952 PyObject *resultobj = 0;
32953 wxEffects *arg1 = (wxEffects *) 0 ;
32954 wxColour result;
32955 void *argp1 = 0 ;
32956 int res1 = 0 ;
32957 PyObject *swig_obj[1] ;
32958
32959 if (!args) SWIG_fail;
32960 swig_obj[0] = args;
32961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32962 if (!SWIG_IsOK(res1)) {
32963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32964 }
32965 arg1 = reinterpret_cast< wxEffects * >(argp1);
32966 {
32967 PyThreadState* __tstate = wxPyBeginAllowThreads();
32968 result = ((wxEffects const *)arg1)->GetLightShadow();
32969 wxPyEndAllowThreads(__tstate);
32970 if (PyErr_Occurred()) SWIG_fail;
32971 }
32972 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32973 return resultobj;
32974fail:
32975 return NULL;
32976}
32977
32978
32979SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32980 PyObject *resultobj = 0;
32981 wxEffects *arg1 = (wxEffects *) 0 ;
32982 wxColour result;
32983 void *argp1 = 0 ;
32984 int res1 = 0 ;
32985 PyObject *swig_obj[1] ;
32986
32987 if (!args) SWIG_fail;
32988 swig_obj[0] = args;
32989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32990 if (!SWIG_IsOK(res1)) {
32991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32992 }
32993 arg1 = reinterpret_cast< wxEffects * >(argp1);
32994 {
32995 PyThreadState* __tstate = wxPyBeginAllowThreads();
32996 result = ((wxEffects const *)arg1)->GetFaceColour();
32997 wxPyEndAllowThreads(__tstate);
32998 if (PyErr_Occurred()) SWIG_fail;
32999 }
33000 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33001 return resultobj;
33002fail:
33003 return NULL;
33004}
33005
33006
33007SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33008 PyObject *resultobj = 0;
33009 wxEffects *arg1 = (wxEffects *) 0 ;
33010 wxColour result;
33011 void *argp1 = 0 ;
33012 int res1 = 0 ;
33013 PyObject *swig_obj[1] ;
33014
33015 if (!args) SWIG_fail;
33016 swig_obj[0] = args;
33017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33020 }
33021 arg1 = reinterpret_cast< wxEffects * >(argp1);
33022 {
33023 PyThreadState* __tstate = wxPyBeginAllowThreads();
33024 result = ((wxEffects const *)arg1)->GetMediumShadow();
33025 wxPyEndAllowThreads(__tstate);
33026 if (PyErr_Occurred()) SWIG_fail;
33027 }
33028 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33029 return resultobj;
33030fail:
33031 return NULL;
33032}
33033
33034
33035SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33036 PyObject *resultobj = 0;
33037 wxEffects *arg1 = (wxEffects *) 0 ;
33038 wxColour result;
33039 void *argp1 = 0 ;
33040 int res1 = 0 ;
33041 PyObject *swig_obj[1] ;
33042
33043 if (!args) SWIG_fail;
33044 swig_obj[0] = args;
33045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33046 if (!SWIG_IsOK(res1)) {
33047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33048 }
33049 arg1 = reinterpret_cast< wxEffects * >(argp1);
33050 {
33051 PyThreadState* __tstate = wxPyBeginAllowThreads();
33052 result = ((wxEffects const *)arg1)->GetDarkShadow();
33053 wxPyEndAllowThreads(__tstate);
33054 if (PyErr_Occurred()) SWIG_fail;
33055 }
33056 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33057 return resultobj;
33058fail:
33059 return NULL;
33060}
33061
33062
33063SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33064 PyObject *resultobj = 0;
33065 wxEffects *arg1 = (wxEffects *) 0 ;
33066 wxColour *arg2 = 0 ;
33067 void *argp1 = 0 ;
33068 int res1 = 0 ;
33069 wxColour temp2 ;
33070 PyObject * obj0 = 0 ;
33071 PyObject * obj1 = 0 ;
33072 char * kwnames[] = {
33073 (char *) "self",(char *) "c", NULL
33074 };
33075
33076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33078 if (!SWIG_IsOK(res1)) {
33079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33080 }
33081 arg1 = reinterpret_cast< wxEffects * >(argp1);
33082 {
33083 arg2 = &temp2;
33084 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33085 }
33086 {
33087 PyThreadState* __tstate = wxPyBeginAllowThreads();
33088 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33089 wxPyEndAllowThreads(__tstate);
33090 if (PyErr_Occurred()) SWIG_fail;
33091 }
33092 resultobj = SWIG_Py_Void();
33093 return resultobj;
33094fail:
33095 return NULL;
33096}
33097
33098
33099SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33100 PyObject *resultobj = 0;
33101 wxEffects *arg1 = (wxEffects *) 0 ;
33102 wxColour *arg2 = 0 ;
33103 void *argp1 = 0 ;
33104 int res1 = 0 ;
33105 wxColour temp2 ;
33106 PyObject * obj0 = 0 ;
33107 PyObject * obj1 = 0 ;
33108 char * kwnames[] = {
33109 (char *) "self",(char *) "c", NULL
33110 };
33111
33112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33114 if (!SWIG_IsOK(res1)) {
33115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33116 }
33117 arg1 = reinterpret_cast< wxEffects * >(argp1);
33118 {
33119 arg2 = &temp2;
33120 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33121 }
33122 {
33123 PyThreadState* __tstate = wxPyBeginAllowThreads();
33124 (arg1)->SetLightShadow((wxColour const &)*arg2);
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_Py_Void();
33129 return resultobj;
33130fail:
33131 return NULL;
33132}
33133
33134
33135SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33136 PyObject *resultobj = 0;
33137 wxEffects *arg1 = (wxEffects *) 0 ;
33138 wxColour *arg2 = 0 ;
33139 void *argp1 = 0 ;
33140 int res1 = 0 ;
33141 wxColour temp2 ;
33142 PyObject * obj0 = 0 ;
33143 PyObject * obj1 = 0 ;
33144 char * kwnames[] = {
33145 (char *) "self",(char *) "c", NULL
33146 };
33147
33148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33150 if (!SWIG_IsOK(res1)) {
33151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33152 }
33153 arg1 = reinterpret_cast< wxEffects * >(argp1);
33154 {
33155 arg2 = &temp2;
33156 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33157 }
33158 {
33159 PyThreadState* __tstate = wxPyBeginAllowThreads();
33160 (arg1)->SetFaceColour((wxColour const &)*arg2);
33161 wxPyEndAllowThreads(__tstate);
33162 if (PyErr_Occurred()) SWIG_fail;
33163 }
33164 resultobj = SWIG_Py_Void();
33165 return resultobj;
33166fail:
33167 return NULL;
33168}
33169
33170
33171SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33172 PyObject *resultobj = 0;
33173 wxEffects *arg1 = (wxEffects *) 0 ;
33174 wxColour *arg2 = 0 ;
33175 void *argp1 = 0 ;
33176 int res1 = 0 ;
33177 wxColour temp2 ;
33178 PyObject * obj0 = 0 ;
33179 PyObject * obj1 = 0 ;
33180 char * kwnames[] = {
33181 (char *) "self",(char *) "c", NULL
33182 };
33183
33184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33186 if (!SWIG_IsOK(res1)) {
33187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33188 }
33189 arg1 = reinterpret_cast< wxEffects * >(argp1);
33190 {
33191 arg2 = &temp2;
33192 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33193 }
33194 {
33195 PyThreadState* __tstate = wxPyBeginAllowThreads();
33196 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33197 wxPyEndAllowThreads(__tstate);
33198 if (PyErr_Occurred()) SWIG_fail;
33199 }
33200 resultobj = SWIG_Py_Void();
33201 return resultobj;
33202fail:
33203 return NULL;
33204}
33205
33206
33207SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33208 PyObject *resultobj = 0;
33209 wxEffects *arg1 = (wxEffects *) 0 ;
33210 wxColour *arg2 = 0 ;
33211 void *argp1 = 0 ;
33212 int res1 = 0 ;
33213 wxColour temp2 ;
33214 PyObject * obj0 = 0 ;
33215 PyObject * obj1 = 0 ;
33216 char * kwnames[] = {
33217 (char *) "self",(char *) "c", NULL
33218 };
33219
33220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33222 if (!SWIG_IsOK(res1)) {
33223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33224 }
33225 arg1 = reinterpret_cast< wxEffects * >(argp1);
33226 {
33227 arg2 = &temp2;
33228 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33229 }
33230 {
33231 PyThreadState* __tstate = wxPyBeginAllowThreads();
33232 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33233 wxPyEndAllowThreads(__tstate);
33234 if (PyErr_Occurred()) SWIG_fail;
33235 }
33236 resultobj = SWIG_Py_Void();
33237 return resultobj;
33238fail:
33239 return NULL;
33240}
33241
33242
33243SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33244 PyObject *resultobj = 0;
33245 wxEffects *arg1 = (wxEffects *) 0 ;
33246 wxColour *arg2 = 0 ;
33247 wxColour *arg3 = 0 ;
33248 wxColour *arg4 = 0 ;
33249 wxColour *arg5 = 0 ;
33250 wxColour *arg6 = 0 ;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 wxColour temp2 ;
33254 wxColour temp3 ;
33255 wxColour temp4 ;
33256 wxColour temp5 ;
33257 wxColour temp6 ;
33258 PyObject * obj0 = 0 ;
33259 PyObject * obj1 = 0 ;
33260 PyObject * obj2 = 0 ;
33261 PyObject * obj3 = 0 ;
33262 PyObject * obj4 = 0 ;
33263 PyObject * obj5 = 0 ;
33264 char * kwnames[] = {
33265 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33266 };
33267
33268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33270 if (!SWIG_IsOK(res1)) {
33271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33272 }
33273 arg1 = reinterpret_cast< wxEffects * >(argp1);
33274 {
33275 arg2 = &temp2;
33276 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33277 }
33278 {
33279 arg3 = &temp3;
33280 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33281 }
33282 {
33283 arg4 = &temp4;
33284 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33285 }
33286 {
33287 arg5 = &temp5;
33288 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33289 }
33290 {
33291 arg6 = &temp6;
33292 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33293 }
33294 {
33295 PyThreadState* __tstate = wxPyBeginAllowThreads();
33296 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33297 wxPyEndAllowThreads(__tstate);
33298 if (PyErr_Occurred()) SWIG_fail;
33299 }
33300 resultobj = SWIG_Py_Void();
33301 return resultobj;
33302fail:
33303 return NULL;
33304}
33305
33306
33307SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33308 PyObject *resultobj = 0;
33309 wxEffects *arg1 = (wxEffects *) 0 ;
33310 wxDC *arg2 = 0 ;
33311 wxRect *arg3 = 0 ;
33312 int arg4 = (int) 1 ;
33313 void *argp1 = 0 ;
33314 int res1 = 0 ;
33315 void *argp2 = 0 ;
33316 int res2 = 0 ;
33317 wxRect temp3 ;
33318 int val4 ;
33319 int ecode4 = 0 ;
33320 PyObject * obj0 = 0 ;
33321 PyObject * obj1 = 0 ;
33322 PyObject * obj2 = 0 ;
33323 PyObject * obj3 = 0 ;
33324 char * kwnames[] = {
33325 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33326 };
33327
33328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33330 if (!SWIG_IsOK(res1)) {
33331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33332 }
33333 arg1 = reinterpret_cast< wxEffects * >(argp1);
33334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33335 if (!SWIG_IsOK(res2)) {
33336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33337 }
33338 if (!argp2) {
33339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33340 }
33341 arg2 = reinterpret_cast< wxDC * >(argp2);
33342 {
33343 arg3 = &temp3;
33344 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33345 }
33346 if (obj3) {
33347 ecode4 = SWIG_AsVal_int(obj3, &val4);
33348 if (!SWIG_IsOK(ecode4)) {
33349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33350 }
33351 arg4 = static_cast< int >(val4);
33352 }
33353 {
33354 PyThreadState* __tstate = wxPyBeginAllowThreads();
33355 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33356 wxPyEndAllowThreads(__tstate);
33357 if (PyErr_Occurred()) SWIG_fail;
33358 }
33359 resultobj = SWIG_Py_Void();
33360 return resultobj;
33361fail:
33362 return NULL;
33363}
33364
33365
33366SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33367 PyObject *resultobj = 0;
33368 wxEffects *arg1 = (wxEffects *) 0 ;
33369 wxRect *arg2 = 0 ;
33370 wxDC *arg3 = 0 ;
33371 wxBitmap *arg4 = 0 ;
33372 bool result;
33373 void *argp1 = 0 ;
33374 int res1 = 0 ;
33375 wxRect temp2 ;
33376 void *argp3 = 0 ;
33377 int res3 = 0 ;
33378 void *argp4 = 0 ;
33379 int res4 = 0 ;
33380 PyObject * obj0 = 0 ;
33381 PyObject * obj1 = 0 ;
33382 PyObject * obj2 = 0 ;
33383 PyObject * obj3 = 0 ;
33384 char * kwnames[] = {
33385 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33386 };
33387
33388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33390 if (!SWIG_IsOK(res1)) {
33391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33392 }
33393 arg1 = reinterpret_cast< wxEffects * >(argp1);
33394 {
33395 arg2 = &temp2;
33396 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33397 }
33398 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33399 if (!SWIG_IsOK(res3)) {
33400 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33401 }
33402 if (!argp3) {
33403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33404 }
33405 arg3 = reinterpret_cast< wxDC * >(argp3);
33406 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33407 if (!SWIG_IsOK(res4)) {
33408 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33409 }
33410 if (!argp4) {
33411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33412 }
33413 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33414 {
33415 PyThreadState* __tstate = wxPyBeginAllowThreads();
33416 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33417 wxPyEndAllowThreads(__tstate);
33418 if (PyErr_Occurred()) SWIG_fail;
33419 }
33420 {
33421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33422 }
33423 return resultobj;
33424fail:
33425 return NULL;
33426}
33427
33428
33429SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33430 PyObject *obj;
33431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33432 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33433 return SWIG_Py_Void();
33434}
33435
33436SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33437 return SWIG_Python_InitShadowInstance(args);
33438}
33439
33440SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33441 PyObject *resultobj = 0;
33442 int arg1 ;
33443 int arg2 ;
33444 bool arg3 ;
33445 wxSplitterRenderParams *result = 0 ;
33446 int val1 ;
33447 int ecode1 = 0 ;
33448 int val2 ;
33449 int ecode2 = 0 ;
33450 bool val3 ;
33451 int ecode3 = 0 ;
33452 PyObject * obj0 = 0 ;
33453 PyObject * obj1 = 0 ;
33454 PyObject * obj2 = 0 ;
33455 char * kwnames[] = {
33456 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33457 };
33458
33459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33460 ecode1 = SWIG_AsVal_int(obj0, &val1);
33461 if (!SWIG_IsOK(ecode1)) {
33462 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33463 }
33464 arg1 = static_cast< int >(val1);
33465 ecode2 = SWIG_AsVal_int(obj1, &val2);
33466 if (!SWIG_IsOK(ecode2)) {
33467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33468 }
33469 arg2 = static_cast< int >(val2);
33470 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33471 if (!SWIG_IsOK(ecode3)) {
33472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33473 }
33474 arg3 = static_cast< bool >(val3);
33475 {
33476 PyThreadState* __tstate = wxPyBeginAllowThreads();
33477 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33478 wxPyEndAllowThreads(__tstate);
33479 if (PyErr_Occurred()) SWIG_fail;
33480 }
33481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33482 return resultobj;
33483fail:
33484 return NULL;
33485}
33486
33487
33488SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33489 PyObject *resultobj = 0;
33490 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33491 void *argp1 = 0 ;
33492 int res1 = 0 ;
33493 PyObject *swig_obj[1] ;
33494
33495 if (!args) SWIG_fail;
33496 swig_obj[0] = args;
33497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33498 if (!SWIG_IsOK(res1)) {
33499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33500 }
33501 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33502 {
33503 PyThreadState* __tstate = wxPyBeginAllowThreads();
33504 delete arg1;
33505
33506 wxPyEndAllowThreads(__tstate);
33507 if (PyErr_Occurred()) SWIG_fail;
33508 }
33509 resultobj = SWIG_Py_Void();
33510 return resultobj;
33511fail:
33512 return NULL;
33513}
33514
33515
33516SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33517 PyObject *resultobj = 0;
33518 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33519 int result;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 PyObject *swig_obj[1] ;
33523
33524 if (!args) SWIG_fail;
33525 swig_obj[0] = args;
33526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33527 if (!SWIG_IsOK(res1)) {
33528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33529 }
33530 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33531 result = (int)(int) ((arg1)->widthSash);
33532 resultobj = SWIG_From_int(static_cast< int >(result));
33533 return resultobj;
33534fail:
33535 return NULL;
33536}
33537
33538
33539SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33540 PyObject *resultobj = 0;
33541 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33542 int result;
33543 void *argp1 = 0 ;
33544 int res1 = 0 ;
33545 PyObject *swig_obj[1] ;
33546
33547 if (!args) SWIG_fail;
33548 swig_obj[0] = args;
33549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33550 if (!SWIG_IsOK(res1)) {
33551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33552 }
33553 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33554 result = (int)(int) ((arg1)->border);
33555 resultobj = SWIG_From_int(static_cast< int >(result));
33556 return resultobj;
33557fail:
33558 return NULL;
33559}
33560
33561
33562SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33563 PyObject *resultobj = 0;
33564 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33565 bool result;
33566 void *argp1 = 0 ;
33567 int res1 = 0 ;
33568 PyObject *swig_obj[1] ;
33569
33570 if (!args) SWIG_fail;
33571 swig_obj[0] = args;
33572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33573 if (!SWIG_IsOK(res1)) {
33574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33575 }
33576 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33577 result = (bool)(bool) ((arg1)->isHotSensitive);
33578 resultobj = SWIG_From_bool(static_cast< bool >(result));
33579 return resultobj;
33580fail:
33581 return NULL;
33582}
33583
33584
33585SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33586 PyObject *obj;
33587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33588 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33589 return SWIG_Py_Void();
33590}
33591
33592SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33593 return SWIG_Python_InitShadowInstance(args);
33594}
33595
33d6fd3b
RD
33596SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33597 PyObject *resultobj = 0;
33598 wxHeaderButtonParams *result = 0 ;
33599
33600 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33601 {
33602 PyThreadState* __tstate = wxPyBeginAllowThreads();
33603 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33604 wxPyEndAllowThreads(__tstate);
33605 if (PyErr_Occurred()) SWIG_fail;
33606 }
33607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33608 return resultobj;
33609fail:
33610 return NULL;
33611}
33612
33613
33614SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33615 PyObject *resultobj = 0;
33616 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 PyObject *swig_obj[1] ;
33620
33621 if (!args) SWIG_fail;
33622 swig_obj[0] = args;
33623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33624 if (!SWIG_IsOK(res1)) {
33625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33626 }
33627 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33628 {
33629 PyThreadState* __tstate = wxPyBeginAllowThreads();
33630 delete arg1;
33631
33632 wxPyEndAllowThreads(__tstate);
33633 if (PyErr_Occurred()) SWIG_fail;
33634 }
33635 resultobj = SWIG_Py_Void();
33636 return resultobj;
33637fail:
33638 return NULL;
33639}
33640
33641
33642SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33643 PyObject *resultobj = 0;
33644 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33645 wxColour *arg2 = (wxColour *) 0 ;
33646 void *argp1 = 0 ;
33647 int res1 = 0 ;
33648 wxColour temp2 ;
33649 PyObject *swig_obj[2] ;
33650
33651 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33653 if (!SWIG_IsOK(res1)) {
33654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33655 }
33656 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33657 {
33658 arg2 = &temp2;
33659 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33660 }
33661 if (arg1) (arg1)->m_arrowColour = *arg2;
33662
33663 resultobj = SWIG_Py_Void();
33664 return resultobj;
33665fail:
33666 return NULL;
33667}
33668
33669
33670SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33671 PyObject *resultobj = 0;
33672 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33673 wxColour *result = 0 ;
33674 void *argp1 = 0 ;
33675 int res1 = 0 ;
33676 PyObject *swig_obj[1] ;
33677
33678 if (!args) SWIG_fail;
33679 swig_obj[0] = args;
33680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33683 }
33684 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33685 result = (wxColour *)& ((arg1)->m_arrowColour);
33686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33687 return resultobj;
33688fail:
33689 return NULL;
33690}
33691
33692
33693SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33694 PyObject *resultobj = 0;
33695 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33696 wxColour *arg2 = (wxColour *) 0 ;
33697 void *argp1 = 0 ;
33698 int res1 = 0 ;
33699 wxColour temp2 ;
33700 PyObject *swig_obj[2] ;
33701
33702 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33704 if (!SWIG_IsOK(res1)) {
33705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33706 }
33707 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33708 {
33709 arg2 = &temp2;
33710 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33711 }
33712 if (arg1) (arg1)->m_selectionColour = *arg2;
33713
33714 resultobj = SWIG_Py_Void();
33715 return resultobj;
33716fail:
33717 return NULL;
33718}
33719
33720
33721SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33722 PyObject *resultobj = 0;
33723 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33724 wxColour *result = 0 ;
33725 void *argp1 = 0 ;
33726 int res1 = 0 ;
33727 PyObject *swig_obj[1] ;
33728
33729 if (!args) SWIG_fail;
33730 swig_obj[0] = args;
33731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33732 if (!SWIG_IsOK(res1)) {
33733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33734 }
33735 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33736 result = (wxColour *)& ((arg1)->m_selectionColour);
33737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33738 return resultobj;
33739fail:
33740 return NULL;
33741}
33742
33743
33744SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33745 PyObject *resultobj = 0;
33746 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33747 wxString *arg2 = (wxString *) 0 ;
33748 void *argp1 = 0 ;
33749 int res1 = 0 ;
33750 bool temp2 = false ;
33751 PyObject *swig_obj[2] ;
33752
33753 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33755 if (!SWIG_IsOK(res1)) {
33756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33757 }
33758 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33759 {
33760 arg2 = wxString_in_helper(swig_obj[1]);
33761 if (arg2 == NULL) SWIG_fail;
33762 temp2 = true;
33763 }
33764 if (arg1) (arg1)->m_labelText = *arg2;
33765
33766 resultobj = SWIG_Py_Void();
33767 {
33768 if (temp2)
33769 delete arg2;
33770 }
33771 return resultobj;
33772fail:
33773 {
33774 if (temp2)
33775 delete arg2;
33776 }
33777 return NULL;
33778}
33779
33780
33781SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33782 PyObject *resultobj = 0;
33783 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33784 wxString *result = 0 ;
33785 void *argp1 = 0 ;
33786 int res1 = 0 ;
33787 PyObject *swig_obj[1] ;
33788
33789 if (!args) SWIG_fail;
33790 swig_obj[0] = args;
33791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33792 if (!SWIG_IsOK(res1)) {
33793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33794 }
33795 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33796 result = (wxString *)& ((arg1)->m_labelText);
33797 {
33798#if wxUSE_UNICODE
33799 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33800#else
33801 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33802#endif
33803 }
33804 return resultobj;
33805fail:
33806 return NULL;
33807}
33808
33809
33810SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33811 PyObject *resultobj = 0;
33812 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33813 wxFont *arg2 = (wxFont *) 0 ;
33814 void *argp1 = 0 ;
33815 int res1 = 0 ;
33816 void *argp2 = 0 ;
33817 int res2 = 0 ;
33818 PyObject *swig_obj[2] ;
33819
33820 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33822 if (!SWIG_IsOK(res1)) {
33823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33824 }
33825 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33826 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33827 if (!SWIG_IsOK(res2)) {
33828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33829 }
33830 arg2 = reinterpret_cast< wxFont * >(argp2);
33831 if (arg1) (arg1)->m_labelFont = *arg2;
33832
33833 resultobj = SWIG_Py_Void();
33834 return resultobj;
33835fail:
33836 return NULL;
33837}
33838
33839
33840SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33841 PyObject *resultobj = 0;
33842 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33843 wxFont *result = 0 ;
33844 void *argp1 = 0 ;
33845 int res1 = 0 ;
33846 PyObject *swig_obj[1] ;
33847
33848 if (!args) SWIG_fail;
33849 swig_obj[0] = args;
33850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33853 }
33854 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33855 result = (wxFont *)& ((arg1)->m_labelFont);
33856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33857 return resultobj;
33858fail:
33859 return NULL;
33860}
33861
33862
33863SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33864 PyObject *resultobj = 0;
33865 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33866 wxColour *arg2 = (wxColour *) 0 ;
33867 void *argp1 = 0 ;
33868 int res1 = 0 ;
33869 wxColour temp2 ;
33870 PyObject *swig_obj[2] ;
33871
33872 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33874 if (!SWIG_IsOK(res1)) {
33875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33876 }
33877 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33878 {
33879 arg2 = &temp2;
33880 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33881 }
33882 if (arg1) (arg1)->m_labelColour = *arg2;
33883
33884 resultobj = SWIG_Py_Void();
33885 return resultobj;
33886fail:
33887 return NULL;
33888}
33889
33890
33891SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33892 PyObject *resultobj = 0;
33893 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33894 wxColour *result = 0 ;
33895 void *argp1 = 0 ;
33896 int res1 = 0 ;
33897 PyObject *swig_obj[1] ;
33898
33899 if (!args) SWIG_fail;
33900 swig_obj[0] = args;
33901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33902 if (!SWIG_IsOK(res1)) {
33903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33904 }
33905 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33906 result = (wxColour *)& ((arg1)->m_labelColour);
33907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33908 return resultobj;
33909fail:
33910 return NULL;
33911}
33912
33913
33914SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33915 PyObject *resultobj = 0;
33916 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33917 wxBitmap *arg2 = (wxBitmap *) 0 ;
33918 void *argp1 = 0 ;
33919 int res1 = 0 ;
33920 void *argp2 = 0 ;
33921 int res2 = 0 ;
33922 PyObject *swig_obj[2] ;
33923
33924 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33926 if (!SWIG_IsOK(res1)) {
33927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33928 }
33929 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33930 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33931 if (!SWIG_IsOK(res2)) {
33932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33933 }
33934 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33935 if (arg1) (arg1)->m_labelBitmap = *arg2;
33936
33937 resultobj = SWIG_Py_Void();
33938 return resultobj;
33939fail:
33940 return NULL;
33941}
33942
33943
33944SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33945 PyObject *resultobj = 0;
33946 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33947 wxBitmap *result = 0 ;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 PyObject *swig_obj[1] ;
33951
33952 if (!args) SWIG_fail;
33953 swig_obj[0] = args;
33954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33955 if (!SWIG_IsOK(res1)) {
33956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33957 }
33958 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33959 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33961 return resultobj;
33962fail:
33963 return NULL;
33964}
33965
33966
33967SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33968 PyObject *resultobj = 0;
33969 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33970 int arg2 ;
33971 void *argp1 = 0 ;
33972 int res1 = 0 ;
33973 int val2 ;
33974 int ecode2 = 0 ;
33975 PyObject *swig_obj[2] ;
33976
33977 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33979 if (!SWIG_IsOK(res1)) {
33980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33981 }
33982 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33983 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33984 if (!SWIG_IsOK(ecode2)) {
33985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33986 }
33987 arg2 = static_cast< int >(val2);
33988 if (arg1) (arg1)->m_labelAlignment = arg2;
33989
33990 resultobj = SWIG_Py_Void();
33991 return resultobj;
33992fail:
33993 return NULL;
33994}
33995
33996
33997SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33998 PyObject *resultobj = 0;
33999 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34000 int result;
34001 void *argp1 = 0 ;
34002 int res1 = 0 ;
34003 PyObject *swig_obj[1] ;
34004
34005 if (!args) SWIG_fail;
34006 swig_obj[0] = args;
34007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34008 if (!SWIG_IsOK(res1)) {
34009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34010 }
34011 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34012 result = (int) ((arg1)->m_labelAlignment);
34013 resultobj = SWIG_From_int(static_cast< int >(result));
34014 return resultobj;
34015fail:
34016 return NULL;
34017}
34018
34019
34020SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34021 PyObject *obj;
34022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34023 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34024 return SWIG_Py_Void();
34025}
34026
34027SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34028 return SWIG_Python_InitShadowInstance(args);
34029}
34030
1bd55598
RD
34031SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34032 PyObject *resultobj = 0;
34033 int arg1 ;
34034 int arg2 ;
34035 wxRendererVersion *result = 0 ;
34036 int val1 ;
34037 int ecode1 = 0 ;
34038 int val2 ;
34039 int ecode2 = 0 ;
34040 PyObject * obj0 = 0 ;
34041 PyObject * obj1 = 0 ;
34042 char * kwnames[] = {
34043 (char *) "version_",(char *) "age_", NULL
34044 };
34045
34046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34047 ecode1 = SWIG_AsVal_int(obj0, &val1);
34048 if (!SWIG_IsOK(ecode1)) {
34049 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34050 }
34051 arg1 = static_cast< int >(val1);
34052 ecode2 = SWIG_AsVal_int(obj1, &val2);
34053 if (!SWIG_IsOK(ecode2)) {
34054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34055 }
34056 arg2 = static_cast< int >(val2);
34057 {
34058 PyThreadState* __tstate = wxPyBeginAllowThreads();
34059 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34060 wxPyEndAllowThreads(__tstate);
34061 if (PyErr_Occurred()) SWIG_fail;
34062 }
34063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34064 return resultobj;
34065fail:
34066 return NULL;
34067}
34068
34069
34070SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34071 PyObject *resultobj = 0;
34072 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34073 void *argp1 = 0 ;
34074 int res1 = 0 ;
34075 PyObject *swig_obj[1] ;
34076
34077 if (!args) SWIG_fail;
34078 swig_obj[0] = args;
34079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34080 if (!SWIG_IsOK(res1)) {
34081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34082 }
34083 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34084 {
34085 PyThreadState* __tstate = wxPyBeginAllowThreads();
34086 delete arg1;
34087
34088 wxPyEndAllowThreads(__tstate);
34089 if (PyErr_Occurred()) SWIG_fail;
34090 }
34091 resultobj = SWIG_Py_Void();
34092 return resultobj;
34093fail:
34094 return NULL;
34095}
34096
34097
34098SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34099 PyObject *resultobj = 0;
34100 wxRendererVersion *arg1 = 0 ;
34101 bool result;
34102 void *argp1 = 0 ;
34103 int res1 = 0 ;
34104 PyObject * obj0 = 0 ;
34105 char * kwnames[] = {
34106 (char *) "ver", NULL
34107 };
34108
34109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34110 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34111 if (!SWIG_IsOK(res1)) {
34112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34113 }
34114 if (!argp1) {
34115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34116 }
34117 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34118 {
34119 PyThreadState* __tstate = wxPyBeginAllowThreads();
34120 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34121 wxPyEndAllowThreads(__tstate);
34122 if (PyErr_Occurred()) SWIG_fail;
34123 }
34124 {
34125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34126 }
34127 return resultobj;
34128fail:
34129 return NULL;
34130}
34131
34132
34133SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34134 PyObject *resultobj = 0;
34135 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34136 int result;
34137 void *argp1 = 0 ;
34138 int res1 = 0 ;
34139 PyObject *swig_obj[1] ;
34140
34141 if (!args) SWIG_fail;
34142 swig_obj[0] = args;
34143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34144 if (!SWIG_IsOK(res1)) {
34145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34146 }
34147 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34148 result = (int)(int) ((arg1)->version);
34149 resultobj = SWIG_From_int(static_cast< int >(result));
34150 return resultobj;
34151fail:
34152 return NULL;
34153}
34154
34155
34156SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34157 PyObject *resultobj = 0;
34158 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34159 int result;
34160 void *argp1 = 0 ;
34161 int res1 = 0 ;
34162 PyObject *swig_obj[1] ;
34163
34164 if (!args) SWIG_fail;
34165 swig_obj[0] = args;
34166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34167 if (!SWIG_IsOK(res1)) {
34168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34169 }
34170 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34171 result = (int)(int) ((arg1)->age);
34172 resultobj = SWIG_From_int(static_cast< int >(result));
34173 return resultobj;
34174fail:
34175 return NULL;
34176}
34177
34178
34179SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34180 PyObject *obj;
34181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34182 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34183 return SWIG_Py_Void();
34184}
34185
34186SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34187 return SWIG_Python_InitShadowInstance(args);
34188}
34189
34190SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34191 PyObject *resultobj = 0;
34192 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34193 wxWindow *arg2 = (wxWindow *) 0 ;
34194 wxDC *arg3 = 0 ;
34195 wxRect *arg4 = 0 ;
34196 int arg5 = (int) 0 ;
33d6fd3b
RD
34197 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34198 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
34199 void *argp1 = 0 ;
34200 int res1 = 0 ;
34201 void *argp2 = 0 ;
34202 int res2 = 0 ;
34203 void *argp3 = 0 ;
34204 int res3 = 0 ;
34205 wxRect temp4 ;
34206 int val5 ;
34207 int ecode5 = 0 ;
33d6fd3b
RD
34208 int val6 ;
34209 int ecode6 = 0 ;
34210 void *argp7 = 0 ;
34211 int res7 = 0 ;
1bd55598
RD
34212 PyObject * obj0 = 0 ;
34213 PyObject * obj1 = 0 ;
34214 PyObject * obj2 = 0 ;
34215 PyObject * obj3 = 0 ;
34216 PyObject * obj4 = 0 ;
33d6fd3b
RD
34217 PyObject * obj5 = 0 ;
34218 PyObject * obj6 = 0 ;
1bd55598 34219 char * kwnames[] = {
33d6fd3b 34220 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34221 };
34222
33d6fd3b 34223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34225 if (!SWIG_IsOK(res1)) {
34226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34227 }
34228 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34230 if (!SWIG_IsOK(res2)) {
34231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34232 }
34233 arg2 = reinterpret_cast< wxWindow * >(argp2);
34234 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34235 if (!SWIG_IsOK(res3)) {
34236 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34237 }
34238 if (!argp3) {
34239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34240 }
34241 arg3 = reinterpret_cast< wxDC * >(argp3);
34242 {
34243 arg4 = &temp4;
34244 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34245 }
34246 if (obj4) {
34247 ecode5 = SWIG_AsVal_int(obj4, &val5);
34248 if (!SWIG_IsOK(ecode5)) {
34249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34250 }
34251 arg5 = static_cast< int >(val5);
34252 }
33d6fd3b
RD
34253 if (obj5) {
34254 ecode6 = SWIG_AsVal_int(obj5, &val6);
34255 if (!SWIG_IsOK(ecode6)) {
34256 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34257 }
34258 arg6 = static_cast< wxHeaderSortIconType >(val6);
34259 }
34260 if (obj6) {
34261 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34262 if (!SWIG_IsOK(res7)) {
34263 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34264 }
34265 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34266 }
34267 {
34268 PyThreadState* __tstate = wxPyBeginAllowThreads();
34269 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34270 wxPyEndAllowThreads(__tstate);
34271 if (PyErr_Occurred()) SWIG_fail;
34272 }
34273 resultobj = SWIG_Py_Void();
34274 return resultobj;
34275fail:
34276 return NULL;
34277}
34278
34279
34280SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34281 PyObject *resultobj = 0;
34282 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34283 wxWindow *arg2 = (wxWindow *) 0 ;
34284 wxDC *arg3 = 0 ;
34285 wxRect *arg4 = 0 ;
34286 int arg5 = (int) 0 ;
34287 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34288 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34289 void *argp1 = 0 ;
34290 int res1 = 0 ;
34291 void *argp2 = 0 ;
34292 int res2 = 0 ;
34293 void *argp3 = 0 ;
34294 int res3 = 0 ;
34295 wxRect temp4 ;
34296 int val5 ;
34297 int ecode5 = 0 ;
34298 int val6 ;
34299 int ecode6 = 0 ;
34300 void *argp7 = 0 ;
34301 int res7 = 0 ;
34302 PyObject * obj0 = 0 ;
34303 PyObject * obj1 = 0 ;
34304 PyObject * obj2 = 0 ;
34305 PyObject * obj3 = 0 ;
34306 PyObject * obj4 = 0 ;
34307 PyObject * obj5 = 0 ;
34308 PyObject * obj6 = 0 ;
34309 char * kwnames[] = {
34310 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34311 };
34312
34313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34315 if (!SWIG_IsOK(res1)) {
34316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34317 }
34318 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34320 if (!SWIG_IsOK(res2)) {
34321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34322 }
34323 arg2 = reinterpret_cast< wxWindow * >(argp2);
34324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34325 if (!SWIG_IsOK(res3)) {
34326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34327 }
34328 if (!argp3) {
34329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34330 }
34331 arg3 = reinterpret_cast< wxDC * >(argp3);
34332 {
34333 arg4 = &temp4;
34334 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34335 }
34336 if (obj4) {
34337 ecode5 = SWIG_AsVal_int(obj4, &val5);
34338 if (!SWIG_IsOK(ecode5)) {
34339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34340 }
34341 arg5 = static_cast< int >(val5);
34342 }
34343 if (obj5) {
34344 ecode6 = SWIG_AsVal_int(obj5, &val6);
34345 if (!SWIG_IsOK(ecode6)) {
34346 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34347 }
34348 arg6 = static_cast< wxHeaderSortIconType >(val6);
34349 }
34350 if (obj6) {
34351 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34352 if (!SWIG_IsOK(res7)) {
34353 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34354 }
34355 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34356 }
1bd55598
RD
34357 {
34358 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34359 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34360 wxPyEndAllowThreads(__tstate);
34361 if (PyErr_Occurred()) SWIG_fail;
34362 }
34363 resultobj = SWIG_Py_Void();
34364 return resultobj;
34365fail:
34366 return NULL;
34367}
34368
34369
33d6fd3b
RD
34370SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34371 PyObject *resultobj = 0;
34372 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34373 wxWindow *arg2 = (wxWindow *) 0 ;
34374 int result;
34375 void *argp1 = 0 ;
34376 int res1 = 0 ;
34377 void *argp2 = 0 ;
34378 int res2 = 0 ;
34379 PyObject * obj0 = 0 ;
34380 PyObject * obj1 = 0 ;
34381 char * kwnames[] = {
34382 (char *) "self",(char *) "win", NULL
34383 };
34384
34385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34387 if (!SWIG_IsOK(res1)) {
34388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34389 }
34390 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34391 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34392 if (!SWIG_IsOK(res2)) {
34393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34394 }
34395 arg2 = reinterpret_cast< wxWindow * >(argp2);
34396 {
34397 PyThreadState* __tstate = wxPyBeginAllowThreads();
34398 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34399 wxPyEndAllowThreads(__tstate);
34400 if (PyErr_Occurred()) SWIG_fail;
34401 }
34402 resultobj = SWIG_From_int(static_cast< int >(result));
34403 return resultobj;
34404fail:
34405 return NULL;
34406}
34407
34408
1bd55598
RD
34409SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34410 PyObject *resultobj = 0;
34411 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34412 wxWindow *arg2 = (wxWindow *) 0 ;
34413 wxDC *arg3 = 0 ;
34414 wxRect *arg4 = 0 ;
34415 int arg5 = (int) 0 ;
34416 void *argp1 = 0 ;
34417 int res1 = 0 ;
34418 void *argp2 = 0 ;
34419 int res2 = 0 ;
34420 void *argp3 = 0 ;
34421 int res3 = 0 ;
34422 wxRect temp4 ;
34423 int val5 ;
34424 int ecode5 = 0 ;
34425 PyObject * obj0 = 0 ;
34426 PyObject * obj1 = 0 ;
34427 PyObject * obj2 = 0 ;
34428 PyObject * obj3 = 0 ;
34429 PyObject * obj4 = 0 ;
34430 char * kwnames[] = {
34431 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34432 };
34433
34434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34436 if (!SWIG_IsOK(res1)) {
34437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34438 }
34439 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34441 if (!SWIG_IsOK(res2)) {
34442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34443 }
34444 arg2 = reinterpret_cast< wxWindow * >(argp2);
34445 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34446 if (!SWIG_IsOK(res3)) {
34447 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34448 }
34449 if (!argp3) {
34450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34451 }
34452 arg3 = reinterpret_cast< wxDC * >(argp3);
34453 {
34454 arg4 = &temp4;
34455 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34456 }
34457 if (obj4) {
34458 ecode5 = SWIG_AsVal_int(obj4, &val5);
34459 if (!SWIG_IsOK(ecode5)) {
34460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34461 }
34462 arg5 = static_cast< int >(val5);
34463 }
34464 {
34465 PyThreadState* __tstate = wxPyBeginAllowThreads();
34466 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34467 wxPyEndAllowThreads(__tstate);
34468 if (PyErr_Occurred()) SWIG_fail;
34469 }
34470 resultobj = SWIG_Py_Void();
34471 return resultobj;
34472fail:
34473 return NULL;
34474}
34475
34476
34477SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34478 PyObject *resultobj = 0;
34479 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34480 wxWindow *arg2 = (wxWindow *) 0 ;
34481 wxDC *arg3 = 0 ;
34482 wxRect *arg4 = 0 ;
34483 int arg5 = (int) 0 ;
34484 void *argp1 = 0 ;
34485 int res1 = 0 ;
34486 void *argp2 = 0 ;
34487 int res2 = 0 ;
34488 void *argp3 = 0 ;
34489 int res3 = 0 ;
34490 wxRect temp4 ;
34491 int val5 ;
34492 int ecode5 = 0 ;
34493 PyObject * obj0 = 0 ;
34494 PyObject * obj1 = 0 ;
34495 PyObject * obj2 = 0 ;
34496 PyObject * obj3 = 0 ;
34497 PyObject * obj4 = 0 ;
34498 char * kwnames[] = {
34499 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34500 };
34501
34502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34504 if (!SWIG_IsOK(res1)) {
34505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34506 }
34507 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34509 if (!SWIG_IsOK(res2)) {
34510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34511 }
34512 arg2 = reinterpret_cast< wxWindow * >(argp2);
34513 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34514 if (!SWIG_IsOK(res3)) {
34515 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34516 }
34517 if (!argp3) {
34518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34519 }
34520 arg3 = reinterpret_cast< wxDC * >(argp3);
34521 {
34522 arg4 = &temp4;
34523 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34524 }
34525 if (obj4) {
34526 ecode5 = SWIG_AsVal_int(obj4, &val5);
34527 if (!SWIG_IsOK(ecode5)) {
34528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34529 }
34530 arg5 = static_cast< int >(val5);
34531 }
34532 {
34533 PyThreadState* __tstate = wxPyBeginAllowThreads();
34534 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34535 wxPyEndAllowThreads(__tstate);
34536 if (PyErr_Occurred()) SWIG_fail;
34537 }
34538 resultobj = SWIG_Py_Void();
34539 return resultobj;
34540fail:
34541 return NULL;
34542}
34543
34544
34545SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34546 PyObject *resultobj = 0;
34547 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34548 wxWindow *arg2 = (wxWindow *) 0 ;
34549 wxDC *arg3 = 0 ;
34550 wxSize *arg4 = 0 ;
34551 int arg5 ;
34552 wxOrientation arg6 ;
34553 int arg7 = (int) 0 ;
34554 void *argp1 = 0 ;
34555 int res1 = 0 ;
34556 void *argp2 = 0 ;
34557 int res2 = 0 ;
34558 void *argp3 = 0 ;
34559 int res3 = 0 ;
34560 wxSize temp4 ;
34561 int val5 ;
34562 int ecode5 = 0 ;
34563 int val6 ;
34564 int ecode6 = 0 ;
34565 int val7 ;
34566 int ecode7 = 0 ;
34567 PyObject * obj0 = 0 ;
34568 PyObject * obj1 = 0 ;
34569 PyObject * obj2 = 0 ;
34570 PyObject * obj3 = 0 ;
34571 PyObject * obj4 = 0 ;
34572 PyObject * obj5 = 0 ;
34573 PyObject * obj6 = 0 ;
34574 char * kwnames[] = {
34575 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34576 };
34577
34578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34580 if (!SWIG_IsOK(res1)) {
34581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34582 }
34583 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34585 if (!SWIG_IsOK(res2)) {
34586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34587 }
34588 arg2 = reinterpret_cast< wxWindow * >(argp2);
34589 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34590 if (!SWIG_IsOK(res3)) {
34591 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34592 }
34593 if (!argp3) {
34594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34595 }
34596 arg3 = reinterpret_cast< wxDC * >(argp3);
34597 {
34598 arg4 = &temp4;
34599 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34600 }
34601 ecode5 = SWIG_AsVal_int(obj4, &val5);
34602 if (!SWIG_IsOK(ecode5)) {
34603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34604 }
34605 arg5 = static_cast< int >(val5);
34606 ecode6 = SWIG_AsVal_int(obj5, &val6);
34607 if (!SWIG_IsOK(ecode6)) {
34608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34609 }
34610 arg6 = static_cast< wxOrientation >(val6);
34611 if (obj6) {
34612 ecode7 = SWIG_AsVal_int(obj6, &val7);
34613 if (!SWIG_IsOK(ecode7)) {
34614 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34615 }
34616 arg7 = static_cast< int >(val7);
34617 }
34618 {
34619 PyThreadState* __tstate = wxPyBeginAllowThreads();
34620 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34621 wxPyEndAllowThreads(__tstate);
34622 if (PyErr_Occurred()) SWIG_fail;
34623 }
34624 resultobj = SWIG_Py_Void();
34625 return resultobj;
34626fail:
34627 return NULL;
34628}
34629
34630
34631SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34632 PyObject *resultobj = 0;
34633 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34634 wxWindow *arg2 = (wxWindow *) 0 ;
34635 wxDC *arg3 = 0 ;
34636 wxRect *arg4 = 0 ;
34637 int arg5 = (int) 0 ;
34638 void *argp1 = 0 ;
34639 int res1 = 0 ;
34640 void *argp2 = 0 ;
34641 int res2 = 0 ;
34642 void *argp3 = 0 ;
34643 int res3 = 0 ;
34644 wxRect temp4 ;
34645 int val5 ;
34646 int ecode5 = 0 ;
34647 PyObject * obj0 = 0 ;
34648 PyObject * obj1 = 0 ;
34649 PyObject * obj2 = 0 ;
34650 PyObject * obj3 = 0 ;
34651 PyObject * obj4 = 0 ;
34652 char * kwnames[] = {
34653 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34654 };
34655
34656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34658 if (!SWIG_IsOK(res1)) {
34659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34660 }
34661 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34662 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34663 if (!SWIG_IsOK(res2)) {
34664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34665 }
34666 arg2 = reinterpret_cast< wxWindow * >(argp2);
34667 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34668 if (!SWIG_IsOK(res3)) {
34669 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34670 }
34671 if (!argp3) {
34672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34673 }
34674 arg3 = reinterpret_cast< wxDC * >(argp3);
34675 {
34676 arg4 = &temp4;
34677 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34678 }
34679 if (obj4) {
34680 ecode5 = SWIG_AsVal_int(obj4, &val5);
34681 if (!SWIG_IsOK(ecode5)) {
34682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34683 }
34684 arg5 = static_cast< int >(val5);
34685 }
34686 {
34687 PyThreadState* __tstate = wxPyBeginAllowThreads();
34688 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34689 wxPyEndAllowThreads(__tstate);
34690 if (PyErr_Occurred()) SWIG_fail;
34691 }
34692 resultobj = SWIG_Py_Void();
34693 return resultobj;
34694fail:
34695 return NULL;
34696}
34697
34698
34699SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34700 PyObject *resultobj = 0;
34701 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34702 wxWindow *arg2 = (wxWindow *) 0 ;
34703 wxDC *arg3 = 0 ;
34704 wxRect *arg4 = 0 ;
34705 int arg5 = (int) 0 ;
34706 void *argp1 = 0 ;
34707 int res1 = 0 ;
34708 void *argp2 = 0 ;
34709 int res2 = 0 ;
34710 void *argp3 = 0 ;
34711 int res3 = 0 ;
34712 wxRect temp4 ;
34713 int val5 ;
34714 int ecode5 = 0 ;
34715 PyObject * obj0 = 0 ;
34716 PyObject * obj1 = 0 ;
34717 PyObject * obj2 = 0 ;
34718 PyObject * obj3 = 0 ;
34719 PyObject * obj4 = 0 ;
34720 char * kwnames[] = {
34721 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34722 };
34723
34724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34726 if (!SWIG_IsOK(res1)) {
34727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34728 }
34729 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34731 if (!SWIG_IsOK(res2)) {
34732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34733 }
34734 arg2 = reinterpret_cast< wxWindow * >(argp2);
34735 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34736 if (!SWIG_IsOK(res3)) {
34737 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34738 }
34739 if (!argp3) {
34740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34741 }
34742 arg3 = reinterpret_cast< wxDC * >(argp3);
34743 {
34744 arg4 = &temp4;
34745 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34746 }
34747 if (obj4) {
34748 ecode5 = SWIG_AsVal_int(obj4, &val5);
34749 if (!SWIG_IsOK(ecode5)) {
34750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34751 }
34752 arg5 = static_cast< int >(val5);
34753 }
34754 {
34755 PyThreadState* __tstate = wxPyBeginAllowThreads();
34756 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34757 wxPyEndAllowThreads(__tstate);
34758 if (PyErr_Occurred()) SWIG_fail;
34759 }
34760 resultobj = SWIG_Py_Void();
34761 return resultobj;
34762fail:
34763 return NULL;
34764}
34765
34766
2131d850 34767SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34768 PyObject *resultobj = 0;
34769 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34770 wxWindow *arg2 = (wxWindow *) 0 ;
34771 wxDC *arg3 = 0 ;
34772 wxRect *arg4 = 0 ;
34773 int arg5 = (int) 0 ;
34774 void *argp1 = 0 ;
34775 int res1 = 0 ;
34776 void *argp2 = 0 ;
34777 int res2 = 0 ;
34778 void *argp3 = 0 ;
34779 int res3 = 0 ;
34780 wxRect temp4 ;
34781 int val5 ;
34782 int ecode5 = 0 ;
34783 PyObject * obj0 = 0 ;
34784 PyObject * obj1 = 0 ;
34785 PyObject * obj2 = 0 ;
34786 PyObject * obj3 = 0 ;
34787 PyObject * obj4 = 0 ;
34788 char * kwnames[] = {
34789 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34790 };
34791
2131d850 34792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34794 if (!SWIG_IsOK(res1)) {
2131d850 34795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34796 }
34797 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34798 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34799 if (!SWIG_IsOK(res2)) {
2131d850 34800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34801 }
34802 arg2 = reinterpret_cast< wxWindow * >(argp2);
34803 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34804 if (!SWIG_IsOK(res3)) {
2131d850 34805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34806 }
34807 if (!argp3) {
2131d850 34808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34809 }
34810 arg3 = reinterpret_cast< wxDC * >(argp3);
34811 {
34812 arg4 = &temp4;
34813 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34814 }
34815 if (obj4) {
34816 ecode5 = SWIG_AsVal_int(obj4, &val5);
34817 if (!SWIG_IsOK(ecode5)) {
2131d850 34818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34819 }
34820 arg5 = static_cast< int >(val5);
34821 }
34822 {
34823 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34824 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34825 wxPyEndAllowThreads(__tstate);
34826 if (PyErr_Occurred()) SWIG_fail;
34827 }
34828 resultobj = SWIG_Py_Void();
34829 return resultobj;
34830fail:
34831 return NULL;
34832}
34833
34834
34835SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34836 PyObject *resultobj = 0;
34837 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34838 wxWindow *arg2 = (wxWindow *) 0 ;
34839 wxDC *arg3 = 0 ;
34840 wxRect *arg4 = 0 ;
34841 int arg5 = (int) 0 ;
34842 void *argp1 = 0 ;
34843 int res1 = 0 ;
34844 void *argp2 = 0 ;
34845 int res2 = 0 ;
34846 void *argp3 = 0 ;
34847 int res3 = 0 ;
34848 wxRect temp4 ;
34849 int val5 ;
34850 int ecode5 = 0 ;
34851 PyObject * obj0 = 0 ;
34852 PyObject * obj1 = 0 ;
34853 PyObject * obj2 = 0 ;
34854 PyObject * obj3 = 0 ;
34855 PyObject * obj4 = 0 ;
34856 char * kwnames[] = {
34857 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34858 };
34859
34860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34862 if (!SWIG_IsOK(res1)) {
34863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34864 }
34865 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34866 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34867 if (!SWIG_IsOK(res2)) {
34868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34869 }
34870 arg2 = reinterpret_cast< wxWindow * >(argp2);
34871 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34872 if (!SWIG_IsOK(res3)) {
34873 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34874 }
34875 if (!argp3) {
34876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34877 }
34878 arg3 = reinterpret_cast< wxDC * >(argp3);
34879 {
34880 arg4 = &temp4;
34881 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34882 }
34883 if (obj4) {
34884 ecode5 = SWIG_AsVal_int(obj4, &val5);
34885 if (!SWIG_IsOK(ecode5)) {
34886 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34887 }
34888 arg5 = static_cast< int >(val5);
34889 }
34890 {
34891 PyThreadState* __tstate = wxPyBeginAllowThreads();
34892 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34893 wxPyEndAllowThreads(__tstate);
34894 if (PyErr_Occurred()) SWIG_fail;
34895 }
34896 resultobj = SWIG_Py_Void();
34897 return resultobj;
34898fail:
34899 return NULL;
34900}
34901
34902
34903SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34904 PyObject *resultobj = 0;
34905 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34906 wxWindow *arg2 = (wxWindow *) 0 ;
34907 wxDC *arg3 = 0 ;
34908 wxRect *arg4 = 0 ;
34909 int arg5 = (int) 0 ;
34910 void *argp1 = 0 ;
34911 int res1 = 0 ;
34912 void *argp2 = 0 ;
34913 int res2 = 0 ;
34914 void *argp3 = 0 ;
34915 int res3 = 0 ;
34916 wxRect temp4 ;
34917 int val5 ;
34918 int ecode5 = 0 ;
34919 PyObject * obj0 = 0 ;
34920 PyObject * obj1 = 0 ;
34921 PyObject * obj2 = 0 ;
34922 PyObject * obj3 = 0 ;
34923 PyObject * obj4 = 0 ;
34924 char * kwnames[] = {
34925 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34926 };
34927
34928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34930 if (!SWIG_IsOK(res1)) {
34931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34932 }
34933 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34935 if (!SWIG_IsOK(res2)) {
34936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34937 }
34938 arg2 = reinterpret_cast< wxWindow * >(argp2);
34939 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34940 if (!SWIG_IsOK(res3)) {
34941 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34942 }
34943 if (!argp3) {
34944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34945 }
34946 arg3 = reinterpret_cast< wxDC * >(argp3);
34947 {
34948 arg4 = &temp4;
34949 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34950 }
34951 if (obj4) {
34952 ecode5 = SWIG_AsVal_int(obj4, &val5);
34953 if (!SWIG_IsOK(ecode5)) {
34954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34955 }
34956 arg5 = static_cast< int >(val5);
34957 }
34958 {
34959 PyThreadState* __tstate = wxPyBeginAllowThreads();
34960 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34961 wxPyEndAllowThreads(__tstate);
34962 if (PyErr_Occurred()) SWIG_fail;
34963 }
34964 resultobj = SWIG_Py_Void();
34965 return resultobj;
34966fail:
34967 return NULL;
34968}
34969
34970
1bd55598
RD
34971SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34972 PyObject *resultobj = 0;
34973 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34974 wxWindow *arg2 = (wxWindow *) 0 ;
34975 SwigValueWrapper<wxSplitterRenderParams > result;
34976 void *argp1 = 0 ;
34977 int res1 = 0 ;
34978 void *argp2 = 0 ;
34979 int res2 = 0 ;
34980 PyObject * obj0 = 0 ;
34981 PyObject * obj1 = 0 ;
34982 char * kwnames[] = {
34983 (char *) "self",(char *) "win", NULL
34984 };
34985
34986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34988 if (!SWIG_IsOK(res1)) {
34989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34990 }
34991 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34992 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34993 if (!SWIG_IsOK(res2)) {
34994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34995 }
34996 arg2 = reinterpret_cast< wxWindow * >(argp2);
34997 {
34998 PyThreadState* __tstate = wxPyBeginAllowThreads();
34999 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35000 wxPyEndAllowThreads(__tstate);
35001 if (PyErr_Occurred()) SWIG_fail;
35002 }
35003 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35004 return resultobj;
35005fail:
35006 return NULL;
35007}
35008
35009
35010SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35011 PyObject *resultobj = 0;
35012 wxRendererNative *result = 0 ;
35013
35014 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35015 {
704eda0c 35016 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35017 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35018 {
1bd55598
RD
35019 wxRendererNative &_result_ref = wxRendererNative::Get();
35020 result = (wxRendererNative *) &_result_ref;
36ed4f51 35021 }
1bd55598
RD
35022 wxPyEndAllowThreads(__tstate);
35023 if (PyErr_Occurred()) SWIG_fail;
35024 }
35025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35026 return resultobj;
35027fail:
35028 return NULL;
35029}
35030
35031
35032SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35033 PyObject *resultobj = 0;
35034 wxRendererNative *result = 0 ;
35035
35036 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35037 {
704eda0c 35038 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35039 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35040 {
1bd55598
RD
35041 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35042 result = (wxRendererNative *) &_result_ref;
be9b1dca 35043 }
1bd55598
RD
35044 wxPyEndAllowThreads(__tstate);
35045 if (PyErr_Occurred()) SWIG_fail;
35046 }
35047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35048 return resultobj;
35049fail:
35050 return NULL;
35051}
35052
35053
35054SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35055 PyObject *resultobj = 0;
35056 wxRendererNative *result = 0 ;
35057
35058 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35059 {
704eda0c 35060 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35061 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35062 {
1bd55598
RD
35063 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35064 result = (wxRendererNative *) &_result_ref;
be9b1dca 35065 }
1bd55598
RD
35066 wxPyEndAllowThreads(__tstate);
35067 if (PyErr_Occurred()) SWIG_fail;
35068 }
35069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35070 return resultobj;
35071fail:
35072 return NULL;
35073}
35074
35075
35076SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35077 PyObject *resultobj = 0;
35078 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35079 wxRendererNative *result = 0 ;
35080 void *argp1 = 0 ;
35081 int res1 = 0 ;
35082 PyObject * obj0 = 0 ;
35083 char * kwnames[] = {
35084 (char *) "renderer", NULL
35085 };
35086
35087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35089 if (!SWIG_IsOK(res1)) {
35090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35091 }
35092 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35093 {
704eda0c 35094 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35095 PyThreadState* __tstate = wxPyBeginAllowThreads();
35096 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35097 wxPyEndAllowThreads(__tstate);
35098 if (PyErr_Occurred()) SWIG_fail;
35099 }
35100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35101 return resultobj;
35102fail:
35103 return NULL;
35104}
35105
35106
35107SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35108 PyObject *resultobj = 0;
35109 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35110 SwigValueWrapper<wxRendererVersion > result;
35111 void *argp1 = 0 ;
35112 int res1 = 0 ;
35113 PyObject *swig_obj[1] ;
35114
35115 if (!args) SWIG_fail;
35116 swig_obj[0] = args;
35117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35118 if (!SWIG_IsOK(res1)) {
35119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35120 }
35121 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35122 {
35123 PyThreadState* __tstate = wxPyBeginAllowThreads();
35124 result = ((wxRendererNative const *)arg1)->GetVersion();
35125 wxPyEndAllowThreads(__tstate);
35126 if (PyErr_Occurred()) SWIG_fail;
35127 }
35128 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35129 return resultobj;
35130fail:
35131 return NULL;
35132}
35133
35134
35135SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35136 PyObject *obj;
35137 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35138 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35139 return SWIG_Py_Void();
35140}
35141
27e45892
RD
35142SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35143 PyObject *resultobj = 0;
35144 wxPseudoDC *result = 0 ;
35145
35146 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35147 {
35148 PyThreadState* __tstate = wxPyBeginAllowThreads();
35149 result = (wxPseudoDC *)new wxPseudoDC();
35150 wxPyEndAllowThreads(__tstate);
35151 if (PyErr_Occurred()) SWIG_fail;
35152 }
35153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35154 return resultobj;
35155fail:
35156 return NULL;
35157}
35158
35159
35160SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35161 PyObject *resultobj = 0;
35162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35163 void *argp1 = 0 ;
35164 int res1 = 0 ;
35165 PyObject *swig_obj[1] ;
35166
35167 if (!args) SWIG_fail;
35168 swig_obj[0] = args;
35169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35170 if (!SWIG_IsOK(res1)) {
35171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35172 }
35173 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35174 {
35175 PyThreadState* __tstate = wxPyBeginAllowThreads();
35176 (arg1)->BeginDrawing();
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
35187SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35188 PyObject *resultobj = 0;
35189 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35190 void *argp1 = 0 ;
35191 int res1 = 0 ;
35192 PyObject *swig_obj[1] ;
35193
35194 if (!args) SWIG_fail;
35195 swig_obj[0] = args;
35196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35197 if (!SWIG_IsOK(res1)) {
35198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35199 }
35200 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35201 {
35202 PyThreadState* __tstate = wxPyBeginAllowThreads();
35203 (arg1)->EndDrawing();
35204 wxPyEndAllowThreads(__tstate);
35205 if (PyErr_Occurred()) SWIG_fail;
35206 }
35207 resultobj = SWIG_Py_Void();
35208 return resultobj;
35209fail:
35210 return NULL;
35211}
35212
35213
35214SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35215 PyObject *resultobj = 0;
35216 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35217 void *argp1 = 0 ;
35218 int res1 = 0 ;
35219 PyObject *swig_obj[1] ;
35220
35221 if (!args) SWIG_fail;
35222 swig_obj[0] = args;
35223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35224 if (!SWIG_IsOK(res1)) {
35225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35226 }
35227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35228 {
35229 PyThreadState* __tstate = wxPyBeginAllowThreads();
35230 delete arg1;
35231
35232 wxPyEndAllowThreads(__tstate);
35233 if (PyErr_Occurred()) SWIG_fail;
35234 }
35235 resultobj = SWIG_Py_Void();
35236 return resultobj;
35237fail:
35238 return NULL;
35239}
35240
35241
35242SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35243 PyObject *resultobj = 0;
35244 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35245 void *argp1 = 0 ;
35246 int res1 = 0 ;
35247 PyObject *swig_obj[1] ;
35248
35249 if (!args) SWIG_fail;
35250 swig_obj[0] = args;
35251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35252 if (!SWIG_IsOK(res1)) {
35253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35254 }
35255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35256 {
35257 PyThreadState* __tstate = wxPyBeginAllowThreads();
35258 (arg1)->RemoveAll();
35259 wxPyEndAllowThreads(__tstate);
35260 if (PyErr_Occurred()) SWIG_fail;
35261 }
35262 resultobj = SWIG_Py_Void();
35263 return resultobj;
35264fail:
35265 return NULL;
35266}
35267
35268
35269SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35270 PyObject *resultobj = 0;
35271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35272 int result;
35273 void *argp1 = 0 ;
35274 int res1 = 0 ;
35275 PyObject *swig_obj[1] ;
35276
35277 if (!args) SWIG_fail;
35278 swig_obj[0] = args;
35279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35280 if (!SWIG_IsOK(res1)) {
35281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35282 }
35283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35284 {
35285 PyThreadState* __tstate = wxPyBeginAllowThreads();
35286 result = (int)(arg1)->GetLen();
35287 wxPyEndAllowThreads(__tstate);
35288 if (PyErr_Occurred()) SWIG_fail;
35289 }
35290 resultobj = SWIG_From_int(static_cast< int >(result));
35291 return resultobj;
35292fail:
35293 return NULL;
35294}
35295
35296
35297SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj = 0;
35299 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35300 int arg2 ;
35301 void *argp1 = 0 ;
35302 int res1 = 0 ;
35303 int val2 ;
35304 int ecode2 = 0 ;
35305 PyObject * obj0 = 0 ;
35306 PyObject * obj1 = 0 ;
35307 char * kwnames[] = {
35308 (char *) "self",(char *) "id", NULL
35309 };
35310
35311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35313 if (!SWIG_IsOK(res1)) {
35314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35315 }
35316 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35317 ecode2 = SWIG_AsVal_int(obj1, &val2);
35318 if (!SWIG_IsOK(ecode2)) {
35319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35320 }
35321 arg2 = static_cast< int >(val2);
35322 {
35323 PyThreadState* __tstate = wxPyBeginAllowThreads();
35324 (arg1)->SetId(arg2);
35325 wxPyEndAllowThreads(__tstate);
35326 if (PyErr_Occurred()) SWIG_fail;
35327 }
35328 resultobj = SWIG_Py_Void();
35329 return resultobj;
35330fail:
35331 return NULL;
35332}
35333
35334
35335SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35336 PyObject *resultobj = 0;
35337 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35338 int arg2 ;
35339 void *argp1 = 0 ;
35340 int res1 = 0 ;
35341 int val2 ;
35342 int ecode2 = 0 ;
35343 PyObject * obj0 = 0 ;
35344 PyObject * obj1 = 0 ;
35345 char * kwnames[] = {
35346 (char *) "self",(char *) "id", NULL
35347 };
35348
35349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35351 if (!SWIG_IsOK(res1)) {
35352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35353 }
35354 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35355 ecode2 = SWIG_AsVal_int(obj1, &val2);
35356 if (!SWIG_IsOK(ecode2)) {
35357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35358 }
35359 arg2 = static_cast< int >(val2);
35360 {
35361 PyThreadState* __tstate = wxPyBeginAllowThreads();
35362 (arg1)->ClearId(arg2);
35363 wxPyEndAllowThreads(__tstate);
35364 if (PyErr_Occurred()) SWIG_fail;
35365 }
35366 resultobj = SWIG_Py_Void();
35367 return resultobj;
35368fail:
35369 return NULL;
35370}
35371
35372
35373SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35376 int arg2 ;
35377 void *argp1 = 0 ;
35378 int res1 = 0 ;
35379 int val2 ;
35380 int ecode2 = 0 ;
35381 PyObject * obj0 = 0 ;
35382 PyObject * obj1 = 0 ;
35383 char * kwnames[] = {
35384 (char *) "self",(char *) "id", NULL
35385 };
35386
35387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35389 if (!SWIG_IsOK(res1)) {
35390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35391 }
35392 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35393 ecode2 = SWIG_AsVal_int(obj1, &val2);
35394 if (!SWIG_IsOK(ecode2)) {
35395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35396 }
35397 arg2 = static_cast< int >(val2);
35398 {
35399 PyThreadState* __tstate = wxPyBeginAllowThreads();
35400 (arg1)->RemoveId(arg2);
35401 wxPyEndAllowThreads(__tstate);
35402 if (PyErr_Occurred()) SWIG_fail;
35403 }
35404 resultobj = SWIG_Py_Void();
35405 return resultobj;
35406fail:
35407 return NULL;
35408}
35409
35410
35411SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35412 PyObject *resultobj = 0;
35413 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35414 int arg2 ;
35415 int arg3 ;
35416 int arg4 ;
35417 void *argp1 = 0 ;
35418 int res1 = 0 ;
35419 int val2 ;
35420 int ecode2 = 0 ;
35421 int val3 ;
35422 int ecode3 = 0 ;
35423 int val4 ;
35424 int ecode4 = 0 ;
35425 PyObject * obj0 = 0 ;
35426 PyObject * obj1 = 0 ;
35427 PyObject * obj2 = 0 ;
35428 PyObject * obj3 = 0 ;
35429 char * kwnames[] = {
35430 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35431 };
35432
35433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35435 if (!SWIG_IsOK(res1)) {
35436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35437 }
35438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35439 ecode2 = SWIG_AsVal_int(obj1, &val2);
35440 if (!SWIG_IsOK(ecode2)) {
35441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35442 }
35443 arg2 = static_cast< int >(val2);
35444 ecode3 = SWIG_AsVal_int(obj2, &val3);
35445 if (!SWIG_IsOK(ecode3)) {
35446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35447 }
35448 arg3 = static_cast< int >(val3);
35449 ecode4 = SWIG_AsVal_int(obj3, &val4);
35450 if (!SWIG_IsOK(ecode4)) {
35451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35452 }
35453 arg4 = static_cast< int >(val4);
35454 {
35455 PyThreadState* __tstate = wxPyBeginAllowThreads();
35456 (arg1)->TranslateId(arg2,arg3,arg4);
35457 wxPyEndAllowThreads(__tstate);
35458 if (PyErr_Occurred()) SWIG_fail;
35459 }
35460 resultobj = SWIG_Py_Void();
35461 return resultobj;
35462fail:
35463 return NULL;
35464}
35465
35466
72ef6efb
RD
35467SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35468 PyObject *resultobj = 0;
35469 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35470 int arg2 ;
35471 bool arg3 = (bool) true ;
35472 void *argp1 = 0 ;
35473 int res1 = 0 ;
35474 int val2 ;
35475 int ecode2 = 0 ;
35476 bool val3 ;
35477 int ecode3 = 0 ;
35478 PyObject * obj0 = 0 ;
35479 PyObject * obj1 = 0 ;
35480 PyObject * obj2 = 0 ;
35481 char * kwnames[] = {
35482 (char *) "self",(char *) "id",(char *) "greyout", NULL
35483 };
35484
35485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35487 if (!SWIG_IsOK(res1)) {
35488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35489 }
35490 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35491 ecode2 = SWIG_AsVal_int(obj1, &val2);
35492 if (!SWIG_IsOK(ecode2)) {
35493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35494 }
35495 arg2 = static_cast< int >(val2);
35496 if (obj2) {
35497 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35498 if (!SWIG_IsOK(ecode3)) {
35499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35500 }
35501 arg3 = static_cast< bool >(val3);
35502 }
35503 {
35504 PyThreadState* __tstate = wxPyBeginAllowThreads();
35505 (arg1)->SetIdGreyedOut(arg2,arg3);
35506 wxPyEndAllowThreads(__tstate);
35507 if (PyErr_Occurred()) SWIG_fail;
35508 }
35509 resultobj = SWIG_Py_Void();
35510 return resultobj;
35511fail:
35512 return NULL;
35513}
35514
35515
35516SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35517 PyObject *resultobj = 0;
35518 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35519 int arg2 ;
35520 bool result;
35521 void *argp1 = 0 ;
35522 int res1 = 0 ;
35523 int val2 ;
35524 int ecode2 = 0 ;
35525 PyObject * obj0 = 0 ;
35526 PyObject * obj1 = 0 ;
35527 char * kwnames[] = {
35528 (char *) "self",(char *) "id", NULL
35529 };
35530
35531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35533 if (!SWIG_IsOK(res1)) {
35534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35535 }
35536 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35537 ecode2 = SWIG_AsVal_int(obj1, &val2);
35538 if (!SWIG_IsOK(ecode2)) {
35539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35540 }
35541 arg2 = static_cast< int >(val2);
35542 {
35543 PyThreadState* __tstate = wxPyBeginAllowThreads();
35544 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35545 wxPyEndAllowThreads(__tstate);
35546 if (PyErr_Occurred()) SWIG_fail;
35547 }
35548 {
35549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35550 }
35551 return resultobj;
35552fail:
35553 return NULL;
35554}
35555
35556
35557SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35558 PyObject *resultobj = 0;
35559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35560 int arg2 ;
35561 int arg3 ;
35562 int arg4 = (int) 1 ;
35563 wxColor const &arg5_defvalue = *wxWHITE ;
35564 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35565 PyObject *result = 0 ;
35566 void *argp1 = 0 ;
35567 int res1 = 0 ;
35568 int val2 ;
35569 int ecode2 = 0 ;
35570 int val3 ;
35571 int ecode3 = 0 ;
35572 int val4 ;
35573 int ecode4 = 0 ;
35574 void *argp5 = 0 ;
35575 int res5 = 0 ;
35576 PyObject * obj0 = 0 ;
35577 PyObject * obj1 = 0 ;
35578 PyObject * obj2 = 0 ;
35579 PyObject * obj3 = 0 ;
35580 PyObject * obj4 = 0 ;
35581 char * kwnames[] = {
35582 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35583 };
35584
35585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35587 if (!SWIG_IsOK(res1)) {
35588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35589 }
35590 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35591 ecode2 = SWIG_AsVal_int(obj1, &val2);
35592 if (!SWIG_IsOK(ecode2)) {
35593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35594 }
35595 arg2 = static_cast< int >(val2);
35596 ecode3 = SWIG_AsVal_int(obj2, &val3);
35597 if (!SWIG_IsOK(ecode3)) {
35598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35599 }
35600 arg3 = static_cast< int >(val3);
35601 if (obj3) {
35602 ecode4 = SWIG_AsVal_int(obj3, &val4);
35603 if (!SWIG_IsOK(ecode4)) {
35604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35605 }
35606 arg4 = static_cast< int >(val4);
35607 }
35608 if (obj4) {
35609 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35610 if (!SWIG_IsOK(res5)) {
35611 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35612 }
35613 if (!argp5) {
35614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35615 }
35616 arg5 = reinterpret_cast< wxColor * >(argp5);
35617 }
35618 {
35619 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35620 if (PyErr_Occurred()) SWIG_fail;
35621 }
35622 resultobj = result;
35623 return resultobj;
35624fail:
35625 return NULL;
35626}
35627
35628
35629SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35630 PyObject *resultobj = 0;
35631 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35632 int arg2 ;
35633 int arg3 ;
35634 PyObject *result = 0 ;
35635 void *argp1 = 0 ;
35636 int res1 = 0 ;
35637 int val2 ;
35638 int ecode2 = 0 ;
35639 int val3 ;
35640 int ecode3 = 0 ;
35641 PyObject * obj0 = 0 ;
35642 PyObject * obj1 = 0 ;
35643 PyObject * obj2 = 0 ;
35644 char * kwnames[] = {
35645 (char *) "self",(char *) "x",(char *) "y", NULL
35646 };
35647
35648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35650 if (!SWIG_IsOK(res1)) {
35651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35652 }
35653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35654 ecode2 = SWIG_AsVal_int(obj1, &val2);
35655 if (!SWIG_IsOK(ecode2)) {
35656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35657 }
35658 arg2 = static_cast< int >(val2);
35659 ecode3 = SWIG_AsVal_int(obj2, &val3);
35660 if (!SWIG_IsOK(ecode3)) {
35661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35662 }
35663 arg3 = static_cast< int >(val3);
35664 {
35665 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35666 if (PyErr_Occurred()) SWIG_fail;
35667 }
35668 resultobj = result;
35669 return resultobj;
35670fail:
35671 return NULL;
35672}
35673
35674
27e45892
RD
35675SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35676 PyObject *resultobj = 0;
35677 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35678 int arg2 ;
35679 wxDC *arg3 = (wxDC *) 0 ;
35680 void *argp1 = 0 ;
35681 int res1 = 0 ;
35682 int val2 ;
35683 int ecode2 = 0 ;
35684 void *argp3 = 0 ;
35685 int res3 = 0 ;
35686 PyObject * obj0 = 0 ;
35687 PyObject * obj1 = 0 ;
35688 PyObject * obj2 = 0 ;
35689 char * kwnames[] = {
35690 (char *) "self",(char *) "id",(char *) "dc", NULL
35691 };
35692
35693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35695 if (!SWIG_IsOK(res1)) {
35696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35697 }
35698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35699 ecode2 = SWIG_AsVal_int(obj1, &val2);
35700 if (!SWIG_IsOK(ecode2)) {
35701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35702 }
35703 arg2 = static_cast< int >(val2);
35704 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35705 if (!SWIG_IsOK(res3)) {
35706 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35707 }
35708 arg3 = reinterpret_cast< wxDC * >(argp3);
35709 {
35710 PyThreadState* __tstate = wxPyBeginAllowThreads();
35711 (arg1)->DrawIdToDC(arg2,arg3);
35712 wxPyEndAllowThreads(__tstate);
35713 if (PyErr_Occurred()) SWIG_fail;
35714 }
35715 resultobj = SWIG_Py_Void();
35716 return resultobj;
35717fail:
35718 return NULL;
35719}
35720
35721
35722SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35723 PyObject *resultobj = 0;
35724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35725 int arg2 ;
35726 wxRect *arg3 = 0 ;
35727 void *argp1 = 0 ;
35728 int res1 = 0 ;
35729 int val2 ;
35730 int ecode2 = 0 ;
35731 wxRect temp3 ;
35732 PyObject * obj0 = 0 ;
35733 PyObject * obj1 = 0 ;
35734 PyObject * obj2 = 0 ;
35735 char * kwnames[] = {
35736 (char *) "self",(char *) "id",(char *) "rect", NULL
35737 };
35738
35739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35741 if (!SWIG_IsOK(res1)) {
35742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35743 }
35744 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35745 ecode2 = SWIG_AsVal_int(obj1, &val2);
35746 if (!SWIG_IsOK(ecode2)) {
35747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35748 }
35749 arg2 = static_cast< int >(val2);
35750 {
35751 arg3 = &temp3;
35752 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35753 }
35754 {
35755 PyThreadState* __tstate = wxPyBeginAllowThreads();
35756 (arg1)->SetIdBounds(arg2,*arg3);
35757 wxPyEndAllowThreads(__tstate);
35758 if (PyErr_Occurred()) SWIG_fail;
35759 }
35760 resultobj = SWIG_Py_Void();
35761 return resultobj;
35762fail:
35763 return NULL;
35764}
35765
35766
35767SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35768 PyObject *resultobj = 0;
35769 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35770 int arg2 ;
35771 wxRect result;
35772 void *argp1 = 0 ;
35773 int res1 = 0 ;
35774 int val2 ;
35775 int ecode2 = 0 ;
35776 PyObject * obj0 = 0 ;
35777 PyObject * obj1 = 0 ;
35778 char * kwnames[] = {
35779 (char *) "self",(char *) "id", NULL
35780 };
35781
35782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35784 if (!SWIG_IsOK(res1)) {
35785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35786 }
35787 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35788 ecode2 = SWIG_AsVal_int(obj1, &val2);
35789 if (!SWIG_IsOK(ecode2)) {
35790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35791 }
35792 arg2 = static_cast< int >(val2);
35793 {
35794 PyThreadState* __tstate = wxPyBeginAllowThreads();
35795 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35796 wxPyEndAllowThreads(__tstate);
35797 if (PyErr_Occurred()) SWIG_fail;
35798 }
35799 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35800 return resultobj;
35801fail:
35802 return NULL;
35803}
35804
35805
35806SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35807 PyObject *resultobj = 0;
35808 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35809 wxDC *arg2 = (wxDC *) 0 ;
35810 wxRect *arg3 = 0 ;
35811 void *argp1 = 0 ;
35812 int res1 = 0 ;
35813 void *argp2 = 0 ;
35814 int res2 = 0 ;
35815 wxRect temp3 ;
35816 PyObject * obj0 = 0 ;
35817 PyObject * obj1 = 0 ;
35818 PyObject * obj2 = 0 ;
35819 char * kwnames[] = {
35820 (char *) "self",(char *) "dc",(char *) "rect", NULL
35821 };
35822
35823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35825 if (!SWIG_IsOK(res1)) {
35826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35827 }
35828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35830 if (!SWIG_IsOK(res2)) {
35831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35832 }
35833 arg2 = reinterpret_cast< wxDC * >(argp2);
35834 {
35835 arg3 = &temp3;
35836 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35837 }
35838 {
35839 PyThreadState* __tstate = wxPyBeginAllowThreads();
35840 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35841 wxPyEndAllowThreads(__tstate);
35842 if (PyErr_Occurred()) SWIG_fail;
35843 }
35844 resultobj = SWIG_Py_Void();
35845 return resultobj;
35846fail:
35847 return NULL;
35848}
35849
35850
35851SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35852 PyObject *resultobj = 0;
35853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35854 wxDC *arg2 = (wxDC *) 0 ;
35855 wxRegion *arg3 = 0 ;
35856 void *argp1 = 0 ;
35857 int res1 = 0 ;
35858 void *argp2 = 0 ;
35859 int res2 = 0 ;
35860 void *argp3 = 0 ;
35861 int res3 = 0 ;
35862 PyObject * obj0 = 0 ;
35863 PyObject * obj1 = 0 ;
35864 PyObject * obj2 = 0 ;
35865 char * kwnames[] = {
35866 (char *) "self",(char *) "dc",(char *) "region", NULL
35867 };
35868
35869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35871 if (!SWIG_IsOK(res1)) {
35872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35873 }
35874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35876 if (!SWIG_IsOK(res2)) {
35877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35878 }
35879 arg2 = reinterpret_cast< wxDC * >(argp2);
35880 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35881 if (!SWIG_IsOK(res3)) {
35882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35883 }
35884 if (!argp3) {
35885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35886 }
35887 arg3 = reinterpret_cast< wxRegion * >(argp3);
35888 {
35889 PyThreadState* __tstate = wxPyBeginAllowThreads();
35890 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35891 wxPyEndAllowThreads(__tstate);
35892 if (PyErr_Occurred()) SWIG_fail;
35893 }
35894 resultobj = SWIG_Py_Void();
35895 return resultobj;
35896fail:
35897 return NULL;
35898}
35899
35900
35901SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35902 PyObject *resultobj = 0;
35903 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35904 wxDC *arg2 = (wxDC *) 0 ;
35905 void *argp1 = 0 ;
35906 int res1 = 0 ;
35907 void *argp2 = 0 ;
35908 int res2 = 0 ;
35909 PyObject * obj0 = 0 ;
35910 PyObject * obj1 = 0 ;
35911 char * kwnames[] = {
35912 (char *) "self",(char *) "dc", NULL
35913 };
35914
35915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35917 if (!SWIG_IsOK(res1)) {
35918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35919 }
35920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35922 if (!SWIG_IsOK(res2)) {
35923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35924 }
35925 arg2 = reinterpret_cast< wxDC * >(argp2);
35926 {
35927 PyThreadState* __tstate = wxPyBeginAllowThreads();
35928 (arg1)->DrawToDC(arg2);
35929 wxPyEndAllowThreads(__tstate);
35930 if (PyErr_Occurred()) SWIG_fail;
35931 }
35932 resultobj = SWIG_Py_Void();
35933 return resultobj;
35934fail:
35935 return NULL;
35936}
35937
35938
35939SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35940 PyObject *resultobj = 0;
35941 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35942 int arg2 ;
35943 int arg3 ;
35944 wxColour *arg4 = 0 ;
35945 int arg5 = (int) wxFLOOD_SURFACE ;
35946 void *argp1 = 0 ;
35947 int res1 = 0 ;
35948 int val2 ;
35949 int ecode2 = 0 ;
35950 int val3 ;
35951 int ecode3 = 0 ;
35952 wxColour temp4 ;
35953 int val5 ;
35954 int ecode5 = 0 ;
35955 PyObject * obj0 = 0 ;
35956 PyObject * obj1 = 0 ;
35957 PyObject * obj2 = 0 ;
35958 PyObject * obj3 = 0 ;
35959 PyObject * obj4 = 0 ;
35960 char * kwnames[] = {
35961 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35962 };
35963
35964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35966 if (!SWIG_IsOK(res1)) {
35967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35968 }
35969 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35970 ecode2 = SWIG_AsVal_int(obj1, &val2);
35971 if (!SWIG_IsOK(ecode2)) {
35972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35973 }
35974 arg2 = static_cast< int >(val2);
35975 ecode3 = SWIG_AsVal_int(obj2, &val3);
35976 if (!SWIG_IsOK(ecode3)) {
35977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35978 }
35979 arg3 = static_cast< int >(val3);
35980 {
35981 arg4 = &temp4;
35982 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35983 }
35984 if (obj4) {
35985 ecode5 = SWIG_AsVal_int(obj4, &val5);
35986 if (!SWIG_IsOK(ecode5)) {
35987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35988 }
35989 arg5 = static_cast< int >(val5);
35990 }
35991 {
35992 PyThreadState* __tstate = wxPyBeginAllowThreads();
35993 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35994 wxPyEndAllowThreads(__tstate);
35995 if (PyErr_Occurred()) SWIG_fail;
35996 }
35997 resultobj = SWIG_Py_Void();
35998 return resultobj;
35999fail:
36000 return NULL;
36001}
36002
36003
36004SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36005 PyObject *resultobj = 0;
36006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36007 wxPoint *arg2 = 0 ;
36008 wxColour *arg3 = 0 ;
36009 int arg4 = (int) wxFLOOD_SURFACE ;
36010 void *argp1 = 0 ;
36011 int res1 = 0 ;
36012 wxPoint temp2 ;
36013 wxColour temp3 ;
36014 int val4 ;
36015 int ecode4 = 0 ;
36016 PyObject * obj0 = 0 ;
36017 PyObject * obj1 = 0 ;
36018 PyObject * obj2 = 0 ;
36019 PyObject * obj3 = 0 ;
36020 char * kwnames[] = {
36021 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36022 };
36023
36024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36026 if (!SWIG_IsOK(res1)) {
36027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36028 }
36029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36030 {
36031 arg2 = &temp2;
36032 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36033 }
36034 {
36035 arg3 = &temp3;
36036 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36037 }
36038 if (obj3) {
36039 ecode4 = SWIG_AsVal_int(obj3, &val4);
36040 if (!SWIG_IsOK(ecode4)) {
36041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36042 }
36043 arg4 = static_cast< int >(val4);
36044 }
36045 {
36046 PyThreadState* __tstate = wxPyBeginAllowThreads();
36047 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36048 wxPyEndAllowThreads(__tstate);
36049 if (PyErr_Occurred()) SWIG_fail;
36050 }
36051 resultobj = SWIG_Py_Void();
36052 return resultobj;
36053fail:
36054 return NULL;
36055}
36056
36057
36058SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36059 PyObject *resultobj = 0;
36060 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36061 int arg2 ;
36062 int arg3 ;
36063 int arg4 ;
36064 int arg5 ;
36065 void *argp1 = 0 ;
36066 int res1 = 0 ;
36067 int val2 ;
36068 int ecode2 = 0 ;
36069 int val3 ;
36070 int ecode3 = 0 ;
36071 int val4 ;
36072 int ecode4 = 0 ;
36073 int val5 ;
36074 int ecode5 = 0 ;
36075 PyObject * obj0 = 0 ;
36076 PyObject * obj1 = 0 ;
36077 PyObject * obj2 = 0 ;
36078 PyObject * obj3 = 0 ;
36079 PyObject * obj4 = 0 ;
36080 char * kwnames[] = {
36081 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36082 };
36083
36084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36086 if (!SWIG_IsOK(res1)) {
36087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36088 }
36089 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36090 ecode2 = SWIG_AsVal_int(obj1, &val2);
36091 if (!SWIG_IsOK(ecode2)) {
36092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36093 }
36094 arg2 = static_cast< int >(val2);
36095 ecode3 = SWIG_AsVal_int(obj2, &val3);
36096 if (!SWIG_IsOK(ecode3)) {
36097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36098 }
36099 arg3 = static_cast< int >(val3);
36100 ecode4 = SWIG_AsVal_int(obj3, &val4);
36101 if (!SWIG_IsOK(ecode4)) {
36102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36103 }
36104 arg4 = static_cast< int >(val4);
36105 ecode5 = SWIG_AsVal_int(obj4, &val5);
36106 if (!SWIG_IsOK(ecode5)) {
36107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36108 }
36109 arg5 = static_cast< int >(val5);
36110 {
36111 PyThreadState* __tstate = wxPyBeginAllowThreads();
36112 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36113 wxPyEndAllowThreads(__tstate);
36114 if (PyErr_Occurred()) SWIG_fail;
36115 }
36116 resultobj = SWIG_Py_Void();
36117 return resultobj;
36118fail:
36119 return NULL;
36120}
36121
36122
36123SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36124 PyObject *resultobj = 0;
36125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36126 wxPoint *arg2 = 0 ;
36127 wxPoint *arg3 = 0 ;
36128 void *argp1 = 0 ;
36129 int res1 = 0 ;
36130 wxPoint temp2 ;
36131 wxPoint temp3 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 PyObject * obj2 = 0 ;
36135 char * kwnames[] = {
36136 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36137 };
36138
36139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36141 if (!SWIG_IsOK(res1)) {
36142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36143 }
36144 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36145 {
36146 arg2 = &temp2;
36147 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36148 }
36149 {
36150 arg3 = &temp3;
36151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36152 }
36153 {
36154 PyThreadState* __tstate = wxPyBeginAllowThreads();
36155 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36156 wxPyEndAllowThreads(__tstate);
36157 if (PyErr_Occurred()) SWIG_fail;
36158 }
36159 resultobj = SWIG_Py_Void();
36160 return resultobj;
36161fail:
36162 return NULL;
36163}
36164
36165
36166SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36167 PyObject *resultobj = 0;
36168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36169 int arg2 ;
36170 int arg3 ;
36171 void *argp1 = 0 ;
36172 int res1 = 0 ;
36173 int val2 ;
36174 int ecode2 = 0 ;
36175 int val3 ;
36176 int ecode3 = 0 ;
36177 PyObject * obj0 = 0 ;
36178 PyObject * obj1 = 0 ;
36179 PyObject * obj2 = 0 ;
36180 char * kwnames[] = {
36181 (char *) "self",(char *) "x",(char *) "y", NULL
36182 };
36183
36184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36186 if (!SWIG_IsOK(res1)) {
36187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36188 }
36189 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36190 ecode2 = SWIG_AsVal_int(obj1, &val2);
36191 if (!SWIG_IsOK(ecode2)) {
36192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36193 }
36194 arg2 = static_cast< int >(val2);
36195 ecode3 = SWIG_AsVal_int(obj2, &val3);
36196 if (!SWIG_IsOK(ecode3)) {
36197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36198 }
36199 arg3 = static_cast< int >(val3);
36200 {
36201 PyThreadState* __tstate = wxPyBeginAllowThreads();
36202 (arg1)->CrossHair(arg2,arg3);
36203 wxPyEndAllowThreads(__tstate);
36204 if (PyErr_Occurred()) SWIG_fail;
36205 }
36206 resultobj = SWIG_Py_Void();
36207 return resultobj;
36208fail:
36209 return NULL;
36210}
36211
36212
36213SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36214 PyObject *resultobj = 0;
36215 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36216 wxPoint *arg2 = 0 ;
36217 void *argp1 = 0 ;
36218 int res1 = 0 ;
36219 wxPoint temp2 ;
36220 PyObject * obj0 = 0 ;
36221 PyObject * obj1 = 0 ;
36222 char * kwnames[] = {
36223 (char *) "self",(char *) "pt", NULL
36224 };
36225
36226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36228 if (!SWIG_IsOK(res1)) {
36229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36230 }
36231 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36232 {
36233 arg2 = &temp2;
36234 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36235 }
36236 {
36237 PyThreadState* __tstate = wxPyBeginAllowThreads();
36238 (arg1)->CrossHair((wxPoint const &)*arg2);
36239 wxPyEndAllowThreads(__tstate);
36240 if (PyErr_Occurred()) SWIG_fail;
36241 }
36242 resultobj = SWIG_Py_Void();
36243 return resultobj;
36244fail:
36245 return NULL;
36246}
36247
36248
36249SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36250 PyObject *resultobj = 0;
36251 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36252 int arg2 ;
36253 int arg3 ;
36254 int arg4 ;
36255 int arg5 ;
36256 int arg6 ;
36257 int arg7 ;
36258 void *argp1 = 0 ;
36259 int res1 = 0 ;
36260 int val2 ;
36261 int ecode2 = 0 ;
36262 int val3 ;
36263 int ecode3 = 0 ;
36264 int val4 ;
36265 int ecode4 = 0 ;
36266 int val5 ;
36267 int ecode5 = 0 ;
36268 int val6 ;
36269 int ecode6 = 0 ;
36270 int val7 ;
36271 int ecode7 = 0 ;
36272 PyObject * obj0 = 0 ;
36273 PyObject * obj1 = 0 ;
36274 PyObject * obj2 = 0 ;
36275 PyObject * obj3 = 0 ;
36276 PyObject * obj4 = 0 ;
36277 PyObject * obj5 = 0 ;
36278 PyObject * obj6 = 0 ;
36279 char * kwnames[] = {
36280 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36281 };
36282
36283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36285 if (!SWIG_IsOK(res1)) {
36286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36287 }
36288 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36289 ecode2 = SWIG_AsVal_int(obj1, &val2);
36290 if (!SWIG_IsOK(ecode2)) {
36291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36292 }
36293 arg2 = static_cast< int >(val2);
36294 ecode3 = SWIG_AsVal_int(obj2, &val3);
36295 if (!SWIG_IsOK(ecode3)) {
36296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36297 }
36298 arg3 = static_cast< int >(val3);
36299 ecode4 = SWIG_AsVal_int(obj3, &val4);
36300 if (!SWIG_IsOK(ecode4)) {
36301 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36302 }
36303 arg4 = static_cast< int >(val4);
36304 ecode5 = SWIG_AsVal_int(obj4, &val5);
36305 if (!SWIG_IsOK(ecode5)) {
36306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36307 }
36308 arg5 = static_cast< int >(val5);
36309 ecode6 = SWIG_AsVal_int(obj5, &val6);
36310 if (!SWIG_IsOK(ecode6)) {
36311 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36312 }
36313 arg6 = static_cast< int >(val6);
36314 ecode7 = SWIG_AsVal_int(obj6, &val7);
36315 if (!SWIG_IsOK(ecode7)) {
36316 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36317 }
36318 arg7 = static_cast< int >(val7);
36319 {
36320 PyThreadState* __tstate = wxPyBeginAllowThreads();
36321 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36322 wxPyEndAllowThreads(__tstate);
36323 if (PyErr_Occurred()) SWIG_fail;
36324 }
36325 resultobj = SWIG_Py_Void();
36326 return resultobj;
36327fail:
36328 return NULL;
36329}
36330
36331
36332SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36333 PyObject *resultobj = 0;
36334 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36335 wxPoint *arg2 = 0 ;
36336 wxPoint *arg3 = 0 ;
36337 wxPoint *arg4 = 0 ;
36338 void *argp1 = 0 ;
36339 int res1 = 0 ;
36340 wxPoint temp2 ;
36341 wxPoint temp3 ;
36342 wxPoint temp4 ;
36343 PyObject * obj0 = 0 ;
36344 PyObject * obj1 = 0 ;
36345 PyObject * obj2 = 0 ;
36346 PyObject * obj3 = 0 ;
36347 char * kwnames[] = {
36348 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36349 };
36350
36351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36353 if (!SWIG_IsOK(res1)) {
36354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36355 }
36356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36357 {
36358 arg2 = &temp2;
36359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36360 }
36361 {
36362 arg3 = &temp3;
36363 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36364 }
36365 {
36366 arg4 = &temp4;
36367 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36368 }
36369 {
36370 PyThreadState* __tstate = wxPyBeginAllowThreads();
36371 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36372 wxPyEndAllowThreads(__tstate);
36373 if (PyErr_Occurred()) SWIG_fail;
36374 }
36375 resultobj = SWIG_Py_Void();
36376 return resultobj;
36377fail:
36378 return NULL;
36379}
36380
36381
36382SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36383 PyObject *resultobj = 0;
36384 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36385 int arg2 ;
36386 int arg3 ;
36387 int arg4 ;
36388 int arg5 ;
36389 void *argp1 = 0 ;
36390 int res1 = 0 ;
36391 int val2 ;
36392 int ecode2 = 0 ;
36393 int val3 ;
36394 int ecode3 = 0 ;
36395 int val4 ;
36396 int ecode4 = 0 ;
36397 int val5 ;
36398 int ecode5 = 0 ;
36399 PyObject * obj0 = 0 ;
36400 PyObject * obj1 = 0 ;
36401 PyObject * obj2 = 0 ;
36402 PyObject * obj3 = 0 ;
36403 PyObject * obj4 = 0 ;
36404 char * kwnames[] = {
36405 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36406 };
36407
36408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36410 if (!SWIG_IsOK(res1)) {
36411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36412 }
36413 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36414 ecode2 = SWIG_AsVal_int(obj1, &val2);
36415 if (!SWIG_IsOK(ecode2)) {
36416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36417 }
36418 arg2 = static_cast< int >(val2);
36419 ecode3 = SWIG_AsVal_int(obj2, &val3);
36420 if (!SWIG_IsOK(ecode3)) {
36421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36422 }
36423 arg3 = static_cast< int >(val3);
36424 ecode4 = SWIG_AsVal_int(obj3, &val4);
36425 if (!SWIG_IsOK(ecode4)) {
36426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36427 }
36428 arg4 = static_cast< int >(val4);
36429 ecode5 = SWIG_AsVal_int(obj4, &val5);
36430 if (!SWIG_IsOK(ecode5)) {
36431 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36432 }
36433 arg5 = static_cast< int >(val5);
36434 {
36435 PyThreadState* __tstate = wxPyBeginAllowThreads();
36436 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36437 wxPyEndAllowThreads(__tstate);
36438 if (PyErr_Occurred()) SWIG_fail;
36439 }
36440 resultobj = SWIG_Py_Void();
36441 return resultobj;
36442fail:
36443 return NULL;
36444}
36445
36446
36447SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36448 PyObject *resultobj = 0;
36449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36450 wxRect *arg2 = 0 ;
36451 void *argp1 = 0 ;
36452 int res1 = 0 ;
36453 wxRect temp2 ;
36454 PyObject * obj0 = 0 ;
36455 PyObject * obj1 = 0 ;
36456 char * kwnames[] = {
36457 (char *) "self",(char *) "rect", NULL
36458 };
36459
36460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36462 if (!SWIG_IsOK(res1)) {
36463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36464 }
36465 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36466 {
36467 arg2 = &temp2;
36468 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36469 }
36470 {
36471 PyThreadState* __tstate = wxPyBeginAllowThreads();
36472 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36473 wxPyEndAllowThreads(__tstate);
36474 if (PyErr_Occurred()) SWIG_fail;
36475 }
36476 resultobj = SWIG_Py_Void();
36477 return resultobj;
36478fail:
36479 return NULL;
36480}
36481
36482
36483SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36484 PyObject *resultobj = 0;
36485 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36486 int arg2 ;
36487 int arg3 ;
36488 int arg4 ;
36489 int arg5 ;
36490 double arg6 ;
36491 double arg7 ;
36492 void *argp1 = 0 ;
36493 int res1 = 0 ;
36494 int val2 ;
36495 int ecode2 = 0 ;
36496 int val3 ;
36497 int ecode3 = 0 ;
36498 int val4 ;
36499 int ecode4 = 0 ;
36500 int val5 ;
36501 int ecode5 = 0 ;
36502 double val6 ;
36503 int ecode6 = 0 ;
36504 double val7 ;
36505 int ecode7 = 0 ;
36506 PyObject * obj0 = 0 ;
36507 PyObject * obj1 = 0 ;
36508 PyObject * obj2 = 0 ;
36509 PyObject * obj3 = 0 ;
36510 PyObject * obj4 = 0 ;
36511 PyObject * obj5 = 0 ;
36512 PyObject * obj6 = 0 ;
36513 char * kwnames[] = {
36514 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36515 };
36516
36517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36519 if (!SWIG_IsOK(res1)) {
36520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36521 }
36522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36523 ecode2 = SWIG_AsVal_int(obj1, &val2);
36524 if (!SWIG_IsOK(ecode2)) {
36525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36526 }
36527 arg2 = static_cast< int >(val2);
36528 ecode3 = SWIG_AsVal_int(obj2, &val3);
36529 if (!SWIG_IsOK(ecode3)) {
36530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36531 }
36532 arg3 = static_cast< int >(val3);
36533 ecode4 = SWIG_AsVal_int(obj3, &val4);
36534 if (!SWIG_IsOK(ecode4)) {
36535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36536 }
36537 arg4 = static_cast< int >(val4);
36538 ecode5 = SWIG_AsVal_int(obj4, &val5);
36539 if (!SWIG_IsOK(ecode5)) {
36540 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36541 }
36542 arg5 = static_cast< int >(val5);
36543 ecode6 = SWIG_AsVal_double(obj5, &val6);
36544 if (!SWIG_IsOK(ecode6)) {
36545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36546 }
36547 arg6 = static_cast< double >(val6);
36548 ecode7 = SWIG_AsVal_double(obj6, &val7);
36549 if (!SWIG_IsOK(ecode7)) {
36550 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36551 }
36552 arg7 = static_cast< double >(val7);
36553 {
36554 PyThreadState* __tstate = wxPyBeginAllowThreads();
36555 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36556 wxPyEndAllowThreads(__tstate);
36557 if (PyErr_Occurred()) SWIG_fail;
36558 }
36559 resultobj = SWIG_Py_Void();
36560 return resultobj;
36561fail:
36562 return NULL;
36563}
36564
36565
36566SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36567 PyObject *resultobj = 0;
36568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36569 wxPoint *arg2 = 0 ;
36570 wxSize *arg3 = 0 ;
36571 double arg4 ;
36572 double arg5 ;
36573 void *argp1 = 0 ;
36574 int res1 = 0 ;
36575 wxPoint temp2 ;
36576 wxSize temp3 ;
36577 double val4 ;
36578 int ecode4 = 0 ;
36579 double val5 ;
36580 int ecode5 = 0 ;
36581 PyObject * obj0 = 0 ;
36582 PyObject * obj1 = 0 ;
36583 PyObject * obj2 = 0 ;
36584 PyObject * obj3 = 0 ;
36585 PyObject * obj4 = 0 ;
36586 char * kwnames[] = {
36587 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36588 };
36589
36590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36594 }
36595 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36596 {
36597 arg2 = &temp2;
36598 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36599 }
36600 {
36601 arg3 = &temp3;
36602 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36603 }
36604 ecode4 = SWIG_AsVal_double(obj3, &val4);
36605 if (!SWIG_IsOK(ecode4)) {
36606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36607 }
36608 arg4 = static_cast< double >(val4);
36609 ecode5 = SWIG_AsVal_double(obj4, &val5);
36610 if (!SWIG_IsOK(ecode5)) {
36611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36612 }
36613 arg5 = static_cast< double >(val5);
36614 {
36615 PyThreadState* __tstate = wxPyBeginAllowThreads();
36616 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36617 wxPyEndAllowThreads(__tstate);
36618 if (PyErr_Occurred()) SWIG_fail;
36619 }
36620 resultobj = SWIG_Py_Void();
36621 return resultobj;
36622fail:
36623 return NULL;
36624}
36625
36626
36627SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36628 PyObject *resultobj = 0;
36629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36630 int arg2 ;
36631 int arg3 ;
36632 void *argp1 = 0 ;
36633 int res1 = 0 ;
36634 int val2 ;
36635 int ecode2 = 0 ;
36636 int val3 ;
36637 int ecode3 = 0 ;
36638 PyObject * obj0 = 0 ;
36639 PyObject * obj1 = 0 ;
36640 PyObject * obj2 = 0 ;
36641 char * kwnames[] = {
36642 (char *) "self",(char *) "x",(char *) "y", NULL
36643 };
36644
36645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36647 if (!SWIG_IsOK(res1)) {
36648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36649 }
36650 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36651 ecode2 = SWIG_AsVal_int(obj1, &val2);
36652 if (!SWIG_IsOK(ecode2)) {
36653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36654 }
36655 arg2 = static_cast< int >(val2);
36656 ecode3 = SWIG_AsVal_int(obj2, &val3);
36657 if (!SWIG_IsOK(ecode3)) {
36658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36659 }
36660 arg3 = static_cast< int >(val3);
36661 {
36662 PyThreadState* __tstate = wxPyBeginAllowThreads();
36663 (arg1)->DrawPoint(arg2,arg3);
36664 wxPyEndAllowThreads(__tstate);
36665 if (PyErr_Occurred()) SWIG_fail;
36666 }
36667 resultobj = SWIG_Py_Void();
36668 return resultobj;
36669fail:
36670 return NULL;
36671}
36672
36673
36674SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36675 PyObject *resultobj = 0;
36676 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36677 wxPoint *arg2 = 0 ;
36678 void *argp1 = 0 ;
36679 int res1 = 0 ;
36680 wxPoint temp2 ;
36681 PyObject * obj0 = 0 ;
36682 PyObject * obj1 = 0 ;
36683 char * kwnames[] = {
36684 (char *) "self",(char *) "pt", NULL
36685 };
36686
36687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36689 if (!SWIG_IsOK(res1)) {
36690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36691 }
36692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36693 {
36694 arg2 = &temp2;
36695 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36696 }
36697 {
36698 PyThreadState* __tstate = wxPyBeginAllowThreads();
36699 (arg1)->DrawPoint((wxPoint const &)*arg2);
36700 wxPyEndAllowThreads(__tstate);
36701 if (PyErr_Occurred()) SWIG_fail;
36702 }
36703 resultobj = SWIG_Py_Void();
36704 return resultobj;
36705fail:
36706 return NULL;
36707}
36708
36709
36710SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36711 PyObject *resultobj = 0;
36712 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36713 int arg2 ;
36714 int arg3 ;
36715 int arg4 ;
36716 int arg5 ;
36717 void *argp1 = 0 ;
36718 int res1 = 0 ;
36719 int val2 ;
36720 int ecode2 = 0 ;
36721 int val3 ;
36722 int ecode3 = 0 ;
36723 int val4 ;
36724 int ecode4 = 0 ;
36725 int val5 ;
36726 int ecode5 = 0 ;
36727 PyObject * obj0 = 0 ;
36728 PyObject * obj1 = 0 ;
36729 PyObject * obj2 = 0 ;
36730 PyObject * obj3 = 0 ;
36731 PyObject * obj4 = 0 ;
36732 char * kwnames[] = {
36733 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36734 };
36735
36736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36738 if (!SWIG_IsOK(res1)) {
36739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36740 }
36741 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36742 ecode2 = SWIG_AsVal_int(obj1, &val2);
36743 if (!SWIG_IsOK(ecode2)) {
36744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36745 }
36746 arg2 = static_cast< int >(val2);
36747 ecode3 = SWIG_AsVal_int(obj2, &val3);
36748 if (!SWIG_IsOK(ecode3)) {
36749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36750 }
36751 arg3 = static_cast< int >(val3);
36752 ecode4 = SWIG_AsVal_int(obj3, &val4);
36753 if (!SWIG_IsOK(ecode4)) {
36754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36755 }
36756 arg4 = static_cast< int >(val4);
36757 ecode5 = SWIG_AsVal_int(obj4, &val5);
36758 if (!SWIG_IsOK(ecode5)) {
36759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36760 }
36761 arg5 = static_cast< int >(val5);
36762 {
36763 PyThreadState* __tstate = wxPyBeginAllowThreads();
36764 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36765 wxPyEndAllowThreads(__tstate);
36766 if (PyErr_Occurred()) SWIG_fail;
36767 }
36768 resultobj = SWIG_Py_Void();
36769 return resultobj;
36770fail:
36771 return NULL;
36772}
36773
36774
36775SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36776 PyObject *resultobj = 0;
36777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36778 wxRect *arg2 = 0 ;
36779 void *argp1 = 0 ;
36780 int res1 = 0 ;
36781 wxRect temp2 ;
36782 PyObject * obj0 = 0 ;
36783 PyObject * obj1 = 0 ;
36784 char * kwnames[] = {
36785 (char *) "self",(char *) "rect", NULL
36786 };
36787
36788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36790 if (!SWIG_IsOK(res1)) {
36791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36792 }
36793 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36794 {
36795 arg2 = &temp2;
36796 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36797 }
36798 {
36799 PyThreadState* __tstate = wxPyBeginAllowThreads();
36800 (arg1)->DrawRectangle((wxRect const &)*arg2);
36801 wxPyEndAllowThreads(__tstate);
36802 if (PyErr_Occurred()) SWIG_fail;
36803 }
36804 resultobj = SWIG_Py_Void();
36805 return resultobj;
36806fail:
36807 return NULL;
36808}
36809
36810
36811SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36812 PyObject *resultobj = 0;
36813 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36814 wxPoint *arg2 = 0 ;
36815 wxSize *arg3 = 0 ;
36816 void *argp1 = 0 ;
36817 int res1 = 0 ;
36818 wxPoint temp2 ;
36819 wxSize temp3 ;
36820 PyObject * obj0 = 0 ;
36821 PyObject * obj1 = 0 ;
36822 PyObject * obj2 = 0 ;
36823 char * kwnames[] = {
36824 (char *) "self",(char *) "pt",(char *) "sz", NULL
36825 };
36826
36827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36829 if (!SWIG_IsOK(res1)) {
36830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36831 }
36832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36833 {
36834 arg2 = &temp2;
36835 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36836 }
36837 {
36838 arg3 = &temp3;
36839 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36840 }
36841 {
36842 PyThreadState* __tstate = wxPyBeginAllowThreads();
36843 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36844 wxPyEndAllowThreads(__tstate);
36845 if (PyErr_Occurred()) SWIG_fail;
36846 }
36847 resultobj = SWIG_Py_Void();
36848 return resultobj;
36849fail:
36850 return NULL;
36851}
36852
36853
36854SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36855 PyObject *resultobj = 0;
36856 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36857 int arg2 ;
36858 int arg3 ;
36859 int arg4 ;
36860 int arg5 ;
36861 double arg6 ;
36862 void *argp1 = 0 ;
36863 int res1 = 0 ;
36864 int val2 ;
36865 int ecode2 = 0 ;
36866 int val3 ;
36867 int ecode3 = 0 ;
36868 int val4 ;
36869 int ecode4 = 0 ;
36870 int val5 ;
36871 int ecode5 = 0 ;
36872 double val6 ;
36873 int ecode6 = 0 ;
36874 PyObject * obj0 = 0 ;
36875 PyObject * obj1 = 0 ;
36876 PyObject * obj2 = 0 ;
36877 PyObject * obj3 = 0 ;
36878 PyObject * obj4 = 0 ;
36879 PyObject * obj5 = 0 ;
36880 char * kwnames[] = {
36881 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36882 };
36883
36884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36886 if (!SWIG_IsOK(res1)) {
36887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36888 }
36889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36890 ecode2 = SWIG_AsVal_int(obj1, &val2);
36891 if (!SWIG_IsOK(ecode2)) {
36892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36893 }
36894 arg2 = static_cast< int >(val2);
36895 ecode3 = SWIG_AsVal_int(obj2, &val3);
36896 if (!SWIG_IsOK(ecode3)) {
36897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36898 }
36899 arg3 = static_cast< int >(val3);
36900 ecode4 = SWIG_AsVal_int(obj3, &val4);
36901 if (!SWIG_IsOK(ecode4)) {
36902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36903 }
36904 arg4 = static_cast< int >(val4);
36905 ecode5 = SWIG_AsVal_int(obj4, &val5);
36906 if (!SWIG_IsOK(ecode5)) {
36907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36908 }
36909 arg5 = static_cast< int >(val5);
36910 ecode6 = SWIG_AsVal_double(obj5, &val6);
36911 if (!SWIG_IsOK(ecode6)) {
36912 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36913 }
36914 arg6 = static_cast< double >(val6);
36915 {
36916 PyThreadState* __tstate = wxPyBeginAllowThreads();
36917 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36918 wxPyEndAllowThreads(__tstate);
36919 if (PyErr_Occurred()) SWIG_fail;
36920 }
36921 resultobj = SWIG_Py_Void();
36922 return resultobj;
36923fail:
36924 return NULL;
36925}
36926
36927
36928SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36929 PyObject *resultobj = 0;
36930 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36931 wxRect *arg2 = 0 ;
36932 double arg3 ;
36933 void *argp1 = 0 ;
36934 int res1 = 0 ;
36935 wxRect temp2 ;
36936 double val3 ;
36937 int ecode3 = 0 ;
36938 PyObject * obj0 = 0 ;
36939 PyObject * obj1 = 0 ;
36940 PyObject * obj2 = 0 ;
36941 char * kwnames[] = {
36942 (char *) "self",(char *) "r",(char *) "radius", NULL
36943 };
36944
36945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36947 if (!SWIG_IsOK(res1)) {
36948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36949 }
36950 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36951 {
36952 arg2 = &temp2;
36953 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36954 }
36955 ecode3 = SWIG_AsVal_double(obj2, &val3);
36956 if (!SWIG_IsOK(ecode3)) {
36957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36958 }
36959 arg3 = static_cast< double >(val3);
36960 {
36961 PyThreadState* __tstate = wxPyBeginAllowThreads();
36962 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36963 wxPyEndAllowThreads(__tstate);
36964 if (PyErr_Occurred()) SWIG_fail;
36965 }
36966 resultobj = SWIG_Py_Void();
36967 return resultobj;
36968fail:
36969 return NULL;
36970}
36971
36972
36973SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36974 PyObject *resultobj = 0;
36975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36976 wxPoint *arg2 = 0 ;
36977 wxSize *arg3 = 0 ;
36978 double arg4 ;
36979 void *argp1 = 0 ;
36980 int res1 = 0 ;
36981 wxPoint temp2 ;
36982 wxSize temp3 ;
36983 double val4 ;
36984 int ecode4 = 0 ;
36985 PyObject * obj0 = 0 ;
36986 PyObject * obj1 = 0 ;
36987 PyObject * obj2 = 0 ;
36988 PyObject * obj3 = 0 ;
36989 char * kwnames[] = {
36990 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36991 };
36992
36993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36995 if (!SWIG_IsOK(res1)) {
36996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36997 }
36998 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36999 {
37000 arg2 = &temp2;
37001 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37002 }
37003 {
37004 arg3 = &temp3;
37005 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37006 }
37007 ecode4 = SWIG_AsVal_double(obj3, &val4);
37008 if (!SWIG_IsOK(ecode4)) {
37009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37010 }
37011 arg4 = static_cast< double >(val4);
37012 {
37013 PyThreadState* __tstate = wxPyBeginAllowThreads();
37014 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37015 wxPyEndAllowThreads(__tstate);
37016 if (PyErr_Occurred()) SWIG_fail;
37017 }
37018 resultobj = SWIG_Py_Void();
37019 return resultobj;
37020fail:
37021 return NULL;
37022}
37023
37024
37025SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37026 PyObject *resultobj = 0;
37027 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37028 int arg2 ;
37029 int arg3 ;
37030 int arg4 ;
37031 void *argp1 = 0 ;
37032 int res1 = 0 ;
37033 int val2 ;
37034 int ecode2 = 0 ;
37035 int val3 ;
37036 int ecode3 = 0 ;
37037 int val4 ;
37038 int ecode4 = 0 ;
37039 PyObject * obj0 = 0 ;
37040 PyObject * obj1 = 0 ;
37041 PyObject * obj2 = 0 ;
37042 PyObject * obj3 = 0 ;
37043 char * kwnames[] = {
37044 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37045 };
37046
37047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37049 if (!SWIG_IsOK(res1)) {
37050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37051 }
37052 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37053 ecode2 = SWIG_AsVal_int(obj1, &val2);
37054 if (!SWIG_IsOK(ecode2)) {
37055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37056 }
37057 arg2 = static_cast< int >(val2);
37058 ecode3 = SWIG_AsVal_int(obj2, &val3);
37059 if (!SWIG_IsOK(ecode3)) {
37060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37061 }
37062 arg3 = static_cast< int >(val3);
37063 ecode4 = SWIG_AsVal_int(obj3, &val4);
37064 if (!SWIG_IsOK(ecode4)) {
37065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37066 }
37067 arg4 = static_cast< int >(val4);
37068 {
37069 PyThreadState* __tstate = wxPyBeginAllowThreads();
37070 (arg1)->DrawCircle(arg2,arg3,arg4);
37071 wxPyEndAllowThreads(__tstate);
37072 if (PyErr_Occurred()) SWIG_fail;
37073 }
37074 resultobj = SWIG_Py_Void();
37075 return resultobj;
37076fail:
37077 return NULL;
37078}
37079
37080
37081SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37082 PyObject *resultobj = 0;
37083 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37084 wxPoint *arg2 = 0 ;
37085 int arg3 ;
37086 void *argp1 = 0 ;
37087 int res1 = 0 ;
37088 wxPoint temp2 ;
37089 int val3 ;
37090 int ecode3 = 0 ;
37091 PyObject * obj0 = 0 ;
37092 PyObject * obj1 = 0 ;
37093 PyObject * obj2 = 0 ;
37094 char * kwnames[] = {
37095 (char *) "self",(char *) "pt",(char *) "radius", NULL
37096 };
37097
37098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37100 if (!SWIG_IsOK(res1)) {
37101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37102 }
37103 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37104 {
37105 arg2 = &temp2;
37106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37107 }
37108 ecode3 = SWIG_AsVal_int(obj2, &val3);
37109 if (!SWIG_IsOK(ecode3)) {
37110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37111 }
37112 arg3 = static_cast< int >(val3);
37113 {
37114 PyThreadState* __tstate = wxPyBeginAllowThreads();
37115 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37116 wxPyEndAllowThreads(__tstate);
37117 if (PyErr_Occurred()) SWIG_fail;
37118 }
37119 resultobj = SWIG_Py_Void();
37120 return resultobj;
37121fail:
37122 return NULL;
37123}
37124
37125
37126SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37127 PyObject *resultobj = 0;
37128 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37129 int arg2 ;
37130 int arg3 ;
37131 int arg4 ;
37132 int arg5 ;
37133 void *argp1 = 0 ;
37134 int res1 = 0 ;
37135 int val2 ;
37136 int ecode2 = 0 ;
37137 int val3 ;
37138 int ecode3 = 0 ;
37139 int val4 ;
37140 int ecode4 = 0 ;
37141 int val5 ;
37142 int ecode5 = 0 ;
37143 PyObject * obj0 = 0 ;
37144 PyObject * obj1 = 0 ;
37145 PyObject * obj2 = 0 ;
37146 PyObject * obj3 = 0 ;
37147 PyObject * obj4 = 0 ;
37148 char * kwnames[] = {
37149 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37150 };
37151
37152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37154 if (!SWIG_IsOK(res1)) {
37155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37156 }
37157 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37158 ecode2 = SWIG_AsVal_int(obj1, &val2);
37159 if (!SWIG_IsOK(ecode2)) {
37160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37161 }
37162 arg2 = static_cast< int >(val2);
37163 ecode3 = SWIG_AsVal_int(obj2, &val3);
37164 if (!SWIG_IsOK(ecode3)) {
37165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37166 }
37167 arg3 = static_cast< int >(val3);
37168 ecode4 = SWIG_AsVal_int(obj3, &val4);
37169 if (!SWIG_IsOK(ecode4)) {
37170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37171 }
37172 arg4 = static_cast< int >(val4);
37173 ecode5 = SWIG_AsVal_int(obj4, &val5);
37174 if (!SWIG_IsOK(ecode5)) {
37175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37176 }
37177 arg5 = static_cast< int >(val5);
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37181 wxPyEndAllowThreads(__tstate);
37182 if (PyErr_Occurred()) SWIG_fail;
37183 }
37184 resultobj = SWIG_Py_Void();
37185 return resultobj;
37186fail:
37187 return NULL;
37188}
37189
37190
37191SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37192 PyObject *resultobj = 0;
37193 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37194 wxRect *arg2 = 0 ;
37195 void *argp1 = 0 ;
37196 int res1 = 0 ;
37197 wxRect temp2 ;
37198 PyObject * obj0 = 0 ;
37199 PyObject * obj1 = 0 ;
37200 char * kwnames[] = {
37201 (char *) "self",(char *) "rect", NULL
37202 };
37203
37204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) 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_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37208 }
37209 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37210 {
37211 arg2 = &temp2;
37212 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37213 }
37214 {
37215 PyThreadState* __tstate = wxPyBeginAllowThreads();
37216 (arg1)->DrawEllipse((wxRect const &)*arg2);
37217 wxPyEndAllowThreads(__tstate);
37218 if (PyErr_Occurred()) SWIG_fail;
37219 }
37220 resultobj = SWIG_Py_Void();
37221 return resultobj;
37222fail:
37223 return NULL;
37224}
37225
37226
37227SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37228 PyObject *resultobj = 0;
37229 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37230 wxPoint *arg2 = 0 ;
37231 wxSize *arg3 = 0 ;
37232 void *argp1 = 0 ;
37233 int res1 = 0 ;
37234 wxPoint temp2 ;
37235 wxSize temp3 ;
37236 PyObject * obj0 = 0 ;
37237 PyObject * obj1 = 0 ;
37238 PyObject * obj2 = 0 ;
37239 char * kwnames[] = {
37240 (char *) "self",(char *) "pt",(char *) "sz", NULL
37241 };
37242
37243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37245 if (!SWIG_IsOK(res1)) {
37246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37247 }
37248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37249 {
37250 arg2 = &temp2;
37251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37252 }
37253 {
37254 arg3 = &temp3;
37255 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37256 }
37257 {
37258 PyThreadState* __tstate = wxPyBeginAllowThreads();
37259 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37260 wxPyEndAllowThreads(__tstate);
37261 if (PyErr_Occurred()) SWIG_fail;
37262 }
37263 resultobj = SWIG_Py_Void();
37264 return resultobj;
37265fail:
37266 return NULL;
37267}
37268
37269
37270SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37271 PyObject *resultobj = 0;
37272 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37273 wxIcon *arg2 = 0 ;
37274 int arg3 ;
37275 int arg4 ;
37276 void *argp1 = 0 ;
37277 int res1 = 0 ;
37278 void *argp2 = 0 ;
37279 int res2 = 0 ;
37280 int val3 ;
37281 int ecode3 = 0 ;
37282 int val4 ;
37283 int ecode4 = 0 ;
37284 PyObject * obj0 = 0 ;
37285 PyObject * obj1 = 0 ;
37286 PyObject * obj2 = 0 ;
37287 PyObject * obj3 = 0 ;
37288 char * kwnames[] = {
37289 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37290 };
37291
37292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37294 if (!SWIG_IsOK(res1)) {
37295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37296 }
37297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37299 if (!SWIG_IsOK(res2)) {
37300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37301 }
37302 if (!argp2) {
37303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37304 }
37305 arg2 = reinterpret_cast< wxIcon * >(argp2);
37306 ecode3 = SWIG_AsVal_int(obj2, &val3);
37307 if (!SWIG_IsOK(ecode3)) {
37308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37309 }
37310 arg3 = static_cast< int >(val3);
37311 ecode4 = SWIG_AsVal_int(obj3, &val4);
37312 if (!SWIG_IsOK(ecode4)) {
37313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37314 }
37315 arg4 = static_cast< int >(val4);
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 resultobj = SWIG_Py_Void();
37323 return resultobj;
37324fail:
37325 return NULL;
37326}
37327
37328
37329SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37330 PyObject *resultobj = 0;
37331 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37332 wxIcon *arg2 = 0 ;
37333 wxPoint *arg3 = 0 ;
37334 void *argp1 = 0 ;
37335 int res1 = 0 ;
37336 void *argp2 = 0 ;
37337 int res2 = 0 ;
37338 wxPoint temp3 ;
37339 PyObject * obj0 = 0 ;
37340 PyObject * obj1 = 0 ;
37341 PyObject * obj2 = 0 ;
37342 char * kwnames[] = {
37343 (char *) "self",(char *) "icon",(char *) "pt", NULL
37344 };
37345
37346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37348 if (!SWIG_IsOK(res1)) {
37349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37350 }
37351 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37353 if (!SWIG_IsOK(res2)) {
37354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37355 }
37356 if (!argp2) {
37357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37358 }
37359 arg2 = reinterpret_cast< wxIcon * >(argp2);
37360 {
37361 arg3 = &temp3;
37362 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37363 }
37364 {
37365 PyThreadState* __tstate = wxPyBeginAllowThreads();
37366 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37367 wxPyEndAllowThreads(__tstate);
37368 if (PyErr_Occurred()) SWIG_fail;
37369 }
37370 resultobj = SWIG_Py_Void();
37371 return resultobj;
37372fail:
37373 return NULL;
37374}
37375
37376
37377SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37378 PyObject *resultobj = 0;
37379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37380 wxBitmap *arg2 = 0 ;
37381 int arg3 ;
37382 int arg4 ;
37383 bool arg5 = (bool) false ;
37384 void *argp1 = 0 ;
37385 int res1 = 0 ;
37386 void *argp2 = 0 ;
37387 int res2 = 0 ;
37388 int val3 ;
37389 int ecode3 = 0 ;
37390 int val4 ;
37391 int ecode4 = 0 ;
37392 bool val5 ;
37393 int ecode5 = 0 ;
37394 PyObject * obj0 = 0 ;
37395 PyObject * obj1 = 0 ;
37396 PyObject * obj2 = 0 ;
37397 PyObject * obj3 = 0 ;
37398 PyObject * obj4 = 0 ;
37399 char * kwnames[] = {
37400 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37401 };
37402
37403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37405 if (!SWIG_IsOK(res1)) {
37406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37407 }
37408 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37410 if (!SWIG_IsOK(res2)) {
37411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37412 }
37413 if (!argp2) {
37414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37415 }
37416 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37417 ecode3 = SWIG_AsVal_int(obj2, &val3);
37418 if (!SWIG_IsOK(ecode3)) {
37419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37420 }
37421 arg3 = static_cast< int >(val3);
37422 ecode4 = SWIG_AsVal_int(obj3, &val4);
37423 if (!SWIG_IsOK(ecode4)) {
37424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37425 }
37426 arg4 = static_cast< int >(val4);
37427 if (obj4) {
37428 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37429 if (!SWIG_IsOK(ecode5)) {
37430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37431 }
37432 arg5 = static_cast< bool >(val5);
37433 }
37434 {
37435 PyThreadState* __tstate = wxPyBeginAllowThreads();
37436 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37437 wxPyEndAllowThreads(__tstate);
37438 if (PyErr_Occurred()) SWIG_fail;
37439 }
37440 resultobj = SWIG_Py_Void();
37441 return resultobj;
37442fail:
37443 return NULL;
37444}
37445
37446
37447SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37448 PyObject *resultobj = 0;
37449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37450 wxBitmap *arg2 = 0 ;
37451 wxPoint *arg3 = 0 ;
37452 bool arg4 = (bool) false ;
37453 void *argp1 = 0 ;
37454 int res1 = 0 ;
37455 void *argp2 = 0 ;
37456 int res2 = 0 ;
37457 wxPoint temp3 ;
37458 bool val4 ;
37459 int ecode4 = 0 ;
37460 PyObject * obj0 = 0 ;
37461 PyObject * obj1 = 0 ;
37462 PyObject * obj2 = 0 ;
37463 PyObject * obj3 = 0 ;
37464 char * kwnames[] = {
37465 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37466 };
37467
37468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37470 if (!SWIG_IsOK(res1)) {
37471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37472 }
37473 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37475 if (!SWIG_IsOK(res2)) {
37476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37477 }
37478 if (!argp2) {
37479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37480 }
37481 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37482 {
37483 arg3 = &temp3;
37484 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37485 }
37486 if (obj3) {
37487 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37488 if (!SWIG_IsOK(ecode4)) {
37489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37490 }
37491 arg4 = static_cast< bool >(val4);
37492 }
37493 {
37494 PyThreadState* __tstate = wxPyBeginAllowThreads();
37495 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37496 wxPyEndAllowThreads(__tstate);
37497 if (PyErr_Occurred()) SWIG_fail;
37498 }
37499 resultobj = SWIG_Py_Void();
37500 return resultobj;
37501fail:
37502 return NULL;
37503}
37504
37505
37506SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37507 PyObject *resultobj = 0;
37508 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37509 wxString *arg2 = 0 ;
37510 int arg3 ;
37511 int arg4 ;
37512 void *argp1 = 0 ;
37513 int res1 = 0 ;
37514 bool temp2 = false ;
37515 int val3 ;
37516 int ecode3 = 0 ;
37517 int val4 ;
37518 int ecode4 = 0 ;
37519 PyObject * obj0 = 0 ;
37520 PyObject * obj1 = 0 ;
37521 PyObject * obj2 = 0 ;
37522 PyObject * obj3 = 0 ;
37523 char * kwnames[] = {
37524 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37525 };
37526
37527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37529 if (!SWIG_IsOK(res1)) {
37530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37531 }
37532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37533 {
37534 arg2 = wxString_in_helper(obj1);
37535 if (arg2 == NULL) SWIG_fail;
37536 temp2 = true;
37537 }
37538 ecode3 = SWIG_AsVal_int(obj2, &val3);
37539 if (!SWIG_IsOK(ecode3)) {
37540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37541 }
37542 arg3 = static_cast< int >(val3);
37543 ecode4 = SWIG_AsVal_int(obj3, &val4);
37544 if (!SWIG_IsOK(ecode4)) {
37545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37546 }
37547 arg4 = static_cast< int >(val4);
37548 {
37549 PyThreadState* __tstate = wxPyBeginAllowThreads();
37550 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37551 wxPyEndAllowThreads(__tstate);
37552 if (PyErr_Occurred()) SWIG_fail;
37553 }
37554 resultobj = SWIG_Py_Void();
37555 {
37556 if (temp2)
37557 delete arg2;
37558 }
37559 return resultobj;
37560fail:
37561 {
37562 if (temp2)
37563 delete arg2;
37564 }
37565 return NULL;
37566}
37567
37568
37569SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37570 PyObject *resultobj = 0;
37571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37572 wxString *arg2 = 0 ;
37573 wxPoint *arg3 = 0 ;
37574 void *argp1 = 0 ;
37575 int res1 = 0 ;
37576 bool temp2 = false ;
37577 wxPoint temp3 ;
37578 PyObject * obj0 = 0 ;
37579 PyObject * obj1 = 0 ;
37580 PyObject * obj2 = 0 ;
37581 char * kwnames[] = {
37582 (char *) "self",(char *) "text",(char *) "pt", NULL
37583 };
37584
37585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37587 if (!SWIG_IsOK(res1)) {
37588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37589 }
37590 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37591 {
37592 arg2 = wxString_in_helper(obj1);
37593 if (arg2 == NULL) SWIG_fail;
37594 temp2 = true;
37595 }
37596 {
37597 arg3 = &temp3;
37598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37599 }
37600 {
37601 PyThreadState* __tstate = wxPyBeginAllowThreads();
37602 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37603 wxPyEndAllowThreads(__tstate);
37604 if (PyErr_Occurred()) SWIG_fail;
37605 }
37606 resultobj = SWIG_Py_Void();
37607 {
37608 if (temp2)
37609 delete arg2;
37610 }
37611 return resultobj;
37612fail:
37613 {
37614 if (temp2)
37615 delete arg2;
37616 }
37617 return NULL;
37618}
37619
37620
37621SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37622 PyObject *resultobj = 0;
37623 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37624 wxString *arg2 = 0 ;
37625 int arg3 ;
37626 int arg4 ;
37627 double arg5 ;
37628 void *argp1 = 0 ;
37629 int res1 = 0 ;
37630 bool temp2 = false ;
37631 int val3 ;
37632 int ecode3 = 0 ;
37633 int val4 ;
37634 int ecode4 = 0 ;
37635 double val5 ;
37636 int ecode5 = 0 ;
37637 PyObject * obj0 = 0 ;
37638 PyObject * obj1 = 0 ;
37639 PyObject * obj2 = 0 ;
37640 PyObject * obj3 = 0 ;
37641 PyObject * obj4 = 0 ;
37642 char * kwnames[] = {
37643 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37644 };
37645
37646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37648 if (!SWIG_IsOK(res1)) {
37649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37650 }
37651 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37652 {
37653 arg2 = wxString_in_helper(obj1);
37654 if (arg2 == NULL) SWIG_fail;
37655 temp2 = true;
37656 }
37657 ecode3 = SWIG_AsVal_int(obj2, &val3);
37658 if (!SWIG_IsOK(ecode3)) {
37659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37660 }
37661 arg3 = static_cast< int >(val3);
37662 ecode4 = SWIG_AsVal_int(obj3, &val4);
37663 if (!SWIG_IsOK(ecode4)) {
37664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37665 }
37666 arg4 = static_cast< int >(val4);
37667 ecode5 = SWIG_AsVal_double(obj4, &val5);
37668 if (!SWIG_IsOK(ecode5)) {
37669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37670 }
37671 arg5 = static_cast< double >(val5);
37672 {
37673 PyThreadState* __tstate = wxPyBeginAllowThreads();
37674 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37675 wxPyEndAllowThreads(__tstate);
37676 if (PyErr_Occurred()) SWIG_fail;
37677 }
37678 resultobj = SWIG_Py_Void();
37679 {
37680 if (temp2)
37681 delete arg2;
37682 }
37683 return resultobj;
37684fail:
37685 {
37686 if (temp2)
37687 delete arg2;
37688 }
37689 return NULL;
37690}
37691
37692
37693SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37694 PyObject *resultobj = 0;
37695 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37696 wxString *arg2 = 0 ;
37697 wxPoint *arg3 = 0 ;
37698 double arg4 ;
37699 void *argp1 = 0 ;
37700 int res1 = 0 ;
37701 bool temp2 = false ;
37702 wxPoint temp3 ;
37703 double val4 ;
37704 int ecode4 = 0 ;
37705 PyObject * obj0 = 0 ;
37706 PyObject * obj1 = 0 ;
37707 PyObject * obj2 = 0 ;
37708 PyObject * obj3 = 0 ;
37709 char * kwnames[] = {
37710 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37711 };
37712
37713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37715 if (!SWIG_IsOK(res1)) {
37716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37717 }
37718 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37719 {
37720 arg2 = wxString_in_helper(obj1);
37721 if (arg2 == NULL) SWIG_fail;
37722 temp2 = true;
37723 }
37724 {
37725 arg3 = &temp3;
37726 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37727 }
37728 ecode4 = SWIG_AsVal_double(obj3, &val4);
37729 if (!SWIG_IsOK(ecode4)) {
37730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37731 }
37732 arg4 = static_cast< double >(val4);
37733 {
37734 PyThreadState* __tstate = wxPyBeginAllowThreads();
37735 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37736 wxPyEndAllowThreads(__tstate);
37737 if (PyErr_Occurred()) SWIG_fail;
37738 }
37739 resultobj = SWIG_Py_Void();
37740 {
37741 if (temp2)
37742 delete arg2;
37743 }
37744 return resultobj;
37745fail:
37746 {
37747 if (temp2)
37748 delete arg2;
37749 }
37750 return NULL;
37751}
37752
37753
37754SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37755 PyObject *resultobj = 0;
37756 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37757 int arg2 ;
37758 wxPoint *arg3 = (wxPoint *) 0 ;
37759 int arg4 = (int) 0 ;
37760 int arg5 = (int) 0 ;
37761 void *argp1 = 0 ;
37762 int res1 = 0 ;
37763 int val4 ;
37764 int ecode4 = 0 ;
37765 int val5 ;
37766 int ecode5 = 0 ;
37767 PyObject * obj0 = 0 ;
37768 PyObject * obj1 = 0 ;
37769 PyObject * obj2 = 0 ;
37770 PyObject * obj3 = 0 ;
37771 char * kwnames[] = {
37772 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37773 };
37774
37775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37777 if (!SWIG_IsOK(res1)) {
37778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37779 }
37780 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37781 {
37782 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37783 if (arg3 == NULL) SWIG_fail;
37784 }
37785 if (obj2) {
37786 ecode4 = SWIG_AsVal_int(obj2, &val4);
37787 if (!SWIG_IsOK(ecode4)) {
37788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37789 }
37790 arg4 = static_cast< int >(val4);
37791 }
37792 if (obj3) {
37793 ecode5 = SWIG_AsVal_int(obj3, &val5);
37794 if (!SWIG_IsOK(ecode5)) {
37795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37796 }
37797 arg5 = static_cast< int >(val5);
37798 }
37799 {
37800 PyThreadState* __tstate = wxPyBeginAllowThreads();
37801 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37802 wxPyEndAllowThreads(__tstate);
37803 if (PyErr_Occurred()) SWIG_fail;
37804 }
37805 resultobj = SWIG_Py_Void();
37806 {
37807 if (arg3) delete [] arg3;
37808 }
37809 return resultobj;
37810fail:
37811 {
37812 if (arg3) delete [] arg3;
37813 }
37814 return NULL;
37815}
37816
37817
37818SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37819 PyObject *resultobj = 0;
37820 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37821 int arg2 ;
37822 wxPoint *arg3 = (wxPoint *) 0 ;
37823 int arg4 = (int) 0 ;
37824 int arg5 = (int) 0 ;
37825 int arg6 = (int) wxODDEVEN_RULE ;
37826 void *argp1 = 0 ;
37827 int res1 = 0 ;
37828 int val4 ;
37829 int ecode4 = 0 ;
37830 int val5 ;
37831 int ecode5 = 0 ;
37832 int val6 ;
37833 int ecode6 = 0 ;
37834 PyObject * obj0 = 0 ;
37835 PyObject * obj1 = 0 ;
37836 PyObject * obj2 = 0 ;
37837 PyObject * obj3 = 0 ;
37838 PyObject * obj4 = 0 ;
37839 char * kwnames[] = {
37840 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37841 };
37842
37843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37845 if (!SWIG_IsOK(res1)) {
37846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37847 }
37848 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37849 {
37850 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37851 if (arg3 == NULL) SWIG_fail;
37852 }
37853 if (obj2) {
37854 ecode4 = SWIG_AsVal_int(obj2, &val4);
37855 if (!SWIG_IsOK(ecode4)) {
37856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37857 }
37858 arg4 = static_cast< int >(val4);
37859 }
37860 if (obj3) {
37861 ecode5 = SWIG_AsVal_int(obj3, &val5);
37862 if (!SWIG_IsOK(ecode5)) {
37863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37864 }
37865 arg5 = static_cast< int >(val5);
37866 }
37867 if (obj4) {
37868 ecode6 = SWIG_AsVal_int(obj4, &val6);
37869 if (!SWIG_IsOK(ecode6)) {
37870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37871 }
37872 arg6 = static_cast< int >(val6);
37873 }
37874 {
37875 PyThreadState* __tstate = wxPyBeginAllowThreads();
37876 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37877 wxPyEndAllowThreads(__tstate);
37878 if (PyErr_Occurred()) SWIG_fail;
37879 }
37880 resultobj = SWIG_Py_Void();
37881 {
37882 if (arg3) delete [] arg3;
37883 }
37884 return resultobj;
37885fail:
37886 {
37887 if (arg3) delete [] arg3;
37888 }
37889 return NULL;
37890}
37891
37892
37893SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37894 PyObject *resultobj = 0;
37895 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37896 wxString *arg2 = 0 ;
37897 wxRect *arg3 = 0 ;
37898 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37899 int arg5 = (int) -1 ;
37900 void *argp1 = 0 ;
37901 int res1 = 0 ;
37902 bool temp2 = false ;
37903 wxRect temp3 ;
37904 int val4 ;
37905 int ecode4 = 0 ;
37906 int val5 ;
37907 int ecode5 = 0 ;
37908 PyObject * obj0 = 0 ;
37909 PyObject * obj1 = 0 ;
37910 PyObject * obj2 = 0 ;
37911 PyObject * obj3 = 0 ;
37912 PyObject * obj4 = 0 ;
37913 char * kwnames[] = {
37914 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37915 };
37916
37917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37919 if (!SWIG_IsOK(res1)) {
37920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37921 }
37922 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37923 {
37924 arg2 = wxString_in_helper(obj1);
37925 if (arg2 == NULL) SWIG_fail;
37926 temp2 = true;
37927 }
37928 {
37929 arg3 = &temp3;
37930 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37931 }
37932 if (obj3) {
37933 ecode4 = SWIG_AsVal_int(obj3, &val4);
37934 if (!SWIG_IsOK(ecode4)) {
37935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37936 }
37937 arg4 = static_cast< int >(val4);
37938 }
37939 if (obj4) {
37940 ecode5 = SWIG_AsVal_int(obj4, &val5);
37941 if (!SWIG_IsOK(ecode5)) {
37942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37943 }
37944 arg5 = static_cast< int >(val5);
37945 }
37946 {
37947 PyThreadState* __tstate = wxPyBeginAllowThreads();
37948 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37949 wxPyEndAllowThreads(__tstate);
37950 if (PyErr_Occurred()) SWIG_fail;
37951 }
37952 resultobj = SWIG_Py_Void();
37953 {
37954 if (temp2)
37955 delete arg2;
37956 }
37957 return resultobj;
37958fail:
37959 {
37960 if (temp2)
37961 delete arg2;
37962 }
37963 return NULL;
37964}
37965
37966
37967SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37968 PyObject *resultobj = 0;
37969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37970 wxString *arg2 = 0 ;
37971 wxBitmap *arg3 = 0 ;
37972 wxRect *arg4 = 0 ;
37973 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37974 int arg6 = (int) -1 ;
37975 void *argp1 = 0 ;
37976 int res1 = 0 ;
37977 bool temp2 = false ;
37978 void *argp3 = 0 ;
37979 int res3 = 0 ;
37980 wxRect temp4 ;
37981 int val5 ;
37982 int ecode5 = 0 ;
37983 int val6 ;
37984 int ecode6 = 0 ;
37985 PyObject * obj0 = 0 ;
37986 PyObject * obj1 = 0 ;
37987 PyObject * obj2 = 0 ;
37988 PyObject * obj3 = 0 ;
37989 PyObject * obj4 = 0 ;
37990 PyObject * obj5 = 0 ;
37991 char * kwnames[] = {
37992 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37993 };
37994
37995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37997 if (!SWIG_IsOK(res1)) {
37998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37999 }
38000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38001 {
38002 arg2 = wxString_in_helper(obj1);
38003 if (arg2 == NULL) SWIG_fail;
38004 temp2 = true;
38005 }
38006 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38007 if (!SWIG_IsOK(res3)) {
38008 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38009 }
38010 if (!argp3) {
38011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38012 }
38013 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38014 {
38015 arg4 = &temp4;
38016 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38017 }
38018 if (obj4) {
38019 ecode5 = SWIG_AsVal_int(obj4, &val5);
38020 if (!SWIG_IsOK(ecode5)) {
38021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38022 }
38023 arg5 = static_cast< int >(val5);
38024 }
38025 if (obj5) {
38026 ecode6 = SWIG_AsVal_int(obj5, &val6);
38027 if (!SWIG_IsOK(ecode6)) {
38028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38029 }
38030 arg6 = static_cast< int >(val6);
38031 }
38032 {
38033 PyThreadState* __tstate = wxPyBeginAllowThreads();
38034 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38035 wxPyEndAllowThreads(__tstate);
38036 if (PyErr_Occurred()) SWIG_fail;
38037 }
38038 resultobj = SWIG_Py_Void();
38039 {
38040 if (temp2)
38041 delete arg2;
38042 }
38043 return resultobj;
38044fail:
38045 {
38046 if (temp2)
38047 delete arg2;
38048 }
38049 return NULL;
38050}
38051
38052
38053SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38054 PyObject *resultobj = 0;
38055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38056 int arg2 ;
38057 wxPoint *arg3 = (wxPoint *) 0 ;
38058 void *argp1 = 0 ;
38059 int res1 = 0 ;
38060 PyObject * obj0 = 0 ;
38061 PyObject * obj1 = 0 ;
38062 char * kwnames[] = {
38063 (char *) "self",(char *) "points", NULL
38064 };
38065
38066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38068 if (!SWIG_IsOK(res1)) {
38069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38070 }
38071 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38072 {
38073 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38074 if (arg3 == NULL) SWIG_fail;
38075 }
38076 {
38077 PyThreadState* __tstate = wxPyBeginAllowThreads();
38078 (arg1)->DrawSpline(arg2,arg3);
38079 wxPyEndAllowThreads(__tstate);
38080 if (PyErr_Occurred()) SWIG_fail;
38081 }
38082 resultobj = SWIG_Py_Void();
38083 {
38084 if (arg3) delete [] arg3;
38085 }
38086 return resultobj;
38087fail:
38088 {
38089 if (arg3) delete [] arg3;
38090 }
38091 return NULL;
38092}
38093
38094
38095SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38096 PyObject *resultobj = 0;
38097 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38098 void *argp1 = 0 ;
38099 int res1 = 0 ;
38100 PyObject *swig_obj[1] ;
38101
38102 if (!args) SWIG_fail;
38103 swig_obj[0] = args;
38104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38105 if (!SWIG_IsOK(res1)) {
38106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38107 }
38108 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38109 {
38110 PyThreadState* __tstate = wxPyBeginAllowThreads();
38111 (arg1)->Clear();
38112 wxPyEndAllowThreads(__tstate);
38113 if (PyErr_Occurred()) SWIG_fail;
38114 }
38115 resultobj = SWIG_Py_Void();
38116 return resultobj;
38117fail:
38118 return NULL;
38119}
38120
38121
38122SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38123 PyObject *resultobj = 0;
38124 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38125 wxFont *arg2 = 0 ;
38126 void *argp1 = 0 ;
38127 int res1 = 0 ;
38128 void *argp2 = 0 ;
38129 int res2 = 0 ;
38130 PyObject * obj0 = 0 ;
38131 PyObject * obj1 = 0 ;
38132 char * kwnames[] = {
38133 (char *) "self",(char *) "font", NULL
38134 };
38135
38136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38138 if (!SWIG_IsOK(res1)) {
38139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38140 }
38141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38142 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38143 if (!SWIG_IsOK(res2)) {
38144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38145 }
38146 if (!argp2) {
38147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38148 }
38149 arg2 = reinterpret_cast< wxFont * >(argp2);
38150 {
38151 PyThreadState* __tstate = wxPyBeginAllowThreads();
38152 (arg1)->SetFont((wxFont const &)*arg2);
38153 wxPyEndAllowThreads(__tstate);
38154 if (PyErr_Occurred()) SWIG_fail;
38155 }
38156 resultobj = SWIG_Py_Void();
38157 return resultobj;
38158fail:
38159 return NULL;
38160}
38161
38162
38163SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38164 PyObject *resultobj = 0;
38165 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38166 wxPen *arg2 = 0 ;
38167 void *argp1 = 0 ;
38168 int res1 = 0 ;
38169 void *argp2 = 0 ;
38170 int res2 = 0 ;
38171 PyObject * obj0 = 0 ;
38172 PyObject * obj1 = 0 ;
38173 char * kwnames[] = {
38174 (char *) "self",(char *) "pen", NULL
38175 };
38176
38177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38179 if (!SWIG_IsOK(res1)) {
38180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38181 }
38182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38183 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38184 if (!SWIG_IsOK(res2)) {
38185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38186 }
38187 if (!argp2) {
38188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38189 }
38190 arg2 = reinterpret_cast< wxPen * >(argp2);
38191 {
38192 PyThreadState* __tstate = wxPyBeginAllowThreads();
38193 (arg1)->SetPen((wxPen const &)*arg2);
38194 wxPyEndAllowThreads(__tstate);
38195 if (PyErr_Occurred()) SWIG_fail;
38196 }
38197 resultobj = SWIG_Py_Void();
38198 return resultobj;
38199fail:
38200 return NULL;
38201}
38202
38203
38204SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38205 PyObject *resultobj = 0;
38206 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38207 wxBrush *arg2 = 0 ;
38208 void *argp1 = 0 ;
38209 int res1 = 0 ;
38210 void *argp2 = 0 ;
38211 int res2 = 0 ;
38212 PyObject * obj0 = 0 ;
38213 PyObject * obj1 = 0 ;
38214 char * kwnames[] = {
38215 (char *) "self",(char *) "brush", NULL
38216 };
38217
38218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38220 if (!SWIG_IsOK(res1)) {
38221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38222 }
38223 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38225 if (!SWIG_IsOK(res2)) {
38226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38227 }
38228 if (!argp2) {
38229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38230 }
38231 arg2 = reinterpret_cast< wxBrush * >(argp2);
38232 {
38233 PyThreadState* __tstate = wxPyBeginAllowThreads();
38234 (arg1)->SetBrush((wxBrush const &)*arg2);
38235 wxPyEndAllowThreads(__tstate);
38236 if (PyErr_Occurred()) SWIG_fail;
38237 }
38238 resultobj = SWIG_Py_Void();
38239 return resultobj;
38240fail:
38241 return NULL;
38242}
38243
38244
38245SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38246 PyObject *resultobj = 0;
38247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38248 wxBrush *arg2 = 0 ;
38249 void *argp1 = 0 ;
38250 int res1 = 0 ;
38251 void *argp2 = 0 ;
38252 int res2 = 0 ;
38253 PyObject * obj0 = 0 ;
38254 PyObject * obj1 = 0 ;
38255 char * kwnames[] = {
38256 (char *) "self",(char *) "brush", NULL
38257 };
38258
38259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38261 if (!SWIG_IsOK(res1)) {
38262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38263 }
38264 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38266 if (!SWIG_IsOK(res2)) {
38267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38268 }
38269 if (!argp2) {
38270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38271 }
38272 arg2 = reinterpret_cast< wxBrush * >(argp2);
38273 {
38274 PyThreadState* __tstate = wxPyBeginAllowThreads();
38275 (arg1)->SetBackground((wxBrush const &)*arg2);
38276 wxPyEndAllowThreads(__tstate);
38277 if (PyErr_Occurred()) SWIG_fail;
38278 }
38279 resultobj = SWIG_Py_Void();
38280 return resultobj;
38281fail:
38282 return NULL;
38283}
38284
38285
38286SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38287 PyObject *resultobj = 0;
38288 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38289 int arg2 ;
38290 void *argp1 = 0 ;
38291 int res1 = 0 ;
38292 int val2 ;
38293 int ecode2 = 0 ;
38294 PyObject * obj0 = 0 ;
38295 PyObject * obj1 = 0 ;
38296 char * kwnames[] = {
38297 (char *) "self",(char *) "mode", NULL
38298 };
38299
38300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38302 if (!SWIG_IsOK(res1)) {
38303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38304 }
38305 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38306 ecode2 = SWIG_AsVal_int(obj1, &val2);
38307 if (!SWIG_IsOK(ecode2)) {
38308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38309 }
38310 arg2 = static_cast< int >(val2);
38311 {
38312 PyThreadState* __tstate = wxPyBeginAllowThreads();
38313 (arg1)->SetBackgroundMode(arg2);
38314 wxPyEndAllowThreads(__tstate);
38315 if (PyErr_Occurred()) SWIG_fail;
38316 }
38317 resultobj = SWIG_Py_Void();
38318 return resultobj;
38319fail:
38320 return NULL;
38321}
38322
38323
38324SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38325 PyObject *resultobj = 0;
38326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38327 wxPalette *arg2 = 0 ;
38328 void *argp1 = 0 ;
38329 int res1 = 0 ;
38330 void *argp2 = 0 ;
38331 int res2 = 0 ;
38332 PyObject * obj0 = 0 ;
38333 PyObject * obj1 = 0 ;
38334 char * kwnames[] = {
38335 (char *) "self",(char *) "palette", NULL
38336 };
38337
38338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38340 if (!SWIG_IsOK(res1)) {
38341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38342 }
38343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38345 if (!SWIG_IsOK(res2)) {
38346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38347 }
38348 if (!argp2) {
38349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38350 }
38351 arg2 = reinterpret_cast< wxPalette * >(argp2);
38352 {
38353 PyThreadState* __tstate = wxPyBeginAllowThreads();
38354 (arg1)->SetPalette((wxPalette const &)*arg2);
38355 wxPyEndAllowThreads(__tstate);
38356 if (PyErr_Occurred()) SWIG_fail;
38357 }
38358 resultobj = SWIG_Py_Void();
38359 return resultobj;
38360fail:
38361 return NULL;
38362}
38363
38364
38365SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38366 PyObject *resultobj = 0;
38367 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38368 wxColour *arg2 = 0 ;
38369 void *argp1 = 0 ;
38370 int res1 = 0 ;
38371 wxColour temp2 ;
38372 PyObject * obj0 = 0 ;
38373 PyObject * obj1 = 0 ;
38374 char * kwnames[] = {
38375 (char *) "self",(char *) "colour", NULL
38376 };
38377
38378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38380 if (!SWIG_IsOK(res1)) {
38381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38382 }
38383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38384 {
38385 arg2 = &temp2;
38386 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38387 }
38388 {
38389 PyThreadState* __tstate = wxPyBeginAllowThreads();
38390 (arg1)->SetTextForeground((wxColour const &)*arg2);
38391 wxPyEndAllowThreads(__tstate);
38392 if (PyErr_Occurred()) SWIG_fail;
38393 }
38394 resultobj = SWIG_Py_Void();
38395 return resultobj;
38396fail:
38397 return NULL;
38398}
38399
38400
38401SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38402 PyObject *resultobj = 0;
38403 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38404 wxColour *arg2 = 0 ;
38405 void *argp1 = 0 ;
38406 int res1 = 0 ;
38407 wxColour temp2 ;
38408 PyObject * obj0 = 0 ;
38409 PyObject * obj1 = 0 ;
38410 char * kwnames[] = {
38411 (char *) "self",(char *) "colour", NULL
38412 };
38413
38414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38416 if (!SWIG_IsOK(res1)) {
38417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38418 }
38419 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38420 {
38421 arg2 = &temp2;
38422 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38423 }
38424 {
38425 PyThreadState* __tstate = wxPyBeginAllowThreads();
38426 (arg1)->SetTextBackground((wxColour const &)*arg2);
38427 wxPyEndAllowThreads(__tstate);
38428 if (PyErr_Occurred()) SWIG_fail;
38429 }
38430 resultobj = SWIG_Py_Void();
38431 return resultobj;
38432fail:
38433 return NULL;
38434}
38435
38436
38437SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38438 PyObject *resultobj = 0;
38439 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38440 int arg2 ;
38441 void *argp1 = 0 ;
38442 int res1 = 0 ;
38443 int val2 ;
38444 int ecode2 = 0 ;
38445 PyObject * obj0 = 0 ;
38446 PyObject * obj1 = 0 ;
38447 char * kwnames[] = {
38448 (char *) "self",(char *) "function", NULL
38449 };
38450
38451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38453 if (!SWIG_IsOK(res1)) {
38454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38455 }
38456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38457 ecode2 = SWIG_AsVal_int(obj1, &val2);
38458 if (!SWIG_IsOK(ecode2)) {
38459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38460 }
38461 arg2 = static_cast< int >(val2);
38462 {
38463 PyThreadState* __tstate = wxPyBeginAllowThreads();
38464 (arg1)->SetLogicalFunction(arg2);
38465 wxPyEndAllowThreads(__tstate);
38466 if (PyErr_Occurred()) SWIG_fail;
38467 }
38468 resultobj = SWIG_Py_Void();
38469 return resultobj;
38470fail:
38471 return NULL;
38472}
38473
38474
38475SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38476 PyObject *obj;
38477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38478 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38479 return SWIG_Py_Void();
38480}
38481
38482SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38483 return SWIG_Python_InitShadowInstance(args);
38484}
38485
38486static PyMethodDef SwigMethods[] = {
38487 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38488 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38489 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38490 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38491 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38492 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38496 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38497 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38498 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38499 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38500 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38501 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38506 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38508 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38509 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38510 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38511 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38512 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38514 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38517 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38518 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38519 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38520 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38522 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38523 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38524 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38525 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38526 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38527 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38528 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38535 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38539 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38540 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38543 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38547 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38548 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38549 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38550 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38551 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38552 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38554 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38555 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38557 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38562 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38563 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38564 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38565 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38566 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38567 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38568 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38569 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38575 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38580 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38582 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38585 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38586 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38590 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38591 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38592 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38593 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38594 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38595 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38596 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38597 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38598 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38599 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38600 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38601 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38602 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38603 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38604 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38605 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38606 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38607 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38613 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38614 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38615 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38616 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38617 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38618 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38619 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38620 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38621 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38622 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38623 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38624 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38626 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38627 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38633 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38634 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38635 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38637 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38638 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38639 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38641 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38642 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38645 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38646 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38647 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38648 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38649 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38654 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38655 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38656 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38657 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38658 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38660 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38662 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38663 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38664 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38665 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38668 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38672 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38673 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38675 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38677 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38678 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38679 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38680 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38685 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38686 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38692 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38696 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38697 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38707 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38710 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38711 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38713 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38714 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38715 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38716 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38717 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38718 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38719 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38720 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38721 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38722 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38723 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38724 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38725 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38726 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38727 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38728 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38729 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38731 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38732 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38733 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38734 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38735 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38736 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38737 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38746 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38747 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38749 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38750 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38751 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38752 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38753 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38754 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38755 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38756 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38757 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38759 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38760 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38761 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38764 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38765 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38766 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38769 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38775 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38780 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38781 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38783 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38788 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38789 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38790 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38792 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38793 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38794 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38795 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38796 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38797 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38798 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38799 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38800 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38801 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38802 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38803 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38804 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38816 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38817 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38818 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38820 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38821 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38823 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38824 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38825 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38826 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38829 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38830 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38831 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38832 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38833 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38834 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38835 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38836 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38837 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38838 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38839 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38840 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38841 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38843 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38846 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38847 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38848 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38849 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38850 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38851 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38852 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38853 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38855 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38856 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38863 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38864 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38865 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38867 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38871 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38872 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38873 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38874 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38875 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38876 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38882 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38883 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38884 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38923 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38924 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38934 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38936 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38937 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38938 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38945 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38946 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38947 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38948 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38949 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38954 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38955 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38956 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38957 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38966 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38967 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38968 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38969 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38970 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38971 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38972 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38973 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38974 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38975 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38976 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38977 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38980 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38982 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38984 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38986 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38987 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38990 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38991 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38995 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38997 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39000 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39001 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39002 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39003 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39004 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39005 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39006 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39007 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39014 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39016 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39017 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39018 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39020 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39021 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39022 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39024 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39025 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39026 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39027 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39028 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39029 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39030 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39031 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39034 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39035 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39036 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39038 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39039 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39041 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39042 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39044 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39045 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39050 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39051 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39052 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39053 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39054 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39056 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39057 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39058 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39060 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39061 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39063 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39064 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39065 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39067 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39068 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39070 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39073 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39074 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39075 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39077 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39078 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39080 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39081 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39082 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39083 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39084 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39086 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39087 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39088 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39090 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39091 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39093 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39094 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39095 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39096 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39097 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39098 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39099 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39100 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39101 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39102 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39103 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39104 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39105 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39106 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39107 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39108 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39109 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39110 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39111 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39112 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39114 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39116 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39122 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39123 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39124 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39125 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39126 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39127 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39128 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39129 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39130 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39131 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39132 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39133 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39137 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39140 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39143 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39144 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39145 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39146 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39147 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39148 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39149 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39150 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39151 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39152 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39158 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39159 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39160 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39161 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39162 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39163 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
39164 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39167 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39170 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39171 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39172 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39173 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39176 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39178 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39179 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39184 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39185 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39186 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39190 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39191 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39192 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39193 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39194 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39195 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39196 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39199 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39206 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39207 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39208 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39209 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39210 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39211 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39212 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39213 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39214 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39215 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39216 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39217 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39218 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39219 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39220 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39221 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39222 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39224 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39232 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39234 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39236 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39237 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39238 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39239 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39240 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39241 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39247 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39248 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39249 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39250 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39251 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39252 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39253 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39254 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39255 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39256 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39257 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39258 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39259 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39260 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39264 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39265 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39266 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39271 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39272 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39273 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39274 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39275 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39276 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39277 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39278 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39279 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39280 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39281 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39282 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39291 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39292 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39294 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39295 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39296 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39297 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39298 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39299 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39300 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39301 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39302 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39303 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39304 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39305 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39306 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39307 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39308 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39309 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39310 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39311 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39312 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39313 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39314 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39315 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39316 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39317 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39319 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39321 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39322 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39323 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39324 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39325 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39327 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39332 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39335 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39337 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39338 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39339 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39341 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39342 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39343 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39344 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39345 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39346 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39347 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39348 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39352 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39356 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39391 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39401 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39407 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39411 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39412 { NULL, NULL, 0, NULL }
39413};
39414
39415
39416/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39417
72ef6efb
RD
39418static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39419 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39420}
8e99bda9
RD
39421static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39422 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39423}
39424static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39425 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39426}
26c4d26f
RD
39427static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39428 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39429}
39430static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39431 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39432}
72ef6efb
RD
39433static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39434 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39435}
39436static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39437 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39438}
26c4d26f
RD
39439static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39440 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39441}
fc46b7f3
RD
39442static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39443 return (void *)((wxLocale *) ((wxPyLocale *) x));
39444}
70d7cb34
RD
39445static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39446 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39447}
39448static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39449 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39450}
39451static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39452 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39453}
39454static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39455 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39456}
39457static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39458 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39459}
39460static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39461 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39462}
1bd55598
RD
39463static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39464 return (void *)((wxGDIObject *) ((wxIcon *) x));
39465}
39466static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39467 return (void *)((wxGDIObject *) ((wxPalette *) x));
39468}
39469static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39470 return (void *)((wxGDIObject *) ((wxPen *) x));
39471}
39472static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39473 return (void *)((wxGDIObject *) ((wxFont *) x));
39474}
39475static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39476 return (void *)((wxGDIObject *) ((wxCursor *) x));
39477}
39478static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39479 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39480}
39481static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39482 return (void *)((wxGDIObject *) ((wxRegion *) x));
39483}
39484static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39485 return (void *)((wxGDIObject *) ((wxBrush *) x));
39486}
72ef6efb
RD
39487static void *_p_wxGCDCTo_p_wxDC(void *x) {
39488 return (void *)((wxDC *) ((wxGCDC *) x));
39489}
1bd55598
RD
39490static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39491 return (void *)((wxDC *) ((wxScreenDC *) x));
39492}
24f6c4e8 39493static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39494 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39495}
1bd55598
RD
39496static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39497 return (void *)((wxDC *) ((wxMirrorDC *) x));
39498}
1bd55598
RD
39499static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39500 return (void *)((wxDC *) ((wxWindowDC *) x));
39501}
26c4d26f
RD
39502static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39503 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39504}
1bd55598
RD
39505static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39506 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39507}
1bd55598 39508static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39509 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39510}
39511static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39512 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39513}
24f6c4e8 39514static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39515 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39516}
39517static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39518 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39519}
1bd55598
RD
39520static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39521 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39522}
39523static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39524 return (void *)((wxDC *) ((wxPrinterDC *) x));
39525}
da91cb0f
RD
39526static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39527 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39528}
39529static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39530 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39531}
39532static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39533 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39534}
1bd55598
RD
39535static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39536 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39537}
39538static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39539 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39540}
39541static void *_p_wxPenTo_p_wxObject(void *x) {
39542 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39543}
39544static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39545 return (void *)((wxObject *) ((wxRegionIterator *) x));
39546}
1bd55598
RD
39547static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39548 return (void *)((wxObject *) ((wxSizerItem *) x));
39549}
34e0a3bb
RD
39550static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39551 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39552}
1bd55598
RD
39553static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39555}
39556static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39557 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39558}
39559static void *_p_wxIconTo_p_wxObject(void *x) {
39560 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39561}
39562static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39563 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39564}
39565static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39566 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39567}
39568static void *_p_wxSizerTo_p_wxObject(void *x) {
39569 return (void *)((wxObject *) ((wxSizer *) x));
39570}
39571static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39572 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39573}
39574static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39575 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39576}
1bd55598
RD
39577static void *_p_wxEventTo_p_wxObject(void *x) {
39578 return (void *)((wxObject *) ((wxEvent *) x));
39579}
39580static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39581 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39582}
39583static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39584 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39585}
39586static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39587 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39588}
27e45892
RD
39589static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39590 return (void *)((wxObject *) ((wxPseudoDC *) x));
39591}
2131d850
RD
39592static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39593 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39594}
1bd55598
RD
39595static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39596 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39597}
39598static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39599 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39600}
39601static void *_p_wxDCTo_p_wxObject(void *x) {
39602 return (void *)((wxObject *) ((wxDC *) x));
39603}
39604static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39605 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39606}
39607static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39608 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39609}
39610static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39611 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39612}
39613static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39614 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39615}
39616static void *_p_wxControlTo_p_wxObject(void *x) {
39617 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39618}
70d7cb34
RD
39619static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39620 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39621}
1bd55598
RD
39622static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39623 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39624}
39625static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39626 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39627}
39628static void *_p_wxFSFileTo_p_wxObject(void *x) {
39629 return (void *)((wxObject *) ((wxFSFile *) x));
39630}
39631static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39632 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39633}
39634static void *_p_wxRegionTo_p_wxObject(void *x) {
39635 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39636}
39637static void *_p_wxPySizerTo_p_wxObject(void *x) {
39638 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39639}
39640static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39641 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39642}
39643static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39644 return (void *)((wxObject *) ((wxGDIObject *) x));
39645}
70d7cb34
RD
39646static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39647 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39648}
39649static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39650 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39651}
1bd55598
RD
39652static void *_p_wxEffectsTo_p_wxObject(void *x) {
39653 return (void *)((wxObject *) ((wxEffects *) x));
39654}
39655static void *_p_wxPyEventTo_p_wxObject(void *x) {
39656 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39657}
39658static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39659 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39660}
39661static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39662 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39663}
70d7cb34
RD
39664static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39665 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39666}
1bd55598
RD
39667static void *_p_wxShowEventTo_p_wxObject(void *x) {
39668 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39669}
39670static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39671 return (void *)((wxObject *) ((wxMenuItem *) x));
39672}
39673static void *_p_wxDateEventTo_p_wxObject(void *x) {
39674 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39675}
39676static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39677 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39678}
39679static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39680 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39681}
39682static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39683 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39684}
39685static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39686 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39687}
39688static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39689 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39690}
39691static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39692 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39693}
39694static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39695 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39696}
39697static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39698 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39699}
39700static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39701 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39702}
39703static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39704 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39705}
39706static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39707 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39708}
39709static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39710 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39711}
39712static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39713 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39714}
39715static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39716 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39717}
39718static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39719 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39720}
39721static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39722 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39723}
39724static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39725 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39726}
39727static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39728 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39729}
39730static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39731 return (void *)((wxObject *) ((wxImageHandler *) x));
39732}
39733static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39734 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39735}
39736static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39737 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39738}
580080c5
RD
39739static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39740 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39741}
1bd55598
RD
39742static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39743 return (void *)((wxObject *) ((wxEvtHandler *) x));
39744}
34e0a3bb
RD
39745static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39746 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39747}
24f6c4e8
RD
39748static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39749 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39750}
1bd55598 39751static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39752 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39753}
24f6c4e8
RD
39754static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39755 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39756}
39757static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39758 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39759}
39760static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39761 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39762}
1bd55598
RD
39763static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39764 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39765}
580080c5
RD
39766static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39767 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39768}
1bd55598
RD
39769static void *_p_wxImageTo_p_wxObject(void *x) {
39770 return (void *)((wxObject *) ((wxImage *) x));
39771}
39772static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39773 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39774}
70d7cb34
RD
39775static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39776 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39777}
39778static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39779 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39780}
1bd55598
RD
39781static void *_p_wxPaletteTo_p_wxObject(void *x) {
39782 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39783}
39784static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39785 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39786}
39787static void *_p_wxImageListTo_p_wxObject(void *x) {
39788 return (void *)((wxObject *) ((wxImageList *) x));
39789}
72ef6efb
RD
39790static void *_p_wxGCDCTo_p_wxObject(void *x) {
39791 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39792}
1bd55598
RD
39793static void *_p_wxCursorTo_p_wxObject(void *x) {
39794 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39795}
39796static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39797 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39798}
39799static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39800 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39801}
70d7cb34
RD
39802static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39803 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39804}
1bd55598
RD
39805static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39806 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39807}
39808static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39809 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39810}
39811static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39812 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39813}
39814static void *_p_wxWindowTo_p_wxObject(void *x) {
39815 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39816}
39817static void *_p_wxMenuTo_p_wxObject(void *x) {
39818 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39819}
39820static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39821 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39822}
39823static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39824 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39825}
1bd55598
RD
39826static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39827 return (void *)((wxObject *) ((wxFileSystem *) x));
39828}
39829static void *_p_wxBitmapTo_p_wxObject(void *x) {
39830 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39831}
39832static void *_p_wxMaskTo_p_wxObject(void *x) {
39833 return (void *)((wxObject *) ((wxMask *) x));
39834}
70d7cb34
RD
39835static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39836 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39837}
1bd55598
RD
39838static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39839 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39840}
39841static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39842 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39843}
39844static void *_p_wxPyAppTo_p_wxObject(void *x) {
39845 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39846}
39847static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39848 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39849}
39850static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39851 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39852}
39853static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39854 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39855}
39856static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39857 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39858}
39859static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39860 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39861}
39862static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39863 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39864}
39865static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39866 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39867}
39868static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39869 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39870}
39871static void *_p_wxFontTo_p_wxObject(void *x) {
39872 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39873}
39874static void *_p_wxBrushTo_p_wxObject(void *x) {
39875 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39876}
39877static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39878 return (void *)((wxObject *) ((wxMetaFile *) x));
39879}
39880static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39881 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39882}
39883static void *_p_wxColourTo_p_wxObject(void *x) {
39884 return (void *)((wxObject *) ((wxColour *) x));
39885}
1bd55598
RD
39886static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39887 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39888}
39889static void *_p_wxValidatorTo_p_wxObject(void *x) {
39890 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39891}
39892static void *_p_wxControlTo_p_wxWindow(void *x) {
39893 return (void *)((wxWindow *) ((wxControl *) x));
39894}
39895static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39896 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39897}
39898static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39899 return (void *)((wxWindow *) ((wxMenuBar *) x));
39900}
fc46b7f3
RD
39901static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39902 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39903}
39904static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39905 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39906}
39907static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39908static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39909static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39910static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39911static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39912static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39913static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39914static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39915static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39916static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39917static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39918static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39919static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39920static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39921static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39922static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39923static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39924static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39925static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39926static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39927static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39928static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39929static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39930static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39931static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39932static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39933static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39934static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39935static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39936static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39937static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39938static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39939static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39940static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39941static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39942static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39943static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39944static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39945static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39946static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39947static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39948static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39949static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39950static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39951static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39952static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39953static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39954static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39955static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39956static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39957static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39958static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39959static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39960static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39961static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39962static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39963static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39964static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39965static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39966static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39967static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39968static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39969static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39970static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39971static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39972static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39973static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39974static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39975static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39976static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39977static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39978static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39979static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39980static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39981static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39982static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39983static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39984static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39985static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39986static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39987static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39988static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39989static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39990static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39991static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39992static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39993static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39994static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39995static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39996static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39997static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39998static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39999static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40000static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40001static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40002static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40003static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40004static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40005static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40006static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40007static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40008static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40009static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40010static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 40011static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40012static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40013static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40014static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40015static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40016static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40017static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40018static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40019static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40020static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40021static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40022static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40023static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40024static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40025static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40026static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40027static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40028static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40029static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40030static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40031static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40032static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40033static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40034static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40035static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40036static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40037static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40038static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40039static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40040static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40041static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40042static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40043static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40044static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40045static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40046static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40047static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40048static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40049static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40050static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40051static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40052static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40053static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40054static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40055static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40056static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40057static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 40058static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40059static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40060static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40061static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40062static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40063static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40064static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40065static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 40066static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40067static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40068static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40069static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40070static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40071static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40072static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40073static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40074static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40075static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40076static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40077static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40078
40079static swig_type_info *swig_type_initial[] = {
fc46b7f3 40080 &_swigt__p_buffer,
1bd55598
RD
40081 &_swigt__p_char,
40082 &_swigt__p_double,
40083 &_swigt__p_form_ops_t,
40084 &_swigt__p_int,
40085 &_swigt__p_unsigned_char,
40086 &_swigt__p_unsigned_int,
40087 &_swigt__p_unsigned_long,
0a27f394 40088 &_swigt__p_void,
1bd55598
RD
40089 &_swigt__p_wxANIHandler,
40090 &_swigt__p_wxAcceleratorTable,
40091 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40092 &_swigt__p_wxAlphaPixelData,
40093 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40094 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40095 &_swigt__p_wxBMPHandler,
40096 &_swigt__p_wxBitmap,
40097 &_swigt__p_wxBoxSizer,
40098 &_swigt__p_wxBrush,
40099 &_swigt__p_wxBrushList,
40100 &_swigt__p_wxBufferedDC,
40101 &_swigt__p_wxBufferedPaintDC,
40102 &_swigt__p_wxCURHandler,
fc46b7f3 40103 &_swigt__p_wxChar,
1bd55598
RD
40104 &_swigt__p_wxChildFocusEvent,
40105 &_swigt__p_wxClientDC,
2131d850 40106 &_swigt__p_wxClipboardTextEvent,
1bd55598 40107 &_swigt__p_wxCloseEvent,
72ef6efb 40108 &_swigt__p_wxColor,
1bd55598
RD
40109 &_swigt__p_wxColour,
40110 &_swigt__p_wxColourDatabase,
40111 &_swigt__p_wxCommandEvent,
40112 &_swigt__p_wxContextMenuEvent,
40113 &_swigt__p_wxControl,
40114 &_swigt__p_wxControlWithItems,
40115 &_swigt__p_wxCursor,
40116 &_swigt__p_wxDC,
70d7cb34
RD
40117 &_swigt__p_wxDCBrushChanger,
40118 &_swigt__p_wxDCClipper,
b39fe951 40119 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40120 &_swigt__p_wxDCPenChanger,
40121 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40122 &_swigt__p_wxDash,
40123 &_swigt__p_wxDateEvent,
40124 &_swigt__p_wxDisplayChangedEvent,
40125 &_swigt__p_wxDropFilesEvent,
40126 &_swigt__p_wxDuplexMode,
40127 &_swigt__p_wxEffects,
40128 &_swigt__p_wxEncodingConverter,
40129 &_swigt__p_wxEraseEvent,
40130 &_swigt__p_wxEvent,
40131 &_swigt__p_wxEvtHandler,
40132 &_swigt__p_wxFSFile,
40133 &_swigt__p_wxFileSystem,
40134 &_swigt__p_wxFlexGridSizer,
40135 &_swigt__p_wxFocusEvent,
40136 &_swigt__p_wxFont,
40137 &_swigt__p_wxFontList,
40138 &_swigt__p_wxFontMapper,
40139 &_swigt__p_wxGBSizerItem,
72ef6efb 40140 &_swigt__p_wxGCDC,
da91cb0f 40141 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40142 &_swigt__p_wxGDIObject,
40143 &_swigt__p_wxGIFHandler,
70d7cb34 40144 &_swigt__p_wxGraphicsBrush,
72ef6efb 40145 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40146 &_swigt__p_wxGraphicsFont,
40147 &_swigt__p_wxGraphicsMatrix,
40148 &_swigt__p_wxGraphicsObject,
72ef6efb 40149 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40150 &_swigt__p_wxGraphicsPen,
40151 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40152 &_swigt__p_wxGridBagSizer,
40153 &_swigt__p_wxGridSizer,
33d6fd3b 40154 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40155 &_swigt__p_wxICOHandler,
40156 &_swigt__p_wxIcon,
40157 &_swigt__p_wxIconBundle,
40158 &_swigt__p_wxIconLocation,
40159 &_swigt__p_wxIconizeEvent,
40160 &_swigt__p_wxIdleEvent,
40161 &_swigt__p_wxImage,
40162 &_swigt__p_wxImageHandler,
40163 &_swigt__p_wxImageList,
40164 &_swigt__p_wxIndividualLayoutConstraint,
40165 &_swigt__p_wxInitDialogEvent,
40166 &_swigt__p_wxJPEGHandler,
40167 &_swigt__p_wxKeyEvent,
40168 &_swigt__p_wxLanguageInfo,
40169 &_swigt__p_wxLayoutConstraints,
40170 &_swigt__p_wxLocale,
40171 &_swigt__p_wxMask,
40172 &_swigt__p_wxMaximizeEvent,
40173 &_swigt__p_wxMemoryDC,
40174 &_swigt__p_wxMenu,
40175 &_swigt__p_wxMenuBar,
40176 &_swigt__p_wxMenuEvent,
40177 &_swigt__p_wxMenuItem,
40178 &_swigt__p_wxMetaFile,
40179 &_swigt__p_wxMetaFileDC,
40180 &_swigt__p_wxMirrorDC,
40181 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40182 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40183 &_swigt__p_wxMouseEvent,
40184 &_swigt__p_wxMoveEvent,
40185 &_swigt__p_wxNativeEncodingInfo,
40186 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40187 &_swigt__p_wxNativePixelData,
40188 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40189 &_swigt__p_wxNavigationKeyEvent,
40190 &_swigt__p_wxNcPaintEvent,
40191 &_swigt__p_wxNotifyEvent,
40192 &_swigt__p_wxObject,
b39fe951 40193 &_swigt__p_wxOverlay,
1bd55598
RD
40194 &_swigt__p_wxPCXHandler,
40195 &_swigt__p_wxPNGHandler,
40196 &_swigt__p_wxPNMHandler,
40197 &_swigt__p_wxPaintDC,
40198 &_swigt__p_wxPaintEvent,
40199 &_swigt__p_wxPalette,
40200 &_swigt__p_wxPaletteChangedEvent,
40201 &_swigt__p_wxPaperSize,
40202 &_swigt__p_wxPen,
40203 &_swigt__p_wxPenList,
fc46b7f3 40204 &_swigt__p_wxPixelDataBase,
1bd55598 40205 &_swigt__p_wxPoint,
72ef6efb 40206 &_swigt__p_wxPoint2D,
70d7cb34 40207 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
40208 &_swigt__p_wxPostScriptDC,
40209 &_swigt__p_wxPrintData,
40210 &_swigt__p_wxPrinterDC,
27e45892 40211 &_swigt__p_wxPseudoDC,
1bd55598
RD
40212 &_swigt__p_wxPyApp,
40213 &_swigt__p_wxPyCommandEvent,
40214 &_swigt__p_wxPyEvent,
40215 &_swigt__p_wxPyFontEnumerator,
40216 &_swigt__p_wxPyImageHandler,
fc46b7f3 40217 &_swigt__p_wxPyLocale,
1bd55598
RD
40218 &_swigt__p_wxPySizer,
40219 &_swigt__p_wxPyValidator,
40220 &_swigt__p_wxQueryNewPaletteEvent,
40221 &_swigt__p_wxRect,
70d7cb34 40222 &_swigt__p_wxRect2DDouble,
1bd55598
RD
40223 &_swigt__p_wxRegion,
40224 &_swigt__p_wxRegionIterator,
40225 &_swigt__p_wxRendererNative,
40226 &_swigt__p_wxRendererVersion,
40227 &_swigt__p_wxScreenDC,
40228 &_swigt__p_wxScrollEvent,
40229 &_swigt__p_wxScrollWinEvent,
40230 &_swigt__p_wxSetCursorEvent,
40231 &_swigt__p_wxShowEvent,
40232 &_swigt__p_wxSize,
40233 &_swigt__p_wxSizeEvent,
40234 &_swigt__p_wxSizer,
40235 &_swigt__p_wxSizerItem,
40236 &_swigt__p_wxSplitterRenderParams,
40237 &_swigt__p_wxStaticBoxSizer,
40238 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40239 &_swigt__p_wxStockGDI,
1bd55598
RD
40240 &_swigt__p_wxString,
40241 &_swigt__p_wxSysColourChangedEvent,
580080c5 40242 &_swigt__p_wxTGAHandler,
1bd55598
RD
40243 &_swigt__p_wxTIFFHandler,
40244 &_swigt__p_wxUpdateUIEvent,
40245 &_swigt__p_wxValidator,
40246 &_swigt__p_wxWindow,
40247 &_swigt__p_wxWindowCreateEvent,
40248 &_swigt__p_wxWindowDC,
40249 &_swigt__p_wxWindowDestroyEvent,
40250 &_swigt__p_wxXPMHandler,
40251};
40252
fc46b7f3 40253static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40254static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40255static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40256static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40257static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40258static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40259static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40260static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40261static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40262static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40263static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40264static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40265static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40266static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40267static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40268static 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}};
40269static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40270static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40271static 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}};
40272static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40273static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40274static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40275static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40276static 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
40277static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40278static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40279static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40280static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40281static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40282static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40283static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40284static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40285static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40286static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40287static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40288static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40289static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40290static 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 40291static 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 40292static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40293static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40294static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40295static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40296static 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 40297static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40298static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40299static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40300static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40301static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40302static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40303static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40304static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40305static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40306static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40307static 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 40308static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40309static 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
40310static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40311static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40312static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40313static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40314static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40315static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40316static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40317static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40318static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40319static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40320static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40321static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40322static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40323static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40324static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40325static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40326static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40327static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40328static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40329static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40330static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40331static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40332static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40333static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40334static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40335static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40336static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40337static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40338static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40339static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40340static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40341static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40342static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40343static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40344static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40345static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40346static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40347static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40348static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40349static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40350static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40351static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40352static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40353static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40354static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40355static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40356static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40357static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40358static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40359static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40360static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40361static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40362static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40363static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40364static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40365static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40366static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40367static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40368static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40369static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40370static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40371static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40372static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40373static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40374static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40375static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40376static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40377static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40378static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40379static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40380static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40381static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40382static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40383static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40384static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40385static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40386static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40387static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40388static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40389static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40390static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40391static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40392static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40393static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40394static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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 40395static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40396static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40397static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40398static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40399static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40400static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40401static 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 40402static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40403static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40404static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40405static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40406static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40407static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40408static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40409static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40410static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40411static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40412static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40413static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40414static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40415static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40416static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40417static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40418static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40419static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40420static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40421static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40422static 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 40423static 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
40424
40425static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40426 _swigc__p_buffer,
1bd55598
RD
40427 _swigc__p_char,
40428 _swigc__p_double,
40429 _swigc__p_form_ops_t,
40430 _swigc__p_int,
40431 _swigc__p_unsigned_char,
40432 _swigc__p_unsigned_int,
40433 _swigc__p_unsigned_long,
0a27f394 40434 _swigc__p_void,
1bd55598
RD
40435 _swigc__p_wxANIHandler,
40436 _swigc__p_wxAcceleratorTable,
40437 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40438 _swigc__p_wxAlphaPixelData,
40439 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40440 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40441 _swigc__p_wxBMPHandler,
40442 _swigc__p_wxBitmap,
40443 _swigc__p_wxBoxSizer,
40444 _swigc__p_wxBrush,
40445 _swigc__p_wxBrushList,
40446 _swigc__p_wxBufferedDC,
40447 _swigc__p_wxBufferedPaintDC,
40448 _swigc__p_wxCURHandler,
fc46b7f3 40449 _swigc__p_wxChar,
1bd55598
RD
40450 _swigc__p_wxChildFocusEvent,
40451 _swigc__p_wxClientDC,
2131d850 40452 _swigc__p_wxClipboardTextEvent,
1bd55598 40453 _swigc__p_wxCloseEvent,
72ef6efb 40454 _swigc__p_wxColor,
1bd55598
RD
40455 _swigc__p_wxColour,
40456 _swigc__p_wxColourDatabase,
40457 _swigc__p_wxCommandEvent,
40458 _swigc__p_wxContextMenuEvent,
40459 _swigc__p_wxControl,
40460 _swigc__p_wxControlWithItems,
40461 _swigc__p_wxCursor,
40462 _swigc__p_wxDC,
70d7cb34
RD
40463 _swigc__p_wxDCBrushChanger,
40464 _swigc__p_wxDCClipper,
b39fe951 40465 _swigc__p_wxDCOverlay,
70d7cb34
RD
40466 _swigc__p_wxDCPenChanger,
40467 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40468 _swigc__p_wxDash,
40469 _swigc__p_wxDateEvent,
40470 _swigc__p_wxDisplayChangedEvent,
40471 _swigc__p_wxDropFilesEvent,
40472 _swigc__p_wxDuplexMode,
40473 _swigc__p_wxEffects,
40474 _swigc__p_wxEncodingConverter,
40475 _swigc__p_wxEraseEvent,
40476 _swigc__p_wxEvent,
40477 _swigc__p_wxEvtHandler,
40478 _swigc__p_wxFSFile,
40479 _swigc__p_wxFileSystem,
40480 _swigc__p_wxFlexGridSizer,
40481 _swigc__p_wxFocusEvent,
40482 _swigc__p_wxFont,
40483 _swigc__p_wxFontList,
40484 _swigc__p_wxFontMapper,
40485 _swigc__p_wxGBSizerItem,
72ef6efb 40486 _swigc__p_wxGCDC,
da91cb0f 40487 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40488 _swigc__p_wxGDIObject,
40489 _swigc__p_wxGIFHandler,
70d7cb34 40490 _swigc__p_wxGraphicsBrush,
72ef6efb 40491 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40492 _swigc__p_wxGraphicsFont,
40493 _swigc__p_wxGraphicsMatrix,
40494 _swigc__p_wxGraphicsObject,
72ef6efb 40495 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40496 _swigc__p_wxGraphicsPen,
40497 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40498 _swigc__p_wxGridBagSizer,
40499 _swigc__p_wxGridSizer,
33d6fd3b 40500 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40501 _swigc__p_wxICOHandler,
40502 _swigc__p_wxIcon,
40503 _swigc__p_wxIconBundle,
40504 _swigc__p_wxIconLocation,
40505 _swigc__p_wxIconizeEvent,
40506 _swigc__p_wxIdleEvent,
40507 _swigc__p_wxImage,
40508 _swigc__p_wxImageHandler,
40509 _swigc__p_wxImageList,
40510 _swigc__p_wxIndividualLayoutConstraint,
40511 _swigc__p_wxInitDialogEvent,
40512 _swigc__p_wxJPEGHandler,
40513 _swigc__p_wxKeyEvent,
40514 _swigc__p_wxLanguageInfo,
40515 _swigc__p_wxLayoutConstraints,
40516 _swigc__p_wxLocale,
40517 _swigc__p_wxMask,
40518 _swigc__p_wxMaximizeEvent,
40519 _swigc__p_wxMemoryDC,
40520 _swigc__p_wxMenu,
40521 _swigc__p_wxMenuBar,
40522 _swigc__p_wxMenuEvent,
40523 _swigc__p_wxMenuItem,
40524 _swigc__p_wxMetaFile,
40525 _swigc__p_wxMetaFileDC,
40526 _swigc__p_wxMirrorDC,
40527 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40528 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40529 _swigc__p_wxMouseEvent,
40530 _swigc__p_wxMoveEvent,
40531 _swigc__p_wxNativeEncodingInfo,
40532 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40533 _swigc__p_wxNativePixelData,
40534 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40535 _swigc__p_wxNavigationKeyEvent,
40536 _swigc__p_wxNcPaintEvent,
40537 _swigc__p_wxNotifyEvent,
40538 _swigc__p_wxObject,
b39fe951 40539 _swigc__p_wxOverlay,
1bd55598
RD
40540 _swigc__p_wxPCXHandler,
40541 _swigc__p_wxPNGHandler,
40542 _swigc__p_wxPNMHandler,
40543 _swigc__p_wxPaintDC,
40544 _swigc__p_wxPaintEvent,
40545 _swigc__p_wxPalette,
40546 _swigc__p_wxPaletteChangedEvent,
40547 _swigc__p_wxPaperSize,
40548 _swigc__p_wxPen,
40549 _swigc__p_wxPenList,
fc46b7f3 40550 _swigc__p_wxPixelDataBase,
1bd55598 40551 _swigc__p_wxPoint,
72ef6efb 40552 _swigc__p_wxPoint2D,
70d7cb34 40553 _swigc__p_wxPoint2DDouble,
1bd55598
RD
40554 _swigc__p_wxPostScriptDC,
40555 _swigc__p_wxPrintData,
40556 _swigc__p_wxPrinterDC,
27e45892 40557 _swigc__p_wxPseudoDC,
1bd55598
RD
40558 _swigc__p_wxPyApp,
40559 _swigc__p_wxPyCommandEvent,
40560 _swigc__p_wxPyEvent,
40561 _swigc__p_wxPyFontEnumerator,
40562 _swigc__p_wxPyImageHandler,
fc46b7f3 40563 _swigc__p_wxPyLocale,
1bd55598
RD
40564 _swigc__p_wxPySizer,
40565 _swigc__p_wxPyValidator,
40566 _swigc__p_wxQueryNewPaletteEvent,
40567 _swigc__p_wxRect,
70d7cb34 40568 _swigc__p_wxRect2DDouble,
1bd55598
RD
40569 _swigc__p_wxRegion,
40570 _swigc__p_wxRegionIterator,
40571 _swigc__p_wxRendererNative,
40572 _swigc__p_wxRendererVersion,
40573 _swigc__p_wxScreenDC,
40574 _swigc__p_wxScrollEvent,
40575 _swigc__p_wxScrollWinEvent,
40576 _swigc__p_wxSetCursorEvent,
40577 _swigc__p_wxShowEvent,
40578 _swigc__p_wxSize,
40579 _swigc__p_wxSizeEvent,
40580 _swigc__p_wxSizer,
40581 _swigc__p_wxSizerItem,
40582 _swigc__p_wxSplitterRenderParams,
40583 _swigc__p_wxStaticBoxSizer,
40584 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40585 _swigc__p_wxStockGDI,
1bd55598
RD
40586 _swigc__p_wxString,
40587 _swigc__p_wxSysColourChangedEvent,
580080c5 40588 _swigc__p_wxTGAHandler,
1bd55598
RD
40589 _swigc__p_wxTIFFHandler,
40590 _swigc__p_wxUpdateUIEvent,
40591 _swigc__p_wxValidator,
40592 _swigc__p_wxWindow,
40593 _swigc__p_wxWindowCreateEvent,
40594 _swigc__p_wxWindowDC,
40595 _swigc__p_wxWindowDestroyEvent,
40596 _swigc__p_wxXPMHandler,
40597};
40598
40599
40600/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40601
40602static swig_const_info swig_const_table[] = {
40603{0, 0, 0, 0.0, 0, 0}};
40604
40605#ifdef __cplusplus
40606}
40607#endif
40608/* -----------------------------------------------------------------------------
40609 * Type initialization:
40610 * This problem is tough by the requirement that no dynamic
40611 * memory is used. Also, since swig_type_info structures store pointers to
40612 * swig_cast_info structures and swig_cast_info structures store pointers back
40613 * to swig_type_info structures, we need some lookup code at initialization.
40614 * The idea is that swig generates all the structures that are needed.
40615 * The runtime then collects these partially filled structures.
40616 * The SWIG_InitializeModule function takes these initial arrays out of
40617 * swig_module, and does all the lookup, filling in the swig_module.types
40618 * array with the correct data and linking the correct swig_cast_info
40619 * structures together.
40620 *
40621 * The generated swig_type_info structures are assigned staticly to an initial
40622 * array. We just loop though that array, and handle each type individually.
40623 * First we lookup if this type has been already loaded, and if so, use the
40624 * loaded structure instead of the generated one. Then we have to fill in the
40625 * cast linked list. The cast data is initially stored in something like a
40626 * two-dimensional array. Each row corresponds to a type (there are the same
40627 * number of rows as there are in the swig_type_initial array). Each entry in
40628 * a column is one of the swig_cast_info structures for that type.
40629 * The cast_initial array is actually an array of arrays, because each row has
40630 * a variable number of columns. So to actually build the cast linked list,
40631 * we find the array of casts associated with the type, and loop through it
40632 * adding the casts to the list. The one last trick we need to do is making
40633 * sure the type pointer in the swig_cast_info struct is correct.
40634 *
40635 * First off, we lookup the cast->type name to see if it is already loaded.
40636 * There are three cases to handle:
40637 * 1) If the cast->type has already been loaded AND the type we are adding
40638 * casting info to has not been loaded (it is in this module), THEN we
40639 * replace the cast->type pointer with the type pointer that has already
40640 * been loaded.
40641 * 2) If BOTH types (the one we are adding casting info to, and the
40642 * cast->type) are loaded, THEN the cast info has already been loaded by
40643 * the previous module so we just ignore it.
40644 * 3) Finally, if cast->type has not already been loaded, then we add that
40645 * swig_cast_info to the linked list (because the cast->type) pointer will
40646 * be correct.
40647 * ----------------------------------------------------------------------------- */
40648
40649#ifdef __cplusplus
40650extern "C" {
40651#if 0
40652} /* c-mode */
40653#endif
40654#endif
40655
40656#if 0
40657#define SWIGRUNTIME_DEBUG
40658#endif
40659
40660SWIGRUNTIME void
40661SWIG_InitializeModule(void *clientdata) {
40662 size_t i;
40663 swig_module_info *module_head;
40664 static int init_run = 0;
40665
40666 clientdata = clientdata;
40667
40668 if (init_run) return;
40669 init_run = 1;
40670
40671 /* Initialize the swig_module */
40672 swig_module.type_initial = swig_type_initial;
40673 swig_module.cast_initial = swig_cast_initial;
40674
40675 /* Try and load any already created modules */
40676 module_head = SWIG_GetModule(clientdata);
40677 if (module_head) {
40678 swig_module.next = module_head->next;
40679 module_head->next = &swig_module;
40680 } else {
40681 /* This is the first module loaded */
40682 swig_module.next = &swig_module;
40683 SWIG_SetModule(clientdata, &swig_module);
40684 }
40685
40686 /* Now work on filling in swig_module.types */
40687#ifdef SWIGRUNTIME_DEBUG
40688 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40689#endif
40690 for (i = 0; i < swig_module.size; ++i) {
40691 swig_type_info *type = 0;
40692 swig_type_info *ret;
40693 swig_cast_info *cast;
40694
40695#ifdef SWIGRUNTIME_DEBUG
40696 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40697#endif
40698
40699 /* if there is another module already loaded */
40700 if (swig_module.next != &swig_module) {
40701 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40702 }
1bd55598
RD
40703 if (type) {
40704 /* Overwrite clientdata field */
40705#ifdef SWIGRUNTIME_DEBUG
40706 printf("SWIG_InitializeModule: found type %s\n", type->name);
40707#endif
40708 if (swig_module.type_initial[i]->clientdata) {
40709 type->clientdata = swig_module.type_initial[i]->clientdata;
40710#ifdef SWIGRUNTIME_DEBUG
40711 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40712#endif
40713 }
40714 } else {
40715 type = swig_module.type_initial[i];
be9b1dca 40716 }
1bd55598
RD
40717
40718 /* Insert casting types */
40719 cast = swig_module.cast_initial[i];
40720 while (cast->type) {
40721 /* Don't need to add information already in the list */
40722 ret = 0;
40723#ifdef SWIGRUNTIME_DEBUG
40724 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40725#endif
40726 if (swig_module.next != &swig_module) {
40727 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40728#ifdef SWIGRUNTIME_DEBUG
40729 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40730#endif
40731 }
40732 if (ret) {
40733 if (type == swig_module.type_initial[i]) {
40734#ifdef SWIGRUNTIME_DEBUG
40735 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40736#endif
40737 cast->type = ret;
40738 ret = 0;
40739 } else {
40740 /* Check for casting already in the list */
40741 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40742#ifdef SWIGRUNTIME_DEBUG
40743 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40744#endif
40745 if (!ocast) ret = 0;
40746 }
40747 }
40748
40749 if (!ret) {
40750#ifdef SWIGRUNTIME_DEBUG
40751 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40752#endif
40753 if (type->cast) {
40754 type->cast->prev = cast;
40755 cast->next = type->cast;
40756 }
40757 type->cast = cast;
40758 }
40759 cast++;
be9b1dca 40760 }
1bd55598
RD
40761 /* Set entry in modules->types array equal to the type */
40762 swig_module.types[i] = type;
40763 }
40764 swig_module.types[i] = 0;
40765
40766#ifdef SWIGRUNTIME_DEBUG
40767 printf("**** SWIG_InitializeModule: Cast List ******\n");
40768 for (i = 0; i < swig_module.size; ++i) {
40769 int j = 0;
40770 swig_cast_info *cast = swig_module.cast_initial[i];
40771 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40772 while (cast->type) {
40773 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40774 cast++;
40775 ++j;
40776 }
40777 printf("---- Total casts: %d\n",j);
40778 }
40779 printf("**** SWIG_InitializeModule: Cast List ******\n");
40780#endif
40781}
40782
40783/* This function will propagate the clientdata field of type to
40784* any new swig_type_info structures that have been added into the list
40785* of equivalent types. It is like calling
40786* SWIG_TypeClientData(type, clientdata) a second time.
40787*/
40788SWIGRUNTIME void
40789SWIG_PropagateClientData(void) {
40790 size_t i;
40791 swig_cast_info *equiv;
40792 static int init_run = 0;
40793
40794 if (init_run) return;
40795 init_run = 1;
40796
40797 for (i = 0; i < swig_module.size; i++) {
40798 if (swig_module.types[i]->clientdata) {
40799 equiv = swig_module.types[i]->cast;
40800 while (equiv) {
40801 if (!equiv->converter) {
40802 if (equiv->type && !equiv->type->clientdata)
40803 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40804 }
40805 equiv = equiv->next;
40806 }
be9b1dca 40807 }
1bd55598
RD
40808 }
40809}
40810
40811#ifdef __cplusplus
40812#if 0
40813{
40814 /* c-mode */
40815#endif
40816}
40817#endif
40818
40819
40820
40821#ifdef __cplusplus
40822extern "C" {
40823#endif
40824
40825 /* Python-specific SWIG API */
40826#define SWIG_newvarlink() SWIG_Python_newvarlink()
40827#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40828#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40829
40830 /* -----------------------------------------------------------------------------
40831 * global variable support code.
40832 * ----------------------------------------------------------------------------- */
40833
40834 typedef struct swig_globalvar {
40835 char *name; /* Name of global variable */
40836 PyObject *(*get_attr)(void); /* Return the current value */
40837 int (*set_attr)(PyObject *); /* Set the value */
40838 struct swig_globalvar *next;
40839 } swig_globalvar;
40840
40841 typedef struct swig_varlinkobject {
40842 PyObject_HEAD
40843 swig_globalvar *vars;
40844 } swig_varlinkobject;
40845
40846 SWIGINTERN PyObject *
40847 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40848 return PyString_FromString("<Swig global variables>");
40849 }
40850
40851 SWIGINTERN PyObject *
40852 swig_varlink_str(swig_varlinkobject *v) {
40853 PyObject *str = PyString_FromString("(");
40854 swig_globalvar *var;
40855 for (var = v->vars; var; var=var->next) {
40856 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40857 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40858 }
40859 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40860 return str;
40861 }
40862
40863 SWIGINTERN int
40864 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40865 PyObject *str = swig_varlink_str(v);
40866 fprintf(fp,"Swig global variables ");
40867 fprintf(fp,"%s\n", PyString_AsString(str));
40868 Py_DECREF(str);
40869 return 0;
40870 }
40871
40872 SWIGINTERN void
40873 swig_varlink_dealloc(swig_varlinkobject *v) {
40874 swig_globalvar *var = v->vars;
40875 while (var) {
40876 swig_globalvar *n = var->next;
40877 free(var->name);
40878 free(var);
40879 var = n;
be9b1dca 40880 }
1bd55598
RD
40881 }
40882
40883 SWIGINTERN PyObject *
40884 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40885 PyObject *res = NULL;
40886 swig_globalvar *var = v->vars;
40887 while (var) {
40888 if (strcmp(var->name,n) == 0) {
40889 res = (*var->get_attr)();
40890 break;
40891 }
40892 var = var->next;
be9b1dca 40893 }
1bd55598
RD
40894 if (res == NULL && !PyErr_Occurred()) {
40895 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40896 }
1bd55598
RD
40897 return res;
40898 }
40899
40900 SWIGINTERN int
40901 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40902 int res = 1;
40903 swig_globalvar *var = v->vars;
40904 while (var) {
40905 if (strcmp(var->name,n) == 0) {
40906 res = (*var->set_attr)(p);
40907 break;
40908 }
40909 var = var->next;
be9b1dca 40910 }
1bd55598
RD
40911 if (res == 1 && !PyErr_Occurred()) {
40912 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40913 }
1bd55598
RD
40914 return res;
40915 }
40916
40917 SWIGINTERN PyTypeObject*
40918 swig_varlink_type(void) {
40919 static char varlink__doc__[] = "Swig var link object";
40920 static PyTypeObject varlink_type;
40921 static int type_init = 0;
40922 if (!type_init) {
40923 const PyTypeObject tmp
40924 = {
40925 PyObject_HEAD_INIT(NULL)
40926 0, /* Number of items in variable part (ob_size) */
40927 (char *)"swigvarlink", /* Type name (tp_name) */
40928 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40929 0, /* Itemsize (tp_itemsize) */
40930 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40931 (printfunc) swig_varlink_print, /* Print (tp_print) */
40932 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40933 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40934 0, /* tp_compare */
40935 (reprfunc) swig_varlink_repr, /* tp_repr */
40936 0, /* tp_as_number */
40937 0, /* tp_as_sequence */
40938 0, /* tp_as_mapping */
40939 0, /* tp_hash */
40940 0, /* tp_call */
40941 (reprfunc)swig_varlink_str, /* tp_str */
40942 0, /* tp_getattro */
40943 0, /* tp_setattro */
40944 0, /* tp_as_buffer */
40945 0, /* tp_flags */
40946 varlink__doc__, /* tp_doc */
40947 0, /* tp_traverse */
40948 0, /* tp_clear */
40949 0, /* tp_richcompare */
40950 0, /* tp_weaklistoffset */
40951#if PY_VERSION_HEX >= 0x02020000
40952 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40953#endif
40954#if PY_VERSION_HEX >= 0x02030000
40955 0, /* tp_del */
40956#endif
40957#ifdef COUNT_ALLOCS
40958 0,0,0,0 /* tp_alloc -> tp_next */
40959#endif
40960 };
40961 varlink_type = tmp;
40962 varlink_type.ob_type = &PyType_Type;
40963 type_init = 1;
be9b1dca 40964 }
1bd55598
RD
40965 return &varlink_type;
40966 }
40967
40968 /* Create a variable linking object for use later */
40969 SWIGINTERN PyObject *
40970 SWIG_Python_newvarlink(void) {
40971 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40972 if (result) {
40973 result->vars = 0;
40974 }
40975 return ((PyObject*) result);
40976 }
40977
40978 SWIGINTERN void
40979 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40980 swig_varlinkobject *v = (swig_varlinkobject *) p;
40981 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40982 if (gv) {
40983 size_t size = strlen(name)+1;
40984 gv->name = (char *)malloc(size);
40985 if (gv->name) {
40986 strncpy(gv->name,name,size);
40987 gv->get_attr = get_attr;
40988 gv->set_attr = set_attr;
40989 gv->next = v->vars;
40990 }
be9b1dca 40991 }
1bd55598
RD
40992 v->vars = gv;
40993 }
40994
40995 SWIGINTERN PyObject *
40996 SWIG_globals() {
40997 static PyObject *_SWIG_globals = 0;
40998 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40999 return _SWIG_globals;
41000 }
41001
41002 /* -----------------------------------------------------------------------------
41003 * constants/methods manipulation
41004 * ----------------------------------------------------------------------------- */
41005
41006 /* Install Constants */
41007 SWIGINTERN void
41008 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41009 PyObject *obj = 0;
41010 size_t i;
41011 for (i = 0; constants[i].type; ++i) {
41012 switch(constants[i].type) {
41013 case SWIG_PY_POINTER:
41014 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41015 break;
41016 case SWIG_PY_BINARY:
41017 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41018 break;
41019 default:
41020 obj = 0;
41021 break;
41022 }
41023 if (obj) {
41024 PyDict_SetItemString(d, constants[i].name, obj);
41025 Py_DECREF(obj);
41026 }
be9b1dca 41027 }
1bd55598
RD
41028 }
41029
41030 /* -----------------------------------------------------------------------------*/
41031 /* Fix SwigMethods to carry the callback ptrs when needed */
41032 /* -----------------------------------------------------------------------------*/
41033
41034 SWIGINTERN void
41035 SWIG_Python_FixMethods(PyMethodDef *methods,
41036 swig_const_info *const_table,
41037 swig_type_info **types,
41038 swig_type_info **types_initial) {
41039 size_t i;
41040 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41041 const char *c = methods[i].ml_doc;
1bd55598
RD
41042 if (c && (c = strstr(c, "swig_ptr: "))) {
41043 int j;
41044 swig_const_info *ci = 0;
3d6c9062 41045 const char *name = c + 10;
1bd55598
RD
41046 for (j = 0; const_table[j].type; ++j) {
41047 if (strncmp(const_table[j].name, name,
41048 strlen(const_table[j].name)) == 0) {
41049 ci = &(const_table[j]);
41050 break;
41051 }
41052 }
41053 if (ci) {
41054 size_t shift = (ci->ptype) - types;
41055 swig_type_info *ty = types_initial[shift];
41056 size_t ldoc = (c - methods[i].ml_doc);
41057 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41058 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41059 if (ndoc) {
41060 char *buff = ndoc;
41061 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41062 if (ptr) {
41063 strncpy(buff, methods[i].ml_doc, ldoc);
41064 buff += ldoc;
41065 strncpy(buff, "swig_ptr: ", 10);
41066 buff += 10;
41067 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41068 methods[i].ml_doc = ndoc;
41069 }
41070 }
41071 }
41072 }
be9b1dca 41073 }
1bd55598
RD
41074 }
41075
41076#ifdef __cplusplus
41077}
41078#endif
41079
41080/* -----------------------------------------------------------------------------*
41081 * Partial Init method
41082 * -----------------------------------------------------------------------------*/
41083
41084#ifdef __cplusplus
41085extern "C"
41086#endif
41087SWIGEXPORT void SWIG_init(void) {
41088 PyObject *m, *d;
41089
41090 /* Fix SwigMethods to carry the callback ptrs when needed */
41091 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41092
41093 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41094 d = PyModule_GetDict(m);
41095
41096 SWIG_InitializeModule(0);
41097 SWIG_InstallConstants(d,swig_const_table);
41098
41099
2131d850
RD
41100 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41101 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41102 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41103 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41104 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41105 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41106 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41107 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41108 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41109 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41110 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41111 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41112 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41113 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41114 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41115 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41116 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41117 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41118 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41119 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41120 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41121 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41122 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41123 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41124 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41125 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41126 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41127 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41128 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41129 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41130 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41131 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41132 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41133 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41134 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41135 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41136 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41137 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41138 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41139 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41140 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41141 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41142 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41143 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41144 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41145 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41146 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41147 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41148 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41149 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41150 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41151 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41152 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41153 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41154 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41155 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41156 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41157 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41158 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41159 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41160 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41161 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41162 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41163 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41164 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41165 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41166 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41167 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41168 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41169 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41170 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41171 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41172 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41173 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41174 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41175 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41176 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41177 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41178 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41179 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41180 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41181 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41182 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41183 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41184 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41185 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41186 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41187 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41188 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41189 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41190 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41191 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41192 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41193 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41194 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41195 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41196 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41197 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41198 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41199 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41200 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41201 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41202 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41203 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41204 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41205 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41206 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41207 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41208 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41209 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41210 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41211 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41212 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41213 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41214 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41215 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41216 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41217 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41218 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41219 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41220 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41221 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41222 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41223 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41224 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41225 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41226 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41227 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41228 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41229 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41230 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41231 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41232
41233 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41234
41235 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41334 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41335 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41336 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41337 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41338 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41339 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41340 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41341 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41342 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41343 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41344 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41345 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41346 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41347 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41348 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41349 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41350 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41351 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41352 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41353 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41354 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41355 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41356 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41357 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41358 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41359 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41360 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41361 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41362 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41363 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41364 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41365 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41366 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41367 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41368 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41369 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41370 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41371 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41372 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41373 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41374 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41375 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41376 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41377 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41378 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41379 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41380 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41381 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41382 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41383 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41384 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41385 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41386 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41387 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41388 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41389 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41390 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41391 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41392 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41393 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41394 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41466 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41467 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41468 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41469 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41470 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41471 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41472 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41473 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41474 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41475 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41476 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41477 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41478 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41479 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41480 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41481 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41482 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41483 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41484 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41485 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41486 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41487 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41488 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41489 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41490 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41491 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41492 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41493 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41494 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41495 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41496 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41497 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41498 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41499 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41500 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41501 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41502 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41503 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41504 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41505 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41506 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41507 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41508 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41509 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41510 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41511 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41512 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41513 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41514 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41515 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41516 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41517 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41518 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41519 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41520 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41521 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41522 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41523 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41524 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41525 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41526 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41527 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41528 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41529 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41530 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41531 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41532 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41533 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41534 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41535 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41536 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41537 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41538 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41539 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41540 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41541 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41542 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41543 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41544 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41545 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41546 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41547 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41548 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41549 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41550 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41551 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41552 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41553 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41554 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41555 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41556 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41557 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41558 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41559
41560 // Work around a chicken/egg problem in drawlist.cpp
41561 wxPyDrawList_SetAPIPtr();
41562
d55e5bfc
RD
41563}
41564