]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
fixed deadlock when calling wxPostEvent() from worker thread
[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]
59ccbf7f
RD
2494#define SWIGTYPE_p_wxColour swig_types[28]
2495#define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496#define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497#define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498#define SWIGTYPE_p_wxControl swig_types[32]
2499#define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500#define SWIGTYPE_p_wxCursor swig_types[34]
2501#define SWIGTYPE_p_wxDC swig_types[35]
2502#define SWIGTYPE_p_wxDCBrushChanger swig_types[36]
2503#define SWIGTYPE_p_wxDCClipper swig_types[37]
2504#define SWIGTYPE_p_wxDCOverlay swig_types[38]
2505#define SWIGTYPE_p_wxDCPenChanger swig_types[39]
2506#define SWIGTYPE_p_wxDCTextColourChanger swig_types[40]
2507#define SWIGTYPE_p_wxDash swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2510#define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2511#define SWIGTYPE_p_wxDuplexMode swig_types[45]
2512#define SWIGTYPE_p_wxEffects swig_types[46]
2513#define SWIGTYPE_p_wxEncodingConverter swig_types[47]
2514#define SWIGTYPE_p_wxEraseEvent swig_types[48]
2515#define SWIGTYPE_p_wxEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517#define SWIGTYPE_p_wxFSFile swig_types[51]
2518#define SWIGTYPE_p_wxFileSystem swig_types[52]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521#define SWIGTYPE_p_wxFont swig_types[55]
2522#define SWIGTYPE_p_wxFontList swig_types[56]
2523#define SWIGTYPE_p_wxFontMapper swig_types[57]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525#define SWIGTYPE_p_wxGCDC swig_types[59]
2526#define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527#define SWIGTYPE_p_wxGDIObject swig_types[61]
2528#define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529#define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537#define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538#define SWIGTYPE_p_wxGridSizer swig_types[72]
2539#define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540#define SWIGTYPE_p_wxICOHandler swig_types[74]
2541#define SWIGTYPE_p_wxIcon swig_types[75]
2542#define SWIGTYPE_p_wxIconBundle swig_types[76]
2543#define SWIGTYPE_p_wxIconLocation swig_types[77]
2544#define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545#define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546#define SWIGTYPE_p_wxImage swig_types[80]
2547#define SWIGTYPE_p_wxImageHandler swig_types[81]
2548#define SWIGTYPE_p_wxImageList swig_types[82]
2549#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550#define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554#define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555#define SWIGTYPE_p_wxLocale swig_types[89]
2556#define SWIGTYPE_p_wxMask swig_types[90]
2557#define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558#define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559#define SWIGTYPE_p_wxMenu swig_types[93]
2560#define SWIGTYPE_p_wxMenuBar swig_types[94]
2561#define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562#define SWIGTYPE_p_wxMenuItem swig_types[96]
2563#define SWIGTYPE_p_wxMetaFile swig_types[97]
2564#define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565#define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569#define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571#define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575#define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576#define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577#define SWIGTYPE_p_wxObject swig_types[111]
2578#define SWIGTYPE_p_wxOverlay swig_types[112]
2579#define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580#define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582#define SWIGTYPE_p_wxPaintDC swig_types[116]
2583#define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584#define SWIGTYPE_p_wxPalette swig_types[118]
2585#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586#define SWIGTYPE_p_wxPaperSize swig_types[120]
2587#define SWIGTYPE_p_wxPen swig_types[121]
2588#define SWIGTYPE_p_wxPenList swig_types[122]
2589#define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590#define SWIGTYPE_p_wxPoint swig_types[124]
2591#define SWIGTYPE_p_wxPoint2D swig_types[125]
2592#define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593#define SWIGTYPE_p_wxPrintData swig_types[127]
2594#define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595#define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596#define SWIGTYPE_p_wxPyApp swig_types[130]
2597#define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598#define SWIGTYPE_p_wxPyEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600#define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601#define SWIGTYPE_p_wxPyLocale swig_types[135]
2602#define SWIGTYPE_p_wxPySizer swig_types[136]
2603#define SWIGTYPE_p_wxPyValidator swig_types[137]
2604#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605#define SWIGTYPE_p_wxRect swig_types[139]
2606#define SWIGTYPE_p_wxRect2D swig_types[140]
2607#define SWIGTYPE_p_wxRegion swig_types[141]
2608#define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609#define SWIGTYPE_p_wxRendererNative swig_types[143]
2610#define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611#define SWIGTYPE_p_wxScreenDC swig_types[145]
2612#define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613#define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614#define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615#define SWIGTYPE_p_wxShowEvent swig_types[149]
2616#define SWIGTYPE_p_wxSize swig_types[150]
2617#define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618#define SWIGTYPE_p_wxSizer swig_types[152]
2619#define SWIGTYPE_p_wxSizerItem swig_types[153]
2620#define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621#define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623#define SWIGTYPE_p_wxStockGDI swig_types[157]
2624#define SWIGTYPE_p_wxString swig_types[158]
2625#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626#define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627#define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628#define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629#define SWIGTYPE_p_wxValidator swig_types[163]
2630#define SWIGTYPE_p_wxWindow swig_types[164]
2631#define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632#define SWIGTYPE_p_wxWindowDC swig_types[166]
2633#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634#define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635static swig_type_info *swig_types[170];
2636static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
32fe5131
RD
2637#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2639
36ed4f51 2640/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2641
1bd55598
RD
2642#if (PY_VERSION_HEX <= 0x02000000)
2643# if !defined(SWIG_PYTHON_CLASSIC)
2644# error "This python version requires to use swig with the '-classic' option"
2645# endif
2646#endif
2647#if (PY_VERSION_HEX <= 0x02020000)
2648# error "This python version requires to use swig with the '-nomodern' option"
2649#endif
2650#if (PY_VERSION_HEX <= 0x02020000)
2651# error "This python version requires to use swig with the '-nomodernargs' option"
2652#endif
2653#ifndef METH_O
2654# error "This python version requires to use swig with the '-nofastunpack' option"
2655#endif
d55e5bfc 2656
36ed4f51
RD
2657/*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660#define SWIG_init init_gdi_
d55e5bfc 2661
36ed4f51 2662#define SWIG_name "_gdi_"
d55e5bfc 2663
1bd55598 2664#define SWIGVERSION 0x010329
d55e5bfc 2665
d55e5bfc 2666
1bd55598
RD
2667#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2669
2670
1bd55598
RD
2671#include <stdexcept>
2672
2673
2674namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
36ed4f51 2682 }
1bd55598
RD
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
36ed4f51 2687 }
1bd55598
RD
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
36ed4f51 2717}
d55e5bfc 2718
d55e5bfc 2719
1bd55598
RD
2720namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
d55e5bfc 2729 }
1bd55598 2730 };
d55e5bfc
RD
2731}
2732
2733
1bd55598
RD
2734#include "wx/wxPython/wxPython.h"
2735#include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2131d850
RD
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743SWIGINTERNINLINE PyObject *
2744SWIG_From_int (int value)
2745{
2746 return SWIG_From_long (value);
2747}
2748
2749
1bd55598
RD
2750#include <limits.h>
2751#ifndef LLONG_MIN
2752# define LLONG_MIN LONG_LONG_MIN
2753#endif
2754#ifndef LLONG_MAX
2755# define LLONG_MAX LONG_LONG_MAX
2756#endif
2757#ifndef ULLONG_MAX
2758# define ULLONG_MAX ULONG_LONG_MAX
2759#endif
d55e5bfc
RD
2760
2761
da91cb0f
RD
2762SWIGINTERN int
2763SWIG_AsVal_long (PyObject* obj, long* val)
2764{
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770}
2771
2772
36ed4f51 2773SWIGINTERN int
1bd55598 2774SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2775{
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2778 return SWIG_TypeError;
36ed4f51
RD
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
1bd55598 2782 return SWIG_OK;
36ed4f51 2783}
d55e5bfc
RD
2784
2785
36ed4f51 2786SWIGINTERN int
1bd55598
RD
2787SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788{
36ed4f51 2789 unsigned long v;
1bd55598
RD
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
36ed4f51 2794 } else {
1bd55598 2795 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2796 }
1bd55598
RD
2797 }
2798 return res;
36ed4f51 2799}
d55e5bfc 2800
d55e5bfc 2801
1bd55598
RD
2802SWIGINTERNINLINE PyObject*
2803SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2804{
1bd55598
RD
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2807}
2808
2809
1bd55598
RD
2810SWIGINTERNINLINE PyObject *
2811SWIG_From_unsigned_SS_char (unsigned char value)
2812{
2813 return SWIG_From_unsigned_SS_long (value);
2814}
d55e5bfc 2815
e9d6f3a4
RD
2816SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
fc46b7f3
RD
2834
2835SWIGINTERN int
2836SWIG_AsVal_bool (PyObject *obj, bool *val)
2837{
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850}
2851
2852SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
fc46b7f3 2857 int alpha = wxALPHA_OPAQUE;
b39fe951 2858 if (self->IsOk()) {
36ed4f51
RD
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
fc46b7f3 2862 alpha = self->Alpha();
36ed4f51
RD
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2869 return rv;
2870 }
1bd55598 2871SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
d55e5bfc 2874
1bd55598
RD
2875SWIGINTERN int
2876SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2877{
1bd55598
RD
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
d55e5bfc
RD
2888}
2889
1bd55598 2890SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
1bd55598 2903SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2907
36ed4f51
RD
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
1bd55598
RD
2922SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2924
1bd55598
RD
2925SWIGINTERNINLINE PyObject *
2926SWIG_From_short (short value)
2927{
2928 return SWIG_From_long (value);
2929}
d55e5bfc
RD
2930
2931
36ed4f51 2932SWIGINTERN int
1bd55598
RD
2933SWIG_AsVal_short (PyObject * obj, short *val)
2934{
36ed4f51 2935 long v;
1bd55598
RD
2936 int res = SWIG_AsVal_long (obj, &v);
2937 if (SWIG_IsOK(res)) {
2938 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2939 return SWIG_OverflowError;
36ed4f51 2940 } else {
1bd55598
RD
2941 if (val) *val = static_cast< short >(v);
2942 }
2943 }
2944 return res;
d55e5bfc
RD
2945}
2946
2947
fc46b7f3
RD
2948#include <wx/rawbmp.h>
2949
2950
8f514ab4
RD
2951// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2952// appears to me that the other platforms are already doing it, so I'll just
2953// automatically do it for wxMSW here.
2954#ifdef __WXMSW__
2955#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2956#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2957#else
2958#define wxPy_premultiply(p, a) (p)
2959#define wxPy_unpremultiply(p, a) (p)
2960#endif
2961
2962
36ed4f51 2963#include <wx/image.h>
d55e5bfc 2964
36ed4f51
RD
2965 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2966 char** cArray = NULL;
2967 int count;
d55e5bfc 2968
36ed4f51
RD
2969 if (!PyList_Check(listOfStrings)) {
2970 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2971 return NULL;
2972 }
2973 count = PyList_Size(listOfStrings);
2974 cArray = new char*[count];
d55e5bfc 2975
36ed4f51
RD
2976 for(int x=0; x<count; x++) {
2977 // TODO: Need some validation and error checking here
2978 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2979 }
2980 return cArray;
d55e5bfc 2981 }
d55e5bfc
RD
2982
2983
1bd55598 2984SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2985 char** cArray = NULL;
2986 wxBitmap* bmp;
2987
2988 cArray = ConvertListOfStrings(listOfStrings);
2989 if (! cArray)
2990 return NULL;
2991 bmp = new wxBitmap(cArray);
2992 delete [] cArray;
2993 return bmp;
2994 }
1bd55598 2995SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2996 char* buf;
2997 Py_ssize_t length;
2998 PyString_AsStringAndSize(bits, &buf, &length);
2999 return new wxBitmap(buf, width, height, depth);
3000 }
1bd55598 3001SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3002 wxSize size(self->GetWidth(), self->GetHeight());
3003 return size;
3004 }
1bd55598 3005SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3006 wxMask *mask = new wxMask(*self, colour);
3007 self->SetMask(mask);
3008 }
1bd55598 3009SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3010 self->SetWidth(size.x);
3011 self->SetHeight(size.y);
3012 }
8f514ab4
RD
3013SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3014 int height=self->GetHeight();
3015 int width=self->GetWidth();
fc46b7f3 3016
8f514ab4
RD
3017 if (DATASIZE != width * height * 3) {
3018 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3019 }
3020 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return;
3026 }
fc46b7f3 3027
8f514ab4
RD
3028 wxNativePixelData::Iterator p(pixData);
3029 for (int y=0; y<height; y++) {
3030 wxNativePixelData::Iterator rowStart = p;
3031 for (int x=0; x<width; x++) {
3032 p.Red() = *(data++);
3033 p.Green() = *(data++);
3034 p.Blue() = *(data++);
3035 ++p;
3036 }
3037 p = rowStart;
3038 p.OffsetY(pixData, 1);
3039 }
3040 }
3041SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3042 int height=self->GetHeight();
3043 int width=self->GetWidth();
3044
3045 if (DATASIZE != width * height * 4) {
3046 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3047 }
3048 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3049 if (! pixData) {
3050 // raise an exception...
3051 wxPyErr_SetString(PyExc_RuntimeError,
3052 "Failed to gain raw access to bitmap data.");
3053 return;
3054 }
3055
3056 pixData.UseAlpha();
3057 wxAlphaPixelData::Iterator p(pixData);
3058 for (int y=0; y<height; y++) {
3059 wxAlphaPixelData::Iterator rowStart = p;
3060 for (int x=0; x<width; x++) {
3061 byte a = data[3];
3062 p.Red() = wxPy_premultiply(*(data++), a);
3063 p.Green() = wxPy_premultiply(*(data++), a);
3064 p.Blue() = wxPy_premultiply(*(data++), a);
3065 p.Alpha() = a; data++;
3066 ++p;
3067 }
3068 p = rowStart;
3069 p.OffsetY(pixData, 1);
3070 }
3071 }
3072SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3073SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3074
3075 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3076 buffer data, int DATASIZE,
3077 buffer alpha, int ALPHASIZE)
3078 {
3079 if (DATASIZE != width*height*3) {
3080 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3081 return NULL;
3082 }
3083
3084 if (ALPHASIZE != width*height) {
3085 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3086 return NULL;
3087 }
3088
3089 wxBitmap* bmp = new wxBitmap(width, height, 32);
3090 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3091 if (! pixData) {
3092 // raise an exception...
3093 wxPyErr_SetString(PyExc_RuntimeError,
3094 "Failed to gain raw access to bitmap data.");
3095 return NULL;
3096 }
3097
3098 pixData.UseAlpha();
3099 wxAlphaPixelData::Iterator p(pixData);
3100 for (int y=0; y<height; y++) {
3101 wxAlphaPixelData::Iterator rowStart = p;
3102 for (int x=0; x<width; x++) {
3103 byte a = *(alpha++);
3104 p.Red() = wxPy_premultiply(*(data++), a);
3105 p.Green() = wxPy_premultiply(*(data++), a);
3106 p.Blue() = wxPy_premultiply(*(data++), a);
3107 p.Alpha() = a;
3108 ++p;
3109 }
3110 p = rowStart;
3111 p.OffsetY(pixData, 1);
3112 }
3113 return bmp;
3114 }
3115
3116 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3117 {
3118 if (DATASIZE != width*height*3) {
3119 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3120 return NULL;
3121 }
3122
3123 wxBitmap* bmp = new wxBitmap(width, height, 24);
3124 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3125 if (! pixData) {
3126 // raise an exception...
3127 wxPyErr_SetString(PyExc_RuntimeError,
3128 "Failed to gain raw access to bitmap data.");
3129 return NULL;
3130 }
3131
3132 wxNativePixelData::Iterator p(pixData);
3133 for (int y=0; y<height; y++) {
3134 wxNativePixelData::Iterator rowStart = p;
3135 for (int x=0; x<width; x++) {
3136 p.Red() = *(data++);
3137 p.Green() = *(data++);
3138 p.Blue() = *(data++);
3139 ++p;
3140 }
3141 p = rowStart;
3142 p.OffsetY(pixData, 1);
3143 }
3144 return bmp;
3145 }
3146
3147
3148 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3149 {
3150 if (DATASIZE != width*height*4) {
3151 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3152 return NULL;
3153 }
3154
3155 wxBitmap* bmp = new wxBitmap(width, height, 32);
3156 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3157 if (! pixData) {
3158 // raise an exception...
3159 wxPyErr_SetString(PyExc_RuntimeError,
3160 "Failed to gain raw access to bitmap data.");
3161 return NULL;
3162 }
3163
3164 pixData.UseAlpha();
3165 wxAlphaPixelData::Iterator p(pixData);
3166 for (int y=0; y<height; y++) {
3167 wxAlphaPixelData::Iterator rowStart = p;
3168 for (int x=0; x<width; x++) {
3169 byte a = data[3];
3170 p.Red() = wxPy_premultiply(*(data++), a);
3171 p.Green() = wxPy_premultiply(*(data++), a);
3172 p.Blue() = wxPy_premultiply(*(data++), a);
3173 p.Alpha() = a; data++;
3174 ++p;
3175 }
3176 p = rowStart;
3177 p.OffsetY(pixData, 1);
3178 }
3179 return bmp;
3180 }
3181
3182
3183 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3184
3185SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3186SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3187SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3188 self->Red() = red;
3189 self->Green() = green;
3190 self->Blue() = blue;
3191 }
3192SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3193 PyObject* rv = PyTuple_New(3);
3194 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3195 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3196 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3197 return rv;
3198 }
3199
3200 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3201
3202SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3203SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3204SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3205 self->Red() = wxPy_premultiply(red, alpha);
3206 self->Green() = wxPy_premultiply(green, alpha);
3207 self->Blue() = wxPy_premultiply(blue, alpha);
3208 self->Alpha() = alpha;
3209 }
3210SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3211 PyObject* rv = PyTuple_New(4);
3212 int red = self->Red();
3213 int green = self->Green();
3214 int blue = self->Blue();
3215 int alpha = self->Alpha();
3216
3217 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3218 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3219 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3220 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3221 return rv;
3222 }
1bd55598 3223SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3224 if ( !colour.IsOk() )
36ed4f51
RD
3225 return new wxMask(bitmap, *wxBLACK);
3226 else
3227 return new wxMask(bitmap, colour);
3228 }
d55e5bfc 3229
36ed4f51 3230#include <wx/iconbndl.h>
d55e5bfc 3231
1bd55598 3232SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3233 wxIcon* icon = new wxIcon();
3234 icon->CopyFromBitmap(bmp);
3235 return icon;
3236 }
1bd55598 3237SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3238 char** cArray = NULL;
3239 wxIcon* icon;
d55e5bfc 3240
36ed4f51
RD
3241 cArray = ConvertListOfStrings(listOfStrings);
3242 if (! cArray)
3243 return NULL;
3244 icon = new wxIcon(cArray);
3245 delete [] cArray;
3246 return icon;
3247 }
1bd55598 3248SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3249
3250
d55e5bfc 3251
36ed4f51 3252 return new wxIconLocation(*filename);
d55e5bfc 3253
36ed4f51 3254 }
1bd55598 3255SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3256
3257
d55e5bfc 3258
36ed4f51 3259 // do nothing
d55e5bfc 3260
36ed4f51 3261 }
1bd55598 3262SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3263
3264
d55e5bfc 3265
36ed4f51 3266 return -1;
d55e5bfc 3267
36ed4f51 3268 }
1bd55598 3269SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3270#ifdef __WXGTK__
fef4c27a
RD
3271 wxImage img(cursorName, type);
3272 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3273 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3274 return new wxCursor(img);
36ed4f51 3275#else
fef4c27a 3276 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3277#endif
3278 }
d55e5bfc 3279
d55e5bfc 3280
1bd55598 3281SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3282 (*self) ++;
3283 }
1bd55598 3284SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3285 return self->operator bool();
3286 }
d55e5bfc 3287
36ed4f51
RD
3288#include <wx/fontutil.h>
3289#include <wx/fontmap.h>
3290#include <wx/fontenum.h>
d55e5bfc 3291
1bd55598 3292SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3293 return self->ToString();
3294 }
d55e5bfc 3295
36ed4f51
RD
3296 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3297 static wxNativeEncodingInfo info;
3298 if ( wxGetNativeFontEncoding(encoding, &info) )
3299 return &info;
3300 else
3301 return NULL;
d55e5bfc 3302 }
d55e5bfc 3303
1bd55598
RD
3304
3305SWIGINTERNINLINE PyObject *
3306SWIG_From_size_t (size_t value)
3307{
3308 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3309}
3310
3311
3312SWIGINTERNINLINE int
3313SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3314{
3315 unsigned long v;
3316 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3317 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3318 return res;
3319}
3320
3321SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3322 wxFontEncoding alt_enc;
3323 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3324 return PyInt_FromLong(alt_enc);
3325 else {
3326 Py_INCREF(Py_None);
3327 return Py_None;
3328 }
3329 }
1bd55598 3330SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3331 wxNativeFontInfo nfi;
3332 nfi.FromString(info);
3333 return new wxFont(nfi);
3334 }
1bd55598 3335SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3336 return wxFont::New(pointSize, family, flags, face, encoding);
3337 }
1bd55598 3338SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3339 return wxFontBase::New(pixelSize, family,
3340 style, weight, underlined,
3341 face, encoding);
3342 }
1bd55598 3343SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3344 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3345 }
1bd55598
RD
3346SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3347SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3348
36ed4f51
RD
3349class wxPyFontEnumerator : public wxFontEnumerator {
3350public:
3351 wxPyFontEnumerator() {}
3352 ~wxPyFontEnumerator() {}
d55e5bfc 3353
36ed4f51
RD
3354 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3355 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3356
36ed4f51
RD
3357 PYPRIVATE;
3358};
d55e5bfc 3359
36ed4f51
RD
3360IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3361IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3362
36ed4f51 3363
704eda0c 3364SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3365 PyObject* ret;
704eda0c 3366 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3367 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3368 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3369 wxPyEndBlockThreads(blocked);
3370 return ret;
36ed4f51 3371 }
704eda0c 3372SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3373 PyObject* ret;
704eda0c 3374 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3375 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3376 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3377 wxPyEndBlockThreads(blocked);
3378 return ret;
36ed4f51
RD
3379 }
3380
3381#include <locale.h>
3382
1bd55598 3383SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3384 wxLocale* loc;
3385 if (language == -1)
3386 loc = new wxLocale();
3387 else
3388 loc = new wxLocale(language, flags);
3389 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3390 // for the floating point conversions and such to work right.
3391#if PY_VERSION_HEX < 0x02040000
3392 setlocale(LC_NUMERIC, "C");
3393#endif
3394 return loc;
3395 }
1bd55598 3396SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3397 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3398 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3399 // for the floating point conversions and such to work right.
3400#if PY_VERSION_HEX < 0x02040000
3401 setlocale(LC_NUMERIC, "C");
3402#endif
3403 return rc;
3404 }
1bd55598 3405SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3406 bool rc = self->Init(language, flags);
3407 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3408 // for the floating point conversions and such to work right.
3409#if PY_VERSION_HEX < 0x02040000
3410 setlocale(LC_NUMERIC, "C");
3411#endif
3412 return rc;
3413 }
3414
fc46b7f3
RD
3415class wxPyLocale : public wxLocale
3416{
3417public:
3418 wxPyLocale();
3419
3420 wxPyLocale(const wxChar *szName, // name (for messages)
3421 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3422 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3423 bool bLoadDefault = true, // preload wxstd.mo?
3424 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3425
3426 wxPyLocale(int language, // wxLanguage id or custom language
3427 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3428
3429 ~wxPyLocale();
3430
3431 virtual const wxChar *GetString(const wxChar *szOrigString,
3432 const wxChar *szDomain = NULL) const;
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szOrigString2, size_t n,
3435 const wxChar *szDomain = NULL) const;
3436
3437 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3438 const wxChar *szDomain = NULL) const;
3439 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3440 const wxChar *szOrigString2, size_t n,
3441 const wxChar *szDomain = NULL) const;
3442
3443 PYPRIVATE;
3444private:
3445 DECLARE_NO_COPY_CLASS(wxPyLocale)
3446};
3447
3448wxPyLocale::wxPyLocale() : wxLocale()
3449{
3450}
3451
3452wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3453 const wxChar *szShort, // dir prefix (for msg files)
3454 const wxChar *szLocale, // locale (for setlocale)
3455 bool bLoadDefault, // preload wxstd.mo?
3456 bool bConvertEncoding) // convert Win<->Unix if necessary?
3457 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3458{
3459}
3460
3461wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3462 int flags) : wxLocale(language, flags)
3463{
3464}
3465
3466wxPyLocale::~wxPyLocale()
3467{
3468}
3469
3470const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3471 const wxChar *szDomain) const
3472{
3473 wxChar *str = GetSingularString(szOrigString, szDomain);
3474 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3475}
3476
3477const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3478 const wxChar *szOrigString2, size_t n,
3479 const wxChar *szDomain) const
3480{
3481 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3482 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3483}
3484
3485wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3486 const wxChar *szDomain) const
3487{
3488 bool found;
3489 static wxString str;
3490 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.
3491 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3492 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3493 PyObject* param1 = wx2PyString(szOrigString);
3494 PyObject* param2 = wx2PyString(szDomain);
3495 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3496 Py_DECREF(param1);
3497 Py_DECREF(param2);
3498 if (ret) {
3499 str = Py2wxString(ret);
3500 Py_DECREF(ret);
3501 }
3502 }
3503 wxPyEndBlockThreads(blocked);
3504 return (found ? (wxChar*)str.c_str() : NULL);
3505}
3506
3507wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3508 const wxChar *szOrigString2, size_t n,
3509 const wxChar *szDomain) const
3510{
3511 bool found;
3512 static wxString str;
3513 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.
3514 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3515 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3516 PyObject* param1 = wx2PyString(szOrigString);
3517 PyObject* param2 = wx2PyString(szOrigString2);
3518 PyObject* param4 = wx2PyString(szDomain);
3519 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3520 Py_DECREF(param1);
3521 Py_DECREF(param2);
3522 Py_DECREF(param4);
3523 if( ret) {
3524 str = Py2wxString(ret);
3525 Py_DECREF(ret);
3526 }
3527 }
3528 wxPyEndBlockThreads(blocked);
3529 return (found ? (wxChar*)str.c_str() : NULL);
3530}
3531
3532SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3533 wxPyLocale* loc;
3534 if (language == -1)
3535 loc = new wxPyLocale();
3536 else
3537 loc = new wxPyLocale(language, flags);
3538 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3539 // for the floating point conversions and such to work right.
3540#if PY_VERSION_HEX < 0x02040000
3541 setlocale(LC_NUMERIC, "C");
3542#endif
3543 return loc;
3544 }
3545
36ed4f51
RD
3546#include "wx/wxPython/pydrawxxx.h"
3547
1bd55598 3548SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3549 wxColour col;
3550 self->GetPixel(x, y, &col);
3551 return col;
3552 }
1bd55598 3553SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3554 wxColour col;
3555 self->GetPixel(pt, &col);
3556 return col;
3557 }
3558
3559SWIGINTERN int
1bd55598 3560SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3561{
3562 if (PyNumber_Check(obj)) {
3563 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3564 return SWIG_OK;
d55e5bfc 3565 }
1bd55598 3566 return SWIG_TypeError;
36ed4f51
RD
3567}
3568
1bd55598 3569SWIGINTERN 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
3570 wxRect rv;
3571 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3572 return rv;
3573 }
1bd55598 3574SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3575 wxRect rect;
3576 self->GetClippingBox(rect);
3577 return rect;
3578 }
1bd55598 3579SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3580 wxArrayInt widths;
3581 self->GetPartialTextExtents(text, widths);
3582 return widths;
3583 }
3584
1bd55598 3585 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3586
1bd55598 3587SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3588 self->SetLogicalOrigin(point.x, point.y);
3589 }
1bd55598 3590SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3591 self->SetDeviceOrigin(point.x, point.y);
3592 }
1bd55598 3593SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3594 self->CalcBoundingBox(point.x, point.y);
3595 }
1bd55598 3596SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3597 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3598 }
1bd55598 3599SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3600 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3601 }
1bd55598 3602SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3603 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3604 }
1bd55598 3605SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3606 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3607 }
1bd55598 3608SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3609 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3610 }
1bd55598 3611SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3612 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3613 }
3614
3615static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3616 *x1 = dc->MinX();
3617 *y1 = dc->MinY();
3618 *x2 = dc->MaxX();
3619 *y2 = dc->MaxY();
3620}
3621
3622
3623#include <wx/dcbuffer.h>
3624
3625
3626#include <wx/dcps.h>
3627
3628
3629#include <wx/metafile.h>
3630
3631
72ef6efb
RD
3632#include <wx/graphics.h>
3633
3634
3635#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3636// C++ stub classes for platforms or build configurations that don't have
3637// wxGraphicsContext yet.
72ef6efb 3638
8bd35413
RD
3639class wxGraphicsRenderer;
3640class wxGraphicsMatrix;
3641
70d7cb34
RD
3642
3643class wxGraphicsObject : public wxObject
72ef6efb
RD
3644{
3645public :
8bd35413 3646 wxGraphicsObject() {}
70d7cb34 3647 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3648 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3649 "wx.GraphicsObject is not available on this platform.");
3650 }
3651 wxGraphicsObject( const wxGraphicsObject& ) {}
3652 virtual ~wxGraphicsObject() {}
3653 bool IsNull() const { return false; }
3654 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3655} ;
3656
3657
3658
3659class wxGraphicsPen : public wxGraphicsObject
3660{
8bd35413 3661public:
70d7cb34
RD
3662 wxGraphicsPen() {}
3663 virtual ~wxGraphicsPen() {}
3664} ;
3665wxGraphicsPen wxNullGraphicsPen;
3666
3667
3668
3669class wxGraphicsBrush : public wxGraphicsObject
3670{
3671public :
3672 wxGraphicsBrush() {}
3673 virtual ~wxGraphicsBrush() {}
3674} ;
3675wxGraphicsBrush wxNullGraphicsBrush;
3676
3677
3678
3679class wxGraphicsFont : public wxGraphicsObject
3680{
3681public :
3682 wxGraphicsFont() {}
3683 virtual ~wxGraphicsFont() {}
3684} ;
3685wxGraphicsFont wxNullGraphicsFont;
3686
3687
3688
3689class wxGraphicsPath : public wxGraphicsObject
3690{
3691public :
8bd35413 3692 wxGraphicsPath() { }
70d7cb34
RD
3693 wxGraphicsPath(wxGraphicsRenderer* ) {
3694 PyErr_SetString(PyExc_NotImplementedError,
3695 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3696 }
3697 virtual ~wxGraphicsPath() {}
70d7cb34 3698
72ef6efb 3699 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3700 void MoveToPoint( const wxPoint2DDouble& ) {}
3701 void AddLineToPoint( wxDouble, wxDouble ) {}
3702 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3703 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3704 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3705 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3706 void CloseSubpath() {}
8bd35413
RD
3707 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3708 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3709 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3710 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3711
3712 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3713 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3714 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3715 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3716
70d7cb34
RD
3717 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3718 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3719 void * GetNativePath() const { return NULL; }
8bd35413
RD
3720 void UnGetNativePath(void *) const {}
3721 void Transform( const wxGraphicsMatrix& ) {}
3722 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3723 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3724
8bd35413
RD
3725 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3726 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3727};
5c8c7dd3 3728wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3729
3730
3731class wxGraphicsMatrix : public wxGraphicsObject
3732{
3733public :
8bd35413 3734 wxGraphicsMatrix() { }
70d7cb34
RD
3735 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3736 PyErr_SetString(PyExc_NotImplementedError,
3737 "wx.GraphicsMatrix is not available on this platform.");
3738 }
3739 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3740 virtual void Concat( const wxGraphicsMatrix & ) {}
3741 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3742 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3743 wxDouble , wxDouble ) {}
248802d0
RD
3744 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3745 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 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; }
c8aaaf9e
RD
3823 virtual int GetLogicalFunction() const { return 0; }
3824 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3825 virtual void Translate( wxDouble , wxDouble ) {}
3826 virtual void Scale( wxDouble , wxDouble ) {}
3827 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3828 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3829 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3830 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3831
3832 virtual void SetPen( const wxGraphicsPen& ) {}
3833 void SetPen( const wxPen& ) {}
3834
3835 virtual void SetBrush( const wxGraphicsBrush& ) {}
3836 void SetBrush( const wxBrush& ) {}
3837
3838 virtual void SetFont( const wxGraphicsFont& ) {}
3839 void SetFont( const wxFont&, const wxColour& ) {}
3840
8bd35413
RD
3841 virtual void StrokePath( const wxGraphicsPath & ) {}
3842 virtual void FillPath( const wxGraphicsPath &, int ) {}
3843 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3844
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3847 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3848 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3849 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3850 wxDouble *, wxDouble * ) const {}
3851 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3852
3853 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3854 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3855
3856 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3858 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3859 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3860 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
4e8107d5 3862 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3863 virtual bool ShouldOffset() const { return false; }
3864};
3865
3866
3867class wxGraphicsRenderer : public wxObject
3868{
3869public :
3870 wxGraphicsRenderer() {
3871 PyErr_SetString(PyExc_NotImplementedError,
3872 "wx.GraphicsRenderer is not available on this platform.");
3873 }
3874
3875 virtual ~wxGraphicsRenderer() {}
3876
8bd35413 3877 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3878 PyErr_SetString(PyExc_NotImplementedError,
3879 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3880 return NULL;
3881 }
70d7cb34
RD
3882
3883 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3884 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3885 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3886 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3887 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3888
8bd35413 3889 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3890
8bd35413
RD
3891 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3892 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3893
8bd35413
RD
3894 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3895 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3896 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3897 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3898 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3899 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3900 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3901};
3902
3903
70d7cb34 3904
72ef6efb
RD
3905class wxGCDC: public wxWindowDC
3906{
3907public:
3908 wxGCDC(const wxWindowDC&) {
3909 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3910 PyErr_SetString(PyExc_NotImplementedError,
3911 "wxGCDC is not available on this platform.");
3912 wxPyEndBlockThreads(blocked);
3913 }
70d7cb34 3914
48a0c021
RD
3915 wxGCDC(const wxWindow*) {
3916 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3917 PyErr_SetString(PyExc_NotImplementedError,
3918 "wxGCDC is not available on this platform.");
3919 wxPyEndBlockThreads(blocked);
3920 }
3921
72ef6efb
RD
3922 wxGCDC() {
3923 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3924 PyErr_SetString(PyExc_NotImplementedError,
3925 "wxGCDC is not available on this platform.");
3926 wxPyEndBlockThreads(blocked);
3927 }
70d7cb34 3928
72ef6efb
RD
3929 virtual ~wxGCDC() {}
3930
b876c1e4
RD
3931 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3932 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3933};
3934
3935#endif
3936
f89238b9
RD
3937SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3938 if ( !backgroundBrush.IsNull() )
3939 self->DrawText(str, x, y, backgroundBrush);
3940 else
3941 self->DrawText(str, x, y);
3942 }
3943SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3944 if ( !backgroundBrush.IsNull() )
3945 self->DrawText(str, x, y, angle, backgroundBrush);
3946 else
3947 self->DrawText(str, x, y, angle);
3948 }
be68621e
RD
3949SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3950 wxDouble width = 0.0,
3951 height = 0.0;
3952 self->GetTextExtent(text, &width, &height, NULL, NULL);
3953 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3954 PyObject* rv = PyTuple_New(2);
3955 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3956 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3957 return rv;
3958 }
b39fe951
RD
3959SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3960 wxArrayDouble widths;
3961 self->GetPartialTextExtents(text, widths);
3962 return widths;
3963 }
f8eb59b9 3964SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3965 size_t c1, c2, count;
3966 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3967 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3968
3969 if ( beginP != NULL && endP != NULL )
3970 {
3971 count = wxMin(c1, c2);
3972 self->StrokeLines(count, beginP, endP);
3973 }
3974 delete [] beginP;
3975 delete [] endP;
3976 }
72ef6efb 3977
0a27f394
RD
3978#include "wx/dcgraph.h"
3979
3980
66493fc7
RD
3981#include <wx/overlay.h>
3982
3983
36ed4f51 3984
1bd55598 3985SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3986 self->AddColour(name, wxColour(red, green, blue));
3987 }
3988
da91cb0f
RD
3989 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3990 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3991 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3992 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3993
3994
36ed4f51
RD
3995#include <wx/effects.h>
3996
be9b1dca
RD
3997
3998#include "wx/renderer.h"
3999
4000
32fe5131 4001SWIGINTERNINLINE PyObject*
1bd55598 4002 SWIG_From_bool (bool value)
be9b1dca 4003{
1bd55598 4004 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4005}
4006
27e45892
RD
4007
4008#include "wx/wxPython/pseudodc.h"
4009
4010SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4011 wxRect rect;
4012 self->GetIdBounds(id, rect);
4013 return rect;
4014 }
36ed4f51
RD
4015#ifdef __cplusplus
4016extern "C" {
4017#endif
1bd55598
RD
4018SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxGDIObject *result = 0 ;
4021
4022 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4023 {
4024 if (!wxPyCheckForApp()) SWIG_fail;
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 result = (wxGDIObject *)new wxGDIObject();
4027 wxPyEndAllowThreads(__tstate);
4028 if (PyErr_Occurred()) SWIG_fail;
4029 }
4030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4031 return resultobj;
4032fail:
4033 return NULL;
d55e5bfc
RD
4034}
4035
4036
1bd55598
RD
4037SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4038 PyObject *resultobj = 0;
4039 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4040 void *argp1 = 0 ;
4041 int res1 = 0 ;
4042 PyObject *swig_obj[1] ;
4043
4044 if (!args) SWIG_fail;
4045 swig_obj[0] = args;
4046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4047 if (!SWIG_IsOK(res1)) {
4048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4049 }
4050 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4051 {
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 delete arg1;
d55e5bfc 4054
1bd55598
RD
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_Py_Void();
4059 return resultobj;
4060fail:
4061 return NULL;
d55e5bfc
RD
4062}
4063
4064
1bd55598
RD
4065SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4066 PyObject *resultobj = 0;
4067 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4068 bool result;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 PyObject *swig_obj[1] ;
4072
4073 if (!args) SWIG_fail;
4074 swig_obj[0] = args;
4075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4078 }
4079 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4080 {
4081 PyThreadState* __tstate = wxPyBeginAllowThreads();
4082 result = (bool)(arg1)->IsNull();
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 {
4087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4088 }
4089 return resultobj;
4090fail:
4091 return NULL;
4092}
4093
4094
4095SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4096 PyObject *obj;
4097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4098 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4099 return SWIG_Py_Void();
4100}
4101
4102SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4103 return SWIG_Python_InitShadowInstance(args);
4104}
4105
4106SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4107 PyObject *resultobj = 0;
4108 byte arg1 = (byte) 0 ;
4109 byte arg2 = (byte) 0 ;
4110 byte arg3 = (byte) 0 ;
fc46b7f3 4111 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4112 wxColour *result = 0 ;
4113 unsigned char val1 ;
4114 int ecode1 = 0 ;
4115 unsigned char val2 ;
4116 int ecode2 = 0 ;
4117 unsigned char val3 ;
4118 int ecode3 = 0 ;
fc46b7f3
RD
4119 unsigned char val4 ;
4120 int ecode4 = 0 ;
1bd55598
RD
4121 PyObject * obj0 = 0 ;
4122 PyObject * obj1 = 0 ;
4123 PyObject * obj2 = 0 ;
fc46b7f3 4124 PyObject * obj3 = 0 ;
1bd55598 4125 char * kwnames[] = {
fc46b7f3 4126 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4127 };
4128
fc46b7f3 4129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4130 if (obj0) {
4131 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4132 if (!SWIG_IsOK(ecode1)) {
4133 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4134 }
4135 arg1 = static_cast< byte >(val1);
4136 }
4137 if (obj1) {
4138 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4139 if (!SWIG_IsOK(ecode2)) {
4140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4141 }
4142 arg2 = static_cast< byte >(val2);
4143 }
4144 if (obj2) {
4145 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4146 if (!SWIG_IsOK(ecode3)) {
4147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4148 }
4149 arg3 = static_cast< byte >(val3);
4150 }
fc46b7f3
RD
4151 if (obj3) {
4152 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4153 if (!SWIG_IsOK(ecode4)) {
4154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4155 }
4156 arg4 = static_cast< byte >(val4);
4157 }
1bd55598
RD
4158 {
4159 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4160 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4165 return resultobj;
4166fail:
4167 return NULL;
d55e5bfc
RD
4168}
4169
4170
1bd55598
RD
4171SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4172 PyObject *resultobj = 0;
4173 wxString *arg1 = 0 ;
4174 wxColour *result = 0 ;
4175 bool temp1 = false ;
4176 PyObject * obj0 = 0 ;
4177 char * kwnames[] = {
4178 (char *) "colorName", NULL
4179 };
4180
4181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4182 {
4183 arg1 = wxString_in_helper(obj0);
4184 if (arg1 == NULL) SWIG_fail;
4185 temp1 = true;
4186 }
4187 {
4188 if (!wxPyCheckForApp()) SWIG_fail;
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (wxColour *)new wxColour((wxString const &)*arg1);
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4195 {
4196 if (temp1)
4197 delete arg1;
4198 }
4199 return resultobj;
4200fail:
4201 {
4202 if (temp1)
4203 delete arg1;
4204 }
4205 return NULL;
36ed4f51
RD
4206}
4207
4208
1bd55598
RD
4209SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4210 PyObject *resultobj = 0;
4211 unsigned long arg1 ;
4212 wxColour *result = 0 ;
4213 unsigned long val1 ;
4214 int ecode1 = 0 ;
4215 PyObject * obj0 = 0 ;
4216 char * kwnames[] = {
4217 (char *) "colRGB", NULL
4218 };
4219
4220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4221 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4222 if (!SWIG_IsOK(ecode1)) {
4223 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4224 }
4225 arg1 = static_cast< unsigned long >(val1);
4226 {
4227 PyThreadState* __tstate = wxPyBeginAllowThreads();
4228 result = (wxColour *)new wxColour(arg1);
4229 wxPyEndAllowThreads(__tstate);
4230 if (PyErr_Occurred()) SWIG_fail;
4231 }
4232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4233 return resultobj;
4234fail:
4235 return NULL;
d55e5bfc
RD
4236}
4237
4238
1bd55598
RD
4239SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4240 PyObject *resultobj = 0;
4241 wxColour *arg1 = (wxColour *) 0 ;
4242 void *argp1 = 0 ;
4243 int res1 = 0 ;
4244 PyObject *swig_obj[1] ;
4245
4246 if (!args) SWIG_fail;
4247 swig_obj[0] = args;
4248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4249 if (!SWIG_IsOK(res1)) {
4250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4251 }
4252 arg1 = reinterpret_cast< wxColour * >(argp1);
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 delete arg1;
d55e5bfc 4256
1bd55598
RD
4257 wxPyEndAllowThreads(__tstate);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 resultobj = SWIG_Py_Void();
4261 return resultobj;
4262fail:
4263 return NULL;
d55e5bfc
RD
4264}
4265
4266
1bd55598
RD
4267SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4268 PyObject *resultobj = 0;
4269 wxColour *arg1 = (wxColour *) 0 ;
4270 byte result;
4271 void *argp1 = 0 ;
4272 int res1 = 0 ;
4273 PyObject *swig_obj[1] ;
4274
4275 if (!args) SWIG_fail;
4276 swig_obj[0] = args;
4277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4278 if (!SWIG_IsOK(res1)) {
4279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4280 }
4281 arg1 = reinterpret_cast< wxColour * >(argp1);
4282 {
4283 PyThreadState* __tstate = wxPyBeginAllowThreads();
4284 result = (byte)(arg1)->Red();
4285 wxPyEndAllowThreads(__tstate);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 }
4288 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4289 return resultobj;
4290fail:
4291 return NULL;
d55e5bfc
RD
4292}
4293
4294
1bd55598
RD
4295SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4296 PyObject *resultobj = 0;
4297 wxColour *arg1 = (wxColour *) 0 ;
4298 byte result;
4299 void *argp1 = 0 ;
4300 int res1 = 0 ;
4301 PyObject *swig_obj[1] ;
4302
4303 if (!args) SWIG_fail;
4304 swig_obj[0] = args;
4305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4306 if (!SWIG_IsOK(res1)) {
4307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4308 }
4309 arg1 = reinterpret_cast< wxColour * >(argp1);
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = (byte)(arg1)->Green();
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4317 return resultobj;
4318fail:
4319 return NULL;
d55e5bfc
RD
4320}
4321
4322
1bd55598
RD
4323SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4324 PyObject *resultobj = 0;
4325 wxColour *arg1 = (wxColour *) 0 ;
4326 byte result;
4327 void *argp1 = 0 ;
4328 int res1 = 0 ;
4329 PyObject *swig_obj[1] ;
4330
4331 if (!args) SWIG_fail;
4332 swig_obj[0] = args;
4333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4334 if (!SWIG_IsOK(res1)) {
4335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4336 }
4337 arg1 = reinterpret_cast< wxColour * >(argp1);
4338 {
4339 PyThreadState* __tstate = wxPyBeginAllowThreads();
4340 result = (byte)(arg1)->Blue();
4341 wxPyEndAllowThreads(__tstate);
4342 if (PyErr_Occurred()) SWIG_fail;
4343 }
4344 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4345 return resultobj;
4346fail:
4347 return NULL;
d55e5bfc
RD
4348}
4349
4350
fc46b7f3
RD
4351SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4352 PyObject *resultobj = 0;
4353 wxColour *arg1 = (wxColour *) 0 ;
4354 byte result;
4355 void *argp1 = 0 ;
4356 int res1 = 0 ;
4357 PyObject *swig_obj[1] ;
4358
4359 if (!args) SWIG_fail;
4360 swig_obj[0] = args;
4361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4362 if (!SWIG_IsOK(res1)) {
4363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4364 }
4365 arg1 = reinterpret_cast< wxColour * >(argp1);
4366 {
4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
4368 result = (byte)(arg1)->Alpha();
4369 wxPyEndAllowThreads(__tstate);
4370 if (PyErr_Occurred()) SWIG_fail;
4371 }
4372 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4373 return resultobj;
4374fail:
4375 return NULL;
4376}
4377
4378
b39fe951 4379SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4380 PyObject *resultobj = 0;
4381 wxColour *arg1 = (wxColour *) 0 ;
4382 bool result;
4383 void *argp1 = 0 ;
4384 int res1 = 0 ;
4385 PyObject *swig_obj[1] ;
4386
4387 if (!args) SWIG_fail;
4388 swig_obj[0] = args;
4389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4390 if (!SWIG_IsOK(res1)) {
b39fe951 4391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4392 }
4393 arg1 = reinterpret_cast< wxColour * >(argp1);
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4396 result = (bool)(arg1)->IsOk();
1bd55598
RD
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 {
4401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4402 }
4403 return resultobj;
4404fail:
4405 return NULL;
4406}
4407
4408
4409SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj = 0;
4411 wxColour *arg1 = (wxColour *) 0 ;
4412 byte arg2 ;
4413 byte arg3 ;
4414 byte arg4 ;
fc46b7f3 4415 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 unsigned char val2 ;
4419 int ecode2 = 0 ;
4420 unsigned char val3 ;
4421 int ecode3 = 0 ;
4422 unsigned char val4 ;
4423 int ecode4 = 0 ;
fc46b7f3
RD
4424 unsigned char val5 ;
4425 int ecode5 = 0 ;
1bd55598
RD
4426 PyObject * obj0 = 0 ;
4427 PyObject * obj1 = 0 ;
4428 PyObject * obj2 = 0 ;
4429 PyObject * obj3 = 0 ;
fc46b7f3 4430 PyObject * obj4 = 0 ;
1bd55598 4431 char * kwnames[] = {
fc46b7f3 4432 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4433 };
4434
fc46b7f3 4435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4437 if (!SWIG_IsOK(res1)) {
4438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4439 }
4440 arg1 = reinterpret_cast< wxColour * >(argp1);
4441 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4442 if (!SWIG_IsOK(ecode2)) {
4443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4444 }
4445 arg2 = static_cast< byte >(val2);
4446 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4447 if (!SWIG_IsOK(ecode3)) {
4448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4449 }
4450 arg3 = static_cast< byte >(val3);
4451 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4452 if (!SWIG_IsOK(ecode4)) {
4453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4454 }
4455 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4456 if (obj4) {
4457 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4458 if (!SWIG_IsOK(ecode5)) {
4459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4460 }
4461 arg5 = static_cast< byte >(val5);
4462 }
1bd55598
RD
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4465 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_Py_Void();
4470 return resultobj;
4471fail:
4472 return NULL;
4473}
4474
4475
4476SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4477 PyObject *resultobj = 0;
4478 wxColour *arg1 = (wxColour *) 0 ;
4479 unsigned long arg2 ;
4480 void *argp1 = 0 ;
4481 int res1 = 0 ;
4482 unsigned long val2 ;
4483 int ecode2 = 0 ;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 char * kwnames[] = {
4487 (char *) "self",(char *) "colRGB", NULL
4488 };
4489
4490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4492 if (!SWIG_IsOK(res1)) {
4493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4494 }
4495 arg1 = reinterpret_cast< wxColour * >(argp1);
4496 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4497 if (!SWIG_IsOK(ecode2)) {
4498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4499 }
4500 arg2 = static_cast< unsigned long >(val2);
4501 {
4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
4503 (arg1)->Set(arg2);
4504 wxPyEndAllowThreads(__tstate);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 }
4507 resultobj = SWIG_Py_Void();
4508 return resultobj;
4509fail:
4510 return NULL;
4511}
4512
4513
4514SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4515 PyObject *resultobj = 0;
4516 wxColour *arg1 = (wxColour *) 0 ;
4517 wxString *arg2 = 0 ;
4518 void *argp1 = 0 ;
4519 int res1 = 0 ;
4520 bool temp2 = false ;
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 char * kwnames[] = {
4524 (char *) "self",(char *) "colourName", NULL
4525 };
4526
4527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4529 if (!SWIG_IsOK(res1)) {
4530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4531 }
4532 arg1 = reinterpret_cast< wxColour * >(argp1);
4533 {
4534 arg2 = wxString_in_helper(obj1);
4535 if (arg2 == NULL) SWIG_fail;
4536 temp2 = true;
4537 }
4538 {
4539 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4540 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4541 wxPyEndAllowThreads(__tstate);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 resultobj = SWIG_Py_Void();
4545 {
4546 if (temp2)
4547 delete arg2;
4548 }
4549 return resultobj;
4550fail:
4551 {
4552 if (temp2)
4553 delete arg2;
4554 }
4555 return NULL;
d55e5bfc
RD
4556}
4557
4558
2131d850
RD
4559SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4560 PyObject *resultobj = 0;
4561 wxColour *arg1 = (wxColour *) 0 ;
4562 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4563 wxString result;
4564 void *argp1 = 0 ;
4565 int res1 = 0 ;
4566 long val2 ;
4567 int ecode2 = 0 ;
4568 PyObject * obj0 = 0 ;
4569 PyObject * obj1 = 0 ;
4570 char * kwnames[] = {
4571 (char *) "self",(char *) "flags", NULL
4572 };
4573
4574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4576 if (!SWIG_IsOK(res1)) {
4577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4578 }
4579 arg1 = reinterpret_cast< wxColour * >(argp1);
4580 if (obj1) {
4581 ecode2 = SWIG_AsVal_long(obj1, &val2);
4582 if (!SWIG_IsOK(ecode2)) {
4583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4584 }
4585 arg2 = static_cast< long >(val2);
4586 }
4587 {
4588 PyThreadState* __tstate = wxPyBeginAllowThreads();
4589 result = ((wxColour const *)arg1)->GetAsString(arg2);
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 {
4594#if wxUSE_UNICODE
4595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4596#else
4597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4598#endif
4599 }
4600 return resultobj;
4601fail:
4602 return NULL;
4603}
4604
4605
1bd55598
RD
4606SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4607 PyObject *resultobj = 0;
4608 wxColour *arg1 = (wxColour *) 0 ;
4609 long result;
4610 void *argp1 = 0 ;
4611 int res1 = 0 ;
4612 PyObject *swig_obj[1] ;
4613
4614 if (!args) SWIG_fail;
4615 swig_obj[0] = args;
4616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4617 if (!SWIG_IsOK(res1)) {
4618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4619 }
4620 arg1 = reinterpret_cast< wxColour * >(argp1);
4621 {
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (long)((wxColour const *)arg1)->GetPixel();
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = SWIG_From_long(static_cast< long >(result));
4628 return resultobj;
4629fail:
4630 return NULL;
4631}
4632
4633
4634SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj = 0;
4636 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4637 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4638 bool result;
4639 void *argp1 = 0 ;
4640 int res1 = 0 ;
1bd55598
RD
4641 PyObject * obj0 = 0 ;
4642 PyObject * obj1 = 0 ;
4643 char * kwnames[] = {
e9d6f3a4 4644 (char *) "self",(char *) "other", NULL
1bd55598
RD
4645 };
4646
4647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4649 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4651 }
4652 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4653 arg2 = obj1;
1bd55598 4654 {
e9d6f3a4 4655 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 {
4659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4660 }
4661 return resultobj;
4662fail:
4663 return NULL;
4664}
4665
4666
4667SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj = 0;
4669 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4670 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4671 bool result;
4672 void *argp1 = 0 ;
4673 int res1 = 0 ;
1bd55598
RD
4674 PyObject * obj0 = 0 ;
4675 PyObject * obj1 = 0 ;
4676 char * kwnames[] = {
e9d6f3a4 4677 (char *) "self",(char *) "other", NULL
1bd55598
RD
4678 };
4679
4680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4682 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4684 }
4685 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4686 arg2 = obj1;
1bd55598 4687 {
e9d6f3a4 4688 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4689 if (PyErr_Occurred()) SWIG_fail;
4690 }
4691 {
4692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4693 }
4694 return resultobj;
4695fail:
4696 return NULL;
d55e5bfc
RD
4697}
4698
4699
fc46b7f3 4700SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4701 PyObject *resultobj = 0;
4702 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4703 bool arg2 = (bool) false ;
1bd55598
RD
4704 PyObject *result = 0 ;
4705 void *argp1 = 0 ;
4706 int res1 = 0 ;
fc46b7f3
RD
4707 bool val2 ;
4708 int ecode2 = 0 ;
4709 PyObject * obj0 = 0 ;
4710 PyObject * obj1 = 0 ;
4711 char * kwnames[] = {
4712 (char *) "self",(char *) "includeAlpha", NULL
4713 };
1bd55598 4714
fc46b7f3
RD
4715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4719 }
4720 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4721 if (obj1) {
4722 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4723 if (!SWIG_IsOK(ecode2)) {
4724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4725 }
4726 arg2 = static_cast< bool >(val2);
4727 }
1bd55598 4728 {
fc46b7f3 4729 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 resultobj = result;
4733 return resultobj;
4734fail:
4735 return NULL;
d55e5bfc
RD
4736}
4737
4738
1bd55598
RD
4739SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4740 PyObject *resultobj = 0;
4741 wxColour *arg1 = (wxColour *) 0 ;
4742 unsigned long result;
4743 void *argp1 = 0 ;
4744 int res1 = 0 ;
4745 PyObject *swig_obj[1] ;
4746
4747 if (!args) SWIG_fail;
4748 swig_obj[0] = args;
4749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4750 if (!SWIG_IsOK(res1)) {
4751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4752 }
4753 arg1 = reinterpret_cast< wxColour * >(argp1);
4754 {
1bd55598 4755 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4759 return resultobj;
4760fail:
4761 return NULL;
4762}
4763
4764
4765SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4766 PyObject *obj;
4767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4768 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4769 return SWIG_Py_Void();
4770}
4771
4772SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4773 return SWIG_Python_InitShadowInstance(args);
4774}
4775
4776SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4777 PyObject *resultobj = 0;
4778 int arg1 ;
4779 unsigned char *arg2 = (unsigned char *) 0 ;
4780 unsigned char *arg3 = (unsigned char *) 0 ;
4781 unsigned char *arg4 = (unsigned char *) 0 ;
4782 wxPalette *result = 0 ;
4783 int val1 ;
4784 int ecode1 = 0 ;
4785 void *argp2 = 0 ;
4786 int res2 = 0 ;
4787 void *argp3 = 0 ;
4788 int res3 = 0 ;
4789 void *argp4 = 0 ;
4790 int res4 = 0 ;
4791 PyObject * obj0 = 0 ;
4792 PyObject * obj1 = 0 ;
4793 PyObject * obj2 = 0 ;
4794 PyObject * obj3 = 0 ;
4795 char * kwnames[] = {
4796 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4797 };
4798
4799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4800 ecode1 = SWIG_AsVal_int(obj0, &val1);
4801 if (!SWIG_IsOK(ecode1)) {
4802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4803 }
4804 arg1 = static_cast< int >(val1);
4805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4806 if (!SWIG_IsOK(res2)) {
4807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4808 }
4809 arg2 = reinterpret_cast< unsigned char * >(argp2);
4810 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4811 if (!SWIG_IsOK(res3)) {
4812 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4813 }
4814 arg3 = reinterpret_cast< unsigned char * >(argp3);
4815 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4816 if (!SWIG_IsOK(res4)) {
4817 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4818 }
4819 arg4 = reinterpret_cast< unsigned char * >(argp4);
4820 {
4821 if (!wxPyCheckForApp()) SWIG_fail;
4822 PyThreadState* __tstate = wxPyBeginAllowThreads();
4823 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4824 wxPyEndAllowThreads(__tstate);
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
4827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4828 return resultobj;
4829fail:
4830 return NULL;
d55e5bfc
RD
4831}
4832
4833
1bd55598
RD
4834SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4835 PyObject *resultobj = 0;
4836 wxPalette *arg1 = (wxPalette *) 0 ;
4837 void *argp1 = 0 ;
4838 int res1 = 0 ;
4839 PyObject *swig_obj[1] ;
4840
4841 if (!args) SWIG_fail;
4842 swig_obj[0] = args;
4843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4844 if (!SWIG_IsOK(res1)) {
4845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4846 }
4847 arg1 = reinterpret_cast< wxPalette * >(argp1);
4848 {
4849 PyThreadState* __tstate = wxPyBeginAllowThreads();
4850 delete arg1;
d55e5bfc 4851
1bd55598
RD
4852 wxPyEndAllowThreads(__tstate);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 resultobj = SWIG_Py_Void();
4856 return resultobj;
4857fail:
4858 return NULL;
4859}
4860
4861
4862SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4863 PyObject *resultobj = 0;
4864 wxPalette *arg1 = (wxPalette *) 0 ;
4865 byte arg2 ;
4866 byte arg3 ;
4867 byte arg4 ;
4868 int result;
4869 void *argp1 = 0 ;
4870 int res1 = 0 ;
4871 unsigned char val2 ;
4872 int ecode2 = 0 ;
4873 unsigned char val3 ;
4874 int ecode3 = 0 ;
4875 unsigned char val4 ;
4876 int ecode4 = 0 ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 PyObject * obj2 = 0 ;
4880 PyObject * obj3 = 0 ;
4881 char * kwnames[] = {
4882 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4883 };
4884
4885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4889 }
4890 arg1 = reinterpret_cast< wxPalette * >(argp1);
4891 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4892 if (!SWIG_IsOK(ecode2)) {
4893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4894 }
4895 arg2 = static_cast< byte >(val2);
4896 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4897 if (!SWIG_IsOK(ecode3)) {
4898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4899 }
4900 arg3 = static_cast< byte >(val3);
4901 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4902 if (!SWIG_IsOK(ecode4)) {
4903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4904 }
4905 arg4 = static_cast< byte >(val4);
4906 {
4907 PyThreadState* __tstate = wxPyBeginAllowThreads();
4908 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4909 wxPyEndAllowThreads(__tstate);
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 resultobj = SWIG_From_int(static_cast< int >(result));
4913 return resultobj;
4914fail:
4915 return NULL;
4916}
4917
4918
4919SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj = 0;
4921 wxPalette *arg1 = (wxPalette *) 0 ;
4922 int arg2 ;
4923 byte *arg3 = (byte *) 0 ;
4924 byte *arg4 = (byte *) 0 ;
4925 byte *arg5 = (byte *) 0 ;
4926 bool result;
4927 void *argp1 = 0 ;
4928 int res1 = 0 ;
4929 int val2 ;
4930 int ecode2 = 0 ;
4931 byte temp3 ;
4932 int res3 = SWIG_TMPOBJ ;
4933 byte temp4 ;
4934 int res4 = SWIG_TMPOBJ ;
4935 byte temp5 ;
4936 int res5 = SWIG_TMPOBJ ;
4937 PyObject * obj0 = 0 ;
4938 PyObject * obj1 = 0 ;
4939 char * kwnames[] = {
4940 (char *) "self",(char *) "pixel", NULL
4941 };
4942
4943 arg3 = &temp3;
4944 arg4 = &temp4;
4945 arg5 = &temp5;
4946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4948 if (!SWIG_IsOK(res1)) {
4949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4950 }
4951 arg1 = reinterpret_cast< wxPalette * >(argp1);
4952 ecode2 = SWIG_AsVal_int(obj1, &val2);
4953 if (!SWIG_IsOK(ecode2)) {
4954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4955 }
4956 arg2 = static_cast< int >(val2);
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 {
4964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4965 }
4966 if (SWIG_IsTmpObj(res3)) {
4967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4968 } else {
4969 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4971 }
4972 if (SWIG_IsTmpObj(res4)) {
4973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4974 } else {
4975 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4977 }
4978 if (SWIG_IsTmpObj(res5)) {
4979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4980 } else {
4981 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4983 }
4984 return resultobj;
4985fail:
4986 return NULL;
d55e5bfc
RD
4987}
4988
4989
1bd55598
RD
4990SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4991 PyObject *resultobj = 0;
4992 wxPalette *arg1 = (wxPalette *) 0 ;
4993 int result;
4994 void *argp1 = 0 ;
4995 int res1 = 0 ;
4996 PyObject *swig_obj[1] ;
4997
4998 if (!args) SWIG_fail;
4999 swig_obj[0] = args;
5000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5001 if (!SWIG_IsOK(res1)) {
5002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5003 }
5004 arg1 = reinterpret_cast< wxPalette * >(argp1);
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_From_int(static_cast< int >(result));
5012 return resultobj;
5013fail:
5014 return NULL;
d55e5bfc
RD
5015}
5016
5017
b39fe951 5018SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5019 PyObject *resultobj = 0;
5020 wxPalette *arg1 = (wxPalette *) 0 ;
5021 bool result;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 PyObject *swig_obj[1] ;
5025
5026 if (!args) SWIG_fail;
5027 swig_obj[0] = args;
5028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5029 if (!SWIG_IsOK(res1)) {
b39fe951 5030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5031 }
5032 arg1 = reinterpret_cast< wxPalette * >(argp1);
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5035 result = (bool)(arg1)->IsOk();
1bd55598
RD
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 {
5040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5041 }
5042 return resultobj;
5043fail:
5044 return NULL;
5045}
5046
5047
5048SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5049 PyObject *obj;
5050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5051 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5052 return SWIG_Py_Void();
5053}
5054
5055SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5056 return SWIG_Python_InitShadowInstance(args);
5057}
5058
5059SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj = 0;
5061 wxColour *arg1 = 0 ;
5062 int arg2 = (int) 1 ;
5063 int arg3 = (int) wxSOLID ;
5064 wxPen *result = 0 ;
5065 wxColour temp1 ;
5066 int val2 ;
5067 int ecode2 = 0 ;
5068 int val3 ;
5069 int ecode3 = 0 ;
5070 PyObject * obj0 = 0 ;
5071 PyObject * obj1 = 0 ;
5072 PyObject * obj2 = 0 ;
5073 char * kwnames[] = {
5074 (char *) "colour",(char *) "width",(char *) "style", NULL
5075 };
5076
5077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5078 {
5079 arg1 = &temp1;
5080 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5081 }
5082 if (obj1) {
5083 ecode2 = SWIG_AsVal_int(obj1, &val2);
5084 if (!SWIG_IsOK(ecode2)) {
5085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5086 }
5087 arg2 = static_cast< int >(val2);
5088 }
5089 if (obj2) {
5090 ecode3 = SWIG_AsVal_int(obj2, &val3);
5091 if (!SWIG_IsOK(ecode3)) {
5092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5093 }
5094 arg3 = static_cast< int >(val3);
5095 }
5096 {
5097 if (!wxPyCheckForApp()) SWIG_fail;
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5104 return resultobj;
5105fail:
5106 return NULL;
d55e5bfc
RD
5107}
5108
5109
1bd55598
RD
5110SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5111 PyObject *resultobj = 0;
5112 wxPen *arg1 = (wxPen *) 0 ;
5113 void *argp1 = 0 ;
5114 int res1 = 0 ;
5115 PyObject *swig_obj[1] ;
5116
5117 if (!args) SWIG_fail;
5118 swig_obj[0] = args;
5119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5120 if (!SWIG_IsOK(res1)) {
5121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5122 }
5123 arg1 = reinterpret_cast< wxPen * >(argp1);
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 delete arg1;
f78cc896 5127
1bd55598
RD
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_Py_Void();
5132 return resultobj;
5133fail:
5134 return NULL;
f78cc896
RD
5135}
5136
5137
1bd55598
RD
5138SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5139 PyObject *resultobj = 0;
5140 wxPen *arg1 = (wxPen *) 0 ;
5141 int result;
5142 void *argp1 = 0 ;
5143 int res1 = 0 ;
5144 PyObject *swig_obj[1] ;
5145
5146 if (!args) SWIG_fail;
5147 swig_obj[0] = args;
5148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5149 if (!SWIG_IsOK(res1)) {
5150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5151 }
5152 arg1 = reinterpret_cast< wxPen * >(argp1);
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (int)(arg1)->GetCap();
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_From_int(static_cast< int >(result));
5160 return resultobj;
5161fail:
5162 return NULL;
d55e5bfc
RD
5163}
5164
5165
1bd55598
RD
5166SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 wxPen *arg1 = (wxPen *) 0 ;
5169 wxColour result;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject *swig_obj[1] ;
5173
5174 if (!args) SWIG_fail;
5175 swig_obj[0] = args;
5176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5179 }
5180 arg1 = reinterpret_cast< wxPen * >(argp1);
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (arg1)->GetColour();
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5188 return resultobj;
5189fail:
5190 return NULL;
d55e5bfc
RD
5191}
5192
5193
1bd55598
RD
5194SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 wxPen *arg1 = (wxPen *) 0 ;
5197 int result;
5198 void *argp1 = 0 ;
5199 int res1 = 0 ;
5200 PyObject *swig_obj[1] ;
5201
5202 if (!args) SWIG_fail;
5203 swig_obj[0] = args;
5204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5205 if (!SWIG_IsOK(res1)) {
5206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5207 }
5208 arg1 = reinterpret_cast< wxPen * >(argp1);
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = (int)(arg1)->GetJoin();
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 resultobj = SWIG_From_int(static_cast< int >(result));
5216 return resultobj;
5217fail:
5218 return NULL;
d55e5bfc
RD
5219}
5220
5221
1bd55598
RD
5222SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5223 PyObject *resultobj = 0;
5224 wxPen *arg1 = (wxPen *) 0 ;
5225 int result;
5226 void *argp1 = 0 ;
5227 int res1 = 0 ;
5228 PyObject *swig_obj[1] ;
5229
5230 if (!args) SWIG_fail;
5231 swig_obj[0] = args;
5232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5233 if (!SWIG_IsOK(res1)) {
5234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5235 }
5236 arg1 = reinterpret_cast< wxPen * >(argp1);
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (int)(arg1)->GetStyle();
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 resultobj = SWIG_From_int(static_cast< int >(result));
5244 return resultobj;
5245fail:
5246 return NULL;
d55e5bfc
RD
5247}
5248
5249
1bd55598
RD
5250SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5251 PyObject *resultobj = 0;
5252 wxPen *arg1 = (wxPen *) 0 ;
5253 int result;
5254 void *argp1 = 0 ;
5255 int res1 = 0 ;
5256 PyObject *swig_obj[1] ;
5257
5258 if (!args) SWIG_fail;
5259 swig_obj[0] = args;
5260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5261 if (!SWIG_IsOK(res1)) {
5262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5263 }
5264 arg1 = reinterpret_cast< wxPen * >(argp1);
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (int)(arg1)->GetWidth();
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 resultobj = SWIG_From_int(static_cast< int >(result));
5272 return resultobj;
5273fail:
5274 return NULL;
d55e5bfc
RD
5275}
5276
5277
b39fe951 5278SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5279 PyObject *resultobj = 0;
5280 wxPen *arg1 = (wxPen *) 0 ;
5281 bool result;
5282 void *argp1 = 0 ;
5283 int res1 = 0 ;
5284 PyObject *swig_obj[1] ;
5285
5286 if (!args) SWIG_fail;
5287 swig_obj[0] = args;
5288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5289 if (!SWIG_IsOK(res1)) {
b39fe951 5290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5291 }
5292 arg1 = reinterpret_cast< wxPen * >(argp1);
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5295 result = (bool)(arg1)->IsOk();
1bd55598
RD
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 {
5300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5301 }
5302 return resultobj;
5303fail:
5304 return NULL;
5305}
5306
5307
5308SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5309 PyObject *resultobj = 0;
5310 wxPen *arg1 = (wxPen *) 0 ;
5311 int arg2 ;
5312 void *argp1 = 0 ;
5313 int res1 = 0 ;
5314 int val2 ;
5315 int ecode2 = 0 ;
5316 PyObject * obj0 = 0 ;
5317 PyObject * obj1 = 0 ;
5318 char * kwnames[] = {
5319 (char *) "self",(char *) "cap_style", NULL
5320 };
5321
5322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5324 if (!SWIG_IsOK(res1)) {
5325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5326 }
5327 arg1 = reinterpret_cast< wxPen * >(argp1);
5328 ecode2 = SWIG_AsVal_int(obj1, &val2);
5329 if (!SWIG_IsOK(ecode2)) {
5330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5331 }
5332 arg2 = static_cast< int >(val2);
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 (arg1)->SetCap(arg2);
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 resultobj = SWIG_Py_Void();
5340 return resultobj;
5341fail:
5342 return NULL;
5343}
5344
5345
5346SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5347 PyObject *resultobj = 0;
5348 wxPen *arg1 = (wxPen *) 0 ;
5349 wxColour *arg2 = 0 ;
5350 void *argp1 = 0 ;
5351 int res1 = 0 ;
5352 wxColour temp2 ;
5353 PyObject * obj0 = 0 ;
5354 PyObject * obj1 = 0 ;
5355 char * kwnames[] = {
5356 (char *) "self",(char *) "colour", NULL
5357 };
5358
5359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5361 if (!SWIG_IsOK(res1)) {
5362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5363 }
5364 arg1 = reinterpret_cast< wxPen * >(argp1);
5365 {
5366 arg2 = &temp2;
5367 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5368 }
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 (arg1)->SetColour(*arg2);
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 resultobj = SWIG_Py_Void();
5376 return resultobj;
5377fail:
5378 return NULL;
5379}
5380
5381
5382SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj = 0;
5384 wxPen *arg1 = (wxPen *) 0 ;
5385 int arg2 ;
5386 void *argp1 = 0 ;
5387 int res1 = 0 ;
5388 int val2 ;
5389 int ecode2 = 0 ;
5390 PyObject * obj0 = 0 ;
5391 PyObject * obj1 = 0 ;
5392 char * kwnames[] = {
5393 (char *) "self",(char *) "join_style", NULL
5394 };
5395
5396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5398 if (!SWIG_IsOK(res1)) {
5399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5400 }
5401 arg1 = reinterpret_cast< wxPen * >(argp1);
5402 ecode2 = SWIG_AsVal_int(obj1, &val2);
5403 if (!SWIG_IsOK(ecode2)) {
5404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5405 }
5406 arg2 = static_cast< int >(val2);
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 (arg1)->SetJoin(arg2);
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_Py_Void();
5414 return resultobj;
5415fail:
5416 return NULL;
5417}
5418
5419
5420SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj = 0;
5422 wxPen *arg1 = (wxPen *) 0 ;
5423 int arg2 ;
5424 void *argp1 = 0 ;
5425 int res1 = 0 ;
5426 int val2 ;
5427 int ecode2 = 0 ;
5428 PyObject * obj0 = 0 ;
5429 PyObject * obj1 = 0 ;
5430 char * kwnames[] = {
5431 (char *) "self",(char *) "style", NULL
5432 };
5433
5434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5436 if (!SWIG_IsOK(res1)) {
5437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5438 }
5439 arg1 = reinterpret_cast< wxPen * >(argp1);
5440 ecode2 = SWIG_AsVal_int(obj1, &val2);
5441 if (!SWIG_IsOK(ecode2)) {
5442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5443 }
5444 arg2 = static_cast< int >(val2);
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 (arg1)->SetStyle(arg2);
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 resultobj = SWIG_Py_Void();
5452 return resultobj;
5453fail:
5454 return NULL;
5455}
5456
5457
5458SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj = 0;
5460 wxPen *arg1 = (wxPen *) 0 ;
5461 int arg2 ;
5462 void *argp1 = 0 ;
5463 int res1 = 0 ;
5464 int val2 ;
5465 int ecode2 = 0 ;
5466 PyObject * obj0 = 0 ;
5467 PyObject * obj1 = 0 ;
5468 char * kwnames[] = {
5469 (char *) "self",(char *) "width", NULL
5470 };
5471
5472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5474 if (!SWIG_IsOK(res1)) {
5475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5476 }
5477 arg1 = reinterpret_cast< wxPen * >(argp1);
5478 ecode2 = SWIG_AsVal_int(obj1, &val2);
5479 if (!SWIG_IsOK(ecode2)) {
5480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5481 }
5482 arg2 = static_cast< int >(val2);
5483 {
5484 PyThreadState* __tstate = wxPyBeginAllowThreads();
5485 (arg1)->SetWidth(arg2);
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 resultobj = SWIG_Py_Void();
5490 return resultobj;
5491fail:
5492 return NULL;
5493}
5494
5495
5496SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5497 PyObject *resultobj = 0;
5498 wxPen *arg1 = (wxPen *) 0 ;
5499 int arg2 ;
5500 wxDash *arg3 = (wxDash *) 0 ;
5501 void *argp1 = 0 ;
5502 int res1 = 0 ;
5503 PyObject * obj0 = 0 ;
5504 PyObject * obj1 = 0 ;
5505 char * kwnames[] = {
5506 (char *) "self",(char *) "dashes", NULL
5507 };
5508
5509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5511 if (!SWIG_IsOK(res1)) {
5512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5513 }
5514 arg1 = reinterpret_cast< wxPen * >(argp1);
5515 {
5516 arg2 = PyList_Size(obj1);
5517 arg3 = (wxDash*)byte_LIST_helper(obj1);
5518 if (arg3 == NULL) SWIG_fail;
5519 }
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 (arg1)->SetDashes(arg2,arg3);
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) SWIG_fail;
5525 }
5526 resultobj = SWIG_Py_Void();
5527 {
5528 if (arg3) delete [] arg3;
5529 }
5530 return resultobj;
5531fail:
5532 {
5533 if (arg3) delete [] arg3;
5534 }
5535 return NULL;
d6c14a4c
RD
5536}
5537
5538
1bd55598
RD
5539SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5540 PyObject *resultobj = 0;
5541 wxPen *arg1 = (wxPen *) 0 ;
5542 PyObject *result = 0 ;
5543 void *argp1 = 0 ;
5544 int res1 = 0 ;
5545 PyObject *swig_obj[1] ;
5546
5547 if (!args) SWIG_fail;
5548 swig_obj[0] = args;
5549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5550 if (!SWIG_IsOK(res1)) {
5551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5552 }
5553 arg1 = reinterpret_cast< wxPen * >(argp1);
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (PyObject *)wxPen_GetDashes(arg1);
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 resultobj = result;
5561 return resultobj;
5562fail:
5563 return NULL;
5564}
5565
5566
5567SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj = 0;
5569 wxPen *arg1 = (wxPen *) 0 ;
5570 PyObject *arg2 = (PyObject *) 0 ;
5571 PyObject *arg3 = (PyObject *) 0 ;
5572 void *argp1 = 0 ;
5573 int res1 = 0 ;
5574 PyObject * obj0 = 0 ;
5575 PyObject * obj1 = 0 ;
5576 PyObject * obj2 = 0 ;
5577 char * kwnames[] = {
5578 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5579 };
5580
5581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5583 if (!SWIG_IsOK(res1)) {
5584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5585 }
5586 arg1 = reinterpret_cast< wxPen * >(argp1);
5587 arg2 = obj1;
5588 arg3 = obj2;
5589 {
5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
5591 wxPen__SetDashes(arg1,arg2,arg3);
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 resultobj = SWIG_Py_Void();
5596 return resultobj;
5597fail:
5598 return NULL;
5599}
5600
5601
5602SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj = 0;
5604 wxPen *arg1 = (wxPen *) 0 ;
5605 wxPen *arg2 = (wxPen *) 0 ;
5606 bool result;
5607 void *argp1 = 0 ;
5608 int res1 = 0 ;
5609 void *argp2 = 0 ;
5610 int res2 = 0 ;
5611 PyObject * obj0 = 0 ;
5612 PyObject * obj1 = 0 ;
5613 char * kwnames[] = {
5614 (char *) "self",(char *) "other", NULL
5615 };
5616
5617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5619 if (!SWIG_IsOK(res1)) {
5620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5621 }
5622 arg1 = reinterpret_cast< wxPen * >(argp1);
5623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5624 if (!SWIG_IsOK(res2)) {
5625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5626 }
5627 arg2 = reinterpret_cast< wxPen * >(argp2);
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 {
5635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5636 }
5637 return resultobj;
5638fail:
5639 return NULL;
5640}
5641
5642
5643SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5644 PyObject *resultobj = 0;
5645 wxPen *arg1 = (wxPen *) 0 ;
5646 wxPen *arg2 = (wxPen *) 0 ;
5647 bool result;
5648 void *argp1 = 0 ;
5649 int res1 = 0 ;
5650 void *argp2 = 0 ;
5651 int res2 = 0 ;
5652 PyObject * obj0 = 0 ;
5653 PyObject * obj1 = 0 ;
5654 char * kwnames[] = {
5655 (char *) "self",(char *) "other", NULL
5656 };
5657
5658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5660 if (!SWIG_IsOK(res1)) {
5661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5662 }
5663 arg1 = reinterpret_cast< wxPen * >(argp1);
5664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5665 if (!SWIG_IsOK(res2)) {
5666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5667 }
5668 arg2 = reinterpret_cast< wxPen * >(argp2);
5669 {
5670 PyThreadState* __tstate = wxPyBeginAllowThreads();
5671 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 {
5676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5677 }
5678 return resultobj;
5679fail:
5680 return NULL;
5681}
d55e5bfc
RD
5682
5683
1bd55598
RD
5684SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5685 PyObject *obj;
5686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5687 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5688 return SWIG_Py_Void();
d55e5bfc
RD
5689}
5690
1bd55598
RD
5691SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 return SWIG_Python_InitShadowInstance(args);
5693}
d55e5bfc 5694
1bd55598
RD
5695SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5696 PyObject *resultobj = 0;
5697 wxColour *arg1 = 0 ;
5698 int arg2 = (int) wxSOLID ;
5699 wxBrush *result = 0 ;
5700 wxColour temp1 ;
5701 int val2 ;
5702 int ecode2 = 0 ;
5703 PyObject * obj0 = 0 ;
5704 PyObject * obj1 = 0 ;
5705 char * kwnames[] = {
5706 (char *) "colour",(char *) "style", NULL
5707 };
5708
5709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5710 {
5711 arg1 = &temp1;
5712 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5713 }
5714 if (obj1) {
5715 ecode2 = SWIG_AsVal_int(obj1, &val2);
5716 if (!SWIG_IsOK(ecode2)) {
5717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5718 }
5719 arg2 = static_cast< int >(val2);
5720 }
5721 {
5722 if (!wxPyCheckForApp()) SWIG_fail;
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5729 return resultobj;
5730fail:
5731 return NULL;
5732}
5733
5734
5735SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj = 0;
5737 wxBitmap *arg1 = 0 ;
5738 wxBrush *result = 0 ;
5739 void *argp1 = 0 ;
5740 int res1 = 0 ;
5741 PyObject * obj0 = 0 ;
5742 char * kwnames[] = {
5743 (char *) "stippleBitmap", NULL
5744 };
5745
5746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5747 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5748 if (!SWIG_IsOK(res1)) {
5749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5750 }
5751 if (!argp1) {
5752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5753 }
5754 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5755 {
5756 if (!wxPyCheckForApp()) SWIG_fail;
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5763 return resultobj;
5764fail:
5765 return NULL;
d55e5bfc
RD
5766}
5767
5768
1bd55598
RD
5769SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5770 PyObject *resultobj = 0;
5771 wxBrush *arg1 = (wxBrush *) 0 ;
5772 void *argp1 = 0 ;
5773 int res1 = 0 ;
5774 PyObject *swig_obj[1] ;
5775
5776 if (!args) SWIG_fail;
5777 swig_obj[0] = args;
5778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5779 if (!SWIG_IsOK(res1)) {
5780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5781 }
5782 arg1 = reinterpret_cast< wxBrush * >(argp1);
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 delete arg1;
d55e5bfc 5786
1bd55598
RD
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 resultobj = SWIG_Py_Void();
5791 return resultobj;
5792fail:
5793 return NULL;
5794}
5795
5796
5797SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj = 0;
5799 wxBrush *arg1 = (wxBrush *) 0 ;
5800 wxColour *arg2 = 0 ;
5801 void *argp1 = 0 ;
5802 int res1 = 0 ;
5803 wxColour temp2 ;
5804 PyObject * obj0 = 0 ;
5805 PyObject * obj1 = 0 ;
5806 char * kwnames[] = {
5807 (char *) "self",(char *) "col", NULL
5808 };
5809
5810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5812 if (!SWIG_IsOK(res1)) {
5813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5814 }
5815 arg1 = reinterpret_cast< wxBrush * >(argp1);
5816 {
5817 arg2 = &temp2;
5818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5819 }
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 (arg1)->SetColour((wxColour const &)*arg2);
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = SWIG_Py_Void();
5827 return resultobj;
5828fail:
5829 return NULL;
5830}
5831
5832
5833SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj = 0;
5835 wxBrush *arg1 = (wxBrush *) 0 ;
5836 int arg2 ;
5837 void *argp1 = 0 ;
5838 int res1 = 0 ;
5839 int val2 ;
5840 int ecode2 = 0 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "self",(char *) "style", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5851 }
5852 arg1 = reinterpret_cast< wxBrush * >(argp1);
5853 ecode2 = SWIG_AsVal_int(obj1, &val2);
5854 if (!SWIG_IsOK(ecode2)) {
5855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5856 }
5857 arg2 = static_cast< int >(val2);
5858 {
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 (arg1)->SetStyle(arg2);
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 resultobj = SWIG_Py_Void();
5865 return resultobj;
5866fail:
5867 return NULL;
5868}
5869
5870
5871SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj = 0;
5873 wxBrush *arg1 = (wxBrush *) 0 ;
5874 wxBitmap *arg2 = 0 ;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 void *argp2 = 0 ;
5878 int res2 = 0 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 char * kwnames[] = {
5882 (char *) "self",(char *) "stipple", NULL
5883 };
5884
5885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5887 if (!SWIG_IsOK(res1)) {
5888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5889 }
5890 arg1 = reinterpret_cast< wxBrush * >(argp1);
5891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5892 if (!SWIG_IsOK(res2)) {
5893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5894 }
5895 if (!argp2) {
5896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5897 }
5898 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5899 {
5900 PyThreadState* __tstate = wxPyBeginAllowThreads();
5901 (arg1)->SetStipple((wxBitmap const &)*arg2);
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 resultobj = SWIG_Py_Void();
5906 return resultobj;
5907fail:
5908 return NULL;
d55e5bfc
RD
5909}
5910
5911
1bd55598
RD
5912SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5913 PyObject *resultobj = 0;
5914 wxBrush *arg1 = (wxBrush *) 0 ;
5915 wxColour result;
5916 void *argp1 = 0 ;
5917 int res1 = 0 ;
5918 PyObject *swig_obj[1] ;
5919
5920 if (!args) SWIG_fail;
5921 swig_obj[0] = args;
5922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5923 if (!SWIG_IsOK(res1)) {
5924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5925 }
5926 arg1 = reinterpret_cast< wxBrush * >(argp1);
5927 {
5928 PyThreadState* __tstate = wxPyBeginAllowThreads();
5929 result = ((wxBrush const *)arg1)->GetColour();
5930 wxPyEndAllowThreads(__tstate);
5931 if (PyErr_Occurred()) SWIG_fail;
5932 }
5933 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5934 return resultobj;
5935fail:
5936 return NULL;
d55e5bfc
RD
5937}
5938
5939
1bd55598
RD
5940SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5941 PyObject *resultobj = 0;
5942 wxBrush *arg1 = (wxBrush *) 0 ;
5943 int result;
5944 void *argp1 = 0 ;
5945 int res1 = 0 ;
5946 PyObject *swig_obj[1] ;
5947
5948 if (!args) SWIG_fail;
5949 swig_obj[0] = args;
5950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5951 if (!SWIG_IsOK(res1)) {
5952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5953 }
5954 arg1 = reinterpret_cast< wxBrush * >(argp1);
5955 {
5956 PyThreadState* __tstate = wxPyBeginAllowThreads();
5957 result = (int)((wxBrush const *)arg1)->GetStyle();
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 resultobj = SWIG_From_int(static_cast< int >(result));
5962 return resultobj;
5963fail:
5964 return NULL;
d55e5bfc
RD
5965}
5966
5967
1bd55598
RD
5968SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5969 PyObject *resultobj = 0;
5970 wxBrush *arg1 = (wxBrush *) 0 ;
5971 wxBitmap *result = 0 ;
5972 void *argp1 = 0 ;
5973 int res1 = 0 ;
5974 PyObject *swig_obj[1] ;
5975
5976 if (!args) SWIG_fail;
5977 swig_obj[0] = args;
5978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5979 if (!SWIG_IsOK(res1)) {
5980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5981 }
5982 arg1 = reinterpret_cast< wxBrush * >(argp1);
5983 {
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5986 wxPyEndAllowThreads(__tstate);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 }
5989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5990 return resultobj;
5991fail:
5992 return NULL;
d55e5bfc
RD
5993}
5994
5995
1bd55598
RD
5996SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5997 PyObject *resultobj = 0;
5998 wxBrush *arg1 = (wxBrush *) 0 ;
5999 bool result;
6000 void *argp1 = 0 ;
6001 int res1 = 0 ;
6002 PyObject *swig_obj[1] ;
6003
6004 if (!args) SWIG_fail;
6005 swig_obj[0] = args;
6006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6007 if (!SWIG_IsOK(res1)) {
6008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6009 }
6010 arg1 = reinterpret_cast< wxBrush * >(argp1);
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (bool)((wxBrush const *)arg1)->IsHatch();
6014 wxPyEndAllowThreads(__tstate);
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 {
6018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6019 }
6020 return resultobj;
6021fail:
6022 return NULL;
d55e5bfc
RD
6023}
6024
6025
b39fe951 6026SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6027 PyObject *resultobj = 0;
6028 wxBrush *arg1 = (wxBrush *) 0 ;
6029 bool result;
6030 void *argp1 = 0 ;
6031 int res1 = 0 ;
6032 PyObject *swig_obj[1] ;
6033
6034 if (!args) SWIG_fail;
6035 swig_obj[0] = args;
6036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6037 if (!SWIG_IsOK(res1)) {
b39fe951 6038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6039 }
6040 arg1 = reinterpret_cast< wxBrush * >(argp1);
6041 {
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6043 result = (bool)(arg1)->IsOk();
1bd55598
RD
6044 wxPyEndAllowThreads(__tstate);
6045 if (PyErr_Occurred()) SWIG_fail;
6046 }
6047 {
6048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6049 }
6050 return resultobj;
6051fail:
6052 return NULL;
d55e5bfc
RD
6053}
6054
6055
1bd55598
RD
6056SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6057 PyObject *resultobj = 0;
6058 wxBrush *arg1 = (wxBrush *) 0 ;
6059 short result;
6060 void *argp1 = 0 ;
6061 int res1 = 0 ;
6062 PyObject *swig_obj[1] ;
6063
6064 if (!args) SWIG_fail;
6065 swig_obj[0] = args;
6066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6069 }
6070 arg1 = reinterpret_cast< wxBrush * >(argp1);
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 result = (short)(arg1)->MacGetTheme();
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_From_short(static_cast< short >(result));
6078 return resultobj;
6079fail:
6080 return NULL;
6081}
6082
6083
6084SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj = 0;
6086 wxBrush *arg1 = (wxBrush *) 0 ;
6087 short arg2 ;
6088 void *argp1 = 0 ;
6089 int res1 = 0 ;
6090 short val2 ;
6091 int ecode2 = 0 ;
6092 PyObject * obj0 = 0 ;
6093 PyObject * obj1 = 0 ;
6094 char * kwnames[] = {
6095 (char *) "self",(char *) "macThemeBrush", NULL
6096 };
6097
6098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6100 if (!SWIG_IsOK(res1)) {
6101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6102 }
6103 arg1 = reinterpret_cast< wxBrush * >(argp1);
6104 ecode2 = SWIG_AsVal_short(obj1, &val2);
6105 if (!SWIG_IsOK(ecode2)) {
6106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6107 }
6108 arg2 = static_cast< short >(val2);
6109 {
6110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6111 (arg1)->MacSetTheme(arg2);
6112 wxPyEndAllowThreads(__tstate);
6113 if (PyErr_Occurred()) SWIG_fail;
6114 }
6115 resultobj = SWIG_Py_Void();
6116 return resultobj;
6117fail:
6118 return NULL;
d55e5bfc
RD
6119}
6120
6121
1bd55598
RD
6122SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6123 PyObject *obj;
6124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6125 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6126 return SWIG_Py_Void();
d55e5bfc
RD
6127}
6128
1bd55598
RD
6129SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6130 return SWIG_Python_InitShadowInstance(args);
6131}
d55e5bfc 6132
1bd55598
RD
6133SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6134 PyObject *resultobj = 0;
6135 wxString *arg1 = 0 ;
6136 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6137 wxBitmap *result = 0 ;
6138 bool temp1 = false ;
6139 int val2 ;
6140 int ecode2 = 0 ;
6141 PyObject * obj0 = 0 ;
6142 PyObject * obj1 = 0 ;
6143 char * kwnames[] = {
6144 (char *) "name",(char *) "type", NULL
6145 };
6146
6147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6148 {
6149 arg1 = wxString_in_helper(obj0);
6150 if (arg1 == NULL) SWIG_fail;
6151 temp1 = true;
6152 }
6153 if (obj1) {
6154 ecode2 = SWIG_AsVal_int(obj1, &val2);
6155 if (!SWIG_IsOK(ecode2)) {
6156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6157 }
6158 arg2 = static_cast< wxBitmapType >(val2);
6159 }
6160 {
6161 if (!wxPyCheckForApp()) SWIG_fail;
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6164 wxPyEndAllowThreads(__tstate);
6165 if (PyErr_Occurred()) SWIG_fail;
6166 }
6167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6168 {
6169 if (temp1)
6170 delete arg1;
6171 }
6172 return resultobj;
6173fail:
6174 {
6175 if (temp1)
6176 delete arg1;
6177 }
6178 return NULL;
d55e5bfc
RD
6179}
6180
6181
1bd55598
RD
6182SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6183 PyObject *resultobj = 0;
6184 wxBitmap *arg1 = (wxBitmap *) 0 ;
6185 void *argp1 = 0 ;
6186 int res1 = 0 ;
6187 PyObject *swig_obj[1] ;
6188
6189 if (!args) SWIG_fail;
6190 swig_obj[0] = args;
6191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6194 }
6195 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6196 {
1bd55598 6197 delete arg1;
d55e5bfc 6198
1bd55598
RD
6199 if (PyErr_Occurred()) SWIG_fail;
6200 }
6201 resultobj = SWIG_Py_Void();
6202 return resultobj;
6203fail:
6204 return NULL;
6205}
6206
6207
6208SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6209 PyObject *resultobj = 0;
6210 int arg1 ;
6211 int arg2 ;
6212 int arg3 = (int) -1 ;
6213 wxBitmap *result = 0 ;
6214 int val1 ;
6215 int ecode1 = 0 ;
6216 int val2 ;
6217 int ecode2 = 0 ;
6218 int val3 ;
6219 int ecode3 = 0 ;
6220 PyObject * obj0 = 0 ;
6221 PyObject * obj1 = 0 ;
6222 PyObject * obj2 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "width",(char *) "height",(char *) "depth", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6228 ecode1 = SWIG_AsVal_int(obj0, &val1);
6229 if (!SWIG_IsOK(ecode1)) {
6230 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6231 }
6232 arg1 = static_cast< int >(val1);
6233 ecode2 = SWIG_AsVal_int(obj1, &val2);
6234 if (!SWIG_IsOK(ecode2)) {
6235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6236 }
6237 arg2 = static_cast< int >(val2);
6238 if (obj2) {
6239 ecode3 = SWIG_AsVal_int(obj2, &val3);
6240 if (!SWIG_IsOK(ecode3)) {
6241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6242 }
6243 arg3 = static_cast< int >(val3);
6244 }
6245 {
6246 if (!wxPyCheckForApp()) SWIG_fail;
6247 PyThreadState* __tstate = wxPyBeginAllowThreads();
6248 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6253 return resultobj;
6254fail:
6255 return NULL;
6256}
6257
6258
6259SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj = 0;
6261 wxIcon *arg1 = 0 ;
6262 wxBitmap *result = 0 ;
6263 void *argp1 = 0 ;
6264 int res1 = 0 ;
6265 PyObject * obj0 = 0 ;
6266 char * kwnames[] = {
6267 (char *) "icon", NULL
6268 };
6269
6270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6271 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6272 if (!SWIG_IsOK(res1)) {
6273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6274 }
6275 if (!argp1) {
6276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6277 }
6278 arg1 = reinterpret_cast< wxIcon * >(argp1);
6279 {
6280 if (!wxPyCheckForApp()) SWIG_fail;
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6287 return resultobj;
6288fail:
6289 return NULL;
6290}
6291
6292
6293SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj = 0;
6295 wxImage *arg1 = 0 ;
6296 int arg2 = (int) -1 ;
6297 wxBitmap *result = 0 ;
6298 void *argp1 = 0 ;
6299 int res1 = 0 ;
6300 int val2 ;
6301 int ecode2 = 0 ;
6302 PyObject * obj0 = 0 ;
6303 PyObject * obj1 = 0 ;
6304 char * kwnames[] = {
6305 (char *) "image",(char *) "depth", NULL
6306 };
6307
6308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6309 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6310 if (!SWIG_IsOK(res1)) {
6311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6312 }
6313 if (!argp1) {
6314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6315 }
6316 arg1 = reinterpret_cast< wxImage * >(argp1);
6317 if (obj1) {
6318 ecode2 = SWIG_AsVal_int(obj1, &val2);
6319 if (!SWIG_IsOK(ecode2)) {
6320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6321 }
6322 arg2 = static_cast< int >(val2);
6323 }
6324 {
6325 if (!wxPyCheckForApp()) SWIG_fail;
6326 PyThreadState* __tstate = wxPyBeginAllowThreads();
6327 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6328 wxPyEndAllowThreads(__tstate);
6329 if (PyErr_Occurred()) SWIG_fail;
6330 }
6331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6332 return resultobj;
6333fail:
6334 return NULL;
d55e5bfc
RD
6335}
6336
6337
1bd55598
RD
6338SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6339 PyObject *resultobj = 0;
6340 PyObject *arg1 = (PyObject *) 0 ;
6341 wxBitmap *result = 0 ;
6342 PyObject * obj0 = 0 ;
6343 char * kwnames[] = {
6344 (char *) "listOfStrings", NULL
6345 };
6346
6347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6348 arg1 = obj0;
6349 {
6350 if (!wxPyCheckForApp()) SWIG_fail;
6351 PyThreadState* __tstate = wxPyBeginAllowThreads();
6352 result = (wxBitmap *)new_wxBitmap(arg1);
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6357 return resultobj;
6358fail:
6359 return NULL;
6360}
6361
6362
6363SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj = 0;
6365 PyObject *arg1 = (PyObject *) 0 ;
6366 int arg2 ;
6367 int arg3 ;
6368 int arg4 = (int) 1 ;
6369 wxBitmap *result = 0 ;
6370 int val2 ;
6371 int ecode2 = 0 ;
6372 int val3 ;
6373 int ecode3 = 0 ;
6374 int val4 ;
6375 int ecode4 = 0 ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 PyObject * obj2 = 0 ;
6379 PyObject * obj3 = 0 ;
6380 char * kwnames[] = {
6381 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6382 };
6383
6384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6385 arg1 = obj0;
6386 ecode2 = SWIG_AsVal_int(obj1, &val2);
6387 if (!SWIG_IsOK(ecode2)) {
6388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6389 }
6390 arg2 = static_cast< int >(val2);
6391 ecode3 = SWIG_AsVal_int(obj2, &val3);
6392 if (!SWIG_IsOK(ecode3)) {
6393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6394 }
6395 arg3 = static_cast< int >(val3);
6396 if (obj3) {
6397 ecode4 = SWIG_AsVal_int(obj3, &val4);
6398 if (!SWIG_IsOK(ecode4)) {
6399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6400 }
6401 arg4 = static_cast< int >(val4);
6402 }
6403 {
6404 if (!wxPyCheckForApp()) SWIG_fail;
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6407 wxPyEndAllowThreads(__tstate);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6411 return resultobj;
6412fail:
6413 return NULL;
d55e5bfc
RD
6414}
6415
6416
b39fe951 6417SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6418 PyObject *resultobj = 0;
6419 wxBitmap *arg1 = (wxBitmap *) 0 ;
6420 bool result;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 PyObject *swig_obj[1] ;
6424
6425 if (!args) SWIG_fail;
6426 swig_obj[0] = args;
6427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6428 if (!SWIG_IsOK(res1)) {
b39fe951 6429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6430 }
6431 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6432 {
b39fe951 6433 result = (bool)(arg1)->IsOk();
1bd55598
RD
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 {
6437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6438 }
6439 return resultobj;
6440fail:
6441 return NULL;
d55e5bfc
RD
6442}
6443
6444
1bd55598
RD
6445SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6446 PyObject *resultobj = 0;
6447 wxBitmap *arg1 = (wxBitmap *) 0 ;
6448 int result;
6449 void *argp1 = 0 ;
6450 int res1 = 0 ;
6451 PyObject *swig_obj[1] ;
6452
6453 if (!args) SWIG_fail;
6454 swig_obj[0] = args;
6455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6456 if (!SWIG_IsOK(res1)) {
6457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6458 }
6459 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6460 {
1bd55598 6461 result = (int)(arg1)->GetWidth();
1bd55598
RD
6462 if (PyErr_Occurred()) SWIG_fail;
6463 }
6464 resultobj = SWIG_From_int(static_cast< int >(result));
6465 return resultobj;
6466fail:
6467 return NULL;
070c48b4
RD
6468}
6469
6470
1bd55598
RD
6471SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6472 PyObject *resultobj = 0;
6473 wxBitmap *arg1 = (wxBitmap *) 0 ;
6474 int result;
6475 void *argp1 = 0 ;
6476 int res1 = 0 ;
6477 PyObject *swig_obj[1] ;
6478
6479 if (!args) SWIG_fail;
6480 swig_obj[0] = args;
6481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6482 if (!SWIG_IsOK(res1)) {
6483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6484 }
6485 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6486 {
1bd55598 6487 result = (int)(arg1)->GetHeight();
1bd55598
RD
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 resultobj = SWIG_From_int(static_cast< int >(result));
6491 return resultobj;
6492fail:
6493 return NULL;
d55e5bfc
RD
6494}
6495
6496
1bd55598
RD
6497SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6498 PyObject *resultobj = 0;
6499 wxBitmap *arg1 = (wxBitmap *) 0 ;
6500 int result;
6501 void *argp1 = 0 ;
6502 int res1 = 0 ;
6503 PyObject *swig_obj[1] ;
6504
6505 if (!args) SWIG_fail;
6506 swig_obj[0] = args;
6507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6508 if (!SWIG_IsOK(res1)) {
6509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6510 }
6511 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6512 {
1bd55598 6513 result = (int)(arg1)->GetDepth();
1bd55598
RD
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 resultobj = SWIG_From_int(static_cast< int >(result));
6517 return resultobj;
6518fail:
6519 return NULL;
d55e5bfc
RD
6520}
6521
6522
1bd55598
RD
6523SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6524 PyObject *resultobj = 0;
6525 wxBitmap *arg1 = (wxBitmap *) 0 ;
6526 wxSize result;
6527 void *argp1 = 0 ;
6528 int res1 = 0 ;
6529 PyObject *swig_obj[1] ;
6530
6531 if (!args) SWIG_fail;
6532 swig_obj[0] = args;
6533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6534 if (!SWIG_IsOK(res1)) {
6535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6536 }
6537 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6538 {
1bd55598 6539 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6543 return resultobj;
6544fail:
6545 return NULL;
d55e5bfc
RD
6546}
6547
6548
1bd55598
RD
6549SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6550 PyObject *resultobj = 0;
6551 wxBitmap *arg1 = (wxBitmap *) 0 ;
6552 SwigValueWrapper<wxImage > result;
6553 void *argp1 = 0 ;
6554 int res1 = 0 ;
6555 PyObject *swig_obj[1] ;
6556
6557 if (!args) SWIG_fail;
6558 swig_obj[0] = args;
6559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6560 if (!SWIG_IsOK(res1)) {
6561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6562 }
6563 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6564 {
1bd55598 6565 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6566 if (PyErr_Occurred()) SWIG_fail;
6567 }
6568 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6569 return resultobj;
6570fail:
6571 return NULL;
d55e5bfc
RD
6572}
6573
6574
1bd55598
RD
6575SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6576 PyObject *resultobj = 0;
6577 wxBitmap *arg1 = (wxBitmap *) 0 ;
6578 wxMask *result = 0 ;
6579 void *argp1 = 0 ;
6580 int res1 = 0 ;
6581 PyObject *swig_obj[1] ;
6582
6583 if (!args) SWIG_fail;
6584 swig_obj[0] = args;
6585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6586 if (!SWIG_IsOK(res1)) {
6587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6588 }
6589 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6590 {
1bd55598 6591 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6595 return resultobj;
6596fail:
6597 return NULL;
6598}
6599
6600
6601SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj = 0;
6603 wxBitmap *arg1 = (wxBitmap *) 0 ;
6604 wxMask *arg2 = (wxMask *) 0 ;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 int res2 = 0 ;
6608 PyObject * obj0 = 0 ;
6609 PyObject * obj1 = 0 ;
6610 char * kwnames[] = {
6611 (char *) "self",(char *) "mask", NULL
6612 };
6613
6614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6616 if (!SWIG_IsOK(res1)) {
6617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6618 }
6619 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6620 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6621 if (!SWIG_IsOK(res2)) {
6622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6623 }
6624 {
1bd55598 6625 (arg1)->SetMask(arg2);
1bd55598
RD
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 resultobj = SWIG_Py_Void();
6629 return resultobj;
6630fail:
6631 return NULL;
6632}
6633
6634
6635SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6636 PyObject *resultobj = 0;
6637 wxBitmap *arg1 = (wxBitmap *) 0 ;
6638 wxColour *arg2 = 0 ;
6639 void *argp1 = 0 ;
6640 int res1 = 0 ;
6641 wxColour temp2 ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 char * kwnames[] = {
6645 (char *) "self",(char *) "colour", NULL
6646 };
6647
6648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6650 if (!SWIG_IsOK(res1)) {
6651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6652 }
6653 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6654 {
6655 arg2 = &temp2;
6656 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6657 }
6658 {
1bd55598 6659 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = SWIG_Py_Void();
6663 return resultobj;
6664fail:
6665 return NULL;
6666}
6667
6668
6669SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj = 0;
6671 wxBitmap *arg1 = (wxBitmap *) 0 ;
6672 wxRect *arg2 = 0 ;
6673 SwigValueWrapper<wxBitmap > result;
6674 void *argp1 = 0 ;
6675 int res1 = 0 ;
6676 wxRect temp2 ;
6677 PyObject * obj0 = 0 ;
6678 PyObject * obj1 = 0 ;
6679 char * kwnames[] = {
6680 (char *) "self",(char *) "rect", NULL
6681 };
6682
6683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6687 }
6688 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6689 {
6690 arg2 = &temp2;
6691 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6692 }
6693 {
1bd55598 6694 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6698 return resultobj;
6699fail:
6700 return NULL;
6701}
6702
6703
6704SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj = 0;
6706 wxBitmap *arg1 = (wxBitmap *) 0 ;
6707 wxString *arg2 = 0 ;
6708 wxBitmapType arg3 ;
6709 wxPalette *arg4 = (wxPalette *) NULL ;
6710 bool result;
6711 void *argp1 = 0 ;
6712 int res1 = 0 ;
6713 bool temp2 = false ;
6714 int val3 ;
6715 int ecode3 = 0 ;
6716 void *argp4 = 0 ;
6717 int res4 = 0 ;
6718 PyObject * obj0 = 0 ;
6719 PyObject * obj1 = 0 ;
6720 PyObject * obj2 = 0 ;
6721 PyObject * obj3 = 0 ;
6722 char * kwnames[] = {
6723 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6724 };
6725
6726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6728 if (!SWIG_IsOK(res1)) {
6729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6730 }
6731 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6732 {
6733 arg2 = wxString_in_helper(obj1);
6734 if (arg2 == NULL) SWIG_fail;
6735 temp2 = true;
6736 }
6737 ecode3 = SWIG_AsVal_int(obj2, &val3);
6738 if (!SWIG_IsOK(ecode3)) {
6739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6740 }
6741 arg3 = static_cast< wxBitmapType >(val3);
6742 if (obj3) {
6743 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6744 if (!SWIG_IsOK(res4)) {
6745 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6746 }
1bd55598
RD
6747 arg4 = reinterpret_cast< wxPalette * >(argp4);
6748 }
6749 {
1bd55598 6750 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6755 }
6756 {
6757 if (temp2)
6758 delete arg2;
6759 }
6760 return resultobj;
6761fail:
6762 {
6763 if (temp2)
6764 delete arg2;
6765 }
6766 return NULL;
6767}
6768
6769
6770SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj = 0;
6772 wxBitmap *arg1 = (wxBitmap *) 0 ;
6773 wxString *arg2 = 0 ;
6774 wxBitmapType arg3 ;
6775 bool result;
6776 void *argp1 = 0 ;
6777 int res1 = 0 ;
6778 bool temp2 = false ;
6779 int val3 ;
6780 int ecode3 = 0 ;
6781 PyObject * obj0 = 0 ;
6782 PyObject * obj1 = 0 ;
6783 PyObject * obj2 = 0 ;
6784 char * kwnames[] = {
6785 (char *) "self",(char *) "name",(char *) "type", NULL
6786 };
6787
6788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6790 if (!SWIG_IsOK(res1)) {
6791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6792 }
6793 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6794 {
6795 arg2 = wxString_in_helper(obj1);
6796 if (arg2 == NULL) SWIG_fail;
6797 temp2 = true;
6798 }
6799 ecode3 = SWIG_AsVal_int(obj2, &val3);
6800 if (!SWIG_IsOK(ecode3)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6802 }
6803 arg3 = static_cast< wxBitmapType >(val3);
6804 {
1bd55598 6805 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6806 if (PyErr_Occurred()) SWIG_fail;
6807 }
6808 {
6809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6810 }
6811 {
6812 if (temp2)
6813 delete arg2;
6814 }
6815 return resultobj;
6816fail:
6817 {
6818 if (temp2)
6819 delete arg2;
6820 }
6821 return NULL;
d04418a7
RD
6822}
6823
6824
1bd55598
RD
6825SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6826 PyObject *resultobj = 0;
6827 wxBitmap *arg1 = (wxBitmap *) 0 ;
6828 wxPalette *result = 0 ;
6829 void *argp1 = 0 ;
6830 int res1 = 0 ;
6831 PyObject *swig_obj[1] ;
6832
6833 if (!args) SWIG_fail;
6834 swig_obj[0] = args;
6835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6836 if (!SWIG_IsOK(res1)) {
6837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6838 }
6839 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6840 {
1bd55598 6841 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6845 return resultobj;
6846fail:
6847 return NULL;
6848}
6849
6850
6851SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6852 PyObject *resultobj = 0;
6853 wxBitmap *arg1 = (wxBitmap *) 0 ;
6854 wxIcon *arg2 = 0 ;
6855 bool result;
6856 void *argp1 = 0 ;
6857 int res1 = 0 ;
6858 void *argp2 = 0 ;
6859 int res2 = 0 ;
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 char * kwnames[] = {
6863 (char *) "self",(char *) "icon", NULL
6864 };
6865
6866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6868 if (!SWIG_IsOK(res1)) {
6869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6870 }
6871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6873 if (!SWIG_IsOK(res2)) {
6874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6875 }
6876 if (!argp2) {
6877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6878 }
6879 arg2 = reinterpret_cast< wxIcon * >(argp2);
6880 {
1bd55598 6881 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 {
6885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6886 }
6887 return resultobj;
6888fail:
6889 return NULL;
6890}
6891
6892
6893SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj = 0;
6895 wxBitmap *arg1 = (wxBitmap *) 0 ;
6896 int arg2 ;
6897 void *argp1 = 0 ;
6898 int res1 = 0 ;
6899 int val2 ;
6900 int ecode2 = 0 ;
6901 PyObject * obj0 = 0 ;
6902 PyObject * obj1 = 0 ;
6903 char * kwnames[] = {
6904 (char *) "self",(char *) "height", NULL
6905 };
6906
6907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6909 if (!SWIG_IsOK(res1)) {
6910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6911 }
6912 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6913 ecode2 = SWIG_AsVal_int(obj1, &val2);
6914 if (!SWIG_IsOK(ecode2)) {
6915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6916 }
6917 arg2 = static_cast< int >(val2);
6918 {
1bd55598 6919 (arg1)->SetHeight(arg2);
1bd55598
RD
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_Py_Void();
6923 return resultobj;
6924fail:
6925 return NULL;
6926}
6927
6928
6929SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj = 0;
6931 wxBitmap *arg1 = (wxBitmap *) 0 ;
6932 int arg2 ;
6933 void *argp1 = 0 ;
6934 int res1 = 0 ;
6935 int val2 ;
6936 int ecode2 = 0 ;
6937 PyObject * obj0 = 0 ;
6938 PyObject * obj1 = 0 ;
6939 char * kwnames[] = {
6940 (char *) "self",(char *) "width", NULL
6941 };
6942
6943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6945 if (!SWIG_IsOK(res1)) {
6946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6947 }
6948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6949 ecode2 = SWIG_AsVal_int(obj1, &val2);
6950 if (!SWIG_IsOK(ecode2)) {
6951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6952 }
6953 arg2 = static_cast< int >(val2);
6954 {
1bd55598 6955 (arg1)->SetWidth(arg2);
1bd55598
RD
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 resultobj = SWIG_Py_Void();
6959 return resultobj;
6960fail:
6961 return NULL;
6962}
6963
6964
6965SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6966 PyObject *resultobj = 0;
6967 wxBitmap *arg1 = (wxBitmap *) 0 ;
6968 int arg2 ;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 int val2 ;
6972 int ecode2 = 0 ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "depth", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6983 }
6984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6985 ecode2 = SWIG_AsVal_int(obj1, &val2);
6986 if (!SWIG_IsOK(ecode2)) {
6987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6988 }
6989 arg2 = static_cast< int >(val2);
6990 {
1bd55598 6991 (arg1)->SetDepth(arg2);
1bd55598
RD
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 resultobj = SWIG_Py_Void();
6995 return resultobj;
6996fail:
6997 return NULL;
6998}
6999
7000
7001SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj = 0;
7003 wxBitmap *arg1 = (wxBitmap *) 0 ;
7004 wxSize *arg2 = 0 ;
7005 void *argp1 = 0 ;
7006 int res1 = 0 ;
7007 wxSize temp2 ;
7008 PyObject * obj0 = 0 ;
7009 PyObject * obj1 = 0 ;
7010 char * kwnames[] = {
7011 (char *) "self",(char *) "size", NULL
7012 };
7013
7014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7016 if (!SWIG_IsOK(res1)) {
7017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7018 }
7019 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7020 {
7021 arg2 = &temp2;
7022 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7023 }
7024 {
1bd55598 7025 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_Py_Void();
7029 return resultobj;
7030fail:
7031 return NULL;
7032}
7033
7034
8f514ab4
RD
7035SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7036 PyObject *resultobj = 0;
7037 wxBitmap *arg1 = (wxBitmap *) 0 ;
7038 buffer arg2 ;
7039 int arg3 ;
7040 void *argp1 = 0 ;
7041 int res1 = 0 ;
7042 Py_ssize_t temp2 ;
7043 PyObject * obj0 = 0 ;
7044 PyObject * obj1 = 0 ;
7045 char * kwnames[] = {
7046 (char *) "self",(char *) "data", NULL
7047 };
7048
7049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7051 if (!SWIG_IsOK(res1)) {
7052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7053 }
7054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7055 {
7056 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7057 arg3 = (int)temp2;
7058 }
7059 {
7060 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 resultobj = SWIG_Py_Void();
7064 return resultobj;
7065fail:
7066 return NULL;
7067}
7068
7069
7070SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj = 0;
7072 wxBitmap *arg1 = (wxBitmap *) 0 ;
7073 buffer arg2 ;
7074 int arg3 ;
7075 void *argp1 = 0 ;
7076 int res1 = 0 ;
7077 Py_ssize_t temp2 ;
7078 PyObject * obj0 = 0 ;
7079 PyObject * obj1 = 0 ;
7080 char * kwnames[] = {
7081 (char *) "self",(char *) "data", NULL
7082 };
7083
7084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7088 }
7089 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7090 {
7091 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7092 arg3 = (int)temp2;
7093 }
7094 {
7095 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = SWIG_Py_Void();
7099 return resultobj;
7100fail:
7101 return NULL;
7102}
7103
7104
1bd55598
RD
7105SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj = 0;
7107 wxBitmap *arg1 = (wxBitmap *) 0 ;
7108 wxBitmap *arg2 = (wxBitmap *) 0 ;
7109 bool result;
7110 void *argp1 = 0 ;
7111 int res1 = 0 ;
7112 void *argp2 = 0 ;
7113 int res2 = 0 ;
7114 PyObject * obj0 = 0 ;
7115 PyObject * obj1 = 0 ;
7116 char * kwnames[] = {
7117 (char *) "self",(char *) "other", NULL
7118 };
7119
7120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7122 if (!SWIG_IsOK(res1)) {
7123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7124 }
7125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7127 if (!SWIG_IsOK(res2)) {
7128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7129 }
7130 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7131 {
1bd55598 7132 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
fc46b7f3
RD
7136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7137 }
7138 return resultobj;
7139fail:
7140 return NULL;
7141}
7142
7143
7144SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj = 0;
7146 wxBitmap *arg1 = (wxBitmap *) 0 ;
7147 wxBitmap *arg2 = (wxBitmap *) 0 ;
7148 bool result;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 void *argp2 = 0 ;
7152 int res2 = 0 ;
7153 PyObject * obj0 = 0 ;
7154 PyObject * obj1 = 0 ;
7155 char * kwnames[] = {
7156 (char *) "self",(char *) "other", NULL
7157 };
7158
7159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7161 if (!SWIG_IsOK(res1)) {
7162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7163 }
7164 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7165 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7166 if (!SWIG_IsOK(res2)) {
7167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7168 }
7169 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7170 {
7171 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 {
7175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7176 }
7177 return resultobj;
7178fail:
7179 return NULL;
7180}
7181
7182
7183SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7184 PyObject *obj;
7185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7186 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7187 return SWIG_Py_Void();
7188}
7189
7190SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7191 return SWIG_Python_InitShadowInstance(args);
7192}
7193
7194SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7195 PyObject *resultobj = 0;
7196 int arg1 ;
7197 int arg2 ;
7198 buffer arg3 ;
7199 int arg4 ;
7200 buffer arg5 ;
7201 int arg6 ;
7202 wxBitmap *result = 0 ;
7203 int val1 ;
7204 int ecode1 = 0 ;
7205 int val2 ;
7206 int ecode2 = 0 ;
8c9c423b
RD
7207 Py_ssize_t temp3 ;
7208 Py_ssize_t temp5 ;
fc46b7f3
RD
7209 PyObject * obj0 = 0 ;
7210 PyObject * obj1 = 0 ;
7211 PyObject * obj2 = 0 ;
7212 PyObject * obj3 = 0 ;
7213 char * kwnames[] = {
7214 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7215 };
7216
7217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7218 ecode1 = SWIG_AsVal_int(obj0, &val1);
7219 if (!SWIG_IsOK(ecode1)) {
7220 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7221 }
7222 arg1 = static_cast< int >(val1);
7223 ecode2 = SWIG_AsVal_int(obj1, &val2);
7224 if (!SWIG_IsOK(ecode2)) {
7225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7226 }
7227 arg2 = static_cast< int >(val2);
7228 {
8c9c423b
RD
7229 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7230 arg4 = (int)temp3;
fc46b7f3
RD
7231 }
7232 {
7233 if (obj3 != Py_None) {
8c9c423b
RD
7234 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7235 arg6 = (int)temp5;
fc46b7f3
RD
7236 }
7237 }
7238 {
7239 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7240 if (PyErr_Occurred()) SWIG_fail;
7241 }
7242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7243 return resultobj;
7244fail:
7245 return NULL;
7246}
7247
7248
7249SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj = 0;
7251 int arg1 ;
7252 int arg2 ;
7253 buffer arg3 ;
7254 int arg4 ;
7255 wxBitmap *result = 0 ;
7256 int val1 ;
7257 int ecode1 = 0 ;
7258 int val2 ;
7259 int ecode2 = 0 ;
8c9c423b 7260 Py_ssize_t temp3 ;
fc46b7f3
RD
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 PyObject * obj2 = 0 ;
7264 char * kwnames[] = {
7265 (char *) "width",(char *) "height",(char *) "data", NULL
7266 };
7267
7268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7269 ecode1 = SWIG_AsVal_int(obj0, &val1);
7270 if (!SWIG_IsOK(ecode1)) {
7271 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7272 }
7273 arg1 = static_cast< int >(val1);
7274 ecode2 = SWIG_AsVal_int(obj1, &val2);
7275 if (!SWIG_IsOK(ecode2)) {
7276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7277 }
7278 arg2 = static_cast< int >(val2);
7279 {
8c9c423b
RD
7280 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7281 arg4 = (int)temp3;
fc46b7f3
RD
7282 }
7283 {
7284 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7288 return resultobj;
7289fail:
7290 return NULL;
7291}
7292
7293
7294SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7295 PyObject *resultobj = 0;
7296 int arg1 ;
7297 int arg2 ;
7298 buffer arg3 ;
7299 int arg4 ;
7300 wxBitmap *result = 0 ;
7301 int val1 ;
7302 int ecode1 = 0 ;
7303 int val2 ;
7304 int ecode2 = 0 ;
8c9c423b 7305 Py_ssize_t temp3 ;
fc46b7f3
RD
7306 PyObject * obj0 = 0 ;
7307 PyObject * obj1 = 0 ;
7308 PyObject * obj2 = 0 ;
7309 char * kwnames[] = {
7310 (char *) "width",(char *) "height",(char *) "data", NULL
7311 };
7312
7313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7314 ecode1 = SWIG_AsVal_int(obj0, &val1);
7315 if (!SWIG_IsOK(ecode1)) {
7316 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7317 }
7318 arg1 = static_cast< int >(val1);
7319 ecode2 = SWIG_AsVal_int(obj1, &val2);
7320 if (!SWIG_IsOK(ecode2)) {
7321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7322 }
7323 arg2 = static_cast< int >(val2);
7324 {
8c9c423b
RD
7325 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7326 arg4 = (int)temp3;
fc46b7f3
RD
7327 }
7328 {
7329 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7330 if (PyErr_Occurred()) SWIG_fail;
7331 }
7332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7333 return resultobj;
7334fail:
7335 return NULL;
7336}
7337
7338
7339SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7340 PyObject *resultobj = 0;
7341 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7342 wxPoint result;
7343 void *argp1 = 0 ;
7344 int res1 = 0 ;
7345 PyObject *swig_obj[1] ;
7346
7347 if (!args) SWIG_fail;
7348 swig_obj[0] = args;
7349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7350 if (!SWIG_IsOK(res1)) {
7351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7352 }
7353 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7354 {
7355 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7359 return resultobj;
7360fail:
7361 return NULL;
7362}
7363
7364
7365SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7366 PyObject *resultobj = 0;
7367 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7368 int result;
7369 void *argp1 = 0 ;
7370 int res1 = 0 ;
7371 PyObject *swig_obj[1] ;
7372
7373 if (!args) SWIG_fail;
7374 swig_obj[0] = args;
7375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7376 if (!SWIG_IsOK(res1)) {
7377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7378 }
7379 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7380 {
7381 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_From_int(static_cast< int >(result));
7385 return resultobj;
7386fail:
7387 return NULL;
7388}
7389
7390
7391SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7392 PyObject *resultobj = 0;
7393 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7394 int result;
7395 void *argp1 = 0 ;
7396 int res1 = 0 ;
7397 PyObject *swig_obj[1] ;
7398
7399 if (!args) SWIG_fail;
7400 swig_obj[0] = args;
7401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7402 if (!SWIG_IsOK(res1)) {
7403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7404 }
7405 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7406 {
7407 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 resultobj = SWIG_From_int(static_cast< int >(result));
7411 return resultobj;
7412fail:
7413 return NULL;
7414}
7415
7416
7417SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7418 PyObject *resultobj = 0;
7419 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7420 wxSize result;
7421 void *argp1 = 0 ;
7422 int res1 = 0 ;
7423 PyObject *swig_obj[1] ;
7424
7425 if (!args) SWIG_fail;
7426 swig_obj[0] = args;
7427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7428 if (!SWIG_IsOK(res1)) {
7429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7430 }
7431 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7432 {
7433 result = ((wxPixelDataBase const *)arg1)->GetSize();
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7437 return resultobj;
7438fail:
7439 return NULL;
7440}
7441
7442
7443SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7444 PyObject *resultobj = 0;
7445 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7446 int result;
7447 void *argp1 = 0 ;
7448 int res1 = 0 ;
7449 PyObject *swig_obj[1] ;
7450
7451 if (!args) SWIG_fail;
7452 swig_obj[0] = args;
7453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7454 if (!SWIG_IsOK(res1)) {
7455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7456 }
7457 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7458 {
7459 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7460 if (PyErr_Occurred()) SWIG_fail;
7461 }
7462 resultobj = SWIG_From_int(static_cast< int >(result));
7463 return resultobj;
7464fail:
7465 return NULL;
7466}
7467
7468
7469SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7470 PyObject *obj;
7471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7472 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7473 return SWIG_Py_Void();
7474}
7475
7476SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7477 PyObject *resultobj = 0;
7478 wxBitmap *arg1 = 0 ;
7479 wxNativePixelData *result = 0 ;
7480 void *argp1 = 0 ;
7481 int res1 = 0 ;
7482
7483 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7485 if (!SWIG_IsOK(res1)) {
7486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7487 }
7488 if (!argp1) {
7489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7490 }
7491 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7492 {
7493 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7494 if (PyErr_Occurred()) SWIG_fail;
7495 }
7496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7497 return resultobj;
7498fail:
7499 return NULL;
7500}
7501
7502
7503SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7504 PyObject *resultobj = 0;
7505 wxBitmap *arg1 = 0 ;
7506 wxRect *arg2 = 0 ;
7507 wxNativePixelData *result = 0 ;
7508 void *argp1 = 0 ;
7509 int res1 = 0 ;
7510 wxRect temp2 ;
7511
7512 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7514 if (!SWIG_IsOK(res1)) {
7515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7516 }
7517 if (!argp1) {
7518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7519 }
7520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7521 {
7522 arg2 = &temp2;
7523 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7524 }
7525 {
7526 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7527 if (PyErr_Occurred()) SWIG_fail;
7528 }
7529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7530 return resultobj;
7531fail:
7532 return NULL;
7533}
7534
7535
7536SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7537 PyObject *resultobj = 0;
7538 wxBitmap *arg1 = 0 ;
7539 wxPoint *arg2 = 0 ;
7540 wxSize *arg3 = 0 ;
7541 wxNativePixelData *result = 0 ;
7542 void *argp1 = 0 ;
7543 int res1 = 0 ;
7544 wxPoint temp2 ;
7545 wxSize temp3 ;
7546
7547 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7551 }
7552 if (!argp1) {
7553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7554 }
7555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7556 {
7557 arg2 = &temp2;
7558 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7559 }
7560 {
7561 arg3 = &temp3;
7562 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7563 }
7564 {
7565 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7569 return resultobj;
7570fail:
7571 return NULL;
7572}
7573
7574
7575SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7576 int argc;
7577 PyObject *argv[4];
7578
7579 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7580 --argc;
7581 if (argc == 1) {
7582 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7583 }
7584 if (argc == 2) {
7585 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7586 }
7587 if (argc == 3) {
7588 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7589 }
7590
7591fail:
7592 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7593 return NULL;
7594}
7595
7596
7597SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7598 PyObject *resultobj = 0;
7599 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7600 void *argp1 = 0 ;
7601 int res1 = 0 ;
7602 PyObject *swig_obj[1] ;
7603
7604 if (!args) SWIG_fail;
7605 swig_obj[0] = args;
7606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7607 if (!SWIG_IsOK(res1)) {
7608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7609 }
7610 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7611 {
7612 delete arg1;
7613
7614 if (PyErr_Occurred()) SWIG_fail;
7615 }
7616 resultobj = SWIG_Py_Void();
7617 return resultobj;
7618fail:
7619 return NULL;
7620}
7621
7622
7623SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7624 PyObject *resultobj = 0;
7625 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7626 wxNativePixelData_Accessor result;
7627 void *argp1 = 0 ;
7628 int res1 = 0 ;
7629 PyObject *swig_obj[1] ;
7630
7631 if (!args) SWIG_fail;
7632 swig_obj[0] = args;
7633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7634 if (!SWIG_IsOK(res1)) {
7635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7636 }
7637 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7638 {
7639 result = ((wxNativePixelData const *)arg1)->GetPixels();
7640 if (PyErr_Occurred()) SWIG_fail;
7641 }
7642 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7643 return resultobj;
7644fail:
7645 return NULL;
7646}
7647
7648
7649SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7650 PyObject *resultobj = 0;
7651 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7652 void *argp1 = 0 ;
7653 int res1 = 0 ;
7654 PyObject *swig_obj[1] ;
7655
7656 if (!args) SWIG_fail;
7657 swig_obj[0] = args;
7658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7659 if (!SWIG_IsOK(res1)) {
7660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7661 }
7662 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7663 {
7664 (arg1)->UseAlpha();
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 resultobj = SWIG_Py_Void();
7668 return resultobj;
7669fail:
7670 return NULL;
7671}
7672
7673
7674SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7675 PyObject *resultobj = 0;
7676 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7677 bool result;
7678 void *argp1 = 0 ;
7679 int res1 = 0 ;
7680 PyObject *swig_obj[1] ;
7681
7682 if (!args) SWIG_fail;
7683 swig_obj[0] = args;
7684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7685 if (!SWIG_IsOK(res1)) {
7686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7687 }
7688 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7689 {
7690 result = (bool)wxNativePixelData___nonzero__(arg1);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 {
7694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7695 }
7696 return resultobj;
7697fail:
7698 return NULL;
7699}
7700
7701
7702SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7703 PyObject *obj;
7704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7705 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7706 return SWIG_Py_Void();
7707}
7708
7709SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7710 return SWIG_Python_InitShadowInstance(args);
7711}
7712
7713SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7714 PyObject *resultobj = 0;
7715 wxNativePixelData *arg1 = 0 ;
7716 wxNativePixelData_Accessor *result = 0 ;
7717 void *argp1 = 0 ;
7718 int res1 = 0 ;
7719
7720 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7722 if (!SWIG_IsOK(res1)) {
7723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7724 }
7725 if (!argp1) {
7726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7727 }
7728 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7729 {
7730 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7734 return resultobj;
7735fail:
7736 return NULL;
7737}
7738
7739
7740SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7741 PyObject *resultobj = 0;
7742 wxBitmap *arg1 = 0 ;
7743 wxNativePixelData *arg2 = 0 ;
7744 wxNativePixelData_Accessor *result = 0 ;
7745 void *argp1 = 0 ;
7746 int res1 = 0 ;
7747 void *argp2 = 0 ;
7748 int res2 = 0 ;
7749
7750 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7752 if (!SWIG_IsOK(res1)) {
7753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7754 }
7755 if (!argp1) {
7756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7757 }
7758 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7759 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7760 if (!SWIG_IsOK(res2)) {
7761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7762 }
7763 if (!argp2) {
7764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7765 }
7766 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7767 {
7768 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7772 return resultobj;
7773fail:
7774 return NULL;
7775}
7776
7777
7778SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7779 PyObject *resultobj = 0;
7780 wxNativePixelData_Accessor *result = 0 ;
7781
7782 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7783 {
7784 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7788 return resultobj;
7789fail:
7790 return NULL;
7791}
7792
7793
7794SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7795 int argc;
7796 PyObject *argv[3];
7797
7798 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7799 --argc;
7800 if (argc == 0) {
7801 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7802 }
7803 if (argc == 1) {
7804 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7805 }
7806 if (argc == 2) {
7807 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7808 }
7809
7810fail:
7811 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7812 return NULL;
7813}
7814
7815
7816SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7817 PyObject *resultobj = 0;
7818 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7819 void *argp1 = 0 ;
7820 int res1 = 0 ;
7821 PyObject *swig_obj[1] ;
7822
7823 if (!args) SWIG_fail;
7824 swig_obj[0] = args;
7825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7826 if (!SWIG_IsOK(res1)) {
7827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7828 }
7829 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7830 {
7831 delete arg1;
7832
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_Py_Void();
7836 return resultobj;
7837fail:
7838 return NULL;
7839}
7840
7841
7842SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7843 PyObject *resultobj = 0;
7844 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7845 wxNativePixelData *arg2 = 0 ;
7846 void *argp1 = 0 ;
7847 int res1 = 0 ;
7848 void *argp2 = 0 ;
7849 int res2 = 0 ;
7850 PyObject * obj0 = 0 ;
7851 PyObject * obj1 = 0 ;
7852 char * kwnames[] = {
7853 (char *) "self",(char *) "data", NULL
7854 };
7855
7856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7858 if (!SWIG_IsOK(res1)) {
7859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7860 }
7861 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7863 if (!SWIG_IsOK(res2)) {
7864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7865 }
7866 if (!argp2) {
7867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7868 }
7869 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7870 {
7871 (arg1)->Reset((wxNativePixelData const &)*arg2);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_Py_Void();
7875 return resultobj;
7876fail:
7877 return NULL;
7878}
7879
7880
7881SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 PyObject *resultobj = 0;
7883 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7884 bool result;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 PyObject *swig_obj[1] ;
7888
7889 if (!args) SWIG_fail;
7890 swig_obj[0] = args;
7891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7892 if (!SWIG_IsOK(res1)) {
7893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7894 }
7895 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7896 {
7897 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 {
7901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7902 }
7903 return resultobj;
7904fail:
7905 return NULL;
7906}
7907
7908
7909SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7910 PyObject *resultobj = 0;
7911 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7912 void *argp1 = 0 ;
7913 int res1 = 0 ;
7914 PyObject *swig_obj[1] ;
7915
7916 if (!args) SWIG_fail;
7917 swig_obj[0] = args;
7918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7919 if (!SWIG_IsOK(res1)) {
7920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7921 }
7922 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7923 {
7924 wxNativePixelData_Accessor_nextPixel(arg1);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 resultobj = SWIG_Py_Void();
7928 return resultobj;
7929fail:
7930 return NULL;
7931}
7932
7933
7934SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj = 0;
7936 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7937 wxNativePixelData *arg2 = 0 ;
7938 int arg3 ;
7939 int arg4 ;
7940 void *argp1 = 0 ;
7941 int res1 = 0 ;
7942 void *argp2 = 0 ;
7943 int res2 = 0 ;
7944 int val3 ;
7945 int ecode3 = 0 ;
7946 int val4 ;
7947 int ecode4 = 0 ;
7948 PyObject * obj0 = 0 ;
7949 PyObject * obj1 = 0 ;
7950 PyObject * obj2 = 0 ;
7951 PyObject * obj3 = 0 ;
7952 char * kwnames[] = {
7953 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7954 };
7955
7956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7958 if (!SWIG_IsOK(res1)) {
7959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7960 }
7961 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7963 if (!SWIG_IsOK(res2)) {
7964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7965 }
7966 if (!argp2) {
7967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7968 }
7969 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7970 ecode3 = SWIG_AsVal_int(obj2, &val3);
7971 if (!SWIG_IsOK(ecode3)) {
7972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7973 }
7974 arg3 = static_cast< int >(val3);
7975 ecode4 = SWIG_AsVal_int(obj3, &val4);
7976 if (!SWIG_IsOK(ecode4)) {
7977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7978 }
7979 arg4 = static_cast< int >(val4);
7980 {
7981 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_Py_Void();
7985 return resultobj;
7986fail:
7987 return NULL;
7988}
7989
7990
7991SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj = 0;
7993 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7994 wxNativePixelData *arg2 = 0 ;
7995 int arg3 ;
7996 void *argp1 = 0 ;
7997 int res1 = 0 ;
7998 void *argp2 = 0 ;
7999 int res2 = 0 ;
8000 int val3 ;
8001 int ecode3 = 0 ;
8002 PyObject * obj0 = 0 ;
8003 PyObject * obj1 = 0 ;
8004 PyObject * obj2 = 0 ;
8005 char * kwnames[] = {
8006 (char *) "self",(char *) "data",(char *) "x", NULL
8007 };
8008
8009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8013 }
8014 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8016 if (!SWIG_IsOK(res2)) {
8017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8018 }
8019 if (!argp2) {
8020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8021 }
8022 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8023 ecode3 = SWIG_AsVal_int(obj2, &val3);
8024 if (!SWIG_IsOK(ecode3)) {
8025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8026 }
8027 arg3 = static_cast< int >(val3);
8028 {
8029 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8030 if (PyErr_Occurred()) SWIG_fail;
8031 }
8032 resultobj = SWIG_Py_Void();
8033 return resultobj;
8034fail:
8035 return NULL;
8036}
8037
8038
8039SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj = 0;
8041 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8042 wxNativePixelData *arg2 = 0 ;
8043 int arg3 ;
8044 void *argp1 = 0 ;
8045 int res1 = 0 ;
8046 void *argp2 = 0 ;
8047 int res2 = 0 ;
8048 int val3 ;
8049 int ecode3 = 0 ;
8050 PyObject * obj0 = 0 ;
8051 PyObject * obj1 = 0 ;
8052 PyObject * obj2 = 0 ;
8053 char * kwnames[] = {
8054 (char *) "self",(char *) "data",(char *) "y", NULL
8055 };
8056
8057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8059 if (!SWIG_IsOK(res1)) {
8060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8061 }
8062 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8064 if (!SWIG_IsOK(res2)) {
8065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8066 }
8067 if (!argp2) {
8068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8069 }
8070 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8071 ecode3 = SWIG_AsVal_int(obj2, &val3);
8072 if (!SWIG_IsOK(ecode3)) {
8073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8074 }
8075 arg3 = static_cast< int >(val3);
8076 {
8077 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_Py_Void();
8081 return resultobj;
8082fail:
8083 return NULL;
8084}
8085
8086
8087SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj = 0;
8089 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8090 wxNativePixelData *arg2 = 0 ;
8091 int arg3 ;
8092 int arg4 ;
8093 void *argp1 = 0 ;
8094 int res1 = 0 ;
8095 void *argp2 = 0 ;
8096 int res2 = 0 ;
8097 int val3 ;
8098 int ecode3 = 0 ;
8099 int val4 ;
8100 int ecode4 = 0 ;
8101 PyObject * obj0 = 0 ;
8102 PyObject * obj1 = 0 ;
8103 PyObject * obj2 = 0 ;
8104 PyObject * obj3 = 0 ;
8105 char * kwnames[] = {
8106 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8107 };
8108
8109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8111 if (!SWIG_IsOK(res1)) {
8112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8113 }
8114 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8116 if (!SWIG_IsOK(res2)) {
8117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8118 }
8119 if (!argp2) {
8120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8121 }
8122 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8123 ecode3 = SWIG_AsVal_int(obj2, &val3);
8124 if (!SWIG_IsOK(ecode3)) {
8125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8126 }
8127 arg3 = static_cast< int >(val3);
8128 ecode4 = SWIG_AsVal_int(obj3, &val4);
8129 if (!SWIG_IsOK(ecode4)) {
8130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8131 }
8132 arg4 = static_cast< int >(val4);
8133 {
8134 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = SWIG_Py_Void();
8138 return resultobj;
8139fail:
8140 return NULL;
8141}
8142
8143
8144SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj = 0;
8146 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8147 byte arg2 ;
8148 byte arg3 ;
8149 byte arg4 ;
8150 void *argp1 = 0 ;
8151 int res1 = 0 ;
8152 unsigned char val2 ;
8153 int ecode2 = 0 ;
8154 unsigned char val3 ;
8155 int ecode3 = 0 ;
8156 unsigned char val4 ;
8157 int ecode4 = 0 ;
8158 PyObject * obj0 = 0 ;
8159 PyObject * obj1 = 0 ;
8160 PyObject * obj2 = 0 ;
8161 PyObject * obj3 = 0 ;
8162 char * kwnames[] = {
8163 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8164 };
8165
8166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8168 if (!SWIG_IsOK(res1)) {
8169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8170 }
8171 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8172 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8173 if (!SWIG_IsOK(ecode2)) {
8174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8175 }
8176 arg2 = static_cast< byte >(val2);
8177 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8178 if (!SWIG_IsOK(ecode3)) {
8179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8180 }
8181 arg3 = static_cast< byte >(val3);
8182 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8183 if (!SWIG_IsOK(ecode4)) {
8184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8185 }
8186 arg4 = static_cast< byte >(val4);
8187 {
8188 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 resultobj = SWIG_Py_Void();
8192 return resultobj;
8193fail:
8194 return NULL;
8195}
8196
8197
8198SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8199 PyObject *resultobj = 0;
8200 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8201 PyObject *result = 0 ;
8202 void *argp1 = 0 ;
8203 int res1 = 0 ;
8204 PyObject *swig_obj[1] ;
8205
8206 if (!args) SWIG_fail;
8207 swig_obj[0] = args;
8208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8209 if (!SWIG_IsOK(res1)) {
8210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8211 }
8212 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8213 {
8214 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = result;
8218 return resultobj;
8219fail:
8220 return NULL;
8221}
8222
8223
8224SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8225 PyObject *obj;
8226 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8227 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8228 return SWIG_Py_Void();
8229}
8230
8231SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8232 return SWIG_Python_InitShadowInstance(args);
8233}
8234
8235SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8236 PyObject *resultobj = 0;
8237 wxBitmap *arg1 = 0 ;
8238 wxAlphaPixelData *result = 0 ;
8239 void *argp1 = 0 ;
8240 int res1 = 0 ;
8241
8242 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8244 if (!SWIG_IsOK(res1)) {
8245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8246 }
8247 if (!argp1) {
8248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8249 }
8250 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8251 {
8252 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8253 if (PyErr_Occurred()) SWIG_fail;
8254 }
8255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8256 return resultobj;
8257fail:
8258 return NULL;
8259}
8260
8261
8262SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8263 PyObject *resultobj = 0;
8264 wxBitmap *arg1 = 0 ;
8265 wxRect *arg2 = 0 ;
8266 wxAlphaPixelData *result = 0 ;
8267 void *argp1 = 0 ;
8268 int res1 = 0 ;
8269 wxRect temp2 ;
8270
8271 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8273 if (!SWIG_IsOK(res1)) {
8274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8275 }
8276 if (!argp1) {
8277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8278 }
8279 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8280 {
8281 arg2 = &temp2;
8282 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8283 }
8284 {
8285 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8289 return resultobj;
8290fail:
8291 return NULL;
8292}
8293
8294
8295SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8296 PyObject *resultobj = 0;
8297 wxBitmap *arg1 = 0 ;
8298 wxPoint *arg2 = 0 ;
8299 wxSize *arg3 = 0 ;
8300 wxAlphaPixelData *result = 0 ;
8301 void *argp1 = 0 ;
8302 int res1 = 0 ;
8303 wxPoint temp2 ;
8304 wxSize temp3 ;
8305
8306 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8308 if (!SWIG_IsOK(res1)) {
8309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8310 }
8311 if (!argp1) {
8312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8313 }
8314 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8315 {
8316 arg2 = &temp2;
8317 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8318 }
8319 {
8320 arg3 = &temp3;
8321 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8322 }
8323 {
8324 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8328 return resultobj;
8329fail:
8330 return NULL;
8331}
8332
8333
8334SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8335 int argc;
8336 PyObject *argv[4];
8337
8338 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8339 --argc;
8340 if (argc == 1) {
8341 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8342 }
8343 if (argc == 2) {
8344 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8345 }
8346 if (argc == 3) {
8347 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8348 }
8349
8350fail:
8351 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8352 return NULL;
8353}
8354
8355
8356SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8357 PyObject *resultobj = 0;
8358 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8359 void *argp1 = 0 ;
8360 int res1 = 0 ;
8361 PyObject *swig_obj[1] ;
8362
8363 if (!args) SWIG_fail;
8364 swig_obj[0] = args;
8365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8366 if (!SWIG_IsOK(res1)) {
8367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8368 }
8369 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8370 {
8371 delete arg1;
8372
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 resultobj = SWIG_Py_Void();
8376 return resultobj;
8377fail:
8378 return NULL;
8379}
8380
8381
8382SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8383 PyObject *resultobj = 0;
8384 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8385 wxAlphaPixelData_Accessor result;
8386 void *argp1 = 0 ;
8387 int res1 = 0 ;
8388 PyObject *swig_obj[1] ;
8389
8390 if (!args) SWIG_fail;
8391 swig_obj[0] = args;
8392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8393 if (!SWIG_IsOK(res1)) {
8394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8395 }
8396 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8397 {
8398 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8399 if (PyErr_Occurred()) SWIG_fail;
8400 }
8401 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8402 return resultobj;
8403fail:
8404 return NULL;
8405}
8406
8407
8408SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8409 PyObject *resultobj = 0;
8410 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8411 void *argp1 = 0 ;
8412 int res1 = 0 ;
8413 PyObject *swig_obj[1] ;
8414
8415 if (!args) SWIG_fail;
8416 swig_obj[0] = args;
8417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8418 if (!SWIG_IsOK(res1)) {
8419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8420 }
8421 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8422 {
8423 (arg1)->UseAlpha();
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 resultobj = SWIG_Py_Void();
8427 return resultobj;
8428fail:
8429 return NULL;
8430}
8431
8432
8433SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8434 PyObject *resultobj = 0;
8435 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8436 bool result;
8437 void *argp1 = 0 ;
8438 int res1 = 0 ;
8439 PyObject *swig_obj[1] ;
8440
8441 if (!args) SWIG_fail;
8442 swig_obj[0] = args;
8443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8444 if (!SWIG_IsOK(res1)) {
8445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8446 }
8447 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8448 {
8449 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 {
8453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8454 }
8455 return resultobj;
8456fail:
8457 return NULL;
8458}
8459
8460
8461SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8462 PyObject *obj;
8463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8464 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8465 return SWIG_Py_Void();
8466}
8467
8468SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8469 return SWIG_Python_InitShadowInstance(args);
8470}
8471
8472SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8473 PyObject *resultobj = 0;
8474 wxAlphaPixelData *arg1 = 0 ;
8475 wxAlphaPixelData_Accessor *result = 0 ;
8476 void *argp1 = 0 ;
8477 int res1 = 0 ;
8478
8479 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8481 if (!SWIG_IsOK(res1)) {
8482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8483 }
8484 if (!argp1) {
8485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8486 }
8487 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8488 {
8489 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8493 return resultobj;
8494fail:
8495 return NULL;
8496}
8497
8498
8499SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8500 PyObject *resultobj = 0;
8501 wxBitmap *arg1 = 0 ;
8502 wxAlphaPixelData *arg2 = 0 ;
8503 wxAlphaPixelData_Accessor *result = 0 ;
8504 void *argp1 = 0 ;
8505 int res1 = 0 ;
8506 void *argp2 = 0 ;
8507 int res2 = 0 ;
8508
8509 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8511 if (!SWIG_IsOK(res1)) {
8512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8513 }
8514 if (!argp1) {
8515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8516 }
8517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8518 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8519 if (!SWIG_IsOK(res2)) {
8520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8521 }
8522 if (!argp2) {
8523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8524 }
8525 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8526 {
8527 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8531 return resultobj;
8532fail:
8533 return NULL;
8534}
8535
8536
8537SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8538 PyObject *resultobj = 0;
8539 wxAlphaPixelData_Accessor *result = 0 ;
8540
8541 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8542 {
8543 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8544 if (PyErr_Occurred()) SWIG_fail;
8545 }
8546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8547 return resultobj;
8548fail:
8549 return NULL;
8550}
8551
8552
8553SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8554 int argc;
8555 PyObject *argv[3];
8556
8557 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8558 --argc;
8559 if (argc == 0) {
8560 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8561 }
8562 if (argc == 1) {
8563 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8564 }
8565 if (argc == 2) {
8566 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8567 }
8568
8569fail:
8570 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8571 return NULL;
8572}
8573
8574
8575SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8576 PyObject *resultobj = 0;
8577 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8578 void *argp1 = 0 ;
8579 int res1 = 0 ;
8580 PyObject *swig_obj[1] ;
8581
8582 if (!args) SWIG_fail;
8583 swig_obj[0] = args;
8584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8585 if (!SWIG_IsOK(res1)) {
8586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8587 }
8588 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8589 {
8590 delete arg1;
8591
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 resultobj = SWIG_Py_Void();
8595 return resultobj;
8596fail:
8597 return NULL;
8598}
8599
8600
8601SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj = 0;
8603 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8604 wxAlphaPixelData *arg2 = 0 ;
8605 void *argp1 = 0 ;
8606 int res1 = 0 ;
8607 void *argp2 = 0 ;
8608 int res2 = 0 ;
8609 PyObject * obj0 = 0 ;
8610 PyObject * obj1 = 0 ;
8611 char * kwnames[] = {
8612 (char *) "self",(char *) "data", NULL
8613 };
8614
8615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8617 if (!SWIG_IsOK(res1)) {
8618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8619 }
8620 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8622 if (!SWIG_IsOK(res2)) {
8623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8624 }
8625 if (!argp2) {
8626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8627 }
8628 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8629 {
8630 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 resultobj = SWIG_Py_Void();
8634 return resultobj;
8635fail:
8636 return NULL;
8637}
8638
8639
8640SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8641 PyObject *resultobj = 0;
8642 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8643 bool result;
8644 void *argp1 = 0 ;
8645 int res1 = 0 ;
8646 PyObject *swig_obj[1] ;
8647
8648 if (!args) SWIG_fail;
8649 swig_obj[0] = args;
8650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8651 if (!SWIG_IsOK(res1)) {
8652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8653 }
8654 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8655 {
8656 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 {
8660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8661 }
8662 return resultobj;
8663fail:
8664 return NULL;
8665}
8666
8667
8668SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8669 PyObject *resultobj = 0;
8670 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8671 void *argp1 = 0 ;
8672 int res1 = 0 ;
8673 PyObject *swig_obj[1] ;
8674
8675 if (!args) SWIG_fail;
8676 swig_obj[0] = args;
8677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8680 }
8681 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8682 {
8683 wxAlphaPixelData_Accessor_nextPixel(arg1);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 resultobj = SWIG_Py_Void();
8687 return resultobj;
8688fail:
8689 return NULL;
8690}
8691
8692
8693SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj = 0;
8695 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8696 wxAlphaPixelData *arg2 = 0 ;
8697 int arg3 ;
8698 int arg4 ;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 void *argp2 = 0 ;
8702 int res2 = 0 ;
8703 int val3 ;
8704 int ecode3 = 0 ;
8705 int val4 ;
8706 int ecode4 = 0 ;
8707 PyObject * obj0 = 0 ;
8708 PyObject * obj1 = 0 ;
8709 PyObject * obj2 = 0 ;
8710 PyObject * obj3 = 0 ;
8711 char * kwnames[] = {
8712 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8713 };
8714
8715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8717 if (!SWIG_IsOK(res1)) {
8718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8719 }
8720 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8721 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8722 if (!SWIG_IsOK(res2)) {
8723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8724 }
8725 if (!argp2) {
8726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8727 }
8728 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8729 ecode3 = SWIG_AsVal_int(obj2, &val3);
8730 if (!SWIG_IsOK(ecode3)) {
8731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8732 }
8733 arg3 = static_cast< int >(val3);
8734 ecode4 = SWIG_AsVal_int(obj3, &val4);
8735 if (!SWIG_IsOK(ecode4)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8737 }
8738 arg4 = static_cast< int >(val4);
8739 {
8740 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 resultobj = SWIG_Py_Void();
8744 return resultobj;
8745fail:
8746 return NULL;
8747}
8748
8749
8750SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj = 0;
8752 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8753 wxAlphaPixelData *arg2 = 0 ;
8754 int arg3 ;
8755 void *argp1 = 0 ;
8756 int res1 = 0 ;
8757 void *argp2 = 0 ;
8758 int res2 = 0 ;
8759 int val3 ;
8760 int ecode3 = 0 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 PyObject * obj2 = 0 ;
8764 char * kwnames[] = {
8765 (char *) "self",(char *) "data",(char *) "x", NULL
8766 };
8767
8768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8772 }
8773 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8775 if (!SWIG_IsOK(res2)) {
8776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8777 }
8778 if (!argp2) {
8779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8780 }
8781 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8782 ecode3 = SWIG_AsVal_int(obj2, &val3);
8783 if (!SWIG_IsOK(ecode3)) {
8784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8785 }
8786 arg3 = static_cast< int >(val3);
8787 {
8788 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 resultobj = SWIG_Py_Void();
8792 return resultobj;
8793fail:
8794 return NULL;
8795}
8796
8797
8798SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj = 0;
8800 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8801 wxAlphaPixelData *arg2 = 0 ;
8802 int arg3 ;
8803 void *argp1 = 0 ;
8804 int res1 = 0 ;
8805 void *argp2 = 0 ;
8806 int res2 = 0 ;
8807 int val3 ;
8808 int ecode3 = 0 ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 PyObject * obj2 = 0 ;
8812 char * kwnames[] = {
8813 (char *) "self",(char *) "data",(char *) "y", NULL
8814 };
8815
8816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8818 if (!SWIG_IsOK(res1)) {
8819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8820 }
8821 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8823 if (!SWIG_IsOK(res2)) {
8824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8825 }
8826 if (!argp2) {
8827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8828 }
8829 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8830 ecode3 = SWIG_AsVal_int(obj2, &val3);
8831 if (!SWIG_IsOK(ecode3)) {
8832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8833 }
8834 arg3 = static_cast< int >(val3);
8835 {
8836 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 resultobj = SWIG_Py_Void();
8840 return resultobj;
8841fail:
8842 return NULL;
8843}
8844
8845
8846SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8847 PyObject *resultobj = 0;
8848 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8849 wxAlphaPixelData *arg2 = 0 ;
8850 int arg3 ;
8851 int arg4 ;
8852 void *argp1 = 0 ;
8853 int res1 = 0 ;
8854 void *argp2 = 0 ;
8855 int res2 = 0 ;
8856 int val3 ;
8857 int ecode3 = 0 ;
8858 int val4 ;
8859 int ecode4 = 0 ;
8860 PyObject * obj0 = 0 ;
8861 PyObject * obj1 = 0 ;
8862 PyObject * obj2 = 0 ;
8863 PyObject * obj3 = 0 ;
8864 char * kwnames[] = {
8865 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8866 };
8867
8868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8870 if (!SWIG_IsOK(res1)) {
8871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8872 }
8873 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8875 if (!SWIG_IsOK(res2)) {
8876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8877 }
8878 if (!argp2) {
8879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8880 }
8881 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8882 ecode3 = SWIG_AsVal_int(obj2, &val3);
8883 if (!SWIG_IsOK(ecode3)) {
8884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8885 }
8886 arg3 = static_cast< int >(val3);
8887 ecode4 = SWIG_AsVal_int(obj3, &val4);
8888 if (!SWIG_IsOK(ecode4)) {
8889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8890 }
8891 arg4 = static_cast< int >(val4);
8892 {
8893 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 resultobj = SWIG_Py_Void();
8897 return resultobj;
8898fail:
8899 return NULL;
8900}
8901
8902
8903SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8904 PyObject *resultobj = 0;
8905 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8906 byte arg2 ;
8907 byte arg3 ;
8908 byte arg4 ;
8909 byte arg5 ;
8910 void *argp1 = 0 ;
8911 int res1 = 0 ;
8912 unsigned char val2 ;
8913 int ecode2 = 0 ;
8914 unsigned char val3 ;
8915 int ecode3 = 0 ;
8916 unsigned char val4 ;
8917 int ecode4 = 0 ;
8918 unsigned char val5 ;
8919 int ecode5 = 0 ;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 PyObject * obj2 = 0 ;
8923 PyObject * obj3 = 0 ;
8924 PyObject * obj4 = 0 ;
8925 char * kwnames[] = {
8926 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8927 };
8928
8929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8931 if (!SWIG_IsOK(res1)) {
8932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8933 }
8934 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8935 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8936 if (!SWIG_IsOK(ecode2)) {
8937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8938 }
8939 arg2 = static_cast< byte >(val2);
8940 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8941 if (!SWIG_IsOK(ecode3)) {
8942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8943 }
8944 arg3 = static_cast< byte >(val3);
8945 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8946 if (!SWIG_IsOK(ecode4)) {
8947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8948 }
8949 arg4 = static_cast< byte >(val4);
8950 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8951 if (!SWIG_IsOK(ecode5)) {
8952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8953 }
8954 arg5 = static_cast< byte >(val5);
8955 {
8956 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8957 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8958 }
fc46b7f3 8959 resultobj = SWIG_Py_Void();
1bd55598
RD
8960 return resultobj;
8961fail:
8962 return NULL;
8963}
8964
8965
fc46b7f3 8966SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8967 PyObject *resultobj = 0;
fc46b7f3
RD
8968 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8969 PyObject *result = 0 ;
1bd55598
RD
8970 void *argp1 = 0 ;
8971 int res1 = 0 ;
fc46b7f3 8972 PyObject *swig_obj[1] ;
1bd55598 8973
fc46b7f3
RD
8974 if (!args) SWIG_fail;
8975 swig_obj[0] = args;
8976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8977 if (!SWIG_IsOK(res1)) {
fc46b7f3 8978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8979 }
fc46b7f3 8980 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8981 {
fc46b7f3 8982 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
fc46b7f3 8985 resultobj = result;
1bd55598
RD
8986 return resultobj;
8987fail:
8988 return NULL;
d55e5bfc
RD
8989}
8990
8991
fc46b7f3 8992SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8993 PyObject *obj;
8994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8995 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8996 return SWIG_Py_Void();
d55e5bfc
RD
8997}
8998
fc46b7f3 8999SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 9000 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9001}
9002
1bd55598
RD
9003SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9004 PyObject *resultobj = 0;
9005 wxBitmap *arg1 = 0 ;
9006 wxColour const &arg2_defvalue = wxNullColour ;
9007 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9008 wxMask *result = 0 ;
9009 void *argp1 = 0 ;
9010 int res1 = 0 ;
9011 wxColour temp2 ;
9012 PyObject * obj0 = 0 ;
9013 PyObject * obj1 = 0 ;
9014 char * kwnames[] = {
9015 (char *) "bitmap",(char *) "colour", NULL
9016 };
9017
9018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9019 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9020 if (!SWIG_IsOK(res1)) {
9021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9022 }
9023 if (!argp1) {
9024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9025 }
9026 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9027 if (obj1) {
d55e5bfc 9028 {
1bd55598
RD
9029 arg2 = &temp2;
9030 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9031 }
1bd55598
RD
9032 }
9033 {
9034 if (!wxPyCheckForApp()) SWIG_fail;
9035 PyThreadState* __tstate = wxPyBeginAllowThreads();
9036 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9037 wxPyEndAllowThreads(__tstate);
9038 if (PyErr_Occurred()) SWIG_fail;
9039 }
9040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9041 return resultobj;
9042fail:
9043 return NULL;
d55e5bfc
RD
9044}
9045
9046
1bd55598
RD
9047SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9048 PyObject *resultobj = 0;
9049 wxMask *arg1 = (wxMask *) 0 ;
9050 void *argp1 = 0 ;
9051 int res1 = 0 ;
9052 PyObject *swig_obj[1] ;
9053
9054 if (!args) SWIG_fail;
9055 swig_obj[0] = args;
9056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9057 if (!SWIG_IsOK(res1)) {
9058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9059 }
9060 arg1 = reinterpret_cast< wxMask * >(argp1);
9061 {
1bd55598 9062 delete arg1;
d55e5bfc 9063
1bd55598
RD
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 resultobj = SWIG_Py_Void();
9067 return resultobj;
9068fail:
9069 return NULL;
9070}
9071
9072
9073SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9074 PyObject *obj;
9075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9076 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9077 return SWIG_Py_Void();
9078}
9079
9080SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9081 return SWIG_Python_InitShadowInstance(args);
9082}
9083
9084SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9085 PyObject *resultobj = 0;
9086 wxString *arg1 = 0 ;
9087 wxBitmapType arg2 ;
9088 int arg3 = (int) -1 ;
9089 int arg4 = (int) -1 ;
9090 wxIcon *result = 0 ;
9091 bool temp1 = false ;
9092 int val2 ;
9093 int ecode2 = 0 ;
9094 int val3 ;
9095 int ecode3 = 0 ;
9096 int val4 ;
9097 int ecode4 = 0 ;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 PyObject * obj2 = 0 ;
9101 PyObject * obj3 = 0 ;
9102 char * kwnames[] = {
9103 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9104 };
9105
9106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9107 {
9108 arg1 = wxString_in_helper(obj0);
9109 if (arg1 == NULL) SWIG_fail;
9110 temp1 = true;
9111 }
9112 ecode2 = SWIG_AsVal_int(obj1, &val2);
9113 if (!SWIG_IsOK(ecode2)) {
9114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9115 }
9116 arg2 = static_cast< wxBitmapType >(val2);
9117 if (obj2) {
9118 ecode3 = SWIG_AsVal_int(obj2, &val3);
9119 if (!SWIG_IsOK(ecode3)) {
9120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9121 }
9122 arg3 = static_cast< int >(val3);
9123 }
9124 if (obj3) {
9125 ecode4 = SWIG_AsVal_int(obj3, &val4);
9126 if (!SWIG_IsOK(ecode4)) {
9127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9128 }
9129 arg4 = static_cast< int >(val4);
9130 }
9131 {
9132 if (!wxPyCheckForApp()) SWIG_fail;
9133 PyThreadState* __tstate = wxPyBeginAllowThreads();
9134 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9135 wxPyEndAllowThreads(__tstate);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
9138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9139 {
9140 if (temp1)
9141 delete arg1;
9142 }
9143 return resultobj;
9144fail:
9145 {
9146 if (temp1)
9147 delete arg1;
9148 }
9149 return NULL;
d55e5bfc
RD
9150}
9151
9152
1bd55598
RD
9153SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9154 PyObject *resultobj = 0;
9155 wxIcon *arg1 = (wxIcon *) 0 ;
9156 void *argp1 = 0 ;
9157 int res1 = 0 ;
9158 PyObject *swig_obj[1] ;
9159
9160 if (!args) SWIG_fail;
9161 swig_obj[0] = args;
9162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9163 if (!SWIG_IsOK(res1)) {
9164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9165 }
9166 arg1 = reinterpret_cast< wxIcon * >(argp1);
9167 {
9168 PyThreadState* __tstate = wxPyBeginAllowThreads();
9169 delete arg1;
d55e5bfc 9170
1bd55598
RD
9171 wxPyEndAllowThreads(__tstate);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 resultobj = SWIG_Py_Void();
9175 return resultobj;
9176fail:
9177 return NULL;
d55e5bfc
RD
9178}
9179
9180
1bd55598
RD
9181SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9182 PyObject *resultobj = 0;
9183 wxIcon *result = 0 ;
9184
9185 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9186 {
9187 if (!wxPyCheckForApp()) SWIG_fail;
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 result = (wxIcon *)new wxIcon();
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9194 return resultobj;
9195fail:
9196 return NULL;
9197}
9198
9199
9200SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9201 PyObject *resultobj = 0;
9202 wxIconLocation *arg1 = 0 ;
9203 wxIcon *result = 0 ;
9204 void *argp1 = 0 ;
9205 int res1 = 0 ;
9206 PyObject * obj0 = 0 ;
9207 char * kwnames[] = {
9208 (char *) "loc", NULL
9209 };
9210
9211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9212 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9213 if (!SWIG_IsOK(res1)) {
9214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9215 }
9216 if (!argp1) {
9217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9218 }
9219 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9220 {
9221 if (!wxPyCheckForApp()) SWIG_fail;
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9228 return resultobj;
9229fail:
9230 return NULL;
9231}
9232
9233
9234SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj = 0;
9236 wxBitmap *arg1 = 0 ;
9237 wxIcon *result = 0 ;
9238 void *argp1 = 0 ;
9239 int res1 = 0 ;
9240 PyObject * obj0 = 0 ;
9241 char * kwnames[] = {
9242 (char *) "bmp", NULL
9243 };
9244
9245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9246 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9247 if (!SWIG_IsOK(res1)) {
9248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9249 }
9250 if (!argp1) {
9251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9252 }
9253 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9254 {
9255 if (!wxPyCheckForApp()) SWIG_fail;
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9262 return resultobj;
9263fail:
9264 return NULL;
d55e5bfc
RD
9265}
9266
9267
1bd55598
RD
9268SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj = 0;
9270 PyObject *arg1 = (PyObject *) 0 ;
9271 wxIcon *result = 0 ;
9272 PyObject * obj0 = 0 ;
9273 char * kwnames[] = {
9274 (char *) "listOfStrings", NULL
9275 };
9276
9277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9278 arg1 = obj0;
9279 {
9280 if (!wxPyCheckForApp()) SWIG_fail;
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (wxIcon *)new_wxIcon(arg1);
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9287 return resultobj;
9288fail:
9289 return NULL;
d55e5bfc
RD
9290}
9291
9292
b39fe951 9293SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9294 PyObject *resultobj = 0;
9295 wxIcon *arg1 = (wxIcon *) 0 ;
9296 bool result;
9297 void *argp1 = 0 ;
9298 int res1 = 0 ;
9299 PyObject *swig_obj[1] ;
9300
9301 if (!args) SWIG_fail;
9302 swig_obj[0] = args;
9303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9304 if (!SWIG_IsOK(res1)) {
b39fe951 9305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9306 }
9307 arg1 = reinterpret_cast< wxIcon * >(argp1);
9308 {
9309 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9310 result = (bool)(arg1)->IsOk();
1bd55598
RD
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 {
9315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9316 }
9317 return resultobj;
9318fail:
9319 return NULL;
d55e5bfc
RD
9320}
9321
9322
1bd55598
RD
9323SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9324 PyObject *resultobj = 0;
9325 wxIcon *arg1 = (wxIcon *) 0 ;
9326 int result;
9327 void *argp1 = 0 ;
9328 int res1 = 0 ;
9329 PyObject *swig_obj[1] ;
9330
9331 if (!args) SWIG_fail;
9332 swig_obj[0] = args;
9333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9334 if (!SWIG_IsOK(res1)) {
9335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9336 }
9337 arg1 = reinterpret_cast< wxIcon * >(argp1);
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (int)(arg1)->GetWidth();
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 resultobj = SWIG_From_int(static_cast< int >(result));
9345 return resultobj;
9346fail:
9347 return NULL;
d55e5bfc
RD
9348}
9349
9350
1bd55598
RD
9351SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9352 PyObject *resultobj = 0;
9353 wxIcon *arg1 = (wxIcon *) 0 ;
9354 int result;
9355 void *argp1 = 0 ;
9356 int res1 = 0 ;
9357 PyObject *swig_obj[1] ;
9358
9359 if (!args) SWIG_fail;
9360 swig_obj[0] = args;
9361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9362 if (!SWIG_IsOK(res1)) {
9363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9364 }
9365 arg1 = reinterpret_cast< wxIcon * >(argp1);
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 result = (int)(arg1)->GetHeight();
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_From_int(static_cast< int >(result));
9373 return resultobj;
9374fail:
9375 return NULL;
d55e5bfc
RD
9376}
9377
9378
1bd55598
RD
9379SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9380 PyObject *resultobj = 0;
9381 wxIcon *arg1 = (wxIcon *) 0 ;
9382 int result;
9383 void *argp1 = 0 ;
9384 int res1 = 0 ;
9385 PyObject *swig_obj[1] ;
9386
9387 if (!args) SWIG_fail;
9388 swig_obj[0] = args;
9389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9390 if (!SWIG_IsOK(res1)) {
9391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9392 }
9393 arg1 = reinterpret_cast< wxIcon * >(argp1);
9394 {
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 result = (int)(arg1)->GetDepth();
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 resultobj = SWIG_From_int(static_cast< int >(result));
9401 return resultobj;
9402fail:
9403 return NULL;
9404}
9405
9406
9407SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj = 0;
9409 wxIcon *arg1 = (wxIcon *) 0 ;
9410 int arg2 ;
9411 void *argp1 = 0 ;
9412 int res1 = 0 ;
9413 int val2 ;
9414 int ecode2 = 0 ;
9415 PyObject * obj0 = 0 ;
9416 PyObject * obj1 = 0 ;
9417 char * kwnames[] = {
9418 (char *) "self",(char *) "w", NULL
9419 };
9420
9421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9423 if (!SWIG_IsOK(res1)) {
9424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9425 }
9426 arg1 = reinterpret_cast< wxIcon * >(argp1);
9427 ecode2 = SWIG_AsVal_int(obj1, &val2);
9428 if (!SWIG_IsOK(ecode2)) {
9429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9430 }
9431 arg2 = static_cast< int >(val2);
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 (arg1)->SetWidth(arg2);
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 resultobj = SWIG_Py_Void();
9439 return resultobj;
9440fail:
9441 return NULL;
9442}
9443
9444
9445SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj = 0;
9447 wxIcon *arg1 = (wxIcon *) 0 ;
9448 int arg2 ;
9449 void *argp1 = 0 ;
9450 int res1 = 0 ;
9451 int val2 ;
9452 int ecode2 = 0 ;
9453 PyObject * obj0 = 0 ;
9454 PyObject * obj1 = 0 ;
9455 char * kwnames[] = {
9456 (char *) "self",(char *) "h", NULL
9457 };
9458
9459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9461 if (!SWIG_IsOK(res1)) {
9462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9463 }
9464 arg1 = reinterpret_cast< wxIcon * >(argp1);
9465 ecode2 = SWIG_AsVal_int(obj1, &val2);
9466 if (!SWIG_IsOK(ecode2)) {
9467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9468 }
9469 arg2 = static_cast< int >(val2);
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 (arg1)->SetHeight(arg2);
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_Py_Void();
9477 return resultobj;
9478fail:
9479 return NULL;
9480}
9481
9482
9483SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj = 0;
9485 wxIcon *arg1 = (wxIcon *) 0 ;
9486 int arg2 ;
9487 void *argp1 = 0 ;
9488 int res1 = 0 ;
9489 int val2 ;
9490 int ecode2 = 0 ;
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj1 = 0 ;
9493 char * kwnames[] = {
9494 (char *) "self",(char *) "d", NULL
9495 };
9496
9497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9499 if (!SWIG_IsOK(res1)) {
9500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9501 }
9502 arg1 = reinterpret_cast< wxIcon * >(argp1);
9503 ecode2 = SWIG_AsVal_int(obj1, &val2);
9504 if (!SWIG_IsOK(ecode2)) {
9505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9506 }
9507 arg2 = static_cast< int >(val2);
9508 {
9509 PyThreadState* __tstate = wxPyBeginAllowThreads();
9510 (arg1)->SetDepth(arg2);
9511 wxPyEndAllowThreads(__tstate);
9512 if (PyErr_Occurred()) SWIG_fail;
9513 }
9514 resultobj = SWIG_Py_Void();
9515 return resultobj;
9516fail:
9517 return NULL;
9518}
9519
9520
9521SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9522 PyObject *resultobj = 0;
9523 wxIcon *arg1 = (wxIcon *) 0 ;
9524 wxBitmap *arg2 = 0 ;
9525 void *argp1 = 0 ;
9526 int res1 = 0 ;
9527 void *argp2 = 0 ;
9528 int res2 = 0 ;
9529 PyObject * obj0 = 0 ;
9530 PyObject * obj1 = 0 ;
9531 char * kwnames[] = {
9532 (char *) "self",(char *) "bmp", NULL
9533 };
9534
9535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9537 if (!SWIG_IsOK(res1)) {
9538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9539 }
9540 arg1 = reinterpret_cast< wxIcon * >(argp1);
9541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9542 if (!SWIG_IsOK(res2)) {
9543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9544 }
9545 if (!argp2) {
9546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9547 }
9548 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 }
9555 resultobj = SWIG_Py_Void();
9556 return resultobj;
9557fail:
9558 return NULL;
d55e5bfc
RD
9559}
9560
9561
1bd55598
RD
9562SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9563 PyObject *obj;
9564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9565 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9566 return SWIG_Py_Void();
d55e5bfc
RD
9567}
9568
1bd55598
RD
9569SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9570 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9571}
9572
1bd55598
RD
9573SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj = 0;
9575 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9576 int arg2 = (int) 0 ;
9577 wxIconLocation *result = 0 ;
9578 bool temp1 = false ;
9579 int val2 ;
9580 int ecode2 = 0 ;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 char * kwnames[] = {
9584 (char *) "filename",(char *) "num", NULL
9585 };
9586
9587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9588 if (obj0) {
d55e5bfc 9589 {
1bd55598
RD
9590 arg1 = wxString_in_helper(obj0);
9591 if (arg1 == NULL) SWIG_fail;
9592 temp1 = true;
d55e5bfc 9593 }
1bd55598
RD
9594 }
9595 if (obj1) {
9596 ecode2 = SWIG_AsVal_int(obj1, &val2);
9597 if (!SWIG_IsOK(ecode2)) {
9598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9599 }
9600 arg2 = static_cast< int >(val2);
9601 }
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9609 {
9610 if (temp1)
9611 delete arg1;
9612 }
9613 return resultobj;
9614fail:
9615 {
9616 if (temp1)
9617 delete arg1;
9618 }
9619 return NULL;
d55e5bfc
RD
9620}
9621
9622
1bd55598
RD
9623SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9624 PyObject *resultobj = 0;
9625 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 PyObject *swig_obj[1] ;
9629
9630 if (!args) SWIG_fail;
9631 swig_obj[0] = args;
9632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9633 if (!SWIG_IsOK(res1)) {
9634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9635 }
9636 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9637 {
9638 PyThreadState* __tstate = wxPyBeginAllowThreads();
9639 delete arg1;
d55e5bfc 9640
1bd55598
RD
9641 wxPyEndAllowThreads(__tstate);
9642 if (PyErr_Occurred()) SWIG_fail;
9643 }
9644 resultobj = SWIG_Py_Void();
9645 return resultobj;
9646fail:
9647 return NULL;
d55e5bfc
RD
9648}
9649
9650
1bd55598
RD
9651SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9652 PyObject *resultobj = 0;
9653 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9654 bool result;
9655 void *argp1 = 0 ;
9656 int res1 = 0 ;
9657 PyObject *swig_obj[1] ;
9658
9659 if (!args) SWIG_fail;
9660 swig_obj[0] = args;
9661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9662 if (!SWIG_IsOK(res1)) {
9663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9664 }
9665 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9666 {
9667 PyThreadState* __tstate = wxPyBeginAllowThreads();
9668 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9674 }
9675 return resultobj;
9676fail:
9677 return NULL;
9678}
9679
9680
9681SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj = 0;
9683 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9684 wxString *arg2 = 0 ;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 bool temp2 = false ;
9688 PyObject * obj0 = 0 ;
9689 PyObject * obj1 = 0 ;
9690 char * kwnames[] = {
9691 (char *) "self",(char *) "filename", NULL
9692 };
9693
9694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9696 if (!SWIG_IsOK(res1)) {
9697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9698 }
9699 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9700 {
9701 arg2 = wxString_in_helper(obj1);
9702 if (arg2 == NULL) SWIG_fail;
9703 temp2 = true;
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 (arg1)->SetFileName((wxString const &)*arg2);
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 resultobj = SWIG_Py_Void();
9712 {
9713 if (temp2)
9714 delete arg2;
9715 }
9716 return resultobj;
9717fail:
9718 {
9719 if (temp2)
9720 delete arg2;
9721 }
9722 return NULL;
d55e5bfc
RD
9723}
9724
9725
1bd55598
RD
9726SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9727 PyObject *resultobj = 0;
9728 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9729 wxString *result = 0 ;
9730 void *argp1 = 0 ;
9731 int res1 = 0 ;
9732 PyObject *swig_obj[1] ;
9733
9734 if (!args) SWIG_fail;
9735 swig_obj[0] = args;
9736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9737 if (!SWIG_IsOK(res1)) {
9738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9739 }
9740 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9741 {
9742 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9743 {
1bd55598
RD
9744 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9745 result = (wxString *) &_result_ref;
d55e5bfc 9746 }
1bd55598
RD
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 {
9751#if wxUSE_UNICODE
9752 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9753#else
9754 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9755#endif
9756 }
9757 return resultobj;
9758fail:
9759 return NULL;
9760}
9761
9762
9763SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9764 PyObject *resultobj = 0;
9765 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9766 int arg2 ;
9767 void *argp1 = 0 ;
9768 int res1 = 0 ;
9769 int val2 ;
9770 int ecode2 = 0 ;
9771 PyObject * obj0 = 0 ;
9772 PyObject * obj1 = 0 ;
9773 char * kwnames[] = {
9774 (char *) "self",(char *) "num", NULL
9775 };
9776
9777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9779 if (!SWIG_IsOK(res1)) {
9780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9781 }
9782 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9783 ecode2 = SWIG_AsVal_int(obj1, &val2);
9784 if (!SWIG_IsOK(ecode2)) {
9785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9786 }
9787 arg2 = static_cast< int >(val2);
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 wxIconLocation_SetIndex(arg1,arg2);
9791 wxPyEndAllowThreads(__tstate);
9792 if (PyErr_Occurred()) SWIG_fail;
9793 }
9794 resultobj = SWIG_Py_Void();
9795 return resultobj;
9796fail:
9797 return NULL;
d55e5bfc
RD
9798}
9799
9800
1bd55598
RD
9801SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9802 PyObject *resultobj = 0;
9803 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9804 int result;
9805 void *argp1 = 0 ;
9806 int res1 = 0 ;
9807 PyObject *swig_obj[1] ;
9808
9809 if (!args) SWIG_fail;
9810 swig_obj[0] = args;
9811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9812 if (!SWIG_IsOK(res1)) {
9813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9814 }
9815 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9816 {
9817 PyThreadState* __tstate = wxPyBeginAllowThreads();
9818 result = (int)wxIconLocation_GetIndex(arg1);
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_From_int(static_cast< int >(result));
9823 return resultobj;
9824fail:
9825 return NULL;
d55e5bfc
RD
9826}
9827
9828
1bd55598
RD
9829SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9830 PyObject *obj;
9831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9832 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9833 return SWIG_Py_Void();
d55e5bfc
RD
9834}
9835
1bd55598
RD
9836SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9837 return SWIG_Python_InitShadowInstance(args);
9838}
d55e5bfc 9839
1bd55598
RD
9840SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9841 PyObject *resultobj = 0;
9842 wxIconBundle *result = 0 ;
9843
9844 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 result = (wxIconBundle *)new wxIconBundle();
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9852 return resultobj;
9853fail:
9854 return NULL;
9855}
9856
9857
9858SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj = 0;
9860 wxString *arg1 = 0 ;
9861 long arg2 ;
9862 wxIconBundle *result = 0 ;
9863 bool temp1 = false ;
9864 long val2 ;
9865 int ecode2 = 0 ;
9866 PyObject * obj0 = 0 ;
9867 PyObject * obj1 = 0 ;
9868 char * kwnames[] = {
9869 (char *) "file",(char *) "type", NULL
9870 };
9871
9872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9873 {
9874 arg1 = wxString_in_helper(obj0);
9875 if (arg1 == NULL) SWIG_fail;
9876 temp1 = true;
9877 }
9878 ecode2 = SWIG_AsVal_long(obj1, &val2);
9879 if (!SWIG_IsOK(ecode2)) {
9880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9881 }
9882 arg2 = static_cast< long >(val2);
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9886 wxPyEndAllowThreads(__tstate);
9887 if (PyErr_Occurred()) SWIG_fail;
9888 }
9889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9890 {
9891 if (temp1)
9892 delete arg1;
9893 }
9894 return resultobj;
9895fail:
9896 {
9897 if (temp1)
9898 delete arg1;
9899 }
9900 return NULL;
d55e5bfc
RD
9901}
9902
9903
1bd55598
RD
9904SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj = 0;
9906 wxIcon *arg1 = 0 ;
9907 wxIconBundle *result = 0 ;
9908 void *argp1 = 0 ;
9909 int res1 = 0 ;
9910 PyObject * obj0 = 0 ;
9911 char * kwnames[] = {
9912 (char *) "icon", NULL
9913 };
9914
9915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9917 if (!SWIG_IsOK(res1)) {
9918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9919 }
9920 if (!argp1) {
9921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9922 }
9923 arg1 = reinterpret_cast< wxIcon * >(argp1);
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9931 return resultobj;
9932fail:
9933 return NULL;
d55e5bfc
RD
9934}
9935
9936
1bd55598
RD
9937SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9938 PyObject *resultobj = 0;
9939 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 PyObject *swig_obj[1] ;
9943
9944 if (!args) SWIG_fail;
9945 swig_obj[0] = args;
9946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9947 if (!SWIG_IsOK(res1)) {
9948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9949 }
9950 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 delete arg1;
d55e5bfc 9954
1bd55598
RD
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 resultobj = SWIG_Py_Void();
9959 return resultobj;
9960fail:
9961 return NULL;
9962}
9963
9964
9965SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9966 PyObject *resultobj = 0;
9967 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9968 wxIcon *arg2 = 0 ;
9969 void *argp1 = 0 ;
9970 int res1 = 0 ;
9971 void *argp2 = 0 ;
9972 int res2 = 0 ;
9973 PyObject * obj0 = 0 ;
9974 PyObject * obj1 = 0 ;
9975 char * kwnames[] = {
9976 (char *) "self",(char *) "icon", NULL
9977 };
9978
9979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9981 if (!SWIG_IsOK(res1)) {
9982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9983 }
9984 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9986 if (!SWIG_IsOK(res2)) {
9987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9988 }
9989 if (!argp2) {
9990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9991 }
9992 arg2 = reinterpret_cast< wxIcon * >(argp2);
9993 {
9994 PyThreadState* __tstate = wxPyBeginAllowThreads();
9995 (arg1)->AddIcon((wxIcon const &)*arg2);
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 }
9999 resultobj = SWIG_Py_Void();
10000 return resultobj;
10001fail:
10002 return NULL;
10003}
10004
10005
10006SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10007 PyObject *resultobj = 0;
10008 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10009 wxString *arg2 = 0 ;
10010 long arg3 ;
10011 void *argp1 = 0 ;
10012 int res1 = 0 ;
10013 bool temp2 = false ;
10014 long val3 ;
10015 int ecode3 = 0 ;
10016 PyObject * obj0 = 0 ;
10017 PyObject * obj1 = 0 ;
10018 PyObject * obj2 = 0 ;
10019 char * kwnames[] = {
10020 (char *) "self",(char *) "file",(char *) "type", NULL
10021 };
10022
10023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10025 if (!SWIG_IsOK(res1)) {
10026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10027 }
10028 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10029 {
10030 arg2 = wxString_in_helper(obj1);
10031 if (arg2 == NULL) SWIG_fail;
10032 temp2 = true;
10033 }
10034 ecode3 = SWIG_AsVal_long(obj2, &val3);
10035 if (!SWIG_IsOK(ecode3)) {
10036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10037 }
10038 arg3 = static_cast< long >(val3);
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 resultobj = SWIG_Py_Void();
10046 {
10047 if (temp2)
10048 delete arg2;
10049 }
10050 return resultobj;
10051fail:
10052 {
10053 if (temp2)
10054 delete arg2;
10055 }
10056 return NULL;
10057}
10058
10059
10060SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj = 0;
10062 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10063 wxSize *arg2 = 0 ;
10064 wxIcon *result = 0 ;
10065 void *argp1 = 0 ;
10066 int res1 = 0 ;
10067 wxSize temp2 ;
10068 PyObject * obj0 = 0 ;
10069 PyObject * obj1 = 0 ;
10070 char * kwnames[] = {
10071 (char *) "self",(char *) "size", NULL
10072 };
10073
10074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10076 if (!SWIG_IsOK(res1)) {
10077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10078 }
10079 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10080 {
10081 arg2 = &temp2;
10082 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10083 }
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10086 {
1bd55598
RD
10087 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10088 result = (wxIcon *) &_result_ref;
d55e5bfc 10089 }
1bd55598
RD
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 {
10094 wxIcon* resultptr = new wxIcon(*result);
10095 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10096 }
10097 return resultobj;
10098fail:
10099 return NULL;
10100}
10101
10102
10103SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10104 PyObject *obj;
10105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10106 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10107 return SWIG_Py_Void();
10108}
10109
10110SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10111 return SWIG_Python_InitShadowInstance(args);
10112}
10113
10114SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj = 0;
10116 wxString *arg1 = 0 ;
10117 long arg2 ;
10118 int arg3 = (int) 0 ;
10119 int arg4 = (int) 0 ;
10120 wxCursor *result = 0 ;
10121 bool temp1 = false ;
10122 long val2 ;
10123 int ecode2 = 0 ;
10124 int val3 ;
10125 int ecode3 = 0 ;
10126 int val4 ;
10127 int ecode4 = 0 ;
10128 PyObject * obj0 = 0 ;
10129 PyObject * obj1 = 0 ;
10130 PyObject * obj2 = 0 ;
10131 PyObject * obj3 = 0 ;
10132 char * kwnames[] = {
10133 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10134 };
10135
10136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10137 {
10138 arg1 = wxString_in_helper(obj0);
10139 if (arg1 == NULL) SWIG_fail;
10140 temp1 = true;
10141 }
10142 ecode2 = SWIG_AsVal_long(obj1, &val2);
10143 if (!SWIG_IsOK(ecode2)) {
10144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10145 }
10146 arg2 = static_cast< long >(val2);
10147 if (obj2) {
10148 ecode3 = SWIG_AsVal_int(obj2, &val3);
10149 if (!SWIG_IsOK(ecode3)) {
10150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10151 }
10152 arg3 = static_cast< int >(val3);
10153 }
10154 if (obj3) {
10155 ecode4 = SWIG_AsVal_int(obj3, &val4);
10156 if (!SWIG_IsOK(ecode4)) {
10157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10158 }
10159 arg4 = static_cast< int >(val4);
10160 }
10161 {
10162 if (!wxPyCheckForApp()) SWIG_fail;
10163 PyThreadState* __tstate = wxPyBeginAllowThreads();
10164 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10165 wxPyEndAllowThreads(__tstate);
10166 if (PyErr_Occurred()) SWIG_fail;
10167 }
10168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10169 {
10170 if (temp1)
10171 delete arg1;
10172 }
10173 return resultobj;
10174fail:
10175 {
10176 if (temp1)
10177 delete arg1;
10178 }
10179 return NULL;
d55e5bfc
RD
10180}
10181
10182
1bd55598
RD
10183SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10184 PyObject *resultobj = 0;
10185 wxCursor *arg1 = (wxCursor *) 0 ;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 PyObject *swig_obj[1] ;
10189
10190 if (!args) SWIG_fail;
10191 swig_obj[0] = args;
10192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10193 if (!SWIG_IsOK(res1)) {
10194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10195 }
10196 arg1 = reinterpret_cast< wxCursor * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 delete arg1;
d55e5bfc 10200
1bd55598
RD
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 resultobj = SWIG_Py_Void();
10205 return resultobj;
10206fail:
10207 return NULL;
10208}
10209
10210
10211SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10212 PyObject *resultobj = 0;
10213 int arg1 ;
10214 wxCursor *result = 0 ;
10215 int val1 ;
10216 int ecode1 = 0 ;
10217 PyObject * obj0 = 0 ;
10218 char * kwnames[] = {
10219 (char *) "id", NULL
10220 };
10221
10222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10223 ecode1 = SWIG_AsVal_int(obj0, &val1);
10224 if (!SWIG_IsOK(ecode1)) {
10225 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10226 }
10227 arg1 = static_cast< int >(val1);
10228 {
10229 if (!wxPyCheckForApp()) SWIG_fail;
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 result = (wxCursor *)new wxCursor(arg1);
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10236 return resultobj;
10237fail:
10238 return NULL;
10239}
10240
10241
10242SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10243 PyObject *resultobj = 0;
10244 wxImage *arg1 = 0 ;
10245 wxCursor *result = 0 ;
10246 void *argp1 = 0 ;
10247 int res1 = 0 ;
10248 PyObject * obj0 = 0 ;
10249 char * kwnames[] = {
10250 (char *) "image", NULL
10251 };
10252
10253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10254 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10255 if (!SWIG_IsOK(res1)) {
10256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10257 }
10258 if (!argp1) {
10259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10260 }
10261 arg1 = reinterpret_cast< wxImage * >(argp1);
10262 {
10263 if (!wxPyCheckForApp()) SWIG_fail;
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) SWIG_fail;
10268 }
10269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10270 return resultobj;
10271fail:
10272 return NULL;
d55e5bfc
RD
10273}
10274
10275
b39fe951 10276SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10277 PyObject *resultobj = 0;
10278 wxCursor *arg1 = (wxCursor *) 0 ;
10279 bool result;
10280 void *argp1 = 0 ;
10281 int res1 = 0 ;
10282 PyObject *swig_obj[1] ;
10283
10284 if (!args) SWIG_fail;
10285 swig_obj[0] = args;
10286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10287 if (!SWIG_IsOK(res1)) {
b39fe951 10288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10289 }
10290 arg1 = reinterpret_cast< wxCursor * >(argp1);
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10293 result = (bool)(arg1)->IsOk();
1bd55598
RD
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 {
10298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10299 }
10300 return resultobj;
10301fail:
10302 return NULL;
10303}
10304
10305
10306SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10307 PyObject *obj;
10308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10309 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10310 return SWIG_Py_Void();
10311}
10312
10313SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10314 return SWIG_Python_InitShadowInstance(args);
10315}
10316
10317SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj = 0;
10319 int arg1 = (int) 0 ;
10320 int arg2 = (int) 0 ;
10321 int arg3 = (int) 0 ;
10322 int arg4 = (int) 0 ;
10323 wxRegion *result = 0 ;
10324 int val1 ;
10325 int ecode1 = 0 ;
10326 int val2 ;
10327 int ecode2 = 0 ;
10328 int val3 ;
10329 int ecode3 = 0 ;
10330 int val4 ;
10331 int ecode4 = 0 ;
10332 PyObject * obj0 = 0 ;
10333 PyObject * obj1 = 0 ;
10334 PyObject * obj2 = 0 ;
10335 PyObject * obj3 = 0 ;
10336 char * kwnames[] = {
10337 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10338 };
10339
10340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10341 if (obj0) {
10342 ecode1 = SWIG_AsVal_int(obj0, &val1);
10343 if (!SWIG_IsOK(ecode1)) {
10344 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10345 }
10346 arg1 = static_cast< int >(val1);
10347 }
10348 if (obj1) {
10349 ecode2 = SWIG_AsVal_int(obj1, &val2);
10350 if (!SWIG_IsOK(ecode2)) {
10351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10352 }
10353 arg2 = static_cast< int >(val2);
10354 }
10355 if (obj2) {
10356 ecode3 = SWIG_AsVal_int(obj2, &val3);
10357 if (!SWIG_IsOK(ecode3)) {
10358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10359 }
10360 arg3 = static_cast< int >(val3);
10361 }
10362 if (obj3) {
10363 ecode4 = SWIG_AsVal_int(obj3, &val4);
10364 if (!SWIG_IsOK(ecode4)) {
10365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10366 }
10367 arg4 = static_cast< int >(val4);
10368 }
10369 {
10370 if (!wxPyCheckForApp()) SWIG_fail;
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10377 return resultobj;
10378fail:
10379 return NULL;
10380}
10381
10382
10383SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj = 0;
10385 wxBitmap *arg1 = 0 ;
10386 wxRegion *result = 0 ;
10387 void *argp1 = 0 ;
10388 int res1 = 0 ;
10389 PyObject * obj0 = 0 ;
10390 char * kwnames[] = {
10391 (char *) "bmp", NULL
10392 };
10393
10394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10395 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10396 if (!SWIG_IsOK(res1)) {
10397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10398 }
10399 if (!argp1) {
10400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10401 }
10402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10403 {
10404 if (!wxPyCheckForApp()) SWIG_fail;
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10411 return resultobj;
10412fail:
10413 return NULL;
10414}
10415
10416
10417SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj = 0;
10419 wxBitmap *arg1 = 0 ;
10420 wxColour *arg2 = 0 ;
10421 int arg3 = (int) 0 ;
10422 wxRegion *result = 0 ;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 wxColour temp2 ;
10426 int val3 ;
10427 int ecode3 = 0 ;
10428 PyObject * obj0 = 0 ;
10429 PyObject * obj1 = 0 ;
10430 PyObject * obj2 = 0 ;
10431 char * kwnames[] = {
10432 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10433 };
10434
10435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10436 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10437 if (!SWIG_IsOK(res1)) {
10438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10439 }
10440 if (!argp1) {
10441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10442 }
10443 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10444 {
10445 arg2 = &temp2;
10446 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10447 }
10448 if (obj2) {
10449 ecode3 = SWIG_AsVal_int(obj2, &val3);
10450 if (!SWIG_IsOK(ecode3)) {
10451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10452 }
10453 arg3 = static_cast< int >(val3);
10454 }
10455 {
10456 if (!wxPyCheckForApp()) SWIG_fail;
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10459 wxPyEndAllowThreads(__tstate);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10463 return resultobj;
10464fail:
10465 return NULL;
10466}
10467
10468
10469SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10470 PyObject *resultobj = 0;
10471 int arg1 ;
10472 wxPoint *arg2 = (wxPoint *) 0 ;
10473 int arg3 = (int) wxWINDING_RULE ;
10474 wxRegion *result = 0 ;
10475 int val3 ;
10476 int ecode3 = 0 ;
10477 PyObject * obj0 = 0 ;
10478 PyObject * obj1 = 0 ;
10479 char * kwnames[] = {
10480 (char *) "points",(char *) "fillStyle", NULL
10481 };
10482
10483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10484 {
10485 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10486 if (arg2 == NULL) SWIG_fail;
10487 }
10488 if (obj1) {
10489 ecode3 = SWIG_AsVal_int(obj1, &val3);
10490 if (!SWIG_IsOK(ecode3)) {
10491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10492 }
10493 arg3 = static_cast< int >(val3);
10494 }
10495 {
10496 if (!wxPyCheckForApp()) SWIG_fail;
10497 PyThreadState* __tstate = wxPyBeginAllowThreads();
10498 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10499 wxPyEndAllowThreads(__tstate);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10503 {
10504 if (arg2) delete [] arg2;
10505 }
10506 return resultobj;
10507fail:
10508 {
10509 if (arg2) delete [] arg2;
10510 }
10511 return NULL;
d55e5bfc
RD
10512}
10513
10514
1bd55598
RD
10515SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10516 PyObject *resultobj = 0;
10517 wxRegion *arg1 = (wxRegion *) 0 ;
10518 void *argp1 = 0 ;
10519 int res1 = 0 ;
10520 PyObject *swig_obj[1] ;
10521
10522 if (!args) SWIG_fail;
10523 swig_obj[0] = args;
10524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10527 }
10528 arg1 = reinterpret_cast< wxRegion * >(argp1);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 delete arg1;
d55e5bfc 10532
1bd55598
RD
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_Py_Void();
10537 return resultobj;
10538fail:
10539 return NULL;
d55e5bfc
RD
10540}
10541
10542
1bd55598
RD
10543SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10544 PyObject *resultobj = 0;
10545 wxRegion *arg1 = (wxRegion *) 0 ;
10546 void *argp1 = 0 ;
10547 int res1 = 0 ;
10548 PyObject *swig_obj[1] ;
10549
10550 if (!args) SWIG_fail;
10551 swig_obj[0] = args;
10552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10555 }
10556 arg1 = reinterpret_cast< wxRegion * >(argp1);
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 (arg1)->Clear();
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_Py_Void();
10564 return resultobj;
10565fail:
10566 return NULL;
10567}
10568
10569
10570SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj = 0;
10572 wxRegion *arg1 = (wxRegion *) 0 ;
10573 int arg2 ;
10574 int arg3 ;
10575 bool result;
10576 void *argp1 = 0 ;
10577 int res1 = 0 ;
10578 int val2 ;
10579 int ecode2 = 0 ;
10580 int val3 ;
10581 int ecode3 = 0 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 PyObject * obj2 = 0 ;
10585 char * kwnames[] = {
10586 (char *) "self",(char *) "x",(char *) "y", NULL
10587 };
10588
10589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10591 if (!SWIG_IsOK(res1)) {
10592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10593 }
10594 arg1 = reinterpret_cast< wxRegion * >(argp1);
10595 ecode2 = SWIG_AsVal_int(obj1, &val2);
10596 if (!SWIG_IsOK(ecode2)) {
10597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10598 }
10599 arg2 = static_cast< int >(val2);
10600 ecode3 = SWIG_AsVal_int(obj2, &val3);
10601 if (!SWIG_IsOK(ecode3)) {
10602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10603 }
10604 arg3 = static_cast< int >(val3);
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (bool)(arg1)->Offset(arg2,arg3);
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 {
10612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10613 }
10614 return resultobj;
10615fail:
10616 return NULL;
10617}
10618
10619
10620SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj = 0;
10622 wxRegion *arg1 = (wxRegion *) 0 ;
10623 int arg2 ;
10624 int arg3 ;
10625 wxRegionContain result;
10626 void *argp1 = 0 ;
10627 int res1 = 0 ;
10628 int val2 ;
10629 int ecode2 = 0 ;
10630 int val3 ;
10631 int ecode3 = 0 ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 PyObject * obj2 = 0 ;
10635 char * kwnames[] = {
10636 (char *) "self",(char *) "x",(char *) "y", NULL
10637 };
10638
10639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10641 if (!SWIG_IsOK(res1)) {
10642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10643 }
10644 arg1 = reinterpret_cast< wxRegion * >(argp1);
10645 ecode2 = SWIG_AsVal_int(obj1, &val2);
10646 if (!SWIG_IsOK(ecode2)) {
10647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10648 }
10649 arg2 = static_cast< int >(val2);
10650 ecode3 = SWIG_AsVal_int(obj2, &val3);
10651 if (!SWIG_IsOK(ecode3)) {
10652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10653 }
10654 arg3 = static_cast< int >(val3);
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 resultobj = SWIG_From_int(static_cast< int >(result));
10662 return resultobj;
10663fail:
10664 return NULL;
10665}
10666
10667
10668SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj = 0;
10670 wxRegion *arg1 = (wxRegion *) 0 ;
10671 wxPoint *arg2 = 0 ;
10672 wxRegionContain result;
10673 void *argp1 = 0 ;
10674 int res1 = 0 ;
10675 wxPoint temp2 ;
10676 PyObject * obj0 = 0 ;
10677 PyObject * obj1 = 0 ;
10678 char * kwnames[] = {
10679 (char *) "self",(char *) "pt", NULL
10680 };
10681
10682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10684 if (!SWIG_IsOK(res1)) {
10685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10686 }
10687 arg1 = reinterpret_cast< wxRegion * >(argp1);
10688 {
10689 arg2 = &temp2;
10690 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10691 }
10692 {
10693 PyThreadState* __tstate = wxPyBeginAllowThreads();
10694 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10695 wxPyEndAllowThreads(__tstate);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 resultobj = SWIG_From_int(static_cast< int >(result));
10699 return resultobj;
10700fail:
10701 return NULL;
10702}
10703
10704
10705SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10706 PyObject *resultobj = 0;
10707 wxRegion *arg1 = (wxRegion *) 0 ;
10708 wxRect *arg2 = 0 ;
10709 wxRegionContain result;
10710 void *argp1 = 0 ;
10711 int res1 = 0 ;
10712 wxRect temp2 ;
10713 PyObject * obj0 = 0 ;
10714 PyObject * obj1 = 0 ;
10715 char * kwnames[] = {
10716 (char *) "self",(char *) "rect", NULL
10717 };
10718
10719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10721 if (!SWIG_IsOK(res1)) {
10722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10723 }
10724 arg1 = reinterpret_cast< wxRegion * >(argp1);
10725 {
10726 arg2 = &temp2;
10727 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10728 }
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 resultobj = SWIG_From_int(static_cast< int >(result));
10736 return resultobj;
10737fail:
10738 return NULL;
10739}
10740
10741
10742SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10743 PyObject *resultobj = 0;
10744 wxRegion *arg1 = (wxRegion *) 0 ;
10745 int arg2 ;
10746 int arg3 ;
10747 int arg4 ;
10748 int arg5 ;
10749 wxRegionContain result;
10750 void *argp1 = 0 ;
10751 int res1 = 0 ;
10752 int val2 ;
10753 int ecode2 = 0 ;
10754 int val3 ;
10755 int ecode3 = 0 ;
10756 int val4 ;
10757 int ecode4 = 0 ;
10758 int val5 ;
10759 int ecode5 = 0 ;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 PyObject * obj2 = 0 ;
10763 PyObject * obj3 = 0 ;
10764 PyObject * obj4 = 0 ;
10765 char * kwnames[] = {
10766 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10767 };
10768
10769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10771 if (!SWIG_IsOK(res1)) {
10772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10773 }
10774 arg1 = reinterpret_cast< wxRegion * >(argp1);
10775 ecode2 = SWIG_AsVal_int(obj1, &val2);
10776 if (!SWIG_IsOK(ecode2)) {
10777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10778 }
10779 arg2 = static_cast< int >(val2);
10780 ecode3 = SWIG_AsVal_int(obj2, &val3);
10781 if (!SWIG_IsOK(ecode3)) {
10782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10783 }
10784 arg3 = static_cast< int >(val3);
10785 ecode4 = SWIG_AsVal_int(obj3, &val4);
10786 if (!SWIG_IsOK(ecode4)) {
10787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10788 }
10789 arg4 = static_cast< int >(val4);
10790 ecode5 = SWIG_AsVal_int(obj4, &val5);
10791 if (!SWIG_IsOK(ecode5)) {
10792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10793 }
10794 arg5 = static_cast< int >(val5);
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 resultobj = SWIG_From_int(static_cast< int >(result));
10802 return resultobj;
10803fail:
10804 return NULL;
d55e5bfc
RD
10805}
10806
10807
1bd55598
RD
10808SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10809 PyObject *resultobj = 0;
10810 wxRegion *arg1 = (wxRegion *) 0 ;
10811 wxRect result;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 PyObject *swig_obj[1] ;
10815
10816 if (!args) SWIG_fail;
10817 swig_obj[0] = args;
10818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10819 if (!SWIG_IsOK(res1)) {
10820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10821 }
10822 arg1 = reinterpret_cast< wxRegion * >(argp1);
10823 {
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 result = (arg1)->GetBox();
10826 wxPyEndAllowThreads(__tstate);
10827 if (PyErr_Occurred()) SWIG_fail;
10828 }
10829 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10830 return resultobj;
10831fail:
10832 return NULL;
10833}
10834
10835
10836SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10837 PyObject *resultobj = 0;
10838 wxRegion *arg1 = (wxRegion *) 0 ;
10839 int arg2 ;
10840 int arg3 ;
10841 int arg4 ;
10842 int arg5 ;
10843 bool result;
10844 void *argp1 = 0 ;
10845 int res1 = 0 ;
10846 int val2 ;
10847 int ecode2 = 0 ;
10848 int val3 ;
10849 int ecode3 = 0 ;
10850 int val4 ;
10851 int ecode4 = 0 ;
10852 int val5 ;
10853 int ecode5 = 0 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 PyObject * obj2 = 0 ;
10857 PyObject * obj3 = 0 ;
10858 PyObject * obj4 = 0 ;
10859 char * kwnames[] = {
10860 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10861 };
10862
10863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10865 if (!SWIG_IsOK(res1)) {
10866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10867 }
10868 arg1 = reinterpret_cast< wxRegion * >(argp1);
10869 ecode2 = SWIG_AsVal_int(obj1, &val2);
10870 if (!SWIG_IsOK(ecode2)) {
10871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10872 }
10873 arg2 = static_cast< int >(val2);
10874 ecode3 = SWIG_AsVal_int(obj2, &val3);
10875 if (!SWIG_IsOK(ecode3)) {
10876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10877 }
10878 arg3 = static_cast< int >(val3);
10879 ecode4 = SWIG_AsVal_int(obj3, &val4);
10880 if (!SWIG_IsOK(ecode4)) {
10881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10882 }
10883 arg4 = static_cast< int >(val4);
10884 ecode5 = SWIG_AsVal_int(obj4, &val5);
10885 if (!SWIG_IsOK(ecode5)) {
10886 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10887 }
10888 arg5 = static_cast< int >(val5);
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10892 wxPyEndAllowThreads(__tstate);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 }
10895 {
10896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10897 }
10898 return resultobj;
10899fail:
10900 return NULL;
10901}
10902
10903
10904SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10905 PyObject *resultobj = 0;
10906 wxRegion *arg1 = (wxRegion *) 0 ;
10907 wxRect *arg2 = 0 ;
10908 bool result;
10909 void *argp1 = 0 ;
10910 int res1 = 0 ;
10911 wxRect temp2 ;
10912 PyObject * obj0 = 0 ;
10913 PyObject * obj1 = 0 ;
10914 char * kwnames[] = {
10915 (char *) "self",(char *) "rect", NULL
10916 };
10917
10918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10920 if (!SWIG_IsOK(res1)) {
10921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10922 }
10923 arg1 = reinterpret_cast< wxRegion * >(argp1);
10924 {
10925 arg2 = &temp2;
10926 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10927 }
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10936 }
10937 return resultobj;
10938fail:
10939 return NULL;
10940}
10941
10942
10943SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj = 0;
10945 wxRegion *arg1 = (wxRegion *) 0 ;
10946 wxRegion *arg2 = 0 ;
10947 bool result;
10948 void *argp1 = 0 ;
10949 int res1 = 0 ;
10950 void *argp2 = 0 ;
10951 int res2 = 0 ;
10952 PyObject * obj0 = 0 ;
10953 PyObject * obj1 = 0 ;
10954 char * kwnames[] = {
10955 (char *) "self",(char *) "region", NULL
10956 };
10957
10958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10960 if (!SWIG_IsOK(res1)) {
10961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10962 }
10963 arg1 = reinterpret_cast< wxRegion * >(argp1);
10964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10965 if (!SWIG_IsOK(res2)) {
10966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10967 }
10968 if (!argp2) {
10969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10970 }
10971 arg2 = reinterpret_cast< wxRegion * >(argp2);
10972 {
10973 PyThreadState* __tstate = wxPyBeginAllowThreads();
10974 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10975 wxPyEndAllowThreads(__tstate);
10976 if (PyErr_Occurred()) SWIG_fail;
10977 }
10978 {
10979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10980 }
10981 return resultobj;
10982fail:
10983 return NULL;
d55e5bfc
RD
10984}
10985
10986
1bd55598
RD
10987SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10988 PyObject *resultobj = 0;
10989 wxRegion *arg1 = (wxRegion *) 0 ;
10990 bool result;
10991 void *argp1 = 0 ;
10992 int res1 = 0 ;
10993 PyObject *swig_obj[1] ;
10994
10995 if (!args) SWIG_fail;
10996 swig_obj[0] = args;
10997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10998 if (!SWIG_IsOK(res1)) {
10999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11000 }
11001 arg1 = reinterpret_cast< wxRegion * >(argp1);
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 result = (bool)(arg1)->IsEmpty();
11005 wxPyEndAllowThreads(__tstate);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 }
11008 {
11009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11010 }
11011 return resultobj;
11012fail:
11013 return NULL;
11014}
11015
11016
f5263701
RD
11017SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11018 PyObject *resultobj = 0;
11019 wxRegion *arg1 = (wxRegion *) 0 ;
11020 wxRegion *arg2 = 0 ;
11021 bool result;
11022 void *argp1 = 0 ;
11023 int res1 = 0 ;
11024 void *argp2 = 0 ;
11025 int res2 = 0 ;
11026 PyObject * obj0 = 0 ;
11027 PyObject * obj1 = 0 ;
11028 char * kwnames[] = {
11029 (char *) "self",(char *) "region", NULL
11030 };
11031
11032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxRegion * >(argp1);
11038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11039 if (!SWIG_IsOK(res2)) {
11040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11041 }
11042 if (!argp2) {
11043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11044 }
11045 arg2 = reinterpret_cast< wxRegion * >(argp2);
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 {
11053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11054 }
11055 return resultobj;
11056fail:
11057 return NULL;
11058}
11059
11060
1bd55598
RD
11061SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11062 PyObject *resultobj = 0;
11063 wxRegion *arg1 = (wxRegion *) 0 ;
11064 int arg2 ;
11065 int arg3 ;
11066 int arg4 ;
11067 int arg5 ;
11068 bool result;
11069 void *argp1 = 0 ;
11070 int res1 = 0 ;
11071 int val2 ;
11072 int ecode2 = 0 ;
11073 int val3 ;
11074 int ecode3 = 0 ;
11075 int val4 ;
11076 int ecode4 = 0 ;
11077 int val5 ;
11078 int ecode5 = 0 ;
11079 PyObject * obj0 = 0 ;
11080 PyObject * obj1 = 0 ;
11081 PyObject * obj2 = 0 ;
11082 PyObject * obj3 = 0 ;
11083 PyObject * obj4 = 0 ;
11084 char * kwnames[] = {
11085 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11086 };
11087
11088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11090 if (!SWIG_IsOK(res1)) {
11091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11092 }
11093 arg1 = reinterpret_cast< wxRegion * >(argp1);
11094 ecode2 = SWIG_AsVal_int(obj1, &val2);
11095 if (!SWIG_IsOK(ecode2)) {
11096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11097 }
11098 arg2 = static_cast< int >(val2);
11099 ecode3 = SWIG_AsVal_int(obj2, &val3);
11100 if (!SWIG_IsOK(ecode3)) {
11101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11102 }
11103 arg3 = static_cast< int >(val3);
11104 ecode4 = SWIG_AsVal_int(obj3, &val4);
11105 if (!SWIG_IsOK(ecode4)) {
11106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11107 }
11108 arg4 = static_cast< int >(val4);
11109 ecode5 = SWIG_AsVal_int(obj4, &val5);
11110 if (!SWIG_IsOK(ecode5)) {
11111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11112 }
11113 arg5 = static_cast< int >(val5);
11114 {
11115 PyThreadState* __tstate = wxPyBeginAllowThreads();
11116 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 {
11121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11122 }
11123 return resultobj;
11124fail:
11125 return NULL;
11126}
11127
11128
11129SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj = 0;
11131 wxRegion *arg1 = (wxRegion *) 0 ;
11132 wxRect *arg2 = 0 ;
11133 bool result;
11134 void *argp1 = 0 ;
11135 int res1 = 0 ;
11136 wxRect temp2 ;
11137 PyObject * obj0 = 0 ;
11138 PyObject * obj1 = 0 ;
11139 char * kwnames[] = {
11140 (char *) "self",(char *) "rect", NULL
11141 };
11142
11143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11145 if (!SWIG_IsOK(res1)) {
11146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11147 }
11148 arg1 = reinterpret_cast< wxRegion * >(argp1);
11149 {
11150 arg2 = &temp2;
11151 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11152 }
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 {
11160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11161 }
11162 return resultobj;
11163fail:
11164 return NULL;
11165}
11166
11167
11168SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj = 0;
11170 wxRegion *arg1 = (wxRegion *) 0 ;
11171 wxRegion *arg2 = 0 ;
11172 bool result;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 void *argp2 = 0 ;
11176 int res2 = 0 ;
11177 PyObject * obj0 = 0 ;
11178 PyObject * obj1 = 0 ;
11179 char * kwnames[] = {
11180 (char *) "self",(char *) "region", NULL
11181 };
11182
11183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11185 if (!SWIG_IsOK(res1)) {
11186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11187 }
11188 arg1 = reinterpret_cast< wxRegion * >(argp1);
11189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11190 if (!SWIG_IsOK(res2)) {
11191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11192 }
11193 if (!argp2) {
11194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11195 }
11196 arg2 = reinterpret_cast< wxRegion * >(argp2);
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11200 wxPyEndAllowThreads(__tstate);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 {
11204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11205 }
11206 return resultobj;
11207fail:
11208 return NULL;
11209}
11210
11211
11212SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj = 0;
11214 wxRegion *arg1 = (wxRegion *) 0 ;
11215 int arg2 ;
11216 int arg3 ;
11217 int arg4 ;
11218 int arg5 ;
11219 bool result;
11220 void *argp1 = 0 ;
11221 int res1 = 0 ;
11222 int val2 ;
11223 int ecode2 = 0 ;
11224 int val3 ;
11225 int ecode3 = 0 ;
11226 int val4 ;
11227 int ecode4 = 0 ;
11228 int val5 ;
11229 int ecode5 = 0 ;
11230 PyObject * obj0 = 0 ;
11231 PyObject * obj1 = 0 ;
11232 PyObject * obj2 = 0 ;
11233 PyObject * obj3 = 0 ;
11234 PyObject * obj4 = 0 ;
11235 char * kwnames[] = {
11236 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11237 };
11238
11239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11241 if (!SWIG_IsOK(res1)) {
11242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11243 }
11244 arg1 = reinterpret_cast< wxRegion * >(argp1);
11245 ecode2 = SWIG_AsVal_int(obj1, &val2);
11246 if (!SWIG_IsOK(ecode2)) {
11247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11248 }
11249 arg2 = static_cast< int >(val2);
11250 ecode3 = SWIG_AsVal_int(obj2, &val3);
11251 if (!SWIG_IsOK(ecode3)) {
11252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11253 }
11254 arg3 = static_cast< int >(val3);
11255 ecode4 = SWIG_AsVal_int(obj3, &val4);
11256 if (!SWIG_IsOK(ecode4)) {
11257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11258 }
11259 arg4 = static_cast< int >(val4);
11260 ecode5 = SWIG_AsVal_int(obj4, &val5);
11261 if (!SWIG_IsOK(ecode5)) {
11262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11263 }
11264 arg5 = static_cast< int >(val5);
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 {
11272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11273 }
11274 return resultobj;
11275fail:
11276 return NULL;
11277}
11278
11279
11280SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj = 0;
11282 wxRegion *arg1 = (wxRegion *) 0 ;
11283 wxRect *arg2 = 0 ;
11284 bool result;
11285 void *argp1 = 0 ;
11286 int res1 = 0 ;
11287 wxRect temp2 ;
11288 PyObject * obj0 = 0 ;
11289 PyObject * obj1 = 0 ;
11290 char * kwnames[] = {
11291 (char *) "self",(char *) "rect", NULL
11292 };
11293
11294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11296 if (!SWIG_IsOK(res1)) {
11297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11298 }
11299 arg1 = reinterpret_cast< wxRegion * >(argp1);
11300 {
11301 arg2 = &temp2;
11302 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11303 }
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 {
11311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11312 }
11313 return resultobj;
11314fail:
11315 return NULL;
11316}
11317
11318
11319SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj = 0;
11321 wxRegion *arg1 = (wxRegion *) 0 ;
11322 wxRegion *arg2 = 0 ;
11323 bool result;
11324 void *argp1 = 0 ;
11325 int res1 = 0 ;
11326 void *argp2 = 0 ;
11327 int res2 = 0 ;
11328 PyObject * obj0 = 0 ;
11329 PyObject * obj1 = 0 ;
11330 char * kwnames[] = {
11331 (char *) "self",(char *) "region", NULL
11332 };
11333
11334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11336 if (!SWIG_IsOK(res1)) {
11337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11338 }
11339 arg1 = reinterpret_cast< wxRegion * >(argp1);
11340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11341 if (!SWIG_IsOK(res2)) {
11342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11343 }
11344 if (!argp2) {
11345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11346 }
11347 arg2 = reinterpret_cast< wxRegion * >(argp2);
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 {
11355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11356 }
11357 return resultobj;
11358fail:
11359 return NULL;
11360}
11361
11362
11363SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11364 PyObject *resultobj = 0;
11365 wxRegion *arg1 = (wxRegion *) 0 ;
11366 int arg2 ;
11367 int arg3 ;
11368 int arg4 ;
11369 int arg5 ;
11370 bool result;
11371 void *argp1 = 0 ;
11372 int res1 = 0 ;
11373 int val2 ;
11374 int ecode2 = 0 ;
11375 int val3 ;
11376 int ecode3 = 0 ;
11377 int val4 ;
11378 int ecode4 = 0 ;
11379 int val5 ;
11380 int ecode5 = 0 ;
11381 PyObject * obj0 = 0 ;
11382 PyObject * obj1 = 0 ;
11383 PyObject * obj2 = 0 ;
11384 PyObject * obj3 = 0 ;
11385 PyObject * obj4 = 0 ;
11386 char * kwnames[] = {
11387 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11388 };
11389
11390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11394 }
11395 arg1 = reinterpret_cast< wxRegion * >(argp1);
11396 ecode2 = SWIG_AsVal_int(obj1, &val2);
11397 if (!SWIG_IsOK(ecode2)) {
11398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11399 }
11400 arg2 = static_cast< int >(val2);
11401 ecode3 = SWIG_AsVal_int(obj2, &val3);
11402 if (!SWIG_IsOK(ecode3)) {
11403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11404 }
11405 arg3 = static_cast< int >(val3);
11406 ecode4 = SWIG_AsVal_int(obj3, &val4);
11407 if (!SWIG_IsOK(ecode4)) {
11408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11409 }
11410 arg4 = static_cast< int >(val4);
11411 ecode5 = SWIG_AsVal_int(obj4, &val5);
11412 if (!SWIG_IsOK(ecode5)) {
11413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11414 }
11415 arg5 = static_cast< int >(val5);
11416 {
11417 PyThreadState* __tstate = wxPyBeginAllowThreads();
11418 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11419 wxPyEndAllowThreads(__tstate);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 {
11423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11424 }
11425 return resultobj;
11426fail:
11427 return NULL;
11428}
11429
11430
11431SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11432 PyObject *resultobj = 0;
11433 wxRegion *arg1 = (wxRegion *) 0 ;
11434 wxRect *arg2 = 0 ;
11435 bool result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 wxRect temp2 ;
11439 PyObject * obj0 = 0 ;
11440 PyObject * obj1 = 0 ;
11441 char * kwnames[] = {
11442 (char *) "self",(char *) "rect", NULL
11443 };
11444
11445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11447 if (!SWIG_IsOK(res1)) {
11448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11449 }
11450 arg1 = reinterpret_cast< wxRegion * >(argp1);
11451 {
11452 arg2 = &temp2;
11453 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11454 }
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
11457 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 {
11462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11463 }
11464 return resultobj;
11465fail:
11466 return NULL;
11467}
11468
11469
11470SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11471 PyObject *resultobj = 0;
11472 wxRegion *arg1 = (wxRegion *) 0 ;
11473 wxRegion *arg2 = 0 ;
11474 bool result;
11475 void *argp1 = 0 ;
11476 int res1 = 0 ;
11477 void *argp2 = 0 ;
11478 int res2 = 0 ;
11479 PyObject * obj0 = 0 ;
11480 PyObject * obj1 = 0 ;
11481 char * kwnames[] = {
11482 (char *) "self",(char *) "region", NULL
11483 };
11484
11485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11487 if (!SWIG_IsOK(res1)) {
11488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11489 }
11490 arg1 = reinterpret_cast< wxRegion * >(argp1);
11491 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11492 if (!SWIG_IsOK(res2)) {
11493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11494 }
11495 if (!argp2) {
11496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11497 }
11498 arg2 = reinterpret_cast< wxRegion * >(argp2);
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 {
11506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11507 }
11508 return resultobj;
11509fail:
11510 return NULL;
d55e5bfc
RD
11511}
11512
11513
1bd55598
RD
11514SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11515 PyObject *resultobj = 0;
11516 wxRegion *arg1 = (wxRegion *) 0 ;
11517 SwigValueWrapper<wxBitmap > result;
11518 void *argp1 = 0 ;
11519 int res1 = 0 ;
11520 PyObject *swig_obj[1] ;
11521
11522 if (!args) SWIG_fail;
11523 swig_obj[0] = args;
11524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11525 if (!SWIG_IsOK(res1)) {
11526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11527 }
11528 arg1 = reinterpret_cast< wxRegion * >(argp1);
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 result = (arg1)->ConvertToBitmap();
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11536 return resultobj;
11537fail:
11538 return NULL;
11539}
11540
11541
11542SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj = 0;
11544 wxRegion *arg1 = (wxRegion *) 0 ;
11545 wxBitmap *arg2 = 0 ;
11546 bool result;
11547 void *argp1 = 0 ;
11548 int res1 = 0 ;
11549 void *argp2 = 0 ;
11550 int res2 = 0 ;
11551 PyObject * obj0 = 0 ;
11552 PyObject * obj1 = 0 ;
11553 char * kwnames[] = {
11554 (char *) "self",(char *) "bmp", NULL
11555 };
11556
11557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11559 if (!SWIG_IsOK(res1)) {
11560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11561 }
11562 arg1 = reinterpret_cast< wxRegion * >(argp1);
11563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11564 if (!SWIG_IsOK(res2)) {
11565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11566 }
11567 if (!argp2) {
11568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11569 }
11570 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11571 {
11572 PyThreadState* __tstate = wxPyBeginAllowThreads();
11573 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11574 wxPyEndAllowThreads(__tstate);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 }
11577 {
11578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11579 }
11580 return resultobj;
11581fail:
11582 return NULL;
11583}
11584
11585
11586SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11587 PyObject *resultobj = 0;
11588 wxRegion *arg1 = (wxRegion *) 0 ;
11589 wxBitmap *arg2 = 0 ;
11590 wxColour *arg3 = 0 ;
11591 int arg4 = (int) 0 ;
11592 bool result;
11593 void *argp1 = 0 ;
11594 int res1 = 0 ;
11595 void *argp2 = 0 ;
11596 int res2 = 0 ;
11597 wxColour temp3 ;
11598 int val4 ;
11599 int ecode4 = 0 ;
11600 PyObject * obj0 = 0 ;
11601 PyObject * obj1 = 0 ;
11602 PyObject * obj2 = 0 ;
11603 PyObject * obj3 = 0 ;
11604 char * kwnames[] = {
11605 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11606 };
11607
11608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11610 if (!SWIG_IsOK(res1)) {
11611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11612 }
11613 arg1 = reinterpret_cast< wxRegion * >(argp1);
11614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11615 if (!SWIG_IsOK(res2)) {
11616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11617 }
11618 if (!argp2) {
11619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11620 }
11621 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11622 {
11623 arg3 = &temp3;
11624 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11625 }
11626 if (obj3) {
11627 ecode4 = SWIG_AsVal_int(obj3, &val4);
11628 if (!SWIG_IsOK(ecode4)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11630 }
11631 arg4 = static_cast< int >(val4);
11632 }
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 {
11640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11641 }
11642 return resultobj;
11643fail:
11644 return NULL;
d55e5bfc
RD
11645}
11646
11647
1bd55598
RD
11648SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11649 PyObject *obj;
11650 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11651 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11652 return SWIG_Py_Void();
d55e5bfc
RD
11653}
11654
1bd55598
RD
11655SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11656 return SWIG_Python_InitShadowInstance(args);
11657}
d55e5bfc 11658
1bd55598
RD
11659SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11660 PyObject *resultobj = 0;
11661 wxRegion *arg1 = 0 ;
11662 wxRegionIterator *result = 0 ;
11663 void *argp1 = 0 ;
11664 int res1 = 0 ;
11665 PyObject * obj0 = 0 ;
11666 char * kwnames[] = {
11667 (char *) "region", NULL
11668 };
11669
11670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11671 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11672 if (!SWIG_IsOK(res1)) {
11673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11674 }
11675 if (!argp1) {
11676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11677 }
11678 arg1 = reinterpret_cast< wxRegion * >(argp1);
11679 {
11680 if (!wxPyCheckForApp()) SWIG_fail;
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11687 return resultobj;
11688fail:
11689 return NULL;
d55e5bfc
RD
11690}
11691
11692
1bd55598
RD
11693SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11694 PyObject *resultobj = 0;
11695 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11696 void *argp1 = 0 ;
11697 int res1 = 0 ;
11698 PyObject *swig_obj[1] ;
11699
11700 if (!args) SWIG_fail;
11701 swig_obj[0] = args;
11702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11703 if (!SWIG_IsOK(res1)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11705 }
11706 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 delete arg1;
d55e5bfc 11710
1bd55598
RD
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_Py_Void();
11715 return resultobj;
11716fail:
11717 return NULL;
d55e5bfc
RD
11718}
11719
11720
1bd55598
RD
11721SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11722 PyObject *resultobj = 0;
11723 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11724 int result;
11725 void *argp1 = 0 ;
11726 int res1 = 0 ;
11727 PyObject *swig_obj[1] ;
11728
11729 if (!args) SWIG_fail;
11730 swig_obj[0] = args;
11731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11732 if (!SWIG_IsOK(res1)) {
11733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11734 }
11735 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 result = (int)(arg1)->GetX();
11739 wxPyEndAllowThreads(__tstate);
11740 if (PyErr_Occurred()) SWIG_fail;
11741 }
11742 resultobj = SWIG_From_int(static_cast< int >(result));
11743 return resultobj;
11744fail:
11745 return NULL;
d55e5bfc
RD
11746}
11747
11748
1bd55598
RD
11749SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11750 PyObject *resultobj = 0;
11751 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11752 int result;
11753 void *argp1 = 0 ;
11754 int res1 = 0 ;
11755 PyObject *swig_obj[1] ;
11756
11757 if (!args) SWIG_fail;
11758 swig_obj[0] = args;
11759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11760 if (!SWIG_IsOK(res1)) {
11761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11762 }
11763 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 result = (int)(arg1)->GetY();
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 resultobj = SWIG_From_int(static_cast< int >(result));
11771 return resultobj;
11772fail:
11773 return NULL;
d55e5bfc
RD
11774}
11775
11776
1bd55598
RD
11777SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11778 PyObject *resultobj = 0;
11779 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11780 int result;
11781 void *argp1 = 0 ;
11782 int res1 = 0 ;
11783 PyObject *swig_obj[1] ;
11784
11785 if (!args) SWIG_fail;
11786 swig_obj[0] = args;
11787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11788 if (!SWIG_IsOK(res1)) {
11789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11790 }
11791 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11792 {
11793 PyThreadState* __tstate = wxPyBeginAllowThreads();
11794 result = (int)(arg1)->GetW();
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = SWIG_From_int(static_cast< int >(result));
11799 return resultobj;
11800fail:
11801 return NULL;
d55e5bfc
RD
11802}
11803
11804
1bd55598
RD
11805SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11806 PyObject *resultobj = 0;
11807 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11808 int result;
11809 void *argp1 = 0 ;
11810 int res1 = 0 ;
11811 PyObject *swig_obj[1] ;
11812
11813 if (!args) SWIG_fail;
11814 swig_obj[0] = args;
11815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11816 if (!SWIG_IsOK(res1)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11818 }
11819 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11820 {
11821 PyThreadState* __tstate = wxPyBeginAllowThreads();
11822 result = (int)(arg1)->GetWidth();
11823 wxPyEndAllowThreads(__tstate);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 resultobj = SWIG_From_int(static_cast< int >(result));
11827 return resultobj;
11828fail:
11829 return NULL;
d55e5bfc
RD
11830}
11831
11832
1bd55598
RD
11833SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11834 PyObject *resultobj = 0;
11835 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11836 int result;
11837 void *argp1 = 0 ;
11838 int res1 = 0 ;
11839 PyObject *swig_obj[1] ;
11840
11841 if (!args) SWIG_fail;
11842 swig_obj[0] = args;
11843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11844 if (!SWIG_IsOK(res1)) {
11845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11846 }
11847 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 result = (int)(arg1)->GetH();
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 resultobj = SWIG_From_int(static_cast< int >(result));
11855 return resultobj;
11856fail:
11857 return NULL;
d07096ad
RD
11858}
11859
11860
1bd55598
RD
11861SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11862 PyObject *resultobj = 0;
11863 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11864 int result;
11865 void *argp1 = 0 ;
11866 int res1 = 0 ;
11867 PyObject *swig_obj[1] ;
11868
11869 if (!args) SWIG_fail;
11870 swig_obj[0] = args;
11871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11872 if (!SWIG_IsOK(res1)) {
11873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11874 }
11875 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = (int)(arg1)->GetHeight();
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 resultobj = SWIG_From_int(static_cast< int >(result));
11883 return resultobj;
11884fail:
11885 return NULL;
d55e5bfc
RD
11886}
11887
11888
1bd55598
RD
11889SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11890 PyObject *resultobj = 0;
11891 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11892 wxRect result;
11893 void *argp1 = 0 ;
11894 int res1 = 0 ;
11895 PyObject *swig_obj[1] ;
11896
11897 if (!args) SWIG_fail;
11898 swig_obj[0] = args;
11899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11900 if (!SWIG_IsOK(res1)) {
11901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11902 }
11903 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = (arg1)->GetRect();
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11911 return resultobj;
11912fail:
11913 return NULL;
d55e5bfc
RD
11914}
11915
11916
1bd55598
RD
11917SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11918 PyObject *resultobj = 0;
11919 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11920 bool result;
11921 void *argp1 = 0 ;
11922 int res1 = 0 ;
11923 PyObject *swig_obj[1] ;
11924
11925 if (!args) SWIG_fail;
11926 swig_obj[0] = args;
11927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11928 if (!SWIG_IsOK(res1)) {
11929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11930 }
11931 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 result = (bool)(arg1)->HaveRects();
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 {
11939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11940 }
11941 return resultobj;
11942fail:
11943 return NULL;
d55e5bfc
RD
11944}
11945
11946
1bd55598
RD
11947SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11948 PyObject *resultobj = 0;
11949 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11950 void *argp1 = 0 ;
11951 int res1 = 0 ;
11952 PyObject *swig_obj[1] ;
11953
11954 if (!args) SWIG_fail;
11955 swig_obj[0] = args;
11956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11959 }
11960 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 (arg1)->Reset();
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 resultobj = SWIG_Py_Void();
11968 return resultobj;
11969fail:
11970 return NULL;
d55e5bfc
RD
11971}
11972
11973
1bd55598
RD
11974SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11975 PyObject *resultobj = 0;
11976 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11977 void *argp1 = 0 ;
11978 int res1 = 0 ;
11979 PyObject *swig_obj[1] ;
11980
11981 if (!args) SWIG_fail;
11982 swig_obj[0] = args;
11983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11984 if (!SWIG_IsOK(res1)) {
11985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11986 }
11987 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 wxRegionIterator_Next(arg1);
11991 wxPyEndAllowThreads(__tstate);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 resultobj = SWIG_Py_Void();
11995 return resultobj;
11996fail:
11997 return NULL;
070c48b4
RD
11998}
11999
12000
1bd55598
RD
12001SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12002 PyObject *resultobj = 0;
12003 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12004 bool result;
12005 void *argp1 = 0 ;
12006 int res1 = 0 ;
12007 PyObject *swig_obj[1] ;
12008
12009 if (!args) SWIG_fail;
12010 swig_obj[0] = args;
12011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12012 if (!SWIG_IsOK(res1)) {
12013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12014 }
12015 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (bool)wxRegionIterator___nonzero__(arg1);
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 {
12023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12024 }
12025 return resultobj;
12026fail:
12027 return NULL;
d55e5bfc
RD
12028}
12029
12030
1bd55598
RD
12031SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12032 PyObject *obj;
12033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12034 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12035 return SWIG_Py_Void();
d55e5bfc
RD
12036}
12037
1bd55598
RD
12038SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12039 return SWIG_Python_InitShadowInstance(args);
12040}
d55e5bfc 12041
1bd55598
RD
12042SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12043 PyObject *resultobj = 0;
12044 wxNativeFontInfo *result = 0 ;
12045
12046 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12054 return resultobj;
12055fail:
12056 return NULL;
d55e5bfc
RD
12057}
12058
12059
1bd55598
RD
12060SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12061 PyObject *resultobj = 0;
12062 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12063 void *argp1 = 0 ;
12064 int res1 = 0 ;
12065 PyObject *swig_obj[1] ;
12066
12067 if (!args) SWIG_fail;
12068 swig_obj[0] = args;
12069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12070 if (!SWIG_IsOK(res1)) {
12071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12072 }
12073 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12074 {
12075 PyThreadState* __tstate = wxPyBeginAllowThreads();
12076 delete arg1;
d55e5bfc 12077
1bd55598
RD
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 resultobj = SWIG_Py_Void();
12082 return resultobj;
12083fail:
12084 return NULL;
d55e5bfc
RD
12085}
12086
12087
1bd55598
RD
12088SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12089 PyObject *resultobj = 0;
12090 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12091 void *argp1 = 0 ;
12092 int res1 = 0 ;
12093 PyObject *swig_obj[1] ;
12094
12095 if (!args) SWIG_fail;
12096 swig_obj[0] = args;
12097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12098 if (!SWIG_IsOK(res1)) {
12099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12100 }
12101 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 (arg1)->Init();
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_Py_Void();
12109 return resultobj;
12110fail:
12111 return NULL;
12112}
12113
12114
12115SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj = 0;
12117 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12118 wxFont *arg2 = 0 ;
12119 void *argp1 = 0 ;
12120 int res1 = 0 ;
12121 void *argp2 = 0 ;
12122 int res2 = 0 ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 char * kwnames[] = {
12126 (char *) "self",(char *) "font", NULL
12127 };
12128
12129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12133 }
12134 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12136 if (!SWIG_IsOK(res2)) {
12137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12138 }
12139 if (!argp2) {
12140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12141 }
12142 arg2 = reinterpret_cast< wxFont * >(argp2);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->InitFromFont((wxFont const &)*arg2);
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 resultobj = SWIG_Py_Void();
12150 return resultobj;
12151fail:
12152 return NULL;
d55e5bfc
RD
12153}
12154
12155
1bd55598
RD
12156SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12157 PyObject *resultobj = 0;
12158 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12159 int result;
12160 void *argp1 = 0 ;
12161 int res1 = 0 ;
12162 PyObject *swig_obj[1] ;
12163
12164 if (!args) SWIG_fail;
12165 swig_obj[0] = args;
12166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12167 if (!SWIG_IsOK(res1)) {
12168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12169 }
12170 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12171 {
12172 PyThreadState* __tstate = wxPyBeginAllowThreads();
12173 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12174 wxPyEndAllowThreads(__tstate);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 resultobj = SWIG_From_int(static_cast< int >(result));
12178 return resultobj;
12179fail:
12180 return NULL;
d55e5bfc
RD
12181}
12182
12183
1bd55598
RD
12184SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12185 PyObject *resultobj = 0;
12186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12187 wxFontStyle result;
12188 void *argp1 = 0 ;
12189 int res1 = 0 ;
12190 PyObject *swig_obj[1] ;
12191
12192 if (!args) SWIG_fail;
12193 swig_obj[0] = args;
12194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12195 if (!SWIG_IsOK(res1)) {
12196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12197 }
12198 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12199 {
12200 PyThreadState* __tstate = wxPyBeginAllowThreads();
12201 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12202 wxPyEndAllowThreads(__tstate);
12203 if (PyErr_Occurred()) SWIG_fail;
12204 }
12205 resultobj = SWIG_From_int(static_cast< int >(result));
12206 return resultobj;
12207fail:
12208 return NULL;
d55e5bfc
RD
12209}
12210
12211
1bd55598
RD
12212SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12213 PyObject *resultobj = 0;
12214 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12215 wxFontWeight result;
12216 void *argp1 = 0 ;
12217 int res1 = 0 ;
12218 PyObject *swig_obj[1] ;
12219
12220 if (!args) SWIG_fail;
12221 swig_obj[0] = args;
12222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12223 if (!SWIG_IsOK(res1)) {
12224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12225 }
12226 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12230 wxPyEndAllowThreads(__tstate);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 resultobj = SWIG_From_int(static_cast< int >(result));
12234 return resultobj;
12235fail:
12236 return NULL;
d55e5bfc
RD
12237}
12238
12239
1bd55598
RD
12240SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12241 PyObject *resultobj = 0;
12242 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12243 bool result;
12244 void *argp1 = 0 ;
12245 int res1 = 0 ;
12246 PyObject *swig_obj[1] ;
12247
12248 if (!args) SWIG_fail;
12249 swig_obj[0] = args;
12250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12251 if (!SWIG_IsOK(res1)) {
12252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12253 }
12254 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) SWIG_fail;
12260 }
12261 {
12262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12263 }
12264 return resultobj;
12265fail:
12266 return NULL;
d55e5bfc
RD
12267}
12268
12269
1bd55598
RD
12270SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12271 PyObject *resultobj = 0;
12272 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12273 wxString result;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 PyObject *swig_obj[1] ;
12277
12278 if (!args) SWIG_fail;
12279 swig_obj[0] = args;
12280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12281 if (!SWIG_IsOK(res1)) {
12282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12283 }
12284 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12288 wxPyEndAllowThreads(__tstate);
12289 if (PyErr_Occurred()) SWIG_fail;
12290 }
12291 {
12292#if wxUSE_UNICODE
12293 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12294#else
12295 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12296#endif
12297 }
12298 return resultobj;
12299fail:
12300 return NULL;
d55e5bfc
RD
12301}
12302
12303
1bd55598
RD
12304SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12305 PyObject *resultobj = 0;
12306 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12307 wxFontFamily result;
12308 void *argp1 = 0 ;
12309 int res1 = 0 ;
12310 PyObject *swig_obj[1] ;
12311
12312 if (!args) SWIG_fail;
12313 swig_obj[0] = args;
12314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12315 if (!SWIG_IsOK(res1)) {
12316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12317 }
12318 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12322 wxPyEndAllowThreads(__tstate);
12323 if (PyErr_Occurred()) SWIG_fail;
12324 }
12325 resultobj = SWIG_From_int(static_cast< int >(result));
12326 return resultobj;
12327fail:
12328 return NULL;
d55e5bfc
RD
12329}
12330
12331
1bd55598
RD
12332SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 PyObject *resultobj = 0;
12334 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12335 wxFontEncoding result;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 PyObject *swig_obj[1] ;
12339
12340 if (!args) SWIG_fail;
12341 swig_obj[0] = args;
12342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12343 if (!SWIG_IsOK(res1)) {
12344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12345 }
12346 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 resultobj = SWIG_From_int(static_cast< int >(result));
12354 return resultobj;
12355fail:
12356 return NULL;
12357}
12358
12359
12360SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj = 0;
12362 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12363 int arg2 ;
12364 void *argp1 = 0 ;
12365 int res1 = 0 ;
12366 int val2 ;
12367 int ecode2 = 0 ;
12368 PyObject * obj0 = 0 ;
12369 PyObject * obj1 = 0 ;
12370 char * kwnames[] = {
12371 (char *) "self",(char *) "pointsize", NULL
12372 };
12373
12374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12376 if (!SWIG_IsOK(res1)) {
12377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12378 }
12379 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12380 ecode2 = SWIG_AsVal_int(obj1, &val2);
12381 if (!SWIG_IsOK(ecode2)) {
12382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12383 }
12384 arg2 = static_cast< int >(val2);
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 (arg1)->SetPointSize(arg2);
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 resultobj = SWIG_Py_Void();
12392 return resultobj;
12393fail:
12394 return NULL;
12395}
12396
12397
12398SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj = 0;
12400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12401 wxFontStyle arg2 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 int val2 ;
12405 int ecode2 = 0 ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 char * kwnames[] = {
12409 (char *) "self",(char *) "style", NULL
12410 };
12411
12412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12416 }
12417 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12418 ecode2 = SWIG_AsVal_int(obj1, &val2);
12419 if (!SWIG_IsOK(ecode2)) {
12420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12421 }
12422 arg2 = static_cast< wxFontStyle >(val2);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 (arg1)->SetStyle(arg2);
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_Py_Void();
12430 return resultobj;
12431fail:
12432 return NULL;
12433}
12434
12435
12436SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj = 0;
12438 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12439 wxFontWeight arg2 ;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 int val2 ;
12443 int ecode2 = 0 ;
12444 PyObject * obj0 = 0 ;
12445 PyObject * obj1 = 0 ;
12446 char * kwnames[] = {
12447 (char *) "self",(char *) "weight", NULL
12448 };
12449
12450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12452 if (!SWIG_IsOK(res1)) {
12453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12454 }
12455 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12456 ecode2 = SWIG_AsVal_int(obj1, &val2);
12457 if (!SWIG_IsOK(ecode2)) {
12458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12459 }
12460 arg2 = static_cast< wxFontWeight >(val2);
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 (arg1)->SetWeight(arg2);
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 resultobj = SWIG_Py_Void();
12468 return resultobj;
12469fail:
12470 return NULL;
12471}
12472
12473
12474SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj = 0;
12476 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12477 bool arg2 ;
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 bool val2 ;
12481 int ecode2 = 0 ;
12482 PyObject * obj0 = 0 ;
12483 PyObject * obj1 = 0 ;
12484 char * kwnames[] = {
12485 (char *) "self",(char *) "underlined", NULL
12486 };
12487
12488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12490 if (!SWIG_IsOK(res1)) {
12491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12492 }
12493 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12494 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12495 if (!SWIG_IsOK(ecode2)) {
12496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12497 }
12498 arg2 = static_cast< bool >(val2);
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 (arg1)->SetUnderlined(arg2);
12502 wxPyEndAllowThreads(__tstate);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 }
12505 resultobj = SWIG_Py_Void();
12506 return resultobj;
12507fail:
12508 return NULL;
12509}
12510
12511
12512SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12513 PyObject *resultobj = 0;
12514 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12515 wxString arg2 ;
704eda0c 12516 bool result;
1bd55598
RD
12517 void *argp1 = 0 ;
12518 int res1 = 0 ;
12519 PyObject * obj0 = 0 ;
12520 PyObject * obj1 = 0 ;
12521 char * kwnames[] = {
12522 (char *) "self",(char *) "facename", NULL
12523 };
12524
12525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12529 }
12530 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12531 {
12532 wxString* sptr = wxString_in_helper(obj1);
12533 if (sptr == NULL) SWIG_fail;
12534 arg2 = *sptr;
12535 delete sptr;
12536 }
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12539 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
704eda0c
RD
12543 {
12544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12545 }
1bd55598
RD
12546 return resultobj;
12547fail:
12548 return NULL;
12549}
12550
12551
12552SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12553 PyObject *resultobj = 0;
12554 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12555 wxFontFamily arg2 ;
12556 void *argp1 = 0 ;
12557 int res1 = 0 ;
12558 int val2 ;
12559 int ecode2 = 0 ;
12560 PyObject * obj0 = 0 ;
12561 PyObject * obj1 = 0 ;
12562 char * kwnames[] = {
12563 (char *) "self",(char *) "family", NULL
12564 };
12565
12566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12570 }
12571 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12572 ecode2 = SWIG_AsVal_int(obj1, &val2);
12573 if (!SWIG_IsOK(ecode2)) {
12574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12575 }
12576 arg2 = static_cast< wxFontFamily >(val2);
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->SetFamily(arg2);
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = SWIG_Py_Void();
12584 return resultobj;
12585fail:
12586 return NULL;
12587}
12588
12589
12590SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj = 0;
12592 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12593 wxFontEncoding arg2 ;
12594 void *argp1 = 0 ;
12595 int res1 = 0 ;
12596 int val2 ;
12597 int ecode2 = 0 ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 char * kwnames[] = {
12601 (char *) "self",(char *) "encoding", NULL
12602 };
12603
12604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12608 }
12609 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12610 ecode2 = SWIG_AsVal_int(obj1, &val2);
12611 if (!SWIG_IsOK(ecode2)) {
12612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12613 }
12614 arg2 = static_cast< wxFontEncoding >(val2);
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 (arg1)->SetEncoding(arg2);
12618 wxPyEndAllowThreads(__tstate);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 resultobj = SWIG_Py_Void();
12622 return resultobj;
12623fail:
12624 return NULL;
12625}
12626
12627
12628SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12629 PyObject *resultobj = 0;
12630 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12631 wxString *arg2 = 0 ;
12632 bool result;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 bool temp2 = false ;
12636 PyObject * obj0 = 0 ;
12637 PyObject * obj1 = 0 ;
12638 char * kwnames[] = {
12639 (char *) "self",(char *) "s", NULL
12640 };
12641
12642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12644 if (!SWIG_IsOK(res1)) {
12645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12646 }
12647 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12648 {
12649 arg2 = wxString_in_helper(obj1);
12650 if (arg2 == NULL) SWIG_fail;
12651 temp2 = true;
12652 }
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 {
12660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12661 }
12662 {
12663 if (temp2)
12664 delete arg2;
12665 }
12666 return resultobj;
12667fail:
12668 {
12669 if (temp2)
12670 delete arg2;
12671 }
12672 return NULL;
d55e5bfc
RD
12673}
12674
12675
1bd55598
RD
12676SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12677 PyObject *resultobj = 0;
12678 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12679 wxString result;
12680 void *argp1 = 0 ;
12681 int res1 = 0 ;
12682 PyObject *swig_obj[1] ;
12683
12684 if (!args) SWIG_fail;
12685 swig_obj[0] = args;
12686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12687 if (!SWIG_IsOK(res1)) {
12688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12689 }
12690 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 result = ((wxNativeFontInfo const *)arg1)->ToString();
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 {
12698#if wxUSE_UNICODE
12699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12700#else
12701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12702#endif
12703 }
12704 return resultobj;
12705fail:
12706 return NULL;
d55e5bfc
RD
12707}
12708
12709
1bd55598
RD
12710SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12711 PyObject *resultobj = 0;
12712 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12713 wxString result;
12714 void *argp1 = 0 ;
12715 int res1 = 0 ;
12716 PyObject *swig_obj[1] ;
12717
12718 if (!args) SWIG_fail;
12719 swig_obj[0] = args;
12720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12721 if (!SWIG_IsOK(res1)) {
12722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12723 }
12724 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 result = wxNativeFontInfo___str__(arg1);
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 {
12732#if wxUSE_UNICODE
12733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12734#else
12735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12736#endif
12737 }
12738 return resultobj;
12739fail:
12740 return NULL;
12741}
12742
12743
12744SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj = 0;
12746 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12747 wxString *arg2 = 0 ;
12748 bool result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 bool temp2 = false ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "s", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12762 }
12763 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12764 {
12765 arg2 = wxString_in_helper(obj1);
12766 if (arg2 == NULL) SWIG_fail;
12767 temp2 = true;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 {
12776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12777 }
12778 {
12779 if (temp2)
12780 delete arg2;
12781 }
12782 return resultobj;
12783fail:
12784 {
12785 if (temp2)
12786 delete arg2;
12787 }
12788 return NULL;
d55e5bfc
RD
12789}
12790
12791
1bd55598
RD
12792SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12793 PyObject *resultobj = 0;
12794 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12795 wxString result;
12796 void *argp1 = 0 ;
12797 int res1 = 0 ;
12798 PyObject *swig_obj[1] ;
12799
12800 if (!args) SWIG_fail;
12801 swig_obj[0] = args;
12802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12803 if (!SWIG_IsOK(res1)) {
12804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12805 }
12806 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 {
36ed4f51 12814#if wxUSE_UNICODE
1bd55598 12815 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12816#else
1bd55598 12817 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12818#endif
1bd55598
RD
12819 }
12820 return resultobj;
12821fail:
12822 return NULL;
d55e5bfc
RD
12823}
12824
12825
1bd55598
RD
12826SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12827 PyObject *obj;
12828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12829 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12830 return SWIG_Py_Void();
d55e5bfc
RD
12831}
12832
1bd55598
RD
12833SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12834 return SWIG_Python_InitShadowInstance(args);
12835}
d55e5bfc 12836
1bd55598
RD
12837SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12838 PyObject *resultobj = 0;
12839 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12840 wxString *arg2 = (wxString *) 0 ;
12841 void *argp1 = 0 ;
12842 int res1 = 0 ;
12843 bool temp2 = false ;
12844 PyObject *swig_obj[2] ;
12845
12846 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12848 if (!SWIG_IsOK(res1)) {
12849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12850 }
12851 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12852 {
12853 arg2 = wxString_in_helper(swig_obj[1]);
12854 if (arg2 == NULL) SWIG_fail;
12855 temp2 = true;
12856 }
12857 if (arg1) (arg1)->facename = *arg2;
12858
12859 resultobj = SWIG_Py_Void();
12860 {
12861 if (temp2)
12862 delete arg2;
12863 }
12864 return resultobj;
12865fail:
12866 {
12867 if (temp2)
12868 delete arg2;
12869 }
12870 return NULL;
d55e5bfc
RD
12871}
12872
12873
1bd55598
RD
12874SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12875 PyObject *resultobj = 0;
12876 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12877 wxString *result = 0 ;
12878 void *argp1 = 0 ;
12879 int res1 = 0 ;
12880 PyObject *swig_obj[1] ;
12881
12882 if (!args) SWIG_fail;
12883 swig_obj[0] = args;
12884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12885 if (!SWIG_IsOK(res1)) {
12886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12887 }
12888 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12889 result = (wxString *)& ((arg1)->facename);
12890 {
12891#if wxUSE_UNICODE
12892 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12893#else
12894 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12895#endif
12896 }
12897 return resultobj;
12898fail:
12899 return NULL;
d55e5bfc
RD
12900}
12901
12902
1bd55598
RD
12903SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12904 PyObject *resultobj = 0;
12905 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12906 wxFontEncoding arg2 ;
12907 void *argp1 = 0 ;
12908 int res1 = 0 ;
12909 int val2 ;
12910 int ecode2 = 0 ;
12911 PyObject *swig_obj[2] ;
12912
12913 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12915 if (!SWIG_IsOK(res1)) {
12916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12917 }
12918 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12919 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12920 if (!SWIG_IsOK(ecode2)) {
12921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12922 }
12923 arg2 = static_cast< wxFontEncoding >(val2);
12924 if (arg1) (arg1)->encoding = arg2;
12925
12926 resultobj = SWIG_Py_Void();
12927 return resultobj;
12928fail:
12929 return NULL;
d55e5bfc
RD
12930}
12931
12932
1bd55598
RD
12933SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
12935 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12936 wxFontEncoding result;
12937 void *argp1 = 0 ;
12938 int res1 = 0 ;
12939 PyObject *swig_obj[1] ;
12940
12941 if (!args) SWIG_fail;
12942 swig_obj[0] = args;
12943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12944 if (!SWIG_IsOK(res1)) {
12945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12946 }
12947 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12948 result = (wxFontEncoding) ((arg1)->encoding);
12949 resultobj = SWIG_From_int(static_cast< int >(result));
12950 return resultobj;
12951fail:
12952 return NULL;
d07096ad
RD
12953}
12954
12955
1bd55598
RD
12956SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12957 PyObject *resultobj = 0;
12958 wxNativeEncodingInfo *result = 0 ;
12959
12960 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12968 return resultobj;
12969fail:
12970 return NULL;
d55e5bfc
RD
12971}
12972
12973
1bd55598
RD
12974SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 PyObject *resultobj = 0;
12976 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12977 void *argp1 = 0 ;
12978 int res1 = 0 ;
12979 PyObject *swig_obj[1] ;
12980
12981 if (!args) SWIG_fail;
12982 swig_obj[0] = args;
12983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12984 if (!SWIG_IsOK(res1)) {
12985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12986 }
12987 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 delete arg1;
d55e5bfc 12991
1bd55598
RD
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 resultobj = SWIG_Py_Void();
12996 return resultobj;
12997fail:
12998 return NULL;
12999}
13000
13001
13002SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13003 PyObject *resultobj = 0;
13004 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13005 wxString *arg2 = 0 ;
13006 bool result;
13007 void *argp1 = 0 ;
13008 int res1 = 0 ;
13009 bool temp2 = false ;
13010 PyObject * obj0 = 0 ;
13011 PyObject * obj1 = 0 ;
13012 char * kwnames[] = {
13013 (char *) "self",(char *) "s", NULL
13014 };
13015
13016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13018 if (!SWIG_IsOK(res1)) {
13019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13020 }
13021 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13022 {
13023 arg2 = wxString_in_helper(obj1);
13024 if (arg2 == NULL) SWIG_fail;
13025 temp2 = true;
13026 }
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 {
13034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13035 }
13036 {
13037 if (temp2)
13038 delete arg2;
13039 }
13040 return resultobj;
13041fail:
13042 {
13043 if (temp2)
13044 delete arg2;
13045 }
13046 return NULL;
d55e5bfc
RD
13047}
13048
13049
1bd55598
RD
13050SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13051 PyObject *resultobj = 0;
13052 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13053 wxString result;
13054 void *argp1 = 0 ;
13055 int res1 = 0 ;
13056 PyObject *swig_obj[1] ;
13057
13058 if (!args) SWIG_fail;
13059 swig_obj[0] = args;
13060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13061 if (!SWIG_IsOK(res1)) {
13062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13063 }
13064 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 {
13072#if wxUSE_UNICODE
13073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13074#else
13075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13076#endif
13077 }
13078 return resultobj;
13079fail:
13080 return NULL;
d55e5bfc
RD
13081}
13082
13083
1bd55598
RD
13084SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13085 PyObject *obj;
13086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13087 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13088 return SWIG_Py_Void();
d55e5bfc
RD
13089}
13090
1bd55598
RD
13091SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13092 return SWIG_Python_InitShadowInstance(args);
13093}
d55e5bfc 13094
1bd55598
RD
13095SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13096 PyObject *resultobj = 0;
13097 wxFontEncoding arg1 ;
13098 wxNativeEncodingInfo *result = 0 ;
13099 int val1 ;
13100 int ecode1 = 0 ;
13101 PyObject * obj0 = 0 ;
13102 char * kwnames[] = {
13103 (char *) "encoding", NULL
13104 };
13105
13106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13107 ecode1 = SWIG_AsVal_int(obj0, &val1);
13108 if (!SWIG_IsOK(ecode1)) {
13109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13110 }
13111 arg1 = static_cast< wxFontEncoding >(val1);
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13119 return resultobj;
13120fail:
13121 return NULL;
13122}
13123
13124
13125SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13126 PyObject *resultobj = 0;
13127 wxNativeEncodingInfo *arg1 = 0 ;
13128 bool result;
13129 void *argp1 = 0 ;
13130 int res1 = 0 ;
13131 PyObject * obj0 = 0 ;
13132 char * kwnames[] = {
13133 (char *) "info", NULL
13134 };
13135
13136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13137 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13138 if (!SWIG_IsOK(res1)) {
13139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13140 }
13141 if (!argp1) {
13142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13143 }
13144 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 {
13152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13153 }
13154 return resultobj;
13155fail:
13156 return NULL;
d55e5bfc
RD
13157}
13158
13159
1bd55598
RD
13160SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13161 PyObject *resultobj = 0;
13162 wxFontMapper *result = 0 ;
13163
13164 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 result = (wxFontMapper *)new wxFontMapper();
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13172 return resultobj;
13173fail:
13174 return NULL;
d55e5bfc
RD
13175}
13176
13177
1bd55598
RD
13178SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13179 PyObject *resultobj = 0;
13180 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13181 void *argp1 = 0 ;
13182 int res1 = 0 ;
13183 PyObject *swig_obj[1] ;
13184
13185 if (!args) SWIG_fail;
13186 swig_obj[0] = args;
13187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13188 if (!SWIG_IsOK(res1)) {
13189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13190 }
13191 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13192 {
13193 PyThreadState* __tstate = wxPyBeginAllowThreads();
13194 delete arg1;
d55e5bfc 13195
1bd55598
RD
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 resultobj = SWIG_Py_Void();
13200 return resultobj;
13201fail:
13202 return NULL;
d55e5bfc
RD
13203}
13204
13205
1bd55598
RD
13206SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13207 PyObject *resultobj = 0;
13208 wxFontMapper *result = 0 ;
13209
13210 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 result = (wxFontMapper *)wxFontMapper::Get();
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13218 return resultobj;
13219fail:
13220 return NULL;
13221}
13222
13223
13224SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13225 PyObject *resultobj = 0;
13226 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13227 wxFontMapper *result = 0 ;
13228 void *argp1 = 0 ;
13229 int res1 = 0 ;
13230 PyObject * obj0 = 0 ;
13231 char * kwnames[] = {
13232 (char *) "mapper", NULL
13233 };
13234
13235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13237 if (!SWIG_IsOK(res1)) {
13238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13239 }
13240 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13244 wxPyEndAllowThreads(__tstate);
13245 if (PyErr_Occurred()) SWIG_fail;
13246 }
13247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13248 return resultobj;
13249fail:
13250 return NULL;
13251}
13252
13253
13254SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj = 0;
13256 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13257 wxString *arg2 = 0 ;
13258 bool arg3 = (bool) true ;
13259 wxFontEncoding result;
13260 void *argp1 = 0 ;
13261 int res1 = 0 ;
13262 bool temp2 = false ;
13263 bool val3 ;
13264 int ecode3 = 0 ;
13265 PyObject * obj0 = 0 ;
13266 PyObject * obj1 = 0 ;
13267 PyObject * obj2 = 0 ;
13268 char * kwnames[] = {
13269 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13270 };
13271
13272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13274 if (!SWIG_IsOK(res1)) {
13275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13276 }
13277 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13278 {
13279 arg2 = wxString_in_helper(obj1);
13280 if (arg2 == NULL) SWIG_fail;
13281 temp2 = true;
13282 }
13283 if (obj2) {
13284 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13285 if (!SWIG_IsOK(ecode3)) {
13286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13287 }
13288 arg3 = static_cast< bool >(val3);
13289 }
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_From_int(static_cast< int >(result));
13297 {
13298 if (temp2)
13299 delete arg2;
13300 }
13301 return resultobj;
13302fail:
13303 {
13304 if (temp2)
13305 delete arg2;
13306 }
13307 return NULL;
d55e5bfc
RD
13308}
13309
13310
1bd55598
RD
13311SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13312 PyObject *resultobj = 0;
13313 size_t result;
13314
13315 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13319 wxPyEndAllowThreads(__tstate);
13320 if (PyErr_Occurred()) SWIG_fail;
13321 }
13322 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13323 return resultobj;
13324fail:
13325 return NULL;
13326}
13327
13328
13329SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13330 PyObject *resultobj = 0;
13331 size_t arg1 ;
13332 wxFontEncoding result;
13333 size_t val1 ;
13334 int ecode1 = 0 ;
13335 PyObject * obj0 = 0 ;
13336 char * kwnames[] = {
13337 (char *) "n", NULL
13338 };
13339
13340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13341 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13342 if (!SWIG_IsOK(ecode1)) {
13343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13344 }
13345 arg1 = static_cast< size_t >(val1);
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13349 wxPyEndAllowThreads(__tstate);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 }
13352 resultobj = SWIG_From_int(static_cast< int >(result));
13353 return resultobj;
13354fail:
13355 return NULL;
13356}
13357
13358
13359SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13360 PyObject *resultobj = 0;
13361 wxFontEncoding arg1 ;
13362 wxString result;
13363 int val1 ;
13364 int ecode1 = 0 ;
13365 PyObject * obj0 = 0 ;
13366 char * kwnames[] = {
13367 (char *) "encoding", NULL
13368 };
13369
13370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13371 ecode1 = SWIG_AsVal_int(obj0, &val1);
13372 if (!SWIG_IsOK(ecode1)) {
13373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13374 }
13375 arg1 = static_cast< wxFontEncoding >(val1);
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 result = wxFontMapper::GetEncodingName(arg1);
13379 wxPyEndAllowThreads(__tstate);
13380 if (PyErr_Occurred()) SWIG_fail;
13381 }
13382 {
13383#if wxUSE_UNICODE
13384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13385#else
13386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13387#endif
13388 }
13389 return resultobj;
13390fail:
13391 return NULL;
d55e5bfc
RD
13392}
13393
13394
1bd55598
RD
13395SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13396 PyObject *resultobj = 0;
13397 wxFontEncoding arg1 ;
13398 wxString result;
13399 int val1 ;
13400 int ecode1 = 0 ;
13401 PyObject * obj0 = 0 ;
13402 char * kwnames[] = {
13403 (char *) "encoding", NULL
13404 };
13405
13406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13407 ecode1 = SWIG_AsVal_int(obj0, &val1);
13408 if (!SWIG_IsOK(ecode1)) {
13409 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13410 }
13411 arg1 = static_cast< wxFontEncoding >(val1);
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 result = wxFontMapper::GetEncodingDescription(arg1);
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 {
13419#if wxUSE_UNICODE
13420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13421#else
13422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13423#endif
13424 }
13425 return resultobj;
13426fail:
13427 return NULL;
d55e5bfc
RD
13428}
13429
13430
1bd55598
RD
13431SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj = 0;
13433 wxString *arg1 = 0 ;
13434 wxFontEncoding result;
13435 bool temp1 = false ;
13436 PyObject * obj0 = 0 ;
13437 char * kwnames[] = {
13438 (char *) "name", NULL
13439 };
13440
13441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13442 {
13443 arg1 = wxString_in_helper(obj0);
13444 if (arg1 == NULL) SWIG_fail;
13445 temp1 = true;
13446 }
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 resultobj = SWIG_From_int(static_cast< int >(result));
13454 {
13455 if (temp1)
13456 delete arg1;
13457 }
13458 return resultobj;
13459fail:
13460 {
13461 if (temp1)
13462 delete arg1;
13463 }
13464 return NULL;
d55e5bfc
RD
13465}
13466
13467
1bd55598
RD
13468SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13469 PyObject *resultobj = 0;
13470 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13471 wxString *arg2 = 0 ;
13472 void *argp1 = 0 ;
13473 int res1 = 0 ;
13474 bool temp2 = false ;
13475 PyObject * obj0 = 0 ;
13476 PyObject * obj1 = 0 ;
13477 char * kwnames[] = {
13478 (char *) "self",(char *) "prefix", NULL
13479 };
13480
13481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13483 if (!SWIG_IsOK(res1)) {
13484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13485 }
13486 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13487 {
13488 arg2 = wxString_in_helper(obj1);
13489 if (arg2 == NULL) SWIG_fail;
13490 temp2 = true;
13491 }
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 (arg1)->SetConfigPath((wxString const &)*arg2);
13495 wxPyEndAllowThreads(__tstate);
13496 if (PyErr_Occurred()) SWIG_fail;
13497 }
13498 resultobj = SWIG_Py_Void();
13499 {
13500 if (temp2)
13501 delete arg2;
13502 }
13503 return resultobj;
13504fail:
13505 {
13506 if (temp2)
13507 delete arg2;
13508 }
13509 return NULL;
13510}
13511
13512
13513SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13514 PyObject *resultobj = 0;
13515 wxString result;
13516
13517 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 result = wxFontMapper::GetDefaultConfigPath();
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 {
13525#if wxUSE_UNICODE
13526 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13527#else
13528 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13529#endif
13530 }
13531 return resultobj;
13532fail:
13533 return NULL;
13534}
13535
13536
13537SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj = 0;
13539 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13540 wxFontEncoding arg2 ;
13541 wxString const &arg3_defvalue = wxPyEmptyString ;
13542 wxString *arg3 = (wxString *) &arg3_defvalue ;
13543 bool arg4 = (bool) true ;
13544 PyObject *result = 0 ;
13545 void *argp1 = 0 ;
13546 int res1 = 0 ;
13547 int val2 ;
13548 int ecode2 = 0 ;
13549 bool temp3 = false ;
13550 bool val4 ;
13551 int ecode4 = 0 ;
13552 PyObject * obj0 = 0 ;
13553 PyObject * obj1 = 0 ;
13554 PyObject * obj2 = 0 ;
13555 PyObject * obj3 = 0 ;
13556 char * kwnames[] = {
13557 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13558 };
13559
13560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13562 if (!SWIG_IsOK(res1)) {
13563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13564 }
13565 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13566 ecode2 = SWIG_AsVal_int(obj1, &val2);
13567 if (!SWIG_IsOK(ecode2)) {
13568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13569 }
13570 arg2 = static_cast< wxFontEncoding >(val2);
13571 if (obj2) {
36ed4f51 13572 {
1bd55598
RD
13573 arg3 = wxString_in_helper(obj2);
13574 if (arg3 == NULL) SWIG_fail;
13575 temp3 = true;
36ed4f51 13576 }
1bd55598
RD
13577 }
13578 if (obj3) {
13579 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13580 if (!SWIG_IsOK(ecode4)) {
13581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13582 }
13583 arg4 = static_cast< bool >(val4);
13584 }
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13588 wxPyEndAllowThreads(__tstate);
13589 if (PyErr_Occurred()) SWIG_fail;
13590 }
13591 resultobj = result;
13592 {
13593 if (temp3)
13594 delete arg3;
13595 }
13596 return resultobj;
13597fail:
13598 {
13599 if (temp3)
13600 delete arg3;
13601 }
13602 return NULL;
13603}
13604
13605
13606SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13607 PyObject *resultobj = 0;
13608 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13609 wxFontEncoding arg2 ;
13610 wxString const &arg3_defvalue = wxPyEmptyString ;
13611 wxString *arg3 = (wxString *) &arg3_defvalue ;
13612 bool result;
13613 void *argp1 = 0 ;
13614 int res1 = 0 ;
13615 int val2 ;
13616 int ecode2 = 0 ;
13617 bool temp3 = false ;
13618 PyObject * obj0 = 0 ;
13619 PyObject * obj1 = 0 ;
13620 PyObject * obj2 = 0 ;
13621 char * kwnames[] = {
13622 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13623 };
13624
13625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13627 if (!SWIG_IsOK(res1)) {
13628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13629 }
13630 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13631 ecode2 = SWIG_AsVal_int(obj1, &val2);
13632 if (!SWIG_IsOK(ecode2)) {
13633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13634 }
13635 arg2 = static_cast< wxFontEncoding >(val2);
13636 if (obj2) {
36ed4f51 13637 {
1bd55598
RD
13638 arg3 = wxString_in_helper(obj2);
13639 if (arg3 == NULL) SWIG_fail;
13640 temp3 = true;
36ed4f51 13641 }
1bd55598
RD
13642 }
13643 {
13644 PyThreadState* __tstate = wxPyBeginAllowThreads();
13645 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13651 }
13652 {
13653 if (temp3)
13654 delete arg3;
13655 }
13656 return resultobj;
13657fail:
13658 {
13659 if (temp3)
13660 delete arg3;
13661 }
13662 return NULL;
13663}
13664
13665
13666SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13667 PyObject *resultobj = 0;
13668 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13669 wxWindow *arg2 = (wxWindow *) 0 ;
13670 void *argp1 = 0 ;
13671 int res1 = 0 ;
13672 void *argp2 = 0 ;
13673 int res2 = 0 ;
13674 PyObject * obj0 = 0 ;
13675 PyObject * obj1 = 0 ;
13676 char * kwnames[] = {
13677 (char *) "self",(char *) "parent", NULL
13678 };
13679
13680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13682 if (!SWIG_IsOK(res1)) {
13683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13684 }
13685 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13687 if (!SWIG_IsOK(res2)) {
13688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13689 }
13690 arg2 = reinterpret_cast< wxWindow * >(argp2);
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 (arg1)->SetDialogParent(arg2);
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 resultobj = SWIG_Py_Void();
13698 return resultobj;
13699fail:
13700 return NULL;
13701}
13702
13703
13704SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13705 PyObject *resultobj = 0;
13706 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13707 wxString *arg2 = 0 ;
13708 void *argp1 = 0 ;
13709 int res1 = 0 ;
13710 bool temp2 = false ;
13711 PyObject * obj0 = 0 ;
13712 PyObject * obj1 = 0 ;
13713 char * kwnames[] = {
13714 (char *) "self",(char *) "title", NULL
13715 };
13716
13717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13719 if (!SWIG_IsOK(res1)) {
13720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13721 }
13722 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13723 {
13724 arg2 = wxString_in_helper(obj1);
13725 if (arg2 == NULL) SWIG_fail;
13726 temp2 = true;
13727 }
13728 {
13729 PyThreadState* __tstate = wxPyBeginAllowThreads();
13730 (arg1)->SetDialogTitle((wxString const &)*arg2);
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 resultobj = SWIG_Py_Void();
13735 {
13736 if (temp2)
13737 delete arg2;
13738 }
13739 return resultobj;
13740fail:
13741 {
13742 if (temp2)
13743 delete arg2;
13744 }
13745 return NULL;
13746}
13747
13748
13749SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13750 PyObject *obj;
13751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13752 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13753 return SWIG_Py_Void();
13754}
13755
13756SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13757 return SWIG_Python_InitShadowInstance(args);
13758}
13759
13760SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj = 0;
13762 int arg1 ;
13763 int arg2 ;
13764 int arg3 ;
13765 int arg4 ;
13766 bool arg5 = (bool) false ;
13767 wxString const &arg6_defvalue = wxPyEmptyString ;
13768 wxString *arg6 = (wxString *) &arg6_defvalue ;
13769 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13770 wxFont *result = 0 ;
13771 int val1 ;
13772 int ecode1 = 0 ;
13773 int val2 ;
13774 int ecode2 = 0 ;
13775 int val3 ;
13776 int ecode3 = 0 ;
13777 int val4 ;
13778 int ecode4 = 0 ;
13779 bool val5 ;
13780 int ecode5 = 0 ;
13781 bool temp6 = false ;
13782 int val7 ;
13783 int ecode7 = 0 ;
13784 PyObject * obj0 = 0 ;
13785 PyObject * obj1 = 0 ;
13786 PyObject * obj2 = 0 ;
13787 PyObject * obj3 = 0 ;
13788 PyObject * obj4 = 0 ;
13789 PyObject * obj5 = 0 ;
13790 PyObject * obj6 = 0 ;
13791 char * kwnames[] = {
13792 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13793 };
13794
13795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13796 ecode1 = SWIG_AsVal_int(obj0, &val1);
13797 if (!SWIG_IsOK(ecode1)) {
13798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13799 }
13800 arg1 = static_cast< int >(val1);
13801 ecode2 = SWIG_AsVal_int(obj1, &val2);
13802 if (!SWIG_IsOK(ecode2)) {
13803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13804 }
13805 arg2 = static_cast< int >(val2);
13806 ecode3 = SWIG_AsVal_int(obj2, &val3);
13807 if (!SWIG_IsOK(ecode3)) {
13808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13809 }
13810 arg3 = static_cast< int >(val3);
13811 ecode4 = SWIG_AsVal_int(obj3, &val4);
13812 if (!SWIG_IsOK(ecode4)) {
13813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13814 }
13815 arg4 = static_cast< int >(val4);
13816 if (obj4) {
13817 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13818 if (!SWIG_IsOK(ecode5)) {
13819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13820 }
13821 arg5 = static_cast< bool >(val5);
13822 }
13823 if (obj5) {
d55e5bfc 13824 {
1bd55598
RD
13825 arg6 = wxString_in_helper(obj5);
13826 if (arg6 == NULL) SWIG_fail;
13827 temp6 = true;
d55e5bfc 13828 }
1bd55598
RD
13829 }
13830 if (obj6) {
13831 ecode7 = SWIG_AsVal_int(obj6, &val7);
13832 if (!SWIG_IsOK(ecode7)) {
13833 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13834 }
13835 arg7 = static_cast< wxFontEncoding >(val7);
13836 }
13837 {
13838 if (!wxPyCheckForApp()) SWIG_fail;
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13841 wxPyEndAllowThreads(__tstate);
13842 if (PyErr_Occurred()) SWIG_fail;
13843 }
13844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13845 {
13846 if (temp6)
13847 delete arg6;
13848 }
13849 return resultobj;
13850fail:
13851 {
13852 if (temp6)
13853 delete arg6;
13854 }
13855 return NULL;
d55e5bfc
RD
13856}
13857
13858
1bd55598
RD
13859SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13860 PyObject *resultobj = 0;
13861 wxFont *arg1 = (wxFont *) 0 ;
13862 void *argp1 = 0 ;
13863 int res1 = 0 ;
13864 PyObject *swig_obj[1] ;
13865
13866 if (!args) SWIG_fail;
13867 swig_obj[0] = args;
13868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13869 if (!SWIG_IsOK(res1)) {
13870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13871 }
13872 arg1 = reinterpret_cast< wxFont * >(argp1);
13873 {
13874 PyThreadState* __tstate = wxPyBeginAllowThreads();
13875 delete arg1;
d55e5bfc 13876
1bd55598
RD
13877 wxPyEndAllowThreads(__tstate);
13878 if (PyErr_Occurred()) SWIG_fail;
13879 }
13880 resultobj = SWIG_Py_Void();
13881 return resultobj;
13882fail:
13883 return NULL;
13884}
13885
13886
13887SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13888 PyObject *resultobj = 0;
13889 wxNativeFontInfo *arg1 = 0 ;
13890 wxFont *result = 0 ;
13891 void *argp1 = 0 ;
13892 int res1 = 0 ;
13893 PyObject * obj0 = 0 ;
13894 char * kwnames[] = {
13895 (char *) "info", NULL
13896 };
13897
13898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13899 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13900 if (!SWIG_IsOK(res1)) {
13901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13902 }
13903 if (!argp1) {
13904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13905 }
13906 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13907 {
13908 if (!wxPyCheckForApp()) SWIG_fail;
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
13914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13915 return resultobj;
13916fail:
13917 return NULL;
d55e5bfc
RD
13918}
13919
13920
1bd55598
RD
13921SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 wxString *arg1 = 0 ;
13924 wxFont *result = 0 ;
13925 bool temp1 = false ;
13926 PyObject * obj0 = 0 ;
13927 char * kwnames[] = {
13928 (char *) "info", NULL
13929 };
13930
13931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13932 {
13933 arg1 = wxString_in_helper(obj0);
13934 if (arg1 == NULL) SWIG_fail;
13935 temp1 = true;
13936 }
13937 {
13938 if (!wxPyCheckForApp()) SWIG_fail;
13939 PyThreadState* __tstate = wxPyBeginAllowThreads();
13940 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13941 wxPyEndAllowThreads(__tstate);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
13944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13945 {
13946 if (temp1)
13947 delete arg1;
13948 }
13949 return resultobj;
13950fail:
13951 {
13952 if (temp1)
13953 delete arg1;
13954 }
13955 return NULL;
13956}
13957
13958
13959SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13960 PyObject *resultobj = 0;
13961 int arg1 ;
13962 wxFontFamily arg2 ;
13963 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13964 wxString const &arg4_defvalue = wxPyEmptyString ;
13965 wxString *arg4 = (wxString *) &arg4_defvalue ;
13966 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13967 wxFont *result = 0 ;
13968 int val1 ;
13969 int ecode1 = 0 ;
13970 int val2 ;
13971 int ecode2 = 0 ;
13972 int val3 ;
13973 int ecode3 = 0 ;
13974 bool temp4 = false ;
13975 int val5 ;
13976 int ecode5 = 0 ;
13977 PyObject * obj0 = 0 ;
13978 PyObject * obj1 = 0 ;
13979 PyObject * obj2 = 0 ;
13980 PyObject * obj3 = 0 ;
13981 PyObject * obj4 = 0 ;
13982 char * kwnames[] = {
13983 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13984 };
13985
13986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13987 ecode1 = SWIG_AsVal_int(obj0, &val1);
13988 if (!SWIG_IsOK(ecode1)) {
13989 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13990 }
13991 arg1 = static_cast< int >(val1);
13992 ecode2 = SWIG_AsVal_int(obj1, &val2);
13993 if (!SWIG_IsOK(ecode2)) {
13994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13995 }
13996 arg2 = static_cast< wxFontFamily >(val2);
13997 if (obj2) {
13998 ecode3 = SWIG_AsVal_int(obj2, &val3);
13999 if (!SWIG_IsOK(ecode3)) {
14000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14001 }
14002 arg3 = static_cast< int >(val3);
14003 }
14004 if (obj3) {
36ed4f51 14005 {
1bd55598
RD
14006 arg4 = wxString_in_helper(obj3);
14007 if (arg4 == NULL) SWIG_fail;
14008 temp4 = true;
36ed4f51 14009 }
1bd55598
RD
14010 }
14011 if (obj4) {
14012 ecode5 = SWIG_AsVal_int(obj4, &val5);
14013 if (!SWIG_IsOK(ecode5)) {
14014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14015 }
14016 arg5 = static_cast< wxFontEncoding >(val5);
14017 }
14018 {
14019 if (!wxPyCheckForApp()) SWIG_fail;
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14022 wxPyEndAllowThreads(__tstate);
14023 if (PyErr_Occurred()) SWIG_fail;
14024 }
14025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14026 {
14027 if (temp4)
14028 delete arg4;
14029 }
14030 return resultobj;
14031fail:
14032 {
14033 if (temp4)
14034 delete arg4;
14035 }
14036 return NULL;
14037}
14038
14039
14040SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14041 PyObject *resultobj = 0;
14042 wxSize *arg1 = 0 ;
14043 int arg2 ;
14044 int arg3 ;
14045 int arg4 ;
14046 bool arg5 = (bool) false ;
14047 wxString const &arg6_defvalue = wxEmptyString ;
14048 wxString *arg6 = (wxString *) &arg6_defvalue ;
14049 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14050 wxFont *result = 0 ;
14051 wxSize temp1 ;
14052 int val2 ;
14053 int ecode2 = 0 ;
14054 int val3 ;
14055 int ecode3 = 0 ;
14056 int val4 ;
14057 int ecode4 = 0 ;
14058 bool val5 ;
14059 int ecode5 = 0 ;
14060 bool temp6 = false ;
14061 int val7 ;
14062 int ecode7 = 0 ;
14063 PyObject * obj0 = 0 ;
14064 PyObject * obj1 = 0 ;
14065 PyObject * obj2 = 0 ;
14066 PyObject * obj3 = 0 ;
14067 PyObject * obj4 = 0 ;
14068 PyObject * obj5 = 0 ;
14069 PyObject * obj6 = 0 ;
14070 char * kwnames[] = {
14071 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14072 };
14073
14074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14075 {
14076 arg1 = &temp1;
14077 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14078 }
14079 ecode2 = SWIG_AsVal_int(obj1, &val2);
14080 if (!SWIG_IsOK(ecode2)) {
14081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14082 }
14083 arg2 = static_cast< int >(val2);
14084 ecode3 = SWIG_AsVal_int(obj2, &val3);
14085 if (!SWIG_IsOK(ecode3)) {
14086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14087 }
14088 arg3 = static_cast< int >(val3);
14089 ecode4 = SWIG_AsVal_int(obj3, &val4);
14090 if (!SWIG_IsOK(ecode4)) {
14091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14092 }
14093 arg4 = static_cast< int >(val4);
14094 if (obj4) {
14095 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14096 if (!SWIG_IsOK(ecode5)) {
14097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14098 }
14099 arg5 = static_cast< bool >(val5);
14100 }
14101 if (obj5) {
d55e5bfc 14102 {
1bd55598
RD
14103 arg6 = wxString_in_helper(obj5);
14104 if (arg6 == NULL) SWIG_fail;
14105 temp6 = true;
d55e5bfc 14106 }
1bd55598
RD
14107 }
14108 if (obj6) {
14109 ecode7 = SWIG_AsVal_int(obj6, &val7);
14110 if (!SWIG_IsOK(ecode7)) {
14111 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14112 }
14113 arg7 = static_cast< wxFontEncoding >(val7);
14114 }
14115 {
14116 if (!wxPyCheckForApp()) SWIG_fail;
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14123 {
14124 if (temp6)
14125 delete arg6;
14126 }
14127 return resultobj;
14128fail:
14129 {
14130 if (temp6)
14131 delete arg6;
14132 }
14133 return NULL;
14134}
14135
14136
14137SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj = 0;
14139 wxSize *arg1 = 0 ;
14140 wxFontFamily arg2 ;
14141 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14142 wxString const &arg4_defvalue = wxEmptyString ;
14143 wxString *arg4 = (wxString *) &arg4_defvalue ;
14144 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14145 wxFont *result = 0 ;
14146 wxSize temp1 ;
14147 int val2 ;
14148 int ecode2 = 0 ;
14149 int val3 ;
14150 int ecode3 = 0 ;
14151 bool temp4 = false ;
14152 int val5 ;
14153 int ecode5 = 0 ;
14154 PyObject * obj0 = 0 ;
14155 PyObject * obj1 = 0 ;
14156 PyObject * obj2 = 0 ;
14157 PyObject * obj3 = 0 ;
14158 PyObject * obj4 = 0 ;
14159 char * kwnames[] = {
14160 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14161 };
14162
14163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14164 {
14165 arg1 = &temp1;
14166 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14167 }
14168 ecode2 = SWIG_AsVal_int(obj1, &val2);
14169 if (!SWIG_IsOK(ecode2)) {
14170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14171 }
14172 arg2 = static_cast< wxFontFamily >(val2);
14173 if (obj2) {
14174 ecode3 = SWIG_AsVal_int(obj2, &val3);
14175 if (!SWIG_IsOK(ecode3)) {
14176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14177 }
14178 arg3 = static_cast< int >(val3);
14179 }
14180 if (obj3) {
36ed4f51 14181 {
1bd55598
RD
14182 arg4 = wxString_in_helper(obj3);
14183 if (arg4 == NULL) SWIG_fail;
14184 temp4 = true;
36ed4f51 14185 }
1bd55598
RD
14186 }
14187 if (obj4) {
14188 ecode5 = SWIG_AsVal_int(obj4, &val5);
14189 if (!SWIG_IsOK(ecode5)) {
14190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14191 }
14192 arg5 = static_cast< wxFontEncoding >(val5);
14193 }
14194 {
14195 if (!wxPyCheckForApp()) SWIG_fail;
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14198 wxPyEndAllowThreads(__tstate);
14199 if (PyErr_Occurred()) SWIG_fail;
14200 }
14201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14202 {
14203 if (temp4)
14204 delete arg4;
14205 }
14206 return resultobj;
14207fail:
14208 {
14209 if (temp4)
14210 delete arg4;
14211 }
14212 return NULL;
d55e5bfc
RD
14213}
14214
14215
b39fe951 14216SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14217 PyObject *resultobj = 0;
14218 wxFont *arg1 = (wxFont *) 0 ;
14219 bool result;
14220 void *argp1 = 0 ;
14221 int res1 = 0 ;
14222 PyObject *swig_obj[1] ;
14223
14224 if (!args) SWIG_fail;
14225 swig_obj[0] = args;
14226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14227 if (!SWIG_IsOK(res1)) {
b39fe951 14228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14229 }
14230 arg1 = reinterpret_cast< wxFont * >(argp1);
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14233 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 {
14238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14239 }
14240 return resultobj;
14241fail:
14242 return NULL;
14243}
14244
14245
14246SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14247 PyObject *resultobj = 0;
14248 wxFont *arg1 = (wxFont *) 0 ;
14249 wxFont *arg2 = (wxFont *) 0 ;
14250 bool result;
14251 void *argp1 = 0 ;
14252 int res1 = 0 ;
14253 void *argp2 = 0 ;
14254 int res2 = 0 ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 char * kwnames[] = {
14258 (char *) "self",(char *) "other", NULL
14259 };
14260
14261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14263 if (!SWIG_IsOK(res1)) {
14264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14265 }
14266 arg1 = reinterpret_cast< wxFont * >(argp1);
14267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14268 if (!SWIG_IsOK(res2)) {
14269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14270 }
14271 arg2 = reinterpret_cast< wxFont * >(argp2);
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14275 wxPyEndAllowThreads(__tstate);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 {
14279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14280 }
14281 return resultobj;
14282fail:
14283 return NULL;
14284}
14285
14286
14287SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14288 PyObject *resultobj = 0;
14289 wxFont *arg1 = (wxFont *) 0 ;
14290 wxFont *arg2 = (wxFont *) 0 ;
14291 bool result;
14292 void *argp1 = 0 ;
14293 int res1 = 0 ;
14294 void *argp2 = 0 ;
14295 int res2 = 0 ;
14296 PyObject * obj0 = 0 ;
14297 PyObject * obj1 = 0 ;
14298 char * kwnames[] = {
14299 (char *) "self",(char *) "other", NULL
14300 };
14301
14302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14304 if (!SWIG_IsOK(res1)) {
14305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14306 }
14307 arg1 = reinterpret_cast< wxFont * >(argp1);
14308 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14309 if (!SWIG_IsOK(res2)) {
14310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14311 }
14312 arg2 = reinterpret_cast< wxFont * >(argp2);
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14316 wxPyEndAllowThreads(__tstate);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 {
14320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14321 }
14322 return resultobj;
14323fail:
14324 return NULL;
d55e5bfc
RD
14325}
14326
14327
1bd55598
RD
14328SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14329 PyObject *resultobj = 0;
14330 wxFont *arg1 = (wxFont *) 0 ;
14331 int result;
14332 void *argp1 = 0 ;
14333 int res1 = 0 ;
14334 PyObject *swig_obj[1] ;
14335
14336 if (!args) SWIG_fail;
14337 swig_obj[0] = args;
14338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14339 if (!SWIG_IsOK(res1)) {
14340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14341 }
14342 arg1 = reinterpret_cast< wxFont * >(argp1);
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 result = (int)((wxFont const *)arg1)->GetPointSize();
14346 wxPyEndAllowThreads(__tstate);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 }
14349 resultobj = SWIG_From_int(static_cast< int >(result));
14350 return resultobj;
14351fail:
14352 return NULL;
d55e5bfc
RD
14353}
14354
14355
1bd55598
RD
14356SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14357 PyObject *resultobj = 0;
14358 wxFont *arg1 = (wxFont *) 0 ;
14359 wxSize result;
14360 void *argp1 = 0 ;
14361 int res1 = 0 ;
14362 PyObject *swig_obj[1] ;
14363
14364 if (!args) SWIG_fail;
14365 swig_obj[0] = args;
14366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14367 if (!SWIG_IsOK(res1)) {
14368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14369 }
14370 arg1 = reinterpret_cast< wxFont * >(argp1);
14371 {
14372 PyThreadState* __tstate = wxPyBeginAllowThreads();
14373 result = ((wxFont const *)arg1)->GetPixelSize();
14374 wxPyEndAllowThreads(__tstate);
14375 if (PyErr_Occurred()) SWIG_fail;
14376 }
14377 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14378 return resultobj;
14379fail:
14380 return NULL;
d55e5bfc
RD
14381}
14382
14383
1bd55598
RD
14384SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14385 PyObject *resultobj = 0;
14386 wxFont *arg1 = (wxFont *) 0 ;
14387 bool result;
14388 void *argp1 = 0 ;
14389 int res1 = 0 ;
14390 PyObject *swig_obj[1] ;
14391
14392 if (!args) SWIG_fail;
14393 swig_obj[0] = args;
14394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14395 if (!SWIG_IsOK(res1)) {
14396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14397 }
14398 arg1 = reinterpret_cast< wxFont * >(argp1);
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14402 wxPyEndAllowThreads(__tstate);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 }
14405 {
14406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14407 }
14408 return resultobj;
14409fail:
14410 return NULL;
d55e5bfc
RD
14411}
14412
14413
1bd55598
RD
14414SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14415 PyObject *resultobj = 0;
14416 wxFont *arg1 = (wxFont *) 0 ;
14417 int result;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 PyObject *swig_obj[1] ;
14421
14422 if (!args) SWIG_fail;
14423 swig_obj[0] = args;
14424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14425 if (!SWIG_IsOK(res1)) {
14426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14427 }
14428 arg1 = reinterpret_cast< wxFont * >(argp1);
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 result = (int)((wxFont const *)arg1)->GetFamily();
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = SWIG_From_int(static_cast< int >(result));
14436 return resultobj;
14437fail:
14438 return NULL;
d55e5bfc
RD
14439}
14440
14441
1bd55598
RD
14442SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14443 PyObject *resultobj = 0;
14444 wxFont *arg1 = (wxFont *) 0 ;
14445 int result;
14446 void *argp1 = 0 ;
14447 int res1 = 0 ;
14448 PyObject *swig_obj[1] ;
14449
14450 if (!args) SWIG_fail;
14451 swig_obj[0] = args;
14452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14453 if (!SWIG_IsOK(res1)) {
14454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14455 }
14456 arg1 = reinterpret_cast< wxFont * >(argp1);
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (int)((wxFont const *)arg1)->GetStyle();
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 resultobj = SWIG_From_int(static_cast< int >(result));
14464 return resultobj;
14465fail:
14466 return NULL;
d55e5bfc
RD
14467}
14468
14469
1bd55598
RD
14470SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14471 PyObject *resultobj = 0;
14472 wxFont *arg1 = (wxFont *) 0 ;
14473 int result;
14474 void *argp1 = 0 ;
14475 int res1 = 0 ;
14476 PyObject *swig_obj[1] ;
14477
14478 if (!args) SWIG_fail;
14479 swig_obj[0] = args;
14480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14481 if (!SWIG_IsOK(res1)) {
14482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14483 }
14484 arg1 = reinterpret_cast< wxFont * >(argp1);
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 result = (int)((wxFont const *)arg1)->GetWeight();
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 resultobj = SWIG_From_int(static_cast< int >(result));
14492 return resultobj;
14493fail:
14494 return NULL;
d55e5bfc
RD
14495}
14496
14497
1bd55598
RD
14498SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14499 PyObject *resultobj = 0;
14500 wxFont *arg1 = (wxFont *) 0 ;
14501 bool result;
14502 void *argp1 = 0 ;
14503 int res1 = 0 ;
14504 PyObject *swig_obj[1] ;
14505
14506 if (!args) SWIG_fail;
14507 swig_obj[0] = args;
14508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14509 if (!SWIG_IsOK(res1)) {
14510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14511 }
14512 arg1 = reinterpret_cast< wxFont * >(argp1);
14513 {
14514 PyThreadState* __tstate = wxPyBeginAllowThreads();
14515 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 {
14520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14521 }
14522 return resultobj;
14523fail:
14524 return NULL;
d55e5bfc
RD
14525}
14526
14527
1bd55598
RD
14528SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14529 PyObject *resultobj = 0;
14530 wxFont *arg1 = (wxFont *) 0 ;
14531 wxString result;
14532 void *argp1 = 0 ;
14533 int res1 = 0 ;
14534 PyObject *swig_obj[1] ;
14535
14536 if (!args) SWIG_fail;
14537 swig_obj[0] = args;
14538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14539 if (!SWIG_IsOK(res1)) {
14540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14541 }
14542 arg1 = reinterpret_cast< wxFont * >(argp1);
14543 {
14544 PyThreadState* __tstate = wxPyBeginAllowThreads();
14545 result = ((wxFont const *)arg1)->GetFaceName();
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 {
14550#if wxUSE_UNICODE
14551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14552#else
14553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14554#endif
14555 }
14556 return resultobj;
14557fail:
14558 return NULL;
d55e5bfc
RD
14559}
14560
14561
1bd55598
RD
14562SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14563 PyObject *resultobj = 0;
14564 wxFont *arg1 = (wxFont *) 0 ;
14565 wxFontEncoding result;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 PyObject *swig_obj[1] ;
14569
14570 if (!args) SWIG_fail;
14571 swig_obj[0] = args;
14572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14573 if (!SWIG_IsOK(res1)) {
14574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14575 }
14576 arg1 = reinterpret_cast< wxFont * >(argp1);
14577 {
14578 PyThreadState* __tstate = wxPyBeginAllowThreads();
14579 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 resultobj = SWIG_From_int(static_cast< int >(result));
14584 return resultobj;
14585fail:
14586 return NULL;
d55e5bfc
RD
14587}
14588
14589
1bd55598
RD
14590SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14591 PyObject *resultobj = 0;
14592 wxFont *arg1 = (wxFont *) 0 ;
14593 wxNativeFontInfo *result = 0 ;
14594 void *argp1 = 0 ;
14595 int res1 = 0 ;
14596 PyObject *swig_obj[1] ;
14597
14598 if (!args) SWIG_fail;
14599 swig_obj[0] = args;
14600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14601 if (!SWIG_IsOK(res1)) {
14602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14603 }
14604 arg1 = reinterpret_cast< wxFont * >(argp1);
14605 {
14606 PyThreadState* __tstate = wxPyBeginAllowThreads();
14607 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14608 wxPyEndAllowThreads(__tstate);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 }
14611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14612 return resultobj;
14613fail:
14614 return NULL;
d55e5bfc
RD
14615}
14616
14617
1bd55598
RD
14618SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14619 PyObject *resultobj = 0;
14620 wxFont *arg1 = (wxFont *) 0 ;
14621 bool result;
14622 void *argp1 = 0 ;
14623 int res1 = 0 ;
14624 PyObject *swig_obj[1] ;
14625
14626 if (!args) SWIG_fail;
14627 swig_obj[0] = args;
14628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14629 if (!SWIG_IsOK(res1)) {
14630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14631 }
14632 arg1 = reinterpret_cast< wxFont * >(argp1);
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 {
14640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14641 }
14642 return resultobj;
14643fail:
14644 return NULL;
d55e5bfc
RD
14645}
14646
14647
1bd55598
RD
14648SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14649 PyObject *resultobj = 0;
14650 wxFont *arg1 = (wxFont *) 0 ;
14651 wxString result;
14652 void *argp1 = 0 ;
14653 int res1 = 0 ;
14654 PyObject *swig_obj[1] ;
14655
14656 if (!args) SWIG_fail;
14657 swig_obj[0] = args;
14658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14659 if (!SWIG_IsOK(res1)) {
14660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14661 }
14662 arg1 = reinterpret_cast< wxFont * >(argp1);
14663 {
14664 PyThreadState* __tstate = wxPyBeginAllowThreads();
14665 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 {
14670#if wxUSE_UNICODE
14671 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14672#else
14673 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14674#endif
14675 }
14676 return resultobj;
14677fail:
14678 return NULL;
d55e5bfc
RD
14679}
14680
14681
1bd55598
RD
14682SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14683 PyObject *resultobj = 0;
14684 wxFont *arg1 = (wxFont *) 0 ;
14685 wxString result;
14686 void *argp1 = 0 ;
14687 int res1 = 0 ;
14688 PyObject *swig_obj[1] ;
14689
14690 if (!args) SWIG_fail;
14691 swig_obj[0] = args;
14692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14693 if (!SWIG_IsOK(res1)) {
14694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14695 }
14696 arg1 = reinterpret_cast< wxFont * >(argp1);
14697 {
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 {
14704#if wxUSE_UNICODE
14705 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14706#else
14707 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14708#endif
14709 }
14710 return resultobj;
14711fail:
14712 return NULL;
14713}
14714
14715
14716SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj = 0;
14718 wxFont *arg1 = (wxFont *) 0 ;
14719 int arg2 ;
14720 void *argp1 = 0 ;
14721 int res1 = 0 ;
14722 int val2 ;
14723 int ecode2 = 0 ;
14724 PyObject * obj0 = 0 ;
14725 PyObject * obj1 = 0 ;
14726 char * kwnames[] = {
14727 (char *) "self",(char *) "pointSize", NULL
14728 };
14729
14730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14732 if (!SWIG_IsOK(res1)) {
14733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14734 }
14735 arg1 = reinterpret_cast< wxFont * >(argp1);
14736 ecode2 = SWIG_AsVal_int(obj1, &val2);
14737 if (!SWIG_IsOK(ecode2)) {
14738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14739 }
14740 arg2 = static_cast< int >(val2);
14741 {
14742 PyThreadState* __tstate = wxPyBeginAllowThreads();
14743 (arg1)->SetPointSize(arg2);
14744 wxPyEndAllowThreads(__tstate);
14745 if (PyErr_Occurred()) SWIG_fail;
14746 }
14747 resultobj = SWIG_Py_Void();
14748 return resultobj;
14749fail:
14750 return NULL;
14751}
14752
14753
14754SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14755 PyObject *resultobj = 0;
14756 wxFont *arg1 = (wxFont *) 0 ;
14757 wxSize *arg2 = 0 ;
14758 void *argp1 = 0 ;
14759 int res1 = 0 ;
14760 wxSize temp2 ;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 char * kwnames[] = {
14764 (char *) "self",(char *) "pixelSize", NULL
14765 };
14766
14767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14769 if (!SWIG_IsOK(res1)) {
14770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14771 }
14772 arg1 = reinterpret_cast< wxFont * >(argp1);
14773 {
14774 arg2 = &temp2;
14775 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14776 }
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 (arg1)->SetPixelSize((wxSize const &)*arg2);
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_Py_Void();
14784 return resultobj;
14785fail:
14786 return NULL;
14787}
14788
14789
14790SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj = 0;
14792 wxFont *arg1 = (wxFont *) 0 ;
14793 int arg2 ;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 int val2 ;
14797 int ecode2 = 0 ;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 char * kwnames[] = {
14801 (char *) "self",(char *) "family", NULL
14802 };
14803
14804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14806 if (!SWIG_IsOK(res1)) {
14807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14808 }
14809 arg1 = reinterpret_cast< wxFont * >(argp1);
14810 ecode2 = SWIG_AsVal_int(obj1, &val2);
14811 if (!SWIG_IsOK(ecode2)) {
14812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14813 }
14814 arg2 = static_cast< int >(val2);
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 (arg1)->SetFamily(arg2);
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = SWIG_Py_Void();
14822 return resultobj;
14823fail:
14824 return NULL;
14825}
14826
14827
14828SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14829 PyObject *resultobj = 0;
14830 wxFont *arg1 = (wxFont *) 0 ;
14831 int arg2 ;
14832 void *argp1 = 0 ;
14833 int res1 = 0 ;
14834 int val2 ;
14835 int ecode2 = 0 ;
14836 PyObject * obj0 = 0 ;
14837 PyObject * obj1 = 0 ;
14838 char * kwnames[] = {
14839 (char *) "self",(char *) "style", NULL
14840 };
14841
14842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14844 if (!SWIG_IsOK(res1)) {
14845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14846 }
14847 arg1 = reinterpret_cast< wxFont * >(argp1);
14848 ecode2 = SWIG_AsVal_int(obj1, &val2);
14849 if (!SWIG_IsOK(ecode2)) {
14850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14851 }
14852 arg2 = static_cast< int >(val2);
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 (arg1)->SetStyle(arg2);
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_Py_Void();
14860 return resultobj;
14861fail:
14862 return NULL;
14863}
14864
14865
14866SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj = 0;
14868 wxFont *arg1 = (wxFont *) 0 ;
14869 int arg2 ;
14870 void *argp1 = 0 ;
14871 int res1 = 0 ;
14872 int val2 ;
14873 int ecode2 = 0 ;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 char * kwnames[] = {
14877 (char *) "self",(char *) "weight", NULL
14878 };
14879
14880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14882 if (!SWIG_IsOK(res1)) {
14883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14884 }
14885 arg1 = reinterpret_cast< wxFont * >(argp1);
14886 ecode2 = SWIG_AsVal_int(obj1, &val2);
14887 if (!SWIG_IsOK(ecode2)) {
14888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14889 }
14890 arg2 = static_cast< int >(val2);
14891 {
14892 PyThreadState* __tstate = wxPyBeginAllowThreads();
14893 (arg1)->SetWeight(arg2);
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 resultobj = SWIG_Py_Void();
14898 return resultobj;
14899fail:
14900 return NULL;
14901}
14902
14903
14904SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14905 PyObject *resultobj = 0;
14906 wxFont *arg1 = (wxFont *) 0 ;
14907 wxString *arg2 = 0 ;
704eda0c 14908 bool result;
1bd55598
RD
14909 void *argp1 = 0 ;
14910 int res1 = 0 ;
14911 bool temp2 = false ;
14912 PyObject * obj0 = 0 ;
14913 PyObject * obj1 = 0 ;
14914 char * kwnames[] = {
14915 (char *) "self",(char *) "faceName", NULL
14916 };
14917
14918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14920 if (!SWIG_IsOK(res1)) {
14921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14922 }
14923 arg1 = reinterpret_cast< wxFont * >(argp1);
14924 {
14925 arg2 = wxString_in_helper(obj1);
14926 if (arg2 == NULL) SWIG_fail;
14927 temp2 = true;
14928 }
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14931 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
704eda0c
RD
14935 {
14936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14937 }
1bd55598
RD
14938 {
14939 if (temp2)
14940 delete arg2;
14941 }
14942 return resultobj;
14943fail:
14944 {
14945 if (temp2)
14946 delete arg2;
14947 }
14948 return NULL;
14949}
14950
14951
14952SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj = 0;
14954 wxFont *arg1 = (wxFont *) 0 ;
14955 bool arg2 ;
14956 void *argp1 = 0 ;
14957 int res1 = 0 ;
14958 bool val2 ;
14959 int ecode2 = 0 ;
14960 PyObject * obj0 = 0 ;
14961 PyObject * obj1 = 0 ;
14962 char * kwnames[] = {
14963 (char *) "self",(char *) "underlined", NULL
14964 };
14965
14966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14968 if (!SWIG_IsOK(res1)) {
14969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14970 }
14971 arg1 = reinterpret_cast< wxFont * >(argp1);
14972 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14973 if (!SWIG_IsOK(ecode2)) {
14974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14975 }
14976 arg2 = static_cast< bool >(val2);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 (arg1)->SetUnderlined(arg2);
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_Py_Void();
14984 return resultobj;
14985fail:
14986 return NULL;
14987}
14988
14989
14990SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj = 0;
14992 wxFont *arg1 = (wxFont *) 0 ;
14993 wxFontEncoding arg2 ;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 int val2 ;
14997 int ecode2 = 0 ;
14998 PyObject * obj0 = 0 ;
14999 PyObject * obj1 = 0 ;
15000 char * kwnames[] = {
15001 (char *) "self",(char *) "encoding", NULL
15002 };
15003
15004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15006 if (!SWIG_IsOK(res1)) {
15007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15008 }
15009 arg1 = reinterpret_cast< wxFont * >(argp1);
15010 ecode2 = SWIG_AsVal_int(obj1, &val2);
15011 if (!SWIG_IsOK(ecode2)) {
15012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15013 }
15014 arg2 = static_cast< wxFontEncoding >(val2);
15015 {
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 (arg1)->SetEncoding(arg2);
15018 wxPyEndAllowThreads(__tstate);
15019 if (PyErr_Occurred()) SWIG_fail;
15020 }
15021 resultobj = SWIG_Py_Void();
15022 return resultobj;
15023fail:
15024 return NULL;
15025}
15026
15027
15028SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj = 0;
15030 wxFont *arg1 = (wxFont *) 0 ;
15031 wxNativeFontInfo *arg2 = 0 ;
15032 void *argp1 = 0 ;
15033 int res1 = 0 ;
15034 void *argp2 = 0 ;
15035 int res2 = 0 ;
15036 PyObject * obj0 = 0 ;
15037 PyObject * obj1 = 0 ;
15038 char * kwnames[] = {
15039 (char *) "self",(char *) "info", NULL
15040 };
15041
15042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15044 if (!SWIG_IsOK(res1)) {
15045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15046 }
15047 arg1 = reinterpret_cast< wxFont * >(argp1);
15048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15049 if (!SWIG_IsOK(res2)) {
15050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15051 }
15052 if (!argp2) {
15053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15054 }
15055 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15056 {
15057 PyThreadState* __tstate = wxPyBeginAllowThreads();
15058 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 resultobj = SWIG_Py_Void();
15063 return resultobj;
15064fail:
15065 return NULL;
15066}
15067
15068
15069SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15070 PyObject *resultobj = 0;
15071 wxFont *arg1 = (wxFont *) 0 ;
15072 wxString *arg2 = 0 ;
704eda0c 15073 bool result;
1bd55598
RD
15074 void *argp1 = 0 ;
15075 int res1 = 0 ;
15076 bool temp2 = false ;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 char * kwnames[] = {
15080 (char *) "self",(char *) "info", NULL
15081 };
15082
15083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15085 if (!SWIG_IsOK(res1)) {
15086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15087 }
15088 arg1 = reinterpret_cast< wxFont * >(argp1);
15089 {
15090 arg2 = wxString_in_helper(obj1);
15091 if (arg2 == NULL) SWIG_fail;
15092 temp2 = true;
15093 }
15094 {
15095 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15096 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15097 wxPyEndAllowThreads(__tstate);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
704eda0c
RD
15100 {
15101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15102 }
1bd55598
RD
15103 {
15104 if (temp2)
15105 delete arg2;
15106 }
15107 return resultobj;
15108fail:
15109 {
15110 if (temp2)
15111 delete arg2;
15112 }
15113 return NULL;
d55e5bfc
RD
15114}
15115
15116
1bd55598
RD
15117SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15118 PyObject *resultobj = 0;
15119 wxFont *arg1 = (wxFont *) 0 ;
15120 wxString *arg2 = 0 ;
704eda0c 15121 bool result;
1bd55598
RD
15122 void *argp1 = 0 ;
15123 int res1 = 0 ;
15124 bool temp2 = false ;
15125 PyObject * obj0 = 0 ;
15126 PyObject * obj1 = 0 ;
15127 char * kwnames[] = {
15128 (char *) "self",(char *) "info", NULL
15129 };
15130
15131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15133 if (!SWIG_IsOK(res1)) {
15134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15135 }
15136 arg1 = reinterpret_cast< wxFont * >(argp1);
15137 {
15138 arg2 = wxString_in_helper(obj1);
15139 if (arg2 == NULL) SWIG_fail;
15140 temp2 = true;
15141 }
15142 {
15143 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15144 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15145 wxPyEndAllowThreads(__tstate);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
704eda0c
RD
15148 {
15149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15150 }
1bd55598
RD
15151 {
15152 if (temp2)
15153 delete arg2;
15154 }
15155 return resultobj;
15156fail:
15157 {
15158 if (temp2)
15159 delete arg2;
15160 }
15161 return NULL;
d55e5bfc
RD
15162}
15163
15164
1bd55598
RD
15165SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15166 PyObject *resultobj = 0;
15167 wxFont *arg1 = (wxFont *) 0 ;
15168 wxString result;
15169 void *argp1 = 0 ;
15170 int res1 = 0 ;
15171 PyObject *swig_obj[1] ;
15172
15173 if (!args) SWIG_fail;
15174 swig_obj[0] = args;
15175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15176 if (!SWIG_IsOK(res1)) {
15177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15178 }
15179 arg1 = reinterpret_cast< wxFont * >(argp1);
15180 {
15181 PyThreadState* __tstate = wxPyBeginAllowThreads();
15182 result = ((wxFont const *)arg1)->GetFamilyString();
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 {
15187#if wxUSE_UNICODE
15188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15189#else
15190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15191#endif
15192 }
15193 return resultobj;
15194fail:
15195 return NULL;
d55e5bfc
RD
15196}
15197
15198
1bd55598
RD
15199SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15200 PyObject *resultobj = 0;
15201 wxFont *arg1 = (wxFont *) 0 ;
15202 wxString result;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 PyObject *swig_obj[1] ;
15206
15207 if (!args) SWIG_fail;
15208 swig_obj[0] = args;
15209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15210 if (!SWIG_IsOK(res1)) {
15211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15212 }
15213 arg1 = reinterpret_cast< wxFont * >(argp1);
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 result = ((wxFont const *)arg1)->GetStyleString();
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 {
15221#if wxUSE_UNICODE
15222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15223#else
15224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15225#endif
15226 }
15227 return resultobj;
15228fail:
15229 return NULL;
d55e5bfc
RD
15230}
15231
15232
1bd55598
RD
15233SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15234 PyObject *resultobj = 0;
15235 wxFont *arg1 = (wxFont *) 0 ;
15236 wxString result;
15237 void *argp1 = 0 ;
15238 int res1 = 0 ;
15239 PyObject *swig_obj[1] ;
15240
15241 if (!args) SWIG_fail;
15242 swig_obj[0] = args;
15243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15244 if (!SWIG_IsOK(res1)) {
15245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15246 }
15247 arg1 = reinterpret_cast< wxFont * >(argp1);
15248 {
15249 PyThreadState* __tstate = wxPyBeginAllowThreads();
15250 result = ((wxFont const *)arg1)->GetWeightString();
15251 wxPyEndAllowThreads(__tstate);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 {
15255#if wxUSE_UNICODE
15256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15257#else
15258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15259#endif
15260 }
15261 return resultobj;
15262fail:
15263 return NULL;
15264}
15265
15266
15267SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15268 PyObject *resultobj = 0;
15269 wxFont *arg1 = (wxFont *) 0 ;
15270 bool arg2 = (bool) true ;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 bool val2 ;
15274 int ecode2 = 0 ;
15275 PyObject * obj0 = 0 ;
15276 PyObject * obj1 = 0 ;
15277 char * kwnames[] = {
15278 (char *) "self",(char *) "no", NULL
15279 };
15280
15281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15283 if (!SWIG_IsOK(res1)) {
15284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15285 }
15286 arg1 = reinterpret_cast< wxFont * >(argp1);
15287 if (obj1) {
15288 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15289 if (!SWIG_IsOK(ecode2)) {
15290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15291 }
15292 arg2 = static_cast< bool >(val2);
15293 }
15294 {
15295 PyThreadState* __tstate = wxPyBeginAllowThreads();
15296 (arg1)->SetNoAntiAliasing(arg2);
15297 wxPyEndAllowThreads(__tstate);
15298 if (PyErr_Occurred()) SWIG_fail;
15299 }
15300 resultobj = SWIG_Py_Void();
15301 return resultobj;
15302fail:
15303 return NULL;
d55e5bfc
RD
15304}
15305
15306
1bd55598
RD
15307SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15308 PyObject *resultobj = 0;
15309 wxFont *arg1 = (wxFont *) 0 ;
15310 bool result;
15311 void *argp1 = 0 ;
15312 int res1 = 0 ;
15313 PyObject *swig_obj[1] ;
15314
15315 if (!args) SWIG_fail;
15316 swig_obj[0] = args;
15317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15318 if (!SWIG_IsOK(res1)) {
15319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15320 }
15321 arg1 = reinterpret_cast< wxFont * >(argp1);
15322 {
15323 PyThreadState* __tstate = wxPyBeginAllowThreads();
15324 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 {
15329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15330 }
15331 return resultobj;
15332fail:
15333 return NULL;
d55e5bfc
RD
15334}
15335
15336
1bd55598
RD
15337SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15338 PyObject *resultobj = 0;
15339 wxFontEncoding result;
15340
15341 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15342 {
15343 if (!wxPyCheckForApp()) SWIG_fail;
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 resultobj = SWIG_From_int(static_cast< int >(result));
15350 return resultobj;
15351fail:
15352 return NULL;
d55e5bfc
RD
15353}
15354
15355
1bd55598
RD
15356SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15357 PyObject *resultobj = 0;
15358 wxFontEncoding arg1 ;
15359 int val1 ;
15360 int ecode1 = 0 ;
15361 PyObject * obj0 = 0 ;
15362 char * kwnames[] = {
15363 (char *) "encoding", NULL
15364 };
15365
15366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15367 ecode1 = SWIG_AsVal_int(obj0, &val1);
15368 if (!SWIG_IsOK(ecode1)) {
15369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15370 }
15371 arg1 = static_cast< wxFontEncoding >(val1);
15372 {
15373 if (!wxPyCheckForApp()) SWIG_fail;
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 wxFont::SetDefaultEncoding(arg1);
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_Py_Void();
15380 return resultobj;
15381fail:
15382 return NULL;
d55e5bfc
RD
15383}
15384
15385
1bd55598
RD
15386SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15387 PyObject *obj;
15388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15389 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15390 return SWIG_Py_Void();
d55e5bfc 15391}
d55e5bfc 15392
1bd55598
RD
15393SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15394 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15395}
15396
1bd55598
RD
15397SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15398 PyObject *resultobj = 0;
15399 wxPyFontEnumerator *result = 0 ;
15400
15401 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15402 {
15403 if (!wxPyCheckForApp()) SWIG_fail;
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15406 wxPyEndAllowThreads(__tstate);
15407 if (PyErr_Occurred()) SWIG_fail;
15408 }
15409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15410 return resultobj;
15411fail:
15412 return NULL;
d55e5bfc
RD
15413}
15414
15415
1bd55598
RD
15416SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15417 PyObject *resultobj = 0;
15418 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15419 void *argp1 = 0 ;
15420 int res1 = 0 ;
15421 PyObject *swig_obj[1] ;
15422
15423 if (!args) SWIG_fail;
15424 swig_obj[0] = args;
15425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15428 }
15429 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15430 {
15431 PyThreadState* __tstate = wxPyBeginAllowThreads();
15432 delete arg1;
d55e5bfc 15433
1bd55598
RD
15434 wxPyEndAllowThreads(__tstate);
15435 if (PyErr_Occurred()) SWIG_fail;
15436 }
15437 resultobj = SWIG_Py_Void();
15438 return resultobj;
15439fail:
15440 return NULL;
15441}
15442
15443
15444SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15445 PyObject *resultobj = 0;
15446 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15447 PyObject *arg2 = (PyObject *) 0 ;
15448 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15449 int arg4 = (int) 0 ;
1bd55598
RD
15450 void *argp1 = 0 ;
15451 int res1 = 0 ;
c25f90f6 15452 int val4 ;
1bd55598
RD
15453 int ecode4 = 0 ;
15454 PyObject * obj0 = 0 ;
15455 PyObject * obj1 = 0 ;
15456 PyObject * obj2 = 0 ;
15457 PyObject * obj3 = 0 ;
15458 char * kwnames[] = {
15459 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15460 };
15461
c25f90f6 15462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
15463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15464 if (!SWIG_IsOK(res1)) {
15465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15466 }
15467 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15468 arg2 = obj1;
15469 arg3 = obj2;
c25f90f6
RD
15470 if (obj3) {
15471 ecode4 = SWIG_AsVal_int(obj3, &val4);
15472 if (!SWIG_IsOK(ecode4)) {
15473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15474 }
15475 arg4 = static_cast< int >(val4);
15476 }
1bd55598
RD
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15480 wxPyEndAllowThreads(__tstate);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 }
15483 resultobj = SWIG_Py_Void();
15484 return resultobj;
15485fail:
15486 return NULL;
15487}
15488
15489
15490SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15491 PyObject *resultobj = 0;
15492 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15493 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15494 bool arg3 = (bool) false ;
15495 bool result;
15496 void *argp1 = 0 ;
15497 int res1 = 0 ;
15498 int val2 ;
15499 int ecode2 = 0 ;
15500 bool val3 ;
15501 int ecode3 = 0 ;
15502 PyObject * obj0 = 0 ;
15503 PyObject * obj1 = 0 ;
15504 PyObject * obj2 = 0 ;
15505 char * kwnames[] = {
15506 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15507 };
15508
15509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15511 if (!SWIG_IsOK(res1)) {
15512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15513 }
15514 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15515 if (obj1) {
15516 ecode2 = SWIG_AsVal_int(obj1, &val2);
15517 if (!SWIG_IsOK(ecode2)) {
15518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15519 }
15520 arg2 = static_cast< wxFontEncoding >(val2);
15521 }
15522 if (obj2) {
15523 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15524 if (!SWIG_IsOK(ecode3)) {
15525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15526 }
15527 arg3 = static_cast< bool >(val3);
15528 }
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 {
15536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15537 }
15538 return resultobj;
15539fail:
15540 return NULL;
15541}
15542
15543
15544SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15545 PyObject *resultobj = 0;
15546 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15547 wxString const &arg2_defvalue = wxPyEmptyString ;
15548 wxString *arg2 = (wxString *) &arg2_defvalue ;
15549 bool result;
15550 void *argp1 = 0 ;
15551 int res1 = 0 ;
15552 bool temp2 = false ;
15553 PyObject * obj0 = 0 ;
15554 PyObject * obj1 = 0 ;
15555 char * kwnames[] = {
15556 (char *) "self",(char *) "facename", NULL
15557 };
15558
15559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15561 if (!SWIG_IsOK(res1)) {
15562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15563 }
15564 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15565 if (obj1) {
36ed4f51 15566 {
1bd55598
RD
15567 arg2 = wxString_in_helper(obj1);
15568 if (arg2 == NULL) SWIG_fail;
15569 temp2 = true;
36ed4f51 15570 }
1bd55598
RD
15571 }
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15575 wxPyEndAllowThreads(__tstate);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 {
15579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15580 }
15581 {
15582 if (temp2)
15583 delete arg2;
15584 }
15585 return resultobj;
15586fail:
15587 {
15588 if (temp2)
15589 delete arg2;
15590 }
15591 return NULL;
d55e5bfc
RD
15592}
15593
15594
1bd55598
RD
15595SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15596 PyObject *resultobj = 0;
1bd55598 15597 PyObject *result = 0 ;
1bd55598 15598
704eda0c 15599 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15602 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 resultobj = result;
15607 return resultobj;
15608fail:
15609 return NULL;
d55e5bfc
RD
15610}
15611
15612
1bd55598
RD
15613SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15614 PyObject *resultobj = 0;
1bd55598 15615 PyObject *result = 0 ;
1bd55598 15616
704eda0c 15617 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15620 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = result;
15625 return resultobj;
15626fail:
15627 return NULL;
d55e5bfc
RD
15628}
15629
15630
704eda0c
RD
15631SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj = 0;
15633 wxString *arg1 = 0 ;
15634 bool result;
15635 bool temp1 = false ;
15636 PyObject * obj0 = 0 ;
15637 char * kwnames[] = {
15638 (char *) "str", NULL
15639 };
15640
15641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15642 {
15643 arg1 = wxString_in_helper(obj0);
15644 if (arg1 == NULL) SWIG_fail;
15645 temp1 = true;
15646 }
15647 {
15648 PyThreadState* __tstate = wxPyBeginAllowThreads();
15649 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 {
15654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15655 }
15656 {
15657 if (temp1)
15658 delete arg1;
15659 }
15660 return resultobj;
15661fail:
15662 {
15663 if (temp1)
15664 delete arg1;
15665 }
15666 return NULL;
15667}
15668
15669
1bd55598
RD
15670SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15671 PyObject *obj;
15672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15673 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15674 return SWIG_Py_Void();
d55e5bfc
RD
15675}
15676
1bd55598
RD
15677SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15678 return SWIG_Python_InitShadowInstance(args);
15679}
d55e5bfc 15680
1bd55598
RD
15681SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15682 PyObject *resultobj = 0;
15683 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15684 int arg2 ;
15685 void *argp1 = 0 ;
15686 int res1 = 0 ;
15687 int val2 ;
15688 int ecode2 = 0 ;
15689 PyObject *swig_obj[2] ;
15690
15691 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15693 if (!SWIG_IsOK(res1)) {
15694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15695 }
15696 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15697 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15698 if (!SWIG_IsOK(ecode2)) {
15699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15700 }
15701 arg2 = static_cast< int >(val2);
15702 if (arg1) (arg1)->Language = arg2;
15703
15704 resultobj = SWIG_Py_Void();
15705 return resultobj;
15706fail:
15707 return NULL;
d55e5bfc
RD
15708}
15709
15710
1bd55598
RD
15711SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15712 PyObject *resultobj = 0;
15713 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15714 int result;
15715 void *argp1 = 0 ;
15716 int res1 = 0 ;
15717 PyObject *swig_obj[1] ;
15718
15719 if (!args) SWIG_fail;
15720 swig_obj[0] = args;
15721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15722 if (!SWIG_IsOK(res1)) {
15723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15724 }
15725 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15726 result = (int) ((arg1)->Language);
15727 resultobj = SWIG_From_int(static_cast< int >(result));
15728 return resultobj;
15729fail:
15730 return NULL;
15731}
15732
15733
15734SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15735 PyObject *resultobj = 0;
15736 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15737 wxString *arg2 = (wxString *) 0 ;
15738 void *argp1 = 0 ;
15739 int res1 = 0 ;
15740 bool temp2 = false ;
15741 PyObject *swig_obj[2] ;
15742
15743 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15745 if (!SWIG_IsOK(res1)) {
15746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15747 }
15748 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15749 {
15750 arg2 = wxString_in_helper(swig_obj[1]);
15751 if (arg2 == NULL) SWIG_fail;
15752 temp2 = true;
15753 }
15754 if (arg1) (arg1)->CanonicalName = *arg2;
15755
15756 resultobj = SWIG_Py_Void();
15757 {
15758 if (temp2)
15759 delete arg2;
15760 }
15761 return resultobj;
15762fail:
15763 {
15764 if (temp2)
15765 delete arg2;
15766 }
15767 return NULL;
d55e5bfc
RD
15768}
15769
15770
1bd55598
RD
15771SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15772 PyObject *resultobj = 0;
15773 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15774 wxString *result = 0 ;
15775 void *argp1 = 0 ;
15776 int res1 = 0 ;
15777 PyObject *swig_obj[1] ;
15778
15779 if (!args) SWIG_fail;
15780 swig_obj[0] = args;
15781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15782 if (!SWIG_IsOK(res1)) {
15783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15784 }
15785 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15786 result = (wxString *)& ((arg1)->CanonicalName);
15787 {
15788#if wxUSE_UNICODE
15789 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15790#else
15791 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15792#endif
15793 }
15794 return resultobj;
15795fail:
15796 return NULL;
d55e5bfc
RD
15797}
15798
15799
1bd55598
RD
15800SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15801 PyObject *resultobj = 0;
15802 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15803 wxString *arg2 = (wxString *) 0 ;
15804 void *argp1 = 0 ;
15805 int res1 = 0 ;
15806 bool temp2 = false ;
15807 PyObject *swig_obj[2] ;
15808
15809 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15811 if (!SWIG_IsOK(res1)) {
15812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15813 }
15814 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15815 {
15816 arg2 = wxString_in_helper(swig_obj[1]);
15817 if (arg2 == NULL) SWIG_fail;
15818 temp2 = true;
15819 }
15820 if (arg1) (arg1)->Description = *arg2;
15821
15822 resultobj = SWIG_Py_Void();
15823 {
15824 if (temp2)
15825 delete arg2;
15826 }
15827 return resultobj;
15828fail:
15829 {
15830 if (temp2)
15831 delete arg2;
15832 }
15833 return NULL;
d55e5bfc
RD
15834}
15835
15836
1bd55598
RD
15837SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15838 PyObject *resultobj = 0;
15839 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15840 wxString *result = 0 ;
15841 void *argp1 = 0 ;
15842 int res1 = 0 ;
15843 PyObject *swig_obj[1] ;
15844
15845 if (!args) SWIG_fail;
15846 swig_obj[0] = args;
15847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15848 if (!SWIG_IsOK(res1)) {
15849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15850 }
15851 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15852 result = (wxString *)& ((arg1)->Description);
15853 {
15854#if wxUSE_UNICODE
15855 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15856#else
15857 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15858#endif
15859 }
15860 return resultobj;
15861fail:
15862 return NULL;
15863}
15864
15865
15866SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15867 PyObject *obj;
15868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15869 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15870 return SWIG_Py_Void();
15871}
15872
15873SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15874 PyObject *resultobj = 0;
15875 int arg1 = (int) -1 ;
15876 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15877 wxLocale *result = 0 ;
15878 int val1 ;
15879 int ecode1 = 0 ;
15880 int val2 ;
15881 int ecode2 = 0 ;
15882 PyObject * obj0 = 0 ;
15883 PyObject * obj1 = 0 ;
15884 char * kwnames[] = {
15885 (char *) "language",(char *) "flags", NULL
15886 };
15887
15888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15889 if (obj0) {
15890 ecode1 = SWIG_AsVal_int(obj0, &val1);
15891 if (!SWIG_IsOK(ecode1)) {
15892 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15893 }
15894 arg1 = static_cast< int >(val1);
15895 }
15896 if (obj1) {
15897 ecode2 = SWIG_AsVal_int(obj1, &val2);
15898 if (!SWIG_IsOK(ecode2)) {
15899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15900 }
15901 arg2 = static_cast< int >(val2);
15902 }
15903 {
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 result = (wxLocale *)new_wxLocale(arg1,arg2);
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15910 return resultobj;
15911fail:
15912 return NULL;
d55e5bfc
RD
15913}
15914
15915
1bd55598
RD
15916SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15917 PyObject *resultobj = 0;
15918 wxLocale *arg1 = (wxLocale *) 0 ;
15919 void *argp1 = 0 ;
15920 int res1 = 0 ;
15921 PyObject *swig_obj[1] ;
15922
15923 if (!args) SWIG_fail;
15924 swig_obj[0] = args;
15925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15926 if (!SWIG_IsOK(res1)) {
15927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15928 }
15929 arg1 = reinterpret_cast< wxLocale * >(argp1);
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 delete arg1;
d55e5bfc 15933
1bd55598
RD
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = SWIG_Py_Void();
15938 return resultobj;
15939fail:
15940 return NULL;
15941}
15942
15943
15944SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj = 0;
15946 wxLocale *arg1 = (wxLocale *) 0 ;
15947 wxString *arg2 = 0 ;
15948 wxString const &arg3_defvalue = wxPyEmptyString ;
15949 wxString *arg3 = (wxString *) &arg3_defvalue ;
15950 wxString const &arg4_defvalue = wxPyEmptyString ;
15951 wxString *arg4 = (wxString *) &arg4_defvalue ;
15952 bool arg5 = (bool) true ;
15953 bool arg6 = (bool) false ;
15954 bool result;
15955 void *argp1 = 0 ;
15956 int res1 = 0 ;
15957 bool temp2 = false ;
15958 bool temp3 = false ;
15959 bool temp4 = false ;
15960 bool val5 ;
15961 int ecode5 = 0 ;
15962 bool val6 ;
15963 int ecode6 = 0 ;
15964 PyObject * obj0 = 0 ;
15965 PyObject * obj1 = 0 ;
15966 PyObject * obj2 = 0 ;
15967 PyObject * obj3 = 0 ;
15968 PyObject * obj4 = 0 ;
15969 PyObject * obj5 = 0 ;
15970 char * kwnames[] = {
15971 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15972 };
15973
15974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15976 if (!SWIG_IsOK(res1)) {
15977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15978 }
15979 arg1 = reinterpret_cast< wxLocale * >(argp1);
15980 {
15981 arg2 = wxString_in_helper(obj1);
15982 if (arg2 == NULL) SWIG_fail;
15983 temp2 = true;
15984 }
15985 if (obj2) {
d55e5bfc 15986 {
1bd55598
RD
15987 arg3 = wxString_in_helper(obj2);
15988 if (arg3 == NULL) SWIG_fail;
15989 temp3 = true;
d55e5bfc 15990 }
1bd55598
RD
15991 }
15992 if (obj3) {
36ed4f51 15993 {
1bd55598
RD
15994 arg4 = wxString_in_helper(obj3);
15995 if (arg4 == NULL) SWIG_fail;
15996 temp4 = true;
36ed4f51 15997 }
1bd55598
RD
15998 }
15999 if (obj4) {
16000 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16001 if (!SWIG_IsOK(ecode5)) {
16002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16003 }
16004 arg5 = static_cast< bool >(val5);
16005 }
16006 if (obj5) {
16007 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16008 if (!SWIG_IsOK(ecode6)) {
16009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16010 }
16011 arg6 = static_cast< bool >(val6);
16012 }
16013 {
16014 PyThreadState* __tstate = wxPyBeginAllowThreads();
16015 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16016 wxPyEndAllowThreads(__tstate);
16017 if (PyErr_Occurred()) SWIG_fail;
16018 }
16019 {
16020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16021 }
16022 {
16023 if (temp2)
16024 delete arg2;
16025 }
16026 {
16027 if (temp3)
16028 delete arg3;
16029 }
16030 {
16031 if (temp4)
16032 delete arg4;
16033 }
16034 return resultobj;
16035fail:
16036 {
16037 if (temp2)
16038 delete arg2;
16039 }
16040 {
16041 if (temp3)
16042 delete arg3;
16043 }
16044 {
16045 if (temp4)
16046 delete arg4;
16047 }
16048 return NULL;
16049}
16050
16051
16052SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj = 0;
16054 wxLocale *arg1 = (wxLocale *) 0 ;
16055 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16056 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16057 bool result;
16058 void *argp1 = 0 ;
16059 int res1 = 0 ;
16060 int val2 ;
16061 int ecode2 = 0 ;
16062 int val3 ;
16063 int ecode3 = 0 ;
16064 PyObject * obj0 = 0 ;
16065 PyObject * obj1 = 0 ;
16066 PyObject * obj2 = 0 ;
16067 char * kwnames[] = {
16068 (char *) "self",(char *) "language",(char *) "flags", NULL
16069 };
16070
16071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16073 if (!SWIG_IsOK(res1)) {
16074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16075 }
16076 arg1 = reinterpret_cast< wxLocale * >(argp1);
16077 if (obj1) {
16078 ecode2 = SWIG_AsVal_int(obj1, &val2);
16079 if (!SWIG_IsOK(ecode2)) {
16080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16081 }
16082 arg2 = static_cast< int >(val2);
16083 }
16084 if (obj2) {
16085 ecode3 = SWIG_AsVal_int(obj2, &val3);
16086 if (!SWIG_IsOK(ecode3)) {
16087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16088 }
16089 arg3 = static_cast< int >(val3);
16090 }
16091 {
16092 PyThreadState* __tstate = wxPyBeginAllowThreads();
16093 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16094 wxPyEndAllowThreads(__tstate);
16095 if (PyErr_Occurred()) SWIG_fail;
16096 }
16097 {
16098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16099 }
16100 return resultobj;
16101fail:
16102 return NULL;
d55e5bfc
RD
16103}
16104
16105
1bd55598
RD
16106SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16107 PyObject *resultobj = 0;
16108 int result;
16109
16110 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16111 {
16112 PyThreadState* __tstate = wxPyBeginAllowThreads();
16113 result = (int)wxLocale::GetSystemLanguage();
16114 wxPyEndAllowThreads(__tstate);
16115 if (PyErr_Occurred()) SWIG_fail;
16116 }
16117 resultobj = SWIG_From_int(static_cast< int >(result));
16118 return resultobj;
16119fail:
16120 return NULL;
d55e5bfc
RD
16121}
16122
16123
1bd55598
RD
16124SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16125 PyObject *resultobj = 0;
16126 wxFontEncoding result;
16127
16128 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 resultobj = SWIG_From_int(static_cast< int >(result));
16136 return resultobj;
16137fail:
16138 return NULL;
d55e5bfc
RD
16139}
16140
16141
1bd55598
RD
16142SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16143 PyObject *resultobj = 0;
16144 wxString result;
16145
16146 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16147 {
16148 PyThreadState* __tstate = wxPyBeginAllowThreads();
16149 result = wxLocale::GetSystemEncodingName();
16150 wxPyEndAllowThreads(__tstate);
16151 if (PyErr_Occurred()) SWIG_fail;
16152 }
16153 {
16154#if wxUSE_UNICODE
16155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16156#else
16157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16158#endif
16159 }
16160 return resultobj;
16161fail:
16162 return NULL;
d55e5bfc
RD
16163}
16164
16165
1bd55598
RD
16166SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16167 PyObject *resultobj = 0;
16168 wxLocale *arg1 = (wxLocale *) 0 ;
16169 bool result;
16170 void *argp1 = 0 ;
16171 int res1 = 0 ;
16172 PyObject *swig_obj[1] ;
16173
16174 if (!args) SWIG_fail;
16175 swig_obj[0] = args;
16176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16177 if (!SWIG_IsOK(res1)) {
16178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16179 }
16180 arg1 = reinterpret_cast< wxLocale * >(argp1);
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = (bool)((wxLocale const *)arg1)->IsOk();
16184 wxPyEndAllowThreads(__tstate);
16185 if (PyErr_Occurred()) SWIG_fail;
16186 }
16187 {
16188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16189 }
16190 return resultobj;
16191fail:
16192 return NULL;
d55e5bfc
RD
16193}
16194
16195
1bd55598
RD
16196SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16197 PyObject *resultobj = 0;
16198 wxLocale *arg1 = (wxLocale *) 0 ;
16199 wxString result;
16200 void *argp1 = 0 ;
16201 int res1 = 0 ;
16202 PyObject *swig_obj[1] ;
16203
16204 if (!args) SWIG_fail;
16205 swig_obj[0] = args;
16206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16209 }
16210 arg1 = reinterpret_cast< wxLocale * >(argp1);
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = ((wxLocale const *)arg1)->GetLocale();
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 {
16218#if wxUSE_UNICODE
16219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16220#else
16221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16222#endif
16223 }
16224 return resultobj;
16225fail:
16226 return NULL;
d55e5bfc
RD
16227}
16228
16229
1bd55598
RD
16230SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16231 PyObject *resultobj = 0;
16232 wxLocale *arg1 = (wxLocale *) 0 ;
16233 int result;
16234 void *argp1 = 0 ;
16235 int res1 = 0 ;
16236 PyObject *swig_obj[1] ;
16237
16238 if (!args) SWIG_fail;
16239 swig_obj[0] = args;
16240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16241 if (!SWIG_IsOK(res1)) {
16242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16243 }
16244 arg1 = reinterpret_cast< wxLocale * >(argp1);
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 result = (int)((wxLocale const *)arg1)->GetLanguage();
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_From_int(static_cast< int >(result));
16252 return resultobj;
16253fail:
16254 return NULL;
d55e5bfc
RD
16255}
16256
16257
1bd55598
RD
16258SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16259 PyObject *resultobj = 0;
16260 wxLocale *arg1 = (wxLocale *) 0 ;
16261 wxString result;
16262 void *argp1 = 0 ;
16263 int res1 = 0 ;
16264 PyObject *swig_obj[1] ;
16265
16266 if (!args) SWIG_fail;
16267 swig_obj[0] = args;
16268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16269 if (!SWIG_IsOK(res1)) {
16270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16271 }
16272 arg1 = reinterpret_cast< wxLocale * >(argp1);
16273 {
16274 PyThreadState* __tstate = wxPyBeginAllowThreads();
16275 result = ((wxLocale const *)arg1)->GetSysName();
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 {
36ed4f51 16280#if wxUSE_UNICODE
1bd55598 16281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16282#else
1bd55598 16283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16284#endif
1bd55598
RD
16285 }
16286 return resultobj;
16287fail:
16288 return NULL;
d55e5bfc
RD
16289}
16290
16291
1bd55598
RD
16292SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16293 PyObject *resultobj = 0;
16294 wxLocale *arg1 = (wxLocale *) 0 ;
16295 wxString result;
16296 void *argp1 = 0 ;
16297 int res1 = 0 ;
16298 PyObject *swig_obj[1] ;
16299
16300 if (!args) SWIG_fail;
16301 swig_obj[0] = args;
16302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16303 if (!SWIG_IsOK(res1)) {
16304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16305 }
16306 arg1 = reinterpret_cast< wxLocale * >(argp1);
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
16309 result = ((wxLocale const *)arg1)->GetCanonicalName();
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 {
16314#if wxUSE_UNICODE
16315 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16316#else
16317 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16318#endif
16319 }
16320 return resultobj;
16321fail:
16322 return NULL;
d55e5bfc
RD
16323}
16324
16325
1bd55598
RD
16326SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16327 PyObject *resultobj = 0;
16328 wxString *arg1 = 0 ;
16329 bool temp1 = false ;
16330 PyObject * obj0 = 0 ;
16331 char * kwnames[] = {
16332 (char *) "prefix", NULL
16333 };
16334
16335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16336 {
16337 arg1 = wxString_in_helper(obj0);
16338 if (arg1 == NULL) SWIG_fail;
16339 temp1 = true;
16340 }
16341 {
16342 PyThreadState* __tstate = wxPyBeginAllowThreads();
16343 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16344 wxPyEndAllowThreads(__tstate);
16345 if (PyErr_Occurred()) SWIG_fail;
16346 }
16347 resultobj = SWIG_Py_Void();
16348 {
16349 if (temp1)
16350 delete arg1;
16351 }
16352 return resultobj;
16353fail:
16354 {
16355 if (temp1)
16356 delete arg1;
16357 }
16358 return NULL;
16359}
16360
16361
16362SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj = 0;
16364 wxLocale *arg1 = (wxLocale *) 0 ;
16365 wxString *arg2 = 0 ;
16366 bool result;
16367 void *argp1 = 0 ;
16368 int res1 = 0 ;
16369 bool temp2 = false ;
16370 PyObject * obj0 = 0 ;
16371 PyObject * obj1 = 0 ;
16372 char * kwnames[] = {
16373 (char *) "self",(char *) "szDomain", NULL
16374 };
16375
16376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16378 if (!SWIG_IsOK(res1)) {
16379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16380 }
16381 arg1 = reinterpret_cast< wxLocale * >(argp1);
16382 {
16383 arg2 = wxString_in_helper(obj1);
16384 if (arg2 == NULL) SWIG_fail;
16385 temp2 = true;
16386 }
16387 {
16388 PyThreadState* __tstate = wxPyBeginAllowThreads();
16389 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16390 wxPyEndAllowThreads(__tstate);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 {
16394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16395 }
16396 {
16397 if (temp2)
16398 delete arg2;
16399 }
16400 return resultobj;
16401fail:
16402 {
16403 if (temp2)
16404 delete arg2;
16405 }
16406 return NULL;
16407}
16408
16409
33d6fd3b
RD
16410SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16411 PyObject *resultobj = 0;
16412 int arg1 ;
16413 bool result;
16414 int val1 ;
16415 int ecode1 = 0 ;
16416 PyObject * obj0 = 0 ;
16417 char * kwnames[] = {
16418 (char *) "lang", NULL
16419 };
16420
16421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16422 ecode1 = SWIG_AsVal_int(obj0, &val1);
16423 if (!SWIG_IsOK(ecode1)) {
16424 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16425 }
16426 arg1 = static_cast< int >(val1);
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (bool)wxLocale::IsAvailable(arg1);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 {
16434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16435 }
16436 return resultobj;
16437fail:
16438 return NULL;
16439}
16440
16441
1bd55598
RD
16442SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj = 0;
16444 wxLocale *arg1 = (wxLocale *) 0 ;
16445 wxString *arg2 = 0 ;
16446 bool result;
16447 void *argp1 = 0 ;
16448 int res1 = 0 ;
16449 bool temp2 = false ;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 char * kwnames[] = {
16453 (char *) "self",(char *) "szDomain", NULL
16454 };
16455
16456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16458 if (!SWIG_IsOK(res1)) {
16459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16460 }
16461 arg1 = reinterpret_cast< wxLocale * >(argp1);
16462 {
16463 arg2 = wxString_in_helper(obj1);
16464 if (arg2 == NULL) SWIG_fail;
16465 temp2 = true;
16466 }
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 {
16474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16475 }
16476 {
16477 if (temp2)
16478 delete arg2;
16479 }
16480 return resultobj;
16481fail:
16482 {
16483 if (temp2)
16484 delete arg2;
16485 }
16486 return NULL;
d55e5bfc
RD
16487}
16488
16489
1bd55598
RD
16490SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj = 0;
16492 int arg1 ;
16493 wxLanguageInfo *result = 0 ;
16494 int val1 ;
16495 int ecode1 = 0 ;
16496 PyObject * obj0 = 0 ;
16497 char * kwnames[] = {
16498 (char *) "lang", NULL
16499 };
16500
16501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16502 ecode1 = SWIG_AsVal_int(obj0, &val1);
16503 if (!SWIG_IsOK(ecode1)) {
16504 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16505 }
16506 arg1 = static_cast< int >(val1);
16507 {
16508 PyThreadState* __tstate = wxPyBeginAllowThreads();
16509 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16514 return resultobj;
16515fail:
16516 return NULL;
16517}
16518
16519
16520SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj = 0;
16522 int arg1 ;
16523 wxString result;
16524 int val1 ;
16525 int ecode1 = 0 ;
16526 PyObject * obj0 = 0 ;
16527 char * kwnames[] = {
16528 (char *) "lang", NULL
16529 };
16530
16531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16532 ecode1 = SWIG_AsVal_int(obj0, &val1);
16533 if (!SWIG_IsOK(ecode1)) {
16534 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16535 }
16536 arg1 = static_cast< int >(val1);
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
16539 result = wxLocale::GetLanguageName(arg1);
16540 wxPyEndAllowThreads(__tstate);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 {
16544#if wxUSE_UNICODE
16545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16546#else
16547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16548#endif
16549 }
16550 return resultobj;
16551fail:
16552 return NULL;
d55e5bfc
RD
16553}
16554
16555
1bd55598
RD
16556SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16557 PyObject *resultobj = 0;
16558 wxString *arg1 = 0 ;
16559 wxLanguageInfo *result = 0 ;
16560 bool temp1 = false ;
16561 PyObject * obj0 = 0 ;
16562 char * kwnames[] = {
16563 (char *) "locale", NULL
16564 };
16565
16566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16567 {
16568 arg1 = wxString_in_helper(obj0);
16569 if (arg1 == NULL) SWIG_fail;
16570 temp1 = true;
16571 }
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16574 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16579 {
16580 if (temp1)
16581 delete arg1;
16582 }
16583 return resultobj;
16584fail:
16585 {
16586 if (temp1)
16587 delete arg1;
16588 }
16589 return NULL;
16590}
16591
16592
16593SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16594 PyObject *resultobj = 0;
16595 wxLanguageInfo *arg1 = 0 ;
16596 void *argp1 = 0 ;
16597 int res1 = 0 ;
16598 PyObject * obj0 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "info", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16604 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16605 if (!SWIG_IsOK(res1)) {
16606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16607 }
16608 if (!argp1) {
16609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16610 }
16611 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16612 {
16613 PyThreadState* __tstate = wxPyBeginAllowThreads();
16614 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16615 wxPyEndAllowThreads(__tstate);
16616 if (PyErr_Occurred()) SWIG_fail;
16617 }
16618 resultobj = SWIG_Py_Void();
16619 return resultobj;
16620fail:
16621 return NULL;
16622}
16623
16624
16625SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16626 PyObject *resultobj = 0;
16627 wxLocale *arg1 = (wxLocale *) 0 ;
16628 wxString *arg2 = 0 ;
16629 wxString const &arg3_defvalue = wxPyEmptyString ;
16630 wxString *arg3 = (wxString *) &arg3_defvalue ;
16631 wxString result;
16632 void *argp1 = 0 ;
16633 int res1 = 0 ;
16634 bool temp2 = false ;
16635 bool temp3 = false ;
16636 PyObject * obj0 = 0 ;
16637 PyObject * obj1 = 0 ;
16638 PyObject * obj2 = 0 ;
16639 char * kwnames[] = {
16640 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16641 };
16642
16643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16645 if (!SWIG_IsOK(res1)) {
16646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16647 }
16648 arg1 = reinterpret_cast< wxLocale * >(argp1);
16649 {
16650 arg2 = wxString_in_helper(obj1);
16651 if (arg2 == NULL) SWIG_fail;
16652 temp2 = true;
16653 }
16654 if (obj2) {
16655 {
16656 arg3 = wxString_in_helper(obj2);
16657 if (arg3 == NULL) SWIG_fail;
16658 temp3 = true;
16659 }
16660 }
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16664 wxPyEndAllowThreads(__tstate);
16665 if (PyErr_Occurred()) SWIG_fail;
16666 }
16667 {
16668#if wxUSE_UNICODE
16669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16670#else
16671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16672#endif
16673 }
16674 {
16675 if (temp2)
16676 delete arg2;
16677 }
16678 {
16679 if (temp3)
16680 delete arg3;
16681 }
16682 return resultobj;
16683fail:
16684 {
16685 if (temp2)
16686 delete arg2;
16687 }
16688 {
16689 if (temp3)
16690 delete arg3;
16691 }
16692 return NULL;
16693}
16694
16695
16696SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16697 PyObject *resultobj = 0;
16698 wxLocale *arg1 = (wxLocale *) 0 ;
16699 wxString *result = 0 ;
16700 void *argp1 = 0 ;
16701 int res1 = 0 ;
16702 PyObject *swig_obj[1] ;
16703
16704 if (!args) SWIG_fail;
16705 swig_obj[0] = args;
16706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16707 if (!SWIG_IsOK(res1)) {
16708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16709 }
16710 arg1 = reinterpret_cast< wxLocale * >(argp1);
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 {
16714 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16715 result = (wxString *) &_result_ref;
16716 }
16717 wxPyEndAllowThreads(__tstate);
16718 if (PyErr_Occurred()) SWIG_fail;
16719 }
16720 {
16721#if wxUSE_UNICODE
16722 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16723#else
16724 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16725#endif
16726 }
16727 return resultobj;
16728fail:
16729 return NULL;
16730}
16731
16732
16733SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16734 PyObject *obj;
16735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16736 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16737 return SWIG_Py_Void();
16738}
16739
16740SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16741 return SWIG_Python_InitShadowInstance(args);
16742}
16743
16744SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16745 PyObject *resultobj = 0;
16746 int arg1 = (int) -1 ;
16747 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16748 wxPyLocale *result = 0 ;
16749 int val1 ;
16750 int ecode1 = 0 ;
16751 int val2 ;
16752 int ecode2 = 0 ;
16753 PyObject * obj0 = 0 ;
16754 PyObject * obj1 = 0 ;
16755 char * kwnames[] = {
16756 (char *) "language",(char *) "flags", NULL
16757 };
16758
16759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16760 if (obj0) {
16761 ecode1 = SWIG_AsVal_int(obj0, &val1);
16762 if (!SWIG_IsOK(ecode1)) {
16763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16764 }
16765 arg1 = static_cast< int >(val1);
16766 }
16767 if (obj1) {
16768 ecode2 = SWIG_AsVal_int(obj1, &val2);
16769 if (!SWIG_IsOK(ecode2)) {
16770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16771 }
16772 arg2 = static_cast< int >(val2);
16773 }
16774 {
16775 PyThreadState* __tstate = wxPyBeginAllowThreads();
16776 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16781 return resultobj;
16782fail:
16783 return NULL;
16784}
16785
16786
16787SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16788 PyObject *resultobj = 0;
16789 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16790 void *argp1 = 0 ;
16791 int res1 = 0 ;
16792 PyObject *swig_obj[1] ;
16793
16794 if (!args) SWIG_fail;
16795 swig_obj[0] = args;
16796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16797 if (!SWIG_IsOK(res1)) {
16798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16799 }
16800 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 delete arg1;
16804
1bd55598
RD
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
fc46b7f3 16808 resultobj = SWIG_Py_Void();
1bd55598
RD
16809 return resultobj;
16810fail:
1bd55598 16811 return NULL;
d55e5bfc
RD
16812}
16813
16814
fc46b7f3 16815SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16816 PyObject *resultobj = 0;
fc46b7f3
RD
16817 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16818 PyObject *arg2 = (PyObject *) 0 ;
16819 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16820 void *argp1 = 0 ;
16821 int res1 = 0 ;
16822 PyObject * obj0 = 0 ;
fc46b7f3
RD
16823 PyObject * obj1 = 0 ;
16824 PyObject * obj2 = 0 ;
1bd55598 16825 char * kwnames[] = {
fc46b7f3 16826 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16827 };
16828
fc46b7f3
RD
16829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16831 if (!SWIG_IsOK(res1)) {
fc46b7f3 16832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16833 }
fc46b7f3
RD
16834 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16835 arg2 = obj1;
16836 arg3 = obj2;
1bd55598
RD
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16839 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 resultobj = SWIG_Py_Void();
16844 return resultobj;
16845fail:
16846 return NULL;
16847}
16848
16849
fc46b7f3 16850SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16851 PyObject *resultobj = 0;
fc46b7f3
RD
16852 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16853 wxChar *arg2 = (wxChar *) 0 ;
16854 wxChar *arg3 = (wxChar *) NULL ;
16855 wxChar *result = 0 ;
1bd55598
RD
16856 void *argp1 = 0 ;
16857 int res1 = 0 ;
fc46b7f3
RD
16858 void *argp2 = 0 ;
16859 int res2 = 0 ;
16860 void *argp3 = 0 ;
16861 int res3 = 0 ;
1bd55598
RD
16862 PyObject * obj0 = 0 ;
16863 PyObject * obj1 = 0 ;
16864 PyObject * obj2 = 0 ;
16865 char * kwnames[] = {
16866 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16867 };
16868
fc46b7f3
RD
16869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16871 if (!SWIG_IsOK(res1)) {
fc46b7f3 16872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16873 }
fc46b7f3
RD
16874 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16876 if (!SWIG_IsOK(res2)) {
16877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16878 }
fc46b7f3 16879 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16880 if (obj2) {
fc46b7f3
RD
16881 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16882 if (!SWIG_IsOK(res3)) {
16883 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16884 }
fc46b7f3 16885 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16886 }
16887 {
16888 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16889 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16890 wxPyEndAllowThreads(__tstate);
16891 if (PyErr_Occurred()) SWIG_fail;
16892 }
fc46b7f3 16893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16894 return resultobj;
16895fail:
1bd55598 16896 return NULL;
d55e5bfc
RD
16897}
16898
16899
fc46b7f3 16900SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16901 PyObject *resultobj = 0;
fc46b7f3
RD
16902 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16903 wxChar *arg2 = (wxChar *) 0 ;
16904 wxChar *arg3 = (wxChar *) 0 ;
16905 size_t arg4 ;
16906 wxChar *arg5 = (wxChar *) NULL ;
16907 wxChar *result = 0 ;
1bd55598
RD
16908 void *argp1 = 0 ;
16909 int res1 = 0 ;
fc46b7f3
RD
16910 void *argp2 = 0 ;
16911 int res2 = 0 ;
16912 void *argp3 = 0 ;
16913 int res3 = 0 ;
16914 size_t val4 ;
16915 int ecode4 = 0 ;
16916 void *argp5 = 0 ;
16917 int res5 = 0 ;
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
16920 PyObject * obj2 = 0 ;
16921 PyObject * obj3 = 0 ;
16922 PyObject * obj4 = 0 ;
16923 char * kwnames[] = {
16924 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16925 };
1bd55598 16926
fc46b7f3
RD
16927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16929 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16931 }
16932 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16934 if (!SWIG_IsOK(res2)) {
16935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16936 }
16937 arg2 = reinterpret_cast< wxChar * >(argp2);
16938 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16939 if (!SWIG_IsOK(res3)) {
16940 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16941 }
16942 arg3 = reinterpret_cast< wxChar * >(argp3);
16943 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16944 if (!SWIG_IsOK(ecode4)) {
16945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16946 }
16947 arg4 = static_cast< size_t >(val4);
16948 if (obj4) {
16949 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16950 if (!SWIG_IsOK(res5)) {
16951 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16952 }
16953 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16954 }
1bd55598
RD
16955 {
16956 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16957 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16958 wxPyEndAllowThreads(__tstate);
16959 if (PyErr_Occurred()) SWIG_fail;
16960 }
fc46b7f3 16961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16962 return resultobj;
16963fail:
16964 return NULL;
d55e5bfc
RD
16965}
16966
16967
fc46b7f3 16968SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16969 PyObject *obj;
16970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16971 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16972 return SWIG_Py_Void();
d55e5bfc
RD
16973}
16974
fc46b7f3 16975SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16976 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16977}
16978
1bd55598
RD
16979SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16980 PyObject *resultobj = 0;
16981 wxLocale *result = 0 ;
16982
16983 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16984 {
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = (wxLocale *)wxGetLocale();
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16991 return resultobj;
16992fail:
16993 return NULL;
d55e5bfc
RD
16994}
16995
16996
1bd55598
RD
16997SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16998 PyObject *resultobj = 0;
16999 wxString *arg1 = 0 ;
17000 wxString result;
17001 bool temp1 = false ;
17002
17003 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17004 {
17005 arg1 = wxString_in_helper(swig_obj[0]);
17006 if (arg1 == NULL) SWIG_fail;
17007 temp1 = true;
17008 }
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 result = wxGetTranslation((wxString const &)*arg1);
17012 wxPyEndAllowThreads(__tstate);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 {
36ed4f51 17016#if wxUSE_UNICODE
1bd55598 17017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17018#else
1bd55598 17019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17020#endif
1bd55598
RD
17021 }
17022 {
17023 if (temp1)
17024 delete arg1;
17025 }
17026 return resultobj;
17027fail:
17028 {
17029 if (temp1)
17030 delete arg1;
17031 }
17032 return NULL;
5e483524
RD
17033}
17034
17035
1bd55598 17036SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17037 PyObject *resultobj = 0;
17038 wxString *arg1 = 0 ;
17039 wxString *arg2 = 0 ;
17040 wxString result;
17041 bool temp1 = false ;
17042 bool temp2 = false ;
17043
17044 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17045 {
17046 arg1 = wxString_in_helper(swig_obj[0]);
17047 if (arg1 == NULL) SWIG_fail;
17048 temp1 = true;
17049 }
17050 {
17051 arg2 = wxString_in_helper(swig_obj[1]);
17052 if (arg2 == NULL) SWIG_fail;
17053 temp2 = true;
17054 }
17055 {
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17058 wxPyEndAllowThreads(__tstate);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 }
17061 {
17062#if wxUSE_UNICODE
17063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17064#else
17065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17066#endif
17067 }
17068 {
17069 if (temp1)
17070 delete arg1;
17071 }
17072 {
17073 if (temp2)
17074 delete arg2;
17075 }
17076 return resultobj;
17077fail:
17078 {
17079 if (temp1)
17080 delete arg1;
17081 }
17082 {
17083 if (temp2)
17084 delete arg2;
17085 }
17086 return NULL;
17087}
17088
17089
17090SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17091 PyObject *resultobj = 0;
17092 wxString *arg1 = 0 ;
17093 wxString *arg2 = 0 ;
17094 size_t arg3 ;
17095 wxString result;
17096 bool temp1 = false ;
17097 bool temp2 = false ;
17098 size_t val3 ;
17099 int ecode3 = 0 ;
17100
17101 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17102 {
17103 arg1 = wxString_in_helper(swig_obj[0]);
17104 if (arg1 == NULL) SWIG_fail;
17105 temp1 = true;
17106 }
17107 {
17108 arg2 = wxString_in_helper(swig_obj[1]);
17109 if (arg2 == NULL) SWIG_fail;
17110 temp2 = true;
17111 }
17112 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17113 if (!SWIG_IsOK(ecode3)) {
17114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17115 }
17116 arg3 = static_cast< size_t >(val3);
17117 {
17118 PyThreadState* __tstate = wxPyBeginAllowThreads();
17119 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 {
36ed4f51 17124#if wxUSE_UNICODE
1bd55598 17125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17126#else
1bd55598 17127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17128#endif
1bd55598
RD
17129 }
17130 {
17131 if (temp1)
17132 delete arg1;
17133 }
17134 {
17135 if (temp2)
17136 delete arg2;
17137 }
17138 return resultobj;
17139fail:
17140 {
17141 if (temp1)
17142 delete arg1;
17143 }
17144 {
17145 if (temp2)
17146 delete arg2;
17147 }
17148 return NULL;
d55e5bfc
RD
17149}
17150
17151
fc46b7f3
RD
17152SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17153 PyObject *resultobj = 0;
17154 wxString *arg1 = 0 ;
17155 wxString *arg2 = 0 ;
17156 size_t arg3 ;
17157 wxString *arg4 = 0 ;
17158 wxString result;
17159 bool temp1 = false ;
17160 bool temp2 = false ;
17161 size_t val3 ;
17162 int ecode3 = 0 ;
17163 bool temp4 = false ;
17164
17165 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17166 {
17167 arg1 = wxString_in_helper(swig_obj[0]);
17168 if (arg1 == NULL) SWIG_fail;
17169 temp1 = true;
17170 }
17171 {
17172 arg2 = wxString_in_helper(swig_obj[1]);
17173 if (arg2 == NULL) SWIG_fail;
17174 temp2 = true;
17175 }
17176 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17177 if (!SWIG_IsOK(ecode3)) {
17178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17179 }
17180 arg3 = static_cast< size_t >(val3);
17181 {
17182 arg4 = wxString_in_helper(swig_obj[3]);
17183 if (arg4 == NULL) SWIG_fail;
17184 temp4 = true;
17185 }
17186 {
17187 PyThreadState* __tstate = wxPyBeginAllowThreads();
17188 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 {
17193#if wxUSE_UNICODE
17194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17195#else
17196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17197#endif
17198 }
17199 {
17200 if (temp1)
17201 delete arg1;
17202 }
17203 {
17204 if (temp2)
17205 delete arg2;
17206 }
17207 {
17208 if (temp4)
17209 delete arg4;
17210 }
17211 return resultobj;
17212fail:
17213 {
17214 if (temp1)
17215 delete arg1;
17216 }
17217 {
17218 if (temp2)
17219 delete arg2;
17220 }
17221 {
17222 if (temp4)
17223 delete arg4;
17224 }
17225 return NULL;
17226}
17227
17228
1bd55598
RD
17229SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17230 int argc;
fc46b7f3 17231 PyObject *argv[5];
1bd55598 17232
fc46b7f3 17233 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17234 --argc;
17235 if (argc == 1) {
17236 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17237 }
fc46b7f3 17238 if (argc == 2) {
1bd55598
RD
17239 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17240 }
fc46b7f3
RD
17241 if (argc == 3) {
17242 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17243 }
17244 if (argc == 4) {
17245 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17246 }
1bd55598
RD
17247
17248fail:
17249 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17250 return NULL;
d55e5bfc
RD
17251}
17252
17253
1bd55598
RD
17254SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17255 PyObject *resultobj = 0;
17256 wxEncodingConverter *result = 0 ;
17257
17258 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17259 {
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 result = (wxEncodingConverter *)new wxEncodingConverter();
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17266 return resultobj;
17267fail:
17268 return NULL;
d55e5bfc
RD
17269}
17270
17271
1bd55598
RD
17272SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17273 PyObject *resultobj = 0;
17274 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17275 void *argp1 = 0 ;
17276 int res1 = 0 ;
17277 PyObject *swig_obj[1] ;
17278
17279 if (!args) SWIG_fail;
17280 swig_obj[0] = args;
17281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17282 if (!SWIG_IsOK(res1)) {
17283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17284 }
17285 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 delete arg1;
d55e5bfc 17289
1bd55598
RD
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_Py_Void();
17294 return resultobj;
17295fail:
17296 return NULL;
17297}
17298
17299
17300SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj = 0;
17302 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17303 wxFontEncoding arg2 ;
17304 wxFontEncoding arg3 ;
17305 int arg4 = (int) wxCONVERT_STRICT ;
17306 bool result;
17307 void *argp1 = 0 ;
17308 int res1 = 0 ;
17309 int val2 ;
17310 int ecode2 = 0 ;
17311 int val3 ;
17312 int ecode3 = 0 ;
17313 int val4 ;
17314 int ecode4 = 0 ;
17315 PyObject * obj0 = 0 ;
17316 PyObject * obj1 = 0 ;
17317 PyObject * obj2 = 0 ;
17318 PyObject * obj3 = 0 ;
17319 char * kwnames[] = {
17320 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17321 };
17322
17323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17325 if (!SWIG_IsOK(res1)) {
17326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17327 }
17328 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17329 ecode2 = SWIG_AsVal_int(obj1, &val2);
17330 if (!SWIG_IsOK(ecode2)) {
17331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17332 }
17333 arg2 = static_cast< wxFontEncoding >(val2);
17334 ecode3 = SWIG_AsVal_int(obj2, &val3);
17335 if (!SWIG_IsOK(ecode3)) {
17336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17337 }
17338 arg3 = static_cast< wxFontEncoding >(val3);
17339 if (obj3) {
17340 ecode4 = SWIG_AsVal_int(obj3, &val4);
17341 if (!SWIG_IsOK(ecode4)) {
17342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17343 }
17344 arg4 = static_cast< int >(val4);
17345 }
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 {
17353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17354 }
17355 return resultobj;
17356fail:
17357 return NULL;
17358}
17359
17360
17361SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17362 PyObject *resultobj = 0;
17363 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17364 wxString *arg2 = 0 ;
17365 wxString result;
17366 void *argp1 = 0 ;
17367 int res1 = 0 ;
17368 bool temp2 = false ;
17369 PyObject * obj0 = 0 ;
17370 PyObject * obj1 = 0 ;
17371 char * kwnames[] = {
17372 (char *) "self",(char *) "input", NULL
17373 };
17374
17375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17377 if (!SWIG_IsOK(res1)) {
17378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17379 }
17380 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17381 {
17382 arg2 = wxString_in_helper(obj1);
17383 if (arg2 == NULL) SWIG_fail;
17384 temp2 = true;
17385 }
17386 {
17387 PyThreadState* __tstate = wxPyBeginAllowThreads();
17388 result = (arg1)->Convert((wxString const &)*arg2);
17389 wxPyEndAllowThreads(__tstate);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 }
17392 {
d55e5bfc 17393#if wxUSE_UNICODE
1bd55598 17394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17395#else
1bd55598 17396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17397#endif
1bd55598
RD
17398 }
17399 {
17400 if (temp2)
17401 delete arg2;
17402 }
17403 return resultobj;
17404fail:
17405 {
17406 if (temp2)
17407 delete arg2;
17408 }
17409 return NULL;
17410}
17411
17412
17413SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj = 0;
17415 wxFontEncoding arg1 ;
17416 int arg2 = (int) wxPLATFORM_CURRENT ;
17417 wxFontEncodingArray result;
17418 int val1 ;
17419 int ecode1 = 0 ;
17420 int val2 ;
17421 int ecode2 = 0 ;
17422 PyObject * obj0 = 0 ;
17423 PyObject * obj1 = 0 ;
17424 char * kwnames[] = {
17425 (char *) "enc",(char *) "platform", NULL
17426 };
17427
17428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17429 ecode1 = SWIG_AsVal_int(obj0, &val1);
17430 if (!SWIG_IsOK(ecode1)) {
17431 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17432 }
17433 arg1 = static_cast< wxFontEncoding >(val1);
17434 if (obj1) {
17435 ecode2 = SWIG_AsVal_int(obj1, &val2);
17436 if (!SWIG_IsOK(ecode2)) {
17437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17438 }
17439 arg2 = static_cast< int >(val2);
17440 }
17441 {
17442 PyThreadState* __tstate = wxPyBeginAllowThreads();
17443 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 resultobj = PyList_New(0);
17449 for (size_t i=0; i < (&result)->GetCount(); i++) {
17450 PyObject* number = PyInt_FromLong((&result)->Item(i));
17451 PyList_Append(resultobj, number);
17452 Py_DECREF(number);
d55e5bfc 17453 }
1bd55598
RD
17454 }
17455 return resultobj;
17456fail:
17457 return NULL;
d55e5bfc
RD
17458}
17459
17460
1bd55598
RD
17461SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17462 PyObject *resultobj = 0;
17463 wxFontEncoding arg1 ;
17464 wxFontEncodingArray result;
17465 int val1 ;
17466 int ecode1 = 0 ;
17467 PyObject * obj0 = 0 ;
17468 char * kwnames[] = {
17469 (char *) "enc", NULL
17470 };
17471
17472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17473 ecode1 = SWIG_AsVal_int(obj0, &val1);
17474 if (!SWIG_IsOK(ecode1)) {
17475 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17476 }
17477 arg1 = static_cast< wxFontEncoding >(val1);
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 result = wxEncodingConverter::GetAllEquivalents(arg1);
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 {
17485 resultobj = PyList_New(0);
17486 for (size_t i=0; i < (&result)->GetCount(); i++) {
17487 PyObject* number = PyInt_FromLong((&result)->Item(i));
17488 PyList_Append(resultobj, number);
17489 Py_DECREF(number);
d55e5bfc 17490 }
1bd55598
RD
17491 }
17492 return resultobj;
17493fail:
17494 return NULL;
17495}
17496
17497
17498SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17499 PyObject *resultobj = 0;
17500 wxFontEncoding arg1 ;
17501 wxFontEncoding arg2 ;
17502 bool result;
17503 int val1 ;
17504 int ecode1 = 0 ;
17505 int val2 ;
17506 int ecode2 = 0 ;
17507 PyObject * obj0 = 0 ;
17508 PyObject * obj1 = 0 ;
17509 char * kwnames[] = {
17510 (char *) "encIn",(char *) "encOut", NULL
17511 };
17512
17513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17514 ecode1 = SWIG_AsVal_int(obj0, &val1);
17515 if (!SWIG_IsOK(ecode1)) {
17516 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17517 }
17518 arg1 = static_cast< wxFontEncoding >(val1);
17519 ecode2 = SWIG_AsVal_int(obj1, &val2);
17520 if (!SWIG_IsOK(ecode2)) {
17521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17522 }
17523 arg2 = static_cast< wxFontEncoding >(val2);
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 {
17531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17532 }
17533 return resultobj;
17534fail:
17535 return NULL;
d55e5bfc
RD
17536}
17537
17538
1bd55598
RD
17539SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17540 PyObject *obj;
17541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17542 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17543 return SWIG_Py_Void();
d55e5bfc
RD
17544}
17545
1bd55598
RD
17546SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17547 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17548}
17549
1bd55598
RD
17550SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17551 PyObject *resultobj = 0;
17552 wxDC *arg1 = (wxDC *) 0 ;
17553 void *argp1 = 0 ;
17554 int res1 = 0 ;
17555 PyObject *swig_obj[1] ;
17556
17557 if (!args) SWIG_fail;
17558 swig_obj[0] = args;
17559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17560 if (!SWIG_IsOK(res1)) {
17561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17562 }
17563 arg1 = reinterpret_cast< wxDC * >(argp1);
17564 {
17565 PyThreadState* __tstate = wxPyBeginAllowThreads();
17566 delete arg1;
d55e5bfc 17567
1bd55598
RD
17568 wxPyEndAllowThreads(__tstate);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 }
17571 resultobj = SWIG_Py_Void();
17572 return resultobj;
17573fail:
17574 return NULL;
17575}
17576
17577
17578SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17579 PyObject *resultobj = 0;
17580 wxDC *arg1 = (wxDC *) 0 ;
17581 int arg2 ;
17582 int arg3 ;
17583 wxColour *arg4 = 0 ;
17584 int arg5 = (int) wxFLOOD_SURFACE ;
17585 bool result;
17586 void *argp1 = 0 ;
17587 int res1 = 0 ;
17588 int val2 ;
17589 int ecode2 = 0 ;
17590 int val3 ;
17591 int ecode3 = 0 ;
17592 wxColour temp4 ;
17593 int val5 ;
17594 int ecode5 = 0 ;
17595 PyObject * obj0 = 0 ;
17596 PyObject * obj1 = 0 ;
17597 PyObject * obj2 = 0 ;
17598 PyObject * obj3 = 0 ;
17599 PyObject * obj4 = 0 ;
17600 char * kwnames[] = {
17601 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17602 };
17603
17604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17606 if (!SWIG_IsOK(res1)) {
17607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17608 }
17609 arg1 = reinterpret_cast< wxDC * >(argp1);
17610 ecode2 = SWIG_AsVal_int(obj1, &val2);
17611 if (!SWIG_IsOK(ecode2)) {
17612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17613 }
17614 arg2 = static_cast< int >(val2);
17615 ecode3 = SWIG_AsVal_int(obj2, &val3);
17616 if (!SWIG_IsOK(ecode3)) {
17617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17618 }
17619 arg3 = static_cast< int >(val3);
17620 {
17621 arg4 = &temp4;
17622 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17623 }
17624 if (obj4) {
17625 ecode5 = SWIG_AsVal_int(obj4, &val5);
17626 if (!SWIG_IsOK(ecode5)) {
17627 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17628 }
17629 arg5 = static_cast< int >(val5);
17630 }
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
17633 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17634 wxPyEndAllowThreads(__tstate);
17635 if (PyErr_Occurred()) SWIG_fail;
17636 }
17637 {
17638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17639 }
17640 return resultobj;
17641fail:
17642 return NULL;
17643}
17644
17645
17646SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17647 PyObject *resultobj = 0;
17648 wxDC *arg1 = (wxDC *) 0 ;
17649 wxPoint *arg2 = 0 ;
17650 wxColour *arg3 = 0 ;
17651 int arg4 = (int) wxFLOOD_SURFACE ;
17652 bool result;
17653 void *argp1 = 0 ;
17654 int res1 = 0 ;
17655 wxPoint temp2 ;
17656 wxColour temp3 ;
17657 int val4 ;
17658 int ecode4 = 0 ;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 PyObject * obj2 = 0 ;
17662 PyObject * obj3 = 0 ;
17663 char * kwnames[] = {
17664 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17665 };
17666
17667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17669 if (!SWIG_IsOK(res1)) {
17670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17671 }
17672 arg1 = reinterpret_cast< wxDC * >(argp1);
17673 {
17674 arg2 = &temp2;
17675 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17676 }
17677 {
17678 arg3 = &temp3;
17679 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17680 }
17681 if (obj3) {
17682 ecode4 = SWIG_AsVal_int(obj3, &val4);
17683 if (!SWIG_IsOK(ecode4)) {
17684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17685 }
17686 arg4 = static_cast< int >(val4);
17687 }
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 {
17695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17696 }
17697 return resultobj;
17698fail:
17699 return NULL;
17700}
17701
17702
17703SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17704 PyObject *resultobj = 0;
17705 wxDC *arg1 = (wxDC *) 0 ;
17706 wxRect *arg2 = 0 ;
17707 wxColour *arg3 = 0 ;
17708 wxColour *arg4 = 0 ;
17709 wxPoint *arg5 = 0 ;
17710 void *argp1 = 0 ;
17711 int res1 = 0 ;
17712 wxRect temp2 ;
17713 wxColour temp3 ;
17714 wxColour temp4 ;
17715 wxPoint temp5 ;
17716 PyObject * obj0 = 0 ;
17717 PyObject * obj1 = 0 ;
17718 PyObject * obj2 = 0 ;
17719 PyObject * obj3 = 0 ;
17720 PyObject * obj4 = 0 ;
17721 char * kwnames[] = {
17722 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17723 };
17724
17725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17727 if (!SWIG_IsOK(res1)) {
17728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17729 }
17730 arg1 = reinterpret_cast< wxDC * >(argp1);
17731 {
17732 arg2 = &temp2;
17733 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17734 }
17735 {
17736 arg3 = &temp3;
17737 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17738 }
17739 {
17740 arg4 = &temp4;
17741 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17742 }
17743 {
17744 arg5 = &temp5;
17745 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17746 }
17747 {
17748 PyThreadState* __tstate = wxPyBeginAllowThreads();
17749 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17750 wxPyEndAllowThreads(__tstate);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 resultobj = SWIG_Py_Void();
17754 return resultobj;
17755fail:
17756 return NULL;
17757}
17758
17759
17760SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17761 PyObject *resultobj = 0;
17762 wxDC *arg1 = (wxDC *) 0 ;
17763 wxRect *arg2 = 0 ;
17764 wxColour *arg3 = 0 ;
17765 wxColour *arg4 = 0 ;
17766 wxDirection arg5 = (wxDirection) wxEAST ;
17767 void *argp1 = 0 ;
17768 int res1 = 0 ;
17769 wxRect temp2 ;
17770 wxColour temp3 ;
17771 wxColour temp4 ;
17772 int val5 ;
17773 int ecode5 = 0 ;
17774 PyObject * obj0 = 0 ;
17775 PyObject * obj1 = 0 ;
17776 PyObject * obj2 = 0 ;
17777 PyObject * obj3 = 0 ;
17778 PyObject * obj4 = 0 ;
17779 char * kwnames[] = {
17780 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17781 };
17782
17783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17785 if (!SWIG_IsOK(res1)) {
17786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17787 }
17788 arg1 = reinterpret_cast< wxDC * >(argp1);
17789 {
17790 arg2 = &temp2;
17791 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17792 }
17793 {
17794 arg3 = &temp3;
17795 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17796 }
17797 {
17798 arg4 = &temp4;
17799 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17800 }
17801 if (obj4) {
17802 ecode5 = SWIG_AsVal_int(obj4, &val5);
17803 if (!SWIG_IsOK(ecode5)) {
17804 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17805 }
17806 arg5 = static_cast< wxDirection >(val5);
17807 }
17808 {
17809 PyThreadState* __tstate = wxPyBeginAllowThreads();
17810 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 resultobj = SWIG_Py_Void();
17815 return resultobj;
17816fail:
17817 return NULL;
17818}
17819
17820
17821SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17822 PyObject *resultobj = 0;
17823 wxDC *arg1 = (wxDC *) 0 ;
17824 int arg2 ;
17825 int arg3 ;
17826 wxColour result;
17827 void *argp1 = 0 ;
17828 int res1 = 0 ;
17829 int val2 ;
17830 int ecode2 = 0 ;
17831 int val3 ;
17832 int ecode3 = 0 ;
17833 PyObject * obj0 = 0 ;
17834 PyObject * obj1 = 0 ;
17835 PyObject * obj2 = 0 ;
17836 char * kwnames[] = {
17837 (char *) "self",(char *) "x",(char *) "y", NULL
17838 };
17839
17840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17842 if (!SWIG_IsOK(res1)) {
17843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17844 }
17845 arg1 = reinterpret_cast< wxDC * >(argp1);
17846 ecode2 = SWIG_AsVal_int(obj1, &val2);
17847 if (!SWIG_IsOK(ecode2)) {
17848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17849 }
17850 arg2 = static_cast< int >(val2);
17851 ecode3 = SWIG_AsVal_int(obj2, &val3);
17852 if (!SWIG_IsOK(ecode3)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17854 }
17855 arg3 = static_cast< int >(val3);
17856 {
17857 PyThreadState* __tstate = wxPyBeginAllowThreads();
17858 result = wxDC_GetPixel(arg1,arg2,arg3);
17859 wxPyEndAllowThreads(__tstate);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17863 return resultobj;
17864fail:
17865 return NULL;
17866}
17867
17868
17869SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17870 PyObject *resultobj = 0;
17871 wxDC *arg1 = (wxDC *) 0 ;
17872 wxPoint *arg2 = 0 ;
17873 wxColour result;
17874 void *argp1 = 0 ;
17875 int res1 = 0 ;
17876 wxPoint temp2 ;
17877 PyObject * obj0 = 0 ;
17878 PyObject * obj1 = 0 ;
17879 char * kwnames[] = {
17880 (char *) "self",(char *) "pt", NULL
17881 };
17882
17883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17885 if (!SWIG_IsOK(res1)) {
17886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17887 }
17888 arg1 = reinterpret_cast< wxDC * >(argp1);
17889 {
17890 arg2 = &temp2;
17891 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17892 }
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17900 return resultobj;
17901fail:
17902 return NULL;
17903}
17904
17905
17906SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17907 PyObject *resultobj = 0;
17908 wxDC *arg1 = (wxDC *) 0 ;
17909 int arg2 ;
17910 int arg3 ;
17911 int arg4 ;
17912 int arg5 ;
17913 void *argp1 = 0 ;
17914 int res1 = 0 ;
17915 int val2 ;
17916 int ecode2 = 0 ;
17917 int val3 ;
17918 int ecode3 = 0 ;
17919 int val4 ;
17920 int ecode4 = 0 ;
17921 int val5 ;
17922 int ecode5 = 0 ;
17923 PyObject * obj0 = 0 ;
17924 PyObject * obj1 = 0 ;
17925 PyObject * obj2 = 0 ;
17926 PyObject * obj3 = 0 ;
17927 PyObject * obj4 = 0 ;
17928 char * kwnames[] = {
17929 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17930 };
17931
17932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17934 if (!SWIG_IsOK(res1)) {
17935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17936 }
17937 arg1 = reinterpret_cast< wxDC * >(argp1);
17938 ecode2 = SWIG_AsVal_int(obj1, &val2);
17939 if (!SWIG_IsOK(ecode2)) {
17940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17941 }
17942 arg2 = static_cast< int >(val2);
17943 ecode3 = SWIG_AsVal_int(obj2, &val3);
17944 if (!SWIG_IsOK(ecode3)) {
17945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17946 }
17947 arg3 = static_cast< int >(val3);
17948 ecode4 = SWIG_AsVal_int(obj3, &val4);
17949 if (!SWIG_IsOK(ecode4)) {
17950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17951 }
17952 arg4 = static_cast< int >(val4);
17953 ecode5 = SWIG_AsVal_int(obj4, &val5);
17954 if (!SWIG_IsOK(ecode5)) {
17955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17956 }
17957 arg5 = static_cast< int >(val5);
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 resultobj = SWIG_Py_Void();
17965 return resultobj;
17966fail:
17967 return NULL;
17968}
17969
17970
17971SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj = 0;
17973 wxDC *arg1 = (wxDC *) 0 ;
17974 wxPoint *arg2 = 0 ;
17975 wxPoint *arg3 = 0 ;
17976 void *argp1 = 0 ;
17977 int res1 = 0 ;
17978 wxPoint temp2 ;
17979 wxPoint temp3 ;
17980 PyObject * obj0 = 0 ;
17981 PyObject * obj1 = 0 ;
17982 PyObject * obj2 = 0 ;
17983 char * kwnames[] = {
17984 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17985 };
17986
17987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17989 if (!SWIG_IsOK(res1)) {
17990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17991 }
17992 arg1 = reinterpret_cast< wxDC * >(argp1);
17993 {
17994 arg2 = &temp2;
17995 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17996 }
17997 {
17998 arg3 = &temp3;
17999 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18000 }
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 resultobj = SWIG_Py_Void();
18008 return resultobj;
18009fail:
18010 return NULL;
18011}
18012
18013
18014SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18015 PyObject *resultobj = 0;
18016 wxDC *arg1 = (wxDC *) 0 ;
18017 int arg2 ;
18018 int arg3 ;
18019 void *argp1 = 0 ;
18020 int res1 = 0 ;
18021 int val2 ;
18022 int ecode2 = 0 ;
18023 int val3 ;
18024 int ecode3 = 0 ;
18025 PyObject * obj0 = 0 ;
18026 PyObject * obj1 = 0 ;
18027 PyObject * obj2 = 0 ;
18028 char * kwnames[] = {
18029 (char *) "self",(char *) "x",(char *) "y", NULL
18030 };
18031
18032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18034 if (!SWIG_IsOK(res1)) {
18035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18036 }
18037 arg1 = reinterpret_cast< wxDC * >(argp1);
18038 ecode2 = SWIG_AsVal_int(obj1, &val2);
18039 if (!SWIG_IsOK(ecode2)) {
18040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18041 }
18042 arg2 = static_cast< int >(val2);
18043 ecode3 = SWIG_AsVal_int(obj2, &val3);
18044 if (!SWIG_IsOK(ecode3)) {
18045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18046 }
18047 arg3 = static_cast< int >(val3);
18048 {
18049 PyThreadState* __tstate = wxPyBeginAllowThreads();
18050 (arg1)->CrossHair(arg2,arg3);
18051 wxPyEndAllowThreads(__tstate);
18052 if (PyErr_Occurred()) SWIG_fail;
18053 }
18054 resultobj = SWIG_Py_Void();
18055 return resultobj;
18056fail:
18057 return NULL;
18058}
18059
18060
18061SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18062 PyObject *resultobj = 0;
18063 wxDC *arg1 = (wxDC *) 0 ;
18064 wxPoint *arg2 = 0 ;
18065 void *argp1 = 0 ;
18066 int res1 = 0 ;
18067 wxPoint temp2 ;
18068 PyObject * obj0 = 0 ;
18069 PyObject * obj1 = 0 ;
18070 char * kwnames[] = {
18071 (char *) "self",(char *) "pt", NULL
18072 };
18073
18074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18076 if (!SWIG_IsOK(res1)) {
18077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18078 }
18079 arg1 = reinterpret_cast< wxDC * >(argp1);
18080 {
18081 arg2 = &temp2;
18082 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18083 }
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 (arg1)->CrossHair((wxPoint const &)*arg2);
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 resultobj = SWIG_Py_Void();
18091 return resultobj;
18092fail:
18093 return NULL;
18094}
18095
18096
18097SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18098 PyObject *resultobj = 0;
18099 wxDC *arg1 = (wxDC *) 0 ;
18100 int arg2 ;
18101 int arg3 ;
18102 int arg4 ;
18103 int arg5 ;
18104 int arg6 ;
18105 int arg7 ;
18106 void *argp1 = 0 ;
18107 int res1 = 0 ;
18108 int val2 ;
18109 int ecode2 = 0 ;
18110 int val3 ;
18111 int ecode3 = 0 ;
18112 int val4 ;
18113 int ecode4 = 0 ;
18114 int val5 ;
18115 int ecode5 = 0 ;
18116 int val6 ;
18117 int ecode6 = 0 ;
18118 int val7 ;
18119 int ecode7 = 0 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 PyObject * obj3 = 0 ;
18124 PyObject * obj4 = 0 ;
18125 PyObject * obj5 = 0 ;
18126 PyObject * obj6 = 0 ;
18127 char * kwnames[] = {
18128 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18129 };
18130
18131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18133 if (!SWIG_IsOK(res1)) {
18134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18135 }
18136 arg1 = reinterpret_cast< wxDC * >(argp1);
18137 ecode2 = SWIG_AsVal_int(obj1, &val2);
18138 if (!SWIG_IsOK(ecode2)) {
18139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18140 }
18141 arg2 = static_cast< int >(val2);
18142 ecode3 = SWIG_AsVal_int(obj2, &val3);
18143 if (!SWIG_IsOK(ecode3)) {
18144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18145 }
18146 arg3 = static_cast< int >(val3);
18147 ecode4 = SWIG_AsVal_int(obj3, &val4);
18148 if (!SWIG_IsOK(ecode4)) {
18149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18150 }
18151 arg4 = static_cast< int >(val4);
18152 ecode5 = SWIG_AsVal_int(obj4, &val5);
18153 if (!SWIG_IsOK(ecode5)) {
18154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18155 }
18156 arg5 = static_cast< int >(val5);
18157 ecode6 = SWIG_AsVal_int(obj5, &val6);
18158 if (!SWIG_IsOK(ecode6)) {
18159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18160 }
18161 arg6 = static_cast< int >(val6);
18162 ecode7 = SWIG_AsVal_int(obj6, &val7);
18163 if (!SWIG_IsOK(ecode7)) {
18164 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18165 }
18166 arg7 = static_cast< int >(val7);
18167 {
18168 PyThreadState* __tstate = wxPyBeginAllowThreads();
18169 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18170 wxPyEndAllowThreads(__tstate);
18171 if (PyErr_Occurred()) SWIG_fail;
18172 }
18173 resultobj = SWIG_Py_Void();
18174 return resultobj;
18175fail:
18176 return NULL;
18177}
18178
18179
18180SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18181 PyObject *resultobj = 0;
18182 wxDC *arg1 = (wxDC *) 0 ;
18183 wxPoint *arg2 = 0 ;
18184 wxPoint *arg3 = 0 ;
18185 wxPoint *arg4 = 0 ;
18186 void *argp1 = 0 ;
18187 int res1 = 0 ;
18188 wxPoint temp2 ;
18189 wxPoint temp3 ;
18190 wxPoint temp4 ;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 PyObject * obj2 = 0 ;
18194 PyObject * obj3 = 0 ;
18195 char * kwnames[] = {
18196 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18197 };
18198
18199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18201 if (!SWIG_IsOK(res1)) {
18202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18203 }
18204 arg1 = reinterpret_cast< wxDC * >(argp1);
18205 {
18206 arg2 = &temp2;
18207 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18208 }
18209 {
18210 arg3 = &temp3;
18211 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18212 }
18213 {
18214 arg4 = &temp4;
18215 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18216 }
18217 {
18218 PyThreadState* __tstate = wxPyBeginAllowThreads();
18219 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18220 wxPyEndAllowThreads(__tstate);
18221 if (PyErr_Occurred()) SWIG_fail;
18222 }
18223 resultobj = SWIG_Py_Void();
18224 return resultobj;
18225fail:
18226 return NULL;
18227}
18228
18229
18230SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18231 PyObject *resultobj = 0;
18232 wxDC *arg1 = (wxDC *) 0 ;
18233 int arg2 ;
18234 int arg3 ;
18235 int arg4 ;
18236 int arg5 ;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 int val2 ;
18240 int ecode2 = 0 ;
18241 int val3 ;
18242 int ecode3 = 0 ;
18243 int val4 ;
18244 int ecode4 = 0 ;
18245 int val5 ;
18246 int ecode5 = 0 ;
18247 PyObject * obj0 = 0 ;
18248 PyObject * obj1 = 0 ;
18249 PyObject * obj2 = 0 ;
18250 PyObject * obj3 = 0 ;
18251 PyObject * obj4 = 0 ;
18252 char * kwnames[] = {
18253 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18254 };
18255
18256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18258 if (!SWIG_IsOK(res1)) {
18259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18260 }
18261 arg1 = reinterpret_cast< wxDC * >(argp1);
18262 ecode2 = SWIG_AsVal_int(obj1, &val2);
18263 if (!SWIG_IsOK(ecode2)) {
18264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18265 }
18266 arg2 = static_cast< int >(val2);
18267 ecode3 = SWIG_AsVal_int(obj2, &val3);
18268 if (!SWIG_IsOK(ecode3)) {
18269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18270 }
18271 arg3 = static_cast< int >(val3);
18272 ecode4 = SWIG_AsVal_int(obj3, &val4);
18273 if (!SWIG_IsOK(ecode4)) {
18274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18275 }
18276 arg4 = static_cast< int >(val4);
18277 ecode5 = SWIG_AsVal_int(obj4, &val5);
18278 if (!SWIG_IsOK(ecode5)) {
18279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18280 }
18281 arg5 = static_cast< int >(val5);
18282 {
18283 PyThreadState* __tstate = wxPyBeginAllowThreads();
18284 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18285 wxPyEndAllowThreads(__tstate);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 resultobj = SWIG_Py_Void();
18289 return resultobj;
18290fail:
18291 return NULL;
18292}
18293
18294
18295SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18296 PyObject *resultobj = 0;
18297 wxDC *arg1 = (wxDC *) 0 ;
18298 wxRect *arg2 = 0 ;
18299 void *argp1 = 0 ;
18300 int res1 = 0 ;
18301 wxRect temp2 ;
18302 PyObject * obj0 = 0 ;
18303 PyObject * obj1 = 0 ;
18304 char * kwnames[] = {
18305 (char *) "self",(char *) "rect", NULL
18306 };
18307
18308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18310 if (!SWIG_IsOK(res1)) {
18311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18312 }
18313 arg1 = reinterpret_cast< wxDC * >(argp1);
18314 {
18315 arg2 = &temp2;
18316 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18317 }
18318 {
18319 PyThreadState* __tstate = wxPyBeginAllowThreads();
18320 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18321 wxPyEndAllowThreads(__tstate);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 }
18324 resultobj = SWIG_Py_Void();
18325 return resultobj;
18326fail:
18327 return NULL;
18328}
18329
18330
18331SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18332 PyObject *resultobj = 0;
18333 wxDC *arg1 = (wxDC *) 0 ;
18334 int arg2 ;
18335 int arg3 ;
18336 int arg4 ;
18337 int arg5 ;
18338 double arg6 ;
18339 double arg7 ;
18340 void *argp1 = 0 ;
18341 int res1 = 0 ;
18342 int val2 ;
18343 int ecode2 = 0 ;
18344 int val3 ;
18345 int ecode3 = 0 ;
18346 int val4 ;
18347 int ecode4 = 0 ;
18348 int val5 ;
18349 int ecode5 = 0 ;
18350 double val6 ;
18351 int ecode6 = 0 ;
18352 double val7 ;
18353 int ecode7 = 0 ;
18354 PyObject * obj0 = 0 ;
18355 PyObject * obj1 = 0 ;
18356 PyObject * obj2 = 0 ;
18357 PyObject * obj3 = 0 ;
18358 PyObject * obj4 = 0 ;
18359 PyObject * obj5 = 0 ;
18360 PyObject * obj6 = 0 ;
18361 char * kwnames[] = {
18362 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18363 };
18364
18365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18367 if (!SWIG_IsOK(res1)) {
18368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18369 }
18370 arg1 = reinterpret_cast< wxDC * >(argp1);
18371 ecode2 = SWIG_AsVal_int(obj1, &val2);
18372 if (!SWIG_IsOK(ecode2)) {
18373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18374 }
18375 arg2 = static_cast< int >(val2);
18376 ecode3 = SWIG_AsVal_int(obj2, &val3);
18377 if (!SWIG_IsOK(ecode3)) {
18378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18379 }
18380 arg3 = static_cast< int >(val3);
18381 ecode4 = SWIG_AsVal_int(obj3, &val4);
18382 if (!SWIG_IsOK(ecode4)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18384 }
18385 arg4 = static_cast< int >(val4);
18386 ecode5 = SWIG_AsVal_int(obj4, &val5);
18387 if (!SWIG_IsOK(ecode5)) {
18388 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18389 }
18390 arg5 = static_cast< int >(val5);
18391 ecode6 = SWIG_AsVal_double(obj5, &val6);
18392 if (!SWIG_IsOK(ecode6)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18394 }
18395 arg6 = static_cast< double >(val6);
18396 ecode7 = SWIG_AsVal_double(obj6, &val7);
18397 if (!SWIG_IsOK(ecode7)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18399 }
18400 arg7 = static_cast< double >(val7);
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 resultobj = SWIG_Py_Void();
18408 return resultobj;
18409fail:
18410 return NULL;
18411}
18412
18413
18414SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18415 PyObject *resultobj = 0;
18416 wxDC *arg1 = (wxDC *) 0 ;
18417 wxPoint *arg2 = 0 ;
18418 wxSize *arg3 = 0 ;
18419 double arg4 ;
18420 double arg5 ;
18421 void *argp1 = 0 ;
18422 int res1 = 0 ;
18423 wxPoint temp2 ;
18424 wxSize temp3 ;
18425 double val4 ;
18426 int ecode4 = 0 ;
18427 double val5 ;
18428 int ecode5 = 0 ;
18429 PyObject * obj0 = 0 ;
18430 PyObject * obj1 = 0 ;
18431 PyObject * obj2 = 0 ;
18432 PyObject * obj3 = 0 ;
18433 PyObject * obj4 = 0 ;
18434 char * kwnames[] = {
18435 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18436 };
18437
18438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18440 if (!SWIG_IsOK(res1)) {
18441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18442 }
18443 arg1 = reinterpret_cast< wxDC * >(argp1);
18444 {
18445 arg2 = &temp2;
18446 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18447 }
18448 {
18449 arg3 = &temp3;
18450 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18451 }
18452 ecode4 = SWIG_AsVal_double(obj3, &val4);
18453 if (!SWIG_IsOK(ecode4)) {
18454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18455 }
18456 arg4 = static_cast< double >(val4);
18457 ecode5 = SWIG_AsVal_double(obj4, &val5);
18458 if (!SWIG_IsOK(ecode5)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18460 }
18461 arg5 = static_cast< double >(val5);
18462 {
18463 PyThreadState* __tstate = wxPyBeginAllowThreads();
18464 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18465 wxPyEndAllowThreads(__tstate);
18466 if (PyErr_Occurred()) SWIG_fail;
18467 }
18468 resultobj = SWIG_Py_Void();
18469 return resultobj;
18470fail:
18471 return NULL;
18472}
18473
18474
18475SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18476 PyObject *resultobj = 0;
18477 wxDC *arg1 = (wxDC *) 0 ;
18478 int arg2 ;
18479 int arg3 ;
18480 void *argp1 = 0 ;
18481 int res1 = 0 ;
18482 int val2 ;
18483 int ecode2 = 0 ;
18484 int val3 ;
18485 int ecode3 = 0 ;
18486 PyObject * obj0 = 0 ;
18487 PyObject * obj1 = 0 ;
18488 PyObject * obj2 = 0 ;
18489 char * kwnames[] = {
18490 (char *) "self",(char *) "x",(char *) "y", NULL
18491 };
18492
18493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18497 }
18498 arg1 = reinterpret_cast< wxDC * >(argp1);
18499 ecode2 = SWIG_AsVal_int(obj1, &val2);
18500 if (!SWIG_IsOK(ecode2)) {
18501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18502 }
18503 arg2 = static_cast< int >(val2);
18504 ecode3 = SWIG_AsVal_int(obj2, &val3);
18505 if (!SWIG_IsOK(ecode3)) {
18506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18507 }
18508 arg3 = static_cast< int >(val3);
18509 {
18510 PyThreadState* __tstate = wxPyBeginAllowThreads();
18511 (arg1)->DrawPoint(arg2,arg3);
18512 wxPyEndAllowThreads(__tstate);
18513 if (PyErr_Occurred()) SWIG_fail;
18514 }
18515 resultobj = SWIG_Py_Void();
18516 return resultobj;
18517fail:
18518 return NULL;
18519}
18520
18521
18522SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18523 PyObject *resultobj = 0;
18524 wxDC *arg1 = (wxDC *) 0 ;
18525 wxPoint *arg2 = 0 ;
18526 void *argp1 = 0 ;
18527 int res1 = 0 ;
18528 wxPoint temp2 ;
18529 PyObject * obj0 = 0 ;
18530 PyObject * obj1 = 0 ;
18531 char * kwnames[] = {
18532 (char *) "self",(char *) "pt", NULL
18533 };
18534
18535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18537 if (!SWIG_IsOK(res1)) {
18538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18539 }
18540 arg1 = reinterpret_cast< wxDC * >(argp1);
18541 {
18542 arg2 = &temp2;
18543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18544 }
18545 {
18546 PyThreadState* __tstate = wxPyBeginAllowThreads();
18547 (arg1)->DrawPoint((wxPoint const &)*arg2);
18548 wxPyEndAllowThreads(__tstate);
18549 if (PyErr_Occurred()) SWIG_fail;
18550 }
18551 resultobj = SWIG_Py_Void();
18552 return resultobj;
18553fail:
18554 return NULL;
18555}
18556
18557
18558SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18559 PyObject *resultobj = 0;
18560 wxDC *arg1 = (wxDC *) 0 ;
18561 int arg2 ;
18562 int arg3 ;
18563 int arg4 ;
18564 int arg5 ;
18565 void *argp1 = 0 ;
18566 int res1 = 0 ;
18567 int val2 ;
18568 int ecode2 = 0 ;
18569 int val3 ;
18570 int ecode3 = 0 ;
18571 int val4 ;
18572 int ecode4 = 0 ;
18573 int val5 ;
18574 int ecode5 = 0 ;
18575 PyObject * obj0 = 0 ;
18576 PyObject * obj1 = 0 ;
18577 PyObject * obj2 = 0 ;
18578 PyObject * obj3 = 0 ;
18579 PyObject * obj4 = 0 ;
18580 char * kwnames[] = {
18581 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18582 };
18583
18584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18586 if (!SWIG_IsOK(res1)) {
18587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18588 }
18589 arg1 = reinterpret_cast< wxDC * >(argp1);
18590 ecode2 = SWIG_AsVal_int(obj1, &val2);
18591 if (!SWIG_IsOK(ecode2)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18593 }
18594 arg2 = static_cast< int >(val2);
18595 ecode3 = SWIG_AsVal_int(obj2, &val3);
18596 if (!SWIG_IsOK(ecode3)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18598 }
18599 arg3 = static_cast< int >(val3);
18600 ecode4 = SWIG_AsVal_int(obj3, &val4);
18601 if (!SWIG_IsOK(ecode4)) {
18602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18603 }
18604 arg4 = static_cast< int >(val4);
18605 ecode5 = SWIG_AsVal_int(obj4, &val5);
18606 if (!SWIG_IsOK(ecode5)) {
18607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18608 }
18609 arg5 = static_cast< int >(val5);
18610 {
18611 PyThreadState* __tstate = wxPyBeginAllowThreads();
18612 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18613 wxPyEndAllowThreads(__tstate);
18614 if (PyErr_Occurred()) SWIG_fail;
18615 }
18616 resultobj = SWIG_Py_Void();
18617 return resultobj;
18618fail:
18619 return NULL;
18620}
18621
18622
18623SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18624 PyObject *resultobj = 0;
18625 wxDC *arg1 = (wxDC *) 0 ;
18626 wxRect *arg2 = 0 ;
18627 void *argp1 = 0 ;
18628 int res1 = 0 ;
18629 wxRect temp2 ;
18630 PyObject * obj0 = 0 ;
18631 PyObject * obj1 = 0 ;
18632 char * kwnames[] = {
18633 (char *) "self",(char *) "rect", NULL
18634 };
18635
18636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18638 if (!SWIG_IsOK(res1)) {
18639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18640 }
18641 arg1 = reinterpret_cast< wxDC * >(argp1);
18642 {
18643 arg2 = &temp2;
18644 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18645 }
18646 {
18647 PyThreadState* __tstate = wxPyBeginAllowThreads();
18648 (arg1)->DrawRectangle((wxRect const &)*arg2);
18649 wxPyEndAllowThreads(__tstate);
18650 if (PyErr_Occurred()) SWIG_fail;
18651 }
18652 resultobj = SWIG_Py_Void();
18653 return resultobj;
18654fail:
18655 return NULL;
18656}
18657
18658
18659SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18660 PyObject *resultobj = 0;
18661 wxDC *arg1 = (wxDC *) 0 ;
18662 wxPoint *arg2 = 0 ;
18663 wxSize *arg3 = 0 ;
18664 void *argp1 = 0 ;
18665 int res1 = 0 ;
18666 wxPoint temp2 ;
18667 wxSize temp3 ;
18668 PyObject * obj0 = 0 ;
18669 PyObject * obj1 = 0 ;
18670 PyObject * obj2 = 0 ;
18671 char * kwnames[] = {
18672 (char *) "self",(char *) "pt",(char *) "sz", NULL
18673 };
18674
18675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18677 if (!SWIG_IsOK(res1)) {
18678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18679 }
18680 arg1 = reinterpret_cast< wxDC * >(argp1);
18681 {
18682 arg2 = &temp2;
18683 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18684 }
18685 {
18686 arg3 = &temp3;
18687 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18688 }
18689 {
18690 PyThreadState* __tstate = wxPyBeginAllowThreads();
18691 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18692 wxPyEndAllowThreads(__tstate);
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 resultobj = SWIG_Py_Void();
18696 return resultobj;
18697fail:
18698 return NULL;
18699}
18700
18701
18702SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18703 PyObject *resultobj = 0;
18704 wxDC *arg1 = (wxDC *) 0 ;
18705 int arg2 ;
18706 int arg3 ;
18707 int arg4 ;
18708 int arg5 ;
18709 double arg6 ;
18710 void *argp1 = 0 ;
18711 int res1 = 0 ;
18712 int val2 ;
18713 int ecode2 = 0 ;
18714 int val3 ;
18715 int ecode3 = 0 ;
18716 int val4 ;
18717 int ecode4 = 0 ;
18718 int val5 ;
18719 int ecode5 = 0 ;
18720 double val6 ;
18721 int ecode6 = 0 ;
18722 PyObject * obj0 = 0 ;
18723 PyObject * obj1 = 0 ;
18724 PyObject * obj2 = 0 ;
18725 PyObject * obj3 = 0 ;
18726 PyObject * obj4 = 0 ;
18727 PyObject * obj5 = 0 ;
18728 char * kwnames[] = {
18729 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18730 };
18731
18732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18734 if (!SWIG_IsOK(res1)) {
18735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18736 }
18737 arg1 = reinterpret_cast< wxDC * >(argp1);
18738 ecode2 = SWIG_AsVal_int(obj1, &val2);
18739 if (!SWIG_IsOK(ecode2)) {
18740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18741 }
18742 arg2 = static_cast< int >(val2);
18743 ecode3 = SWIG_AsVal_int(obj2, &val3);
18744 if (!SWIG_IsOK(ecode3)) {
18745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18746 }
18747 arg3 = static_cast< int >(val3);
18748 ecode4 = SWIG_AsVal_int(obj3, &val4);
18749 if (!SWIG_IsOK(ecode4)) {
18750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18751 }
18752 arg4 = static_cast< int >(val4);
18753 ecode5 = SWIG_AsVal_int(obj4, &val5);
18754 if (!SWIG_IsOK(ecode5)) {
18755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18756 }
18757 arg5 = static_cast< int >(val5);
18758 ecode6 = SWIG_AsVal_double(obj5, &val6);
18759 if (!SWIG_IsOK(ecode6)) {
18760 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18761 }
18762 arg6 = static_cast< double >(val6);
18763 {
18764 PyThreadState* __tstate = wxPyBeginAllowThreads();
18765 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18766 wxPyEndAllowThreads(__tstate);
18767 if (PyErr_Occurred()) SWIG_fail;
18768 }
18769 resultobj = SWIG_Py_Void();
18770 return resultobj;
18771fail:
18772 return NULL;
18773}
18774
18775
18776SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18777 PyObject *resultobj = 0;
18778 wxDC *arg1 = (wxDC *) 0 ;
18779 wxRect *arg2 = 0 ;
18780 double arg3 ;
18781 void *argp1 = 0 ;
18782 int res1 = 0 ;
18783 wxRect temp2 ;
18784 double val3 ;
18785 int ecode3 = 0 ;
18786 PyObject * obj0 = 0 ;
18787 PyObject * obj1 = 0 ;
18788 PyObject * obj2 = 0 ;
18789 char * kwnames[] = {
18790 (char *) "self",(char *) "r",(char *) "radius", NULL
18791 };
18792
18793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18795 if (!SWIG_IsOK(res1)) {
18796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18797 }
18798 arg1 = reinterpret_cast< wxDC * >(argp1);
18799 {
18800 arg2 = &temp2;
18801 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18802 }
18803 ecode3 = SWIG_AsVal_double(obj2, &val3);
18804 if (!SWIG_IsOK(ecode3)) {
18805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18806 }
18807 arg3 = static_cast< double >(val3);
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 resultobj = SWIG_Py_Void();
18815 return resultobj;
18816fail:
18817 return NULL;
18818}
18819
18820
18821SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18822 PyObject *resultobj = 0;
18823 wxDC *arg1 = (wxDC *) 0 ;
18824 wxPoint *arg2 = 0 ;
18825 wxSize *arg3 = 0 ;
18826 double arg4 ;
18827 void *argp1 = 0 ;
18828 int res1 = 0 ;
18829 wxPoint temp2 ;
18830 wxSize temp3 ;
18831 double val4 ;
18832 int ecode4 = 0 ;
18833 PyObject * obj0 = 0 ;
18834 PyObject * obj1 = 0 ;
18835 PyObject * obj2 = 0 ;
18836 PyObject * obj3 = 0 ;
18837 char * kwnames[] = {
18838 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18839 };
18840
18841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18843 if (!SWIG_IsOK(res1)) {
18844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18845 }
18846 arg1 = reinterpret_cast< wxDC * >(argp1);
18847 {
18848 arg2 = &temp2;
18849 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18850 }
18851 {
18852 arg3 = &temp3;
18853 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18854 }
18855 ecode4 = SWIG_AsVal_double(obj3, &val4);
18856 if (!SWIG_IsOK(ecode4)) {
18857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18858 }
18859 arg4 = static_cast< double >(val4);
18860 {
18861 PyThreadState* __tstate = wxPyBeginAllowThreads();
18862 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18863 wxPyEndAllowThreads(__tstate);
18864 if (PyErr_Occurred()) SWIG_fail;
18865 }
18866 resultobj = SWIG_Py_Void();
18867 return resultobj;
18868fail:
18869 return NULL;
18870}
18871
18872
18873SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18874 PyObject *resultobj = 0;
18875 wxDC *arg1 = (wxDC *) 0 ;
18876 int arg2 ;
18877 int arg3 ;
18878 int arg4 ;
18879 void *argp1 = 0 ;
18880 int res1 = 0 ;
18881 int val2 ;
18882 int ecode2 = 0 ;
18883 int val3 ;
18884 int ecode3 = 0 ;
18885 int val4 ;
18886 int ecode4 = 0 ;
18887 PyObject * obj0 = 0 ;
18888 PyObject * obj1 = 0 ;
18889 PyObject * obj2 = 0 ;
18890 PyObject * obj3 = 0 ;
18891 char * kwnames[] = {
18892 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18893 };
18894
18895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18897 if (!SWIG_IsOK(res1)) {
18898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18899 }
18900 arg1 = reinterpret_cast< wxDC * >(argp1);
18901 ecode2 = SWIG_AsVal_int(obj1, &val2);
18902 if (!SWIG_IsOK(ecode2)) {
18903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18904 }
18905 arg2 = static_cast< int >(val2);
18906 ecode3 = SWIG_AsVal_int(obj2, &val3);
18907 if (!SWIG_IsOK(ecode3)) {
18908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18909 }
18910 arg3 = static_cast< int >(val3);
18911 ecode4 = SWIG_AsVal_int(obj3, &val4);
18912 if (!SWIG_IsOK(ecode4)) {
18913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18914 }
18915 arg4 = static_cast< int >(val4);
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 (arg1)->DrawCircle(arg2,arg3,arg4);
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 resultobj = SWIG_Py_Void();
18923 return resultobj;
18924fail:
18925 return NULL;
18926}
18927
18928
18929SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj = 0;
18931 wxDC *arg1 = (wxDC *) 0 ;
18932 wxPoint *arg2 = 0 ;
18933 int arg3 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 wxPoint temp2 ;
18937 int val3 ;
18938 int ecode3 = 0 ;
18939 PyObject * obj0 = 0 ;
18940 PyObject * obj1 = 0 ;
18941 PyObject * obj2 = 0 ;
18942 char * kwnames[] = {
18943 (char *) "self",(char *) "pt",(char *) "radius", NULL
18944 };
18945
18946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18948 if (!SWIG_IsOK(res1)) {
18949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18950 }
18951 arg1 = reinterpret_cast< wxDC * >(argp1);
18952 {
18953 arg2 = &temp2;
18954 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18955 }
18956 ecode3 = SWIG_AsVal_int(obj2, &val3);
18957 if (!SWIG_IsOK(ecode3)) {
18958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18959 }
18960 arg3 = static_cast< int >(val3);
18961 {
18962 PyThreadState* __tstate = wxPyBeginAllowThreads();
18963 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18964 wxPyEndAllowThreads(__tstate);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 }
18967 resultobj = SWIG_Py_Void();
18968 return resultobj;
18969fail:
18970 return NULL;
18971}
18972
18973
18974SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18975 PyObject *resultobj = 0;
18976 wxDC *arg1 = (wxDC *) 0 ;
18977 int arg2 ;
18978 int arg3 ;
18979 int arg4 ;
18980 int arg5 ;
18981 void *argp1 = 0 ;
18982 int res1 = 0 ;
18983 int val2 ;
18984 int ecode2 = 0 ;
18985 int val3 ;
18986 int ecode3 = 0 ;
18987 int val4 ;
18988 int ecode4 = 0 ;
18989 int val5 ;
18990 int ecode5 = 0 ;
18991 PyObject * obj0 = 0 ;
18992 PyObject * obj1 = 0 ;
18993 PyObject * obj2 = 0 ;
18994 PyObject * obj3 = 0 ;
18995 PyObject * obj4 = 0 ;
18996 char * kwnames[] = {
18997 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18998 };
18999
19000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19004 }
19005 arg1 = reinterpret_cast< wxDC * >(argp1);
19006 ecode2 = SWIG_AsVal_int(obj1, &val2);
19007 if (!SWIG_IsOK(ecode2)) {
19008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19009 }
19010 arg2 = static_cast< int >(val2);
19011 ecode3 = SWIG_AsVal_int(obj2, &val3);
19012 if (!SWIG_IsOK(ecode3)) {
19013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19014 }
19015 arg3 = static_cast< int >(val3);
19016 ecode4 = SWIG_AsVal_int(obj3, &val4);
19017 if (!SWIG_IsOK(ecode4)) {
19018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19019 }
19020 arg4 = static_cast< int >(val4);
19021 ecode5 = SWIG_AsVal_int(obj4, &val5);
19022 if (!SWIG_IsOK(ecode5)) {
19023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19024 }
19025 arg5 = static_cast< int >(val5);
19026 {
19027 PyThreadState* __tstate = wxPyBeginAllowThreads();
19028 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19029 wxPyEndAllowThreads(__tstate);
19030 if (PyErr_Occurred()) SWIG_fail;
19031 }
19032 resultobj = SWIG_Py_Void();
19033 return resultobj;
19034fail:
19035 return NULL;
19036}
19037
19038
19039SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19040 PyObject *resultobj = 0;
19041 wxDC *arg1 = (wxDC *) 0 ;
19042 wxRect *arg2 = 0 ;
19043 void *argp1 = 0 ;
19044 int res1 = 0 ;
19045 wxRect temp2 ;
19046 PyObject * obj0 = 0 ;
19047 PyObject * obj1 = 0 ;
19048 char * kwnames[] = {
19049 (char *) "self",(char *) "rect", NULL
19050 };
19051
19052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19054 if (!SWIG_IsOK(res1)) {
19055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19056 }
19057 arg1 = reinterpret_cast< wxDC * >(argp1);
19058 {
19059 arg2 = &temp2;
19060 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19061 }
19062 {
19063 PyThreadState* __tstate = wxPyBeginAllowThreads();
19064 (arg1)->DrawEllipse((wxRect const &)*arg2);
19065 wxPyEndAllowThreads(__tstate);
19066 if (PyErr_Occurred()) SWIG_fail;
19067 }
19068 resultobj = SWIG_Py_Void();
19069 return resultobj;
19070fail:
19071 return NULL;
19072}
19073
19074
19075SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19076 PyObject *resultobj = 0;
19077 wxDC *arg1 = (wxDC *) 0 ;
19078 wxPoint *arg2 = 0 ;
19079 wxSize *arg3 = 0 ;
19080 void *argp1 = 0 ;
19081 int res1 = 0 ;
19082 wxPoint temp2 ;
19083 wxSize temp3 ;
19084 PyObject * obj0 = 0 ;
19085 PyObject * obj1 = 0 ;
19086 PyObject * obj2 = 0 ;
19087 char * kwnames[] = {
19088 (char *) "self",(char *) "pt",(char *) "sz", NULL
19089 };
19090
19091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19093 if (!SWIG_IsOK(res1)) {
19094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19095 }
19096 arg1 = reinterpret_cast< wxDC * >(argp1);
19097 {
19098 arg2 = &temp2;
19099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19100 }
19101 {
19102 arg3 = &temp3;
19103 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19104 }
19105 {
19106 PyThreadState* __tstate = wxPyBeginAllowThreads();
19107 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19108 wxPyEndAllowThreads(__tstate);
19109 if (PyErr_Occurred()) SWIG_fail;
19110 }
19111 resultobj = SWIG_Py_Void();
19112 return resultobj;
19113fail:
19114 return NULL;
19115}
19116
19117
19118SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19119 PyObject *resultobj = 0;
19120 wxDC *arg1 = (wxDC *) 0 ;
19121 wxIcon *arg2 = 0 ;
19122 int arg3 ;
19123 int arg4 ;
19124 void *argp1 = 0 ;
19125 int res1 = 0 ;
19126 void *argp2 = 0 ;
19127 int res2 = 0 ;
19128 int val3 ;
19129 int ecode3 = 0 ;
19130 int val4 ;
19131 int ecode4 = 0 ;
19132 PyObject * obj0 = 0 ;
19133 PyObject * obj1 = 0 ;
19134 PyObject * obj2 = 0 ;
19135 PyObject * obj3 = 0 ;
19136 char * kwnames[] = {
19137 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19138 };
19139
19140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19142 if (!SWIG_IsOK(res1)) {
19143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19144 }
19145 arg1 = reinterpret_cast< wxDC * >(argp1);
19146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19147 if (!SWIG_IsOK(res2)) {
19148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19149 }
19150 if (!argp2) {
19151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19152 }
19153 arg2 = reinterpret_cast< wxIcon * >(argp2);
19154 ecode3 = SWIG_AsVal_int(obj2, &val3);
19155 if (!SWIG_IsOK(ecode3)) {
19156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19157 }
19158 arg3 = static_cast< int >(val3);
19159 ecode4 = SWIG_AsVal_int(obj3, &val4);
19160 if (!SWIG_IsOK(ecode4)) {
19161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19162 }
19163 arg4 = static_cast< int >(val4);
19164 {
19165 PyThreadState* __tstate = wxPyBeginAllowThreads();
19166 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19167 wxPyEndAllowThreads(__tstate);
19168 if (PyErr_Occurred()) SWIG_fail;
19169 }
19170 resultobj = SWIG_Py_Void();
19171 return resultobj;
19172fail:
19173 return NULL;
19174}
19175
19176
19177SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19178 PyObject *resultobj = 0;
19179 wxDC *arg1 = (wxDC *) 0 ;
19180 wxIcon *arg2 = 0 ;
19181 wxPoint *arg3 = 0 ;
19182 void *argp1 = 0 ;
19183 int res1 = 0 ;
19184 void *argp2 = 0 ;
19185 int res2 = 0 ;
19186 wxPoint temp3 ;
19187 PyObject * obj0 = 0 ;
19188 PyObject * obj1 = 0 ;
19189 PyObject * obj2 = 0 ;
19190 char * kwnames[] = {
19191 (char *) "self",(char *) "icon",(char *) "pt", NULL
19192 };
19193
19194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19196 if (!SWIG_IsOK(res1)) {
19197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19198 }
19199 arg1 = reinterpret_cast< wxDC * >(argp1);
19200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19201 if (!SWIG_IsOK(res2)) {
19202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19203 }
19204 if (!argp2) {
19205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19206 }
19207 arg2 = reinterpret_cast< wxIcon * >(argp2);
19208 {
19209 arg3 = &temp3;
19210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19211 }
19212 {
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19215 wxPyEndAllowThreads(__tstate);
19216 if (PyErr_Occurred()) SWIG_fail;
19217 }
19218 resultobj = SWIG_Py_Void();
19219 return resultobj;
19220fail:
19221 return NULL;
19222}
19223
19224
19225SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19226 PyObject *resultobj = 0;
19227 wxDC *arg1 = (wxDC *) 0 ;
19228 wxBitmap *arg2 = 0 ;
19229 int arg3 ;
19230 int arg4 ;
19231 bool arg5 = (bool) false ;
19232 void *argp1 = 0 ;
19233 int res1 = 0 ;
19234 void *argp2 = 0 ;
19235 int res2 = 0 ;
19236 int val3 ;
19237 int ecode3 = 0 ;
19238 int val4 ;
19239 int ecode4 = 0 ;
19240 bool val5 ;
19241 int ecode5 = 0 ;
19242 PyObject * obj0 = 0 ;
19243 PyObject * obj1 = 0 ;
19244 PyObject * obj2 = 0 ;
19245 PyObject * obj3 = 0 ;
19246 PyObject * obj4 = 0 ;
19247 char * kwnames[] = {
19248 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19249 };
19250
19251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19253 if (!SWIG_IsOK(res1)) {
19254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19255 }
19256 arg1 = reinterpret_cast< wxDC * >(argp1);
19257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19258 if (!SWIG_IsOK(res2)) {
19259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19260 }
19261 if (!argp2) {
19262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19263 }
19264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19265 ecode3 = SWIG_AsVal_int(obj2, &val3);
19266 if (!SWIG_IsOK(ecode3)) {
19267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19268 }
19269 arg3 = static_cast< int >(val3);
19270 ecode4 = SWIG_AsVal_int(obj3, &val4);
19271 if (!SWIG_IsOK(ecode4)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19273 }
19274 arg4 = static_cast< int >(val4);
19275 if (obj4) {
19276 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19277 if (!SWIG_IsOK(ecode5)) {
19278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19279 }
19280 arg5 = static_cast< bool >(val5);
19281 }
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19285 wxPyEndAllowThreads(__tstate);
19286 if (PyErr_Occurred()) SWIG_fail;
19287 }
19288 resultobj = SWIG_Py_Void();
19289 return resultobj;
19290fail:
19291 return NULL;
19292}
19293
19294
19295SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19296 PyObject *resultobj = 0;
19297 wxDC *arg1 = (wxDC *) 0 ;
19298 wxBitmap *arg2 = 0 ;
19299 wxPoint *arg3 = 0 ;
19300 bool arg4 = (bool) false ;
19301 void *argp1 = 0 ;
19302 int res1 = 0 ;
19303 void *argp2 = 0 ;
19304 int res2 = 0 ;
19305 wxPoint temp3 ;
19306 bool val4 ;
19307 int ecode4 = 0 ;
19308 PyObject * obj0 = 0 ;
19309 PyObject * obj1 = 0 ;
19310 PyObject * obj2 = 0 ;
19311 PyObject * obj3 = 0 ;
19312 char * kwnames[] = {
19313 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19314 };
19315
19316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19318 if (!SWIG_IsOK(res1)) {
19319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19320 }
19321 arg1 = reinterpret_cast< wxDC * >(argp1);
19322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19323 if (!SWIG_IsOK(res2)) {
19324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19325 }
19326 if (!argp2) {
19327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19328 }
19329 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19330 {
19331 arg3 = &temp3;
19332 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19333 }
19334 if (obj3) {
19335 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19336 if (!SWIG_IsOK(ecode4)) {
19337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19338 }
19339 arg4 = static_cast< bool >(val4);
19340 }
19341 {
19342 PyThreadState* __tstate = wxPyBeginAllowThreads();
19343 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19344 wxPyEndAllowThreads(__tstate);
19345 if (PyErr_Occurred()) SWIG_fail;
19346 }
19347 resultobj = SWIG_Py_Void();
19348 return resultobj;
19349fail:
19350 return NULL;
19351}
19352
19353
19354SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19355 PyObject *resultobj = 0;
19356 wxDC *arg1 = (wxDC *) 0 ;
19357 wxString *arg2 = 0 ;
19358 int arg3 ;
19359 int arg4 ;
19360 void *argp1 = 0 ;
19361 int res1 = 0 ;
19362 bool temp2 = false ;
19363 int val3 ;
19364 int ecode3 = 0 ;
19365 int val4 ;
19366 int ecode4 = 0 ;
19367 PyObject * obj0 = 0 ;
19368 PyObject * obj1 = 0 ;
19369 PyObject * obj2 = 0 ;
19370 PyObject * obj3 = 0 ;
19371 char * kwnames[] = {
19372 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19373 };
19374
19375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19377 if (!SWIG_IsOK(res1)) {
19378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19379 }
19380 arg1 = reinterpret_cast< wxDC * >(argp1);
19381 {
19382 arg2 = wxString_in_helper(obj1);
19383 if (arg2 == NULL) SWIG_fail;
19384 temp2 = true;
19385 }
19386 ecode3 = SWIG_AsVal_int(obj2, &val3);
19387 if (!SWIG_IsOK(ecode3)) {
19388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19389 }
19390 arg3 = static_cast< int >(val3);
19391 ecode4 = SWIG_AsVal_int(obj3, &val4);
19392 if (!SWIG_IsOK(ecode4)) {
19393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19394 }
19395 arg4 = static_cast< int >(val4);
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 resultobj = SWIG_Py_Void();
19403 {
19404 if (temp2)
19405 delete arg2;
19406 }
19407 return resultobj;
19408fail:
19409 {
19410 if (temp2)
19411 delete arg2;
19412 }
19413 return NULL;
19414}
19415
19416
19417SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19418 PyObject *resultobj = 0;
19419 wxDC *arg1 = (wxDC *) 0 ;
19420 wxString *arg2 = 0 ;
19421 wxPoint *arg3 = 0 ;
19422 void *argp1 = 0 ;
19423 int res1 = 0 ;
19424 bool temp2 = false ;
19425 wxPoint temp3 ;
19426 PyObject * obj0 = 0 ;
19427 PyObject * obj1 = 0 ;
19428 PyObject * obj2 = 0 ;
19429 char * kwnames[] = {
19430 (char *) "self",(char *) "text",(char *) "pt", NULL
19431 };
19432
19433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19435 if (!SWIG_IsOK(res1)) {
19436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19437 }
19438 arg1 = reinterpret_cast< wxDC * >(argp1);
19439 {
19440 arg2 = wxString_in_helper(obj1);
19441 if (arg2 == NULL) SWIG_fail;
19442 temp2 = true;
19443 }
19444 {
19445 arg3 = &temp3;
19446 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19447 }
19448 {
19449 PyThreadState* __tstate = wxPyBeginAllowThreads();
19450 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19451 wxPyEndAllowThreads(__tstate);
19452 if (PyErr_Occurred()) SWIG_fail;
19453 }
19454 resultobj = SWIG_Py_Void();
19455 {
19456 if (temp2)
19457 delete arg2;
19458 }
19459 return resultobj;
19460fail:
19461 {
19462 if (temp2)
19463 delete arg2;
19464 }
19465 return NULL;
19466}
19467
19468
19469SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19470 PyObject *resultobj = 0;
19471 wxDC *arg1 = (wxDC *) 0 ;
19472 wxString *arg2 = 0 ;
19473 int arg3 ;
19474 int arg4 ;
19475 double arg5 ;
19476 void *argp1 = 0 ;
19477 int res1 = 0 ;
19478 bool temp2 = false ;
19479 int val3 ;
19480 int ecode3 = 0 ;
19481 int val4 ;
19482 int ecode4 = 0 ;
19483 double val5 ;
19484 int ecode5 = 0 ;
19485 PyObject * obj0 = 0 ;
19486 PyObject * obj1 = 0 ;
19487 PyObject * obj2 = 0 ;
19488 PyObject * obj3 = 0 ;
19489 PyObject * obj4 = 0 ;
19490 char * kwnames[] = {
19491 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19492 };
19493
19494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19496 if (!SWIG_IsOK(res1)) {
19497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19498 }
19499 arg1 = reinterpret_cast< wxDC * >(argp1);
19500 {
19501 arg2 = wxString_in_helper(obj1);
19502 if (arg2 == NULL) SWIG_fail;
19503 temp2 = true;
19504 }
19505 ecode3 = SWIG_AsVal_int(obj2, &val3);
19506 if (!SWIG_IsOK(ecode3)) {
19507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19508 }
19509 arg3 = static_cast< int >(val3);
19510 ecode4 = SWIG_AsVal_int(obj3, &val4);
19511 if (!SWIG_IsOK(ecode4)) {
19512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19513 }
19514 arg4 = static_cast< int >(val4);
19515 ecode5 = SWIG_AsVal_double(obj4, &val5);
19516 if (!SWIG_IsOK(ecode5)) {
19517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19518 }
19519 arg5 = static_cast< double >(val5);
19520 {
19521 PyThreadState* __tstate = wxPyBeginAllowThreads();
19522 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19523 wxPyEndAllowThreads(__tstate);
19524 if (PyErr_Occurred()) SWIG_fail;
19525 }
19526 resultobj = SWIG_Py_Void();
19527 {
19528 if (temp2)
19529 delete arg2;
19530 }
19531 return resultobj;
19532fail:
19533 {
19534 if (temp2)
19535 delete arg2;
19536 }
19537 return NULL;
19538}
19539
19540
19541SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj = 0;
19543 wxDC *arg1 = (wxDC *) 0 ;
19544 wxString *arg2 = 0 ;
19545 wxPoint *arg3 = 0 ;
19546 double arg4 ;
19547 void *argp1 = 0 ;
19548 int res1 = 0 ;
19549 bool temp2 = false ;
19550 wxPoint temp3 ;
19551 double val4 ;
19552 int ecode4 = 0 ;
19553 PyObject * obj0 = 0 ;
19554 PyObject * obj1 = 0 ;
19555 PyObject * obj2 = 0 ;
19556 PyObject * obj3 = 0 ;
19557 char * kwnames[] = {
19558 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19559 };
19560
19561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19563 if (!SWIG_IsOK(res1)) {
19564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19565 }
19566 arg1 = reinterpret_cast< wxDC * >(argp1);
19567 {
19568 arg2 = wxString_in_helper(obj1);
19569 if (arg2 == NULL) SWIG_fail;
19570 temp2 = true;
19571 }
19572 {
19573 arg3 = &temp3;
19574 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19575 }
19576 ecode4 = SWIG_AsVal_double(obj3, &val4);
19577 if (!SWIG_IsOK(ecode4)) {
19578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19579 }
19580 arg4 = static_cast< double >(val4);
19581 {
19582 PyThreadState* __tstate = wxPyBeginAllowThreads();
19583 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19584 wxPyEndAllowThreads(__tstate);
19585 if (PyErr_Occurred()) SWIG_fail;
19586 }
19587 resultobj = SWIG_Py_Void();
19588 {
19589 if (temp2)
19590 delete arg2;
19591 }
19592 return resultobj;
19593fail:
19594 {
19595 if (temp2)
19596 delete arg2;
19597 }
19598 return NULL;
19599}
19600
19601
19602SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19603 PyObject *resultobj = 0;
19604 wxDC *arg1 = (wxDC *) 0 ;
19605 int arg2 ;
19606 int arg3 ;
19607 int arg4 ;
19608 int arg5 ;
19609 wxDC *arg6 = (wxDC *) 0 ;
19610 int arg7 ;
19611 int arg8 ;
19612 int arg9 = (int) wxCOPY ;
19613 bool arg10 = (bool) false ;
19614 int arg11 = (int) -1 ;
19615 int arg12 = (int) -1 ;
19616 bool result;
19617 void *argp1 = 0 ;
19618 int res1 = 0 ;
19619 int val2 ;
19620 int ecode2 = 0 ;
19621 int val3 ;
19622 int ecode3 = 0 ;
19623 int val4 ;
19624 int ecode4 = 0 ;
19625 int val5 ;
19626 int ecode5 = 0 ;
19627 void *argp6 = 0 ;
19628 int res6 = 0 ;
19629 int val7 ;
19630 int ecode7 = 0 ;
19631 int val8 ;
19632 int ecode8 = 0 ;
19633 int val9 ;
19634 int ecode9 = 0 ;
19635 bool val10 ;
19636 int ecode10 = 0 ;
19637 int val11 ;
19638 int ecode11 = 0 ;
19639 int val12 ;
19640 int ecode12 = 0 ;
19641 PyObject * obj0 = 0 ;
19642 PyObject * obj1 = 0 ;
19643 PyObject * obj2 = 0 ;
19644 PyObject * obj3 = 0 ;
19645 PyObject * obj4 = 0 ;
19646 PyObject * obj5 = 0 ;
19647 PyObject * obj6 = 0 ;
19648 PyObject * obj7 = 0 ;
19649 PyObject * obj8 = 0 ;
19650 PyObject * obj9 = 0 ;
19651 PyObject * obj10 = 0 ;
19652 PyObject * obj11 = 0 ;
19653 char * kwnames[] = {
19654 (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
19655 };
19656
19657 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;
19658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19659 if (!SWIG_IsOK(res1)) {
19660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19661 }
19662 arg1 = reinterpret_cast< wxDC * >(argp1);
19663 ecode2 = SWIG_AsVal_int(obj1, &val2);
19664 if (!SWIG_IsOK(ecode2)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19666 }
19667 arg2 = static_cast< int >(val2);
19668 ecode3 = SWIG_AsVal_int(obj2, &val3);
19669 if (!SWIG_IsOK(ecode3)) {
19670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19671 }
19672 arg3 = static_cast< int >(val3);
19673 ecode4 = SWIG_AsVal_int(obj3, &val4);
19674 if (!SWIG_IsOK(ecode4)) {
19675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19676 }
19677 arg4 = static_cast< int >(val4);
19678 ecode5 = SWIG_AsVal_int(obj4, &val5);
19679 if (!SWIG_IsOK(ecode5)) {
19680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19681 }
19682 arg5 = static_cast< int >(val5);
19683 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19684 if (!SWIG_IsOK(res6)) {
19685 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19686 }
19687 arg6 = reinterpret_cast< wxDC * >(argp6);
19688 ecode7 = SWIG_AsVal_int(obj6, &val7);
19689 if (!SWIG_IsOK(ecode7)) {
19690 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19691 }
19692 arg7 = static_cast< int >(val7);
19693 ecode8 = SWIG_AsVal_int(obj7, &val8);
19694 if (!SWIG_IsOK(ecode8)) {
19695 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19696 }
19697 arg8 = static_cast< int >(val8);
19698 if (obj8) {
19699 ecode9 = SWIG_AsVal_int(obj8, &val9);
19700 if (!SWIG_IsOK(ecode9)) {
19701 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19702 }
19703 arg9 = static_cast< int >(val9);
19704 }
19705 if (obj9) {
19706 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19707 if (!SWIG_IsOK(ecode10)) {
19708 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19709 }
19710 arg10 = static_cast< bool >(val10);
19711 }
19712 if (obj10) {
19713 ecode11 = SWIG_AsVal_int(obj10, &val11);
19714 if (!SWIG_IsOK(ecode11)) {
19715 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19716 }
19717 arg11 = static_cast< int >(val11);
19718 }
19719 if (obj11) {
19720 ecode12 = SWIG_AsVal_int(obj11, &val12);
19721 if (!SWIG_IsOK(ecode12)) {
19722 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19723 }
19724 arg12 = static_cast< int >(val12);
19725 }
19726 {
19727 PyThreadState* __tstate = wxPyBeginAllowThreads();
19728 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19729 wxPyEndAllowThreads(__tstate);
19730 if (PyErr_Occurred()) SWIG_fail;
19731 }
19732 {
19733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19734 }
19735 return resultobj;
19736fail:
19737 return NULL;
19738}
19739
19740
19741SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj = 0;
19743 wxDC *arg1 = (wxDC *) 0 ;
19744 wxPoint *arg2 = 0 ;
19745 wxSize *arg3 = 0 ;
19746 wxDC *arg4 = (wxDC *) 0 ;
19747 wxPoint *arg5 = 0 ;
19748 int arg6 = (int) wxCOPY ;
19749 bool arg7 = (bool) false ;
19750 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19751 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19752 bool result;
19753 void *argp1 = 0 ;
19754 int res1 = 0 ;
19755 wxPoint temp2 ;
19756 wxSize temp3 ;
19757 void *argp4 = 0 ;
19758 int res4 = 0 ;
19759 wxPoint temp5 ;
19760 int val6 ;
19761 int ecode6 = 0 ;
19762 bool val7 ;
19763 int ecode7 = 0 ;
19764 wxPoint temp8 ;
19765 PyObject * obj0 = 0 ;
19766 PyObject * obj1 = 0 ;
19767 PyObject * obj2 = 0 ;
19768 PyObject * obj3 = 0 ;
19769 PyObject * obj4 = 0 ;
19770 PyObject * obj5 = 0 ;
19771 PyObject * obj6 = 0 ;
19772 PyObject * obj7 = 0 ;
19773 char * kwnames[] = {
19774 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19775 };
19776
19777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19779 if (!SWIG_IsOK(res1)) {
19780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19781 }
19782 arg1 = reinterpret_cast< wxDC * >(argp1);
19783 {
19784 arg2 = &temp2;
19785 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19786 }
19787 {
19788 arg3 = &temp3;
19789 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19790 }
19791 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19792 if (!SWIG_IsOK(res4)) {
19793 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19794 }
19795 arg4 = reinterpret_cast< wxDC * >(argp4);
19796 {
19797 arg5 = &temp5;
19798 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19799 }
19800 if (obj5) {
19801 ecode6 = SWIG_AsVal_int(obj5, &val6);
19802 if (!SWIG_IsOK(ecode6)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19804 }
19805 arg6 = static_cast< int >(val6);
19806 }
19807 if (obj6) {
19808 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19809 if (!SWIG_IsOK(ecode7)) {
19810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19811 }
19812 arg7 = static_cast< bool >(val7);
19813 }
19814 if (obj7) {
36ed4f51 19815 {
1bd55598
RD
19816 arg8 = &temp8;
19817 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19818 }
1bd55598
RD
19819 }
19820 {
19821 PyThreadState* __tstate = wxPyBeginAllowThreads();
19822 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 {
19827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19828 }
19829 return resultobj;
19830fail:
19831 return NULL;
19832}
19833
19834
8f514ab4
RD
19835SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj = 0;
19837 wxDC *arg1 = (wxDC *) 0 ;
19838 wxRect *arg2 = (wxRect *) NULL ;
19839 SwigValueWrapper<wxBitmap > result;
19840 void *argp1 = 0 ;
19841 int res1 = 0 ;
19842 void *argp2 = 0 ;
19843 int res2 = 0 ;
19844 PyObject * obj0 = 0 ;
19845 PyObject * obj1 = 0 ;
19846 char * kwnames[] = {
19847 (char *) "self",(char *) "subrect", NULL
19848 };
19849
19850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19852 if (!SWIG_IsOK(res1)) {
19853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19854 }
19855 arg1 = reinterpret_cast< wxDC * >(argp1);
19856 if (obj1) {
19857 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19858 if (!SWIG_IsOK(res2)) {
19859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19860 }
19861 arg2 = reinterpret_cast< wxRect * >(argp2);
19862 }
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19866 wxPyEndAllowThreads(__tstate);
19867 if (PyErr_Occurred()) SWIG_fail;
19868 }
19869 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19870 return resultobj;
19871fail:
19872 return NULL;
19873}
19874
19875
1bd55598
RD
19876SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19877 PyObject *resultobj = 0;
19878 wxDC *arg1 = (wxDC *) 0 ;
19879 int arg2 ;
19880 int arg3 ;
19881 int arg4 ;
19882 int arg5 ;
19883 void *argp1 = 0 ;
19884 int res1 = 0 ;
19885 int val2 ;
19886 int ecode2 = 0 ;
19887 int val3 ;
19888 int ecode3 = 0 ;
19889 int val4 ;
19890 int ecode4 = 0 ;
19891 int val5 ;
19892 int ecode5 = 0 ;
19893 PyObject * obj0 = 0 ;
19894 PyObject * obj1 = 0 ;
19895 PyObject * obj2 = 0 ;
19896 PyObject * obj3 = 0 ;
19897 PyObject * obj4 = 0 ;
19898 char * kwnames[] = {
19899 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19900 };
19901
19902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19904 if (!SWIG_IsOK(res1)) {
19905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19906 }
19907 arg1 = reinterpret_cast< wxDC * >(argp1);
19908 ecode2 = SWIG_AsVal_int(obj1, &val2);
19909 if (!SWIG_IsOK(ecode2)) {
19910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19911 }
19912 arg2 = static_cast< int >(val2);
19913 ecode3 = SWIG_AsVal_int(obj2, &val3);
19914 if (!SWIG_IsOK(ecode3)) {
19915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19916 }
19917 arg3 = static_cast< int >(val3);
19918 ecode4 = SWIG_AsVal_int(obj3, &val4);
19919 if (!SWIG_IsOK(ecode4)) {
19920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19921 }
19922 arg4 = static_cast< int >(val4);
19923 ecode5 = SWIG_AsVal_int(obj4, &val5);
19924 if (!SWIG_IsOK(ecode5)) {
19925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19926 }
19927 arg5 = static_cast< int >(val5);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_Py_Void();
19935 return resultobj;
19936fail:
19937 return NULL;
19938}
19939
19940
19941SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19942 PyObject *resultobj = 0;
19943 wxDC *arg1 = (wxDC *) 0 ;
19944 wxPoint *arg2 = 0 ;
19945 wxSize *arg3 = 0 ;
19946 void *argp1 = 0 ;
19947 int res1 = 0 ;
19948 wxPoint temp2 ;
19949 wxSize temp3 ;
19950 PyObject * obj0 = 0 ;
19951 PyObject * obj1 = 0 ;
19952 PyObject * obj2 = 0 ;
19953 char * kwnames[] = {
19954 (char *) "self",(char *) "pt",(char *) "sz", NULL
19955 };
19956
19957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19959 if (!SWIG_IsOK(res1)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19961 }
19962 arg1 = reinterpret_cast< wxDC * >(argp1);
19963 {
19964 arg2 = &temp2;
19965 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19966 }
19967 {
19968 arg3 = &temp3;
19969 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19970 }
19971 {
19972 PyThreadState* __tstate = wxPyBeginAllowThreads();
19973 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19974 wxPyEndAllowThreads(__tstate);
19975 if (PyErr_Occurred()) SWIG_fail;
19976 }
19977 resultobj = SWIG_Py_Void();
19978 return resultobj;
19979fail:
19980 return NULL;
19981}
19982
19983
19984SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19985 PyObject *resultobj = 0;
19986 wxDC *arg1 = (wxDC *) 0 ;
19987 wxRegion *arg2 = 0 ;
19988 void *argp1 = 0 ;
19989 int res1 = 0 ;
19990 void *argp2 = 0 ;
19991 int res2 = 0 ;
19992 PyObject * obj0 = 0 ;
19993 PyObject * obj1 = 0 ;
19994 char * kwnames[] = {
19995 (char *) "self",(char *) "region", NULL
19996 };
19997
19998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20000 if (!SWIG_IsOK(res1)) {
20001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20002 }
20003 arg1 = reinterpret_cast< wxDC * >(argp1);
20004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20005 if (!SWIG_IsOK(res2)) {
20006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20007 }
20008 if (!argp2) {
20009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20010 }
20011 arg2 = reinterpret_cast< wxRegion * >(argp2);
20012 {
20013 PyThreadState* __tstate = wxPyBeginAllowThreads();
20014 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20015 wxPyEndAllowThreads(__tstate);
20016 if (PyErr_Occurred()) SWIG_fail;
20017 }
20018 resultobj = SWIG_Py_Void();
20019 return resultobj;
20020fail:
20021 return NULL;
20022}
20023
20024
20025SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20026 PyObject *resultobj = 0;
20027 wxDC *arg1 = (wxDC *) 0 ;
20028 wxRect *arg2 = 0 ;
20029 void *argp1 = 0 ;
20030 int res1 = 0 ;
20031 wxRect temp2 ;
20032 PyObject * obj0 = 0 ;
20033 PyObject * obj1 = 0 ;
20034 char * kwnames[] = {
20035 (char *) "self",(char *) "rect", NULL
20036 };
20037
20038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20040 if (!SWIG_IsOK(res1)) {
20041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20042 }
20043 arg1 = reinterpret_cast< wxDC * >(argp1);
20044 {
20045 arg2 = &temp2;
20046 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20047 }
20048 {
20049 PyThreadState* __tstate = wxPyBeginAllowThreads();
20050 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20051 wxPyEndAllowThreads(__tstate);
20052 if (PyErr_Occurred()) SWIG_fail;
20053 }
20054 resultobj = SWIG_Py_Void();
20055 return resultobj;
20056fail:
20057 return NULL;
20058}
20059
20060
20061SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = 0;
20063 wxDC *arg1 = (wxDC *) 0 ;
20064 int arg2 ;
20065 wxPoint *arg3 = (wxPoint *) 0 ;
20066 int arg4 = (int) 0 ;
20067 int arg5 = (int) 0 ;
20068 void *argp1 = 0 ;
20069 int res1 = 0 ;
20070 int val4 ;
20071 int ecode4 = 0 ;
20072 int val5 ;
20073 int ecode5 = 0 ;
20074 PyObject * obj0 = 0 ;
20075 PyObject * obj1 = 0 ;
20076 PyObject * obj2 = 0 ;
20077 PyObject * obj3 = 0 ;
20078 char * kwnames[] = {
20079 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20080 };
20081
20082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20084 if (!SWIG_IsOK(res1)) {
20085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20086 }
20087 arg1 = reinterpret_cast< wxDC * >(argp1);
20088 {
20089 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20090 if (arg3 == NULL) SWIG_fail;
20091 }
20092 if (obj2) {
20093 ecode4 = SWIG_AsVal_int(obj2, &val4);
20094 if (!SWIG_IsOK(ecode4)) {
20095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20096 }
20097 arg4 = static_cast< int >(val4);
20098 }
20099 if (obj3) {
20100 ecode5 = SWIG_AsVal_int(obj3, &val5);
20101 if (!SWIG_IsOK(ecode5)) {
20102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20103 }
20104 arg5 = static_cast< int >(val5);
20105 }
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20109 wxPyEndAllowThreads(__tstate);
20110 if (PyErr_Occurred()) SWIG_fail;
20111 }
20112 resultobj = SWIG_Py_Void();
20113 {
20114 if (arg3) delete [] arg3;
20115 }
20116 return resultobj;
20117fail:
20118 {
20119 if (arg3) delete [] arg3;
20120 }
20121 return NULL;
20122}
20123
20124
20125SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20126 PyObject *resultobj = 0;
20127 wxDC *arg1 = (wxDC *) 0 ;
20128 int arg2 ;
20129 wxPoint *arg3 = (wxPoint *) 0 ;
20130 int arg4 = (int) 0 ;
20131 int arg5 = (int) 0 ;
20132 int arg6 = (int) wxODDEVEN_RULE ;
20133 void *argp1 = 0 ;
20134 int res1 = 0 ;
20135 int val4 ;
20136 int ecode4 = 0 ;
20137 int val5 ;
20138 int ecode5 = 0 ;
20139 int val6 ;
20140 int ecode6 = 0 ;
20141 PyObject * obj0 = 0 ;
20142 PyObject * obj1 = 0 ;
20143 PyObject * obj2 = 0 ;
20144 PyObject * obj3 = 0 ;
20145 PyObject * obj4 = 0 ;
20146 char * kwnames[] = {
20147 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20148 };
20149
20150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20152 if (!SWIG_IsOK(res1)) {
20153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20154 }
20155 arg1 = reinterpret_cast< wxDC * >(argp1);
20156 {
20157 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20158 if (arg3 == NULL) SWIG_fail;
20159 }
20160 if (obj2) {
20161 ecode4 = SWIG_AsVal_int(obj2, &val4);
20162 if (!SWIG_IsOK(ecode4)) {
20163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20164 }
20165 arg4 = static_cast< int >(val4);
20166 }
20167 if (obj3) {
20168 ecode5 = SWIG_AsVal_int(obj3, &val5);
20169 if (!SWIG_IsOK(ecode5)) {
20170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20171 }
20172 arg5 = static_cast< int >(val5);
20173 }
20174 if (obj4) {
20175 ecode6 = SWIG_AsVal_int(obj4, &val6);
20176 if (!SWIG_IsOK(ecode6)) {
20177 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20178 }
20179 arg6 = static_cast< int >(val6);
20180 }
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = SWIG_Py_Void();
20188 {
20189 if (arg3) delete [] arg3;
20190 }
20191 return resultobj;
20192fail:
20193 {
20194 if (arg3) delete [] arg3;
20195 }
20196 return NULL;
20197}
20198
20199
20200SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20201 PyObject *resultobj = 0;
20202 wxDC *arg1 = (wxDC *) 0 ;
20203 wxString *arg2 = 0 ;
20204 wxRect *arg3 = 0 ;
20205 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20206 int arg5 = (int) -1 ;
20207 void *argp1 = 0 ;
20208 int res1 = 0 ;
20209 bool temp2 = false ;
20210 wxRect temp3 ;
20211 int val4 ;
20212 int ecode4 = 0 ;
20213 int val5 ;
20214 int ecode5 = 0 ;
20215 PyObject * obj0 = 0 ;
20216 PyObject * obj1 = 0 ;
20217 PyObject * obj2 = 0 ;
20218 PyObject * obj3 = 0 ;
20219 PyObject * obj4 = 0 ;
20220 char * kwnames[] = {
20221 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20222 };
20223
20224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20226 if (!SWIG_IsOK(res1)) {
20227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20228 }
20229 arg1 = reinterpret_cast< wxDC * >(argp1);
20230 {
20231 arg2 = wxString_in_helper(obj1);
20232 if (arg2 == NULL) SWIG_fail;
20233 temp2 = true;
20234 }
20235 {
20236 arg3 = &temp3;
20237 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20238 }
20239 if (obj3) {
20240 ecode4 = SWIG_AsVal_int(obj3, &val4);
20241 if (!SWIG_IsOK(ecode4)) {
20242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20243 }
20244 arg4 = static_cast< int >(val4);
20245 }
20246 if (obj4) {
20247 ecode5 = SWIG_AsVal_int(obj4, &val5);
20248 if (!SWIG_IsOK(ecode5)) {
20249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20250 }
20251 arg5 = static_cast< int >(val5);
20252 }
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_Py_Void();
20260 {
20261 if (temp2)
20262 delete arg2;
20263 }
20264 return resultobj;
20265fail:
20266 {
20267 if (temp2)
20268 delete arg2;
20269 }
20270 return NULL;
20271}
20272
20273
20274SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj = 0;
20276 wxDC *arg1 = (wxDC *) 0 ;
20277 wxString *arg2 = 0 ;
20278 wxBitmap *arg3 = 0 ;
20279 wxRect *arg4 = 0 ;
20280 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20281 int arg6 = (int) -1 ;
20282 wxRect result;
20283 void *argp1 = 0 ;
20284 int res1 = 0 ;
20285 bool temp2 = false ;
20286 void *argp3 = 0 ;
20287 int res3 = 0 ;
20288 wxRect temp4 ;
20289 int val5 ;
20290 int ecode5 = 0 ;
20291 int val6 ;
20292 int ecode6 = 0 ;
20293 PyObject * obj0 = 0 ;
20294 PyObject * obj1 = 0 ;
20295 PyObject * obj2 = 0 ;
20296 PyObject * obj3 = 0 ;
20297 PyObject * obj4 = 0 ;
20298 PyObject * obj5 = 0 ;
20299 char * kwnames[] = {
20300 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20301 };
20302
20303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20305 if (!SWIG_IsOK(res1)) {
20306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20307 }
20308 arg1 = reinterpret_cast< wxDC * >(argp1);
20309 {
20310 arg2 = wxString_in_helper(obj1);
20311 if (arg2 == NULL) SWIG_fail;
20312 temp2 = true;
20313 }
20314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20315 if (!SWIG_IsOK(res3)) {
20316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20317 }
20318 if (!argp3) {
20319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20320 }
20321 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20322 {
20323 arg4 = &temp4;
20324 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20325 }
20326 if (obj4) {
20327 ecode5 = SWIG_AsVal_int(obj4, &val5);
20328 if (!SWIG_IsOK(ecode5)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20330 }
20331 arg5 = static_cast< int >(val5);
20332 }
20333 if (obj5) {
20334 ecode6 = SWIG_AsVal_int(obj5, &val6);
20335 if (!SWIG_IsOK(ecode6)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20337 }
20338 arg6 = static_cast< int >(val6);
20339 }
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20347 {
20348 if (temp2)
20349 delete arg2;
20350 }
20351 return resultobj;
20352fail:
20353 {
20354 if (temp2)
20355 delete arg2;
20356 }
20357 return NULL;
20358}
20359
20360
20361SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxDC *arg1 = (wxDC *) 0 ;
20364 int arg2 ;
20365 wxPoint *arg3 = (wxPoint *) 0 ;
20366 void *argp1 = 0 ;
20367 int res1 = 0 ;
20368 PyObject * obj0 = 0 ;
20369 PyObject * obj1 = 0 ;
20370 char * kwnames[] = {
20371 (char *) "self",(char *) "points", NULL
20372 };
20373
20374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20376 if (!SWIG_IsOK(res1)) {
20377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20378 }
20379 arg1 = reinterpret_cast< wxDC * >(argp1);
20380 {
20381 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20382 if (arg3 == NULL) SWIG_fail;
20383 }
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 (arg1)->DrawSpline(arg2,arg3);
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_Py_Void();
20391 {
20392 if (arg3) delete [] arg3;
20393 }
20394 return resultobj;
20395fail:
20396 {
20397 if (arg3) delete [] arg3;
20398 }
20399 return NULL;
20400}
20401
20402
20403SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20404 PyObject *resultobj = 0;
20405 wxDC *arg1 = (wxDC *) 0 ;
20406 void *argp1 = 0 ;
20407 int res1 = 0 ;
20408 PyObject *swig_obj[1] ;
20409
20410 if (!args) SWIG_fail;
20411 swig_obj[0] = args;
20412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20413 if (!SWIG_IsOK(res1)) {
20414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20415 }
20416 arg1 = reinterpret_cast< wxDC * >(argp1);
20417 {
20418 PyThreadState* __tstate = wxPyBeginAllowThreads();
20419 (arg1)->Clear();
20420 wxPyEndAllowThreads(__tstate);
20421 if (PyErr_Occurred()) SWIG_fail;
20422 }
20423 resultobj = SWIG_Py_Void();
20424 return resultobj;
20425fail:
20426 return NULL;
20427}
20428
20429
20430SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20431 PyObject *resultobj = 0;
20432 wxDC *arg1 = (wxDC *) 0 ;
20433 wxString *arg2 = 0 ;
20434 bool result;
20435 void *argp1 = 0 ;
20436 int res1 = 0 ;
20437 bool temp2 = false ;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440 char * kwnames[] = {
20441 (char *) "self",(char *) "message", NULL
20442 };
20443
20444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20446 if (!SWIG_IsOK(res1)) {
20447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20448 }
20449 arg1 = reinterpret_cast< wxDC * >(argp1);
20450 {
20451 arg2 = wxString_in_helper(obj1);
20452 if (arg2 == NULL) SWIG_fail;
20453 temp2 = true;
20454 }
20455 {
20456 PyThreadState* __tstate = wxPyBeginAllowThreads();
20457 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 {
20462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20463 }
20464 {
20465 if (temp2)
20466 delete arg2;
20467 }
20468 return resultobj;
20469fail:
20470 {
20471 if (temp2)
20472 delete arg2;
20473 }
20474 return NULL;
20475}
20476
20477
20478SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20479 PyObject *resultobj = 0;
20480 wxDC *arg1 = (wxDC *) 0 ;
20481 void *argp1 = 0 ;
20482 int res1 = 0 ;
20483 PyObject *swig_obj[1] ;
20484
20485 if (!args) SWIG_fail;
20486 swig_obj[0] = args;
20487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20488 if (!SWIG_IsOK(res1)) {
20489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20490 }
20491 arg1 = reinterpret_cast< wxDC * >(argp1);
20492 {
20493 PyThreadState* __tstate = wxPyBeginAllowThreads();
20494 (arg1)->EndDoc();
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 resultobj = SWIG_Py_Void();
20499 return resultobj;
20500fail:
20501 return NULL;
20502}
20503
20504
20505SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20506 PyObject *resultobj = 0;
20507 wxDC *arg1 = (wxDC *) 0 ;
20508 void *argp1 = 0 ;
20509 int res1 = 0 ;
20510 PyObject *swig_obj[1] ;
20511
20512 if (!args) SWIG_fail;
20513 swig_obj[0] = args;
20514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20515 if (!SWIG_IsOK(res1)) {
20516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20517 }
20518 arg1 = reinterpret_cast< wxDC * >(argp1);
20519 {
20520 PyThreadState* __tstate = wxPyBeginAllowThreads();
20521 (arg1)->StartPage();
20522 wxPyEndAllowThreads(__tstate);
20523 if (PyErr_Occurred()) SWIG_fail;
20524 }
20525 resultobj = SWIG_Py_Void();
20526 return resultobj;
20527fail:
20528 return NULL;
20529}
20530
20531
20532SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxDC *arg1 = (wxDC *) 0 ;
20535 void *argp1 = 0 ;
20536 int res1 = 0 ;
20537 PyObject *swig_obj[1] ;
20538
20539 if (!args) SWIG_fail;
20540 swig_obj[0] = args;
20541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20544 }
20545 arg1 = reinterpret_cast< wxDC * >(argp1);
20546 {
20547 PyThreadState* __tstate = wxPyBeginAllowThreads();
20548 (arg1)->EndPage();
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 resultobj = SWIG_Py_Void();
20553 return resultobj;
20554fail:
20555 return NULL;
20556}
20557
20558
20559SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20560 PyObject *resultobj = 0;
20561 wxDC *arg1 = (wxDC *) 0 ;
20562 wxFont *arg2 = 0 ;
20563 void *argp1 = 0 ;
20564 int res1 = 0 ;
20565 void *argp2 = 0 ;
20566 int res2 = 0 ;
20567 PyObject * obj0 = 0 ;
20568 PyObject * obj1 = 0 ;
20569 char * kwnames[] = {
20570 (char *) "self",(char *) "font", NULL
20571 };
20572
20573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20577 }
20578 arg1 = reinterpret_cast< wxDC * >(argp1);
20579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20580 if (!SWIG_IsOK(res2)) {
20581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20582 }
20583 if (!argp2) {
20584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20585 }
20586 arg2 = reinterpret_cast< wxFont * >(argp2);
20587 {
20588 PyThreadState* __tstate = wxPyBeginAllowThreads();
20589 (arg1)->SetFont((wxFont const &)*arg2);
20590 wxPyEndAllowThreads(__tstate);
20591 if (PyErr_Occurred()) SWIG_fail;
20592 }
20593 resultobj = SWIG_Py_Void();
20594 return resultobj;
20595fail:
20596 return NULL;
20597}
20598
20599
20600SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20601 PyObject *resultobj = 0;
20602 wxDC *arg1 = (wxDC *) 0 ;
20603 wxPen *arg2 = 0 ;
20604 void *argp1 = 0 ;
20605 int res1 = 0 ;
20606 void *argp2 = 0 ;
20607 int res2 = 0 ;
20608 PyObject * obj0 = 0 ;
20609 PyObject * obj1 = 0 ;
20610 char * kwnames[] = {
20611 (char *) "self",(char *) "pen", NULL
20612 };
20613
20614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20616 if (!SWIG_IsOK(res1)) {
20617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20618 }
20619 arg1 = reinterpret_cast< wxDC * >(argp1);
20620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20621 if (!SWIG_IsOK(res2)) {
20622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20623 }
20624 if (!argp2) {
20625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20626 }
20627 arg2 = reinterpret_cast< wxPen * >(argp2);
20628 {
20629 PyThreadState* __tstate = wxPyBeginAllowThreads();
20630 (arg1)->SetPen((wxPen const &)*arg2);
20631 wxPyEndAllowThreads(__tstate);
20632 if (PyErr_Occurred()) SWIG_fail;
20633 }
20634 resultobj = SWIG_Py_Void();
20635 return resultobj;
20636fail:
20637 return NULL;
20638}
20639
20640
20641SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20642 PyObject *resultobj = 0;
20643 wxDC *arg1 = (wxDC *) 0 ;
20644 wxBrush *arg2 = 0 ;
20645 void *argp1 = 0 ;
20646 int res1 = 0 ;
20647 void *argp2 = 0 ;
20648 int res2 = 0 ;
20649 PyObject * obj0 = 0 ;
20650 PyObject * obj1 = 0 ;
20651 char * kwnames[] = {
20652 (char *) "self",(char *) "brush", NULL
20653 };
20654
20655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20657 if (!SWIG_IsOK(res1)) {
20658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20659 }
20660 arg1 = reinterpret_cast< wxDC * >(argp1);
20661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20662 if (!SWIG_IsOK(res2)) {
20663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20664 }
20665 if (!argp2) {
20666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20667 }
20668 arg2 = reinterpret_cast< wxBrush * >(argp2);
20669 {
20670 PyThreadState* __tstate = wxPyBeginAllowThreads();
20671 (arg1)->SetBrush((wxBrush const &)*arg2);
20672 wxPyEndAllowThreads(__tstate);
20673 if (PyErr_Occurred()) SWIG_fail;
20674 }
20675 resultobj = SWIG_Py_Void();
20676 return resultobj;
20677fail:
20678 return NULL;
20679}
20680
20681
20682SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20683 PyObject *resultobj = 0;
20684 wxDC *arg1 = (wxDC *) 0 ;
20685 wxBrush *arg2 = 0 ;
20686 void *argp1 = 0 ;
20687 int res1 = 0 ;
20688 void *argp2 = 0 ;
20689 int res2 = 0 ;
20690 PyObject * obj0 = 0 ;
20691 PyObject * obj1 = 0 ;
20692 char * kwnames[] = {
20693 (char *) "self",(char *) "brush", NULL
20694 };
20695
20696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20698 if (!SWIG_IsOK(res1)) {
20699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20700 }
20701 arg1 = reinterpret_cast< wxDC * >(argp1);
20702 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20703 if (!SWIG_IsOK(res2)) {
20704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20705 }
20706 if (!argp2) {
20707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20708 }
20709 arg2 = reinterpret_cast< wxBrush * >(argp2);
20710 {
20711 PyThreadState* __tstate = wxPyBeginAllowThreads();
20712 (arg1)->SetBackground((wxBrush const &)*arg2);
20713 wxPyEndAllowThreads(__tstate);
20714 if (PyErr_Occurred()) SWIG_fail;
20715 }
20716 resultobj = SWIG_Py_Void();
20717 return resultobj;
20718fail:
20719 return NULL;
20720}
20721
20722
20723SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20724 PyObject *resultobj = 0;
20725 wxDC *arg1 = (wxDC *) 0 ;
20726 int arg2 ;
20727 void *argp1 = 0 ;
20728 int res1 = 0 ;
20729 int val2 ;
20730 int ecode2 = 0 ;
20731 PyObject * obj0 = 0 ;
20732 PyObject * obj1 = 0 ;
20733 char * kwnames[] = {
20734 (char *) "self",(char *) "mode", NULL
20735 };
20736
20737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20739 if (!SWIG_IsOK(res1)) {
20740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20741 }
20742 arg1 = reinterpret_cast< wxDC * >(argp1);
20743 ecode2 = SWIG_AsVal_int(obj1, &val2);
20744 if (!SWIG_IsOK(ecode2)) {
20745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20746 }
20747 arg2 = static_cast< int >(val2);
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 (arg1)->SetBackgroundMode(arg2);
20751 wxPyEndAllowThreads(__tstate);
20752 if (PyErr_Occurred()) SWIG_fail;
20753 }
20754 resultobj = SWIG_Py_Void();
20755 return resultobj;
20756fail:
20757 return NULL;
20758}
20759
20760
20761SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20762 PyObject *resultobj = 0;
20763 wxDC *arg1 = (wxDC *) 0 ;
20764 wxPalette *arg2 = 0 ;
20765 void *argp1 = 0 ;
20766 int res1 = 0 ;
20767 void *argp2 = 0 ;
20768 int res2 = 0 ;
20769 PyObject * obj0 = 0 ;
20770 PyObject * obj1 = 0 ;
20771 char * kwnames[] = {
20772 (char *) "self",(char *) "palette", NULL
20773 };
20774
20775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20777 if (!SWIG_IsOK(res1)) {
20778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20779 }
20780 arg1 = reinterpret_cast< wxDC * >(argp1);
20781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20782 if (!SWIG_IsOK(res2)) {
20783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20784 }
20785 if (!argp2) {
20786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20787 }
20788 arg2 = reinterpret_cast< wxPalette * >(argp2);
20789 {
20790 PyThreadState* __tstate = wxPyBeginAllowThreads();
20791 (arg1)->SetPalette((wxPalette const &)*arg2);
20792 wxPyEndAllowThreads(__tstate);
20793 if (PyErr_Occurred()) SWIG_fail;
20794 }
20795 resultobj = SWIG_Py_Void();
20796 return resultobj;
20797fail:
20798 return NULL;
20799}
20800
20801
20802SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20803 PyObject *resultobj = 0;
20804 wxDC *arg1 = (wxDC *) 0 ;
20805 void *argp1 = 0 ;
20806 int res1 = 0 ;
20807 PyObject *swig_obj[1] ;
20808
20809 if (!args) SWIG_fail;
20810 swig_obj[0] = args;
20811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20812 if (!SWIG_IsOK(res1)) {
20813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20814 }
20815 arg1 = reinterpret_cast< wxDC * >(argp1);
20816 {
20817 PyThreadState* __tstate = wxPyBeginAllowThreads();
20818 (arg1)->DestroyClippingRegion();
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 resultobj = SWIG_Py_Void();
20823 return resultobj;
20824fail:
20825 return NULL;
20826}
20827
20828
20829SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20830 PyObject *resultobj = 0;
20831 wxDC *arg1 = (wxDC *) 0 ;
20832 int *arg2 = (int *) 0 ;
20833 int *arg3 = (int *) 0 ;
20834 int *arg4 = (int *) 0 ;
20835 int *arg5 = (int *) 0 ;
20836 void *argp1 = 0 ;
20837 int res1 = 0 ;
20838 int temp2 ;
20839 int res2 = SWIG_TMPOBJ ;
20840 int temp3 ;
20841 int res3 = SWIG_TMPOBJ ;
20842 int temp4 ;
20843 int res4 = SWIG_TMPOBJ ;
20844 int temp5 ;
20845 int res5 = SWIG_TMPOBJ ;
20846 PyObject *swig_obj[1] ;
20847
20848 arg2 = &temp2;
20849 arg3 = &temp3;
20850 arg4 = &temp4;
20851 arg5 = &temp5;
20852 if (!args) SWIG_fail;
20853 swig_obj[0] = args;
20854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20855 if (!SWIG_IsOK(res1)) {
20856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20857 }
20858 arg1 = reinterpret_cast< wxDC * >(argp1);
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_Py_Void();
20866 if (SWIG_IsTmpObj(res2)) {
20867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20868 } else {
20869 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20871 }
20872 if (SWIG_IsTmpObj(res3)) {
20873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20874 } else {
20875 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20877 }
20878 if (SWIG_IsTmpObj(res4)) {
20879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20880 } else {
20881 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20883 }
20884 if (SWIG_IsTmpObj(res5)) {
20885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20886 } else {
20887 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20889 }
20890 return resultobj;
20891fail:
20892 return NULL;
20893}
20894
20895
20896SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20897 PyObject *resultobj = 0;
20898 wxDC *arg1 = (wxDC *) 0 ;
20899 wxRect result;
20900 void *argp1 = 0 ;
20901 int res1 = 0 ;
20902 PyObject *swig_obj[1] ;
20903
20904 if (!args) SWIG_fail;
20905 swig_obj[0] = args;
20906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20907 if (!SWIG_IsOK(res1)) {
20908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20909 }
20910 arg1 = reinterpret_cast< wxDC * >(argp1);
20911 {
20912 PyThreadState* __tstate = wxPyBeginAllowThreads();
20913 result = wxDC_GetClippingRect(arg1);
20914 wxPyEndAllowThreads(__tstate);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
20917 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20918 return resultobj;
20919fail:
20920 return NULL;
20921}
20922
20923
20924SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20925 PyObject *resultobj = 0;
20926 wxDC *arg1 = (wxDC *) 0 ;
20927 int result;
20928 void *argp1 = 0 ;
20929 int res1 = 0 ;
20930 PyObject *swig_obj[1] ;
20931
20932 if (!args) SWIG_fail;
20933 swig_obj[0] = args;
20934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20935 if (!SWIG_IsOK(res1)) {
20936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20937 }
20938 arg1 = reinterpret_cast< wxDC * >(argp1);
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = (int)((wxDC const *)arg1)->GetCharHeight();
20942 wxPyEndAllowThreads(__tstate);
20943 if (PyErr_Occurred()) SWIG_fail;
20944 }
20945 resultobj = SWIG_From_int(static_cast< int >(result));
20946 return resultobj;
20947fail:
20948 return NULL;
20949}
20950
20951
20952SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20953 PyObject *resultobj = 0;
20954 wxDC *arg1 = (wxDC *) 0 ;
20955 int result;
20956 void *argp1 = 0 ;
20957 int res1 = 0 ;
20958 PyObject *swig_obj[1] ;
20959
20960 if (!args) SWIG_fail;
20961 swig_obj[0] = args;
20962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20963 if (!SWIG_IsOK(res1)) {
20964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20965 }
20966 arg1 = reinterpret_cast< wxDC * >(argp1);
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (int)((wxDC const *)arg1)->GetCharWidth();
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_From_int(static_cast< int >(result));
20974 return resultobj;
20975fail:
20976 return NULL;
20977}
20978
20979
20980SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj = 0;
20982 wxDC *arg1 = (wxDC *) 0 ;
20983 wxString *arg2 = 0 ;
20984 int *arg3 = (int *) 0 ;
20985 int *arg4 = (int *) 0 ;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 bool temp2 = false ;
20989 int temp3 ;
20990 int res3 = SWIG_TMPOBJ ;
20991 int temp4 ;
20992 int res4 = SWIG_TMPOBJ ;
20993 PyObject * obj0 = 0 ;
20994 PyObject * obj1 = 0 ;
20995 char * kwnames[] = {
20996 (char *) "self",(char *) "string", NULL
20997 };
20998
20999 arg3 = &temp3;
21000 arg4 = &temp4;
21001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21003 if (!SWIG_IsOK(res1)) {
21004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21005 }
21006 arg1 = reinterpret_cast< wxDC * >(argp1);
21007 {
21008 arg2 = wxString_in_helper(obj1);
21009 if (arg2 == NULL) SWIG_fail;
21010 temp2 = true;
21011 }
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21015 wxPyEndAllowThreads(__tstate);
21016 if (PyErr_Occurred()) SWIG_fail;
21017 }
21018 resultobj = SWIG_Py_Void();
21019 if (SWIG_IsTmpObj(res3)) {
21020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21021 } else {
21022 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21024 }
21025 if (SWIG_IsTmpObj(res4)) {
21026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21027 } else {
21028 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21030 }
21031 {
21032 if (temp2)
21033 delete arg2;
21034 }
21035 return resultobj;
21036fail:
21037 {
21038 if (temp2)
21039 delete arg2;
21040 }
21041 return NULL;
21042}
21043
21044
21045SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21046 PyObject *resultobj = 0;
21047 wxDC *arg1 = (wxDC *) 0 ;
21048 wxString *arg2 = 0 ;
21049 int *arg3 = (int *) 0 ;
21050 int *arg4 = (int *) 0 ;
21051 int *arg5 = (int *) 0 ;
21052 int *arg6 = (int *) 0 ;
21053 wxFont *arg7 = (wxFont *) NULL ;
21054 void *argp1 = 0 ;
21055 int res1 = 0 ;
21056 bool temp2 = false ;
21057 int temp3 ;
21058 int res3 = SWIG_TMPOBJ ;
21059 int temp4 ;
21060 int res4 = SWIG_TMPOBJ ;
21061 int temp5 ;
21062 int res5 = SWIG_TMPOBJ ;
21063 int temp6 ;
21064 int res6 = SWIG_TMPOBJ ;
21065 void *argp7 = 0 ;
21066 int res7 = 0 ;
21067 PyObject * obj0 = 0 ;
21068 PyObject * obj1 = 0 ;
21069 PyObject * obj2 = 0 ;
21070 char * kwnames[] = {
21071 (char *) "self",(char *) "string",(char *) "font", NULL
21072 };
21073
21074 arg3 = &temp3;
21075 arg4 = &temp4;
21076 arg5 = &temp5;
21077 arg6 = &temp6;
21078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21080 if (!SWIG_IsOK(res1)) {
21081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21082 }
21083 arg1 = reinterpret_cast< wxDC * >(argp1);
21084 {
21085 arg2 = wxString_in_helper(obj1);
21086 if (arg2 == NULL) SWIG_fail;
21087 temp2 = true;
21088 }
21089 if (obj2) {
21090 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21091 if (!SWIG_IsOK(res7)) {
21092 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21093 }
1bd55598
RD
21094 arg7 = reinterpret_cast< wxFont * >(argp7);
21095 }
21096 {
21097 PyThreadState* __tstate = wxPyBeginAllowThreads();
21098 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21099 wxPyEndAllowThreads(__tstate);
21100 if (PyErr_Occurred()) SWIG_fail;
21101 }
21102 resultobj = SWIG_Py_Void();
21103 if (SWIG_IsTmpObj(res3)) {
21104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21105 } else {
21106 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21108 }
21109 if (SWIG_IsTmpObj(res4)) {
21110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21111 } else {
21112 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21114 }
21115 if (SWIG_IsTmpObj(res5)) {
21116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21117 } else {
21118 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21120 }
21121 if (SWIG_IsTmpObj(res6)) {
21122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21123 } else {
21124 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21126 }
21127 {
21128 if (temp2)
21129 delete arg2;
21130 }
21131 return resultobj;
21132fail:
21133 {
21134 if (temp2)
21135 delete arg2;
21136 }
21137 return NULL;
21138}
21139
21140
21141SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21142 PyObject *resultobj = 0;
21143 wxDC *arg1 = (wxDC *) 0 ;
21144 wxString *arg2 = 0 ;
21145 int *arg3 = (int *) 0 ;
21146 int *arg4 = (int *) 0 ;
21147 int *arg5 = (int *) 0 ;
21148 wxFont *arg6 = (wxFont *) NULL ;
21149 void *argp1 = 0 ;
21150 int res1 = 0 ;
21151 bool temp2 = false ;
21152 int temp3 ;
21153 int res3 = SWIG_TMPOBJ ;
21154 int temp4 ;
21155 int res4 = SWIG_TMPOBJ ;
21156 int temp5 ;
21157 int res5 = SWIG_TMPOBJ ;
21158 void *argp6 = 0 ;
21159 int res6 = 0 ;
21160 PyObject * obj0 = 0 ;
21161 PyObject * obj1 = 0 ;
21162 PyObject * obj2 = 0 ;
21163 char * kwnames[] = {
21164 (char *) "self",(char *) "text",(char *) "font", NULL
21165 };
21166
21167 arg3 = &temp3;
21168 arg4 = &temp4;
21169 arg5 = &temp5;
21170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21172 if (!SWIG_IsOK(res1)) {
21173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21174 }
21175 arg1 = reinterpret_cast< wxDC * >(argp1);
21176 {
21177 arg2 = wxString_in_helper(obj1);
21178 if (arg2 == NULL) SWIG_fail;
21179 temp2 = true;
21180 }
21181 if (obj2) {
21182 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21183 if (!SWIG_IsOK(res6)) {
21184 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21185 }
1bd55598
RD
21186 arg6 = reinterpret_cast< wxFont * >(argp6);
21187 }
21188 {
21189 PyThreadState* __tstate = wxPyBeginAllowThreads();
21190 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 resultobj = SWIG_Py_Void();
21195 if (SWIG_IsTmpObj(res3)) {
21196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21197 } else {
21198 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21200 }
21201 if (SWIG_IsTmpObj(res4)) {
21202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21203 } else {
21204 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21206 }
21207 if (SWIG_IsTmpObj(res5)) {
21208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21209 } else {
21210 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21212 }
21213 {
21214 if (temp2)
21215 delete arg2;
21216 }
21217 return resultobj;
21218fail:
21219 {
21220 if (temp2)
21221 delete arg2;
21222 }
21223 return NULL;
21224}
21225
21226
21227SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21228 PyObject *resultobj = 0;
21229 wxDC *arg1 = (wxDC *) 0 ;
21230 wxString *arg2 = 0 ;
21231 wxArrayInt result;
21232 void *argp1 = 0 ;
21233 int res1 = 0 ;
21234 bool temp2 = false ;
21235 PyObject * obj0 = 0 ;
21236 PyObject * obj1 = 0 ;
21237 char * kwnames[] = {
21238 (char *) "self",(char *) "text", NULL
21239 };
21240
21241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21243 if (!SWIG_IsOK(res1)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21245 }
21246 arg1 = reinterpret_cast< wxDC * >(argp1);
21247 {
21248 arg2 = wxString_in_helper(obj1);
21249 if (arg2 == NULL) SWIG_fail;
21250 temp2 = true;
21251 }
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 {
b39fe951 21259 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21260 }
21261 {
21262 if (temp2)
21263 delete arg2;
21264 }
21265 return resultobj;
21266fail:
21267 {
21268 if (temp2)
21269 delete arg2;
21270 }
21271 return NULL;
21272}
21273
21274
21275SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21276 PyObject *resultobj = 0;
21277 wxDC *arg1 = (wxDC *) 0 ;
21278 wxSize result;
21279 void *argp1 = 0 ;
21280 int res1 = 0 ;
21281 PyObject *swig_obj[1] ;
21282
21283 if (!args) SWIG_fail;
21284 swig_obj[0] = args;
21285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21286 if (!SWIG_IsOK(res1)) {
21287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21288 }
21289 arg1 = reinterpret_cast< wxDC * >(argp1);
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (arg1)->GetSize();
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21297 return resultobj;
21298fail:
21299 return NULL;
21300}
21301
21302
21303SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21304 PyObject *resultobj = 0;
21305 wxDC *arg1 = (wxDC *) 0 ;
21306 int *arg2 = (int *) 0 ;
21307 int *arg3 = (int *) 0 ;
21308 void *argp1 = 0 ;
21309 int res1 = 0 ;
21310 int temp2 ;
21311 int res2 = SWIG_TMPOBJ ;
21312 int temp3 ;
21313 int res3 = SWIG_TMPOBJ ;
21314 PyObject *swig_obj[1] ;
21315
21316 arg2 = &temp2;
21317 arg3 = &temp3;
21318 if (!args) SWIG_fail;
21319 swig_obj[0] = args;
21320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21321 if (!SWIG_IsOK(res1)) {
21322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21323 }
21324 arg1 = reinterpret_cast< wxDC * >(argp1);
21325 {
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 (arg1)->GetSize(arg2,arg3);
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_Py_Void();
21332 if (SWIG_IsTmpObj(res2)) {
21333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21334 } else {
21335 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21337 }
21338 if (SWIG_IsTmpObj(res3)) {
21339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21340 } else {
21341 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21343 }
21344 return resultobj;
21345fail:
21346 return NULL;
21347}
21348
21349
21350SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21351 PyObject *resultobj = 0;
21352 wxDC *arg1 = (wxDC *) 0 ;
21353 wxSize result;
21354 void *argp1 = 0 ;
21355 int res1 = 0 ;
21356 PyObject *swig_obj[1] ;
21357
21358 if (!args) SWIG_fail;
21359 swig_obj[0] = args;
21360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21361 if (!SWIG_IsOK(res1)) {
21362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21363 }
21364 arg1 = reinterpret_cast< wxDC * >(argp1);
21365 {
21366 PyThreadState* __tstate = wxPyBeginAllowThreads();
21367 result = ((wxDC const *)arg1)->GetSizeMM();
21368 wxPyEndAllowThreads(__tstate);
21369 if (PyErr_Occurred()) SWIG_fail;
21370 }
21371 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21372 return resultobj;
21373fail:
21374 return NULL;
21375}
21376
21377
21378SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21379 PyObject *resultobj = 0;
21380 wxDC *arg1 = (wxDC *) 0 ;
21381 int *arg2 = (int *) 0 ;
21382 int *arg3 = (int *) 0 ;
21383 void *argp1 = 0 ;
21384 int res1 = 0 ;
21385 int temp2 ;
21386 int res2 = SWIG_TMPOBJ ;
21387 int temp3 ;
21388 int res3 = SWIG_TMPOBJ ;
21389 PyObject *swig_obj[1] ;
21390
21391 arg2 = &temp2;
21392 arg3 = &temp3;
21393 if (!args) SWIG_fail;
21394 swig_obj[0] = args;
21395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21396 if (!SWIG_IsOK(res1)) {
21397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21398 }
21399 arg1 = reinterpret_cast< wxDC * >(argp1);
21400 {
21401 PyThreadState* __tstate = wxPyBeginAllowThreads();
21402 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21403 wxPyEndAllowThreads(__tstate);
21404 if (PyErr_Occurred()) SWIG_fail;
21405 }
21406 resultobj = SWIG_Py_Void();
21407 if (SWIG_IsTmpObj(res2)) {
21408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21409 } else {
21410 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21412 }
21413 if (SWIG_IsTmpObj(res3)) {
21414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21415 } else {
21416 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21418 }
21419 return resultobj;
21420fail:
21421 return NULL;
21422}
21423
21424
21425SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21426 PyObject *resultobj = 0;
21427 wxDC *arg1 = (wxDC *) 0 ;
21428 int arg2 ;
21429 int result;
21430 void *argp1 = 0 ;
21431 int res1 = 0 ;
21432 int val2 ;
21433 int ecode2 = 0 ;
21434 PyObject * obj0 = 0 ;
21435 PyObject * obj1 = 0 ;
21436 char * kwnames[] = {
21437 (char *) "self",(char *) "x", NULL
21438 };
21439
21440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21442 if (!SWIG_IsOK(res1)) {
21443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21444 }
21445 arg1 = reinterpret_cast< wxDC * >(argp1);
21446 ecode2 = SWIG_AsVal_int(obj1, &val2);
21447 if (!SWIG_IsOK(ecode2)) {
21448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21449 }
21450 arg2 = static_cast< int >(val2);
21451 {
21452 PyThreadState* __tstate = wxPyBeginAllowThreads();
21453 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_From_int(static_cast< int >(result));
21458 return resultobj;
21459fail:
21460 return NULL;
21461}
21462
21463
21464SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21465 PyObject *resultobj = 0;
21466 wxDC *arg1 = (wxDC *) 0 ;
21467 int arg2 ;
21468 int result;
21469 void *argp1 = 0 ;
21470 int res1 = 0 ;
21471 int val2 ;
21472 int ecode2 = 0 ;
21473 PyObject * obj0 = 0 ;
21474 PyObject * obj1 = 0 ;
21475 char * kwnames[] = {
21476 (char *) "self",(char *) "y", NULL
21477 };
21478
21479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21481 if (!SWIG_IsOK(res1)) {
21482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21483 }
21484 arg1 = reinterpret_cast< wxDC * >(argp1);
21485 ecode2 = SWIG_AsVal_int(obj1, &val2);
21486 if (!SWIG_IsOK(ecode2)) {
21487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21488 }
21489 arg2 = static_cast< int >(val2);
21490 {
21491 PyThreadState* __tstate = wxPyBeginAllowThreads();
21492 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21493 wxPyEndAllowThreads(__tstate);
21494 if (PyErr_Occurred()) SWIG_fail;
21495 }
21496 resultobj = SWIG_From_int(static_cast< int >(result));
21497 return resultobj;
21498fail:
21499 return NULL;
21500}
21501
21502
21503SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21504 PyObject *resultobj = 0;
21505 wxDC *arg1 = (wxDC *) 0 ;
21506 int arg2 ;
21507 int result;
21508 void *argp1 = 0 ;
21509 int res1 = 0 ;
21510 int val2 ;
21511 int ecode2 = 0 ;
21512 PyObject * obj0 = 0 ;
21513 PyObject * obj1 = 0 ;
21514 char * kwnames[] = {
21515 (char *) "self",(char *) "x", NULL
21516 };
21517
21518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21520 if (!SWIG_IsOK(res1)) {
21521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21522 }
21523 arg1 = reinterpret_cast< wxDC * >(argp1);
21524 ecode2 = SWIG_AsVal_int(obj1, &val2);
21525 if (!SWIG_IsOK(ecode2)) {
21526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21527 }
21528 arg2 = static_cast< int >(val2);
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 resultobj = SWIG_From_int(static_cast< int >(result));
21536 return resultobj;
21537fail:
21538 return NULL;
21539}
21540
21541
21542SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21543 PyObject *resultobj = 0;
21544 wxDC *arg1 = (wxDC *) 0 ;
21545 int arg2 ;
21546 int result;
21547 void *argp1 = 0 ;
21548 int res1 = 0 ;
21549 int val2 ;
21550 int ecode2 = 0 ;
21551 PyObject * obj0 = 0 ;
21552 PyObject * obj1 = 0 ;
21553 char * kwnames[] = {
21554 (char *) "self",(char *) "y", NULL
21555 };
21556
21557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21559 if (!SWIG_IsOK(res1)) {
21560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21561 }
21562 arg1 = reinterpret_cast< wxDC * >(argp1);
21563 ecode2 = SWIG_AsVal_int(obj1, &val2);
21564 if (!SWIG_IsOK(ecode2)) {
21565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21566 }
21567 arg2 = static_cast< int >(val2);
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21571 wxPyEndAllowThreads(__tstate);
21572 if (PyErr_Occurred()) SWIG_fail;
21573 }
21574 resultobj = SWIG_From_int(static_cast< int >(result));
21575 return resultobj;
21576fail:
21577 return NULL;
21578}
21579
21580
21581SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21582 PyObject *resultobj = 0;
21583 wxDC *arg1 = (wxDC *) 0 ;
21584 int arg2 ;
21585 int result;
21586 void *argp1 = 0 ;
21587 int res1 = 0 ;
21588 int val2 ;
21589 int ecode2 = 0 ;
21590 PyObject * obj0 = 0 ;
21591 PyObject * obj1 = 0 ;
21592 char * kwnames[] = {
21593 (char *) "self",(char *) "x", NULL
21594 };
21595
21596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21598 if (!SWIG_IsOK(res1)) {
21599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21600 }
21601 arg1 = reinterpret_cast< wxDC * >(argp1);
21602 ecode2 = SWIG_AsVal_int(obj1, &val2);
21603 if (!SWIG_IsOK(ecode2)) {
21604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21605 }
21606 arg2 = static_cast< int >(val2);
21607 {
21608 PyThreadState* __tstate = wxPyBeginAllowThreads();
21609 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21610 wxPyEndAllowThreads(__tstate);
21611 if (PyErr_Occurred()) SWIG_fail;
21612 }
21613 resultobj = SWIG_From_int(static_cast< int >(result));
21614 return resultobj;
21615fail:
21616 return NULL;
21617}
21618
21619
21620SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21621 PyObject *resultobj = 0;
21622 wxDC *arg1 = (wxDC *) 0 ;
21623 int arg2 ;
21624 int result;
21625 void *argp1 = 0 ;
21626 int res1 = 0 ;
21627 int val2 ;
21628 int ecode2 = 0 ;
21629 PyObject * obj0 = 0 ;
21630 PyObject * obj1 = 0 ;
21631 char * kwnames[] = {
21632 (char *) "self",(char *) "y", NULL
21633 };
21634
21635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21637 if (!SWIG_IsOK(res1)) {
21638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21639 }
21640 arg1 = reinterpret_cast< wxDC * >(argp1);
21641 ecode2 = SWIG_AsVal_int(obj1, &val2);
21642 if (!SWIG_IsOK(ecode2)) {
21643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21644 }
21645 arg2 = static_cast< int >(val2);
21646 {
21647 PyThreadState* __tstate = wxPyBeginAllowThreads();
21648 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21649 wxPyEndAllowThreads(__tstate);
21650 if (PyErr_Occurred()) SWIG_fail;
21651 }
21652 resultobj = SWIG_From_int(static_cast< int >(result));
21653 return resultobj;
21654fail:
21655 return NULL;
21656}
21657
21658
21659SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21660 PyObject *resultobj = 0;
21661 wxDC *arg1 = (wxDC *) 0 ;
21662 int arg2 ;
21663 int result;
21664 void *argp1 = 0 ;
21665 int res1 = 0 ;
21666 int val2 ;
21667 int ecode2 = 0 ;
21668 PyObject * obj0 = 0 ;
21669 PyObject * obj1 = 0 ;
21670 char * kwnames[] = {
21671 (char *) "self",(char *) "x", NULL
21672 };
21673
21674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21676 if (!SWIG_IsOK(res1)) {
21677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21678 }
21679 arg1 = reinterpret_cast< wxDC * >(argp1);
21680 ecode2 = SWIG_AsVal_int(obj1, &val2);
21681 if (!SWIG_IsOK(ecode2)) {
21682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21683 }
21684 arg2 = static_cast< int >(val2);
21685 {
21686 PyThreadState* __tstate = wxPyBeginAllowThreads();
21687 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21688 wxPyEndAllowThreads(__tstate);
21689 if (PyErr_Occurred()) SWIG_fail;
21690 }
21691 resultobj = SWIG_From_int(static_cast< int >(result));
21692 return resultobj;
21693fail:
21694 return NULL;
21695}
21696
21697
21698SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21699 PyObject *resultobj = 0;
21700 wxDC *arg1 = (wxDC *) 0 ;
21701 int arg2 ;
21702 int result;
21703 void *argp1 = 0 ;
21704 int res1 = 0 ;
21705 int val2 ;
21706 int ecode2 = 0 ;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 char * kwnames[] = {
21710 (char *) "self",(char *) "y", NULL
21711 };
21712
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21717 }
21718 arg1 = reinterpret_cast< wxDC * >(argp1);
21719 ecode2 = SWIG_AsVal_int(obj1, &val2);
21720 if (!SWIG_IsOK(ecode2)) {
21721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21722 }
21723 arg2 = static_cast< int >(val2);
21724 {
21725 PyThreadState* __tstate = wxPyBeginAllowThreads();
21726 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 resultobj = SWIG_From_int(static_cast< int >(result));
21731 return resultobj;
21732fail:
21733 return NULL;
21734}
21735
21736
21737SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21738 PyObject *resultobj = 0;
21739 wxDC *arg1 = (wxDC *) 0 ;
21740 bool result;
21741 void *argp1 = 0 ;
21742 int res1 = 0 ;
21743 PyObject *swig_obj[1] ;
21744
21745 if (!args) SWIG_fail;
21746 swig_obj[0] = args;
21747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21748 if (!SWIG_IsOK(res1)) {
21749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21750 }
21751 arg1 = reinterpret_cast< wxDC * >(argp1);
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 {
21759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21760 }
21761 return resultobj;
21762fail:
21763 return NULL;
21764}
21765
21766
21767SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21768 PyObject *resultobj = 0;
21769 wxDC *arg1 = (wxDC *) 0 ;
21770 bool result;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 PyObject *swig_obj[1] ;
21774
21775 if (!args) SWIG_fail;
21776 swig_obj[0] = args;
21777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21778 if (!SWIG_IsOK(res1)) {
21779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21780 }
21781 arg1 = reinterpret_cast< wxDC * >(argp1);
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21785 wxPyEndAllowThreads(__tstate);
21786 if (PyErr_Occurred()) SWIG_fail;
21787 }
21788 {
21789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21790 }
21791 return resultobj;
21792fail:
21793 return NULL;
21794}
21795
21796
21797SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21798 PyObject *resultobj = 0;
21799 wxDC *arg1 = (wxDC *) 0 ;
21800 int result;
21801 void *argp1 = 0 ;
21802 int res1 = 0 ;
21803 PyObject *swig_obj[1] ;
21804
21805 if (!args) SWIG_fail;
21806 swig_obj[0] = args;
21807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21808 if (!SWIG_IsOK(res1)) {
21809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21810 }
21811 arg1 = reinterpret_cast< wxDC * >(argp1);
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = (int)((wxDC const *)arg1)->GetDepth();
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 resultobj = SWIG_From_int(static_cast< int >(result));
21819 return resultobj;
21820fail:
21821 return NULL;
21822}
21823
21824
21825SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21826 PyObject *resultobj = 0;
21827 wxDC *arg1 = (wxDC *) 0 ;
21828 wxSize result;
21829 void *argp1 = 0 ;
21830 int res1 = 0 ;
21831 PyObject *swig_obj[1] ;
21832
21833 if (!args) SWIG_fail;
21834 swig_obj[0] = args;
21835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21836 if (!SWIG_IsOK(res1)) {
21837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21838 }
21839 arg1 = reinterpret_cast< wxDC * >(argp1);
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 result = ((wxDC const *)arg1)->GetPPI();
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21847 return resultobj;
21848fail:
21849 return NULL;
21850}
21851
21852
b39fe951 21853SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21854 PyObject *resultobj = 0;
21855 wxDC *arg1 = (wxDC *) 0 ;
21856 bool result;
21857 void *argp1 = 0 ;
21858 int res1 = 0 ;
21859 PyObject *swig_obj[1] ;
21860
21861 if (!args) SWIG_fail;
21862 swig_obj[0] = args;
21863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21864 if (!SWIG_IsOK(res1)) {
b39fe951 21865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21866 }
21867 arg1 = reinterpret_cast< wxDC * >(argp1);
21868 {
21869 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21870 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 {
21875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21876 }
21877 return resultobj;
21878fail:
21879 return NULL;
21880}
21881
21882
21883SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21884 PyObject *resultobj = 0;
21885 wxDC *arg1 = (wxDC *) 0 ;
21886 int result;
21887 void *argp1 = 0 ;
21888 int res1 = 0 ;
21889 PyObject *swig_obj[1] ;
21890
21891 if (!args) SWIG_fail;
21892 swig_obj[0] = args;
21893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21896 }
21897 arg1 = reinterpret_cast< wxDC * >(argp1);
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21901 wxPyEndAllowThreads(__tstate);
21902 if (PyErr_Occurred()) SWIG_fail;
21903 }
21904 resultobj = SWIG_From_int(static_cast< int >(result));
21905 return resultobj;
21906fail:
21907 return NULL;
21908}
21909
21910
21911SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21912 PyObject *resultobj = 0;
21913 wxDC *arg1 = (wxDC *) 0 ;
21914 wxBrush *result = 0 ;
21915 void *argp1 = 0 ;
21916 int res1 = 0 ;
21917 PyObject *swig_obj[1] ;
21918
21919 if (!args) SWIG_fail;
21920 swig_obj[0] = args;
21921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21922 if (!SWIG_IsOK(res1)) {
21923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21924 }
21925 arg1 = reinterpret_cast< wxDC * >(argp1);
21926 {
21927 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21928 {
1bd55598
RD
21929 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21930 result = (wxBrush *) &_result_ref;
36ed4f51 21931 }
1bd55598
RD
21932 wxPyEndAllowThreads(__tstate);
21933 if (PyErr_Occurred()) SWIG_fail;
21934 }
21935 {
21936 wxBrush* resultptr = new wxBrush(*result);
21937 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21938 }
21939 return resultobj;
21940fail:
21941 return NULL;
21942}
21943
21944
21945SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21946 PyObject *resultobj = 0;
21947 wxDC *arg1 = (wxDC *) 0 ;
21948 wxBrush *result = 0 ;
21949 void *argp1 = 0 ;
21950 int res1 = 0 ;
21951 PyObject *swig_obj[1] ;
21952
21953 if (!args) SWIG_fail;
21954 swig_obj[0] = args;
21955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21956 if (!SWIG_IsOK(res1)) {
21957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21958 }
21959 arg1 = reinterpret_cast< wxDC * >(argp1);
21960 {
21961 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21962 {
1bd55598
RD
21963 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21964 result = (wxBrush *) &_result_ref;
36ed4f51 21965 }
1bd55598
RD
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 {
21970 wxBrush* resultptr = new wxBrush(*result);
21971 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21972 }
21973 return resultobj;
21974fail:
21975 return NULL;
21976}
21977
21978
21979SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21980 PyObject *resultobj = 0;
21981 wxDC *arg1 = (wxDC *) 0 ;
21982 wxFont *result = 0 ;
21983 void *argp1 = 0 ;
21984 int res1 = 0 ;
21985 PyObject *swig_obj[1] ;
21986
21987 if (!args) SWIG_fail;
21988 swig_obj[0] = args;
21989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21990 if (!SWIG_IsOK(res1)) {
21991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21992 }
21993 arg1 = reinterpret_cast< wxDC * >(argp1);
21994 {
21995 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21996 {
1bd55598
RD
21997 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21998 result = (wxFont *) &_result_ref;
36ed4f51 21999 }
1bd55598
RD
22000 wxPyEndAllowThreads(__tstate);
22001 if (PyErr_Occurred()) SWIG_fail;
22002 }
22003 {
22004 wxFont* resultptr = new wxFont(*result);
22005 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22006 }
22007 return resultobj;
22008fail:
22009 return NULL;
22010}
22011
22012
22013SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22014 PyObject *resultobj = 0;
22015 wxDC *arg1 = (wxDC *) 0 ;
22016 wxPen *result = 0 ;
22017 void *argp1 = 0 ;
22018 int res1 = 0 ;
22019 PyObject *swig_obj[1] ;
22020
22021 if (!args) SWIG_fail;
22022 swig_obj[0] = args;
22023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22024 if (!SWIG_IsOK(res1)) {
22025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22026 }
22027 arg1 = reinterpret_cast< wxDC * >(argp1);
22028 {
22029 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22030 {
1bd55598
RD
22031 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22032 result = (wxPen *) &_result_ref;
36ed4f51 22033 }
1bd55598
RD
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 {
22038 wxPen* resultptr = new wxPen(*result);
22039 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22040 }
22041 return resultobj;
22042fail:
22043 return NULL;
22044}
22045
22046
22047SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048 PyObject *resultobj = 0;
22049 wxDC *arg1 = (wxDC *) 0 ;
22050 wxColour *result = 0 ;
22051 void *argp1 = 0 ;
22052 int res1 = 0 ;
22053 PyObject *swig_obj[1] ;
22054
22055 if (!args) SWIG_fail;
22056 swig_obj[0] = args;
22057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22058 if (!SWIG_IsOK(res1)) {
22059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22060 }
22061 arg1 = reinterpret_cast< wxDC * >(argp1);
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22064 {
1bd55598
RD
22065 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22066 result = (wxColour *) &_result_ref;
36ed4f51 22067 }
1bd55598
RD
22068 wxPyEndAllowThreads(__tstate);
22069 if (PyErr_Occurred()) SWIG_fail;
22070 }
22071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22072 return resultobj;
22073fail:
22074 return NULL;
22075}
22076
22077
22078SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22079 PyObject *resultobj = 0;
22080 wxDC *arg1 = (wxDC *) 0 ;
22081 wxColour *result = 0 ;
22082 void *argp1 = 0 ;
22083 int res1 = 0 ;
22084 PyObject *swig_obj[1] ;
22085
22086 if (!args) SWIG_fail;
22087 swig_obj[0] = args;
22088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22089 if (!SWIG_IsOK(res1)) {
22090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22091 }
22092 arg1 = reinterpret_cast< wxDC * >(argp1);
22093 {
22094 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22095 {
1bd55598
RD
22096 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22097 result = (wxColour *) &_result_ref;
36ed4f51 22098 }
1bd55598
RD
22099 wxPyEndAllowThreads(__tstate);
22100 if (PyErr_Occurred()) SWIG_fail;
22101 }
22102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22103 return resultobj;
22104fail:
22105 return NULL;
22106}
22107
22108
22109SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj = 0;
22111 wxDC *arg1 = (wxDC *) 0 ;
22112 wxColour *arg2 = 0 ;
22113 void *argp1 = 0 ;
22114 int res1 = 0 ;
22115 wxColour temp2 ;
22116 PyObject * obj0 = 0 ;
22117 PyObject * obj1 = 0 ;
22118 char * kwnames[] = {
22119 (char *) "self",(char *) "colour", NULL
22120 };
22121
22122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22124 if (!SWIG_IsOK(res1)) {
22125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22126 }
22127 arg1 = reinterpret_cast< wxDC * >(argp1);
22128 {
22129 arg2 = &temp2;
22130 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22131 }
22132 {
22133 PyThreadState* __tstate = wxPyBeginAllowThreads();
22134 (arg1)->SetTextForeground((wxColour const &)*arg2);
22135 wxPyEndAllowThreads(__tstate);
22136 if (PyErr_Occurred()) SWIG_fail;
22137 }
22138 resultobj = SWIG_Py_Void();
22139 return resultobj;
22140fail:
22141 return NULL;
22142}
22143
22144
22145SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22146 PyObject *resultobj = 0;
22147 wxDC *arg1 = (wxDC *) 0 ;
22148 wxColour *arg2 = 0 ;
22149 void *argp1 = 0 ;
22150 int res1 = 0 ;
22151 wxColour temp2 ;
22152 PyObject * obj0 = 0 ;
22153 PyObject * obj1 = 0 ;
22154 char * kwnames[] = {
22155 (char *) "self",(char *) "colour", NULL
22156 };
22157
22158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22160 if (!SWIG_IsOK(res1)) {
22161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22162 }
22163 arg1 = reinterpret_cast< wxDC * >(argp1);
22164 {
22165 arg2 = &temp2;
22166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22167 }
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 (arg1)->SetTextBackground((wxColour const &)*arg2);
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 resultobj = SWIG_Py_Void();
22175 return resultobj;
22176fail:
22177 return NULL;
22178}
22179
22180
22181SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22182 PyObject *resultobj = 0;
22183 wxDC *arg1 = (wxDC *) 0 ;
22184 int result;
22185 void *argp1 = 0 ;
22186 int res1 = 0 ;
22187 PyObject *swig_obj[1] ;
22188
22189 if (!args) SWIG_fail;
22190 swig_obj[0] = args;
22191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22192 if (!SWIG_IsOK(res1)) {
22193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22194 }
22195 arg1 = reinterpret_cast< wxDC * >(argp1);
22196 {
22197 PyThreadState* __tstate = wxPyBeginAllowThreads();
22198 result = (int)((wxDC const *)arg1)->GetMapMode();
22199 wxPyEndAllowThreads(__tstate);
22200 if (PyErr_Occurred()) SWIG_fail;
22201 }
22202 resultobj = SWIG_From_int(static_cast< int >(result));
22203 return resultobj;
22204fail:
22205 return NULL;
22206}
22207
22208
22209SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22210 PyObject *resultobj = 0;
22211 wxDC *arg1 = (wxDC *) 0 ;
22212 int arg2 ;
22213 void *argp1 = 0 ;
22214 int res1 = 0 ;
22215 int val2 ;
22216 int ecode2 = 0 ;
22217 PyObject * obj0 = 0 ;
22218 PyObject * obj1 = 0 ;
22219 char * kwnames[] = {
22220 (char *) "self",(char *) "mode", NULL
22221 };
22222
22223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22225 if (!SWIG_IsOK(res1)) {
22226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22227 }
22228 arg1 = reinterpret_cast< wxDC * >(argp1);
22229 ecode2 = SWIG_AsVal_int(obj1, &val2);
22230 if (!SWIG_IsOK(ecode2)) {
22231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22232 }
22233 arg2 = static_cast< int >(val2);
22234 {
22235 PyThreadState* __tstate = wxPyBeginAllowThreads();
22236 (arg1)->SetMapMode(arg2);
22237 wxPyEndAllowThreads(__tstate);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 resultobj = SWIG_Py_Void();
22241 return resultobj;
22242fail:
22243 return NULL;
22244}
22245
22246
22247SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22248 PyObject *resultobj = 0;
22249 wxDC *arg1 = (wxDC *) 0 ;
22250 double *arg2 = (double *) 0 ;
22251 double *arg3 = (double *) 0 ;
22252 void *argp1 = 0 ;
22253 int res1 = 0 ;
22254 double temp2 ;
22255 int res2 = SWIG_TMPOBJ ;
22256 double temp3 ;
22257 int res3 = SWIG_TMPOBJ ;
22258 PyObject *swig_obj[1] ;
22259
22260 arg2 = &temp2;
22261 arg3 = &temp3;
22262 if (!args) SWIG_fail;
22263 swig_obj[0] = args;
22264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22265 if (!SWIG_IsOK(res1)) {
22266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22267 }
22268 arg1 = reinterpret_cast< wxDC * >(argp1);
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 resultobj = SWIG_Py_Void();
22276 if (SWIG_IsTmpObj(res2)) {
22277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22278 } else {
22279 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22281 }
22282 if (SWIG_IsTmpObj(res3)) {
22283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22284 } else {
22285 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22287 }
22288 return resultobj;
22289fail:
22290 return NULL;
22291}
22292
22293
22294SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22295 PyObject *resultobj = 0;
22296 wxDC *arg1 = (wxDC *) 0 ;
22297 double arg2 ;
22298 double arg3 ;
22299 void *argp1 = 0 ;
22300 int res1 = 0 ;
22301 double val2 ;
22302 int ecode2 = 0 ;
22303 double val3 ;
22304 int ecode3 = 0 ;
22305 PyObject * obj0 = 0 ;
22306 PyObject * obj1 = 0 ;
22307 PyObject * obj2 = 0 ;
22308 char * kwnames[] = {
22309 (char *) "self",(char *) "x",(char *) "y", NULL
22310 };
22311
22312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22314 if (!SWIG_IsOK(res1)) {
22315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22316 }
22317 arg1 = reinterpret_cast< wxDC * >(argp1);
22318 ecode2 = SWIG_AsVal_double(obj1, &val2);
22319 if (!SWIG_IsOK(ecode2)) {
22320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22321 }
22322 arg2 = static_cast< double >(val2);
22323 ecode3 = SWIG_AsVal_double(obj2, &val3);
22324 if (!SWIG_IsOK(ecode3)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22326 }
22327 arg3 = static_cast< double >(val3);
22328 {
22329 PyThreadState* __tstate = wxPyBeginAllowThreads();
22330 (arg1)->SetUserScale(arg2,arg3);
22331 wxPyEndAllowThreads(__tstate);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 resultobj = SWIG_Py_Void();
22335 return resultobj;
22336fail:
22337 return NULL;
22338}
22339
22340
22341SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22342 PyObject *resultobj = 0;
22343 wxDC *arg1 = (wxDC *) 0 ;
22344 double *arg2 = (double *) 0 ;
22345 double *arg3 = (double *) 0 ;
22346 void *argp1 = 0 ;
22347 int res1 = 0 ;
22348 double temp2 ;
22349 int res2 = SWIG_TMPOBJ ;
22350 double temp3 ;
22351 int res3 = SWIG_TMPOBJ ;
22352 PyObject *swig_obj[1] ;
22353
22354 arg2 = &temp2;
22355 arg3 = &temp3;
22356 if (!args) SWIG_fail;
22357 swig_obj[0] = args;
22358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22359 if (!SWIG_IsOK(res1)) {
22360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22361 }
22362 arg1 = reinterpret_cast< wxDC * >(argp1);
22363 {
22364 PyThreadState* __tstate = wxPyBeginAllowThreads();
22365 (arg1)->GetLogicalScale(arg2,arg3);
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 resultobj = SWIG_Py_Void();
22370 if (SWIG_IsTmpObj(res2)) {
22371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22372 } else {
22373 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22375 }
22376 if (SWIG_IsTmpObj(res3)) {
22377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22378 } else {
22379 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22381 }
22382 return resultobj;
22383fail:
22384 return NULL;
22385}
22386
22387
22388SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22389 PyObject *resultobj = 0;
22390 wxDC *arg1 = (wxDC *) 0 ;
22391 double arg2 ;
22392 double arg3 ;
22393 void *argp1 = 0 ;
22394 int res1 = 0 ;
22395 double val2 ;
22396 int ecode2 = 0 ;
22397 double val3 ;
22398 int ecode3 = 0 ;
22399 PyObject * obj0 = 0 ;
22400 PyObject * obj1 = 0 ;
22401 PyObject * obj2 = 0 ;
22402 char * kwnames[] = {
22403 (char *) "self",(char *) "x",(char *) "y", NULL
22404 };
22405
22406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22408 if (!SWIG_IsOK(res1)) {
22409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22410 }
22411 arg1 = reinterpret_cast< wxDC * >(argp1);
22412 ecode2 = SWIG_AsVal_double(obj1, &val2);
22413 if (!SWIG_IsOK(ecode2)) {
22414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22415 }
22416 arg2 = static_cast< double >(val2);
22417 ecode3 = SWIG_AsVal_double(obj2, &val3);
22418 if (!SWIG_IsOK(ecode3)) {
22419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22420 }
22421 arg3 = static_cast< double >(val3);
22422 {
22423 PyThreadState* __tstate = wxPyBeginAllowThreads();
22424 (arg1)->SetLogicalScale(arg2,arg3);
22425 wxPyEndAllowThreads(__tstate);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 resultobj = SWIG_Py_Void();
22429 return resultobj;
22430fail:
22431 return NULL;
22432}
22433
22434
22435SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22436 PyObject *resultobj = 0;
22437 wxDC *arg1 = (wxDC *) 0 ;
22438 wxPoint result;
22439 void *argp1 = 0 ;
22440 int res1 = 0 ;
22441 PyObject *swig_obj[1] ;
22442
22443 if (!args) SWIG_fail;
22444 swig_obj[0] = args;
22445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22446 if (!SWIG_IsOK(res1)) {
22447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22448 }
22449 arg1 = reinterpret_cast< wxDC * >(argp1);
22450 {
22451 PyThreadState* __tstate = wxPyBeginAllowThreads();
22452 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22457 return resultobj;
22458fail:
22459 return NULL;
22460}
22461
22462
22463SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22464 PyObject *resultobj = 0;
22465 wxDC *arg1 = (wxDC *) 0 ;
22466 int *arg2 = (int *) 0 ;
22467 int *arg3 = (int *) 0 ;
22468 void *argp1 = 0 ;
22469 int res1 = 0 ;
22470 int temp2 ;
22471 int res2 = SWIG_TMPOBJ ;
22472 int temp3 ;
22473 int res3 = SWIG_TMPOBJ ;
22474 PyObject *swig_obj[1] ;
22475
22476 arg2 = &temp2;
22477 arg3 = &temp3;
22478 if (!args) SWIG_fail;
22479 swig_obj[0] = args;
22480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22481 if (!SWIG_IsOK(res1)) {
22482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22483 }
22484 arg1 = reinterpret_cast< wxDC * >(argp1);
22485 {
22486 PyThreadState* __tstate = wxPyBeginAllowThreads();
22487 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22488 wxPyEndAllowThreads(__tstate);
22489 if (PyErr_Occurred()) SWIG_fail;
22490 }
22491 resultobj = SWIG_Py_Void();
22492 if (SWIG_IsTmpObj(res2)) {
22493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22494 } else {
22495 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22497 }
22498 if (SWIG_IsTmpObj(res3)) {
22499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22500 } else {
22501 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22503 }
22504 return resultobj;
22505fail:
22506 return NULL;
22507}
22508
22509
22510SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22511 PyObject *resultobj = 0;
22512 wxDC *arg1 = (wxDC *) 0 ;
22513 int arg2 ;
22514 int arg3 ;
22515 void *argp1 = 0 ;
22516 int res1 = 0 ;
22517 int val2 ;
22518 int ecode2 = 0 ;
22519 int val3 ;
22520 int ecode3 = 0 ;
22521 PyObject * obj0 = 0 ;
22522 PyObject * obj1 = 0 ;
22523 PyObject * obj2 = 0 ;
22524 char * kwnames[] = {
22525 (char *) "self",(char *) "x",(char *) "y", NULL
22526 };
22527
22528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22530 if (!SWIG_IsOK(res1)) {
22531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22532 }
22533 arg1 = reinterpret_cast< wxDC * >(argp1);
22534 ecode2 = SWIG_AsVal_int(obj1, &val2);
22535 if (!SWIG_IsOK(ecode2)) {
22536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22537 }
22538 arg2 = static_cast< int >(val2);
22539 ecode3 = SWIG_AsVal_int(obj2, &val3);
22540 if (!SWIG_IsOK(ecode3)) {
22541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22542 }
22543 arg3 = static_cast< int >(val3);
22544 {
22545 PyThreadState* __tstate = wxPyBeginAllowThreads();
22546 (arg1)->SetLogicalOrigin(arg2,arg3);
22547 wxPyEndAllowThreads(__tstate);
22548 if (PyErr_Occurred()) SWIG_fail;
22549 }
22550 resultobj = SWIG_Py_Void();
22551 return resultobj;
22552fail:
22553 return NULL;
22554}
22555
22556
22557SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22558 PyObject *resultobj = 0;
22559 wxDC *arg1 = (wxDC *) 0 ;
22560 wxPoint *arg2 = 0 ;
22561 void *argp1 = 0 ;
22562 int res1 = 0 ;
22563 wxPoint temp2 ;
22564 PyObject * obj0 = 0 ;
22565 PyObject * obj1 = 0 ;
22566 char * kwnames[] = {
22567 (char *) "self",(char *) "point", NULL
22568 };
22569
22570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22572 if (!SWIG_IsOK(res1)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22574 }
22575 arg1 = reinterpret_cast< wxDC * >(argp1);
22576 {
22577 arg2 = &temp2;
22578 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22579 }
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 resultobj = SWIG_Py_Void();
22587 return resultobj;
22588fail:
22589 return NULL;
22590}
22591
22592
22593SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22594 PyObject *resultobj = 0;
22595 wxDC *arg1 = (wxDC *) 0 ;
22596 wxPoint result;
22597 void *argp1 = 0 ;
22598 int res1 = 0 ;
22599 PyObject *swig_obj[1] ;
22600
22601 if (!args) SWIG_fail;
22602 swig_obj[0] = args;
22603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22604 if (!SWIG_IsOK(res1)) {
22605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22606 }
22607 arg1 = reinterpret_cast< wxDC * >(argp1);
22608 {
22609 PyThreadState* __tstate = wxPyBeginAllowThreads();
22610 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22611 wxPyEndAllowThreads(__tstate);
22612 if (PyErr_Occurred()) SWIG_fail;
22613 }
22614 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22615 return resultobj;
22616fail:
22617 return NULL;
22618}
22619
22620
22621SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22622 PyObject *resultobj = 0;
22623 wxDC *arg1 = (wxDC *) 0 ;
22624 int *arg2 = (int *) 0 ;
22625 int *arg3 = (int *) 0 ;
22626 void *argp1 = 0 ;
22627 int res1 = 0 ;
22628 int temp2 ;
22629 int res2 = SWIG_TMPOBJ ;
22630 int temp3 ;
22631 int res3 = SWIG_TMPOBJ ;
22632 PyObject *swig_obj[1] ;
22633
22634 arg2 = &temp2;
22635 arg3 = &temp3;
22636 if (!args) SWIG_fail;
22637 swig_obj[0] = args;
22638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22639 if (!SWIG_IsOK(res1)) {
22640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22641 }
22642 arg1 = reinterpret_cast< wxDC * >(argp1);
22643 {
22644 PyThreadState* __tstate = wxPyBeginAllowThreads();
22645 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 resultobj = SWIG_Py_Void();
22650 if (SWIG_IsTmpObj(res2)) {
22651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22652 } else {
22653 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22655 }
22656 if (SWIG_IsTmpObj(res3)) {
22657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22658 } else {
22659 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22661 }
22662 return resultobj;
22663fail:
22664 return NULL;
22665}
22666
22667
22668SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj = 0;
22670 wxDC *arg1 = (wxDC *) 0 ;
22671 int arg2 ;
22672 int arg3 ;
22673 void *argp1 = 0 ;
22674 int res1 = 0 ;
22675 int val2 ;
22676 int ecode2 = 0 ;
22677 int val3 ;
22678 int ecode3 = 0 ;
22679 PyObject * obj0 = 0 ;
22680 PyObject * obj1 = 0 ;
22681 PyObject * obj2 = 0 ;
22682 char * kwnames[] = {
22683 (char *) "self",(char *) "x",(char *) "y", NULL
22684 };
22685
22686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22688 if (!SWIG_IsOK(res1)) {
22689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22690 }
22691 arg1 = reinterpret_cast< wxDC * >(argp1);
22692 ecode2 = SWIG_AsVal_int(obj1, &val2);
22693 if (!SWIG_IsOK(ecode2)) {
22694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22695 }
22696 arg2 = static_cast< int >(val2);
22697 ecode3 = SWIG_AsVal_int(obj2, &val3);
22698 if (!SWIG_IsOK(ecode3)) {
22699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22700 }
22701 arg3 = static_cast< int >(val3);
22702 {
22703 PyThreadState* __tstate = wxPyBeginAllowThreads();
22704 (arg1)->SetDeviceOrigin(arg2,arg3);
22705 wxPyEndAllowThreads(__tstate);
22706 if (PyErr_Occurred()) SWIG_fail;
22707 }
22708 resultobj = SWIG_Py_Void();
22709 return resultobj;
22710fail:
22711 return NULL;
22712}
22713
22714
22715SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22716 PyObject *resultobj = 0;
22717 wxDC *arg1 = (wxDC *) 0 ;
22718 wxPoint *arg2 = 0 ;
22719 void *argp1 = 0 ;
22720 int res1 = 0 ;
22721 wxPoint temp2 ;
22722 PyObject * obj0 = 0 ;
22723 PyObject * obj1 = 0 ;
22724 char * kwnames[] = {
22725 (char *) "self",(char *) "point", NULL
22726 };
22727
22728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22730 if (!SWIG_IsOK(res1)) {
22731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22732 }
22733 arg1 = reinterpret_cast< wxDC * >(argp1);
22734 {
22735 arg2 = &temp2;
22736 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22737 }
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22741 wxPyEndAllowThreads(__tstate);
22742 if (PyErr_Occurred()) SWIG_fail;
22743 }
22744 resultobj = SWIG_Py_Void();
22745 return resultobj;
22746fail:
22747 return NULL;
22748}
22749
22750
22751SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22752 PyObject *resultobj = 0;
22753 wxDC *arg1 = (wxDC *) 0 ;
22754 bool arg2 ;
22755 bool arg3 ;
22756 void *argp1 = 0 ;
22757 int res1 = 0 ;
22758 bool val2 ;
22759 int ecode2 = 0 ;
22760 bool val3 ;
22761 int ecode3 = 0 ;
22762 PyObject * obj0 = 0 ;
22763 PyObject * obj1 = 0 ;
22764 PyObject * obj2 = 0 ;
22765 char * kwnames[] = {
22766 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22767 };
22768
22769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22771 if (!SWIG_IsOK(res1)) {
22772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22773 }
22774 arg1 = reinterpret_cast< wxDC * >(argp1);
22775 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22776 if (!SWIG_IsOK(ecode2)) {
22777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22778 }
22779 arg2 = static_cast< bool >(val2);
22780 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22781 if (!SWIG_IsOK(ecode3)) {
22782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22783 }
22784 arg3 = static_cast< bool >(val3);
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 (arg1)->SetAxisOrientation(arg2,arg3);
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 resultobj = SWIG_Py_Void();
22792 return resultobj;
22793fail:
22794 return NULL;
22795}
22796
22797
22798SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22799 PyObject *resultobj = 0;
22800 wxDC *arg1 = (wxDC *) 0 ;
22801 int result;
22802 void *argp1 = 0 ;
22803 int res1 = 0 ;
22804 PyObject *swig_obj[1] ;
22805
22806 if (!args) SWIG_fail;
22807 swig_obj[0] = args;
22808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22809 if (!SWIG_IsOK(res1)) {
22810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22811 }
22812 arg1 = reinterpret_cast< wxDC * >(argp1);
22813 {
22814 PyThreadState* __tstate = wxPyBeginAllowThreads();
22815 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22816 wxPyEndAllowThreads(__tstate);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 resultobj = SWIG_From_int(static_cast< int >(result));
22820 return resultobj;
22821fail:
22822 return NULL;
22823}
22824
22825
22826SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22827 PyObject *resultobj = 0;
22828 wxDC *arg1 = (wxDC *) 0 ;
22829 int arg2 ;
22830 void *argp1 = 0 ;
22831 int res1 = 0 ;
22832 int val2 ;
22833 int ecode2 = 0 ;
22834 PyObject * obj0 = 0 ;
22835 PyObject * obj1 = 0 ;
22836 char * kwnames[] = {
22837 (char *) "self",(char *) "function", NULL
22838 };
22839
22840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22842 if (!SWIG_IsOK(res1)) {
22843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22844 }
22845 arg1 = reinterpret_cast< wxDC * >(argp1);
22846 ecode2 = SWIG_AsVal_int(obj1, &val2);
22847 if (!SWIG_IsOK(ecode2)) {
22848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22849 }
22850 arg2 = static_cast< int >(val2);
22851 {
22852 PyThreadState* __tstate = wxPyBeginAllowThreads();
22853 (arg1)->SetLogicalFunction(arg2);
22854 wxPyEndAllowThreads(__tstate);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 }
22857 resultobj = SWIG_Py_Void();
22858 return resultobj;
22859fail:
22860 return NULL;
22861}
22862
22863
22864SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22865 PyObject *resultobj = 0;
22866 wxDC *arg1 = (wxDC *) 0 ;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 PyObject *swig_obj[1] ;
22870
22871 if (!args) SWIG_fail;
22872 swig_obj[0] = args;
22873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22874 if (!SWIG_IsOK(res1)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22876 }
22877 arg1 = reinterpret_cast< wxDC * >(argp1);
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 (arg1)->ComputeScaleAndOrigin();
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = SWIG_Py_Void();
22885 return resultobj;
22886fail:
22887 return NULL;
22888}
22889
22890
22891SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22892 PyObject *resultobj = 0;
22893 wxDC *arg1 = (wxDC *) 0 ;
22894 int arg2 ;
22895 int arg3 ;
22896 void *argp1 = 0 ;
22897 int res1 = 0 ;
22898 int val2 ;
22899 int ecode2 = 0 ;
22900 int val3 ;
22901 int ecode3 = 0 ;
22902 PyObject * obj0 = 0 ;
22903 PyObject * obj1 = 0 ;
22904 PyObject * obj2 = 0 ;
22905 char * kwnames[] = {
22906 (char *) "self",(char *) "x",(char *) "y", NULL
22907 };
22908
22909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22911 if (!SWIG_IsOK(res1)) {
22912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22913 }
22914 arg1 = reinterpret_cast< wxDC * >(argp1);
22915 ecode2 = SWIG_AsVal_int(obj1, &val2);
22916 if (!SWIG_IsOK(ecode2)) {
22917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22918 }
22919 arg2 = static_cast< int >(val2);
22920 ecode3 = SWIG_AsVal_int(obj2, &val3);
22921 if (!SWIG_IsOK(ecode3)) {
22922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22923 }
22924 arg3 = static_cast< int >(val3);
22925 {
22926 PyThreadState* __tstate = wxPyBeginAllowThreads();
22927 (arg1)->CalcBoundingBox(arg2,arg3);
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_Py_Void();
22932 return resultobj;
22933fail:
22934 return NULL;
22935}
22936
22937
22938SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22939 PyObject *resultobj = 0;
22940 wxDC *arg1 = (wxDC *) 0 ;
22941 wxPoint *arg2 = 0 ;
22942 void *argp1 = 0 ;
22943 int res1 = 0 ;
22944 wxPoint temp2 ;
22945 PyObject * obj0 = 0 ;
22946 PyObject * obj1 = 0 ;
22947 char * kwnames[] = {
22948 (char *) "self",(char *) "point", NULL
22949 };
22950
22951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22953 if (!SWIG_IsOK(res1)) {
22954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22955 }
22956 arg1 = reinterpret_cast< wxDC * >(argp1);
22957 {
22958 arg2 = &temp2;
22959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22960 }
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22964 wxPyEndAllowThreads(__tstate);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 }
22967 resultobj = SWIG_Py_Void();
22968 return resultobj;
22969fail:
22970 return NULL;
22971}
22972
22973
22974SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22975 PyObject *resultobj = 0;
22976 wxDC *arg1 = (wxDC *) 0 ;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 PyObject *swig_obj[1] ;
22980
22981 if (!args) SWIG_fail;
22982 swig_obj[0] = args;
22983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22986 }
22987 arg1 = reinterpret_cast< wxDC * >(argp1);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 (arg1)->ResetBoundingBox();
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_Py_Void();
22995 return resultobj;
22996fail:
22997 return NULL;
22998}
22999
23000
23001SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *resultobj = 0;
23003 wxDC *arg1 = (wxDC *) 0 ;
23004 int result;
23005 void *argp1 = 0 ;
23006 int res1 = 0 ;
23007 PyObject *swig_obj[1] ;
23008
23009 if (!args) SWIG_fail;
23010 swig_obj[0] = args;
23011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23014 }
23015 arg1 = reinterpret_cast< wxDC * >(argp1);
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (int)((wxDC const *)arg1)->MinX();
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = SWIG_From_int(static_cast< int >(result));
23023 return resultobj;
23024fail:
23025 return NULL;
23026}
23027
23028
23029SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23030 PyObject *resultobj = 0;
23031 wxDC *arg1 = (wxDC *) 0 ;
23032 int result;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 PyObject *swig_obj[1] ;
23036
23037 if (!args) SWIG_fail;
23038 swig_obj[0] = args;
23039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23042 }
23043 arg1 = reinterpret_cast< wxDC * >(argp1);
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 result = (int)((wxDC const *)arg1)->MaxX();
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_From_int(static_cast< int >(result));
23051 return resultobj;
23052fail:
23053 return NULL;
23054}
23055
23056
23057SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxDC *arg1 = (wxDC *) 0 ;
23060 int result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23070 }
23071 arg1 = reinterpret_cast< wxDC * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (int)((wxDC const *)arg1)->MinY();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 resultobj = SWIG_From_int(static_cast< int >(result));
23079 return resultobj;
23080fail:
23081 return NULL;
23082}
23083
23084
23085SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxDC *arg1 = (wxDC *) 0 ;
23088 int result;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 PyObject *swig_obj[1] ;
23092
23093 if (!args) SWIG_fail;
23094 swig_obj[0] = args;
23095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23098 }
23099 arg1 = reinterpret_cast< wxDC * >(argp1);
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 result = (int)((wxDC const *)arg1)->MaxY();
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 resultobj = SWIG_From_int(static_cast< int >(result));
23107 return resultobj;
23108fail:
23109 return NULL;
23110}
23111
23112
23113SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23114 PyObject *resultobj = 0;
23115 wxDC *arg1 = (wxDC *) 0 ;
23116 int *arg2 = (int *) 0 ;
23117 int *arg3 = (int *) 0 ;
23118 int *arg4 = (int *) 0 ;
23119 int *arg5 = (int *) 0 ;
23120 void *argp1 = 0 ;
23121 int res1 = 0 ;
23122 int temp2 ;
23123 int res2 = SWIG_TMPOBJ ;
23124 int temp3 ;
23125 int res3 = SWIG_TMPOBJ ;
23126 int temp4 ;
23127 int res4 = SWIG_TMPOBJ ;
23128 int temp5 ;
23129 int res5 = SWIG_TMPOBJ ;
23130 PyObject *swig_obj[1] ;
23131
23132 arg2 = &temp2;
23133 arg3 = &temp3;
23134 arg4 = &temp4;
23135 arg5 = &temp5;
23136 if (!args) SWIG_fail;
23137 swig_obj[0] = args;
23138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23139 if (!SWIG_IsOK(res1)) {
23140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23141 }
23142 arg1 = reinterpret_cast< wxDC * >(argp1);
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 resultobj = SWIG_Py_Void();
23150 if (SWIG_IsTmpObj(res2)) {
23151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23152 } else {
23153 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23155 }
23156 if (SWIG_IsTmpObj(res3)) {
23157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23158 } else {
23159 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23161 }
23162 if (SWIG_IsTmpObj(res4)) {
23163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23164 } else {
23165 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23167 }
23168 if (SWIG_IsTmpObj(res5)) {
23169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23170 } else {
23171 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23173 }
23174 return resultobj;
23175fail:
23176 return NULL;
23177}
23178
23179
b39fe951
RD
23180SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23181 PyObject *resultobj = 0;
23182 wxDC *arg1 = (wxDC *) 0 ;
23183 wxLayoutDirection result;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 PyObject *swig_obj[1] ;
23187
23188 if (!args) SWIG_fail;
23189 swig_obj[0] = args;
23190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23191 if (!SWIG_IsOK(res1)) {
23192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23193 }
23194 arg1 = reinterpret_cast< wxDC * >(argp1);
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23198 wxPyEndAllowThreads(__tstate);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 resultobj = SWIG_From_int(static_cast< int >(result));
23202 return resultobj;
23203fail:
23204 return NULL;
23205}
23206
23207
23208SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23209 PyObject *resultobj = 0;
23210 wxDC *arg1 = (wxDC *) 0 ;
23211 wxLayoutDirection arg2 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 int val2 ;
23215 int ecode2 = 0 ;
23216 PyObject * obj0 = 0 ;
23217 PyObject * obj1 = 0 ;
23218 char * kwnames[] = {
23219 (char *) "self",(char *) "dir", NULL
23220 };
23221
23222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23224 if (!SWIG_IsOK(res1)) {
23225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23226 }
23227 arg1 = reinterpret_cast< wxDC * >(argp1);
23228 ecode2 = SWIG_AsVal_int(obj1, &val2);
23229 if (!SWIG_IsOK(ecode2)) {
23230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23231 }
23232 arg2 = static_cast< wxLayoutDirection >(val2);
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 (arg1)->SetLayoutDirection(arg2);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 return resultobj;
23241fail:
23242 return NULL;
23243}
23244
23245
1bd55598
RD
23246SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23247 PyObject *resultobj = 0;
23248 wxDC *arg1 = (wxDC *) 0 ;
23249 PyObject *arg2 = (PyObject *) 0 ;
23250 PyObject *arg3 = (PyObject *) 0 ;
23251 PyObject *arg4 = (PyObject *) 0 ;
23252 PyObject *result = 0 ;
23253 void *argp1 = 0 ;
23254 int res1 = 0 ;
23255 PyObject * obj0 = 0 ;
23256 PyObject * obj1 = 0 ;
23257 PyObject * obj2 = 0 ;
23258 PyObject * obj3 = 0 ;
23259 char * kwnames[] = {
23260 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23261 };
23262
23263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23265 if (!SWIG_IsOK(res1)) {
23266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23267 }
23268 arg1 = reinterpret_cast< wxDC * >(argp1);
23269 arg2 = obj1;
23270 arg3 = obj2;
23271 arg4 = obj3;
23272 {
23273 PyThreadState* __tstate = wxPyBeginAllowThreads();
23274 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23275 wxPyEndAllowThreads(__tstate);
23276 if (PyErr_Occurred()) SWIG_fail;
23277 }
23278 resultobj = result;
23279 return resultobj;
23280fail:
23281 return NULL;
23282}
23283
23284
23285SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23286 PyObject *resultobj = 0;
23287 wxDC *arg1 = (wxDC *) 0 ;
23288 PyObject *arg2 = (PyObject *) 0 ;
23289 PyObject *arg3 = (PyObject *) 0 ;
23290 PyObject *arg4 = (PyObject *) 0 ;
23291 PyObject *result = 0 ;
23292 void *argp1 = 0 ;
23293 int res1 = 0 ;
23294 PyObject * obj0 = 0 ;
23295 PyObject * obj1 = 0 ;
23296 PyObject * obj2 = 0 ;
23297 PyObject * obj3 = 0 ;
23298 char * kwnames[] = {
23299 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23300 };
23301
23302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23304 if (!SWIG_IsOK(res1)) {
23305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23306 }
23307 arg1 = reinterpret_cast< wxDC * >(argp1);
23308 arg2 = obj1;
23309 arg3 = obj2;
23310 arg4 = obj3;
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23314 wxPyEndAllowThreads(__tstate);
23315 if (PyErr_Occurred()) SWIG_fail;
23316 }
23317 resultobj = result;
23318 return resultobj;
23319fail:
23320 return NULL;
23321}
23322
23323
23324SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23325 PyObject *resultobj = 0;
23326 wxDC *arg1 = (wxDC *) 0 ;
23327 PyObject *arg2 = (PyObject *) 0 ;
23328 PyObject *arg3 = (PyObject *) 0 ;
23329 PyObject *arg4 = (PyObject *) 0 ;
23330 PyObject *result = 0 ;
23331 void *argp1 = 0 ;
23332 int res1 = 0 ;
23333 PyObject * obj0 = 0 ;
23334 PyObject * obj1 = 0 ;
23335 PyObject * obj2 = 0 ;
23336 PyObject * obj3 = 0 ;
23337 char * kwnames[] = {
23338 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23339 };
23340
23341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23343 if (!SWIG_IsOK(res1)) {
23344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23345 }
23346 arg1 = reinterpret_cast< wxDC * >(argp1);
23347 arg2 = obj1;
23348 arg3 = obj2;
23349 arg4 = obj3;
23350 {
23351 PyThreadState* __tstate = wxPyBeginAllowThreads();
23352 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23353 wxPyEndAllowThreads(__tstate);
23354 if (PyErr_Occurred()) SWIG_fail;
23355 }
23356 resultobj = result;
23357 return resultobj;
23358fail:
23359 return NULL;
23360}
23361
23362
23363SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23364 PyObject *resultobj = 0;
23365 wxDC *arg1 = (wxDC *) 0 ;
23366 PyObject *arg2 = (PyObject *) 0 ;
23367 PyObject *arg3 = (PyObject *) 0 ;
23368 PyObject *arg4 = (PyObject *) 0 ;
23369 PyObject *result = 0 ;
23370 void *argp1 = 0 ;
23371 int res1 = 0 ;
23372 PyObject * obj0 = 0 ;
23373 PyObject * obj1 = 0 ;
23374 PyObject * obj2 = 0 ;
23375 PyObject * obj3 = 0 ;
23376 char * kwnames[] = {
23377 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23378 };
23379
23380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23382 if (!SWIG_IsOK(res1)) {
23383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23384 }
23385 arg1 = reinterpret_cast< wxDC * >(argp1);
23386 arg2 = obj1;
23387 arg3 = obj2;
23388 arg4 = obj3;
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = result;
23396 return resultobj;
23397fail:
23398 return NULL;
23399}
23400
23401
23402SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23403 PyObject *resultobj = 0;
23404 wxDC *arg1 = (wxDC *) 0 ;
23405 PyObject *arg2 = (PyObject *) 0 ;
23406 PyObject *arg3 = (PyObject *) 0 ;
23407 PyObject *arg4 = (PyObject *) 0 ;
23408 PyObject *result = 0 ;
23409 void *argp1 = 0 ;
23410 int res1 = 0 ;
23411 PyObject * obj0 = 0 ;
23412 PyObject * obj1 = 0 ;
23413 PyObject * obj2 = 0 ;
23414 PyObject * obj3 = 0 ;
23415 char * kwnames[] = {
23416 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23417 };
23418
23419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23421 if (!SWIG_IsOK(res1)) {
23422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23423 }
23424 arg1 = reinterpret_cast< wxDC * >(argp1);
23425 arg2 = obj1;
23426 arg3 = obj2;
23427 arg4 = obj3;
23428 {
23429 PyThreadState* __tstate = wxPyBeginAllowThreads();
23430 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23431 wxPyEndAllowThreads(__tstate);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 resultobj = result;
23435 return resultobj;
23436fail:
23437 return NULL;
23438}
23439
23440
23441SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23442 PyObject *resultobj = 0;
23443 wxDC *arg1 = (wxDC *) 0 ;
23444 PyObject *arg2 = (PyObject *) 0 ;
23445 PyObject *arg3 = (PyObject *) 0 ;
23446 PyObject *arg4 = (PyObject *) 0 ;
23447 PyObject *arg5 = (PyObject *) 0 ;
23448 PyObject *result = 0 ;
23449 void *argp1 = 0 ;
23450 int res1 = 0 ;
23451 PyObject * obj0 = 0 ;
23452 PyObject * obj1 = 0 ;
23453 PyObject * obj2 = 0 ;
23454 PyObject * obj3 = 0 ;
23455 PyObject * obj4 = 0 ;
23456 char * kwnames[] = {
23457 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23458 };
23459
23460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23462 if (!SWIG_IsOK(res1)) {
23463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23464 }
23465 arg1 = reinterpret_cast< wxDC * >(argp1);
23466 arg2 = obj1;
23467 arg3 = obj2;
23468 arg4 = obj3;
23469 arg5 = obj4;
23470 {
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = result;
23477 return resultobj;
23478fail:
23479 return NULL;
23480}
23481
23482
23483SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23484 PyObject *obj;
23485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23486 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23487 return SWIG_Py_Void();
23488}
23489
70d7cb34
RD
23490SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj = 0;
23492 wxDC *arg1 = 0 ;
23493 wxColour *arg2 = 0 ;
23494 wxDCTextColourChanger *result = 0 ;
23495 void *argp1 = 0 ;
23496 int res1 = 0 ;
23497 wxColour temp2 ;
23498 PyObject * obj0 = 0 ;
23499 PyObject * obj1 = 0 ;
23500 char * kwnames[] = {
23501 (char *) "dc",(char *) "col", NULL
23502 };
23503
23504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23505 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23506 if (!SWIG_IsOK(res1)) {
23507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23508 }
23509 if (!argp1) {
23510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23511 }
23512 arg1 = reinterpret_cast< wxDC * >(argp1);
23513 {
23514 arg2 = &temp2;
23515 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23516 }
23517 {
23518 PyThreadState* __tstate = wxPyBeginAllowThreads();
23519 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23524 return resultobj;
23525fail:
23526 return NULL;
23527}
23528
23529
23530SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23531 PyObject *resultobj = 0;
23532 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23533 void *argp1 = 0 ;
23534 int res1 = 0 ;
23535 PyObject *swig_obj[1] ;
23536
23537 if (!args) SWIG_fail;
23538 swig_obj[0] = args;
23539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23540 if (!SWIG_IsOK(res1)) {
23541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23542 }
23543 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23544 {
23545 PyThreadState* __tstate = wxPyBeginAllowThreads();
23546 delete arg1;
23547
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_Py_Void();
23552 return resultobj;
23553fail:
23554 return NULL;
23555}
23556
23557
23558SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23559 PyObject *obj;
23560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23561 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23562 return SWIG_Py_Void();
23563}
23564
23565SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23566 return SWIG_Python_InitShadowInstance(args);
23567}
23568
23569SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23570 PyObject *resultobj = 0;
23571 wxDC *arg1 = 0 ;
23572 wxPen *arg2 = 0 ;
23573 wxDCPenChanger *result = 0 ;
23574 void *argp1 = 0 ;
23575 int res1 = 0 ;
23576 void *argp2 = 0 ;
23577 int res2 = 0 ;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 char * kwnames[] = {
23581 (char *) "dc",(char *) "pen", NULL
23582 };
23583
23584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23585 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23586 if (!SWIG_IsOK(res1)) {
23587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23588 }
23589 if (!argp1) {
23590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23591 }
23592 arg1 = reinterpret_cast< wxDC * >(argp1);
23593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23594 if (!SWIG_IsOK(res2)) {
23595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23596 }
23597 if (!argp2) {
23598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23599 }
23600 arg2 = reinterpret_cast< wxPen * >(argp2);
23601 {
23602 PyThreadState* __tstate = wxPyBeginAllowThreads();
23603 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23604 wxPyEndAllowThreads(__tstate);
23605 if (PyErr_Occurred()) SWIG_fail;
23606 }
23607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23608 return resultobj;
23609fail:
23610 return NULL;
23611}
23612
23613
23614SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23615 PyObject *resultobj = 0;
23616 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23617 void *argp1 = 0 ;
23618 int res1 = 0 ;
23619 PyObject *swig_obj[1] ;
23620
23621 if (!args) SWIG_fail;
23622 swig_obj[0] = args;
23623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23624 if (!SWIG_IsOK(res1)) {
23625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23626 }
23627 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 delete arg1;
23631
23632 wxPyEndAllowThreads(__tstate);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 resultobj = SWIG_Py_Void();
23636 return resultobj;
23637fail:
23638 return NULL;
23639}
23640
23641
23642SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23643 PyObject *obj;
23644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23645 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23646 return SWIG_Py_Void();
23647}
23648
23649SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23650 return SWIG_Python_InitShadowInstance(args);
23651}
23652
23653SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23654 PyObject *resultobj = 0;
23655 wxDC *arg1 = 0 ;
23656 wxBrush *arg2 = 0 ;
23657 wxDCBrushChanger *result = 0 ;
23658 void *argp1 = 0 ;
23659 int res1 = 0 ;
23660 void *argp2 = 0 ;
23661 int res2 = 0 ;
23662 PyObject * obj0 = 0 ;
23663 PyObject * obj1 = 0 ;
23664 char * kwnames[] = {
23665 (char *) "dc",(char *) "brush", NULL
23666 };
23667
23668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23669 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23670 if (!SWIG_IsOK(res1)) {
23671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23672 }
23673 if (!argp1) {
23674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23675 }
23676 arg1 = reinterpret_cast< wxDC * >(argp1);
23677 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23678 if (!SWIG_IsOK(res2)) {
23679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23680 }
23681 if (!argp2) {
23682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23683 }
23684 arg2 = reinterpret_cast< wxBrush * >(argp2);
23685 {
23686 PyThreadState* __tstate = wxPyBeginAllowThreads();
23687 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23688 wxPyEndAllowThreads(__tstate);
23689 if (PyErr_Occurred()) SWIG_fail;
23690 }
23691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23692 return resultobj;
23693fail:
23694 return NULL;
23695}
23696
23697
23698SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23699 PyObject *resultobj = 0;
23700 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23701 void *argp1 = 0 ;
23702 int res1 = 0 ;
23703 PyObject *swig_obj[1] ;
23704
23705 if (!args) SWIG_fail;
23706 swig_obj[0] = args;
23707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23708 if (!SWIG_IsOK(res1)) {
23709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23710 }
23711 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23712 {
23713 PyThreadState* __tstate = wxPyBeginAllowThreads();
23714 delete arg1;
23715
23716 wxPyEndAllowThreads(__tstate);
23717 if (PyErr_Occurred()) SWIG_fail;
23718 }
23719 resultobj = SWIG_Py_Void();
23720 return resultobj;
23721fail:
23722 return NULL;
23723}
23724
23725
23726SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23727 PyObject *obj;
23728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23729 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23730 return SWIG_Py_Void();
23731}
23732
23733SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23734 return SWIG_Python_InitShadowInstance(args);
23735}
23736
23737SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23738 PyObject *resultobj = 0;
23739 wxDC *arg1 = 0 ;
23740 wxRegion *arg2 = 0 ;
23741 wxDCClipper *result = 0 ;
23742 void *argp1 = 0 ;
23743 int res1 = 0 ;
23744 void *argp2 = 0 ;
23745 int res2 = 0 ;
23746
23747 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23749 if (!SWIG_IsOK(res1)) {
23750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23751 }
23752 if (!argp1) {
23753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23754 }
23755 arg1 = reinterpret_cast< wxDC * >(argp1);
23756 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23757 if (!SWIG_IsOK(res2)) {
23758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23759 }
23760 if (!argp2) {
23761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23762 }
23763 arg2 = reinterpret_cast< wxRegion * >(argp2);
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23771 return resultobj;
23772fail:
23773 return NULL;
23774}
23775
23776
23777SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23778 PyObject *resultobj = 0;
23779 wxDC *arg1 = 0 ;
23780 wxRect *arg2 = 0 ;
23781 wxDCClipper *result = 0 ;
23782 void *argp1 = 0 ;
23783 int res1 = 0 ;
23784 wxRect temp2 ;
23785
23786 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23788 if (!SWIG_IsOK(res1)) {
23789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23790 }
23791 if (!argp1) {
23792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23793 }
23794 arg1 = reinterpret_cast< wxDC * >(argp1);
23795 {
23796 arg2 = &temp2;
23797 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23798 }
23799 {
23800 PyThreadState* __tstate = wxPyBeginAllowThreads();
23801 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23802 wxPyEndAllowThreads(__tstate);
23803 if (PyErr_Occurred()) SWIG_fail;
23804 }
23805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23806 return resultobj;
23807fail:
23808 return NULL;
23809}
23810
23811
23812SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23813 PyObject *resultobj = 0;
23814 wxDC *arg1 = 0 ;
23815 int arg2 ;
23816 int arg3 ;
23817 int arg4 ;
23818 int arg5 ;
23819 wxDCClipper *result = 0 ;
23820 void *argp1 = 0 ;
23821 int res1 = 0 ;
23822 int val2 ;
23823 int ecode2 = 0 ;
23824 int val3 ;
23825 int ecode3 = 0 ;
23826 int val4 ;
23827 int ecode4 = 0 ;
23828 int val5 ;
23829 int ecode5 = 0 ;
23830
23831 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23833 if (!SWIG_IsOK(res1)) {
23834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23835 }
23836 if (!argp1) {
23837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23838 }
23839 arg1 = reinterpret_cast< wxDC * >(argp1);
23840 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23841 if (!SWIG_IsOK(ecode2)) {
23842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23843 }
23844 arg2 = static_cast< int >(val2);
23845 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23846 if (!SWIG_IsOK(ecode3)) {
23847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23848 }
23849 arg3 = static_cast< int >(val3);
23850 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23851 if (!SWIG_IsOK(ecode4)) {
23852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23853 }
23854 arg4 = static_cast< int >(val4);
23855 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23856 if (!SWIG_IsOK(ecode5)) {
23857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23858 }
23859 arg5 = static_cast< int >(val5);
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23863 wxPyEndAllowThreads(__tstate);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23867 return resultobj;
23868fail:
23869 return NULL;
23870}
23871
23872
23873SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23874 int argc;
23875 PyObject *argv[6];
23876
23877 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23878 --argc;
23879 if (argc == 2) {
23880 int _v = 0;
23881 {
23882 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23883 _v = SWIG_CheckState(res);
23884 }
23885 if (!_v) goto check_1;
23886 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23887 }
23888check_1:
23889
23890 if (argc == 2) {
23891 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23892 }
23893 if (argc == 5) {
23894 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23895 }
23896
23897fail:
23898 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23899 return NULL;
23900}
23901
23902
23903SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23904 PyObject *resultobj = 0;
23905 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23906 void *argp1 = 0 ;
23907 int res1 = 0 ;
23908 PyObject *swig_obj[1] ;
23909
23910 if (!args) SWIG_fail;
23911 swig_obj[0] = args;
23912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23915 }
23916 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23917 {
23918 PyThreadState* __tstate = wxPyBeginAllowThreads();
23919 delete arg1;
23920
23921 wxPyEndAllowThreads(__tstate);
23922 if (PyErr_Occurred()) SWIG_fail;
23923 }
23924 resultobj = SWIG_Py_Void();
23925 return resultobj;
23926fail:
23927 return NULL;
23928}
23929
23930
23931SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23932 PyObject *obj;
23933 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23934 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23935 return SWIG_Py_Void();
23936}
23937
23938SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23939 return SWIG_Python_InitShadowInstance(args);
23940}
23941
24f6c4e8
RD
23942SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23943 PyObject *resultobj = 0;
23944 wxScreenDC *result = 0 ;
23945
23946 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23947 {
23948 if (!wxPyCheckForApp()) SWIG_fail;
23949 PyThreadState* __tstate = wxPyBeginAllowThreads();
23950 result = (wxScreenDC *)new wxScreenDC();
23951 wxPyEndAllowThreads(__tstate);
23952 if (PyErr_Occurred()) SWIG_fail;
23953 }
23954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23955 return resultobj;
23956fail:
23957 return NULL;
23958}
23959
23960
23961SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23962 PyObject *resultobj = 0;
23963 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23964 wxWindow *arg2 = (wxWindow *) 0 ;
23965 bool result;
23966 void *argp1 = 0 ;
23967 int res1 = 0 ;
23968 void *argp2 = 0 ;
23969 int res2 = 0 ;
23970 PyObject * obj0 = 0 ;
23971 PyObject * obj1 = 0 ;
23972 char * kwnames[] = {
23973 (char *) "self",(char *) "window", NULL
23974 };
23975
23976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23978 if (!SWIG_IsOK(res1)) {
23979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23980 }
23981 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23983 if (!SWIG_IsOK(res2)) {
23984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23985 }
23986 arg2 = reinterpret_cast< wxWindow * >(argp2);
23987 {
23988 PyThreadState* __tstate = wxPyBeginAllowThreads();
23989 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23990 wxPyEndAllowThreads(__tstate);
23991 if (PyErr_Occurred()) SWIG_fail;
23992 }
23993 {
23994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23995 }
23996 return resultobj;
23997fail:
23998 return NULL;
23999}
24000
24001
24002SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24003 PyObject *resultobj = 0;
24004 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24005 wxRect *arg2 = (wxRect *) NULL ;
24006 bool result;
24007 void *argp1 = 0 ;
24008 int res1 = 0 ;
24009 void *argp2 = 0 ;
24010 int res2 = 0 ;
24011 PyObject * obj0 = 0 ;
24012 PyObject * obj1 = 0 ;
24013 char * kwnames[] = {
24014 (char *) "self",(char *) "rect", NULL
24015 };
24016
24017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24019 if (!SWIG_IsOK(res1)) {
24020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24021 }
24022 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24023 if (obj1) {
24024 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24025 if (!SWIG_IsOK(res2)) {
24026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24027 }
24028 arg2 = reinterpret_cast< wxRect * >(argp2);
24029 }
24030 {
24031 PyThreadState* __tstate = wxPyBeginAllowThreads();
24032 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 {
24037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24038 }
24039 return resultobj;
24040fail:
24041 return NULL;
24042}
24043
24044
24045SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24046 PyObject *resultobj = 0;
24047 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24048 bool result;
24049 void *argp1 = 0 ;
24050 int res1 = 0 ;
24051 PyObject *swig_obj[1] ;
24052
24053 if (!args) SWIG_fail;
24054 swig_obj[0] = args;
24055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24056 if (!SWIG_IsOK(res1)) {
24057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24058 }
24059 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24060 {
24061 PyThreadState* __tstate = wxPyBeginAllowThreads();
24062 result = (bool)(arg1)->EndDrawingOnTop();
24063 wxPyEndAllowThreads(__tstate);
24064 if (PyErr_Occurred()) SWIG_fail;
24065 }
24066 {
24067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24068 }
24069 return resultobj;
24070fail:
24071 return NULL;
24072}
24073
24074
24075SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24076 PyObject *obj;
24077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24078 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24079 return SWIG_Py_Void();
24080}
24081
24082SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24083 return SWIG_Python_InitShadowInstance(args);
24084}
24085
24086SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24087 PyObject *resultobj = 0;
24088 wxWindow *arg1 = (wxWindow *) 0 ;
24089 wxWindowDC *result = 0 ;
24090 void *argp1 = 0 ;
24091 int res1 = 0 ;
24092 PyObject * obj0 = 0 ;
24093 char * kwnames[] = {
24094 (char *) "win", NULL
24095 };
24096
24097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24099 if (!SWIG_IsOK(res1)) {
24100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24101 }
24102 arg1 = reinterpret_cast< wxWindow * >(argp1);
24103 {
24104 if (!wxPyCheckForApp()) SWIG_fail;
24105 PyThreadState* __tstate = wxPyBeginAllowThreads();
24106 result = (wxWindowDC *)new wxWindowDC(arg1);
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24111 return resultobj;
24112fail:
24113 return NULL;
24114}
24115
24116
24117SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24118 PyObject *obj;
24119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24120 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24121 return SWIG_Py_Void();
24122}
24123
24124SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24125 return SWIG_Python_InitShadowInstance(args);
24126}
24127
24128SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24129 PyObject *resultobj = 0;
24130 wxWindow *arg1 = (wxWindow *) 0 ;
24131 wxClientDC *result = 0 ;
24132 void *argp1 = 0 ;
24133 int res1 = 0 ;
24134 PyObject * obj0 = 0 ;
24135 char * kwnames[] = {
24136 (char *) "win", NULL
24137 };
24138
24139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24141 if (!SWIG_IsOK(res1)) {
24142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24143 }
24144 arg1 = reinterpret_cast< wxWindow * >(argp1);
24145 {
24146 if (!wxPyCheckForApp()) SWIG_fail;
24147 PyThreadState* __tstate = wxPyBeginAllowThreads();
24148 result = (wxClientDC *)new wxClientDC(arg1);
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24153 return resultobj;
24154fail:
24155 return NULL;
24156}
24157
24158
24159SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24160 PyObject *obj;
24161 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24162 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24163 return SWIG_Py_Void();
24164}
24165
24166SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24167 return SWIG_Python_InitShadowInstance(args);
24168}
24169
24170SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24171 PyObject *resultobj = 0;
24172 wxWindow *arg1 = (wxWindow *) 0 ;
24173 wxPaintDC *result = 0 ;
24174 void *argp1 = 0 ;
24175 int res1 = 0 ;
24176 PyObject * obj0 = 0 ;
24177 char * kwnames[] = {
24178 (char *) "win", NULL
24179 };
24180
24181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24183 if (!SWIG_IsOK(res1)) {
24184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24185 }
24186 arg1 = reinterpret_cast< wxWindow * >(argp1);
24187 {
24188 if (!wxPyCheckForApp()) SWIG_fail;
24189 PyThreadState* __tstate = wxPyBeginAllowThreads();
24190 result = (wxPaintDC *)new wxPaintDC(arg1);
24191 wxPyEndAllowThreads(__tstate);
24192 if (PyErr_Occurred()) SWIG_fail;
24193 }
24194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24195 return resultobj;
24196fail:
24197 return NULL;
24198}
24199
24200
24201SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24202 PyObject *obj;
24203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24204 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24205 return SWIG_Py_Void();
24206}
24207
24208SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24209 return SWIG_Python_InitShadowInstance(args);
24210}
24211
26c4d26f
RD
24212SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24213 PyObject *resultobj = 0;
24214 wxBitmap &arg1_defvalue = wxNullBitmap ;
24215 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24216 wxMemoryDC *result = 0 ;
24217 void *argp1 = 0 ;
24218 int res1 = 0 ;
24219 PyObject * obj0 = 0 ;
24220 char * kwnames[] = {
24221 (char *) "bitmap", NULL
24222 };
24223
24224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24225 if (obj0) {
24226 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24227 if (!SWIG_IsOK(res1)) {
24228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24229 }
24230 if (!argp1) {
24231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24232 }
24233 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24234 }
24235 {
24236 if (!wxPyCheckForApp()) SWIG_fail;
24237 PyThreadState* __tstate = wxPyBeginAllowThreads();
24238 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24243 return resultobj;
24244fail:
24245 return NULL;
24246}
24247
24248
24249SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj = 0;
24251 wxDC *arg1 = (wxDC *) 0 ;
24252 wxMemoryDC *result = 0 ;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 PyObject * obj0 = 0 ;
24256 char * kwnames[] = {
24257 (char *) "oldDC", NULL
24258 };
24259
24260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24264 }
24265 arg1 = reinterpret_cast< wxDC * >(argp1);
24266 {
24267 if (!wxPyCheckForApp()) SWIG_fail;
24268 PyThreadState* __tstate = wxPyBeginAllowThreads();
24269 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24270 wxPyEndAllowThreads(__tstate);
24271 if (PyErr_Occurred()) SWIG_fail;
24272 }
24273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24274 return resultobj;
24275fail:
24276 return NULL;
24277}
24278
24279
24280SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24281 PyObject *resultobj = 0;
24282 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24283 wxBitmap *arg2 = 0 ;
24284 void *argp1 = 0 ;
24285 int res1 = 0 ;
24286 void *argp2 = 0 ;
24287 int res2 = 0 ;
24288 PyObject * obj0 = 0 ;
24289 PyObject * obj1 = 0 ;
24290 char * kwnames[] = {
24291 (char *) "self",(char *) "bitmap", NULL
24292 };
24293
24294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24296 if (!SWIG_IsOK(res1)) {
24297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24298 }
24299 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24301 if (!SWIG_IsOK(res2)) {
24302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24303 }
24304 if (!argp2) {
24305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24306 }
24307 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24308 {
24309 PyThreadState* __tstate = wxPyBeginAllowThreads();
24310 (arg1)->SelectObject(*arg2);
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 resultobj = SWIG_Py_Void();
24315 return resultobj;
24316fail:
24317 return NULL;
24318}
24319
24320
24321SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24322 PyObject *resultobj = 0;
24323 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24324 wxBitmap *arg2 = 0 ;
24325 void *argp1 = 0 ;
24326 int res1 = 0 ;
24327 void *argp2 = 0 ;
24328 int res2 = 0 ;
24329 PyObject * obj0 = 0 ;
24330 PyObject * obj1 = 0 ;
24331 char * kwnames[] = {
24332 (char *) "self",(char *) "bmp", NULL
24333 };
24334
24335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24337 if (!SWIG_IsOK(res1)) {
24338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24339 }
24340 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24342 if (!SWIG_IsOK(res2)) {
24343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24344 }
24345 if (!argp2) {
24346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24347 }
24348 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24349 {
24350 PyThreadState* __tstate = wxPyBeginAllowThreads();
24351 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24352 wxPyEndAllowThreads(__tstate);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 resultobj = SWIG_Py_Void();
24356 return resultobj;
24357fail:
24358 return NULL;
24359}
24360
24361
24362SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24363 PyObject *obj;
24364 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24365 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24366 return SWIG_Py_Void();
24367}
24368
24369SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24370 return SWIG_Python_InitShadowInstance(args);
24371}
24372
1bd55598
RD
24373SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24374 PyObject *resultobj = 0;
24375 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24376 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24377 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24378 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24379 wxBufferedDC *result = 0 ;
24380 void *argp1 = 0 ;
24381 int res1 = 0 ;
24382 void *argp2 = 0 ;
24383 int res2 = 0 ;
24384 int val3 ;
24385 int ecode3 = 0 ;
24386
24387 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24389 if (!SWIG_IsOK(res1)) {
24390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24391 }
24392 arg1 = reinterpret_cast< wxDC * >(argp1);
24393 if (swig_obj[1]) {
b6df5cf9 24394 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24395 if (!SWIG_IsOK(res2)) {
b6df5cf9 24396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24397 }
1bd55598 24398 if (!argp2) {
b6df5cf9 24399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24400 }
1bd55598
RD
24401 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24402 }
24403 if (swig_obj[2]) {
24404 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24405 if (!SWIG_IsOK(ecode3)) {
24406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24407 }
24408 arg3 = static_cast< int >(val3);
24409 }
24410 {
24411 if (!wxPyCheckForApp()) SWIG_fail;
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24413 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24418 return resultobj;
24419fail:
24420 return NULL;
24421}
24422
24423
24424SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24425 PyObject *resultobj = 0;
24426 wxDC *arg1 = (wxDC *) 0 ;
24427 wxSize *arg2 = 0 ;
24428 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24429 wxBufferedDC *result = 0 ;
24430 void *argp1 = 0 ;
24431 int res1 = 0 ;
24432 wxSize temp2 ;
24433 int val3 ;
24434 int ecode3 = 0 ;
24435
24436 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24438 if (!SWIG_IsOK(res1)) {
24439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24440 }
24441 arg1 = reinterpret_cast< wxDC * >(argp1);
24442 {
24443 arg2 = &temp2;
24444 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24445 }
24446 if (swig_obj[2]) {
24447 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24448 if (!SWIG_IsOK(ecode3)) {
24449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24450 }
24451 arg3 = static_cast< int >(val3);
24452 }
24453 {
24454 if (!wxPyCheckForApp()) SWIG_fail;
24455 PyThreadState* __tstate = wxPyBeginAllowThreads();
24456 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24457 wxPyEndAllowThreads(__tstate);
24458 if (PyErr_Occurred()) SWIG_fail;
24459 }
24460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24461 return resultobj;
24462fail:
24463 return NULL;
24464}
24465
24466
24467SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24468 int argc;
8e99bda9 24469 PyObject *argv[4];
1bd55598 24470
8e99bda9 24471 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24472 --argc;
24473 if ((argc >= 1) && (argc <= 3)) {
24474 int _v = 0;
24475 if (argc > 1) {
24476 {
b6df5cf9
RD
24477 void *vptr = 0;
24478 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24479 _v = SWIG_CheckState(res);
24480 }
24481 if (!_v) goto check_1;
36ed4f51 24482 }
1bd55598
RD
24483 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24484 }
24485check_1:
24486
24487 if ((argc >= 2) && (argc <= 3)) {
24488 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24489 }
24490
24491fail:
24492 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24493 return NULL;
24494}
24495
24496
24497SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 PyObject *resultobj = 0;
24499 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24500 void *argp1 = 0 ;
24501 int res1 = 0 ;
24502 PyObject *swig_obj[1] ;
24503
24504 if (!args) SWIG_fail;
24505 swig_obj[0] = args;
24506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24507 if (!SWIG_IsOK(res1)) {
24508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24509 }
24510 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24511 {
24512 PyThreadState* __tstate = wxPyBeginAllowThreads();
24513 delete arg1;
24514
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
24518 resultobj = SWIG_Py_Void();
24519 return resultobj;
24520fail:
24521 return NULL;
24522}
24523
24524
24525SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24526 PyObject *resultobj = 0;
24527 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24528 void *argp1 = 0 ;
24529 int res1 = 0 ;
24530 PyObject *swig_obj[1] ;
24531
24532 if (!args) SWIG_fail;
24533 swig_obj[0] = args;
24534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24535 if (!SWIG_IsOK(res1)) {
24536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24537 }
24538 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24539 {
24540 PyThreadState* __tstate = wxPyBeginAllowThreads();
24541 (arg1)->UnMask();
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 resultobj = SWIG_Py_Void();
24546 return resultobj;
24547fail:
24548 return NULL;
24549}
24550
24551
b6df5cf9
RD
24552SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24553 PyObject *resultobj = 0;
24554 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24555 int arg2 ;
24556 void *argp1 = 0 ;
24557 int res1 = 0 ;
24558 int val2 ;
24559 int ecode2 = 0 ;
24560 PyObject * obj0 = 0 ;
24561 PyObject * obj1 = 0 ;
24562 char * kwnames[] = {
24563 (char *) "self",(char *) "style", NULL
24564 };
24565
24566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24568 if (!SWIG_IsOK(res1)) {
24569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24570 }
24571 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24572 ecode2 = SWIG_AsVal_int(obj1, &val2);
24573 if (!SWIG_IsOK(ecode2)) {
24574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24575 }
24576 arg2 = static_cast< int >(val2);
24577 {
24578 PyThreadState* __tstate = wxPyBeginAllowThreads();
24579 (arg1)->SetStyle(arg2);
24580 wxPyEndAllowThreads(__tstate);
24581 if (PyErr_Occurred()) SWIG_fail;
24582 }
24583 resultobj = SWIG_Py_Void();
24584 return resultobj;
24585fail:
24586 return NULL;
24587}
24588
24589
24590SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24591 PyObject *resultobj = 0;
24592 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24593 int result;
24594 void *argp1 = 0 ;
24595 int res1 = 0 ;
24596 PyObject *swig_obj[1] ;
24597
24598 if (!args) SWIG_fail;
24599 swig_obj[0] = args;
24600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24601 if (!SWIG_IsOK(res1)) {
24602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24603 }
24604 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24605 {
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24608 wxPyEndAllowThreads(__tstate);
24609 if (PyErr_Occurred()) SWIG_fail;
24610 }
24611 resultobj = SWIG_From_int(static_cast< int >(result));
24612 return resultobj;
24613fail:
24614 return NULL;
24615}
24616
24617
1bd55598
RD
24618SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24619 PyObject *obj;
24620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24621 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24622 return SWIG_Py_Void();
24623}
24624
24625SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24626 return SWIG_Python_InitShadowInstance(args);
24627}
24628
24629SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24630 PyObject *resultobj = 0;
24631 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24632 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24633 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24634 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24635 wxBufferedPaintDC *result = 0 ;
24636 void *argp1 = 0 ;
24637 int res1 = 0 ;
24638 void *argp2 = 0 ;
24639 int res2 = 0 ;
24640 int val3 ;
24641 int ecode3 = 0 ;
24642 PyObject * obj0 = 0 ;
24643 PyObject * obj1 = 0 ;
24644 PyObject * obj2 = 0 ;
24645 char * kwnames[] = {
24646 (char *) "window",(char *) "buffer",(char *) "style", NULL
24647 };
24648
24649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24651 if (!SWIG_IsOK(res1)) {
24652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24653 }
24654 arg1 = reinterpret_cast< wxWindow * >(argp1);
24655 if (obj1) {
b6df5cf9 24656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24657 if (!SWIG_IsOK(res2)) {
b6df5cf9 24658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24659 }
1bd55598 24660 if (!argp2) {
b6df5cf9 24661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24662 }
1bd55598
RD
24663 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24664 }
24665 if (obj2) {
24666 ecode3 = SWIG_AsVal_int(obj2, &val3);
24667 if (!SWIG_IsOK(ecode3)) {
24668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24669 }
24670 arg3 = static_cast< int >(val3);
24671 }
24672 {
24673 if (!wxPyCheckForApp()) SWIG_fail;
24674 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24675 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24680 return resultobj;
24681fail:
24682 return NULL;
24683}
24684
24685
24686SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24687 PyObject *obj;
24688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24689 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24690 return SWIG_Py_Void();
24691}
24692
24693SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24694 return SWIG_Python_InitShadowInstance(args);
24695}
24696
24f6c4e8 24697SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24698 PyObject *resultobj = 0;
24699 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24700 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24701 void *argp1 = 0 ;
24702 int res1 = 0 ;
24703 PyObject * obj0 = 0 ;
24704 char * kwnames[] = {
24705 (char *) "win", NULL
24706 };
24707
24f6c4e8 24708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24710 if (!SWIG_IsOK(res1)) {
24f6c4e8 24711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24712 }
24713 arg1 = reinterpret_cast< wxWindow * >(argp1);
24714 {
1bd55598 24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24716 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24717 wxPyEndAllowThreads(__tstate);
24718 if (PyErr_Occurred()) SWIG_fail;
24719 }
24f6c4e8 24720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24721 return resultobj;
24722fail:
24723 return NULL;
24724}
24725
24726
24f6c4e8 24727SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24728 PyObject *obj;
24729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24730 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24731 return SWIG_Py_Void();
24732}
24733
24f6c4e8 24734SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24735 return SWIG_Python_InitShadowInstance(args);
24736}
24737
8e99bda9
RD
24738SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24739 PyObject *resultobj = 0;
24740 wxWindow *arg1 = (wxWindow *) 0 ;
24741 wxDC *result = 0 ;
24742 void *argp1 = 0 ;
24743 int res1 = 0 ;
24744 PyObject * obj0 = 0 ;
24745 char * kwnames[] = {
24746 (char *) "window", NULL
24747 };
24748
24749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24751 if (!SWIG_IsOK(res1)) {
24752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24753 }
24754 arg1 = reinterpret_cast< wxWindow * >(argp1);
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24758 wxPyEndAllowThreads(__tstate);
24759 if (PyErr_Occurred()) SWIG_fail;
24760 }
24761 {
24762 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24763 }
24764 return resultobj;
24765fail:
24766 return NULL;
24767}
24768
24769
1bd55598
RD
24770SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24771 PyObject *resultobj = 0;
24772 wxDC *arg1 = 0 ;
24773 bool arg2 ;
24774 wxMirrorDC *result = 0 ;
24775 void *argp1 = 0 ;
24776 int res1 = 0 ;
24777 bool val2 ;
24778 int ecode2 = 0 ;
24779 PyObject * obj0 = 0 ;
24780 PyObject * obj1 = 0 ;
24781 char * kwnames[] = {
24782 (char *) "dc",(char *) "mirror", NULL
24783 };
24784
24785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24786 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24787 if (!SWIG_IsOK(res1)) {
24788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24789 }
24790 if (!argp1) {
24791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24792 }
24793 arg1 = reinterpret_cast< wxDC * >(argp1);
24794 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24795 if (!SWIG_IsOK(ecode2)) {
24796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24797 }
24798 arg2 = static_cast< bool >(val2);
24799 {
24800 if (!wxPyCheckForApp()) SWIG_fail;
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24807 return resultobj;
24808fail:
24809 return NULL;
24810}
24811
24812
24813SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24814 PyObject *obj;
24815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24816 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24817 return SWIG_Py_Void();
24818}
24819
24820SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24821 return SWIG_Python_InitShadowInstance(args);
24822}
24823
24824SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24825 PyObject *resultobj = 0;
24826 wxPrintData *arg1 = 0 ;
24827 wxPostScriptDC *result = 0 ;
24828 void *argp1 = 0 ;
24829 int res1 = 0 ;
24830 PyObject * obj0 = 0 ;
24831 char * kwnames[] = {
24832 (char *) "printData", NULL
24833 };
24834
24835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24836 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24837 if (!SWIG_IsOK(res1)) {
24838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24839 }
24840 if (!argp1) {
24841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24842 }
24843 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24844 {
24845 if (!wxPyCheckForApp()) SWIG_fail;
24846 PyThreadState* __tstate = wxPyBeginAllowThreads();
24847 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24852 return resultobj;
24853fail:
24854 return NULL;
24855}
24856
24857
24858SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24859 PyObject *resultobj = 0;
24860 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24861 wxPrintData *result = 0 ;
24862 void *argp1 = 0 ;
24863 int res1 = 0 ;
24864 PyObject *swig_obj[1] ;
24865
24866 if (!args) SWIG_fail;
24867 swig_obj[0] = args;
24868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24869 if (!SWIG_IsOK(res1)) {
24870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24871 }
24872 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24873 {
24874 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24875 {
1bd55598
RD
24876 wxPrintData &_result_ref = (arg1)->GetPrintData();
24877 result = (wxPrintData *) &_result_ref;
e2950dbb 24878 }
1bd55598
RD
24879 wxPyEndAllowThreads(__tstate);
24880 if (PyErr_Occurred()) SWIG_fail;
24881 }
24882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24883 return resultobj;
24884fail:
24885 return NULL;
24886}
24887
24888
24889SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj = 0;
24891 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24892 wxPrintData *arg2 = 0 ;
24893 void *argp1 = 0 ;
24894 int res1 = 0 ;
24895 void *argp2 = 0 ;
24896 int res2 = 0 ;
24897 PyObject * obj0 = 0 ;
24898 PyObject * obj1 = 0 ;
24899 char * kwnames[] = {
24900 (char *) "self",(char *) "data", NULL
24901 };
24902
24903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24905 if (!SWIG_IsOK(res1)) {
24906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24907 }
24908 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24910 if (!SWIG_IsOK(res2)) {
24911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24912 }
24913 if (!argp2) {
24914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24915 }
24916 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24917 {
24918 PyThreadState* __tstate = wxPyBeginAllowThreads();
24919 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24920 wxPyEndAllowThreads(__tstate);
24921 if (PyErr_Occurred()) SWIG_fail;
24922 }
24923 resultobj = SWIG_Py_Void();
24924 return resultobj;
24925fail:
24926 return NULL;
24927}
24928
24929
24930SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24931 PyObject *resultobj = 0;
24932 int arg1 ;
24933 int val1 ;
24934 int ecode1 = 0 ;
24935 PyObject * obj0 = 0 ;
24936 char * kwnames[] = {
24937 (char *) "ppi", NULL
24938 };
24939
24940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24941 ecode1 = SWIG_AsVal_int(obj0, &val1);
24942 if (!SWIG_IsOK(ecode1)) {
24943 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24944 }
24945 arg1 = static_cast< int >(val1);
24946 {
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 wxPostScriptDC::SetResolution(arg1);
24949 wxPyEndAllowThreads(__tstate);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 resultobj = SWIG_Py_Void();
24953 return resultobj;
24954fail:
24955 return NULL;
24956}
24957
24958
24959SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24960 PyObject *resultobj = 0;
24961 int result;
24962
24963 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24964 {
24965 PyThreadState* __tstate = wxPyBeginAllowThreads();
24966 result = (int)wxPostScriptDC::GetResolution();
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 resultobj = SWIG_From_int(static_cast< int >(result));
24971 return resultobj;
24972fail:
24973 return NULL;
24974}
24975
24976
24977SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24978 PyObject *obj;
24979 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24980 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24981 return SWIG_Py_Void();
24982}
24983
24984SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24985 return SWIG_Python_InitShadowInstance(args);
24986}
24987
24988SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24989 PyObject *resultobj = 0;
24990 wxString const &arg1_defvalue = wxPyEmptyString ;
24991 wxString *arg1 = (wxString *) &arg1_defvalue ;
24992 wxMetaFile *result = 0 ;
24993 bool temp1 = false ;
24994 PyObject * obj0 = 0 ;
24995 char * kwnames[] = {
24996 (char *) "filename", NULL
24997 };
24998
24999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25000 if (obj0) {
36ed4f51 25001 {
1bd55598
RD
25002 arg1 = wxString_in_helper(obj0);
25003 if (arg1 == NULL) SWIG_fail;
25004 temp1 = true;
36ed4f51 25005 }
1bd55598
RD
25006 }
25007 {
25008 if (!wxPyCheckForApp()) SWIG_fail;
25009 PyThreadState* __tstate = wxPyBeginAllowThreads();
25010 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25011 wxPyEndAllowThreads(__tstate);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 }
25014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25015 {
25016 if (temp1)
25017 delete arg1;
25018 }
25019 return resultobj;
25020fail:
25021 {
25022 if (temp1)
25023 delete arg1;
25024 }
25025 return NULL;
25026}
25027
25028
25029SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25030 PyObject *resultobj = 0;
25031 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25032 void *argp1 = 0 ;
25033 int res1 = 0 ;
25034 PyObject *swig_obj[1] ;
25035
25036 if (!args) SWIG_fail;
25037 swig_obj[0] = args;
25038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25039 if (!SWIG_IsOK(res1)) {
25040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25041 }
25042 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25043 {
25044 PyThreadState* __tstate = wxPyBeginAllowThreads();
25045 delete arg1;
25046
25047 wxPyEndAllowThreads(__tstate);
25048 if (PyErr_Occurred()) SWIG_fail;
25049 }
25050 resultobj = SWIG_Py_Void();
25051 return resultobj;
25052fail:
25053 return NULL;
25054}
25055
25056
b39fe951 25057SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25058 PyObject *resultobj = 0;
25059 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25060 bool result;
25061 void *argp1 = 0 ;
25062 int res1 = 0 ;
25063 PyObject *swig_obj[1] ;
25064
25065 if (!args) SWIG_fail;
25066 swig_obj[0] = args;
25067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25068 if (!SWIG_IsOK(res1)) {
b39fe951 25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25070 }
25071 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25074 result = (bool)(arg1)->IsOk();
1bd55598
RD
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 {
25079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25080 }
25081 return resultobj;
25082fail:
25083 return NULL;
25084}
25085
25086
25087SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25088 PyObject *resultobj = 0;
25089 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25090 int arg2 = (int) 0 ;
25091 int arg3 = (int) 0 ;
25092 bool result;
25093 void *argp1 = 0 ;
25094 int res1 = 0 ;
25095 int val2 ;
25096 int ecode2 = 0 ;
25097 int val3 ;
25098 int ecode3 = 0 ;
25099 PyObject * obj0 = 0 ;
25100 PyObject * obj1 = 0 ;
25101 PyObject * obj2 = 0 ;
25102 char * kwnames[] = {
25103 (char *) "self",(char *) "width",(char *) "height", NULL
25104 };
25105
25106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25108 if (!SWIG_IsOK(res1)) {
25109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25110 }
25111 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25112 if (obj1) {
25113 ecode2 = SWIG_AsVal_int(obj1, &val2);
25114 if (!SWIG_IsOK(ecode2)) {
25115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25116 }
25117 arg2 = static_cast< int >(val2);
25118 }
25119 if (obj2) {
25120 ecode3 = SWIG_AsVal_int(obj2, &val3);
25121 if (!SWIG_IsOK(ecode3)) {
25122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25123 }
25124 arg3 = static_cast< int >(val3);
25125 }
25126 {
25127 PyThreadState* __tstate = wxPyBeginAllowThreads();
25128 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25129 wxPyEndAllowThreads(__tstate);
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 {
25133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25134 }
25135 return resultobj;
25136fail:
25137 return NULL;
25138}
25139
25140
25141SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25142 PyObject *resultobj = 0;
25143 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25144 wxSize result;
25145 void *argp1 = 0 ;
25146 int res1 = 0 ;
25147 PyObject *swig_obj[1] ;
25148
25149 if (!args) SWIG_fail;
25150 swig_obj[0] = args;
25151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25154 }
25155 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = (arg1)->GetSize();
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25163 return resultobj;
25164fail:
25165 return NULL;
25166}
25167
25168
25169SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25170 PyObject *resultobj = 0;
25171 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25172 int result;
25173 void *argp1 = 0 ;
25174 int res1 = 0 ;
25175 PyObject *swig_obj[1] ;
25176
25177 if (!args) SWIG_fail;
25178 swig_obj[0] = args;
25179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25180 if (!SWIG_IsOK(res1)) {
25181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25182 }
25183 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 result = (int)(arg1)->GetWidth();
25187 wxPyEndAllowThreads(__tstate);
25188 if (PyErr_Occurred()) SWIG_fail;
25189 }
25190 resultobj = SWIG_From_int(static_cast< int >(result));
25191 return resultobj;
25192fail:
25193 return NULL;
25194}
25195
25196
25197SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25198 PyObject *resultobj = 0;
25199 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25200 int result;
25201 void *argp1 = 0 ;
25202 int res1 = 0 ;
25203 PyObject *swig_obj[1] ;
25204
25205 if (!args) SWIG_fail;
25206 swig_obj[0] = args;
25207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25208 if (!SWIG_IsOK(res1)) {
25209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25210 }
25211 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25212 {
25213 PyThreadState* __tstate = wxPyBeginAllowThreads();
25214 result = (int)(arg1)->GetHeight();
25215 wxPyEndAllowThreads(__tstate);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_From_int(static_cast< int >(result));
25219 return resultobj;
25220fail:
25221 return NULL;
25222}
25223
25224
25225SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25226 PyObject *obj;
25227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25228 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25229 return SWIG_Py_Void();
25230}
25231
25232SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25233 return SWIG_Python_InitShadowInstance(args);
25234}
25235
25236SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25237 PyObject *resultobj = 0;
25238 wxString const &arg1_defvalue = wxPyEmptyString ;
25239 wxString *arg1 = (wxString *) &arg1_defvalue ;
25240 int arg2 = (int) 0 ;
25241 int arg3 = (int) 0 ;
25242 wxString const &arg4_defvalue = wxPyEmptyString ;
25243 wxString *arg4 = (wxString *) &arg4_defvalue ;
25244 wxMetaFileDC *result = 0 ;
25245 bool temp1 = false ;
25246 int val2 ;
25247 int ecode2 = 0 ;
25248 int val3 ;
25249 int ecode3 = 0 ;
25250 bool temp4 = false ;
25251 PyObject * obj0 = 0 ;
25252 PyObject * obj1 = 0 ;
25253 PyObject * obj2 = 0 ;
25254 PyObject * obj3 = 0 ;
25255 char * kwnames[] = {
25256 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25257 };
25258
25259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25260 if (obj0) {
36ed4f51 25261 {
1bd55598
RD
25262 arg1 = wxString_in_helper(obj0);
25263 if (arg1 == NULL) SWIG_fail;
25264 temp1 = true;
36ed4f51 25265 }
1bd55598
RD
25266 }
25267 if (obj1) {
25268 ecode2 = SWIG_AsVal_int(obj1, &val2);
25269 if (!SWIG_IsOK(ecode2)) {
25270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25271 }
25272 arg2 = static_cast< int >(val2);
25273 }
25274 if (obj2) {
25275 ecode3 = SWIG_AsVal_int(obj2, &val3);
25276 if (!SWIG_IsOK(ecode3)) {
25277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25278 }
25279 arg3 = static_cast< int >(val3);
25280 }
25281 if (obj3) {
36ed4f51 25282 {
1bd55598
RD
25283 arg4 = wxString_in_helper(obj3);
25284 if (arg4 == NULL) SWIG_fail;
25285 temp4 = true;
36ed4f51 25286 }
1bd55598
RD
25287 }
25288 {
25289 if (!wxPyCheckForApp()) SWIG_fail;
25290 PyThreadState* __tstate = wxPyBeginAllowThreads();
25291 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25292 wxPyEndAllowThreads(__tstate);
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25296 {
25297 if (temp1)
25298 delete arg1;
25299 }
25300 {
25301 if (temp4)
25302 delete arg4;
25303 }
25304 return resultobj;
25305fail:
25306 {
25307 if (temp1)
25308 delete arg1;
25309 }
25310 {
25311 if (temp4)
25312 delete arg4;
25313 }
25314 return NULL;
25315}
25316
25317
25318SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25319 PyObject *resultobj = 0;
25320 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25321 wxMetaFile *result = 0 ;
25322 void *argp1 = 0 ;
25323 int res1 = 0 ;
25324 PyObject *swig_obj[1] ;
25325
25326 if (!args) SWIG_fail;
25327 swig_obj[0] = args;
25328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25329 if (!SWIG_IsOK(res1)) {
25330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25331 }
25332 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25333 {
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 result = (wxMetaFile *)(arg1)->Close();
25336 wxPyEndAllowThreads(__tstate);
25337 if (PyErr_Occurred()) SWIG_fail;
25338 }
25339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25340 return resultobj;
25341fail:
25342 return NULL;
25343}
25344
25345
25346SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25347 PyObject *obj;
25348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25349 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25350 return SWIG_Py_Void();
25351}
25352
25353SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 return SWIG_Python_InitShadowInstance(args);
25355}
25356
25357SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25358 PyObject *resultobj = 0;
25359 wxPrintData *arg1 = 0 ;
25360 wxPrinterDC *result = 0 ;
25361 void *argp1 = 0 ;
25362 int res1 = 0 ;
25363 PyObject * obj0 = 0 ;
25364 char * kwnames[] = {
25365 (char *) "printData", NULL
25366 };
25367
25368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25369 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25370 if (!SWIG_IsOK(res1)) {
25371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25372 }
25373 if (!argp1) {
25374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25375 }
25376 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25377 {
25378 if (!wxPyCheckForApp()) SWIG_fail;
25379 PyThreadState* __tstate = wxPyBeginAllowThreads();
25380 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25381 wxPyEndAllowThreads(__tstate);
25382 if (PyErr_Occurred()) SWIG_fail;
25383 }
25384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25385 return resultobj;
25386fail:
25387 return NULL;
25388}
25389
25390
25391SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25392 PyObject *obj;
25393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25394 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25395 return SWIG_Py_Void();
25396}
25397
25398SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25399 return SWIG_Python_InitShadowInstance(args);
25400}
25401
70d7cb34
RD
25402SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25403 PyObject *resultobj = 0;
25404 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25405 wxGraphicsObject *result = 0 ;
25406 void *argp1 = 0 ;
25407 int res1 = 0 ;
25408 PyObject * obj0 = 0 ;
25409 char * kwnames[] = {
25410 (char *) "renderer", NULL
25411 };
25412
25413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25414 if (obj0) {
25415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25416 if (!SWIG_IsOK(res1)) {
25417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25418 }
25419 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25420 }
25421 {
25422 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25426 return resultobj;
25427fail:
25428 return NULL;
25429}
25430
25431
25432SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25433 PyObject *resultobj = 0;
25434 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25435 void *argp1 = 0 ;
25436 int res1 = 0 ;
25437 PyObject *swig_obj[1] ;
25438
25439 if (!args) SWIG_fail;
25440 swig_obj[0] = args;
25441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25442 if (!SWIG_IsOK(res1)) {
25443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25444 }
25445 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25446 {
25447 delete arg1;
25448
25449 if (PyErr_Occurred()) SWIG_fail;
25450 }
25451 resultobj = SWIG_Py_Void();
25452 return resultobj;
25453fail:
25454 return NULL;
25455}
25456
25457
25458SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25459 PyObject *resultobj = 0;
25460 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25461 bool result;
25462 void *argp1 = 0 ;
25463 int res1 = 0 ;
25464 PyObject *swig_obj[1] ;
25465
25466 if (!args) SWIG_fail;
25467 swig_obj[0] = args;
25468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25469 if (!SWIG_IsOK(res1)) {
25470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25471 }
25472 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25473 {
25474 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25475 if (PyErr_Occurred()) SWIG_fail;
25476 }
25477 {
25478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25479 }
25480 return resultobj;
25481fail:
25482 return NULL;
25483}
25484
25485
25486SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25487 PyObject *resultobj = 0;
25488 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25489 wxGraphicsRenderer *result = 0 ;
25490 void *argp1 = 0 ;
25491 int res1 = 0 ;
25492 PyObject *swig_obj[1] ;
25493
25494 if (!args) SWIG_fail;
25495 swig_obj[0] = args;
25496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25497 if (!SWIG_IsOK(res1)) {
25498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25499 }
25500 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25501 {
25502 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25506 return resultobj;
25507fail:
25508 return NULL;
25509}
25510
25511
25512SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25513 PyObject *obj;
25514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25515 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25516 return SWIG_Py_Void();
25517}
25518
25519SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25520 return SWIG_Python_InitShadowInstance(args);
25521}
25522
25523SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25524 PyObject *resultobj = 0;
25525 wxGraphicsPen *result = 0 ;
25526
25527 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25528 {
25529 result = (wxGraphicsPen *)new wxGraphicsPen();
25530 if (PyErr_Occurred()) SWIG_fail;
25531 }
25532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25533 return resultobj;
25534fail:
25535 return NULL;
25536}
25537
25538
25539SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25540 PyObject *resultobj = 0;
25541 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25542 void *argp1 = 0 ;
25543 int res1 = 0 ;
25544 PyObject *swig_obj[1] ;
25545
25546 if (!args) SWIG_fail;
25547 swig_obj[0] = args;
25548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25549 if (!SWIG_IsOK(res1)) {
25550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25551 }
25552 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25553 {
25554 delete arg1;
25555
25556 if (PyErr_Occurred()) SWIG_fail;
25557 }
25558 resultobj = SWIG_Py_Void();
25559 return resultobj;
25560fail:
25561 return NULL;
25562}
25563
25564
25565SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25566 PyObject *obj;
25567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25568 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25569 return SWIG_Py_Void();
25570}
25571
25572SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25573 return SWIG_Python_InitShadowInstance(args);
25574}
25575
25576SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25577 PyObject *resultobj = 0;
25578 wxGraphicsBrush *result = 0 ;
25579
25580 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25581 {
25582 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25583 if (PyErr_Occurred()) SWIG_fail;
25584 }
25585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25586 return resultobj;
25587fail:
25588 return NULL;
25589}
25590
25591
25592SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25593 PyObject *resultobj = 0;
25594 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25595 void *argp1 = 0 ;
25596 int res1 = 0 ;
25597 PyObject *swig_obj[1] ;
25598
25599 if (!args) SWIG_fail;
25600 swig_obj[0] = args;
25601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25602 if (!SWIG_IsOK(res1)) {
25603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25604 }
25605 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25606 {
25607 delete arg1;
25608
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 resultobj = SWIG_Py_Void();
25612 return resultobj;
25613fail:
25614 return NULL;
25615}
25616
25617
25618SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25619 PyObject *obj;
25620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25621 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25622 return SWIG_Py_Void();
25623}
25624
25625SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25626 return SWIG_Python_InitShadowInstance(args);
25627}
25628
25629SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25630 PyObject *resultobj = 0;
25631 wxGraphicsFont *result = 0 ;
25632
25633 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25634 {
25635 result = (wxGraphicsFont *)new wxGraphicsFont();
25636 if (PyErr_Occurred()) SWIG_fail;
25637 }
25638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25639 return resultobj;
25640fail:
25641 return NULL;
25642}
25643
25644
25645SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25646 PyObject *resultobj = 0;
25647 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25648 void *argp1 = 0 ;
25649 int res1 = 0 ;
25650 PyObject *swig_obj[1] ;
25651
25652 if (!args) SWIG_fail;
25653 swig_obj[0] = args;
25654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25655 if (!SWIG_IsOK(res1)) {
25656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25657 }
25658 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25659 {
25660 delete arg1;
25661
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
25664 resultobj = SWIG_Py_Void();
25665 return resultobj;
25666fail:
25667 return NULL;
25668}
25669
25670
25671SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25672 PyObject *obj;
25673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25674 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25675 return SWIG_Py_Void();
25676}
25677
25678SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25679 return SWIG_Python_InitShadowInstance(args);
25680}
25681
8f514ab4
RD
25682SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25683 PyObject *resultobj = 0;
25684 wxGraphicsMatrix *result = 0 ;
25685
25686 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25687 {
25688 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25689 if (PyErr_Occurred()) SWIG_fail;
25690 }
25691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25692 return resultobj;
25693fail:
25694 return NULL;
25695}
25696
25697
5c8c7dd3 25698SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25699 PyObject *resultobj = 0;
5c8c7dd3 25700 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25701 void *argp1 = 0 ;
25702 int res1 = 0 ;
25703 PyObject *swig_obj[1] ;
25704
25705 if (!args) SWIG_fail;
25706 swig_obj[0] = args;
5c8c7dd3 25707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25708 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25710 }
5c8c7dd3 25711 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25712 {
1bd55598
RD
25713 delete arg1;
25714
1bd55598
RD
25715 if (PyErr_Occurred()) SWIG_fail;
25716 }
25717 resultobj = SWIG_Py_Void();
25718 return resultobj;
25719fail:
25720 return NULL;
25721}
25722
25723
5c8c7dd3 25724SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25725 PyObject *resultobj = 0;
5c8c7dd3
RD
25726 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25727 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25728 void *argp1 = 0 ;
25729 int res1 = 0 ;
5c8c7dd3
RD
25730 void *argp2 = 0 ;
25731 int res2 = 0 ;
25732 PyObject * obj0 = 0 ;
25733 PyObject * obj1 = 0 ;
25734 char * kwnames[] = {
25735 (char *) "self",(char *) "t", NULL
25736 };
70d7cb34 25737
5c8c7dd3
RD
25738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25740 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25742 }
5c8c7dd3
RD
25743 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25745 if (!SWIG_IsOK(res2)) {
25746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25747 }
25748 if (!argp2) {
25749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25750 }
25751 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25752 {
5c8c7dd3 25753 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25754 if (PyErr_Occurred()) SWIG_fail;
25755 }
5c8c7dd3 25756 resultobj = SWIG_Py_Void();
70d7cb34
RD
25757 return resultobj;
25758fail:
25759 return NULL;
25760}
25761
25762
5c8c7dd3 25763SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25764 PyObject *resultobj = 0;
5c8c7dd3
RD
25765 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25766 wxDouble arg2 = (wxDouble) 1.0 ;
25767 wxDouble arg3 = (wxDouble) 0.0 ;
25768 wxDouble arg4 = (wxDouble) 0.0 ;
25769 wxDouble arg5 = (wxDouble) 1.0 ;
25770 wxDouble arg6 = (wxDouble) 0.0 ;
25771 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25772 void *argp1 = 0 ;
25773 int res1 = 0 ;
5c8c7dd3
RD
25774 double val2 ;
25775 int ecode2 = 0 ;
25776 double val3 ;
25777 int ecode3 = 0 ;
25778 double val4 ;
25779 int ecode4 = 0 ;
25780 double val5 ;
25781 int ecode5 = 0 ;
25782 double val6 ;
25783 int ecode6 = 0 ;
25784 double val7 ;
25785 int ecode7 = 0 ;
25786 PyObject * obj0 = 0 ;
25787 PyObject * obj1 = 0 ;
25788 PyObject * obj2 = 0 ;
25789 PyObject * obj3 = 0 ;
25790 PyObject * obj4 = 0 ;
25791 PyObject * obj5 = 0 ;
25792 PyObject * obj6 = 0 ;
25793 char * kwnames[] = {
25794 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25795 };
70d7cb34 25796
5c8c7dd3
RD
25797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25799 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25801 }
5c8c7dd3
RD
25802 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25803 if (obj1) {
25804 ecode2 = SWIG_AsVal_double(obj1, &val2);
25805 if (!SWIG_IsOK(ecode2)) {
25806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25807 }
25808 arg2 = static_cast< wxDouble >(val2);
25809 }
25810 if (obj2) {
25811 ecode3 = SWIG_AsVal_double(obj2, &val3);
25812 if (!SWIG_IsOK(ecode3)) {
25813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25814 }
25815 arg3 = static_cast< wxDouble >(val3);
25816 }
25817 if (obj3) {
25818 ecode4 = SWIG_AsVal_double(obj3, &val4);
25819 if (!SWIG_IsOK(ecode4)) {
25820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25821 }
25822 arg4 = static_cast< wxDouble >(val4);
25823 }
25824 if (obj4) {
25825 ecode5 = SWIG_AsVal_double(obj4, &val5);
25826 if (!SWIG_IsOK(ecode5)) {
25827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25828 }
25829 arg5 = static_cast< wxDouble >(val5);
25830 }
25831 if (obj5) {
25832 ecode6 = SWIG_AsVal_double(obj5, &val6);
25833 if (!SWIG_IsOK(ecode6)) {
25834 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25835 }
25836 arg6 = static_cast< wxDouble >(val6);
25837 }
25838 if (obj6) {
25839 ecode7 = SWIG_AsVal_double(obj6, &val7);
25840 if (!SWIG_IsOK(ecode7)) {
25841 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25842 }
25843 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25844 }
25845 {
5c8c7dd3 25846 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_Py_Void();
25850 return resultobj;
25851fail:
25852 return NULL;
25853}
25854
25855
248802d0
RD
25856SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25857 PyObject *resultobj = 0;
25858 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25859 wxDouble *arg2 = (wxDouble *) 0 ;
25860 wxDouble *arg3 = (wxDouble *) 0 ;
25861 wxDouble *arg4 = (wxDouble *) 0 ;
25862 wxDouble *arg5 = (wxDouble *) 0 ;
25863 wxDouble *arg6 = (wxDouble *) 0 ;
25864 wxDouble *arg7 = (wxDouble *) 0 ;
25865 void *argp1 = 0 ;
25866 int res1 = 0 ;
25867 wxDouble temp2 ;
25868 int res2 = SWIG_TMPOBJ ;
25869 wxDouble temp3 ;
25870 int res3 = SWIG_TMPOBJ ;
25871 wxDouble temp4 ;
25872 int res4 = SWIG_TMPOBJ ;
25873 wxDouble temp5 ;
25874 int res5 = SWIG_TMPOBJ ;
25875 wxDouble temp6 ;
25876 int res6 = SWIG_TMPOBJ ;
25877 wxDouble temp7 ;
25878 int res7 = SWIG_TMPOBJ ;
25879 PyObject *swig_obj[1] ;
25880
25881 arg2 = &temp2;
25882 arg3 = &temp3;
25883 arg4 = &temp4;
25884 arg5 = &temp5;
25885 arg6 = &temp6;
25886 arg7 = &temp7;
25887 if (!args) SWIG_fail;
25888 swig_obj[0] = args;
25889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25890 if (!SWIG_IsOK(res1)) {
25891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25892 }
25893 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25894 {
25895 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 resultobj = SWIG_Py_Void();
25899 if (SWIG_IsTmpObj(res2)) {
25900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25901 } else {
25902 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25904 }
25905 if (SWIG_IsTmpObj(res3)) {
25906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25907 } else {
25908 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25910 }
25911 if (SWIG_IsTmpObj(res4)) {
25912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25913 } else {
25914 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25916 }
25917 if (SWIG_IsTmpObj(res5)) {
25918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25919 } else {
25920 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25922 }
25923 if (SWIG_IsTmpObj(res6)) {
25924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25925 } else {
25926 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25928 }
25929 if (SWIG_IsTmpObj(res7)) {
25930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
25931 } else {
25932 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
25934 }
25935 return resultobj;
25936fail:
25937 return NULL;
25938}
25939
25940
5c8c7dd3 25941SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25942 PyObject *resultobj = 0;
5c8c7dd3 25943 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25944 void *argp1 = 0 ;
25945 int res1 = 0 ;
5c8c7dd3 25946 PyObject *swig_obj[1] ;
1bd55598 25947
5c8c7dd3
RD
25948 if (!args) SWIG_fail;
25949 swig_obj[0] = args;
25950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25951 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25953 }
5c8c7dd3 25954 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25955 {
5c8c7dd3 25956 (arg1)->Invert();
1bd55598
RD
25957 if (PyErr_Occurred()) SWIG_fail;
25958 }
72ef6efb 25959 resultobj = SWIG_Py_Void();
1bd55598
RD
25960 return resultobj;
25961fail:
25962 return NULL;
25963}
25964
25965
5c8c7dd3 25966SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25967 PyObject *resultobj = 0;
5c8c7dd3
RD
25968 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25969 wxGraphicsMatrix *arg2 = 0 ;
25970 bool result;
70d7cb34
RD
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
5c8c7dd3
RD
25973 void *argp2 = 0 ;
25974 int res2 = 0 ;
25975 PyObject * obj0 = 0 ;
25976 PyObject * obj1 = 0 ;
25977 char * kwnames[] = {
25978 (char *) "self",(char *) "t", NULL
25979 };
70d7cb34 25980
5c8c7dd3
RD
25981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25983 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25985 }
5c8c7dd3
RD
25986 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25988 if (!SWIG_IsOK(res2)) {
25989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25990 }
25991 if (!argp2) {
25992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25993 }
5c8c7dd3 25994 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25995 {
5c8c7dd3 25996 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25997 if (PyErr_Occurred()) SWIG_fail;
25998 }
5c8c7dd3
RD
25999 {
26000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26001 }
70d7cb34
RD
26002 return resultobj;
26003fail:
26004 return NULL;
26005}
26006
26007
5c8c7dd3
RD
26008SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26009 PyObject *resultobj = 0;
26010 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26011 bool result;
26012 void *argp1 = 0 ;
26013 int res1 = 0 ;
26014 PyObject *swig_obj[1] ;
70d7cb34 26015
5c8c7dd3
RD
26016 if (!args) SWIG_fail;
26017 swig_obj[0] = args;
26018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26019 if (!SWIG_IsOK(res1)) {
8f514ab4 26020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26021 }
5c8c7dd3
RD
26022 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26023 {
8f514ab4 26024 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26025 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26026 }
5c8c7dd3
RD
26027 {
26028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26029 }
26030 return resultobj;
70d7cb34 26031fail:
70d7cb34
RD
26032 return NULL;
26033}
26034
26035
5c8c7dd3 26036SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 26037 PyObject *resultobj = 0;
5c8c7dd3 26038 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26039 wxDouble arg2 ;
26040 wxDouble arg3 ;
1bd55598
RD
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
72ef6efb
RD
26043 double val2 ;
26044 int ecode2 = 0 ;
26045 double val3 ;
26046 int ecode3 = 0 ;
5c8c7dd3
RD
26047 PyObject * obj0 = 0 ;
26048 PyObject * obj1 = 0 ;
26049 PyObject * obj2 = 0 ;
26050 char * kwnames[] = {
26051 (char *) "self",(char *) "dx",(char *) "dy", NULL
26052 };
72ef6efb 26053
5c8c7dd3
RD
26054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26056 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26058 }
5c8c7dd3
RD
26059 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26060 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26061 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26063 }
26064 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26065 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26066 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26068 }
26069 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26070 {
5c8c7dd3 26071 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26072 if (PyErr_Occurred()) SWIG_fail;
26073 }
26074 resultobj = SWIG_Py_Void();
26075 return resultobj;
26076fail:
26077 return NULL;
26078}
26079
26080
5c8c7dd3 26081SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26082 PyObject *resultobj = 0;
5c8c7dd3
RD
26083 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26084 wxDouble arg2 ;
26085 wxDouble arg3 ;
70d7cb34
RD
26086 void *argp1 = 0 ;
26087 int res1 = 0 ;
5c8c7dd3
RD
26088 double val2 ;
26089 int ecode2 = 0 ;
26090 double val3 ;
26091 int ecode3 = 0 ;
26092 PyObject * obj0 = 0 ;
26093 PyObject * obj1 = 0 ;
26094 PyObject * obj2 = 0 ;
26095 char * kwnames[] = {
26096 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26097 };
70d7cb34 26098
5c8c7dd3
RD
26099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26101 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26103 }
5c8c7dd3
RD
26104 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26105 ecode2 = SWIG_AsVal_double(obj1, &val2);
26106 if (!SWIG_IsOK(ecode2)) {
26107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26108 }
26109 arg2 = static_cast< wxDouble >(val2);
26110 ecode3 = SWIG_AsVal_double(obj2, &val3);
26111 if (!SWIG_IsOK(ecode3)) {
26112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26113 }
26114 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26115 {
5c8c7dd3 26116 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26117 if (PyErr_Occurred()) SWIG_fail;
26118 }
26119 resultobj = SWIG_Py_Void();
26120 return resultobj;
26121fail:
26122 return NULL;
26123}
26124
26125
5c8c7dd3 26126SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26127 PyObject *resultobj = 0;
5c8c7dd3
RD
26128 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26129 wxDouble arg2 ;
70d7cb34
RD
26130 void *argp1 = 0 ;
26131 int res1 = 0 ;
5c8c7dd3
RD
26132 double val2 ;
26133 int ecode2 = 0 ;
70d7cb34
RD
26134 PyObject * obj0 = 0 ;
26135 PyObject * obj1 = 0 ;
26136 char * kwnames[] = {
5c8c7dd3 26137 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26138 };
26139
5c8c7dd3
RD
26140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26142 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26144 }
5c8c7dd3
RD
26145 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26146 ecode2 = SWIG_AsVal_double(obj1, &val2);
26147 if (!SWIG_IsOK(ecode2)) {
26148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26149 }
26150 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26151 {
5c8c7dd3 26152 (arg1)->Rotate(arg2);
70d7cb34
RD
26153 if (PyErr_Occurred()) SWIG_fail;
26154 }
26155 resultobj = SWIG_Py_Void();
26156 return resultobj;
26157fail:
26158 return NULL;
26159}
26160
26161
5c8c7dd3 26162SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26163 PyObject *resultobj = 0;
5c8c7dd3
RD
26164 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26165 wxDouble *arg2 = (wxDouble *) 0 ;
26166 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26167 void *argp1 = 0 ;
26168 int res1 = 0 ;
5c8c7dd3
RD
26169 wxDouble temp2 ;
26170 int res2 = 0 ;
26171 wxDouble temp3 ;
26172 int res3 = 0 ;
26173 PyObject * obj0 = 0 ;
26174 PyObject * obj1 = 0 ;
26175 PyObject * obj2 = 0 ;
26176 char * kwnames[] = {
26177 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26178 };
72ef6efb 26179
5c8c7dd3
RD
26180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26182 if (!SWIG_IsOK(res1)) {
8f514ab4 26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26184 }
5c8c7dd3
RD
26185 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26186 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26187 double val;
26188 int ecode = SWIG_AsVal_double(obj1, &val);
26189 if (!SWIG_IsOK(ecode)) {
26190 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26191 }
26192 temp2 = static_cast< wxDouble >(val);
26193 arg2 = &temp2;
26194 res2 = SWIG_AddTmpMask(ecode);
26195 }
26196 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26197 double val;
26198 int ecode = SWIG_AsVal_double(obj2, &val);
26199 if (!SWIG_IsOK(ecode)) {
26200 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26201 }
26202 temp3 = static_cast< wxDouble >(val);
26203 arg3 = &temp3;
26204 res3 = SWIG_AddTmpMask(ecode);
26205 }
26206 {
8f514ab4 26207 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26208 if (PyErr_Occurred()) SWIG_fail;
26209 }
26210 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26211 if (SWIG_IsTmpObj(res2)) {
26212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26213 } else {
26214 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26216 }
26217 if (SWIG_IsTmpObj(res3)) {
26218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26219 } else {
26220 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26222 }
72ef6efb
RD
26223 return resultobj;
26224fail:
26225 return NULL;
26226}
26227
26228
5c8c7dd3
RD
26229SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26230 PyObject *resultobj = 0;
26231 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26232 wxDouble *arg2 = (wxDouble *) 0 ;
26233 wxDouble *arg3 = (wxDouble *) 0 ;
26234 void *argp1 = 0 ;
26235 int res1 = 0 ;
26236 wxDouble temp2 ;
26237 int res2 = 0 ;
26238 wxDouble temp3 ;
26239 int res3 = 0 ;
26240 PyObject * obj0 = 0 ;
26241 PyObject * obj1 = 0 ;
26242 PyObject * obj2 = 0 ;
26243 char * kwnames[] = {
26244 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26245 };
26246
26247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26249 if (!SWIG_IsOK(res1)) {
8f514ab4 26250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26251 }
26252 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26253 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26254 double val;
26255 int ecode = SWIG_AsVal_double(obj1, &val);
26256 if (!SWIG_IsOK(ecode)) {
26257 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26258 }
26259 temp2 = static_cast< wxDouble >(val);
26260 arg2 = &temp2;
26261 res2 = SWIG_AddTmpMask(ecode);
26262 }
26263 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26264 double val;
26265 int ecode = SWIG_AsVal_double(obj2, &val);
26266 if (!SWIG_IsOK(ecode)) {
26267 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26268 }
26269 temp3 = static_cast< wxDouble >(val);
26270 arg3 = &temp3;
26271 res3 = SWIG_AddTmpMask(ecode);
26272 }
26273 {
8f514ab4 26274 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26275 if (PyErr_Occurred()) SWIG_fail;
26276 }
26277 resultobj = SWIG_Py_Void();
26278 if (SWIG_IsTmpObj(res2)) {
26279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26280 } else {
26281 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26283 }
26284 if (SWIG_IsTmpObj(res3)) {
26285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26286 } else {
26287 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26289 }
26290 return resultobj;
26291fail:
26292 return NULL;
26293}
26294
26295
26296SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26297 PyObject *resultobj = 0;
26298 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26299 void *result = 0 ;
26300 void *argp1 = 0 ;
26301 int res1 = 0 ;
26302 PyObject *swig_obj[1] ;
26303
26304 if (!args) SWIG_fail;
26305 swig_obj[0] = args;
26306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26307 if (!SWIG_IsOK(res1)) {
26308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26309 }
26310 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26311 {
26312 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
26315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26316 return resultobj;
26317fail:
26318 return NULL;
26319}
26320
26321
26322SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26323 PyObject *obj;
26324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26325 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26326 return SWIG_Py_Void();
26327}
26328
8f514ab4
RD
26329SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26330 return SWIG_Python_InitShadowInstance(args);
26331}
26332
26333SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26334 PyObject *resultobj = 0;
26335 wxGraphicsPath *result = 0 ;
26336
26337 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26338 {
26339 if (!wxPyCheckForApp()) SWIG_fail;
26340 PyThreadState* __tstate = wxPyBeginAllowThreads();
26341 result = (wxGraphicsPath *)new wxGraphicsPath();
26342 wxPyEndAllowThreads(__tstate);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 }
26345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26346 return resultobj;
26347fail:
26348 return NULL;
26349}
26350
26351
5c8c7dd3 26352SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26353 PyObject *resultobj = 0;
26354 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26355 void *argp1 = 0 ;
26356 int res1 = 0 ;
26357 PyObject *swig_obj[1] ;
26358
26359 if (!args) SWIG_fail;
26360 swig_obj[0] = args;
5c8c7dd3 26361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26362 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26364 }
26365 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26366 {
5c8c7dd3
RD
26367 delete arg1;
26368
72ef6efb
RD
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
5c8c7dd3 26371 resultobj = SWIG_Py_Void();
70d7cb34
RD
26372 return resultobj;
26373fail:
26374 return NULL;
26375}
26376
26377
5c8c7dd3 26378SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26379 PyObject *resultobj = 0;
26380 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26381 wxDouble arg2 ;
26382 wxDouble arg3 ;
70d7cb34
RD
26383 void *argp1 = 0 ;
26384 int res1 = 0 ;
26385 double val2 ;
26386 int ecode2 = 0 ;
26387 double val3 ;
26388 int ecode3 = 0 ;
70d7cb34 26389
5c8c7dd3 26390 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26394 }
26395 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26396 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26397 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26399 }
26400 arg2 = static_cast< wxDouble >(val2);
26401 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26402 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26404 }
26405 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26406 {
5c8c7dd3 26407 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 resultobj = SWIG_Py_Void();
26411 return resultobj;
26412fail:
26413 return NULL;
26414}
26415
26416
5c8c7dd3 26417SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26418 PyObject *resultobj = 0;
26419 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26420 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26421 void *argp1 = 0 ;
26422 int res1 = 0 ;
26423 wxPoint2D temp2 ;
70d7cb34 26424
5c8c7dd3 26425 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26427 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26429 }
26430 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26431 {
26432 arg2 = &temp2;
26433 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26434 }
70d7cb34 26435 {
5c8c7dd3 26436 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_Py_Void();
26440 return resultobj;
26441fail:
26442 return NULL;
26443}
26444
26445
5c8c7dd3 26446SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26447 int argc;
5c8c7dd3 26448 PyObject *argv[4];
70d7cb34 26449
5c8c7dd3 26450 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26451 --argc;
5c8c7dd3
RD
26452 if (argc == 2) {
26453 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26454 }
5c8c7dd3
RD
26455 if (argc == 3) {
26456 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26457 }
26458
26459fail:
5c8c7dd3 26460 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26461 return NULL;
26462}
26463
26464
5c8c7dd3 26465SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26466 PyObject *resultobj = 0;
26467 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26468 wxDouble arg2 ;
26469 wxDouble arg3 ;
70d7cb34
RD
26470 void *argp1 = 0 ;
26471 int res1 = 0 ;
26472 double val2 ;
26473 int ecode2 = 0 ;
26474 double val3 ;
26475 int ecode3 = 0 ;
70d7cb34 26476
5c8c7dd3
RD
26477 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26479 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26481 }
26482 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26483 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26484 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26486 }
26487 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26488 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26489 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26491 }
26492 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26493 {
5c8c7dd3 26494 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26495 if (PyErr_Occurred()) SWIG_fail;
26496 }
26497 resultobj = SWIG_Py_Void();
26498 return resultobj;
26499fail:
26500 return NULL;
26501}
26502
26503
5c8c7dd3 26504SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26505 PyObject *resultobj = 0;
26506 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26507 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26508 void *argp1 = 0 ;
26509 int res1 = 0 ;
5c8c7dd3 26510 wxPoint2D temp2 ;
70d7cb34 26511
5c8c7dd3
RD
26512 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26514 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26516 }
26517 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26518 {
5c8c7dd3
RD
26519 arg2 = &temp2;
26520 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26521 }
26522 {
26523 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26524 if (PyErr_Occurred()) SWIG_fail;
26525 }
26526 resultobj = SWIG_Py_Void();
26527 return resultobj;
26528fail:
26529 return NULL;
26530}
26531
26532
5c8c7dd3
RD
26533SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26534 int argc;
26535 PyObject *argv[4];
70d7cb34 26536
5c8c7dd3
RD
26537 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26538 --argc;
26539 if (argc == 2) {
26540 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26541 }
5c8c7dd3
RD
26542 if (argc == 3) {
26543 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26544 }
5c8c7dd3 26545
70d7cb34 26546fail:
5c8c7dd3 26547 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26548 return NULL;
26549}
26550
26551
5c8c7dd3 26552SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26553 PyObject *resultobj = 0;
26554 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26555 wxDouble arg2 ;
26556 wxDouble arg3 ;
26557 wxDouble arg4 ;
26558 wxDouble arg5 ;
26559 wxDouble arg6 ;
5c8c7dd3 26560 wxDouble arg7 ;
70d7cb34
RD
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 double val2 ;
26564 int ecode2 = 0 ;
26565 double val3 ;
26566 int ecode3 = 0 ;
26567 double val4 ;
26568 int ecode4 = 0 ;
26569 double val5 ;
26570 int ecode5 = 0 ;
26571 double val6 ;
26572 int ecode6 = 0 ;
5c8c7dd3
RD
26573 double val7 ;
26574 int ecode7 = 0 ;
70d7cb34 26575
5c8c7dd3
RD
26576 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26578 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26580 }
26581 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26582 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26583 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26585 }
26586 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26587 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26588 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26590 }
26591 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26592 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26593 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26595 }
26596 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26597 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26598 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26599 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26600 }
26601 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26602 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26603 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26604 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26605 }
26606 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26607 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26608 if (!SWIG_IsOK(ecode7)) {
26609 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26610 }
26611 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26612 {
5c8c7dd3 26613 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26614 if (PyErr_Occurred()) SWIG_fail;
26615 }
26616 resultobj = SWIG_Py_Void();
26617 return resultobj;
26618fail:
26619 return NULL;
26620}
26621
26622
5c8c7dd3 26623SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26624 PyObject *resultobj = 0;
26625 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26626 wxPoint2D *arg2 = 0 ;
26627 wxPoint2D *arg3 = 0 ;
26628 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26629 void *argp1 = 0 ;
26630 int res1 = 0 ;
5c8c7dd3
RD
26631 wxPoint2D temp2 ;
26632 wxPoint2D temp3 ;
26633 wxPoint2D temp4 ;
70d7cb34 26634
5c8c7dd3
RD
26635 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26637 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26639 }
26640 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26641 {
5c8c7dd3
RD
26642 arg2 = &temp2;
26643 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26644 }
5c8c7dd3
RD
26645 {
26646 arg3 = &temp3;
26647 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26648 }
70d7cb34 26649 {
5c8c7dd3
RD
26650 arg4 = &temp4;
26651 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26652 }
26653 {
26654 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 resultobj = SWIG_Py_Void();
26658 return resultobj;
26659fail:
26660 return NULL;
26661}
26662
26663
5c8c7dd3
RD
26664SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26665 int argc;
26666 PyObject *argv[8];
70d7cb34 26667
5c8c7dd3
RD
26668 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26669 --argc;
26670 if (argc == 4) {
26671 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26672 }
5c8c7dd3
RD
26673 if (argc == 7) {
26674 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26675 }
5c8c7dd3 26676
70d7cb34 26677fail:
5c8c7dd3 26678 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26679 return NULL;
26680}
26681
26682
5c8c7dd3 26683SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26684 PyObject *resultobj = 0;
26685 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26686 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26687 void *argp1 = 0 ;
26688 int res1 = 0 ;
5c8c7dd3
RD
26689 void *argp2 = 0 ;
26690 int res2 = 0 ;
70d7cb34
RD
26691 PyObject * obj0 = 0 ;
26692 PyObject * obj1 = 0 ;
26693 char * kwnames[] = {
5c8c7dd3 26694 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26695 };
26696
5c8c7dd3 26697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26699 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26701 }
26702 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26704 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26706 }
26707 if (!argp2) {
26708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26709 }
5c8c7dd3 26710 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26711 {
5c8c7dd3 26712 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = SWIG_Py_Void();
26716 return resultobj;
26717fail:
26718 return NULL;
26719}
26720
26721
5c8c7dd3 26722SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26723 PyObject *resultobj = 0;
26724 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26725 void *argp1 = 0 ;
26726 int res1 = 0 ;
5c8c7dd3 26727 PyObject *swig_obj[1] ;
70d7cb34 26728
5c8c7dd3
RD
26729 if (!args) SWIG_fail;
26730 swig_obj[0] = args;
26731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26732 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26734 }
26735 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26736 {
5c8c7dd3 26737 (arg1)->CloseSubpath();
70d7cb34
RD
26738 if (PyErr_Occurred()) SWIG_fail;
26739 }
26740 resultobj = SWIG_Py_Void();
26741 return resultobj;
26742fail:
26743 return NULL;
26744}
26745
26746
5c8c7dd3 26747SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26748 PyObject *resultobj = 0;
26749 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26750 wxPoint2D result;
70d7cb34
RD
26751 void *argp1 = 0 ;
26752 int res1 = 0 ;
26753 PyObject *swig_obj[1] ;
26754
26755 if (!args) SWIG_fail;
26756 swig_obj[0] = args;
26757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26758 if (!SWIG_IsOK(res1)) {
8f514ab4 26759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26760 }
26761 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26762 {
8f514ab4 26763 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26764 if (PyErr_Occurred()) SWIG_fail;
26765 }
5c8c7dd3 26766 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26767 return resultobj;
26768fail:
26769 return NULL;
26770}
26771
26772
5c8c7dd3 26773SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26774 PyObject *resultobj = 0;
26775 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26776 wxDouble arg2 ;
26777 wxDouble arg3 ;
5c8c7dd3
RD
26778 wxDouble arg4 ;
26779 wxDouble arg5 ;
26780 wxDouble arg6 ;
89d1e2ee 26781 bool arg7 = (bool) true ;
70d7cb34
RD
26782 void *argp1 = 0 ;
26783 int res1 = 0 ;
26784 double val2 ;
26785 int ecode2 = 0 ;
26786 double val3 ;
26787 int ecode3 = 0 ;
5c8c7dd3 26788 double val4 ;
70d7cb34 26789 int ecode4 = 0 ;
5c8c7dd3
RD
26790 double val5 ;
26791 int ecode5 = 0 ;
26792 double val6 ;
26793 int ecode6 = 0 ;
26794 bool val7 ;
26795 int ecode7 = 0 ;
70d7cb34 26796
89d1e2ee 26797 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26799 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26801 }
26802 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26803 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26804 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26806 }
26807 arg2 = static_cast< wxDouble >(val2);
26808 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26809 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26811 }
26812 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26813 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26814 if (!SWIG_IsOK(ecode4)) {
26815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26816 }
26817 arg4 = static_cast< wxDouble >(val4);
26818 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26819 if (!SWIG_IsOK(ecode5)) {
26820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26821 }
26822 arg5 = static_cast< wxDouble >(val5);
26823 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26824 if (!SWIG_IsOK(ecode6)) {
26825 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26826 }
26827 arg6 = static_cast< wxDouble >(val6);
89d1e2ee
RD
26828 if (swig_obj[6]) {
26829 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26830 if (!SWIG_IsOK(ecode7)) {
26831 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26832 }
26833 arg7 = static_cast< bool >(val7);
26834 }
70d7cb34 26835 {
5c8c7dd3 26836 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
5c8c7dd3 26839 resultobj = SWIG_Py_Void();
70d7cb34
RD
26840 return resultobj;
26841fail:
26842 return NULL;
26843}
26844
26845
5c8c7dd3 26846SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26847 PyObject *resultobj = 0;
26848 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26849 wxPoint2D *arg2 = 0 ;
26850 wxDouble arg3 ;
26851 wxDouble arg4 ;
26852 wxDouble arg5 ;
89d1e2ee 26853 bool arg6 = (bool) true ;
70d7cb34
RD
26854 void *argp1 = 0 ;
26855 int res1 = 0 ;
5c8c7dd3
RD
26856 wxPoint2D temp2 ;
26857 double val3 ;
70d7cb34 26858 int ecode3 = 0 ;
5c8c7dd3
RD
26859 double val4 ;
26860 int ecode4 = 0 ;
26861 double val5 ;
26862 int ecode5 = 0 ;
26863 bool val6 ;
26864 int ecode6 = 0 ;
70d7cb34 26865
89d1e2ee 26866 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26868 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26870 }
26871 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26872 {
5c8c7dd3
RD
26873 arg2 = &temp2;
26874 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26875 }
5c8c7dd3
RD
26876 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26877 if (!SWIG_IsOK(ecode3)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26879 }
26880 arg3 = static_cast< wxDouble >(val3);
26881 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26882 if (!SWIG_IsOK(ecode4)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26884 }
26885 arg4 = static_cast< wxDouble >(val4);
26886 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26887 if (!SWIG_IsOK(ecode5)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26889 }
26890 arg5 = static_cast< wxDouble >(val5);
89d1e2ee
RD
26891 if (swig_obj[5]) {
26892 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26893 if (!SWIG_IsOK(ecode6)) {
26894 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26895 }
26896 arg6 = static_cast< bool >(val6);
26897 }
70d7cb34 26898 {
5c8c7dd3
RD
26899 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26900 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26901 }
5c8c7dd3 26902 resultobj = SWIG_Py_Void();
70d7cb34
RD
26903 return resultobj;
26904fail:
26905 return NULL;
26906}
26907
26908
5c8c7dd3 26909SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26910 int argc;
5c8c7dd3 26911 PyObject *argv[8];
70d7cb34 26912
5c8c7dd3 26913 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26914 --argc;
89d1e2ee
RD
26915 if ((argc >= 5) && (argc <= 6)) {
26916 int _v = 0;
26917 {
26918 {
26919 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
26920 }
26921 }
26922 if (!_v) goto check_1;
26923 if (argc > 5) {
26924 {
26925 {
26926 int res = SWIG_AsVal_bool(argv[5], NULL);
26927 _v = SWIG_CheckState(res);
26928 }
26929 }
26930 if (!_v) goto check_1;
26931 }
5c8c7dd3 26932 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26933 }
89d1e2ee
RD
26934check_1:
26935
26936 if ((argc >= 6) && (argc <= 7)) {
5c8c7dd3 26937 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26938 }
26939
26940fail:
5c8c7dd3 26941 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26942 return NULL;
26943}
26944
26945
5c8c7dd3 26946SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26947 PyObject *resultobj = 0;
5c8c7dd3
RD
26948 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26949 wxDouble arg2 ;
26950 wxDouble arg3 ;
26951 wxDouble arg4 ;
26952 wxDouble arg5 ;
70d7cb34
RD
26953 void *argp1 = 0 ;
26954 int res1 = 0 ;
5c8c7dd3
RD
26955 double val2 ;
26956 int ecode2 = 0 ;
26957 double val3 ;
26958 int ecode3 = 0 ;
26959 double val4 ;
26960 int ecode4 = 0 ;
26961 double val5 ;
26962 int ecode5 = 0 ;
26963 PyObject * obj0 = 0 ;
26964 PyObject * obj1 = 0 ;
26965 PyObject * obj2 = 0 ;
26966 PyObject * obj3 = 0 ;
26967 PyObject * obj4 = 0 ;
26968 char * kwnames[] = {
26969 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26970 };
70d7cb34 26971
5c8c7dd3
RD
26972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26974 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26976 }
5c8c7dd3
RD
26977 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26978 ecode2 = SWIG_AsVal_double(obj1, &val2);
26979 if (!SWIG_IsOK(ecode2)) {
26980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26981 }
26982 arg2 = static_cast< wxDouble >(val2);
26983 ecode3 = SWIG_AsVal_double(obj2, &val3);
26984 if (!SWIG_IsOK(ecode3)) {
26985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26986 }
26987 arg3 = static_cast< wxDouble >(val3);
26988 ecode4 = SWIG_AsVal_double(obj3, &val4);
26989 if (!SWIG_IsOK(ecode4)) {
26990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26991 }
26992 arg4 = static_cast< wxDouble >(val4);
26993 ecode5 = SWIG_AsVal_double(obj4, &val5);
26994 if (!SWIG_IsOK(ecode5)) {
26995 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26996 }
26997 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26998 {
5c8c7dd3 26999 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_Py_Void();
27003 return resultobj;
27004fail:
27005 return NULL;
27006}
27007
27008
5c8c7dd3 27009SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27010 PyObject *resultobj = 0;
5c8c7dd3
RD
27011 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27012 wxDouble arg2 ;
27013 wxDouble arg3 ;
27014 wxDouble arg4 ;
27015 wxDouble arg5 ;
70d7cb34
RD
27016 void *argp1 = 0 ;
27017 int res1 = 0 ;
5c8c7dd3
RD
27018 double val2 ;
27019 int ecode2 = 0 ;
27020 double val3 ;
27021 int ecode3 = 0 ;
27022 double val4 ;
27023 int ecode4 = 0 ;
27024 double val5 ;
27025 int ecode5 = 0 ;
70d7cb34
RD
27026 PyObject * obj0 = 0 ;
27027 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27028 PyObject * obj2 = 0 ;
27029 PyObject * obj3 = 0 ;
27030 PyObject * obj4 = 0 ;
70d7cb34 27031 char * kwnames[] = {
5c8c7dd3 27032 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27033 };
27034
5c8c7dd3
RD
27035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27037 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27039 }
5c8c7dd3
RD
27040 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27041 ecode2 = SWIG_AsVal_double(obj1, &val2);
27042 if (!SWIG_IsOK(ecode2)) {
27043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27044 }
27045 arg2 = static_cast< wxDouble >(val2);
27046 ecode3 = SWIG_AsVal_double(obj2, &val3);
27047 if (!SWIG_IsOK(ecode3)) {
27048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27049 }
27050 arg3 = static_cast< wxDouble >(val3);
27051 ecode4 = SWIG_AsVal_double(obj3, &val4);
27052 if (!SWIG_IsOK(ecode4)) {
27053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27054 }
27055 arg4 = static_cast< wxDouble >(val4);
27056 ecode5 = SWIG_AsVal_double(obj4, &val5);
27057 if (!SWIG_IsOK(ecode5)) {
27058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27059 }
27060 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27061 {
5c8c7dd3 27062 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27063 if (PyErr_Occurred()) SWIG_fail;
27064 }
27065 resultobj = SWIG_Py_Void();
27066 return resultobj;
27067fail:
27068 return NULL;
27069}
27070
27071
5c8c7dd3 27072SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27073 PyObject *resultobj = 0;
5c8c7dd3
RD
27074 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27075 wxDouble arg2 ;
27076 wxDouble arg3 ;
27077 wxDouble arg4 ;
70d7cb34
RD
27078 void *argp1 = 0 ;
27079 int res1 = 0 ;
5c8c7dd3
RD
27080 double val2 ;
27081 int ecode2 = 0 ;
27082 double val3 ;
27083 int ecode3 = 0 ;
27084 double val4 ;
27085 int ecode4 = 0 ;
70d7cb34
RD
27086 PyObject * obj0 = 0 ;
27087 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27088 PyObject * obj2 = 0 ;
27089 PyObject * obj3 = 0 ;
70d7cb34 27090 char * kwnames[] = {
5c8c7dd3 27091 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27092 };
27093
5c8c7dd3
RD
27094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27096 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27098 }
5c8c7dd3
RD
27099 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27100 ecode2 = SWIG_AsVal_double(obj1, &val2);
27101 if (!SWIG_IsOK(ecode2)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27103 }
27104 arg2 = static_cast< wxDouble >(val2);
27105 ecode3 = SWIG_AsVal_double(obj2, &val3);
27106 if (!SWIG_IsOK(ecode3)) {
27107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27108 }
27109 arg3 = static_cast< wxDouble >(val3);
27110 ecode4 = SWIG_AsVal_double(obj3, &val4);
27111 if (!SWIG_IsOK(ecode4)) {
27112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27113 }
27114 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27115 {
5c8c7dd3 27116 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 resultobj = SWIG_Py_Void();
27120 return resultobj;
27121fail:
27122 return NULL;
27123}
27124
27125
5c8c7dd3 27126SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27127 PyObject *resultobj = 0;
5c8c7dd3
RD
27128 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27129 wxDouble arg2 ;
27130 wxDouble arg3 ;
27131 wxDouble arg4 ;
27132 wxDouble arg5 ;
27133 wxDouble arg6 ;
70d7cb34
RD
27134 void *argp1 = 0 ;
27135 int res1 = 0 ;
27136 double val2 ;
27137 int ecode2 = 0 ;
27138 double val3 ;
27139 int ecode3 = 0 ;
27140 double val4 ;
27141 int ecode4 = 0 ;
27142 double val5 ;
27143 int ecode5 = 0 ;
27144 double val6 ;
27145 int ecode6 = 0 ;
70d7cb34
RD
27146 PyObject * obj0 = 0 ;
27147 PyObject * obj1 = 0 ;
27148 PyObject * obj2 = 0 ;
27149 PyObject * obj3 = 0 ;
27150 PyObject * obj4 = 0 ;
27151 PyObject * obj5 = 0 ;
70d7cb34 27152 char * kwnames[] = {
5c8c7dd3 27153 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27154 };
27155
5c8c7dd3
RD
27156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27158 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27160 }
5c8c7dd3
RD
27161 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27162 ecode2 = SWIG_AsVal_double(obj1, &val2);
27163 if (!SWIG_IsOK(ecode2)) {
27164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27165 }
27166 arg2 = static_cast< wxDouble >(val2);
27167 ecode3 = SWIG_AsVal_double(obj2, &val3);
27168 if (!SWIG_IsOK(ecode3)) {
27169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27170 }
27171 arg3 = static_cast< wxDouble >(val3);
27172 ecode4 = SWIG_AsVal_double(obj3, &val4);
27173 if (!SWIG_IsOK(ecode4)) {
27174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27175 }
27176 arg4 = static_cast< wxDouble >(val4);
27177 ecode5 = SWIG_AsVal_double(obj4, &val5);
27178 if (!SWIG_IsOK(ecode5)) {
27179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27180 }
27181 arg5 = static_cast< wxDouble >(val5);
27182 ecode6 = SWIG_AsVal_double(obj5, &val6);
27183 if (!SWIG_IsOK(ecode6)) {
27184 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27185 }
27186 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27187 {
5c8c7dd3 27188 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 resultobj = SWIG_Py_Void();
27192 return resultobj;
27193fail:
27194 return NULL;
27195}
27196
27197
5c8c7dd3 27198SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27199 PyObject *resultobj = 0;
5c8c7dd3
RD
27200 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27201 wxDouble arg2 ;
27202 wxDouble arg3 ;
27203 wxDouble arg4 ;
27204 wxDouble arg5 ;
70d7cb34
RD
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
5c8c7dd3
RD
27207 double val2 ;
27208 int ecode2 = 0 ;
27209 double val3 ;
27210 int ecode3 = 0 ;
27211 double val4 ;
27212 int ecode4 = 0 ;
27213 double val5 ;
27214 int ecode5 = 0 ;
27215 PyObject * obj0 = 0 ;
27216 PyObject * obj1 = 0 ;
27217 PyObject * obj2 = 0 ;
27218 PyObject * obj3 = 0 ;
27219 PyObject * obj4 = 0 ;
27220 char * kwnames[] = {
27221 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27222 };
70d7cb34 27223
5c8c7dd3
RD
27224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27226 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27228 }
5c8c7dd3
RD
27229 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27230 ecode2 = SWIG_AsVal_double(obj1, &val2);
27231 if (!SWIG_IsOK(ecode2)) {
27232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27233 }
27234 arg2 = static_cast< wxDouble >(val2);
27235 ecode3 = SWIG_AsVal_double(obj2, &val3);
27236 if (!SWIG_IsOK(ecode3)) {
27237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27238 }
27239 arg3 = static_cast< wxDouble >(val3);
27240 ecode4 = SWIG_AsVal_double(obj3, &val4);
27241 if (!SWIG_IsOK(ecode4)) {
27242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27243 }
27244 arg4 = static_cast< wxDouble >(val4);
27245 ecode5 = SWIG_AsVal_double(obj4, &val5);
27246 if (!SWIG_IsOK(ecode5)) {
27247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27248 }
27249 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27250 {
5c8c7dd3 27251 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27252 if (PyErr_Occurred()) SWIG_fail;
27253 }
27254 resultobj = SWIG_Py_Void();
27255 return resultobj;
27256fail:
27257 return NULL;
27258}
27259
27260
5c8c7dd3 27261SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27262 PyObject *resultobj = 0;
5c8c7dd3
RD
27263 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27264 wxDouble arg2 ;
27265 wxDouble arg3 ;
27266 wxDouble arg4 ;
27267 wxDouble arg5 ;
27268 wxDouble arg6 ;
70d7cb34
RD
27269 void *argp1 = 0 ;
27270 int res1 = 0 ;
5c8c7dd3
RD
27271 double val2 ;
27272 int ecode2 = 0 ;
27273 double val3 ;
27274 int ecode3 = 0 ;
27275 double val4 ;
27276 int ecode4 = 0 ;
27277 double val5 ;
27278 int ecode5 = 0 ;
27279 double val6 ;
27280 int ecode6 = 0 ;
70d7cb34
RD
27281 PyObject * obj0 = 0 ;
27282 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27283 PyObject * obj2 = 0 ;
27284 PyObject * obj3 = 0 ;
27285 PyObject * obj4 = 0 ;
27286 PyObject * obj5 = 0 ;
70d7cb34 27287 char * kwnames[] = {
5c8c7dd3 27288 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27289 };
27290
5c8c7dd3
RD
27291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27293 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27295 }
5c8c7dd3
RD
27296 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27297 ecode2 = SWIG_AsVal_double(obj1, &val2);
27298 if (!SWIG_IsOK(ecode2)) {
27299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27300 }
27301 arg2 = static_cast< wxDouble >(val2);
27302 ecode3 = SWIG_AsVal_double(obj2, &val3);
27303 if (!SWIG_IsOK(ecode3)) {
27304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27305 }
27306 arg3 = static_cast< wxDouble >(val3);
27307 ecode4 = SWIG_AsVal_double(obj3, &val4);
27308 if (!SWIG_IsOK(ecode4)) {
27309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27310 }
27311 arg4 = static_cast< wxDouble >(val4);
27312 ecode5 = SWIG_AsVal_double(obj4, &val5);
27313 if (!SWIG_IsOK(ecode5)) {
27314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27315 }
27316 arg5 = static_cast< wxDouble >(val5);
27317 ecode6 = SWIG_AsVal_double(obj5, &val6);
27318 if (!SWIG_IsOK(ecode6)) {
27319 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27320 }
27321 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27322 {
5c8c7dd3 27323 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
5c8c7dd3 27326 resultobj = SWIG_Py_Void();
70d7cb34
RD
27327 return resultobj;
27328fail:
27329 return NULL;
27330}
27331
27332
5c8c7dd3 27333SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27334 PyObject *resultobj = 0;
5c8c7dd3
RD
27335 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27336 void *result = 0 ;
70d7cb34
RD
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 PyObject *swig_obj[1] ;
27340
27341 if (!args) SWIG_fail;
27342 swig_obj[0] = args;
5c8c7dd3 27343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27344 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27346 }
5c8c7dd3 27347 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27348 {
5c8c7dd3 27349 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
5c8c7dd3 27352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27353 return resultobj;
27354fail:
27355 return NULL;
27356}
27357
27358
5c8c7dd3 27359SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27360 PyObject *resultobj = 0;
5c8c7dd3
RD
27361 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27362 void *arg2 = (void *) 0 ;
70d7cb34
RD
27363 void *argp1 = 0 ;
27364 int res1 = 0 ;
5c8c7dd3 27365 int res2 ;
70d7cb34
RD
27366 PyObject * obj0 = 0 ;
27367 PyObject * obj1 = 0 ;
70d7cb34 27368 char * kwnames[] = {
5c8c7dd3 27369 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27370 };
27371
5c8c7dd3
RD
27372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27374 if (!SWIG_IsOK(res1)) {
8f514ab4 27375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27376 }
27377 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27378 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27379 if (!SWIG_IsOK(res2)) {
27380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27381 }
70d7cb34 27382 {
8f514ab4 27383 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27384 if (PyErr_Occurred()) SWIG_fail;
27385 }
27386 resultobj = SWIG_Py_Void();
27387 return resultobj;
27388fail:
27389 return NULL;
27390}
27391
27392
5c8c7dd3 27393SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27394 PyObject *resultobj = 0;
5c8c7dd3
RD
27395 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27396 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27397 void *argp1 = 0 ;
27398 int res1 = 0 ;
5c8c7dd3
RD
27399 void *argp2 = 0 ;
27400 int res2 = 0 ;
70d7cb34
RD
27401 PyObject * obj0 = 0 ;
27402 PyObject * obj1 = 0 ;
70d7cb34 27403 char * kwnames[] = {
5c8c7dd3 27404 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27405 };
27406
5c8c7dd3
RD
27407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27409 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27411 }
5c8c7dd3
RD
27412 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27414 if (!SWIG_IsOK(res2)) {
27415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27416 }
27417 if (!argp2) {
27418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27419 }
27420 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27421 {
5c8c7dd3 27422 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27423 if (PyErr_Occurred()) SWIG_fail;
27424 }
27425 resultobj = SWIG_Py_Void();
27426 return resultobj;
27427fail:
27428 return NULL;
27429}
27430
27431
5c8c7dd3 27432SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27433 PyObject *resultobj = 0;
5c8c7dd3 27434 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27435 wxRect2D result;
70d7cb34
RD
27436 void *argp1 = 0 ;
27437 int res1 = 0 ;
5c8c7dd3 27438 PyObject *swig_obj[1] ;
70d7cb34 27439
5c8c7dd3
RD
27440 if (!args) SWIG_fail;
27441 swig_obj[0] = args;
27442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27443 if (!SWIG_IsOK(res1)) {
8f514ab4 27444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27445 }
5c8c7dd3 27446 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27447 {
8f514ab4 27448 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
4fe9ce47 27451 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27452 return resultobj;
27453fail:
27454 return NULL;
27455}
27456
27457
5c8c7dd3 27458SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27459 PyObject *resultobj = 0;
5c8c7dd3
RD
27460 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27461 wxDouble arg2 ;
27462 wxDouble arg3 ;
8f514ab4 27463 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27464 bool result;
70d7cb34
RD
27465 void *argp1 = 0 ;
27466 int res1 = 0 ;
5c8c7dd3
RD
27467 double val2 ;
27468 int ecode2 = 0 ;
27469 double val3 ;
27470 int ecode3 = 0 ;
27471 int val4 ;
27472 int ecode4 = 0 ;
70d7cb34 27473
5c8c7dd3
RD
27474 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27476 if (!SWIG_IsOK(res1)) {
8f514ab4 27477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27478 }
5c8c7dd3
RD
27479 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27480 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27481 if (!SWIG_IsOK(ecode2)) {
27482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27483 }
27484 arg2 = static_cast< wxDouble >(val2);
27485 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27486 if (!SWIG_IsOK(ecode3)) {
27487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27488 }
27489 arg3 = static_cast< wxDouble >(val3);
27490 if (swig_obj[3]) {
27491 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27492 if (!SWIG_IsOK(ecode4)) {
27493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27494 }
27495 arg4 = static_cast< int >(val4);
70d7cb34
RD
27496 }
27497 {
8f514ab4 27498 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27499 if (PyErr_Occurred()) SWIG_fail;
27500 }
5c8c7dd3
RD
27501 {
27502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27503 }
27504 return resultobj;
27505fail:
27506 return NULL;
27507}
27508
27509
5c8c7dd3 27510SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27511 PyObject *resultobj = 0;
5c8c7dd3 27512 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27513 wxPoint2D *arg2 = 0 ;
8f514ab4 27514 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27515 bool result;
70d7cb34
RD
27516 void *argp1 = 0 ;
27517 int res1 = 0 ;
4fe9ce47 27518 wxPoint2D temp2 ;
5c8c7dd3
RD
27519 int val3 ;
27520 int ecode3 = 0 ;
70d7cb34 27521
5c8c7dd3
RD
27522 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27524 if (!SWIG_IsOK(res1)) {
8f514ab4 27525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27526 }
5c8c7dd3 27527 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
27528 {
27529 arg2 = &temp2;
27530 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 27531 }
5c8c7dd3
RD
27532 if (swig_obj[2]) {
27533 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27534 if (!SWIG_IsOK(ecode3)) {
27535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27536 }
27537 arg3 = static_cast< int >(val3);
70d7cb34
RD
27538 }
27539 {
4fe9ce47 27540 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
27541 if (PyErr_Occurred()) SWIG_fail;
27542 }
5c8c7dd3
RD
27543 {
27544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27545 }
27546 return resultobj;
27547fail:
27548 return NULL;
27549}
27550
27551
5c8c7dd3
RD
27552SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27553 int argc;
27554 PyObject *argv[5];
70d7cb34 27555
5c8c7dd3
RD
27556 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27557 --argc;
27558 if ((argc >= 2) && (argc <= 3)) {
27559 int _v = 0;
27560 {
4fe9ce47
RD
27561 {
27562 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27563 }
5c8c7dd3
RD
27564 }
27565 if (!_v) goto check_1;
27566 if (argc > 2) {
27567 {
27568 {
27569 int res = SWIG_AsVal_int(argv[2], NULL);
27570 _v = SWIG_CheckState(res);
27571 }
27572 }
27573 if (!_v) goto check_1;
27574 }
27575 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27576 }
5c8c7dd3
RD
27577check_1:
27578
27579 if ((argc >= 3) && (argc <= 4)) {
27580 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27581 }
5c8c7dd3 27582
70d7cb34 27583fail:
5c8c7dd3 27584 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27585 return NULL;
27586}
27587
27588
5c8c7dd3 27589SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27590 PyObject *obj;
27591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27592 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27593 return SWIG_Py_Void();
27594}
27595
8f514ab4
RD
27596SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27597 return SWIG_Python_InitShadowInstance(args);
27598}
27599
5c8c7dd3
RD
27600SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27601 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27602 return 1;
27603}
27604
27605
27606SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27607 PyObject *pyobj = 0;
27608
27609 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27610 return pyobj;
27611}
27612
27613
27614SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27615 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27616 return 1;
27617}
27618
27619
27620SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27621 PyObject *pyobj = 0;
27622
27623 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27624 return pyobj;
27625}
27626
27627
27628SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27629 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27630 return 1;
27631}
27632
27633
27634SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27635 PyObject *pyobj = 0;
27636
27637 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27638 return pyobj;
27639}
27640
27641
27642SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27643 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27644 return 1;
27645}
27646
27647
27648SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27649 PyObject *pyobj = 0;
27650
27651 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27652 return pyobj;
27653}
27654
27655
27656SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27657 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27658 return 1;
27659}
27660
27661
27662SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27663 PyObject *pyobj = 0;
27664
27665 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27666 return pyobj;
27667}
27668
27669
70d7cb34
RD
27670SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27671 PyObject *resultobj = 0;
27672 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27673 void *argp1 = 0 ;
27674 int res1 = 0 ;
27675 PyObject *swig_obj[1] ;
27676
27677 if (!args) SWIG_fail;
27678 swig_obj[0] = args;
27679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27680 if (!SWIG_IsOK(res1)) {
27681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27682 }
27683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27684 {
27685 delete arg1;
27686
27687 if (PyErr_Occurred()) SWIG_fail;
27688 }
27689 resultobj = SWIG_Py_Void();
27690 return resultobj;
27691fail:
27692 return NULL;
27693}
27694
27695
27696SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27697 PyObject *resultobj = 0;
27698 wxWindowDC *arg1 = 0 ;
27699 wxGraphicsContext *result = 0 ;
27700 void *argp1 = 0 ;
27701 int res1 = 0 ;
27702
27703 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27705 if (!SWIG_IsOK(res1)) {
27706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27707 }
27708 if (!argp1) {
27709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27710 }
27711 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27712 {
27713 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27714 if (PyErr_Occurred()) SWIG_fail;
27715 }
27716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27717 return resultobj;
27718fail:
27719 return NULL;
27720}
27721
27722
27723SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27724 PyObject *resultobj = 0;
27725 wxWindow *arg1 = (wxWindow *) 0 ;
27726 wxGraphicsContext *result = 0 ;
27727 void *argp1 = 0 ;
27728 int res1 = 0 ;
27729
27730 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27732 if (!SWIG_IsOK(res1)) {
27733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27734 }
27735 arg1 = reinterpret_cast< wxWindow * >(argp1);
27736 {
27737 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27738 if (PyErr_Occurred()) SWIG_fail;
27739 }
27740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27741 return resultobj;
27742fail:
27743 return NULL;
27744}
27745
27746
27747SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27748 int argc;
27749 PyObject *argv[2];
27750
27751 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27752 --argc;
27753 if (argc == 1) {
27754 int _v = 0;
27755 {
27756 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27757 _v = SWIG_CheckState(res);
27758 }
27759 if (!_v) goto check_1;
27760 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27761 }
27762check_1:
27763
27764 if (argc == 1) {
27765 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27766 }
27767
27768fail:
27769 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27770 return NULL;
27771}
27772
27773
f89238b9
RD
27774SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27775 PyObject *resultobj = 0;
27776 wxGraphicsContext *result = 0 ;
27777
27778 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27779 {
27780 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27781 if (PyErr_Occurred()) SWIG_fail;
27782 }
27783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27784 return resultobj;
27785fail:
27786 return NULL;
27787}
27788
27789
70d7cb34
RD
27790SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27791 PyObject *resultobj = 0;
27792 void *arg1 = (void *) 0 ;
27793 wxGraphicsContext *result = 0 ;
27794 int res1 ;
27795 PyObject * obj0 = 0 ;
27796 char * kwnames[] = {
27797 (char *) "context", NULL
27798 };
27799
27800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27801 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27802 if (!SWIG_IsOK(res1)) {
27803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27804 }
27805 {
27806 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27807 if (PyErr_Occurred()) SWIG_fail;
27808 }
27809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27810 return resultobj;
27811fail:
27812 return NULL;
27813}
27814
27815
27816SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27817 PyObject *resultobj = 0;
27818 void *arg1 = (void *) 0 ;
27819 wxGraphicsContext *result = 0 ;
27820 int res1 ;
27821 PyObject * obj0 = 0 ;
27822 char * kwnames[] = {
27823 (char *) "window", NULL
27824 };
27825
27826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27827 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27828 if (!SWIG_IsOK(res1)) {
27829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27830 }
27831 {
27832 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27833 if (PyErr_Occurred()) SWIG_fail;
27834 }
27835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27836 return resultobj;
27837fail:
27838 return NULL;
27839}
27840
27841
27842SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27843 PyObject *resultobj = 0;
27844 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27845 wxGraphicsPath result;
70d7cb34
RD
27846 void *argp1 = 0 ;
27847 int res1 = 0 ;
27848 PyObject *swig_obj[1] ;
27849
27850 if (!args) SWIG_fail;
27851 swig_obj[0] = args;
27852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27853 if (!SWIG_IsOK(res1)) {
27854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27855 }
27856 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27857 {
5c8c7dd3 27858 result = (arg1)->CreatePath();
70d7cb34
RD
27859 if (PyErr_Occurred()) SWIG_fail;
27860 }
5c8c7dd3 27861 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27862 return resultobj;
27863fail:
27864 return NULL;
27865}
27866
27867
70d7cb34 27868SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27869 PyObject *resultobj = 0;
70d7cb34
RD
27870 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27871 wxPen *arg2 = 0 ;
27872 wxGraphicsPen result;
72ef6efb
RD
27873 void *argp1 = 0 ;
27874 int res1 = 0 ;
70d7cb34
RD
27875 void *argp2 = 0 ;
27876 int res2 = 0 ;
72ef6efb
RD
27877 PyObject * obj0 = 0 ;
27878 PyObject * obj1 = 0 ;
72ef6efb 27879 char * kwnames[] = {
70d7cb34 27880 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27881 };
27882
70d7cb34
RD
27883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27885 if (!SWIG_IsOK(res1)) {
70d7cb34 27886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27887 }
70d7cb34
RD
27888 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27890 if (!SWIG_IsOK(res2)) {
27891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27892 }
27893 if (!argp2) {
27894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27895 }
27896 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27897 {
70d7cb34 27898 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27899 if (PyErr_Occurred()) SWIG_fail;
27900 }
70d7cb34 27901 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27902 return resultobj;
27903fail:
27904 return NULL;
27905}
27906
27907
70d7cb34 27908SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27909 PyObject *resultobj = 0;
70d7cb34
RD
27910 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27911 wxBrush *arg2 = 0 ;
27912 wxGraphicsBrush result;
72ef6efb
RD
27913 void *argp1 = 0 ;
27914 int res1 = 0 ;
70d7cb34
RD
27915 void *argp2 = 0 ;
27916 int res2 = 0 ;
72ef6efb
RD
27917 PyObject * obj0 = 0 ;
27918 PyObject * obj1 = 0 ;
72ef6efb 27919 char * kwnames[] = {
70d7cb34 27920 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27921 };
27922
70d7cb34
RD
27923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27925 if (!SWIG_IsOK(res1)) {
70d7cb34 27926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27927 }
70d7cb34
RD
27928 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27930 if (!SWIG_IsOK(res2)) {
27931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27932 }
27933 if (!argp2) {
27934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27935 }
27936 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27937 {
70d7cb34 27938 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27939 if (PyErr_Occurred()) SWIG_fail;
27940 }
70d7cb34 27941 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27942 return resultobj;
27943fail:
27944 return NULL;
27945}
27946
27947
70d7cb34 27948SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27949 PyObject *resultobj = 0;
70d7cb34 27950 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27951 wxDouble arg2 ;
27952 wxDouble arg3 ;
27953 wxDouble arg4 ;
27954 wxDouble arg5 ;
70d7cb34
RD
27955 wxColour *arg6 = 0 ;
27956 wxColour *arg7 = 0 ;
27957 wxGraphicsBrush result;
72ef6efb
RD
27958 void *argp1 = 0 ;
27959 int res1 = 0 ;
27960 double val2 ;
27961 int ecode2 = 0 ;
27962 double val3 ;
27963 int ecode3 = 0 ;
27964 double val4 ;
27965 int ecode4 = 0 ;
27966 double val5 ;
27967 int ecode5 = 0 ;
70d7cb34
RD
27968 wxColour temp6 ;
27969 wxColour temp7 ;
72ef6efb
RD
27970 PyObject * obj0 = 0 ;
27971 PyObject * obj1 = 0 ;
27972 PyObject * obj2 = 0 ;
27973 PyObject * obj3 = 0 ;
27974 PyObject * obj4 = 0 ;
70d7cb34
RD
27975 PyObject * obj5 = 0 ;
27976 PyObject * obj6 = 0 ;
72ef6efb 27977 char * kwnames[] = {
70d7cb34 27978 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27979 };
27980
70d7cb34
RD
27981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27983 if (!SWIG_IsOK(res1)) {
70d7cb34 27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27985 }
70d7cb34 27986 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27987 ecode2 = SWIG_AsVal_double(obj1, &val2);
27988 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27990 }
27991 arg2 = static_cast< wxDouble >(val2);
27992 ecode3 = SWIG_AsVal_double(obj2, &val3);
27993 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27995 }
27996 arg3 = static_cast< wxDouble >(val3);
27997 ecode4 = SWIG_AsVal_double(obj3, &val4);
27998 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28000 }
28001 arg4 = static_cast< wxDouble >(val4);
28002 ecode5 = SWIG_AsVal_double(obj4, &val5);
28003 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28004 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28005 }
28006 arg5 = static_cast< wxDouble >(val5);
28007 {
70d7cb34
RD
28008 arg6 = &temp6;
28009 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28010 }
70d7cb34
RD
28011 {
28012 arg7 = &temp7;
28013 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28014 }
72ef6efb 28015 {
70d7cb34 28016 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
70d7cb34 28019 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28020 return resultobj;
28021fail:
28022 return NULL;
28023}
28024
28025
70d7cb34 28026SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28027 PyObject *resultobj = 0;
70d7cb34 28028 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28029 wxDouble arg2 ;
28030 wxDouble arg3 ;
28031 wxDouble arg4 ;
28032 wxDouble arg5 ;
28033 wxDouble arg6 ;
70d7cb34
RD
28034 wxColour *arg7 = 0 ;
28035 wxColour *arg8 = 0 ;
28036 wxGraphicsBrush result;
72ef6efb
RD
28037 void *argp1 = 0 ;
28038 int res1 = 0 ;
28039 double val2 ;
28040 int ecode2 = 0 ;
28041 double val3 ;
28042 int ecode3 = 0 ;
28043 double val4 ;
28044 int ecode4 = 0 ;
28045 double val5 ;
28046 int ecode5 = 0 ;
28047 double val6 ;
28048 int ecode6 = 0 ;
70d7cb34
RD
28049 wxColour temp7 ;
28050 wxColour temp8 ;
72ef6efb
RD
28051 PyObject * obj0 = 0 ;
28052 PyObject * obj1 = 0 ;
28053 PyObject * obj2 = 0 ;
28054 PyObject * obj3 = 0 ;
28055 PyObject * obj4 = 0 ;
28056 PyObject * obj5 = 0 ;
70d7cb34
RD
28057 PyObject * obj6 = 0 ;
28058 PyObject * obj7 = 0 ;
72ef6efb 28059 char * kwnames[] = {
70d7cb34 28060 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28061 };
28062
70d7cb34
RD
28063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28065 if (!SWIG_IsOK(res1)) {
70d7cb34 28066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28067 }
70d7cb34 28068 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28069 ecode2 = SWIG_AsVal_double(obj1, &val2);
28070 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28072 }
28073 arg2 = static_cast< wxDouble >(val2);
28074 ecode3 = SWIG_AsVal_double(obj2, &val3);
28075 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28077 }
28078 arg3 = static_cast< wxDouble >(val3);
28079 ecode4 = SWIG_AsVal_double(obj3, &val4);
28080 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28082 }
28083 arg4 = static_cast< wxDouble >(val4);
28084 ecode5 = SWIG_AsVal_double(obj4, &val5);
28085 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28087 }
28088 arg5 = static_cast< wxDouble >(val5);
28089 ecode6 = SWIG_AsVal_double(obj5, &val6);
28090 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28091 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28092 }
28093 arg6 = static_cast< wxDouble >(val6);
28094 {
70d7cb34
RD
28095 arg7 = &temp7;
28096 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28097 }
28098 {
28099 arg8 = &temp8;
28100 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28101 }
28102 {
28103 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28104 if (PyErr_Occurred()) SWIG_fail;
28105 }
70d7cb34 28106 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28107 return resultobj;
28108fail:
28109 return NULL;
28110}
28111
28112
70d7cb34 28113SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28114 PyObject *resultobj = 0;
28115 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28116 wxFont *arg2 = 0 ;
28117 wxColour const &arg3_defvalue = *wxBLACK ;
28118 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28119 wxGraphicsFont result;
72ef6efb
RD
28120 void *argp1 = 0 ;
28121 int res1 = 0 ;
70d7cb34
RD
28122 void *argp2 = 0 ;
28123 int res2 = 0 ;
28124 wxColour temp3 ;
28125 PyObject * obj0 = 0 ;
28126 PyObject * obj1 = 0 ;
28127 PyObject * obj2 = 0 ;
28128 char * kwnames[] = {
28129 (char *) "self",(char *) "font",(char *) "col", NULL
28130 };
72ef6efb 28131
70d7cb34
RD
28132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28134 if (!SWIG_IsOK(res1)) {
70d7cb34 28135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28136 }
28137 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28139 if (!SWIG_IsOK(res2)) {
28140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28141 }
70d7cb34
RD
28142 if (!argp2) {
28143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28144 }
70d7cb34
RD
28145 arg2 = reinterpret_cast< wxFont * >(argp2);
28146 if (obj2) {
28147 {
28148 arg3 = &temp3;
28149 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28150 }
72ef6efb 28151 }
72ef6efb 28152 {
70d7cb34 28153 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28154 if (PyErr_Occurred()) SWIG_fail;
28155 }
70d7cb34 28156 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28157 return resultobj;
28158fail:
28159 return NULL;
28160}
28161
28162
70d7cb34 28163SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28164 PyObject *resultobj = 0;
70d7cb34
RD
28165 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28166 wxDouble arg2 = (wxDouble) 1.0 ;
28167 wxDouble arg3 = (wxDouble) 0.0 ;
28168 wxDouble arg4 = (wxDouble) 0.0 ;
28169 wxDouble arg5 = (wxDouble) 1.0 ;
28170 wxDouble arg6 = (wxDouble) 0.0 ;
28171 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28172 wxGraphicsMatrix result;
0a27f394
RD
28173 void *argp1 = 0 ;
28174 int res1 = 0 ;
70d7cb34
RD
28175 double val2 ;
28176 int ecode2 = 0 ;
28177 double val3 ;
28178 int ecode3 = 0 ;
28179 double val4 ;
28180 int ecode4 = 0 ;
28181 double val5 ;
28182 int ecode5 = 0 ;
28183 double val6 ;
28184 int ecode6 = 0 ;
28185 double val7 ;
28186 int ecode7 = 0 ;
28187 PyObject * obj0 = 0 ;
28188 PyObject * obj1 = 0 ;
28189 PyObject * obj2 = 0 ;
28190 PyObject * obj3 = 0 ;
28191 PyObject * obj4 = 0 ;
28192 PyObject * obj5 = 0 ;
28193 PyObject * obj6 = 0 ;
28194 char * kwnames[] = {
28195 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28196 };
0a27f394 28197
70d7cb34
RD
28198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28200 if (!SWIG_IsOK(res1)) {
70d7cb34 28201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28202 }
70d7cb34
RD
28203 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28204 if (obj1) {
28205 ecode2 = SWIG_AsVal_double(obj1, &val2);
28206 if (!SWIG_IsOK(ecode2)) {
28207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28208 }
28209 arg2 = static_cast< wxDouble >(val2);
0a27f394 28210 }
70d7cb34
RD
28211 if (obj2) {
28212 ecode3 = SWIG_AsVal_double(obj2, &val3);
28213 if (!SWIG_IsOK(ecode3)) {
28214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28215 }
28216 arg3 = static_cast< wxDouble >(val3);
0a27f394 28217 }
70d7cb34
RD
28218 if (obj3) {
28219 ecode4 = SWIG_AsVal_double(obj3, &val4);
28220 if (!SWIG_IsOK(ecode4)) {
28221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28222 }
28223 arg4 = static_cast< wxDouble >(val4);
0a27f394 28224 }
70d7cb34
RD
28225 if (obj4) {
28226 ecode5 = SWIG_AsVal_double(obj4, &val5);
28227 if (!SWIG_IsOK(ecode5)) {
28228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28229 }
28230 arg5 = static_cast< wxDouble >(val5);
0a27f394 28231 }
70d7cb34
RD
28232 if (obj5) {
28233 ecode6 = SWIG_AsVal_double(obj5, &val6);
28234 if (!SWIG_IsOK(ecode6)) {
28235 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28236 }
28237 arg6 = static_cast< wxDouble >(val6);
0a27f394 28238 }
70d7cb34
RD
28239 if (obj6) {
28240 ecode7 = SWIG_AsVal_double(obj6, &val7);
28241 if (!SWIG_IsOK(ecode7)) {
28242 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28243 }
28244 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28245 }
72ef6efb 28246 {
5c8c7dd3 28247 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
5c8c7dd3 28250 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28251 return resultobj;
28252fail:
28253 return NULL;
28254}
28255
28256
28257SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28258 PyObject *resultobj = 0;
28259 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28260 void *argp1 = 0 ;
28261 int res1 = 0 ;
28262 PyObject *swig_obj[1] ;
28263
28264 if (!args) SWIG_fail;
28265 swig_obj[0] = args;
28266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28267 if (!SWIG_IsOK(res1)) {
28268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28269 }
28270 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28271 {
72ef6efb 28272 (arg1)->PushState();
72ef6efb
RD
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 resultobj = SWIG_Py_Void();
28276 return resultobj;
28277fail:
28278 return NULL;
28279}
28280
28281
28282SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28283 PyObject *resultobj = 0;
28284 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28285 void *argp1 = 0 ;
28286 int res1 = 0 ;
28287 PyObject *swig_obj[1] ;
28288
28289 if (!args) SWIG_fail;
28290 swig_obj[0] = args;
28291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28292 if (!SWIG_IsOK(res1)) {
28293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28294 }
28295 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28296 {
72ef6efb 28297 (arg1)->PopState();
72ef6efb
RD
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_Py_Void();
28301 return resultobj;
28302fail:
28303 return NULL;
28304}
28305
28306
0a27f394 28307SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28308 PyObject *resultobj = 0;
28309 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28310 wxRegion *arg2 = 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 void *argp2 = 0 ;
28314 int res2 = 0 ;
28315 PyObject * obj0 = 0 ;
28316 PyObject * obj1 = 0 ;
28317 char * kwnames[] = {
28318 (char *) "self",(char *) "region", NULL
28319 };
28320
0a27f394 28321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28323 if (!SWIG_IsOK(res1)) {
0a27f394 28324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28325 }
28326 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28328 if (!SWIG_IsOK(res2)) {
0a27f394 28329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28330 }
28331 if (!argp2) {
0a27f394 28332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28333 }
28334 arg2 = reinterpret_cast< wxRegion * >(argp2);
28335 {
72ef6efb 28336 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28337 if (PyErr_Occurred()) SWIG_fail;
28338 }
28339 resultobj = SWIG_Py_Void();
28340 return resultobj;
28341fail:
28342 return NULL;
28343}
28344
28345
0a27f394
RD
28346SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28347 PyObject *resultobj = 0;
28348 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28349 wxDouble arg2 ;
28350 wxDouble arg3 ;
28351 wxDouble arg4 ;
28352 wxDouble arg5 ;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 double val2 ;
28356 int ecode2 = 0 ;
28357 double val3 ;
28358 int ecode3 = 0 ;
28359 double val4 ;
28360 int ecode4 = 0 ;
28361 double val5 ;
28362 int ecode5 = 0 ;
28363 PyObject * obj0 = 0 ;
28364 PyObject * obj1 = 0 ;
28365 PyObject * obj2 = 0 ;
28366 PyObject * obj3 = 0 ;
28367 PyObject * obj4 = 0 ;
28368 char * kwnames[] = {
28369 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28370 };
28371
28372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28374 if (!SWIG_IsOK(res1)) {
28375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28376 }
28377 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28378 ecode2 = SWIG_AsVal_double(obj1, &val2);
28379 if (!SWIG_IsOK(ecode2)) {
28380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28381 }
28382 arg2 = static_cast< wxDouble >(val2);
28383 ecode3 = SWIG_AsVal_double(obj2, &val3);
28384 if (!SWIG_IsOK(ecode3)) {
28385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28386 }
28387 arg3 = static_cast< wxDouble >(val3);
28388 ecode4 = SWIG_AsVal_double(obj3, &val4);
28389 if (!SWIG_IsOK(ecode4)) {
28390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28391 }
28392 arg4 = static_cast< wxDouble >(val4);
28393 ecode5 = SWIG_AsVal_double(obj4, &val5);
28394 if (!SWIG_IsOK(ecode5)) {
28395 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28396 }
28397 arg5 = static_cast< wxDouble >(val5);
28398 {
28399 (arg1)->Clip(arg2,arg3,arg4,arg5);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_Py_Void();
28403 return resultobj;
28404fail:
28405 return NULL;
28406}
28407
28408
28409SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28412 void *argp1 = 0 ;
28413 int res1 = 0 ;
28414 PyObject *swig_obj[1] ;
28415
28416 if (!args) SWIG_fail;
28417 swig_obj[0] = args;
28418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28419 if (!SWIG_IsOK(res1)) {
28420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28421 }
28422 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28423 {
28424 (arg1)->ResetClip();
28425 if (PyErr_Occurred()) SWIG_fail;
28426 }
28427 resultobj = SWIG_Py_Void();
28428 return resultobj;
28429fail:
28430 return NULL;
28431}
28432
28433
28434SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28435 PyObject *resultobj = 0;
28436 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28437 void *result = 0 ;
28438 void *argp1 = 0 ;
28439 int res1 = 0 ;
28440 PyObject *swig_obj[1] ;
28441
28442 if (!args) SWIG_fail;
28443 swig_obj[0] = args;
28444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28445 if (!SWIG_IsOK(res1)) {
28446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28447 }
28448 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28449 {
28450 result = (void *)(arg1)->GetNativeContext();
28451 if (PyErr_Occurred()) SWIG_fail;
28452 }
28453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28454 return resultobj;
28455fail:
28456 return NULL;
28457}
28458
28459
c8aaaf9e
RD
28460SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28461 PyObject *resultobj = 0;
28462 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28463 int result;
28464 void *argp1 = 0 ;
28465 int res1 = 0 ;
28466 PyObject *swig_obj[1] ;
28467
28468 if (!args) SWIG_fail;
28469 swig_obj[0] = args;
28470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28471 if (!SWIG_IsOK(res1)) {
28472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28473 }
28474 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28475 {
28476 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 resultobj = SWIG_From_int(static_cast< int >(result));
28480 return resultobj;
28481fail:
28482 return NULL;
28483}
28484
28485
28486SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28487 PyObject *resultobj = 0;
28488 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28489 int arg2 ;
28490 bool result;
28491 void *argp1 = 0 ;
28492 int res1 = 0 ;
28493 int val2 ;
28494 int ecode2 = 0 ;
28495 PyObject * obj0 = 0 ;
28496 PyObject * obj1 = 0 ;
28497 char * kwnames[] = {
28498 (char *) "self",(char *) "function", NULL
28499 };
28500
28501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28503 if (!SWIG_IsOK(res1)) {
28504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28505 }
28506 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28507 ecode2 = SWIG_AsVal_int(obj1, &val2);
28508 if (!SWIG_IsOK(ecode2)) {
28509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28510 }
28511 arg2 = static_cast< int >(val2);
28512 {
28513 result = (bool)(arg1)->SetLogicalFunction(arg2);
28514 if (PyErr_Occurred()) SWIG_fail;
28515 }
28516 {
28517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28518 }
28519 return resultobj;
28520fail:
28521 return NULL;
28522}
28523
28524
72ef6efb
RD
28525SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28526 PyObject *resultobj = 0;
28527 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28528 wxDouble arg2 ;
28529 wxDouble arg3 ;
28530 void *argp1 = 0 ;
28531 int res1 = 0 ;
28532 double val2 ;
28533 int ecode2 = 0 ;
28534 double val3 ;
28535 int ecode3 = 0 ;
28536 PyObject * obj0 = 0 ;
28537 PyObject * obj1 = 0 ;
28538 PyObject * obj2 = 0 ;
28539 char * kwnames[] = {
28540 (char *) "self",(char *) "dx",(char *) "dy", NULL
28541 };
28542
28543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28545 if (!SWIG_IsOK(res1)) {
28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28547 }
28548 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28549 ecode2 = SWIG_AsVal_double(obj1, &val2);
28550 if (!SWIG_IsOK(ecode2)) {
28551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28552 }
28553 arg2 = static_cast< wxDouble >(val2);
28554 ecode3 = SWIG_AsVal_double(obj2, &val3);
28555 if (!SWIG_IsOK(ecode3)) {
28556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28557 }
28558 arg3 = static_cast< wxDouble >(val3);
28559 {
72ef6efb 28560 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 resultobj = SWIG_Py_Void();
28564 return resultobj;
28565fail:
28566 return NULL;
28567}
28568
28569
28570SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28571 PyObject *resultobj = 0;
28572 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28573 wxDouble arg2 ;
28574 wxDouble arg3 ;
28575 void *argp1 = 0 ;
28576 int res1 = 0 ;
28577 double val2 ;
28578 int ecode2 = 0 ;
28579 double val3 ;
28580 int ecode3 = 0 ;
28581 PyObject * obj0 = 0 ;
28582 PyObject * obj1 = 0 ;
28583 PyObject * obj2 = 0 ;
28584 char * kwnames[] = {
28585 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28586 };
28587
28588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28590 if (!SWIG_IsOK(res1)) {
28591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28592 }
28593 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28594 ecode2 = SWIG_AsVal_double(obj1, &val2);
28595 if (!SWIG_IsOK(ecode2)) {
28596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28597 }
28598 arg2 = static_cast< wxDouble >(val2);
28599 ecode3 = SWIG_AsVal_double(obj2, &val3);
28600 if (!SWIG_IsOK(ecode3)) {
28601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28602 }
28603 arg3 = static_cast< wxDouble >(val3);
28604 {
72ef6efb 28605 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28606 if (PyErr_Occurred()) SWIG_fail;
28607 }
28608 resultobj = SWIG_Py_Void();
28609 return resultobj;
28610fail:
28611 return NULL;
28612}
28613
28614
28615SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28616 PyObject *resultobj = 0;
28617 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28618 wxDouble arg2 ;
28619 void *argp1 = 0 ;
28620 int res1 = 0 ;
28621 double val2 ;
28622 int ecode2 = 0 ;
28623 PyObject * obj0 = 0 ;
28624 PyObject * obj1 = 0 ;
28625 char * kwnames[] = {
28626 (char *) "self",(char *) "angle", NULL
28627 };
28628
28629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28631 if (!SWIG_IsOK(res1)) {
28632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28633 }
28634 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28635 ecode2 = SWIG_AsVal_double(obj1, &val2);
28636 if (!SWIG_IsOK(ecode2)) {
28637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28638 }
28639 arg2 = static_cast< wxDouble >(val2);
28640 {
72ef6efb 28641 (arg1)->Rotate(arg2);
72ef6efb
RD
28642 if (PyErr_Occurred()) SWIG_fail;
28643 }
28644 resultobj = SWIG_Py_Void();
28645 return resultobj;
28646fail:
28647 return NULL;
28648}
28649
28650
5c8c7dd3
RD
28651SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28652 PyObject *resultobj = 0;
28653 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28654 wxGraphicsMatrix *arg2 = 0 ;
28655 void *argp1 = 0 ;
28656 int res1 = 0 ;
28657 void *argp2 = 0 ;
28658 int res2 = 0 ;
28659 PyObject * obj0 = 0 ;
28660 PyObject * obj1 = 0 ;
28661 char * kwnames[] = {
28662 (char *) "self",(char *) "matrix", NULL
28663 };
28664
28665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28667 if (!SWIG_IsOK(res1)) {
28668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28669 }
28670 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28672 if (!SWIG_IsOK(res2)) {
28673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28674 }
28675 if (!argp2) {
28676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28677 }
28678 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28679 {
28680 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28681 if (PyErr_Occurred()) SWIG_fail;
28682 }
28683 resultobj = SWIG_Py_Void();
28684 return resultobj;
28685fail:
28686 return NULL;
28687}
28688
28689
28690SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28691 PyObject *resultobj = 0;
28692 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28693 wxGraphicsMatrix *arg2 = 0 ;
28694 void *argp1 = 0 ;
28695 int res1 = 0 ;
28696 void *argp2 = 0 ;
28697 int res2 = 0 ;
28698 PyObject * obj0 = 0 ;
28699 PyObject * obj1 = 0 ;
28700 char * kwnames[] = {
28701 (char *) "self",(char *) "matrix", NULL
28702 };
28703
28704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28706 if (!SWIG_IsOK(res1)) {
28707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28708 }
28709 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28711 if (!SWIG_IsOK(res2)) {
28712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28713 }
28714 if (!argp2) {
28715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28716 }
28717 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28718 {
28719 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28720 if (PyErr_Occurred()) SWIG_fail;
28721 }
28722 resultobj = SWIG_Py_Void();
28723 return resultobj;
28724fail:
28725 return NULL;
28726}
28727
28728
28729SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28730 PyObject *resultobj = 0;
28731 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28732 wxGraphicsMatrix result;
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 PyObject *swig_obj[1] ;
28736
28737 if (!args) SWIG_fail;
28738 swig_obj[0] = args;
28739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28740 if (!SWIG_IsOK(res1)) {
28741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28742 }
28743 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28744 {
28745 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28746 if (PyErr_Occurred()) SWIG_fail;
28747 }
28748 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28749 return resultobj;
28750fail:
28751 return NULL;
28752}
28753
28754
70d7cb34
RD
28755SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28756 PyObject *resultobj = 0;
28757 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28758 wxGraphicsPen *arg2 = 0 ;
28759 void *argp1 = 0 ;
28760 int res1 = 0 ;
28761 void *argp2 = 0 ;
28762 int res2 = 0 ;
28763
28764 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28766 if (!SWIG_IsOK(res1)) {
28767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28768 }
28769 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28770 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28771 if (!SWIG_IsOK(res2)) {
28772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28773 }
28774 if (!argp2) {
28775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28776 }
28777 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28778 {
28779 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 resultobj = SWIG_Py_Void();
28783 return resultobj;
28784fail:
28785 return NULL;
28786}
28787
28788
28789SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28790 PyObject *resultobj = 0;
28791 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28792 wxPen *arg2 = 0 ;
28793 void *argp1 = 0 ;
28794 int res1 = 0 ;
28795 void *argp2 = 0 ;
28796 int res2 = 0 ;
72ef6efb 28797
70d7cb34
RD
28798 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28800 if (!SWIG_IsOK(res1)) {
28801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28802 }
28803 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28804 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28805 if (!SWIG_IsOK(res2)) {
28806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28807 }
28808 if (!argp2) {
28809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28810 }
28811 arg2 = reinterpret_cast< wxPen * >(argp2);
28812 {
72ef6efb 28813 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28814 if (PyErr_Occurred()) SWIG_fail;
28815 }
28816 resultobj = SWIG_Py_Void();
28817 return resultobj;
28818fail:
28819 return NULL;
28820}
28821
28822
70d7cb34
RD
28823SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28824 int argc;
28825 PyObject *argv[3];
28826
28827 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28828 --argc;
28829 if (argc == 2) {
28830 int _v = 0;
28831 {
28832 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28833 _v = SWIG_CheckState(res);
28834 }
28835 if (!_v) goto check_1;
28836 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28837 }
28838check_1:
28839
28840 if (argc == 2) {
28841 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28842 }
28843
28844fail:
28845 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28846 return NULL;
28847}
28848
28849
28850SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28851 PyObject *resultobj = 0;
28852 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28853 wxGraphicsBrush *arg2 = 0 ;
28854 void *argp1 = 0 ;
28855 int res1 = 0 ;
28856 void *argp2 = 0 ;
28857 int res2 = 0 ;
28858
28859 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28861 if (!SWIG_IsOK(res1)) {
28862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28863 }
28864 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28865 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28866 if (!SWIG_IsOK(res2)) {
28867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28868 }
28869 if (!argp2) {
28870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28871 }
28872 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28873 {
28874 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28875 if (PyErr_Occurred()) SWIG_fail;
28876 }
28877 resultobj = SWIG_Py_Void();
28878 return resultobj;
28879fail:
28880 return NULL;
28881}
28882
28883
28884SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28885 PyObject *resultobj = 0;
28886 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28887 wxBrush *arg2 = 0 ;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890 void *argp2 = 0 ;
28891 int res2 = 0 ;
72ef6efb 28892
70d7cb34
RD
28893 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28895 if (!SWIG_IsOK(res1)) {
28896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28897 }
28898 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28899 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28900 if (!SWIG_IsOK(res2)) {
28901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28902 }
28903 if (!argp2) {
28904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28905 }
28906 arg2 = reinterpret_cast< wxBrush * >(argp2);
28907 {
72ef6efb 28908 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28909 if (PyErr_Occurred()) SWIG_fail;
28910 }
28911 resultobj = SWIG_Py_Void();
28912 return resultobj;
28913fail:
28914 return NULL;
28915}
28916
28917
70d7cb34
RD
28918SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28919 int argc;
28920 PyObject *argv[3];
72ef6efb 28921
70d7cb34
RD
28922 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28923 --argc;
28924 if (argc == 2) {
28925 int _v = 0;
28926 {
28927 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28928 _v = SWIG_CheckState(res);
28929 }
28930 if (!_v) goto check_1;
28931 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28932 }
70d7cb34
RD
28933check_1:
28934
28935 if (argc == 2) {
28936 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28937 }
70d7cb34 28938
72ef6efb 28939fail:
70d7cb34 28940 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28941 return NULL;
28942}
28943
28944
70d7cb34 28945SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28946 PyObject *resultobj = 0;
28947 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28948 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28949 void *argp1 = 0 ;
28950 int res1 = 0 ;
70d7cb34
RD
28951 void *argp2 = 0 ;
28952 int res2 = 0 ;
72ef6efb 28953
70d7cb34
RD
28954 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28956 if (!SWIG_IsOK(res1)) {
70d7cb34 28957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28958 }
28959 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28960 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28961 if (!SWIG_IsOK(res2)) {
28962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28963 }
70d7cb34
RD
28964 if (!argp2) {
28965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28966 }
70d7cb34 28967 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28968 {
70d7cb34 28969 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28970 if (PyErr_Occurred()) SWIG_fail;
28971 }
28972 resultobj = SWIG_Py_Void();
28973 return resultobj;
28974fail:
28975 return NULL;
28976}
28977
28978
70d7cb34 28979SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28980 PyObject *resultobj = 0;
28981 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28982 wxFont *arg2 = 0 ;
70d7cb34
RD
28983 wxColour const &arg3_defvalue = *wxBLACK ;
28984 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28985 void *argp1 = 0 ;
28986 int res1 = 0 ;
28987 void *argp2 = 0 ;
28988 int res2 = 0 ;
70d7cb34 28989 wxColour temp3 ;
72ef6efb 28990
70d7cb34
RD
28991 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28993 if (!SWIG_IsOK(res1)) {
28994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28995 }
28996 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28997 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28998 if (!SWIG_IsOK(res2)) {
28999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29000 }
29001 if (!argp2) {
29002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29003 }
29004 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29005 if (swig_obj[2]) {
29006 {
29007 arg3 = &temp3;
29008 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29009 }
29010 }
72ef6efb 29011 {
70d7cb34 29012 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29013 if (PyErr_Occurred()) SWIG_fail;
29014 }
29015 resultobj = SWIG_Py_Void();
29016 return resultobj;
29017fail:
29018 return NULL;
29019}
29020
29021
70d7cb34
RD
29022SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29023 int argc;
29024 PyObject *argv[4];
72ef6efb 29025
70d7cb34
RD
29026 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29027 --argc;
29028 if (argc == 2) {
29029 int _v = 0;
29030 {
29031 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29032 _v = SWIG_CheckState(res);
29033 }
29034 if (!_v) goto check_1;
29035 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29036 }
70d7cb34
RD
29037check_1:
29038
29039 if ((argc >= 2) && (argc <= 3)) {
29040 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29041 }
70d7cb34 29042
72ef6efb 29043fail:
70d7cb34 29044 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29045 return NULL;
29046}
29047
29048
29049SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29050 PyObject *resultobj = 0;
29051 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29052 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29053 void *argp1 = 0 ;
29054 int res1 = 0 ;
29055 void *argp2 = 0 ;
29056 int res2 = 0 ;
29057 PyObject * obj0 = 0 ;
29058 PyObject * obj1 = 0 ;
29059 char * kwnames[] = {
29060 (char *) "self",(char *) "path", NULL
29061 };
29062
29063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29065 if (!SWIG_IsOK(res1)) {
29066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29067 }
29068 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29070 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29072 }
29073 if (!argp2) {
29074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29075 }
29076 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29077 {
5c8c7dd3 29078 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29079 if (PyErr_Occurred()) SWIG_fail;
29080 }
29081 resultobj = SWIG_Py_Void();
29082 return resultobj;
29083fail:
29084 return NULL;
29085}
29086
29087
29088SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29089 PyObject *resultobj = 0;
29090 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29091 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29092 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29093 void *argp1 = 0 ;
29094 int res1 = 0 ;
29095 void *argp2 = 0 ;
29096 int res2 = 0 ;
29097 int val3 ;
29098 int ecode3 = 0 ;
29099 PyObject * obj0 = 0 ;
29100 PyObject * obj1 = 0 ;
29101 PyObject * obj2 = 0 ;
29102 char * kwnames[] = {
29103 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29104 };
29105
29106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29108 if (!SWIG_IsOK(res1)) {
29109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29110 }
29111 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29113 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29115 }
29116 if (!argp2) {
29117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29118 }
29119 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29120 if (obj2) {
29121 ecode3 = SWIG_AsVal_int(obj2, &val3);
29122 if (!SWIG_IsOK(ecode3)) {
29123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29124 }
29125 arg3 = static_cast< int >(val3);
29126 }
29127 {
5c8c7dd3 29128 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 resultobj = SWIG_Py_Void();
29132 return resultobj;
29133fail:
29134 return NULL;
29135}
29136
29137
29138SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29139 PyObject *resultobj = 0;
29140 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29141 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29142 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29143 void *argp1 = 0 ;
29144 int res1 = 0 ;
29145 void *argp2 = 0 ;
29146 int res2 = 0 ;
29147 int val3 ;
29148 int ecode3 = 0 ;
29149 PyObject * obj0 = 0 ;
29150 PyObject * obj1 = 0 ;
29151 PyObject * obj2 = 0 ;
29152 char * kwnames[] = {
29153 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29154 };
29155
29156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29158 if (!SWIG_IsOK(res1)) {
29159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29160 }
29161 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29163 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29165 }
29166 if (!argp2) {
29167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29168 }
29169 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29170 if (obj2) {
29171 ecode3 = SWIG_AsVal_int(obj2, &val3);
29172 if (!SWIG_IsOK(ecode3)) {
29173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29174 }
29175 arg3 = static_cast< int >(val3);
29176 }
29177 {
5c8c7dd3 29178 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
29181 resultobj = SWIG_Py_Void();
29182 return resultobj;
29183fail:
29184 return NULL;
29185}
29186
29187
b39fe951 29188SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29189 PyObject *resultobj = 0;
29190 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29191 wxString *arg2 = 0 ;
29192 wxDouble arg3 ;
29193 wxDouble arg4 ;
f89238b9
RD
29194 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29195 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29196 void *argp1 = 0 ;
29197 int res1 = 0 ;
29198 bool temp2 = false ;
29199 double val3 ;
29200 int ecode3 = 0 ;
29201 double val4 ;
29202 int ecode4 = 0 ;
f89238b9
RD
29203 void *argp5 = 0 ;
29204 int res5 = 0 ;
b39fe951
RD
29205 PyObject * obj0 = 0 ;
29206 PyObject * obj1 = 0 ;
29207 PyObject * obj2 = 0 ;
29208 PyObject * obj3 = 0 ;
f89238b9 29209 PyObject * obj4 = 0 ;
b39fe951 29210 char * kwnames[] = {
f89238b9 29211 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29212 };
72ef6efb 29213
f89238b9 29214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29216 if (!SWIG_IsOK(res1)) {
29217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29218 }
29219 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29220 {
b39fe951 29221 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29222 if (arg2 == NULL) SWIG_fail;
29223 temp2 = true;
29224 }
b39fe951 29225 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29226 if (!SWIG_IsOK(ecode3)) {
29227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29228 }
29229 arg3 = static_cast< wxDouble >(val3);
b39fe951 29230 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29231 if (!SWIG_IsOK(ecode4)) {
29232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29233 }
29234 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29235 if (obj4) {
29236 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29237 if (!SWIG_IsOK(res5)) {
29238 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29239 }
29240 if (!argp5) {
29241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29242 }
29243 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29244 }
72ef6efb 29245 {
f89238b9 29246 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29247 if (PyErr_Occurred()) SWIG_fail;
29248 }
29249 resultobj = SWIG_Py_Void();
29250 {
29251 if (temp2)
29252 delete arg2;
29253 }
29254 return resultobj;
29255fail:
29256 {
29257 if (temp2)
29258 delete arg2;
29259 }
29260 return NULL;
29261}
29262
29263
b39fe951 29264SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29265 PyObject *resultobj = 0;
29266 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29267 wxString *arg2 = 0 ;
29268 wxDouble arg3 ;
29269 wxDouble arg4 ;
29270 wxDouble arg5 ;
f89238b9
RD
29271 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29272 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29273 void *argp1 = 0 ;
29274 int res1 = 0 ;
29275 bool temp2 = false ;
29276 double val3 ;
29277 int ecode3 = 0 ;
29278 double val4 ;
29279 int ecode4 = 0 ;
29280 double val5 ;
29281 int ecode5 = 0 ;
f89238b9
RD
29282 void *argp6 = 0 ;
29283 int res6 = 0 ;
b39fe951
RD
29284 PyObject * obj0 = 0 ;
29285 PyObject * obj1 = 0 ;
29286 PyObject * obj2 = 0 ;
29287 PyObject * obj3 = 0 ;
29288 PyObject * obj4 = 0 ;
f89238b9 29289 PyObject * obj5 = 0 ;
b39fe951 29290 char * kwnames[] = {
f89238b9 29291 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29292 };
72ef6efb 29293
f89238b9 29294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29296 if (!SWIG_IsOK(res1)) {
b39fe951 29297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29298 }
29299 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29300 {
b39fe951 29301 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29302 if (arg2 == NULL) SWIG_fail;
29303 temp2 = true;
29304 }
b39fe951 29305 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29306 if (!SWIG_IsOK(ecode3)) {
b39fe951 29307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29308 }
29309 arg3 = static_cast< wxDouble >(val3);
b39fe951 29310 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29311 if (!SWIG_IsOK(ecode4)) {
b39fe951 29312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29313 }
29314 arg4 = static_cast< wxDouble >(val4);
b39fe951 29315 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29316 if (!SWIG_IsOK(ecode5)) {
b39fe951 29317 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29318 }
29319 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29320 if (obj5) {
29321 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29322 if (!SWIG_IsOK(res6)) {
29323 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29324 }
29325 if (!argp6) {
29326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29327 }
29328 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29329 }
72ef6efb 29330 {
f89238b9 29331 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29332 if (PyErr_Occurred()) SWIG_fail;
29333 }
29334 resultobj = SWIG_Py_Void();
29335 {
29336 if (temp2)
29337 delete arg2;
29338 }
29339 return resultobj;
29340fail:
29341 {
29342 if (temp2)
29343 delete arg2;
29344 }
29345 return NULL;
29346}
29347
29348
be68621e 29349SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29350 PyObject *resultobj = 0;
29351 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29352 wxString *arg2 = 0 ;
29353 wxDouble *arg3 = (wxDouble *) 0 ;
29354 wxDouble *arg4 = (wxDouble *) 0 ;
29355 wxDouble *arg5 = (wxDouble *) 0 ;
29356 wxDouble *arg6 = (wxDouble *) 0 ;
29357 void *argp1 = 0 ;
29358 int res1 = 0 ;
29359 bool temp2 = false ;
29360 wxDouble temp3 ;
29361 int res3 = SWIG_TMPOBJ ;
29362 wxDouble temp4 ;
29363 int res4 = SWIG_TMPOBJ ;
29364 wxDouble temp5 ;
29365 int res5 = SWIG_TMPOBJ ;
29366 wxDouble temp6 ;
29367 int res6 = SWIG_TMPOBJ ;
29368 PyObject * obj0 = 0 ;
29369 PyObject * obj1 = 0 ;
29370 char * kwnames[] = {
29371 (char *) "self",(char *) "text", NULL
29372 };
29373
29374 arg3 = &temp3;
29375 arg4 = &temp4;
29376 arg5 = &temp5;
29377 arg6 = &temp6;
be68621e 29378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29380 if (!SWIG_IsOK(res1)) {
be68621e 29381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29382 }
29383 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29384 {
29385 arg2 = wxString_in_helper(obj1);
29386 if (arg2 == NULL) SWIG_fail;
29387 temp2 = true;
29388 }
29389 {
72ef6efb 29390 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29391 if (PyErr_Occurred()) SWIG_fail;
29392 }
29393 resultobj = SWIG_Py_Void();
29394 if (SWIG_IsTmpObj(res3)) {
29395 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29396 } else {
29397 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29398 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29399 }
29400 if (SWIG_IsTmpObj(res4)) {
29401 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29402 } else {
29403 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29404 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29405 }
29406 if (SWIG_IsTmpObj(res5)) {
29407 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29408 } else {
29409 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29410 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29411 }
29412 if (SWIG_IsTmpObj(res6)) {
29413 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29414 } else {
29415 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29417 }
29418 {
29419 if (temp2)
29420 delete arg2;
29421 }
29422 return resultobj;
29423fail:
29424 {
29425 if (temp2)
29426 delete arg2;
29427 }
29428 return NULL;
29429}
29430
29431
be68621e
RD
29432SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29433 PyObject *resultobj = 0;
29434 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29435 wxString *arg2 = 0 ;
29436 PyObject *result = 0 ;
29437 void *argp1 = 0 ;
29438 int res1 = 0 ;
29439 bool temp2 = false ;
29440 PyObject * obj0 = 0 ;
29441 PyObject * obj1 = 0 ;
29442 char * kwnames[] = {
29443 (char *) "self",(char *) "text", NULL
29444 };
29445
29446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29448 if (!SWIG_IsOK(res1)) {
29449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29450 }
29451 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29452 {
29453 arg2 = wxString_in_helper(obj1);
29454 if (arg2 == NULL) SWIG_fail;
29455 temp2 = true;
29456 }
29457 {
29458 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29459 if (PyErr_Occurred()) SWIG_fail;
29460 }
29461 resultobj = result;
29462 {
29463 if (temp2)
29464 delete arg2;
29465 }
29466 return resultobj;
29467fail:
29468 {
29469 if (temp2)
29470 delete arg2;
29471 }
29472 return NULL;
29473}
29474
29475
72ef6efb
RD
29476SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29477 PyObject *resultobj = 0;
29478 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29479 wxString *arg2 = 0 ;
b39fe951 29480 wxArrayDouble result;
72ef6efb
RD
29481 void *argp1 = 0 ;
29482 int res1 = 0 ;
29483 bool temp2 = false ;
72ef6efb
RD
29484 PyObject * obj0 = 0 ;
29485 PyObject * obj1 = 0 ;
72ef6efb 29486 char * kwnames[] = {
b39fe951 29487 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29488 };
29489
b39fe951 29490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
b39fe951 29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29494 }
29495 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29496 {
29497 arg2 = wxString_in_helper(obj1);
29498 if (arg2 == NULL) SWIG_fail;
29499 temp2 = true;
29500 }
72ef6efb 29501 {
b39fe951 29502 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29503 if (PyErr_Occurred()) SWIG_fail;
29504 }
b39fe951
RD
29505 {
29506 resultobj = wxArrayDouble2PyList_helper(result);
29507 }
72ef6efb
RD
29508 {
29509 if (temp2)
29510 delete arg2;
29511 }
29512 return resultobj;
29513fail:
29514 {
29515 if (temp2)
29516 delete arg2;
29517 }
29518 return NULL;
29519}
29520
29521
29522SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29523 PyObject *resultobj = 0;
29524 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29525 wxBitmap *arg2 = 0 ;
29526 wxDouble arg3 ;
29527 wxDouble arg4 ;
29528 wxDouble arg5 ;
29529 wxDouble arg6 ;
29530 void *argp1 = 0 ;
29531 int res1 = 0 ;
29532 void *argp2 = 0 ;
29533 int res2 = 0 ;
29534 double val3 ;
29535 int ecode3 = 0 ;
29536 double val4 ;
29537 int ecode4 = 0 ;
29538 double val5 ;
29539 int ecode5 = 0 ;
29540 double val6 ;
29541 int ecode6 = 0 ;
29542 PyObject * obj0 = 0 ;
29543 PyObject * obj1 = 0 ;
29544 PyObject * obj2 = 0 ;
29545 PyObject * obj3 = 0 ;
29546 PyObject * obj4 = 0 ;
29547 PyObject * obj5 = 0 ;
29548 char * kwnames[] = {
29549 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29550 };
29551
29552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29554 if (!SWIG_IsOK(res1)) {
29555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29556 }
29557 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29559 if (!SWIG_IsOK(res2)) {
29560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29561 }
29562 if (!argp2) {
29563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29564 }
29565 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29566 ecode3 = SWIG_AsVal_double(obj2, &val3);
29567 if (!SWIG_IsOK(ecode3)) {
29568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29569 }
29570 arg3 = static_cast< wxDouble >(val3);
29571 ecode4 = SWIG_AsVal_double(obj3, &val4);
29572 if (!SWIG_IsOK(ecode4)) {
29573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29574 }
29575 arg4 = static_cast< wxDouble >(val4);
29576 ecode5 = SWIG_AsVal_double(obj4, &val5);
29577 if (!SWIG_IsOK(ecode5)) {
29578 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29579 }
29580 arg5 = static_cast< wxDouble >(val5);
29581 ecode6 = SWIG_AsVal_double(obj5, &val6);
29582 if (!SWIG_IsOK(ecode6)) {
29583 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29584 }
29585 arg6 = static_cast< wxDouble >(val6);
29586 {
72ef6efb 29587 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29588 if (PyErr_Occurred()) SWIG_fail;
29589 }
29590 resultobj = SWIG_Py_Void();
29591 return resultobj;
29592fail:
29593 return NULL;
29594}
29595
29596
29597SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29598 PyObject *resultobj = 0;
29599 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29600 wxIcon *arg2 = 0 ;
29601 wxDouble arg3 ;
29602 wxDouble arg4 ;
29603 wxDouble arg5 ;
29604 wxDouble arg6 ;
29605 void *argp1 = 0 ;
29606 int res1 = 0 ;
29607 void *argp2 = 0 ;
29608 int res2 = 0 ;
29609 double val3 ;
29610 int ecode3 = 0 ;
29611 double val4 ;
29612 int ecode4 = 0 ;
29613 double val5 ;
29614 int ecode5 = 0 ;
70d7cb34
RD
29615 double val6 ;
29616 int ecode6 = 0 ;
29617 PyObject * obj0 = 0 ;
29618 PyObject * obj1 = 0 ;
29619 PyObject * obj2 = 0 ;
29620 PyObject * obj3 = 0 ;
29621 PyObject * obj4 = 0 ;
29622 PyObject * obj5 = 0 ;
29623 char * kwnames[] = {
29624 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29625 };
29626
29627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29629 if (!SWIG_IsOK(res1)) {
29630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29631 }
29632 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29634 if (!SWIG_IsOK(res2)) {
29635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29636 }
29637 if (!argp2) {
29638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29639 }
29640 arg2 = reinterpret_cast< wxIcon * >(argp2);
29641 ecode3 = SWIG_AsVal_double(obj2, &val3);
29642 if (!SWIG_IsOK(ecode3)) {
29643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29644 }
29645 arg3 = static_cast< wxDouble >(val3);
29646 ecode4 = SWIG_AsVal_double(obj3, &val4);
29647 if (!SWIG_IsOK(ecode4)) {
29648 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29649 }
29650 arg4 = static_cast< wxDouble >(val4);
29651 ecode5 = SWIG_AsVal_double(obj4, &val5);
29652 if (!SWIG_IsOK(ecode5)) {
29653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29654 }
29655 arg5 = static_cast< wxDouble >(val5);
29656 ecode6 = SWIG_AsVal_double(obj5, &val6);
29657 if (!SWIG_IsOK(ecode6)) {
29658 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29659 }
29660 arg6 = static_cast< wxDouble >(val6);
29661 {
29662 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29663 if (PyErr_Occurred()) SWIG_fail;
29664 }
29665 resultobj = SWIG_Py_Void();
29666 return resultobj;
29667fail:
29668 return NULL;
29669}
29670
29671
29672SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29673 PyObject *resultobj = 0;
29674 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29675 wxDouble arg2 ;
29676 wxDouble arg3 ;
29677 wxDouble arg4 ;
29678 wxDouble arg5 ;
29679 void *argp1 = 0 ;
29680 int res1 = 0 ;
29681 double val2 ;
29682 int ecode2 = 0 ;
29683 double val3 ;
29684 int ecode3 = 0 ;
29685 double val4 ;
29686 int ecode4 = 0 ;
29687 double val5 ;
29688 int ecode5 = 0 ;
29689 PyObject * obj0 = 0 ;
29690 PyObject * obj1 = 0 ;
29691 PyObject * obj2 = 0 ;
29692 PyObject * obj3 = 0 ;
29693 PyObject * obj4 = 0 ;
29694 char * kwnames[] = {
29695 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29696 };
29697
29698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29700 if (!SWIG_IsOK(res1)) {
29701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29702 }
29703 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29704 ecode2 = SWIG_AsVal_double(obj1, &val2);
29705 if (!SWIG_IsOK(ecode2)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29707 }
29708 arg2 = static_cast< wxDouble >(val2);
29709 ecode3 = SWIG_AsVal_double(obj2, &val3);
29710 if (!SWIG_IsOK(ecode3)) {
29711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29712 }
29713 arg3 = static_cast< wxDouble >(val3);
29714 ecode4 = SWIG_AsVal_double(obj3, &val4);
29715 if (!SWIG_IsOK(ecode4)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29717 }
29718 arg4 = static_cast< wxDouble >(val4);
29719 ecode5 = SWIG_AsVal_double(obj4, &val5);
29720 if (!SWIG_IsOK(ecode5)) {
29721 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29722 }
29723 arg5 = static_cast< wxDouble >(val5);
29724 {
29725 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29726 if (PyErr_Occurred()) SWIG_fail;
29727 }
29728 resultobj = SWIG_Py_Void();
29729 return resultobj;
29730fail:
29731 return NULL;
29732}
29733
29734
29735SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29736 PyObject *resultobj = 0;
29737 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29738 size_t arg2 ;
29739 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29740 void *argp1 = 0 ;
29741 int res1 = 0 ;
29742 PyObject * obj0 = 0 ;
29743 PyObject * obj1 = 0 ;
29744 char * kwnames[] = {
29745 (char *) "self",(char *) "points", NULL
29746 };
29747
29748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29750 if (!SWIG_IsOK(res1)) {
29751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29752 }
29753 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29754 {
29755 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29756 if (arg3 == NULL) SWIG_fail;
29757 }
29758 {
29759 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29760 if (PyErr_Occurred()) SWIG_fail;
29761 }
29762 resultobj = SWIG_Py_Void();
29763 {
29764 if (arg3) delete [] arg3;
29765 }
29766 return resultobj;
29767fail:
29768 {
29769 if (arg3) delete [] arg3;
29770 }
29771 return NULL;
29772}
29773
29774
29775SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29776 PyObject *resultobj = 0;
29777 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29778 PyObject *arg2 = (PyObject *) 0 ;
29779 PyObject *arg3 = (PyObject *) 0 ;
29780 void *argp1 = 0 ;
29781 int res1 = 0 ;
29782 PyObject * obj0 = 0 ;
29783 PyObject * obj1 = 0 ;
29784 PyObject * obj2 = 0 ;
29785 char * kwnames[] = {
29786 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29787 };
29788
29789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29791 if (!SWIG_IsOK(res1)) {
29792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29793 }
29794 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29795 arg2 = obj1;
29796 arg3 = obj2;
29797 {
29798 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29799 if (PyErr_Occurred()) SWIG_fail;
29800 }
29801 resultobj = SWIG_Py_Void();
29802 return resultobj;
29803fail:
29804 return NULL;
29805}
29806
29807
29808SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29809 PyObject *resultobj = 0;
29810 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29811 size_t arg2 ;
29812 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29813 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29814 void *argp1 = 0 ;
29815 int res1 = 0 ;
29816 int val4 ;
29817 int ecode4 = 0 ;
29818 PyObject * obj0 = 0 ;
29819 PyObject * obj1 = 0 ;
29820 PyObject * obj2 = 0 ;
29821 char * kwnames[] = {
29822 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29823 };
29824
29825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29827 if (!SWIG_IsOK(res1)) {
29828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29829 }
29830 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29831 {
29832 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29833 if (arg3 == NULL) SWIG_fail;
29834 }
29835 if (obj2) {
29836 ecode4 = SWIG_AsVal_int(obj2, &val4);
29837 if (!SWIG_IsOK(ecode4)) {
29838 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29839 }
29840 arg4 = static_cast< int >(val4);
29841 }
29842 {
29843 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29844 if (PyErr_Occurred()) SWIG_fail;
29845 }
29846 resultobj = SWIG_Py_Void();
29847 {
29848 if (arg3) delete [] arg3;
29849 }
29850 return resultobj;
29851fail:
29852 {
29853 if (arg3) delete [] arg3;
29854 }
29855 return NULL;
29856}
29857
29858
29859SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29860 PyObject *resultobj = 0;
29861 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29862 wxDouble arg2 ;
29863 wxDouble arg3 ;
29864 wxDouble arg4 ;
29865 wxDouble arg5 ;
29866 void *argp1 = 0 ;
29867 int res1 = 0 ;
29868 double val2 ;
29869 int ecode2 = 0 ;
29870 double val3 ;
29871 int ecode3 = 0 ;
29872 double val4 ;
29873 int ecode4 = 0 ;
29874 double val5 ;
29875 int ecode5 = 0 ;
29876 PyObject * obj0 = 0 ;
29877 PyObject * obj1 = 0 ;
29878 PyObject * obj2 = 0 ;
29879 PyObject * obj3 = 0 ;
29880 PyObject * obj4 = 0 ;
29881 char * kwnames[] = {
29882 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29883 };
29884
29885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29887 if (!SWIG_IsOK(res1)) {
29888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29889 }
29890 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29891 ecode2 = SWIG_AsVal_double(obj1, &val2);
29892 if (!SWIG_IsOK(ecode2)) {
29893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29894 }
29895 arg2 = static_cast< wxDouble >(val2);
29896 ecode3 = SWIG_AsVal_double(obj2, &val3);
29897 if (!SWIG_IsOK(ecode3)) {
29898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29899 }
29900 arg3 = static_cast< wxDouble >(val3);
29901 ecode4 = SWIG_AsVal_double(obj3, &val4);
29902 if (!SWIG_IsOK(ecode4)) {
29903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29904 }
29905 arg4 = static_cast< wxDouble >(val4);
29906 ecode5 = SWIG_AsVal_double(obj4, &val5);
29907 if (!SWIG_IsOK(ecode5)) {
29908 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29909 }
29910 arg5 = static_cast< wxDouble >(val5);
29911 {
29912 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29913 if (PyErr_Occurred()) SWIG_fail;
29914 }
29915 resultobj = SWIG_Py_Void();
29916 return resultobj;
29917fail:
29918 return NULL;
29919}
29920
29921
29922SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29923 PyObject *resultobj = 0;
29924 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29925 wxDouble arg2 ;
29926 wxDouble arg3 ;
29927 wxDouble arg4 ;
29928 wxDouble arg5 ;
29929 void *argp1 = 0 ;
29930 int res1 = 0 ;
29931 double val2 ;
29932 int ecode2 = 0 ;
29933 double val3 ;
29934 int ecode3 = 0 ;
29935 double val4 ;
29936 int ecode4 = 0 ;
29937 double val5 ;
29938 int ecode5 = 0 ;
72ef6efb
RD
29939 PyObject * obj0 = 0 ;
29940 PyObject * obj1 = 0 ;
29941 PyObject * obj2 = 0 ;
29942 PyObject * obj3 = 0 ;
29943 PyObject * obj4 = 0 ;
72ef6efb 29944 char * kwnames[] = {
70d7cb34 29945 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29946 };
29947
70d7cb34 29948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29950 if (!SWIG_IsOK(res1)) {
70d7cb34 29951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29952 }
29953 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29954 ecode2 = SWIG_AsVal_double(obj1, &val2);
29955 if (!SWIG_IsOK(ecode2)) {
29956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29957 }
29958 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29959 ecode3 = SWIG_AsVal_double(obj2, &val3);
29960 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29962 }
29963 arg3 = static_cast< wxDouble >(val3);
29964 ecode4 = SWIG_AsVal_double(obj3, &val4);
29965 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29967 }
29968 arg4 = static_cast< wxDouble >(val4);
29969 ecode5 = SWIG_AsVal_double(obj4, &val5);
29970 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29972 }
29973 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29974 {
70d7cb34 29975 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29976 if (PyErr_Occurred()) SWIG_fail;
29977 }
29978 resultobj = SWIG_Py_Void();
29979 return resultobj;
29980fail:
29981 return NULL;
29982}
29983
29984
70d7cb34 29985SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29986 PyObject *resultobj = 0;
29987 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29988 wxDouble arg2 ;
29989 wxDouble arg3 ;
29990 wxDouble arg4 ;
29991 wxDouble arg5 ;
70d7cb34 29992 wxDouble arg6 ;
72ef6efb
RD
29993 void *argp1 = 0 ;
29994 int res1 = 0 ;
29995 double val2 ;
29996 int ecode2 = 0 ;
29997 double val3 ;
29998 int ecode3 = 0 ;
29999 double val4 ;
30000 int ecode4 = 0 ;
30001 double val5 ;
30002 int ecode5 = 0 ;
70d7cb34
RD
30003 double val6 ;
30004 int ecode6 = 0 ;
72ef6efb
RD
30005 PyObject * obj0 = 0 ;
30006 PyObject * obj1 = 0 ;
30007 PyObject * obj2 = 0 ;
30008 PyObject * obj3 = 0 ;
30009 PyObject * obj4 = 0 ;
70d7cb34 30010 PyObject * obj5 = 0 ;
72ef6efb 30011 char * kwnames[] = {
70d7cb34 30012 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30013 };
30014
70d7cb34 30015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30017 if (!SWIG_IsOK(res1)) {
70d7cb34 30018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30019 }
30020 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30021 ecode2 = SWIG_AsVal_double(obj1, &val2);
30022 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30024 }
30025 arg2 = static_cast< wxDouble >(val2);
30026 ecode3 = SWIG_AsVal_double(obj2, &val3);
30027 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30029 }
30030 arg3 = static_cast< wxDouble >(val3);
30031 ecode4 = SWIG_AsVal_double(obj3, &val4);
30032 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30034 }
30035 arg4 = static_cast< wxDouble >(val4);
30036 ecode5 = SWIG_AsVal_double(obj4, &val5);
30037 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30038 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30039 }
30040 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30041 ecode6 = SWIG_AsVal_double(obj5, &val6);
30042 if (!SWIG_IsOK(ecode6)) {
30043 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30044 }
30045 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30046 {
70d7cb34 30047 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30048 if (PyErr_Occurred()) SWIG_fail;
30049 }
30050 resultobj = SWIG_Py_Void();
30051 return resultobj;
30052fail:
30053 return NULL;
30054}
30055
30056
70d7cb34 30057SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30058 PyObject *resultobj = 0;
30059 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30060 bool result;
72ef6efb
RD
30061 void *argp1 = 0 ;
30062 int res1 = 0 ;
70d7cb34 30063 PyObject *swig_obj[1] ;
72ef6efb 30064
70d7cb34
RD
30065 if (!args) SWIG_fail;
30066 swig_obj[0] = args;
30067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30068 if (!SWIG_IsOK(res1)) {
70d7cb34 30069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30070 }
30071 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30072 {
70d7cb34
RD
30073 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30074 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30075 }
72ef6efb 30076 {
70d7cb34
RD
30077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30078 }
30079 return resultobj;
30080fail:
30081 return NULL;
30082}
30083
30084
30085SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30086 PyObject *obj;
30087 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30088 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30089 return SWIG_Py_Void();
30090}
30091
30092SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30093 PyObject *resultobj = 0;
30094 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 PyObject *swig_obj[1] ;
30098
30099 if (!args) SWIG_fail;
30100 swig_obj[0] = args;
30101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30104 }
30105 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30106 {
30107 delete arg1;
30108
72ef6efb
RD
30109 if (PyErr_Occurred()) SWIG_fail;
30110 }
30111 resultobj = SWIG_Py_Void();
70d7cb34
RD
30112 return resultobj;
30113fail:
30114 return NULL;
30115}
30116
30117
30118SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30119 PyObject *resultobj = 0;
30120 wxGraphicsRenderer *result = 0 ;
30121
30122 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30123 {
70d7cb34
RD
30124 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30125 if (PyErr_Occurred()) SWIG_fail;
30126 }
30127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30128 return resultobj;
30129fail:
30130 return NULL;
30131}
30132
30133
30134SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30135 PyObject *resultobj = 0;
30136 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30137 wxWindowDC *arg2 = 0 ;
30138 wxGraphicsContext *result = 0 ;
30139 void *argp1 = 0 ;
30140 int res1 = 0 ;
30141 void *argp2 = 0 ;
30142 int res2 = 0 ;
30143
30144 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30146 if (!SWIG_IsOK(res1)) {
30147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30148 }
30149 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30150 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30151 if (!SWIG_IsOK(res2)) {
30152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30153 }
30154 if (!argp2) {
30155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30156 }
30157 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30158 {
30159 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30160 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30161 }
70d7cb34 30162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30163 return resultobj;
30164fail:
70d7cb34
RD
30165 return NULL;
30166}
30167
30168
30169SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30170 PyObject *resultobj = 0;
30171 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30172 wxWindow *arg2 = (wxWindow *) 0 ;
30173 wxGraphicsContext *result = 0 ;
30174 void *argp1 = 0 ;
30175 int res1 = 0 ;
30176 void *argp2 = 0 ;
30177 int res2 = 0 ;
30178
30179 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30181 if (!SWIG_IsOK(res1)) {
30182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30183 }
30184 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30185 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30186 if (!SWIG_IsOK(res2)) {
30187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30188 }
30189 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30190 {
70d7cb34
RD
30191 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30192 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30193 }
70d7cb34
RD
30194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30195 return resultobj;
30196fail:
72ef6efb
RD
30197 return NULL;
30198}
30199
30200
70d7cb34
RD
30201SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30202 int argc;
30203 PyObject *argv[3];
30204
30205 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30206 --argc;
30207 if (argc == 2) {
30208 int _v = 0;
30209 {
30210 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30211 _v = SWIG_CheckState(res);
30212 }
30213 if (!_v) goto check_1;
30214 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30215 }
30216check_1:
30217
30218 if (argc == 2) {
30219 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30220 }
30221
30222fail:
30223 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30224 return NULL;
30225}
30226
30227
f89238b9
RD
30228SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30229 PyObject *resultobj = 0;
30230 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30231 wxGraphicsContext *result = 0 ;
30232 void *argp1 = 0 ;
30233 int res1 = 0 ;
30234 PyObject *swig_obj[1] ;
30235
30236 if (!args) SWIG_fail;
30237 swig_obj[0] = args;
30238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30239 if (!SWIG_IsOK(res1)) {
30240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30241 }
30242 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30243 {
30244 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30248 return resultobj;
30249fail:
30250 return NULL;
30251}
30252
30253
70d7cb34 30254SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30255 PyObject *resultobj = 0;
70d7cb34
RD
30256 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30257 void *arg2 = (void *) 0 ;
30258 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30259 void *argp1 = 0 ;
30260 int res1 = 0 ;
70d7cb34 30261 int res2 ;
b39fe951
RD
30262 PyObject * obj0 = 0 ;
30263 PyObject * obj1 = 0 ;
b39fe951 30264 char * kwnames[] = {
70d7cb34 30265 (char *) "self",(char *) "context", NULL
b39fe951 30266 };
72ef6efb 30267
70d7cb34
RD
30268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30270 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30272 }
30273 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30274 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30275 if (!SWIG_IsOK(res2)) {
30276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30277 }
72ef6efb 30278 {
70d7cb34 30279 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
70d7cb34 30282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30283 return resultobj;
30284fail:
30285 return NULL;
30286}
30287
30288
70d7cb34 30289SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30290 PyObject *resultobj = 0;
70d7cb34
RD
30291 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30292 void *arg2 = (void *) 0 ;
30293 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30294 void *argp1 = 0 ;
30295 int res1 = 0 ;
70d7cb34 30296 int res2 ;
72ef6efb
RD
30297 PyObject * obj0 = 0 ;
30298 PyObject * obj1 = 0 ;
72ef6efb 30299 char * kwnames[] = {
70d7cb34 30300 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30301 };
30302
70d7cb34
RD
30303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30305 if (!SWIG_IsOK(res1)) {
70d7cb34 30306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30307 }
70d7cb34
RD
30308 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30309 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30310 if (!SWIG_IsOK(res2)) {
30311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30312 }
30313 {
70d7cb34 30314 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
70d7cb34 30317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30318 return resultobj;
30319fail:
70d7cb34
RD
30320 return NULL;
30321}
30322
30323
30324SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30325 PyObject *resultobj = 0;
30326 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30327 wxGraphicsPath result;
70d7cb34
RD
30328 void *argp1 = 0 ;
30329 int res1 = 0 ;
30330 PyObject *swig_obj[1] ;
30331
30332 if (!args) SWIG_fail;
30333 swig_obj[0] = args;
30334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30335 if (!SWIG_IsOK(res1)) {
30336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30337 }
30338 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30339 {
5c8c7dd3 30340 result = (arg1)->CreatePath();
70d7cb34 30341 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30342 }
5c8c7dd3 30343 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30344 return resultobj;
30345fail:
72ef6efb
RD
30346 return NULL;
30347}
30348
30349
70d7cb34 30350SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30351 PyObject *resultobj = 0;
70d7cb34
RD
30352 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30353 wxDouble arg2 = (wxDouble) 1.0 ;
30354 wxDouble arg3 = (wxDouble) 0.0 ;
30355 wxDouble arg4 = (wxDouble) 0.0 ;
30356 wxDouble arg5 = (wxDouble) 1.0 ;
30357 wxDouble arg6 = (wxDouble) 0.0 ;
30358 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30359 wxGraphicsMatrix result;
72ef6efb
RD
30360 void *argp1 = 0 ;
30361 int res1 = 0 ;
30362 double val2 ;
30363 int ecode2 = 0 ;
30364 double val3 ;
30365 int ecode3 = 0 ;
30366 double val4 ;
30367 int ecode4 = 0 ;
30368 double val5 ;
30369 int ecode5 = 0 ;
70d7cb34
RD
30370 double val6 ;
30371 int ecode6 = 0 ;
30372 double val7 ;
30373 int ecode7 = 0 ;
72ef6efb
RD
30374 PyObject * obj0 = 0 ;
30375 PyObject * obj1 = 0 ;
30376 PyObject * obj2 = 0 ;
30377 PyObject * obj3 = 0 ;
30378 PyObject * obj4 = 0 ;
70d7cb34
RD
30379 PyObject * obj5 = 0 ;
30380 PyObject * obj6 = 0 ;
72ef6efb 30381 char * kwnames[] = {
70d7cb34 30382 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30383 };
30384
70d7cb34
RD
30385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30387 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30389 }
30390 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30391 if (obj1) {
30392 ecode2 = SWIG_AsVal_double(obj1, &val2);
30393 if (!SWIG_IsOK(ecode2)) {
30394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30395 }
30396 arg2 = static_cast< wxDouble >(val2);
30397 }
30398 if (obj2) {
30399 ecode3 = SWIG_AsVal_double(obj2, &val3);
30400 if (!SWIG_IsOK(ecode3)) {
30401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30402 }
30403 arg3 = static_cast< wxDouble >(val3);
30404 }
30405 if (obj3) {
30406 ecode4 = SWIG_AsVal_double(obj3, &val4);
30407 if (!SWIG_IsOK(ecode4)) {
30408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30409 }
30410 arg4 = static_cast< wxDouble >(val4);
30411 }
30412 if (obj4) {
30413 ecode5 = SWIG_AsVal_double(obj4, &val5);
30414 if (!SWIG_IsOK(ecode5)) {
30415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30416 }
30417 arg5 = static_cast< wxDouble >(val5);
30418 }
30419 if (obj5) {
30420 ecode6 = SWIG_AsVal_double(obj5, &val6);
30421 if (!SWIG_IsOK(ecode6)) {
30422 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30423 }
30424 arg6 = static_cast< wxDouble >(val6);
30425 }
30426 if (obj6) {
30427 ecode7 = SWIG_AsVal_double(obj6, &val7);
30428 if (!SWIG_IsOK(ecode7)) {
30429 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30430 }
30431 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30432 }
72ef6efb 30433 {
5c8c7dd3 30434 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30435 if (PyErr_Occurred()) SWIG_fail;
30436 }
5c8c7dd3 30437 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30438 return resultobj;
30439fail:
30440 return NULL;
30441}
30442
30443
70d7cb34 30444SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30445 PyObject *resultobj = 0;
70d7cb34
RD
30446 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30447 wxPen *arg2 = 0 ;
30448 wxGraphicsPen result;
30449 void *argp1 = 0 ;
30450 int res1 = 0 ;
30451 void *argp2 = 0 ;
30452 int res2 = 0 ;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 char * kwnames[] = {
30456 (char *) "self",(char *) "pen", NULL
30457 };
30458
30459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30461 if (!SWIG_IsOK(res1)) {
30462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30463 }
30464 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30466 if (!SWIG_IsOK(res2)) {
30467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30468 }
30469 if (!argp2) {
30470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30471 }
30472 arg2 = reinterpret_cast< wxPen * >(argp2);
30473 {
30474 result = (arg1)->CreatePen((wxPen const &)*arg2);
30475 if (PyErr_Occurred()) SWIG_fail;
30476 }
30477 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30478 return resultobj;
30479fail:
30480 return NULL;
30481}
30482
30483
30484SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30485 PyObject *resultobj = 0;
30486 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30487 wxBrush *arg2 = 0 ;
30488 wxGraphicsBrush result;
30489 void *argp1 = 0 ;
30490 int res1 = 0 ;
30491 void *argp2 = 0 ;
30492 int res2 = 0 ;
30493 PyObject * obj0 = 0 ;
30494 PyObject * obj1 = 0 ;
30495 char * kwnames[] = {
30496 (char *) "self",(char *) "brush", NULL
30497 };
30498
30499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30501 if (!SWIG_IsOK(res1)) {
30502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30503 }
30504 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30506 if (!SWIG_IsOK(res2)) {
30507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30508 }
30509 if (!argp2) {
30510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30511 }
30512 arg2 = reinterpret_cast< wxBrush * >(argp2);
30513 {
30514 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30515 if (PyErr_Occurred()) SWIG_fail;
30516 }
30517 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30518 return resultobj;
30519fail:
30520 return NULL;
30521}
30522
30523
30524SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30525 PyObject *resultobj = 0;
30526 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30527 wxDouble arg2 ;
30528 wxDouble arg3 ;
30529 wxDouble arg4 ;
30530 wxDouble arg5 ;
70d7cb34
RD
30531 wxColour *arg6 = 0 ;
30532 wxColour *arg7 = 0 ;
30533 wxGraphicsBrush result;
72ef6efb
RD
30534 void *argp1 = 0 ;
30535 int res1 = 0 ;
30536 double val2 ;
30537 int ecode2 = 0 ;
30538 double val3 ;
30539 int ecode3 = 0 ;
30540 double val4 ;
30541 int ecode4 = 0 ;
30542 double val5 ;
30543 int ecode5 = 0 ;
70d7cb34
RD
30544 wxColour temp6 ;
30545 wxColour temp7 ;
72ef6efb
RD
30546 PyObject * obj0 = 0 ;
30547 PyObject * obj1 = 0 ;
30548 PyObject * obj2 = 0 ;
30549 PyObject * obj3 = 0 ;
30550 PyObject * obj4 = 0 ;
70d7cb34
RD
30551 PyObject * obj5 = 0 ;
30552 PyObject * obj6 = 0 ;
72ef6efb 30553 char * kwnames[] = {
70d7cb34 30554 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30555 };
30556
70d7cb34
RD
30557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30559 if (!SWIG_IsOK(res1)) {
70d7cb34 30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30561 }
70d7cb34 30562 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30563 ecode2 = SWIG_AsVal_double(obj1, &val2);
30564 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30566 }
30567 arg2 = static_cast< wxDouble >(val2);
30568 ecode3 = SWIG_AsVal_double(obj2, &val3);
30569 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30571 }
30572 arg3 = static_cast< wxDouble >(val3);
30573 ecode4 = SWIG_AsVal_double(obj3, &val4);
30574 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30576 }
30577 arg4 = static_cast< wxDouble >(val4);
30578 ecode5 = SWIG_AsVal_double(obj4, &val5);
30579 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30581 }
30582 arg5 = static_cast< wxDouble >(val5);
30583 {
70d7cb34
RD
30584 arg6 = &temp6;
30585 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30586 }
30587 {
30588 arg7 = &temp7;
30589 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30590 }
30591 {
30592 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30593 if (PyErr_Occurred()) SWIG_fail;
30594 }
70d7cb34 30595 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30596 return resultobj;
30597fail:
30598 return NULL;
30599}
30600
30601
70d7cb34 30602SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30603 PyObject *resultobj = 0;
70d7cb34 30604 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30605 wxDouble arg2 ;
30606 wxDouble arg3 ;
30607 wxDouble arg4 ;
30608 wxDouble arg5 ;
30609 wxDouble arg6 ;
70d7cb34
RD
30610 wxColour *arg7 = 0 ;
30611 wxColour *arg8 = 0 ;
30612 wxGraphicsBrush result;
72ef6efb
RD
30613 void *argp1 = 0 ;
30614 int res1 = 0 ;
30615 double val2 ;
30616 int ecode2 = 0 ;
30617 double val3 ;
30618 int ecode3 = 0 ;
30619 double val4 ;
30620 int ecode4 = 0 ;
30621 double val5 ;
30622 int ecode5 = 0 ;
30623 double val6 ;
30624 int ecode6 = 0 ;
70d7cb34
RD
30625 wxColour temp7 ;
30626 wxColour temp8 ;
72ef6efb
RD
30627 PyObject * obj0 = 0 ;
30628 PyObject * obj1 = 0 ;
30629 PyObject * obj2 = 0 ;
30630 PyObject * obj3 = 0 ;
30631 PyObject * obj4 = 0 ;
30632 PyObject * obj5 = 0 ;
70d7cb34
RD
30633 PyObject * obj6 = 0 ;
30634 PyObject * obj7 = 0 ;
72ef6efb 30635 char * kwnames[] = {
70d7cb34 30636 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30637 };
30638
70d7cb34
RD
30639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30641 if (!SWIG_IsOK(res1)) {
70d7cb34 30642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30643 }
70d7cb34 30644 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30645 ecode2 = SWIG_AsVal_double(obj1, &val2);
30646 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30648 }
30649 arg2 = static_cast< wxDouble >(val2);
30650 ecode3 = SWIG_AsVal_double(obj2, &val3);
30651 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30653 }
30654 arg3 = static_cast< wxDouble >(val3);
30655 ecode4 = SWIG_AsVal_double(obj3, &val4);
30656 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30658 }
30659 arg4 = static_cast< wxDouble >(val4);
30660 ecode5 = SWIG_AsVal_double(obj4, &val5);
30661 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30663 }
30664 arg5 = static_cast< wxDouble >(val5);
30665 ecode6 = SWIG_AsVal_double(obj5, &val6);
30666 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30667 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30668 }
30669 arg6 = static_cast< wxDouble >(val6);
30670 {
70d7cb34
RD
30671 arg7 = &temp7;
30672 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30673 }
30674 {
30675 arg8 = &temp8;
30676 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30677 }
30678 {
30679 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30680 if (PyErr_Occurred()) SWIG_fail;
30681 }
70d7cb34 30682 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30683 return resultobj;
30684fail:
30685 return NULL;
30686}
30687
30688
70d7cb34
RD
30689SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30690 PyObject *resultobj = 0;
30691 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30692 wxFont *arg2 = 0 ;
30693 wxColour const &arg3_defvalue = *wxBLACK ;
30694 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30695 wxGraphicsFont result;
30696 void *argp1 = 0 ;
30697 int res1 = 0 ;
30698 void *argp2 = 0 ;
30699 int res2 = 0 ;
30700 wxColour temp3 ;
30701 PyObject * obj0 = 0 ;
30702 PyObject * obj1 = 0 ;
30703 PyObject * obj2 = 0 ;
30704 char * kwnames[] = {
30705 (char *) "self",(char *) "font",(char *) "col", NULL
30706 };
30707
30708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30710 if (!SWIG_IsOK(res1)) {
30711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30712 }
30713 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30715 if (!SWIG_IsOK(res2)) {
30716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30717 }
30718 if (!argp2) {
30719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30720 }
30721 arg2 = reinterpret_cast< wxFont * >(argp2);
30722 if (obj2) {
30723 {
30724 arg3 = &temp3;
30725 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30726 }
30727 }
30728 {
30729 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30730 if (PyErr_Occurred()) SWIG_fail;
30731 }
30732 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30733 return resultobj;
30734fail:
30735 return NULL;
30736}
30737
30738
30739SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30740 PyObject *obj;
30741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30742 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30743 return SWIG_Py_Void();
30744}
30745
48a0c021 30746SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30747 PyObject *resultobj = 0;
30748 wxWindowDC *arg1 = 0 ;
30749 wxGCDC *result = 0 ;
30750 void *argp1 = 0 ;
30751 int res1 = 0 ;
72ef6efb 30752
48a0c021
RD
30753 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30755 if (!SWIG_IsOK(res1)) {
30756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30757 }
30758 if (!argp1) {
30759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30760 }
30761 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30762 {
30763 if (!wxPyCheckForApp()) SWIG_fail;
30764 PyThreadState* __tstate = wxPyBeginAllowThreads();
30765 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30766 wxPyEndAllowThreads(__tstate);
30767 if (PyErr_Occurred()) SWIG_fail;
30768 }
30769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30770 return resultobj;
30771fail:
30772 return NULL;
30773}
30774
30775
48a0c021
RD
30776SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30777 PyObject *resultobj = 0;
30778 wxWindow *arg1 = (wxWindow *) 0 ;
30779 wxGCDC *result = 0 ;
30780 void *argp1 = 0 ;
30781 int res1 = 0 ;
30782
30783 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30785 if (!SWIG_IsOK(res1)) {
30786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30787 }
30788 arg1 = reinterpret_cast< wxWindow * >(argp1);
30789 {
30790 if (!wxPyCheckForApp()) SWIG_fail;
30791 PyThreadState* __tstate = wxPyBeginAllowThreads();
30792 result = (wxGCDC *)new wxGCDC(arg1);
30793 wxPyEndAllowThreads(__tstate);
30794 if (PyErr_Occurred()) SWIG_fail;
30795 }
30796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30797 return resultobj;
30798fail:
30799 return NULL;
30800}
30801
30802
30803SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30804 int argc;
30805 PyObject *argv[2];
30806
30807 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30808 --argc;
30809 if (argc == 1) {
30810 int _v = 0;
30811 {
30812 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30813 _v = SWIG_CheckState(res);
30814 }
30815 if (!_v) goto check_1;
30816 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30817 }
30818check_1:
30819
30820 if (argc == 1) {
30821 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30822 }
30823
30824fail:
30825 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30826 return NULL;
30827}
30828
30829
72ef6efb
RD
30830SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30831 PyObject *resultobj = 0;
30832 wxGCDC *arg1 = (wxGCDC *) 0 ;
30833 void *argp1 = 0 ;
30834 int res1 = 0 ;
30835 PyObject *swig_obj[1] ;
30836
30837 if (!args) SWIG_fail;
30838 swig_obj[0] = args;
30839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30840 if (!SWIG_IsOK(res1)) {
30841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30842 }
30843 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30844 {
72ef6efb
RD
30845 delete arg1;
30846
72ef6efb
RD
30847 if (PyErr_Occurred()) SWIG_fail;
30848 }
30849 resultobj = SWIG_Py_Void();
30850 return resultobj;
30851fail:
30852 return NULL;
30853}
30854
30855
0a27f394 30856SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30857 PyObject *resultobj = 0;
30858 wxGCDC *arg1 = (wxGCDC *) 0 ;
30859 wxGraphicsContext *result = 0 ;
30860 void *argp1 = 0 ;
30861 int res1 = 0 ;
30862 PyObject *swig_obj[1] ;
30863
30864 if (!args) SWIG_fail;
30865 swig_obj[0] = args;
30866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30867 if (!SWIG_IsOK(res1)) {
0a27f394 30868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30869 }
30870 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30871 {
0a27f394 30872 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30873 if (PyErr_Occurred()) SWIG_fail;
30874 }
30875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30876 return resultobj;
30877fail:
30878 return NULL;
30879}
30880
30881
0a27f394
RD
30882SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30883 PyObject *resultobj = 0;
30884 wxGCDC *arg1 = (wxGCDC *) 0 ;
30885 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30886 void *argp1 = 0 ;
30887 int res1 = 0 ;
30888 void *argp2 = 0 ;
30889 int res2 = 0 ;
30890 PyObject * obj0 = 0 ;
30891 PyObject * obj1 = 0 ;
30892 char * kwnames[] = {
30893 (char *) "self",(char *) "ctx", NULL
30894 };
30895
30896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30898 if (!SWIG_IsOK(res1)) {
30899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30900 }
30901 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30903 if (!SWIG_IsOK(res2)) {
30904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30905 }
30906 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30907 {
30908 (arg1)->SetGraphicsContext(arg2);
30909 if (PyErr_Occurred()) SWIG_fail;
30910 }
30911 resultobj = SWIG_Py_Void();
30912 return resultobj;
30913fail:
30914 return NULL;
30915}
30916
30917
72ef6efb
RD
30918SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30919 PyObject *obj;
30920 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30921 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30922 return SWIG_Py_Void();
30923}
30924
30925SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30926 return SWIG_Python_InitShadowInstance(args);
30927}
30928
b39fe951
RD
30929SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30930 PyObject *resultobj = 0;
30931 wxOverlay *result = 0 ;
30932
30933 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30934 {
30935 PyThreadState* __tstate = wxPyBeginAllowThreads();
30936 result = (wxOverlay *)new wxOverlay();
30937 wxPyEndAllowThreads(__tstate);
30938 if (PyErr_Occurred()) SWIG_fail;
30939 }
30940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30941 return resultobj;
30942fail:
30943 return NULL;
30944}
30945
30946
30947SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30948 PyObject *resultobj = 0;
30949 wxOverlay *arg1 = (wxOverlay *) 0 ;
30950 void *argp1 = 0 ;
30951 int res1 = 0 ;
30952 PyObject *swig_obj[1] ;
30953
30954 if (!args) SWIG_fail;
30955 swig_obj[0] = args;
30956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30957 if (!SWIG_IsOK(res1)) {
30958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30959 }
30960 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30961 {
30962 PyThreadState* __tstate = wxPyBeginAllowThreads();
30963 delete arg1;
30964
30965 wxPyEndAllowThreads(__tstate);
30966 if (PyErr_Occurred()) SWIG_fail;
30967 }
30968 resultobj = SWIG_Py_Void();
30969 return resultobj;
30970fail:
30971 return NULL;
30972}
30973
30974
30975SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30976 PyObject *resultobj = 0;
30977 wxOverlay *arg1 = (wxOverlay *) 0 ;
30978 void *argp1 = 0 ;
30979 int res1 = 0 ;
30980 PyObject *swig_obj[1] ;
30981
30982 if (!args) SWIG_fail;
30983 swig_obj[0] = args;
30984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30985 if (!SWIG_IsOK(res1)) {
30986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30987 }
30988 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30989 {
30990 PyThreadState* __tstate = wxPyBeginAllowThreads();
30991 (arg1)->Reset();
30992 wxPyEndAllowThreads(__tstate);
30993 if (PyErr_Occurred()) SWIG_fail;
30994 }
30995 resultobj = SWIG_Py_Void();
30996 return resultobj;
30997fail:
30998 return NULL;
30999}
31000
31001
31002SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31003 PyObject *obj;
31004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31005 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31006 return SWIG_Py_Void();
31007}
31008
31009SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31010 return SWIG_Python_InitShadowInstance(args);
31011}
31012
31013SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31014 PyObject *resultobj = 0;
31015 wxOverlay *arg1 = 0 ;
31016 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31017 int arg3 ;
31018 int arg4 ;
31019 int arg5 ;
31020 int arg6 ;
31021 wxDCOverlay *result = 0 ;
31022 void *argp1 = 0 ;
31023 int res1 = 0 ;
31024 void *argp2 = 0 ;
31025 int res2 = 0 ;
31026 int val3 ;
31027 int ecode3 = 0 ;
31028 int val4 ;
31029 int ecode4 = 0 ;
31030 int val5 ;
31031 int ecode5 = 0 ;
31032 int val6 ;
31033 int ecode6 = 0 ;
31034
31035 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31037 if (!SWIG_IsOK(res1)) {
31038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31039 }
31040 if (!argp1) {
31041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31042 }
31043 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31044 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31045 if (!SWIG_IsOK(res2)) {
31046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31047 }
31048 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31049 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31050 if (!SWIG_IsOK(ecode3)) {
31051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31052 }
31053 arg3 = static_cast< int >(val3);
31054 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31055 if (!SWIG_IsOK(ecode4)) {
31056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31057 }
31058 arg4 = static_cast< int >(val4);
31059 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31060 if (!SWIG_IsOK(ecode5)) {
31061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31062 }
31063 arg5 = static_cast< int >(val5);
31064 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31065 if (!SWIG_IsOK(ecode6)) {
31066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31067 }
31068 arg6 = static_cast< int >(val6);
31069 {
31070 PyThreadState* __tstate = wxPyBeginAllowThreads();
31071 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31072 wxPyEndAllowThreads(__tstate);
31073 if (PyErr_Occurred()) SWIG_fail;
31074 }
31075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31076 return resultobj;
31077fail:
31078 return NULL;
31079}
31080
31081
31082SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31083 PyObject *resultobj = 0;
31084 wxOverlay *arg1 = 0 ;
31085 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31086 wxDCOverlay *result = 0 ;
31087 void *argp1 = 0 ;
31088 int res1 = 0 ;
31089 void *argp2 = 0 ;
31090 int res2 = 0 ;
31091
31092 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31094 if (!SWIG_IsOK(res1)) {
31095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31096 }
31097 if (!argp1) {
31098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31099 }
31100 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31101 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31102 if (!SWIG_IsOK(res2)) {
31103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31104 }
31105 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31106 {
31107 PyThreadState* __tstate = wxPyBeginAllowThreads();
31108 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31109 wxPyEndAllowThreads(__tstate);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 }
31112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31113 return resultobj;
31114fail:
31115 return NULL;
31116}
31117
31118
31119SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31120 int argc;
31121 PyObject *argv[7];
31122
31123 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31124 --argc;
31125 if (argc == 2) {
31126 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31127 }
31128 if (argc == 6) {
31129 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31130 }
31131
31132fail:
31133 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31134 return NULL;
31135}
31136
31137
31138SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31139 PyObject *resultobj = 0;
31140 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31141 void *argp1 = 0 ;
31142 int res1 = 0 ;
31143 PyObject *swig_obj[1] ;
31144
31145 if (!args) SWIG_fail;
31146 swig_obj[0] = args;
31147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31148 if (!SWIG_IsOK(res1)) {
31149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31150 }
31151 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 delete arg1;
31155
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 resultobj = SWIG_Py_Void();
31160 return resultobj;
31161fail:
31162 return NULL;
31163}
31164
31165
31166SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31167 PyObject *resultobj = 0;
31168 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31169 void *argp1 = 0 ;
31170 int res1 = 0 ;
31171 PyObject *swig_obj[1] ;
31172
31173 if (!args) SWIG_fail;
31174 swig_obj[0] = args;
31175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31176 if (!SWIG_IsOK(res1)) {
31177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31178 }
31179 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31180 {
31181 PyThreadState* __tstate = wxPyBeginAllowThreads();
31182 (arg1)->Clear();
31183 wxPyEndAllowThreads(__tstate);
31184 if (PyErr_Occurred()) SWIG_fail;
31185 }
31186 resultobj = SWIG_Py_Void();
31187 return resultobj;
31188fail:
31189 return NULL;
31190}
31191
31192
31193SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31194 PyObject *obj;
31195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31196 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31197 return SWIG_Py_Void();
31198}
31199
31200SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31201 return SWIG_Python_InitShadowInstance(args);
31202}
31203
72ef6efb
RD
31204SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31205 PyObject *resultobj = 0;
31206 int arg1 ;
31207 int arg2 ;
31208 int arg3 = (int) true ;
31209 int arg4 = (int) 1 ;
31210 wxImageList *result = 0 ;
31211 int val1 ;
31212 int ecode1 = 0 ;
31213 int val2 ;
31214 int ecode2 = 0 ;
31215 int val3 ;
31216 int ecode3 = 0 ;
31217 int val4 ;
31218 int ecode4 = 0 ;
31219 PyObject * obj0 = 0 ;
31220 PyObject * obj1 = 0 ;
31221 PyObject * obj2 = 0 ;
31222 PyObject * obj3 = 0 ;
31223 char * kwnames[] = {
31224 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31225 };
31226
31227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31228 ecode1 = SWIG_AsVal_int(obj0, &val1);
31229 if (!SWIG_IsOK(ecode1)) {
31230 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31231 }
31232 arg1 = static_cast< int >(val1);
31233 ecode2 = SWIG_AsVal_int(obj1, &val2);
31234 if (!SWIG_IsOK(ecode2)) {
31235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31236 }
31237 arg2 = static_cast< int >(val2);
31238 if (obj2) {
31239 ecode3 = SWIG_AsVal_int(obj2, &val3);
31240 if (!SWIG_IsOK(ecode3)) {
31241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31242 }
31243 arg3 = static_cast< int >(val3);
31244 }
31245 if (obj3) {
31246 ecode4 = SWIG_AsVal_int(obj3, &val4);
31247 if (!SWIG_IsOK(ecode4)) {
31248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31249 }
31250 arg4 = static_cast< int >(val4);
31251 }
31252 {
31253 if (!wxPyCheckForApp()) SWIG_fail;
31254 PyThreadState* __tstate = wxPyBeginAllowThreads();
31255 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31256 wxPyEndAllowThreads(__tstate);
31257 if (PyErr_Occurred()) SWIG_fail;
31258 }
e02c0a13 31259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31260 return resultobj;
31261fail:
31262 return NULL;
31263}
31264
31265
31266SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31267 PyObject *resultobj = 0;
31268 wxImageList *arg1 = (wxImageList *) 0 ;
31269 void *argp1 = 0 ;
31270 int res1 = 0 ;
31271 PyObject *swig_obj[1] ;
31272
31273 if (!args) SWIG_fail;
31274 swig_obj[0] = args;
31275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31276 if (!SWIG_IsOK(res1)) {
31277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31278 }
31279 arg1 = reinterpret_cast< wxImageList * >(argp1);
31280 {
31281 PyThreadState* __tstate = wxPyBeginAllowThreads();
31282 delete arg1;
31283
31284 wxPyEndAllowThreads(__tstate);
31285 if (PyErr_Occurred()) SWIG_fail;
31286 }
31287 resultobj = SWIG_Py_Void();
31288 return resultobj;
31289fail:
31290 return NULL;
31291}
31292
31293
31294SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31295 PyObject *resultobj = 0;
31296 wxImageList *arg1 = (wxImageList *) 0 ;
31297 wxBitmap *arg2 = 0 ;
31298 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31299 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31300 int result;
31301 void *argp1 = 0 ;
31302 int res1 = 0 ;
31303 void *argp2 = 0 ;
31304 int res2 = 0 ;
31305 void *argp3 = 0 ;
31306 int res3 = 0 ;
31307 PyObject * obj0 = 0 ;
31308 PyObject * obj1 = 0 ;
31309 PyObject * obj2 = 0 ;
31310 char * kwnames[] = {
31311 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31312 };
31313
31314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31316 if (!SWIG_IsOK(res1)) {
31317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31318 }
31319 arg1 = reinterpret_cast< wxImageList * >(argp1);
31320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31321 if (!SWIG_IsOK(res2)) {
31322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31323 }
31324 if (!argp2) {
31325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31326 }
31327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31328 if (obj2) {
31329 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31330 if (!SWIG_IsOK(res3)) {
31331 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31332 }
31333 if (!argp3) {
31334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31335 }
31336 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31337 }
31338 {
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31341 wxPyEndAllowThreads(__tstate);
31342 if (PyErr_Occurred()) SWIG_fail;
31343 }
31344 resultobj = SWIG_From_int(static_cast< int >(result));
31345 return resultobj;
31346fail:
31347 return NULL;
31348}
31349
31350
31351SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31352 PyObject *resultobj = 0;
31353 wxImageList *arg1 = (wxImageList *) 0 ;
31354 wxBitmap *arg2 = 0 ;
31355 wxColour *arg3 = 0 ;
31356 int result;
31357 void *argp1 = 0 ;
31358 int res1 = 0 ;
31359 void *argp2 = 0 ;
31360 int res2 = 0 ;
31361 wxColour temp3 ;
31362 PyObject * obj0 = 0 ;
31363 PyObject * obj1 = 0 ;
31364 PyObject * obj2 = 0 ;
31365 char * kwnames[] = {
31366 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31367 };
31368
31369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31371 if (!SWIG_IsOK(res1)) {
31372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31373 }
31374 arg1 = reinterpret_cast< wxImageList * >(argp1);
31375 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31376 if (!SWIG_IsOK(res2)) {
31377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31378 }
31379 if (!argp2) {
31380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31381 }
31382 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31383 {
31384 arg3 = &temp3;
31385 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31386 }
31387 {
31388 PyThreadState* __tstate = wxPyBeginAllowThreads();
31389 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31390 wxPyEndAllowThreads(__tstate);
31391 if (PyErr_Occurred()) SWIG_fail;
31392 }
31393 resultobj = SWIG_From_int(static_cast< int >(result));
31394 return resultobj;
31395fail:
31396 return NULL;
31397}
31398
31399
31400SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = 0;
31402 wxImageList *arg1 = (wxImageList *) 0 ;
31403 wxIcon *arg2 = 0 ;
31404 int result;
31405 void *argp1 = 0 ;
31406 int res1 = 0 ;
31407 void *argp2 = 0 ;
31408 int res2 = 0 ;
31409 PyObject * obj0 = 0 ;
31410 PyObject * obj1 = 0 ;
31411 char * kwnames[] = {
31412 (char *) "self",(char *) "icon", NULL
31413 };
31414
31415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31417 if (!SWIG_IsOK(res1)) {
31418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31419 }
1bd55598
RD
31420 arg1 = reinterpret_cast< wxImageList * >(argp1);
31421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31422 if (!SWIG_IsOK(res2)) {
31423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31424 }
31425 if (!argp2) {
31426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31427 }
31428 arg2 = reinterpret_cast< wxIcon * >(argp2);
31429 {
31430 PyThreadState* __tstate = wxPyBeginAllowThreads();
31431 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31432 wxPyEndAllowThreads(__tstate);
31433 if (PyErr_Occurred()) SWIG_fail;
31434 }
31435 resultobj = SWIG_From_int(static_cast< int >(result));
31436 return resultobj;
31437fail:
31438 return NULL;
31439}
31440
31441
31442SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31443 PyObject *resultobj = 0;
31444 wxImageList *arg1 = (wxImageList *) 0 ;
31445 int arg2 ;
31446 SwigValueWrapper<wxBitmap > result;
31447 void *argp1 = 0 ;
31448 int res1 = 0 ;
31449 int val2 ;
31450 int ecode2 = 0 ;
31451 PyObject * obj0 = 0 ;
31452 PyObject * obj1 = 0 ;
31453 char * kwnames[] = {
31454 (char *) "self",(char *) "index", NULL
31455 };
31456
31457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31459 if (!SWIG_IsOK(res1)) {
31460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31461 }
31462 arg1 = reinterpret_cast< wxImageList * >(argp1);
31463 ecode2 = SWIG_AsVal_int(obj1, &val2);
31464 if (!SWIG_IsOK(ecode2)) {
31465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31466 }
31467 arg2 = static_cast< int >(val2);
31468 {
31469 PyThreadState* __tstate = wxPyBeginAllowThreads();
31470 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31471 wxPyEndAllowThreads(__tstate);
31472 if (PyErr_Occurred()) SWIG_fail;
31473 }
31474 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31475 return resultobj;
31476fail:
31477 return NULL;
31478}
31479
31480
31481SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31482 PyObject *resultobj = 0;
31483 wxImageList *arg1 = (wxImageList *) 0 ;
31484 int arg2 ;
31485 wxIcon result;
31486 void *argp1 = 0 ;
31487 int res1 = 0 ;
31488 int val2 ;
31489 int ecode2 = 0 ;
31490 PyObject * obj0 = 0 ;
31491 PyObject * obj1 = 0 ;
31492 char * kwnames[] = {
31493 (char *) "self",(char *) "index", NULL
31494 };
31495
31496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31498 if (!SWIG_IsOK(res1)) {
31499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31500 }
31501 arg1 = reinterpret_cast< wxImageList * >(argp1);
31502 ecode2 = SWIG_AsVal_int(obj1, &val2);
31503 if (!SWIG_IsOK(ecode2)) {
31504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31505 }
31506 arg2 = static_cast< int >(val2);
31507 {
31508 PyThreadState* __tstate = wxPyBeginAllowThreads();
31509 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31510 wxPyEndAllowThreads(__tstate);
31511 if (PyErr_Occurred()) SWIG_fail;
31512 }
31513 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31514 return resultobj;
31515fail:
31516 return NULL;
31517}
31518
31519
31520SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31521 PyObject *resultobj = 0;
31522 wxImageList *arg1 = (wxImageList *) 0 ;
31523 int arg2 ;
31524 wxBitmap *arg3 = 0 ;
2131d850
RD
31525 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31526 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31527 bool result;
31528 void *argp1 = 0 ;
31529 int res1 = 0 ;
31530 int val2 ;
31531 int ecode2 = 0 ;
31532 void *argp3 = 0 ;
31533 int res3 = 0 ;
2131d850
RD
31534 void *argp4 = 0 ;
31535 int res4 = 0 ;
1bd55598
RD
31536 PyObject * obj0 = 0 ;
31537 PyObject * obj1 = 0 ;
31538 PyObject * obj2 = 0 ;
2131d850 31539 PyObject * obj3 = 0 ;
1bd55598 31540 char * kwnames[] = {
2131d850 31541 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31542 };
31543
2131d850 31544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31546 if (!SWIG_IsOK(res1)) {
31547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31548 }
31549 arg1 = reinterpret_cast< wxImageList * >(argp1);
31550 ecode2 = SWIG_AsVal_int(obj1, &val2);
31551 if (!SWIG_IsOK(ecode2)) {
31552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31553 }
31554 arg2 = static_cast< int >(val2);
31555 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31556 if (!SWIG_IsOK(res3)) {
31557 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31558 }
31559 if (!argp3) {
31560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31561 }
31562 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31563 if (obj3) {
31564 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31565 if (!SWIG_IsOK(res4)) {
31566 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31567 }
31568 if (!argp4) {
31569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31570 }
31571 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31572 }
1bd55598
RD
31573 {
31574 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31575 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31576 wxPyEndAllowThreads(__tstate);
31577 if (PyErr_Occurred()) SWIG_fail;
31578 }
31579 {
31580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31581 }
31582 return resultobj;
31583fail:
31584 return NULL;
31585}
31586
31587
31588SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31589 PyObject *resultobj = 0;
31590 wxImageList *arg1 = (wxImageList *) 0 ;
31591 int arg2 ;
31592 wxDC *arg3 = 0 ;
31593 int arg4 ;
31594 int arg5 ;
31595 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31596 bool arg7 = (bool) (bool)false ;
31597 bool result;
31598 void *argp1 = 0 ;
31599 int res1 = 0 ;
31600 int val2 ;
31601 int ecode2 = 0 ;
31602 void *argp3 = 0 ;
31603 int res3 = 0 ;
31604 int val4 ;
31605 int ecode4 = 0 ;
31606 int val5 ;
31607 int ecode5 = 0 ;
31608 int val6 ;
31609 int ecode6 = 0 ;
31610 bool val7 ;
31611 int ecode7 = 0 ;
31612 PyObject * obj0 = 0 ;
31613 PyObject * obj1 = 0 ;
31614 PyObject * obj2 = 0 ;
31615 PyObject * obj3 = 0 ;
31616 PyObject * obj4 = 0 ;
31617 PyObject * obj5 = 0 ;
31618 PyObject * obj6 = 0 ;
31619 char * kwnames[] = {
31620 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31621 };
31622
31623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31625 if (!SWIG_IsOK(res1)) {
31626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31627 }
31628 arg1 = reinterpret_cast< wxImageList * >(argp1);
31629 ecode2 = SWIG_AsVal_int(obj1, &val2);
31630 if (!SWIG_IsOK(ecode2)) {
31631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31632 }
31633 arg2 = static_cast< int >(val2);
31634 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31635 if (!SWIG_IsOK(res3)) {
31636 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31637 }
31638 if (!argp3) {
31639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31640 }
31641 arg3 = reinterpret_cast< wxDC * >(argp3);
31642 ecode4 = SWIG_AsVal_int(obj3, &val4);
31643 if (!SWIG_IsOK(ecode4)) {
31644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31645 }
31646 arg4 = static_cast< int >(val4);
31647 ecode5 = SWIG_AsVal_int(obj4, &val5);
31648 if (!SWIG_IsOK(ecode5)) {
31649 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31650 }
31651 arg5 = static_cast< int >(val5);
31652 if (obj5) {
31653 ecode6 = SWIG_AsVal_int(obj5, &val6);
31654 if (!SWIG_IsOK(ecode6)) {
31655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31656 }
31657 arg6 = static_cast< int >(val6);
31658 }
31659 if (obj6) {
31660 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31661 if (!SWIG_IsOK(ecode7)) {
31662 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31663 }
31664 arg7 = static_cast< bool >(val7);
31665 }
31666 {
31667 PyThreadState* __tstate = wxPyBeginAllowThreads();
31668 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31669 wxPyEndAllowThreads(__tstate);
31670 if (PyErr_Occurred()) SWIG_fail;
31671 }
31672 {
31673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31674 }
31675 return resultobj;
31676fail:
31677 return NULL;
31678}
31679
31680
31681SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31682 PyObject *resultobj = 0;
31683 wxImageList *arg1 = (wxImageList *) 0 ;
31684 int result;
31685 void *argp1 = 0 ;
31686 int res1 = 0 ;
31687 PyObject *swig_obj[1] ;
31688
31689 if (!args) SWIG_fail;
31690 swig_obj[0] = args;
31691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31692 if (!SWIG_IsOK(res1)) {
31693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31694 }
31695 arg1 = reinterpret_cast< wxImageList * >(argp1);
31696 {
31697 PyThreadState* __tstate = wxPyBeginAllowThreads();
31698 result = (int)(arg1)->GetImageCount();
31699 wxPyEndAllowThreads(__tstate);
31700 if (PyErr_Occurred()) SWIG_fail;
31701 }
31702 resultobj = SWIG_From_int(static_cast< int >(result));
31703 return resultobj;
31704fail:
31705 return NULL;
31706}
31707
31708
31709SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31710 PyObject *resultobj = 0;
31711 wxImageList *arg1 = (wxImageList *) 0 ;
31712 int arg2 ;
31713 bool result;
31714 void *argp1 = 0 ;
31715 int res1 = 0 ;
31716 int val2 ;
31717 int ecode2 = 0 ;
31718 PyObject * obj0 = 0 ;
31719 PyObject * obj1 = 0 ;
31720 char * kwnames[] = {
31721 (char *) "self",(char *) "index", NULL
31722 };
31723
31724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31726 if (!SWIG_IsOK(res1)) {
31727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31728 }
31729 arg1 = reinterpret_cast< wxImageList * >(argp1);
31730 ecode2 = SWIG_AsVal_int(obj1, &val2);
31731 if (!SWIG_IsOK(ecode2)) {
31732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31733 }
31734 arg2 = static_cast< int >(val2);
31735 {
31736 PyThreadState* __tstate = wxPyBeginAllowThreads();
31737 result = (bool)(arg1)->Remove(arg2);
31738 wxPyEndAllowThreads(__tstate);
31739 if (PyErr_Occurred()) SWIG_fail;
31740 }
31741 {
31742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31743 }
31744 return resultobj;
31745fail:
31746 return NULL;
31747}
31748
31749
31750SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31751 PyObject *resultobj = 0;
31752 wxImageList *arg1 = (wxImageList *) 0 ;
31753 bool result;
31754 void *argp1 = 0 ;
31755 int res1 = 0 ;
31756 PyObject *swig_obj[1] ;
31757
31758 if (!args) SWIG_fail;
31759 swig_obj[0] = args;
31760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31761 if (!SWIG_IsOK(res1)) {
31762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31763 }
31764 arg1 = reinterpret_cast< wxImageList * >(argp1);
31765 {
31766 PyThreadState* __tstate = wxPyBeginAllowThreads();
31767 result = (bool)(arg1)->RemoveAll();
31768 wxPyEndAllowThreads(__tstate);
31769 if (PyErr_Occurred()) SWIG_fail;
31770 }
31771 {
31772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31773 }
31774 return resultobj;
31775fail:
31776 return NULL;
31777}
31778
31779
31780SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31781 PyObject *resultobj = 0;
31782 wxImageList *arg1 = (wxImageList *) 0 ;
31783 int arg2 ;
31784 int *arg3 = 0 ;
31785 int *arg4 = 0 ;
31786 void *argp1 = 0 ;
31787 int res1 = 0 ;
31788 int val2 ;
31789 int ecode2 = 0 ;
31790 int temp3 ;
31791 int res3 = SWIG_TMPOBJ ;
31792 int temp4 ;
31793 int res4 = SWIG_TMPOBJ ;
31794 PyObject * obj0 = 0 ;
31795 PyObject * obj1 = 0 ;
31796 char * kwnames[] = {
31797 (char *) "self",(char *) "index", NULL
31798 };
31799
31800 arg3 = &temp3;
31801 arg4 = &temp4;
31802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31804 if (!SWIG_IsOK(res1)) {
31805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31806 }
31807 arg1 = reinterpret_cast< wxImageList * >(argp1);
31808 ecode2 = SWIG_AsVal_int(obj1, &val2);
31809 if (!SWIG_IsOK(ecode2)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31811 }
31812 arg2 = static_cast< int >(val2);
31813 {
31814 PyThreadState* __tstate = wxPyBeginAllowThreads();
31815 (arg1)->GetSize(arg2,*arg3,*arg4);
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 resultobj = SWIG_Py_Void();
31820 if (SWIG_IsTmpObj(res3)) {
31821 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31822 } else {
31823 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31824 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31825 }
31826 if (SWIG_IsTmpObj(res4)) {
31827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31828 } else {
31829 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31831 }
31832 return resultobj;
31833fail:
31834 return NULL;
31835}
31836
31837
31838SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31839 PyObject *obj;
31840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31841 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31842 return SWIG_Py_Void();
31843}
31844
31845SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31846 return SWIG_Python_InitShadowInstance(args);
31847}
31848
da91cb0f
RD
31849SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31850 PyObject *resultobj = 0;
31851 wxStockGDI *result = 0 ;
1bd55598 31852
da91cb0f
RD
31853 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31854 {
31855 PyThreadState* __tstate = wxPyBeginAllowThreads();
31856 result = (wxStockGDI *)new wxStockGDI();
31857 wxPyEndAllowThreads(__tstate);
31858 if (PyErr_Occurred()) SWIG_fail;
31859 }
31860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31861 return resultobj;
31862fail:
31863 return NULL;
1bd55598
RD
31864}
31865
31866
da91cb0f
RD
31867SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31868 PyObject *resultobj = 0;
31869 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31870 void *argp1 = 0 ;
31871 int res1 = 0 ;
31872 PyObject *swig_obj[1] ;
1bd55598 31873
da91cb0f
RD
31874 if (!args) SWIG_fail;
31875 swig_obj[0] = args;
31876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31877 if (!SWIG_IsOK(res1)) {
31878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31879 }
31880 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31881 {
31882 PyThreadState* __tstate = wxPyBeginAllowThreads();
31883 delete arg1;
31884
31885 wxPyEndAllowThreads(__tstate);
31886 if (PyErr_Occurred()) SWIG_fail;
31887 }
31888 resultobj = SWIG_Py_Void();
31889 return resultobj;
31890fail:
31891 return NULL;
1bd55598
RD
31892}
31893
31894
da91cb0f
RD
31895SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31896 PyObject *resultobj = 0;
1bd55598 31897
da91cb0f
RD
31898 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31899 {
31900 PyThreadState* __tstate = wxPyBeginAllowThreads();
31901 wxStockGDI::DeleteAll();
31902 wxPyEndAllowThreads(__tstate);
31903 if (PyErr_Occurred()) SWIG_fail;
31904 }
31905 resultobj = SWIG_Py_Void();
31906 return resultobj;
31907fail:
31908 return NULL;
1bd55598
RD
31909}
31910
31911
da91cb0f
RD
31912SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31913 PyObject *resultobj = 0;
31914 wxStockGDI *result = 0 ;
1bd55598 31915
da91cb0f
RD
31916 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31917 {
31918 PyThreadState* __tstate = wxPyBeginAllowThreads();
31919 {
31920 wxStockGDI &_result_ref = wxStockGDI::instance();
31921 result = (wxStockGDI *) &_result_ref;
31922 }
31923 wxPyEndAllowThreads(__tstate);
31924 if (PyErr_Occurred()) SWIG_fail;
31925 }
31926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31927 return resultobj;
31928fail:
31929 return NULL;
1bd55598
RD
31930}
31931
31932
da91cb0f
RD
31933SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31934 PyObject *resultobj = 0;
31935 wxStockGDI::Item arg1 ;
31936 wxBrush *result = 0 ;
31937 int val1 ;
31938 int ecode1 = 0 ;
31939 PyObject * obj0 = 0 ;
31940 char * kwnames[] = {
31941 (char *) "item", NULL
31942 };
31943
31944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31945 ecode1 = SWIG_AsVal_int(obj0, &val1);
31946 if (!SWIG_IsOK(ecode1)) {
31947 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31948 }
31949 arg1 = static_cast< wxStockGDI::Item >(val1);
31950 {
31951 PyThreadState* __tstate = wxPyBeginAllowThreads();
31952 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31953 wxPyEndAllowThreads(__tstate);
31954 if (PyErr_Occurred()) SWIG_fail;
31955 }
31956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31957 return resultobj;
31958fail:
31959 return NULL;
1bd55598
RD
31960}
31961
31962
da91cb0f
RD
31963SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31964 PyObject *resultobj = 0;
31965 wxStockGDI::Item arg1 ;
31966 wxColour *result = 0 ;
31967 int val1 ;
31968 int ecode1 = 0 ;
31969 PyObject * obj0 = 0 ;
31970 char * kwnames[] = {
31971 (char *) "item", NULL
31972 };
1bd55598 31973
da91cb0f
RD
31974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31975 ecode1 = SWIG_AsVal_int(obj0, &val1);
31976 if (!SWIG_IsOK(ecode1)) {
31977 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31978 }
31979 arg1 = static_cast< wxStockGDI::Item >(val1);
31980 {
31981 PyThreadState* __tstate = wxPyBeginAllowThreads();
31982 result = (wxColour *)wxStockGDI::GetColour(arg1);
31983 wxPyEndAllowThreads(__tstate);
31984 if (PyErr_Occurred()) SWIG_fail;
31985 }
31986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31987 return resultobj;
31988fail:
31989 return NULL;
1bd55598
RD
31990}
31991
31992
da91cb0f
RD
31993SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31994 PyObject *resultobj = 0;
31995 wxStockGDI::Item arg1 ;
31996 wxCursor *result = 0 ;
31997 int val1 ;
31998 int ecode1 = 0 ;
31999 PyObject * obj0 = 0 ;
32000 char * kwnames[] = {
32001 (char *) "item", NULL
32002 };
32003
32004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32005 ecode1 = SWIG_AsVal_int(obj0, &val1);
32006 if (!SWIG_IsOK(ecode1)) {
32007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32008 }
32009 arg1 = static_cast< wxStockGDI::Item >(val1);
32010 {
32011 PyThreadState* __tstate = wxPyBeginAllowThreads();
32012 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32013 wxPyEndAllowThreads(__tstate);
32014 if (PyErr_Occurred()) SWIG_fail;
32015 }
32016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32017 return resultobj;
32018fail:
32019 return NULL;
1bd55598
RD
32020}
32021
32022
da91cb0f
RD
32023SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32024 PyObject *resultobj = 0;
32025 wxStockGDI::Item arg1 ;
32026 wxPen *result = 0 ;
32027 int val1 ;
32028 int ecode1 = 0 ;
32029 PyObject * obj0 = 0 ;
32030 char * kwnames[] = {
32031 (char *) "item", NULL
32032 };
32033
32034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32035 ecode1 = SWIG_AsVal_int(obj0, &val1);
32036 if (!SWIG_IsOK(ecode1)) {
32037 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32038 }
32039 arg1 = static_cast< wxStockGDI::Item >(val1);
32040 {
32041 PyThreadState* __tstate = wxPyBeginAllowThreads();
32042 result = (wxPen *)wxStockGDI::GetPen(arg1);
32043 wxPyEndAllowThreads(__tstate);
32044 if (PyErr_Occurred()) SWIG_fail;
32045 }
32046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32047 return resultobj;
32048fail:
32049 return NULL;
1bd55598
RD
32050}
32051
32052
da91cb0f
RD
32053SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32054 PyObject *resultobj = 0;
32055 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32056 wxStockGDI::Item arg2 ;
32057 wxFont *result = 0 ;
32058 void *argp1 = 0 ;
32059 int res1 = 0 ;
32060 int val2 ;
32061 int ecode2 = 0 ;
32062 PyObject * obj0 = 0 ;
32063 PyObject * obj1 = 0 ;
32064 char * kwnames[] = {
32065 (char *) "self",(char *) "item", NULL
32066 };
1bd55598 32067
da91cb0f
RD
32068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32070 if (!SWIG_IsOK(res1)) {
32071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32072 }
32073 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32074 ecode2 = SWIG_AsVal_int(obj1, &val2);
32075 if (!SWIG_IsOK(ecode2)) {
32076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32077 }
32078 arg2 = static_cast< wxStockGDI::Item >(val2);
32079 {
32080 PyThreadState* __tstate = wxPyBeginAllowThreads();
32081 result = (wxFont *)(arg1)->GetFont(arg2);
32082 wxPyEndAllowThreads(__tstate);
32083 if (PyErr_Occurred()) SWIG_fail;
32084 }
32085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32086 return resultobj;
32087fail:
32088 return NULL;
1bd55598
RD
32089}
32090
32091
da91cb0f
RD
32092SWIGINTERN PyObject *StockGDI_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_wxStockGDI, SWIG_NewClientData(obj));
32096 return SWIG_Py_Void();
1bd55598
RD
32097}
32098
da91cb0f
RD
32099SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32100 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
32101}
32102
1bd55598
RD
32103SWIGINTERN int NullBitmap_set(PyObject *) {
32104 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32105 return 1;
32106}
32107
32108
32109SWIGINTERN PyObject *NullBitmap_get(void) {
32110 PyObject *pyobj = 0;
32111
32112 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32113 return pyobj;
32114}
32115
32116
32117SWIGINTERN int NullIcon_set(PyObject *) {
32118 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32119 return 1;
32120}
32121
32122
32123SWIGINTERN PyObject *NullIcon_get(void) {
32124 PyObject *pyobj = 0;
32125
32126 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32127 return pyobj;
32128}
32129
32130
32131SWIGINTERN int NullCursor_set(PyObject *) {
32132 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32133 return 1;
32134}
32135
32136
32137SWIGINTERN PyObject *NullCursor_get(void) {
32138 PyObject *pyobj = 0;
32139
32140 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32141 return pyobj;
32142}
32143
32144
32145SWIGINTERN int NullPen_set(PyObject *) {
32146 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32147 return 1;
32148}
32149
32150
32151SWIGINTERN PyObject *NullPen_get(void) {
32152 PyObject *pyobj = 0;
32153
32154 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32155 return pyobj;
32156}
32157
32158
32159SWIGINTERN int NullBrush_set(PyObject *) {
32160 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32161 return 1;
32162}
32163
32164
32165SWIGINTERN PyObject *NullBrush_get(void) {
32166 PyObject *pyobj = 0;
32167
32168 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32169 return pyobj;
32170}
32171
32172
32173SWIGINTERN int NullPalette_set(PyObject *) {
32174 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32175 return 1;
32176}
32177
32178
32179SWIGINTERN PyObject *NullPalette_get(void) {
32180 PyObject *pyobj = 0;
32181
32182 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32183 return pyobj;
32184}
32185
32186
32187SWIGINTERN int NullFont_set(PyObject *) {
32188 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32189 return 1;
32190}
32191
32192
32193SWIGINTERN PyObject *NullFont_get(void) {
32194 PyObject *pyobj = 0;
32195
32196 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32197 return pyobj;
32198}
32199
32200
32201SWIGINTERN int NullColour_set(PyObject *) {
32202 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32203 return 1;
32204}
32205
32206
32207SWIGINTERN PyObject *NullColour_get(void) {
32208 PyObject *pyobj = 0;
32209
32210 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32211 return pyobj;
32212}
32213
32214
da91cb0f 32215SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32216 PyObject *resultobj = 0;
da91cb0f
RD
32217 wxGDIObjListBase *result = 0 ;
32218
32219 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32220 {
32221 PyThreadState* __tstate = wxPyBeginAllowThreads();
32222 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32223 wxPyEndAllowThreads(__tstate);
32224 if (PyErr_Occurred()) SWIG_fail;
32225 }
32226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32227 return resultobj;
32228fail:
32229 return NULL;
32230}
32231
32232
32233SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32234 PyObject *resultobj = 0;
32235 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32236 void *argp1 = 0 ;
32237 int res1 = 0 ;
da91cb0f 32238 PyObject *swig_obj[1] ;
1bd55598 32239
da91cb0f
RD
32240 if (!args) SWIG_fail;
32241 swig_obj[0] = args;
32242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32243 if (!SWIG_IsOK(res1)) {
da91cb0f 32244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32245 }
da91cb0f 32246 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32249 delete arg1;
32250
1bd55598
RD
32251 wxPyEndAllowThreads(__tstate);
32252 if (PyErr_Occurred()) SWIG_fail;
32253 }
32254 resultobj = SWIG_Py_Void();
32255 return resultobj;
32256fail:
32257 return NULL;
32258}
32259
32260
da91cb0f
RD
32261SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32262 PyObject *obj;
32263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32264 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32265 return SWIG_Py_Void();
32266}
32267
32268SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32269 return SWIG_Python_InitShadowInstance(args);
32270}
32271
1bd55598
RD
32272SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32273 PyObject *resultobj = 0;
32274 wxPenList *arg1 = (wxPenList *) 0 ;
32275 wxColour *arg2 = 0 ;
32276 int arg3 ;
32277 int arg4 ;
32278 wxPen *result = 0 ;
32279 void *argp1 = 0 ;
32280 int res1 = 0 ;
32281 wxColour temp2 ;
32282 int val3 ;
32283 int ecode3 = 0 ;
32284 int val4 ;
32285 int ecode4 = 0 ;
32286 PyObject * obj0 = 0 ;
32287 PyObject * obj1 = 0 ;
32288 PyObject * obj2 = 0 ;
32289 PyObject * obj3 = 0 ;
32290 char * kwnames[] = {
32291 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32292 };
32293
32294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32296 if (!SWIG_IsOK(res1)) {
32297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32298 }
32299 arg1 = reinterpret_cast< wxPenList * >(argp1);
32300 {
32301 arg2 = &temp2;
32302 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32303 }
32304 ecode3 = SWIG_AsVal_int(obj2, &val3);
32305 if (!SWIG_IsOK(ecode3)) {
32306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32307 }
32308 arg3 = static_cast< int >(val3);
32309 ecode4 = SWIG_AsVal_int(obj3, &val4);
32310 if (!SWIG_IsOK(ecode4)) {
32311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32312 }
32313 arg4 = static_cast< int >(val4);
32314 {
32315 PyThreadState* __tstate = wxPyBeginAllowThreads();
32316 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32317 wxPyEndAllowThreads(__tstate);
32318 if (PyErr_Occurred()) SWIG_fail;
32319 }
32320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32321 return resultobj;
32322fail:
32323 return NULL;
32324}
32325
32326
da91cb0f 32327SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32328 PyObject *resultobj = 0;
32329 wxPenList *arg1 = (wxPenList *) 0 ;
32330 wxPen *arg2 = (wxPen *) 0 ;
32331 void *argp1 = 0 ;
32332 int res1 = 0 ;
32333 void *argp2 = 0 ;
32334 int res2 = 0 ;
32335 PyObject * obj0 = 0 ;
32336 PyObject * obj1 = 0 ;
32337 char * kwnames[] = {
32338 (char *) "self",(char *) "pen", NULL
32339 };
32340
da91cb0f 32341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
32342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32343 if (!SWIG_IsOK(res1)) {
da91cb0f 32344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32345 }
32346 arg1 = reinterpret_cast< wxPenList * >(argp1);
32347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32348 if (!SWIG_IsOK(res2)) {
da91cb0f 32349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
32350 }
32351 arg2 = reinterpret_cast< wxPen * >(argp2);
32352 {
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32354 (arg1)->AddPen(arg2);
1bd55598
RD
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
da91cb0f 32365SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32366 PyObject *resultobj = 0;
32367 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32368 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32369 void *argp1 = 0 ;
32370 int res1 = 0 ;
da91cb0f
RD
32371 void *argp2 = 0 ;
32372 int res2 = 0 ;
32373 PyObject * obj0 = 0 ;
32374 PyObject * obj1 = 0 ;
32375 char * kwnames[] = {
32376 (char *) "self",(char *) "pen", NULL
32377 };
1bd55598 32378
da91cb0f
RD
32379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32381 if (!SWIG_IsOK(res1)) {
da91cb0f 32382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32383 }
32384 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32386 if (!SWIG_IsOK(res2)) {
32387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32388 }
32389 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32390 {
32391 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32392 (arg1)->RemovePen(arg2);
1bd55598
RD
32393 wxPyEndAllowThreads(__tstate);
32394 if (PyErr_Occurred()) SWIG_fail;
32395 }
da91cb0f 32396 resultobj = SWIG_Py_Void();
1bd55598
RD
32397 return resultobj;
32398fail:
32399 return NULL;
32400}
32401
32402
32403SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32404 PyObject *obj;
32405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32406 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32407 return SWIG_Py_Void();
32408}
32409
da91cb0f
RD
32410SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32411 PyObject *resultobj = 0;
32412 wxBrushList *arg1 = (wxBrushList *) 0 ;
32413 wxColour *arg2 = 0 ;
32414 int arg3 = (int) wxSOLID ;
32415 wxBrush *result = 0 ;
32416 void *argp1 = 0 ;
32417 int res1 = 0 ;
32418 wxColour temp2 ;
32419 int val3 ;
32420 int ecode3 = 0 ;
32421 PyObject * obj0 = 0 ;
32422 PyObject * obj1 = 0 ;
32423 PyObject * obj2 = 0 ;
32424 char * kwnames[] = {
32425 (char *) "self",(char *) "colour",(char *) "style", NULL
32426 };
32427
32428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32430 if (!SWIG_IsOK(res1)) {
32431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32432 }
32433 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32434 {
32435 arg2 = &temp2;
32436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32437 }
32438 if (obj2) {
32439 ecode3 = SWIG_AsVal_int(obj2, &val3);
32440 if (!SWIG_IsOK(ecode3)) {
32441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32442 }
32443 arg3 = static_cast< int >(val3);
32444 }
32445 {
32446 PyThreadState* __tstate = wxPyBeginAllowThreads();
32447 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32448 wxPyEndAllowThreads(__tstate);
32449 if (PyErr_Occurred()) SWIG_fail;
32450 }
32451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32452 return resultobj;
32453fail:
32454 return NULL;
32455}
32456
32457
1bd55598
RD
32458SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32459 PyObject *resultobj = 0;
32460 wxBrushList *arg1 = (wxBrushList *) 0 ;
32461 wxBrush *arg2 = (wxBrush *) 0 ;
32462 void *argp1 = 0 ;
32463 int res1 = 0 ;
32464 void *argp2 = 0 ;
32465 int res2 = 0 ;
32466 PyObject * obj0 = 0 ;
32467 PyObject * obj1 = 0 ;
32468 char * kwnames[] = {
32469 (char *) "self",(char *) "brush", NULL
32470 };
32471
32472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32474 if (!SWIG_IsOK(res1)) {
32475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32476 }
32477 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32478 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32479 if (!SWIG_IsOK(res2)) {
32480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32481 }
32482 arg2 = reinterpret_cast< wxBrush * >(argp2);
32483 {
32484 PyThreadState* __tstate = wxPyBeginAllowThreads();
32485 (arg1)->AddBrush(arg2);
32486 wxPyEndAllowThreads(__tstate);
32487 if (PyErr_Occurred()) SWIG_fail;
32488 }
32489 resultobj = SWIG_Py_Void();
32490 return resultobj;
32491fail:
32492 return NULL;
32493}
32494
32495
da91cb0f 32496SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32497 PyObject *resultobj = 0;
32498 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32499 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32500 void *argp1 = 0 ;
32501 int res1 = 0 ;
da91cb0f
RD
32502 void *argp2 = 0 ;
32503 int res2 = 0 ;
32504 PyObject * obj0 = 0 ;
32505 PyObject * obj1 = 0 ;
32506 char * kwnames[] = {
32507 (char *) "self",(char *) "brush", NULL
32508 };
32509
32510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32512 if (!SWIG_IsOK(res1)) {
32513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32514 }
32515 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32517 if (!SWIG_IsOK(res2)) {
32518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32519 }
32520 arg2 = reinterpret_cast< wxBrush * >(argp2);
32521 {
32522 PyThreadState* __tstate = wxPyBeginAllowThreads();
32523 (arg1)->RemoveBrush(arg2);
32524 wxPyEndAllowThreads(__tstate);
32525 if (PyErr_Occurred()) SWIG_fail;
32526 }
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529fail:
32530 return NULL;
32531}
32532
32533
32534SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32535 PyObject *obj;
32536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32537 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32538 return SWIG_Py_Void();
32539}
32540
32541SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32542 PyObject *resultobj = 0;
32543 wxFontList *arg1 = (wxFontList *) 0 ;
32544 int arg2 ;
32545 int arg3 ;
32546 int arg4 ;
32547 int arg5 ;
32548 bool arg6 = (bool) false ;
32549 wxString const &arg7_defvalue = wxPyEmptyString ;
32550 wxString *arg7 = (wxString *) &arg7_defvalue ;
32551 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32552 wxFont *result = 0 ;
32553 void *argp1 = 0 ;
32554 int res1 = 0 ;
32555 int val2 ;
32556 int ecode2 = 0 ;
1bd55598
RD
32557 int val3 ;
32558 int ecode3 = 0 ;
da91cb0f
RD
32559 int val4 ;
32560 int ecode4 = 0 ;
32561 int val5 ;
32562 int ecode5 = 0 ;
32563 bool val6 ;
32564 int ecode6 = 0 ;
32565 bool temp7 = false ;
32566 int val8 ;
32567 int ecode8 = 0 ;
1bd55598
RD
32568 PyObject * obj0 = 0 ;
32569 PyObject * obj1 = 0 ;
32570 PyObject * obj2 = 0 ;
da91cb0f
RD
32571 PyObject * obj3 = 0 ;
32572 PyObject * obj4 = 0 ;
32573 PyObject * obj5 = 0 ;
32574 PyObject * obj6 = 0 ;
32575 PyObject * obj7 = 0 ;
1bd55598 32576 char * kwnames[] = {
da91cb0f 32577 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32578 };
32579
da91cb0f
RD
32580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32582 if (!SWIG_IsOK(res1)) {
da91cb0f 32583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32584 }
da91cb0f
RD
32585 arg1 = reinterpret_cast< wxFontList * >(argp1);
32586 ecode2 = SWIG_AsVal_int(obj1, &val2);
32587 if (!SWIG_IsOK(ecode2)) {
32588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32589 }
32590 arg2 = static_cast< int >(val2);
32591 ecode3 = SWIG_AsVal_int(obj2, &val3);
32592 if (!SWIG_IsOK(ecode3)) {
32593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32594 }
32595 arg3 = static_cast< int >(val3);
32596 ecode4 = SWIG_AsVal_int(obj3, &val4);
32597 if (!SWIG_IsOK(ecode4)) {
32598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32599 }
32600 arg4 = static_cast< int >(val4);
32601 ecode5 = SWIG_AsVal_int(obj4, &val5);
32602 if (!SWIG_IsOK(ecode5)) {
32603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32604 }
32605 arg5 = static_cast< int >(val5);
32606 if (obj5) {
32607 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32608 if (!SWIG_IsOK(ecode6)) {
32609 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32610 }
32611 arg6 = static_cast< bool >(val6);
1bd55598 32612 }
da91cb0f
RD
32613 if (obj6) {
32614 {
32615 arg7 = wxString_in_helper(obj6);
32616 if (arg7 == NULL) SWIG_fail;
32617 temp7 = true;
32618 }
32619 }
32620 if (obj7) {
32621 ecode8 = SWIG_AsVal_int(obj7, &val8);
32622 if (!SWIG_IsOK(ecode8)) {
32623 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32624 }
da91cb0f 32625 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32626 }
32627 {
32628 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32629 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32630 wxPyEndAllowThreads(__tstate);
32631 if (PyErr_Occurred()) SWIG_fail;
32632 }
da91cb0f
RD
32633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32634 {
32635 if (temp7)
32636 delete arg7;
32637 }
1bd55598
RD
32638 return resultobj;
32639fail:
da91cb0f
RD
32640 {
32641 if (temp7)
32642 delete arg7;
32643 }
1bd55598
RD
32644 return NULL;
32645}
32646
32647
da91cb0f 32648SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32649 PyObject *resultobj = 0;
da91cb0f
RD
32650 wxFontList *arg1 = (wxFontList *) 0 ;
32651 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32652 void *argp1 = 0 ;
32653 int res1 = 0 ;
32654 void *argp2 = 0 ;
32655 int res2 = 0 ;
32656 PyObject * obj0 = 0 ;
32657 PyObject * obj1 = 0 ;
32658 char * kwnames[] = {
da91cb0f 32659 (char *) "self",(char *) "font", NULL
1bd55598
RD
32660 };
32661
da91cb0f
RD
32662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32664 if (!SWIG_IsOK(res1)) {
da91cb0f 32665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32666 }
da91cb0f
RD
32667 arg1 = reinterpret_cast< wxFontList * >(argp1);
32668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32669 if (!SWIG_IsOK(res2)) {
da91cb0f 32670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32671 }
da91cb0f 32672 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32673 {
32674 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32675 (arg1)->AddFont(arg2);
1bd55598
RD
32676 wxPyEndAllowThreads(__tstate);
32677 if (PyErr_Occurred()) SWIG_fail;
32678 }
32679 resultobj = SWIG_Py_Void();
32680 return resultobj;
32681fail:
32682 return NULL;
32683}
32684
32685
da91cb0f 32686SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32687 PyObject *resultobj = 0;
da91cb0f
RD
32688 wxFontList *arg1 = (wxFontList *) 0 ;
32689 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32690 void *argp1 = 0 ;
32691 int res1 = 0 ;
da91cb0f
RD
32692 void *argp2 = 0 ;
32693 int res2 = 0 ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 char * kwnames[] = {
32697 (char *) "self",(char *) "font", NULL
32698 };
1bd55598 32699
da91cb0f
RD
32700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32702 if (!SWIG_IsOK(res1)) {
da91cb0f 32703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32704 }
da91cb0f
RD
32705 arg1 = reinterpret_cast< wxFontList * >(argp1);
32706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32707 if (!SWIG_IsOK(res2)) {
32708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32709 }
32710 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32711 {
32712 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32713 (arg1)->RemoveFont(arg2);
1bd55598
RD
32714 wxPyEndAllowThreads(__tstate);
32715 if (PyErr_Occurred()) SWIG_fail;
32716 }
da91cb0f 32717 resultobj = SWIG_Py_Void();
1bd55598
RD
32718 return resultobj;
32719fail:
32720 return NULL;
32721}
32722
32723
da91cb0f 32724SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32725 PyObject *obj;
32726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32727 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32728 return SWIG_Py_Void();
32729}
32730
32731SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32732 PyObject *resultobj = 0;
32733 wxColourDatabase *result = 0 ;
32734
32735 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32736 {
32737 if (!wxPyCheckForApp()) SWIG_fail;
32738 PyThreadState* __tstate = wxPyBeginAllowThreads();
32739 result = (wxColourDatabase *)new wxColourDatabase();
32740 wxPyEndAllowThreads(__tstate);
32741 if (PyErr_Occurred()) SWIG_fail;
32742 }
32743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32744 return resultobj;
32745fail:
32746 return NULL;
32747}
32748
32749
32750SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32751 PyObject *resultobj = 0;
32752 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32753 void *argp1 = 0 ;
32754 int res1 = 0 ;
32755 PyObject *swig_obj[1] ;
32756
32757 if (!args) SWIG_fail;
32758 swig_obj[0] = args;
32759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32760 if (!SWIG_IsOK(res1)) {
32761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32762 }
32763 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32764 {
32765 PyThreadState* __tstate = wxPyBeginAllowThreads();
32766 delete arg1;
32767
32768 wxPyEndAllowThreads(__tstate);
32769 if (PyErr_Occurred()) SWIG_fail;
32770 }
32771 resultobj = SWIG_Py_Void();
32772 return resultobj;
32773fail:
32774 return NULL;
32775}
32776
32777
32778SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32779 PyObject *resultobj = 0;
32780 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32781 wxString *arg2 = 0 ;
32782 wxColour result;
32783 void *argp1 = 0 ;
32784 int res1 = 0 ;
32785 bool temp2 = false ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 char * kwnames[] = {
32789 (char *) "self",(char *) "name", NULL
32790 };
32791
32792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32794 if (!SWIG_IsOK(res1)) {
32795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32796 }
32797 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32798 {
32799 arg2 = wxString_in_helper(obj1);
32800 if (arg2 == NULL) SWIG_fail;
32801 temp2 = true;
32802 }
32803 {
32804 PyThreadState* __tstate = wxPyBeginAllowThreads();
32805 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32806 wxPyEndAllowThreads(__tstate);
32807 if (PyErr_Occurred()) SWIG_fail;
32808 }
32809 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32810 {
32811 if (temp2)
32812 delete arg2;
32813 }
32814 return resultobj;
32815fail:
32816 {
32817 if (temp2)
32818 delete arg2;
32819 }
32820 return NULL;
32821}
32822
32823
32824SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32825 PyObject *resultobj = 0;
32826 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32827 wxColour *arg2 = 0 ;
32828 wxString result;
32829 void *argp1 = 0 ;
32830 int res1 = 0 ;
32831 wxColour temp2 ;
32832 PyObject * obj0 = 0 ;
32833 PyObject * obj1 = 0 ;
32834 char * kwnames[] = {
32835 (char *) "self",(char *) "colour", NULL
32836 };
32837
32838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32840 if (!SWIG_IsOK(res1)) {
32841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32842 }
32843 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32844 {
32845 arg2 = &temp2;
32846 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32847 }
32848 {
32849 PyThreadState* __tstate = wxPyBeginAllowThreads();
32850 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32851 wxPyEndAllowThreads(__tstate);
32852 if (PyErr_Occurred()) SWIG_fail;
32853 }
32854 {
32855#if wxUSE_UNICODE
32856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32857#else
32858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32859#endif
32860 }
32861 return resultobj;
32862fail:
32863 return NULL;
32864}
32865
32866
32867SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32868 PyObject *resultobj = 0;
32869 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32870 wxString *arg2 = 0 ;
32871 wxColour *arg3 = 0 ;
32872 void *argp1 = 0 ;
32873 int res1 = 0 ;
32874 bool temp2 = false ;
32875 wxColour temp3 ;
32876 PyObject * obj0 = 0 ;
32877 PyObject * obj1 = 0 ;
32878 PyObject * obj2 = 0 ;
32879 char * kwnames[] = {
32880 (char *) "self",(char *) "name",(char *) "colour", NULL
32881 };
32882
32883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32885 if (!SWIG_IsOK(res1)) {
32886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32887 }
32888 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32889 {
32890 arg2 = wxString_in_helper(obj1);
32891 if (arg2 == NULL) SWIG_fail;
32892 temp2 = true;
32893 }
32894 {
32895 arg3 = &temp3;
32896 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32897 }
32898 {
32899 PyThreadState* __tstate = wxPyBeginAllowThreads();
32900 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32901 wxPyEndAllowThreads(__tstate);
32902 if (PyErr_Occurred()) SWIG_fail;
32903 }
32904 resultobj = SWIG_Py_Void();
32905 {
32906 if (temp2)
32907 delete arg2;
32908 }
32909 return resultobj;
32910fail:
32911 {
32912 if (temp2)
32913 delete arg2;
32914 }
32915 return NULL;
32916}
32917
32918
32919SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32920 PyObject *resultobj = 0;
32921 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32922 wxString *arg2 = 0 ;
32923 int arg3 ;
32924 int arg4 ;
32925 int arg5 ;
32926 void *argp1 = 0 ;
32927 int res1 = 0 ;
32928 bool temp2 = false ;
32929 int val3 ;
32930 int ecode3 = 0 ;
32931 int val4 ;
32932 int ecode4 = 0 ;
da91cb0f
RD
32933 int val5 ;
32934 int ecode5 = 0 ;
1bd55598
RD
32935 PyObject * obj0 = 0 ;
32936 PyObject * obj1 = 0 ;
32937 PyObject * obj2 = 0 ;
32938 PyObject * obj3 = 0 ;
32939 PyObject * obj4 = 0 ;
1bd55598 32940 char * kwnames[] = {
da91cb0f 32941 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32942 };
32943
da91cb0f
RD
32944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32946 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32948 }
32949 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32950 {
32951 arg2 = wxString_in_helper(obj1);
32952 if (arg2 == NULL) SWIG_fail;
32953 temp2 = true;
1bd55598 32954 }
1bd55598
RD
32955 ecode3 = SWIG_AsVal_int(obj2, &val3);
32956 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32958 }
32959 arg3 = static_cast< int >(val3);
32960 ecode4 = SWIG_AsVal_int(obj3, &val4);
32961 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32963 }
32964 arg4 = static_cast< int >(val4);
32965 ecode5 = SWIG_AsVal_int(obj4, &val5);
32966 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32968 }
32969 arg5 = static_cast< int >(val5);
1bd55598
RD
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32972 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
da91cb0f 32976 resultobj = SWIG_Py_Void();
1bd55598 32977 {
da91cb0f
RD
32978 if (temp2)
32979 delete arg2;
1bd55598
RD
32980 }
32981 return resultobj;
32982fail:
32983 {
da91cb0f
RD
32984 if (temp2)
32985 delete arg2;
1bd55598
RD
32986 }
32987 return NULL;
32988}
32989
32990
da91cb0f
RD
32991SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32992 PyObject *obj;
32993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32994 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32995 return SWIG_Py_Void();
32996}
32997
32998SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32999 return SWIG_Python_InitShadowInstance(args);
33000}
33001
33002SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33003 PyObject *resultobj = 0;
da91cb0f 33004 wxFontList *result = 0 ;
1bd55598 33005
da91cb0f 33006 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
33007 {
33008 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33009 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
33010 wxPyEndAllowThreads(__tstate);
33011 if (PyErr_Occurred()) SWIG_fail;
33012 }
da91cb0f 33013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
33014 return resultobj;
33015fail:
33016 return NULL;
33017}
33018
33019
da91cb0f 33020SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33021 PyObject *resultobj = 0;
da91cb0f 33022 wxPenList *result = 0 ;
1bd55598 33023
da91cb0f 33024 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
33025 {
33026 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33027 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
33028 wxPyEndAllowThreads(__tstate);
33029 if (PyErr_Occurred()) SWIG_fail;
33030 }
da91cb0f 33031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
33032 return resultobj;
33033fail:
33034 return NULL;
33035}
33036
33037
da91cb0f
RD
33038SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33039 PyObject *resultobj = 0;
33040 wxBrushList *result = 0 ;
1bd55598 33041
da91cb0f
RD
33042 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33043 {
33044 PyThreadState* __tstate = wxPyBeginAllowThreads();
33045 result = (wxBrushList *)_wxPyInitTheBrushList();
33046 wxPyEndAllowThreads(__tstate);
33047 if (PyErr_Occurred()) SWIG_fail;
33048 }
33049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33050 return resultobj;
33051fail:
33052 return NULL;
1bd55598
RD
33053}
33054
33055
da91cb0f
RD
33056SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33057 PyObject *resultobj = 0;
33058 wxColourDatabase *result = 0 ;
1bd55598 33059
da91cb0f
RD
33060 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33061 {
33062 PyThreadState* __tstate = wxPyBeginAllowThreads();
33063 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33064 wxPyEndAllowThreads(__tstate);
33065 if (PyErr_Occurred()) SWIG_fail;
33066 }
33067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33068 return resultobj;
33069fail:
33070 return NULL;
1bd55598
RD
33071}
33072
33073
33074SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33075 PyObject *resultobj = 0;
33076 wxEffects *result = 0 ;
33077
33078 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33079 {
33080 PyThreadState* __tstate = wxPyBeginAllowThreads();
33081 result = (wxEffects *)new wxEffects();
33082 wxPyEndAllowThreads(__tstate);
33083 if (PyErr_Occurred()) SWIG_fail;
33084 }
33085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33086 return resultobj;
33087fail:
33088 return NULL;
33089}
33090
33091
33092SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33093 PyObject *resultobj = 0;
33094 wxEffects *arg1 = (wxEffects *) 0 ;
33095 wxColour result;
33096 void *argp1 = 0 ;
33097 int res1 = 0 ;
33098 PyObject *swig_obj[1] ;
33099
33100 if (!args) SWIG_fail;
33101 swig_obj[0] = args;
33102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33103 if (!SWIG_IsOK(res1)) {
33104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33105 }
33106 arg1 = reinterpret_cast< wxEffects * >(argp1);
33107 {
33108 PyThreadState* __tstate = wxPyBeginAllowThreads();
33109 result = ((wxEffects const *)arg1)->GetHighlightColour();
33110 wxPyEndAllowThreads(__tstate);
33111 if (PyErr_Occurred()) SWIG_fail;
33112 }
33113 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33114 return resultobj;
33115fail:
33116 return NULL;
33117}
33118
33119
33120SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33121 PyObject *resultobj = 0;
33122 wxEffects *arg1 = (wxEffects *) 0 ;
33123 wxColour result;
33124 void *argp1 = 0 ;
33125 int res1 = 0 ;
33126 PyObject *swig_obj[1] ;
33127
33128 if (!args) SWIG_fail;
33129 swig_obj[0] = args;
33130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33131 if (!SWIG_IsOK(res1)) {
33132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33133 }
33134 arg1 = reinterpret_cast< wxEffects * >(argp1);
33135 {
33136 PyThreadState* __tstate = wxPyBeginAllowThreads();
33137 result = ((wxEffects const *)arg1)->GetLightShadow();
33138 wxPyEndAllowThreads(__tstate);
33139 if (PyErr_Occurred()) SWIG_fail;
33140 }
33141 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33142 return resultobj;
33143fail:
33144 return NULL;
33145}
33146
33147
33148SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33149 PyObject *resultobj = 0;
33150 wxEffects *arg1 = (wxEffects *) 0 ;
33151 wxColour result;
33152 void *argp1 = 0 ;
33153 int res1 = 0 ;
33154 PyObject *swig_obj[1] ;
33155
33156 if (!args) SWIG_fail;
33157 swig_obj[0] = args;
33158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33159 if (!SWIG_IsOK(res1)) {
33160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33161 }
33162 arg1 = reinterpret_cast< wxEffects * >(argp1);
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 result = ((wxEffects const *)arg1)->GetFaceColour();
33166 wxPyEndAllowThreads(__tstate);
33167 if (PyErr_Occurred()) SWIG_fail;
33168 }
33169 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33170 return resultobj;
33171fail:
33172 return NULL;
33173}
33174
33175
33176SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33177 PyObject *resultobj = 0;
33178 wxEffects *arg1 = (wxEffects *) 0 ;
33179 wxColour result;
33180 void *argp1 = 0 ;
33181 int res1 = 0 ;
33182 PyObject *swig_obj[1] ;
33183
33184 if (!args) SWIG_fail;
33185 swig_obj[0] = args;
33186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33187 if (!SWIG_IsOK(res1)) {
33188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33189 }
33190 arg1 = reinterpret_cast< wxEffects * >(argp1);
33191 {
33192 PyThreadState* __tstate = wxPyBeginAllowThreads();
33193 result = ((wxEffects const *)arg1)->GetMediumShadow();
33194 wxPyEndAllowThreads(__tstate);
33195 if (PyErr_Occurred()) SWIG_fail;
33196 }
33197 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33198 return resultobj;
33199fail:
33200 return NULL;
33201}
33202
33203
33204SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33205 PyObject *resultobj = 0;
33206 wxEffects *arg1 = (wxEffects *) 0 ;
33207 wxColour result;
33208 void *argp1 = 0 ;
33209 int res1 = 0 ;
33210 PyObject *swig_obj[1] ;
33211
33212 if (!args) SWIG_fail;
33213 swig_obj[0] = args;
33214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33215 if (!SWIG_IsOK(res1)) {
33216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33217 }
33218 arg1 = reinterpret_cast< wxEffects * >(argp1);
33219 {
33220 PyThreadState* __tstate = wxPyBeginAllowThreads();
33221 result = ((wxEffects const *)arg1)->GetDarkShadow();
33222 wxPyEndAllowThreads(__tstate);
33223 if (PyErr_Occurred()) SWIG_fail;
33224 }
33225 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33226 return resultobj;
33227fail:
33228 return NULL;
33229}
33230
33231
33232SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33233 PyObject *resultobj = 0;
33234 wxEffects *arg1 = (wxEffects *) 0 ;
33235 wxColour *arg2 = 0 ;
33236 void *argp1 = 0 ;
33237 int res1 = 0 ;
33238 wxColour temp2 ;
33239 PyObject * obj0 = 0 ;
33240 PyObject * obj1 = 0 ;
33241 char * kwnames[] = {
33242 (char *) "self",(char *) "c", NULL
33243 };
33244
33245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33247 if (!SWIG_IsOK(res1)) {
33248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33249 }
33250 arg1 = reinterpret_cast< wxEffects * >(argp1);
33251 {
33252 arg2 = &temp2;
33253 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33254 }
33255 {
33256 PyThreadState* __tstate = wxPyBeginAllowThreads();
33257 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33258 wxPyEndAllowThreads(__tstate);
33259 if (PyErr_Occurred()) SWIG_fail;
33260 }
33261 resultobj = SWIG_Py_Void();
33262 return resultobj;
33263fail:
33264 return NULL;
33265}
33266
33267
33268SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33269 PyObject *resultobj = 0;
33270 wxEffects *arg1 = (wxEffects *) 0 ;
33271 wxColour *arg2 = 0 ;
33272 void *argp1 = 0 ;
33273 int res1 = 0 ;
33274 wxColour temp2 ;
33275 PyObject * obj0 = 0 ;
33276 PyObject * obj1 = 0 ;
33277 char * kwnames[] = {
33278 (char *) "self",(char *) "c", NULL
33279 };
33280
33281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33283 if (!SWIG_IsOK(res1)) {
33284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33285 }
33286 arg1 = reinterpret_cast< wxEffects * >(argp1);
33287 {
33288 arg2 = &temp2;
33289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33290 }
33291 {
33292 PyThreadState* __tstate = wxPyBeginAllowThreads();
33293 (arg1)->SetLightShadow((wxColour const &)*arg2);
33294 wxPyEndAllowThreads(__tstate);
33295 if (PyErr_Occurred()) SWIG_fail;
33296 }
33297 resultobj = SWIG_Py_Void();
33298 return resultobj;
33299fail:
33300 return NULL;
33301}
33302
33303
33304SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33305 PyObject *resultobj = 0;
33306 wxEffects *arg1 = (wxEffects *) 0 ;
33307 wxColour *arg2 = 0 ;
33308 void *argp1 = 0 ;
33309 int res1 = 0 ;
33310 wxColour temp2 ;
33311 PyObject * obj0 = 0 ;
33312 PyObject * obj1 = 0 ;
33313 char * kwnames[] = {
33314 (char *) "self",(char *) "c", NULL
33315 };
33316
33317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33319 if (!SWIG_IsOK(res1)) {
33320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33321 }
33322 arg1 = reinterpret_cast< wxEffects * >(argp1);
33323 {
33324 arg2 = &temp2;
33325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33326 }
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 (arg1)->SetFaceColour((wxColour const &)*arg2);
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 resultobj = SWIG_Py_Void();
33334 return resultobj;
33335fail:
33336 return NULL;
33337}
33338
33339
33340SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33341 PyObject *resultobj = 0;
33342 wxEffects *arg1 = (wxEffects *) 0 ;
33343 wxColour *arg2 = 0 ;
33344 void *argp1 = 0 ;
33345 int res1 = 0 ;
33346 wxColour temp2 ;
33347 PyObject * obj0 = 0 ;
33348 PyObject * obj1 = 0 ;
33349 char * kwnames[] = {
33350 (char *) "self",(char *) "c", NULL
33351 };
33352
33353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33355 if (!SWIG_IsOK(res1)) {
33356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33357 }
33358 arg1 = reinterpret_cast< wxEffects * >(argp1);
33359 {
33360 arg2 = &temp2;
33361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33362 }
33363 {
33364 PyThreadState* __tstate = wxPyBeginAllowThreads();
33365 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33366 wxPyEndAllowThreads(__tstate);
33367 if (PyErr_Occurred()) SWIG_fail;
33368 }
33369 resultobj = SWIG_Py_Void();
33370 return resultobj;
33371fail:
33372 return NULL;
33373}
33374
33375
33376SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33377 PyObject *resultobj = 0;
33378 wxEffects *arg1 = (wxEffects *) 0 ;
33379 wxColour *arg2 = 0 ;
33380 void *argp1 = 0 ;
33381 int res1 = 0 ;
33382 wxColour temp2 ;
33383 PyObject * obj0 = 0 ;
33384 PyObject * obj1 = 0 ;
33385 char * kwnames[] = {
33386 (char *) "self",(char *) "c", NULL
33387 };
33388
33389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33391 if (!SWIG_IsOK(res1)) {
33392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33393 }
33394 arg1 = reinterpret_cast< wxEffects * >(argp1);
33395 {
33396 arg2 = &temp2;
33397 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33398 }
33399 {
33400 PyThreadState* __tstate = wxPyBeginAllowThreads();
33401 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33402 wxPyEndAllowThreads(__tstate);
33403 if (PyErr_Occurred()) SWIG_fail;
33404 }
33405 resultobj = SWIG_Py_Void();
33406 return resultobj;
33407fail:
33408 return NULL;
33409}
33410
33411
33412SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33413 PyObject *resultobj = 0;
33414 wxEffects *arg1 = (wxEffects *) 0 ;
33415 wxColour *arg2 = 0 ;
33416 wxColour *arg3 = 0 ;
33417 wxColour *arg4 = 0 ;
33418 wxColour *arg5 = 0 ;
33419 wxColour *arg6 = 0 ;
33420 void *argp1 = 0 ;
33421 int res1 = 0 ;
33422 wxColour temp2 ;
33423 wxColour temp3 ;
33424 wxColour temp4 ;
33425 wxColour temp5 ;
33426 wxColour temp6 ;
33427 PyObject * obj0 = 0 ;
33428 PyObject * obj1 = 0 ;
33429 PyObject * obj2 = 0 ;
33430 PyObject * obj3 = 0 ;
33431 PyObject * obj4 = 0 ;
33432 PyObject * obj5 = 0 ;
33433 char * kwnames[] = {
33434 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33435 };
33436
33437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33439 if (!SWIG_IsOK(res1)) {
33440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33441 }
33442 arg1 = reinterpret_cast< wxEffects * >(argp1);
33443 {
33444 arg2 = &temp2;
33445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33446 }
33447 {
33448 arg3 = &temp3;
33449 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33450 }
33451 {
33452 arg4 = &temp4;
33453 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33454 }
33455 {
33456 arg5 = &temp5;
33457 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33458 }
33459 {
33460 arg6 = &temp6;
33461 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33462 }
33463 {
33464 PyThreadState* __tstate = wxPyBeginAllowThreads();
33465 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33466 wxPyEndAllowThreads(__tstate);
33467 if (PyErr_Occurred()) SWIG_fail;
33468 }
33469 resultobj = SWIG_Py_Void();
33470 return resultobj;
33471fail:
33472 return NULL;
33473}
33474
33475
33476SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33477 PyObject *resultobj = 0;
33478 wxEffects *arg1 = (wxEffects *) 0 ;
33479 wxDC *arg2 = 0 ;
33480 wxRect *arg3 = 0 ;
33481 int arg4 = (int) 1 ;
33482 void *argp1 = 0 ;
33483 int res1 = 0 ;
33484 void *argp2 = 0 ;
33485 int res2 = 0 ;
33486 wxRect temp3 ;
33487 int val4 ;
33488 int ecode4 = 0 ;
33489 PyObject * obj0 = 0 ;
33490 PyObject * obj1 = 0 ;
33491 PyObject * obj2 = 0 ;
33492 PyObject * obj3 = 0 ;
33493 char * kwnames[] = {
33494 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33495 };
33496
33497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33499 if (!SWIG_IsOK(res1)) {
33500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33501 }
33502 arg1 = reinterpret_cast< wxEffects * >(argp1);
33503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33504 if (!SWIG_IsOK(res2)) {
33505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33506 }
33507 if (!argp2) {
33508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33509 }
33510 arg2 = reinterpret_cast< wxDC * >(argp2);
33511 {
33512 arg3 = &temp3;
33513 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33514 }
33515 if (obj3) {
33516 ecode4 = SWIG_AsVal_int(obj3, &val4);
33517 if (!SWIG_IsOK(ecode4)) {
33518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33519 }
33520 arg4 = static_cast< int >(val4);
33521 }
33522 {
33523 PyThreadState* __tstate = wxPyBeginAllowThreads();
33524 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33525 wxPyEndAllowThreads(__tstate);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 }
33528 resultobj = SWIG_Py_Void();
33529 return resultobj;
33530fail:
33531 return NULL;
33532}
33533
33534
33535SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33536 PyObject *resultobj = 0;
33537 wxEffects *arg1 = (wxEffects *) 0 ;
33538 wxRect *arg2 = 0 ;
33539 wxDC *arg3 = 0 ;
33540 wxBitmap *arg4 = 0 ;
33541 bool result;
33542 void *argp1 = 0 ;
33543 int res1 = 0 ;
33544 wxRect temp2 ;
33545 void *argp3 = 0 ;
33546 int res3 = 0 ;
33547 void *argp4 = 0 ;
33548 int res4 = 0 ;
33549 PyObject * obj0 = 0 ;
33550 PyObject * obj1 = 0 ;
33551 PyObject * obj2 = 0 ;
33552 PyObject * obj3 = 0 ;
33553 char * kwnames[] = {
33554 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33555 };
33556
33557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33559 if (!SWIG_IsOK(res1)) {
33560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33561 }
33562 arg1 = reinterpret_cast< wxEffects * >(argp1);
33563 {
33564 arg2 = &temp2;
33565 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33566 }
33567 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33568 if (!SWIG_IsOK(res3)) {
33569 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33570 }
33571 if (!argp3) {
33572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33573 }
33574 arg3 = reinterpret_cast< wxDC * >(argp3);
33575 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33576 if (!SWIG_IsOK(res4)) {
33577 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33578 }
33579 if (!argp4) {
33580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33581 }
33582 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33583 {
33584 PyThreadState* __tstate = wxPyBeginAllowThreads();
33585 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33586 wxPyEndAllowThreads(__tstate);
33587 if (PyErr_Occurred()) SWIG_fail;
33588 }
33589 {
33590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33591 }
33592 return resultobj;
33593fail:
33594 return NULL;
33595}
33596
33597
33598SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33599 PyObject *obj;
33600 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33601 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33602 return SWIG_Py_Void();
33603}
33604
33605SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33606 return SWIG_Python_InitShadowInstance(args);
33607}
33608
33609SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33610 PyObject *resultobj = 0;
33611 int arg1 ;
33612 int arg2 ;
33613 bool arg3 ;
33614 wxSplitterRenderParams *result = 0 ;
33615 int val1 ;
33616 int ecode1 = 0 ;
33617 int val2 ;
33618 int ecode2 = 0 ;
33619 bool val3 ;
33620 int ecode3 = 0 ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 PyObject * obj2 = 0 ;
33624 char * kwnames[] = {
33625 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33626 };
33627
33628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33629 ecode1 = SWIG_AsVal_int(obj0, &val1);
33630 if (!SWIG_IsOK(ecode1)) {
33631 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33632 }
33633 arg1 = static_cast< int >(val1);
33634 ecode2 = SWIG_AsVal_int(obj1, &val2);
33635 if (!SWIG_IsOK(ecode2)) {
33636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33637 }
33638 arg2 = static_cast< int >(val2);
33639 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33640 if (!SWIG_IsOK(ecode3)) {
33641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33642 }
33643 arg3 = static_cast< bool >(val3);
33644 {
33645 PyThreadState* __tstate = wxPyBeginAllowThreads();
33646 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33647 wxPyEndAllowThreads(__tstate);
33648 if (PyErr_Occurred()) SWIG_fail;
33649 }
33650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33651 return resultobj;
33652fail:
33653 return NULL;
33654}
33655
33656
33657SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33658 PyObject *resultobj = 0;
33659 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33660 void *argp1 = 0 ;
33661 int res1 = 0 ;
33662 PyObject *swig_obj[1] ;
33663
33664 if (!args) SWIG_fail;
33665 swig_obj[0] = args;
33666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33667 if (!SWIG_IsOK(res1)) {
33668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33669 }
33670 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33671 {
33672 PyThreadState* __tstate = wxPyBeginAllowThreads();
33673 delete arg1;
33674
33675 wxPyEndAllowThreads(__tstate);
33676 if (PyErr_Occurred()) SWIG_fail;
33677 }
33678 resultobj = SWIG_Py_Void();
33679 return resultobj;
33680fail:
33681 return NULL;
33682}
33683
33684
33685SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33686 PyObject *resultobj = 0;
33687 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33688 int result;
33689 void *argp1 = 0 ;
33690 int res1 = 0 ;
33691 PyObject *swig_obj[1] ;
33692
33693 if (!args) SWIG_fail;
33694 swig_obj[0] = args;
33695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33696 if (!SWIG_IsOK(res1)) {
33697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33698 }
33699 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33700 result = (int)(int) ((arg1)->widthSash);
33701 resultobj = SWIG_From_int(static_cast< int >(result));
33702 return resultobj;
33703fail:
33704 return NULL;
33705}
33706
33707
33708SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33709 PyObject *resultobj = 0;
33710 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33711 int result;
33712 void *argp1 = 0 ;
33713 int res1 = 0 ;
33714 PyObject *swig_obj[1] ;
33715
33716 if (!args) SWIG_fail;
33717 swig_obj[0] = args;
33718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33719 if (!SWIG_IsOK(res1)) {
33720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33721 }
33722 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33723 result = (int)(int) ((arg1)->border);
33724 resultobj = SWIG_From_int(static_cast< int >(result));
33725 return resultobj;
33726fail:
33727 return NULL;
33728}
33729
33730
33731SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 PyObject *resultobj = 0;
33733 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33734 bool result;
33735 void *argp1 = 0 ;
33736 int res1 = 0 ;
33737 PyObject *swig_obj[1] ;
33738
33739 if (!args) SWIG_fail;
33740 swig_obj[0] = args;
33741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33742 if (!SWIG_IsOK(res1)) {
33743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33744 }
33745 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33746 result = (bool)(bool) ((arg1)->isHotSensitive);
33747 resultobj = SWIG_From_bool(static_cast< bool >(result));
33748 return resultobj;
33749fail:
33750 return NULL;
33751}
33752
33753
33754SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33755 PyObject *obj;
33756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33757 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33758 return SWIG_Py_Void();
33759}
33760
33761SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33762 return SWIG_Python_InitShadowInstance(args);
33763}
33764
33d6fd3b
RD
33765SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33766 PyObject *resultobj = 0;
33767 wxHeaderButtonParams *result = 0 ;
33768
33769 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33770 {
33771 PyThreadState* __tstate = wxPyBeginAllowThreads();
33772 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33773 wxPyEndAllowThreads(__tstate);
33774 if (PyErr_Occurred()) SWIG_fail;
33775 }
33776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33777 return resultobj;
33778fail:
33779 return NULL;
33780}
33781
33782
33783SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33784 PyObject *resultobj = 0;
33785 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33786 void *argp1 = 0 ;
33787 int res1 = 0 ;
33788 PyObject *swig_obj[1] ;
33789
33790 if (!args) SWIG_fail;
33791 swig_obj[0] = args;
33792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33793 if (!SWIG_IsOK(res1)) {
33794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33795 }
33796 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33797 {
33798 PyThreadState* __tstate = wxPyBeginAllowThreads();
33799 delete arg1;
33800
33801 wxPyEndAllowThreads(__tstate);
33802 if (PyErr_Occurred()) SWIG_fail;
33803 }
33804 resultobj = SWIG_Py_Void();
33805 return resultobj;
33806fail:
33807 return NULL;
33808}
33809
33810
33811SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33812 PyObject *resultobj = 0;
33813 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33814 wxColour *arg2 = (wxColour *) 0 ;
33815 void *argp1 = 0 ;
33816 int res1 = 0 ;
33817 wxColour temp2 ;
33818 PyObject *swig_obj[2] ;
33819
33820 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_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_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33824 }
33825 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33826 {
33827 arg2 = &temp2;
33828 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33829 }
33830 if (arg1) (arg1)->m_arrowColour = *arg2;
33831
33832 resultobj = SWIG_Py_Void();
33833 return resultobj;
33834fail:
33835 return NULL;
33836}
33837
33838
33839SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33840 PyObject *resultobj = 0;
33841 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33842 wxColour *result = 0 ;
33843 void *argp1 = 0 ;
33844 int res1 = 0 ;
33845 PyObject *swig_obj[1] ;
33846
33847 if (!args) SWIG_fail;
33848 swig_obj[0] = args;
33849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33850 if (!SWIG_IsOK(res1)) {
33851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33852 }
33853 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33854 result = (wxColour *)& ((arg1)->m_arrowColour);
33855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33856 return resultobj;
33857fail:
33858 return NULL;
33859}
33860
33861
33862SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33863 PyObject *resultobj = 0;
33864 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33865 wxColour *arg2 = (wxColour *) 0 ;
33866 void *argp1 = 0 ;
33867 int res1 = 0 ;
33868 wxColour temp2 ;
33869 PyObject *swig_obj[2] ;
33870
33871 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33873 if (!SWIG_IsOK(res1)) {
33874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33875 }
33876 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33877 {
33878 arg2 = &temp2;
33879 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33880 }
33881 if (arg1) (arg1)->m_selectionColour = *arg2;
33882
33883 resultobj = SWIG_Py_Void();
33884 return resultobj;
33885fail:
33886 return NULL;
33887}
33888
33889
33890SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33891 PyObject *resultobj = 0;
33892 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33893 wxColour *result = 0 ;
33894 void *argp1 = 0 ;
33895 int res1 = 0 ;
33896 PyObject *swig_obj[1] ;
33897
33898 if (!args) SWIG_fail;
33899 swig_obj[0] = args;
33900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33901 if (!SWIG_IsOK(res1)) {
33902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33903 }
33904 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33905 result = (wxColour *)& ((arg1)->m_selectionColour);
33906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33907 return resultobj;
33908fail:
33909 return NULL;
33910}
33911
33912
33913SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33914 PyObject *resultobj = 0;
33915 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33916 wxString *arg2 = (wxString *) 0 ;
33917 void *argp1 = 0 ;
33918 int res1 = 0 ;
33919 bool temp2 = false ;
33920 PyObject *swig_obj[2] ;
33921
33922 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33926 }
33927 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33928 {
33929 arg2 = wxString_in_helper(swig_obj[1]);
33930 if (arg2 == NULL) SWIG_fail;
33931 temp2 = true;
33932 }
33933 if (arg1) (arg1)->m_labelText = *arg2;
33934
33935 resultobj = SWIG_Py_Void();
33936 {
33937 if (temp2)
33938 delete arg2;
33939 }
33940 return resultobj;
33941fail:
33942 {
33943 if (temp2)
33944 delete arg2;
33945 }
33946 return NULL;
33947}
33948
33949
33950SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33951 PyObject *resultobj = 0;
33952 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33953 wxString *result = 0 ;
33954 void *argp1 = 0 ;
33955 int res1 = 0 ;
33956 PyObject *swig_obj[1] ;
33957
33958 if (!args) SWIG_fail;
33959 swig_obj[0] = args;
33960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33961 if (!SWIG_IsOK(res1)) {
33962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33963 }
33964 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33965 result = (wxString *)& ((arg1)->m_labelText);
33966 {
33967#if wxUSE_UNICODE
33968 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33969#else
33970 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33971#endif
33972 }
33973 return resultobj;
33974fail:
33975 return NULL;
33976}
33977
33978
33979SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33980 PyObject *resultobj = 0;
33981 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33982 wxFont *arg2 = (wxFont *) 0 ;
33983 void *argp1 = 0 ;
33984 int res1 = 0 ;
33985 void *argp2 = 0 ;
33986 int res2 = 0 ;
33987 PyObject *swig_obj[2] ;
33988
33989 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33991 if (!SWIG_IsOK(res1)) {
33992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33993 }
33994 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33995 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33996 if (!SWIG_IsOK(res2)) {
33997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33998 }
33999 arg2 = reinterpret_cast< wxFont * >(argp2);
34000 if (arg1) (arg1)->m_labelFont = *arg2;
34001
34002 resultobj = SWIG_Py_Void();
34003 return resultobj;
34004fail:
34005 return NULL;
34006}
34007
34008
34009SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34010 PyObject *resultobj = 0;
34011 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34012 wxFont *result = 0 ;
34013 void *argp1 = 0 ;
34014 int res1 = 0 ;
34015 PyObject *swig_obj[1] ;
34016
34017 if (!args) SWIG_fail;
34018 swig_obj[0] = args;
34019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34020 if (!SWIG_IsOK(res1)) {
34021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34022 }
34023 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34024 result = (wxFont *)& ((arg1)->m_labelFont);
34025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34026 return resultobj;
34027fail:
34028 return NULL;
34029}
34030
34031
34032SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34033 PyObject *resultobj = 0;
34034 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34035 wxColour *arg2 = (wxColour *) 0 ;
34036 void *argp1 = 0 ;
34037 int res1 = 0 ;
34038 wxColour temp2 ;
34039 PyObject *swig_obj[2] ;
34040
34041 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34043 if (!SWIG_IsOK(res1)) {
34044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34045 }
34046 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34047 {
34048 arg2 = &temp2;
34049 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34050 }
34051 if (arg1) (arg1)->m_labelColour = *arg2;
34052
34053 resultobj = SWIG_Py_Void();
34054 return resultobj;
34055fail:
34056 return NULL;
34057}
34058
34059
34060SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34061 PyObject *resultobj = 0;
34062 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34063 wxColour *result = 0 ;
34064 void *argp1 = 0 ;
34065 int res1 = 0 ;
34066 PyObject *swig_obj[1] ;
34067
34068 if (!args) SWIG_fail;
34069 swig_obj[0] = args;
34070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34071 if (!SWIG_IsOK(res1)) {
34072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34073 }
34074 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34075 result = (wxColour *)& ((arg1)->m_labelColour);
34076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34077 return resultobj;
34078fail:
34079 return NULL;
34080}
34081
34082
34083SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34084 PyObject *resultobj = 0;
34085 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34086 wxBitmap *arg2 = (wxBitmap *) 0 ;
34087 void *argp1 = 0 ;
34088 int res1 = 0 ;
34089 void *argp2 = 0 ;
34090 int res2 = 0 ;
34091 PyObject *swig_obj[2] ;
34092
34093 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34095 if (!SWIG_IsOK(res1)) {
34096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34097 }
34098 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34099 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34100 if (!SWIG_IsOK(res2)) {
34101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34102 }
34103 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34104 if (arg1) (arg1)->m_labelBitmap = *arg2;
34105
34106 resultobj = SWIG_Py_Void();
34107 return resultobj;
34108fail:
34109 return NULL;
34110}
34111
34112
34113SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34114 PyObject *resultobj = 0;
34115 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34116 wxBitmap *result = 0 ;
34117 void *argp1 = 0 ;
34118 int res1 = 0 ;
34119 PyObject *swig_obj[1] ;
34120
34121 if (!args) SWIG_fail;
34122 swig_obj[0] = args;
34123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34124 if (!SWIG_IsOK(res1)) {
34125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34126 }
34127 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34128 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34130 return resultobj;
34131fail:
34132 return NULL;
34133}
34134
34135
34136SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34137 PyObject *resultobj = 0;
34138 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34139 int arg2 ;
34140 void *argp1 = 0 ;
34141 int res1 = 0 ;
34142 int val2 ;
34143 int ecode2 = 0 ;
34144 PyObject *swig_obj[2] ;
34145
34146 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34148 if (!SWIG_IsOK(res1)) {
34149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34150 }
34151 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34152 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34153 if (!SWIG_IsOK(ecode2)) {
34154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34155 }
34156 arg2 = static_cast< int >(val2);
34157 if (arg1) (arg1)->m_labelAlignment = arg2;
34158
34159 resultobj = SWIG_Py_Void();
34160 return resultobj;
34161fail:
34162 return NULL;
34163}
34164
34165
34166SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34167 PyObject *resultobj = 0;
34168 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34169 int result;
34170 void *argp1 = 0 ;
34171 int res1 = 0 ;
34172 PyObject *swig_obj[1] ;
34173
34174 if (!args) SWIG_fail;
34175 swig_obj[0] = args;
34176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34177 if (!SWIG_IsOK(res1)) {
34178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34179 }
34180 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34181 result = (int) ((arg1)->m_labelAlignment);
34182 resultobj = SWIG_From_int(static_cast< int >(result));
34183 return resultobj;
34184fail:
34185 return NULL;
34186}
34187
34188
34189SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34190 PyObject *obj;
34191 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34192 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34193 return SWIG_Py_Void();
34194}
34195
34196SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34197 return SWIG_Python_InitShadowInstance(args);
34198}
34199
1bd55598
RD
34200SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34201 PyObject *resultobj = 0;
34202 int arg1 ;
34203 int arg2 ;
34204 wxRendererVersion *result = 0 ;
34205 int val1 ;
34206 int ecode1 = 0 ;
34207 int val2 ;
34208 int ecode2 = 0 ;
34209 PyObject * obj0 = 0 ;
34210 PyObject * obj1 = 0 ;
34211 char * kwnames[] = {
34212 (char *) "version_",(char *) "age_", NULL
34213 };
34214
34215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34216 ecode1 = SWIG_AsVal_int(obj0, &val1);
34217 if (!SWIG_IsOK(ecode1)) {
34218 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34219 }
34220 arg1 = static_cast< int >(val1);
34221 ecode2 = SWIG_AsVal_int(obj1, &val2);
34222 if (!SWIG_IsOK(ecode2)) {
34223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34224 }
34225 arg2 = static_cast< int >(val2);
34226 {
34227 PyThreadState* __tstate = wxPyBeginAllowThreads();
34228 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34229 wxPyEndAllowThreads(__tstate);
34230 if (PyErr_Occurred()) SWIG_fail;
34231 }
34232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34233 return resultobj;
34234fail:
34235 return NULL;
34236}
34237
34238
34239SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34240 PyObject *resultobj = 0;
34241 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34242 void *argp1 = 0 ;
34243 int res1 = 0 ;
34244 PyObject *swig_obj[1] ;
34245
34246 if (!args) SWIG_fail;
34247 swig_obj[0] = args;
34248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34249 if (!SWIG_IsOK(res1)) {
34250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34251 }
34252 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34253 {
34254 PyThreadState* __tstate = wxPyBeginAllowThreads();
34255 delete arg1;
34256
34257 wxPyEndAllowThreads(__tstate);
34258 if (PyErr_Occurred()) SWIG_fail;
34259 }
34260 resultobj = SWIG_Py_Void();
34261 return resultobj;
34262fail:
34263 return NULL;
34264}
34265
34266
34267SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34268 PyObject *resultobj = 0;
34269 wxRendererVersion *arg1 = 0 ;
34270 bool result;
34271 void *argp1 = 0 ;
34272 int res1 = 0 ;
34273 PyObject * obj0 = 0 ;
34274 char * kwnames[] = {
34275 (char *) "ver", NULL
34276 };
34277
34278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34279 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34280 if (!SWIG_IsOK(res1)) {
34281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34282 }
34283 if (!argp1) {
34284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34285 }
34286 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34287 {
34288 PyThreadState* __tstate = wxPyBeginAllowThreads();
34289 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34290 wxPyEndAllowThreads(__tstate);
34291 if (PyErr_Occurred()) SWIG_fail;
34292 }
34293 {
34294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34295 }
34296 return resultobj;
34297fail:
34298 return NULL;
34299}
34300
34301
34302SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34303 PyObject *resultobj = 0;
34304 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34305 int result;
34306 void *argp1 = 0 ;
34307 int res1 = 0 ;
34308 PyObject *swig_obj[1] ;
34309
34310 if (!args) SWIG_fail;
34311 swig_obj[0] = args;
34312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34313 if (!SWIG_IsOK(res1)) {
34314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34315 }
34316 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34317 result = (int)(int) ((arg1)->version);
34318 resultobj = SWIG_From_int(static_cast< int >(result));
34319 return resultobj;
34320fail:
34321 return NULL;
34322}
34323
34324
34325SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34326 PyObject *resultobj = 0;
34327 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34328 int result;
34329 void *argp1 = 0 ;
34330 int res1 = 0 ;
34331 PyObject *swig_obj[1] ;
34332
34333 if (!args) SWIG_fail;
34334 swig_obj[0] = args;
34335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34336 if (!SWIG_IsOK(res1)) {
34337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34338 }
34339 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34340 result = (int)(int) ((arg1)->age);
34341 resultobj = SWIG_From_int(static_cast< int >(result));
34342 return resultobj;
34343fail:
34344 return NULL;
34345}
34346
34347
34348SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34349 PyObject *obj;
34350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34351 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34352 return SWIG_Py_Void();
34353}
34354
34355SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34356 return SWIG_Python_InitShadowInstance(args);
34357}
34358
34359SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34360 PyObject *resultobj = 0;
34361 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34362 wxWindow *arg2 = (wxWindow *) 0 ;
34363 wxDC *arg3 = 0 ;
34364 wxRect *arg4 = 0 ;
34365 int arg5 = (int) 0 ;
33d6fd3b
RD
34366 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34367 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34368 int result;
1bd55598
RD
34369 void *argp1 = 0 ;
34370 int res1 = 0 ;
34371 void *argp2 = 0 ;
34372 int res2 = 0 ;
34373 void *argp3 = 0 ;
34374 int res3 = 0 ;
34375 wxRect temp4 ;
34376 int val5 ;
34377 int ecode5 = 0 ;
33d6fd3b
RD
34378 int val6 ;
34379 int ecode6 = 0 ;
34380 void *argp7 = 0 ;
34381 int res7 = 0 ;
1bd55598
RD
34382 PyObject * obj0 = 0 ;
34383 PyObject * obj1 = 0 ;
34384 PyObject * obj2 = 0 ;
34385 PyObject * obj3 = 0 ;
34386 PyObject * obj4 = 0 ;
33d6fd3b
RD
34387 PyObject * obj5 = 0 ;
34388 PyObject * obj6 = 0 ;
1bd55598 34389 char * kwnames[] = {
33d6fd3b 34390 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34391 };
34392
33d6fd3b 34393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34395 if (!SWIG_IsOK(res1)) {
34396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34397 }
34398 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34399 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34400 if (!SWIG_IsOK(res2)) {
34401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34402 }
34403 arg2 = reinterpret_cast< wxWindow * >(argp2);
34404 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34405 if (!SWIG_IsOK(res3)) {
34406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34407 }
34408 if (!argp3) {
34409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34410 }
34411 arg3 = reinterpret_cast< wxDC * >(argp3);
34412 {
34413 arg4 = &temp4;
34414 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34415 }
34416 if (obj4) {
34417 ecode5 = SWIG_AsVal_int(obj4, &val5);
34418 if (!SWIG_IsOK(ecode5)) {
34419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34420 }
34421 arg5 = static_cast< int >(val5);
34422 }
33d6fd3b
RD
34423 if (obj5) {
34424 ecode6 = SWIG_AsVal_int(obj5, &val6);
34425 if (!SWIG_IsOK(ecode6)) {
34426 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34427 }
34428 arg6 = static_cast< wxHeaderSortIconType >(val6);
34429 }
34430 if (obj6) {
34431 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34432 if (!SWIG_IsOK(res7)) {
34433 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34434 }
34435 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34436 }
34437 {
34438 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34439 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
34440 wxPyEndAllowThreads(__tstate);
34441 if (PyErr_Occurred()) SWIG_fail;
34442 }
723282b6 34443 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
34444 return resultobj;
34445fail:
34446 return NULL;
34447}
34448
34449
34450SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34451 PyObject *resultobj = 0;
34452 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34453 wxWindow *arg2 = (wxWindow *) 0 ;
34454 wxDC *arg3 = 0 ;
34455 wxRect *arg4 = 0 ;
34456 int arg5 = (int) 0 ;
34457 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34458 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34459 int result;
33d6fd3b
RD
34460 void *argp1 = 0 ;
34461 int res1 = 0 ;
34462 void *argp2 = 0 ;
34463 int res2 = 0 ;
34464 void *argp3 = 0 ;
34465 int res3 = 0 ;
34466 wxRect temp4 ;
34467 int val5 ;
34468 int ecode5 = 0 ;
34469 int val6 ;
34470 int ecode6 = 0 ;
34471 void *argp7 = 0 ;
34472 int res7 = 0 ;
34473 PyObject * obj0 = 0 ;
34474 PyObject * obj1 = 0 ;
34475 PyObject * obj2 = 0 ;
34476 PyObject * obj3 = 0 ;
34477 PyObject * obj4 = 0 ;
34478 PyObject * obj5 = 0 ;
34479 PyObject * obj6 = 0 ;
34480 char * kwnames[] = {
34481 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34482 };
34483
34484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34486 if (!SWIG_IsOK(res1)) {
34487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34488 }
34489 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34490 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34491 if (!SWIG_IsOK(res2)) {
34492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34493 }
34494 arg2 = reinterpret_cast< wxWindow * >(argp2);
34495 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34496 if (!SWIG_IsOK(res3)) {
34497 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34498 }
34499 if (!argp3) {
34500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34501 }
34502 arg3 = reinterpret_cast< wxDC * >(argp3);
34503 {
34504 arg4 = &temp4;
34505 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34506 }
34507 if (obj4) {
34508 ecode5 = SWIG_AsVal_int(obj4, &val5);
34509 if (!SWIG_IsOK(ecode5)) {
34510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34511 }
34512 arg5 = static_cast< int >(val5);
34513 }
34514 if (obj5) {
34515 ecode6 = SWIG_AsVal_int(obj5, &val6);
34516 if (!SWIG_IsOK(ecode6)) {
34517 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34518 }
34519 arg6 = static_cast< wxHeaderSortIconType >(val6);
34520 }
34521 if (obj6) {
34522 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34523 if (!SWIG_IsOK(res7)) {
34524 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34525 }
34526 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34527 }
1bd55598
RD
34528 {
34529 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34530 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34531 wxPyEndAllowThreads(__tstate);
34532 if (PyErr_Occurred()) SWIG_fail;
34533 }
723282b6 34534 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
34535 return resultobj;
34536fail:
34537 return NULL;
34538}
34539
34540
33d6fd3b
RD
34541SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34542 PyObject *resultobj = 0;
34543 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34544 wxWindow *arg2 = (wxWindow *) 0 ;
34545 int result;
34546 void *argp1 = 0 ;
34547 int res1 = 0 ;
34548 void *argp2 = 0 ;
34549 int res2 = 0 ;
34550 PyObject * obj0 = 0 ;
34551 PyObject * obj1 = 0 ;
34552 char * kwnames[] = {
34553 (char *) "self",(char *) "win", NULL
34554 };
34555
34556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34558 if (!SWIG_IsOK(res1)) {
34559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34560 }
34561 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34563 if (!SWIG_IsOK(res2)) {
34564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34565 }
34566 arg2 = reinterpret_cast< wxWindow * >(argp2);
34567 {
34568 PyThreadState* __tstate = wxPyBeginAllowThreads();
34569 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34570 wxPyEndAllowThreads(__tstate);
34571 if (PyErr_Occurred()) SWIG_fail;
34572 }
34573 resultobj = SWIG_From_int(static_cast< int >(result));
34574 return resultobj;
34575fail:
34576 return NULL;
34577}
34578
34579
1bd55598
RD
34580SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34581 PyObject *resultobj = 0;
34582 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34583 wxWindow *arg2 = (wxWindow *) 0 ;
34584 wxDC *arg3 = 0 ;
34585 wxRect *arg4 = 0 ;
34586 int arg5 = (int) 0 ;
34587 void *argp1 = 0 ;
34588 int res1 = 0 ;
34589 void *argp2 = 0 ;
34590 int res2 = 0 ;
34591 void *argp3 = 0 ;
34592 int res3 = 0 ;
34593 wxRect temp4 ;
34594 int val5 ;
34595 int ecode5 = 0 ;
34596 PyObject * obj0 = 0 ;
34597 PyObject * obj1 = 0 ;
34598 PyObject * obj2 = 0 ;
34599 PyObject * obj3 = 0 ;
34600 PyObject * obj4 = 0 ;
34601 char * kwnames[] = {
34602 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34603 };
34604
34605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34607 if (!SWIG_IsOK(res1)) {
34608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34609 }
34610 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34612 if (!SWIG_IsOK(res2)) {
34613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34614 }
34615 arg2 = reinterpret_cast< wxWindow * >(argp2);
34616 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34617 if (!SWIG_IsOK(res3)) {
34618 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34619 }
34620 if (!argp3) {
34621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34622 }
34623 arg3 = reinterpret_cast< wxDC * >(argp3);
34624 {
34625 arg4 = &temp4;
34626 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34627 }
34628 if (obj4) {
34629 ecode5 = SWIG_AsVal_int(obj4, &val5);
34630 if (!SWIG_IsOK(ecode5)) {
34631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34632 }
34633 arg5 = static_cast< int >(val5);
34634 }
34635 {
34636 PyThreadState* __tstate = wxPyBeginAllowThreads();
34637 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34638 wxPyEndAllowThreads(__tstate);
34639 if (PyErr_Occurred()) SWIG_fail;
34640 }
34641 resultobj = SWIG_Py_Void();
34642 return resultobj;
34643fail:
34644 return NULL;
34645}
34646
34647
34648SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34649 PyObject *resultobj = 0;
34650 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34651 wxWindow *arg2 = (wxWindow *) 0 ;
34652 wxDC *arg3 = 0 ;
34653 wxRect *arg4 = 0 ;
34654 int arg5 = (int) 0 ;
34655 void *argp1 = 0 ;
34656 int res1 = 0 ;
34657 void *argp2 = 0 ;
34658 int res2 = 0 ;
34659 void *argp3 = 0 ;
34660 int res3 = 0 ;
34661 wxRect temp4 ;
34662 int val5 ;
34663 int ecode5 = 0 ;
34664 PyObject * obj0 = 0 ;
34665 PyObject * obj1 = 0 ;
34666 PyObject * obj2 = 0 ;
34667 PyObject * obj3 = 0 ;
34668 PyObject * obj4 = 0 ;
34669 char * kwnames[] = {
34670 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34671 };
34672
34673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34675 if (!SWIG_IsOK(res1)) {
34676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34677 }
34678 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34680 if (!SWIG_IsOK(res2)) {
34681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34682 }
34683 arg2 = reinterpret_cast< wxWindow * >(argp2);
34684 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34685 if (!SWIG_IsOK(res3)) {
34686 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34687 }
34688 if (!argp3) {
34689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34690 }
34691 arg3 = reinterpret_cast< wxDC * >(argp3);
34692 {
34693 arg4 = &temp4;
34694 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34695 }
34696 if (obj4) {
34697 ecode5 = SWIG_AsVal_int(obj4, &val5);
34698 if (!SWIG_IsOK(ecode5)) {
34699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34700 }
34701 arg5 = static_cast< int >(val5);
34702 }
34703 {
34704 PyThreadState* __tstate = wxPyBeginAllowThreads();
34705 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34706 wxPyEndAllowThreads(__tstate);
34707 if (PyErr_Occurred()) SWIG_fail;
34708 }
34709 resultobj = SWIG_Py_Void();
34710 return resultobj;
34711fail:
34712 return NULL;
34713}
34714
34715
34716SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34717 PyObject *resultobj = 0;
34718 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34719 wxWindow *arg2 = (wxWindow *) 0 ;
34720 wxDC *arg3 = 0 ;
34721 wxSize *arg4 = 0 ;
34722 int arg5 ;
34723 wxOrientation arg6 ;
34724 int arg7 = (int) 0 ;
34725 void *argp1 = 0 ;
34726 int res1 = 0 ;
34727 void *argp2 = 0 ;
34728 int res2 = 0 ;
34729 void *argp3 = 0 ;
34730 int res3 = 0 ;
34731 wxSize temp4 ;
34732 int val5 ;
34733 int ecode5 = 0 ;
34734 int val6 ;
34735 int ecode6 = 0 ;
34736 int val7 ;
34737 int ecode7 = 0 ;
34738 PyObject * obj0 = 0 ;
34739 PyObject * obj1 = 0 ;
34740 PyObject * obj2 = 0 ;
34741 PyObject * obj3 = 0 ;
34742 PyObject * obj4 = 0 ;
34743 PyObject * obj5 = 0 ;
34744 PyObject * obj6 = 0 ;
34745 char * kwnames[] = {
34746 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34747 };
34748
34749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34751 if (!SWIG_IsOK(res1)) {
34752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34753 }
34754 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34755 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34756 if (!SWIG_IsOK(res2)) {
34757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34758 }
34759 arg2 = reinterpret_cast< wxWindow * >(argp2);
34760 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34761 if (!SWIG_IsOK(res3)) {
34762 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34763 }
34764 if (!argp3) {
34765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34766 }
34767 arg3 = reinterpret_cast< wxDC * >(argp3);
34768 {
34769 arg4 = &temp4;
34770 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34771 }
34772 ecode5 = SWIG_AsVal_int(obj4, &val5);
34773 if (!SWIG_IsOK(ecode5)) {
34774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34775 }
34776 arg5 = static_cast< int >(val5);
34777 ecode6 = SWIG_AsVal_int(obj5, &val6);
34778 if (!SWIG_IsOK(ecode6)) {
34779 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34780 }
34781 arg6 = static_cast< wxOrientation >(val6);
34782 if (obj6) {
34783 ecode7 = SWIG_AsVal_int(obj6, &val7);
34784 if (!SWIG_IsOK(ecode7)) {
34785 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34786 }
34787 arg7 = static_cast< int >(val7);
34788 }
34789 {
34790 PyThreadState* __tstate = wxPyBeginAllowThreads();
34791 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34792 wxPyEndAllowThreads(__tstate);
34793 if (PyErr_Occurred()) SWIG_fail;
34794 }
34795 resultobj = SWIG_Py_Void();
34796 return resultobj;
34797fail:
34798 return NULL;
34799}
34800
34801
34802SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34803 PyObject *resultobj = 0;
34804 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34805 wxWindow *arg2 = (wxWindow *) 0 ;
34806 wxDC *arg3 = 0 ;
34807 wxRect *arg4 = 0 ;
34808 int arg5 = (int) 0 ;
34809 void *argp1 = 0 ;
34810 int res1 = 0 ;
34811 void *argp2 = 0 ;
34812 int res2 = 0 ;
34813 void *argp3 = 0 ;
34814 int res3 = 0 ;
34815 wxRect temp4 ;
34816 int val5 ;
34817 int ecode5 = 0 ;
34818 PyObject * obj0 = 0 ;
34819 PyObject * obj1 = 0 ;
34820 PyObject * obj2 = 0 ;
34821 PyObject * obj3 = 0 ;
34822 PyObject * obj4 = 0 ;
34823 char * kwnames[] = {
34824 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34825 };
34826
34827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34829 if (!SWIG_IsOK(res1)) {
34830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34831 }
34832 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34834 if (!SWIG_IsOK(res2)) {
34835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34836 }
34837 arg2 = reinterpret_cast< wxWindow * >(argp2);
34838 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34839 if (!SWIG_IsOK(res3)) {
34840 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34841 }
34842 if (!argp3) {
34843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34844 }
34845 arg3 = reinterpret_cast< wxDC * >(argp3);
34846 {
34847 arg4 = &temp4;
34848 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34849 }
34850 if (obj4) {
34851 ecode5 = SWIG_AsVal_int(obj4, &val5);
34852 if (!SWIG_IsOK(ecode5)) {
34853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34854 }
34855 arg5 = static_cast< int >(val5);
34856 }
34857 {
34858 PyThreadState* __tstate = wxPyBeginAllowThreads();
34859 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34860 wxPyEndAllowThreads(__tstate);
34861 if (PyErr_Occurred()) SWIG_fail;
34862 }
34863 resultobj = SWIG_Py_Void();
34864 return resultobj;
34865fail:
34866 return NULL;
34867}
34868
34869
34870SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34871 PyObject *resultobj = 0;
34872 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34873 wxWindow *arg2 = (wxWindow *) 0 ;
34874 wxDC *arg3 = 0 ;
34875 wxRect *arg4 = 0 ;
34876 int arg5 = (int) 0 ;
34877 void *argp1 = 0 ;
34878 int res1 = 0 ;
34879 void *argp2 = 0 ;
34880 int res2 = 0 ;
34881 void *argp3 = 0 ;
34882 int res3 = 0 ;
34883 wxRect temp4 ;
34884 int val5 ;
34885 int ecode5 = 0 ;
34886 PyObject * obj0 = 0 ;
34887 PyObject * obj1 = 0 ;
34888 PyObject * obj2 = 0 ;
34889 PyObject * obj3 = 0 ;
34890 PyObject * obj4 = 0 ;
34891 char * kwnames[] = {
34892 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34893 };
34894
34895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34897 if (!SWIG_IsOK(res1)) {
34898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34899 }
34900 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34901 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34902 if (!SWIG_IsOK(res2)) {
34903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34904 }
34905 arg2 = reinterpret_cast< wxWindow * >(argp2);
34906 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34907 if (!SWIG_IsOK(res3)) {
34908 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34909 }
34910 if (!argp3) {
34911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34912 }
34913 arg3 = reinterpret_cast< wxDC * >(argp3);
34914 {
34915 arg4 = &temp4;
34916 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34917 }
34918 if (obj4) {
34919 ecode5 = SWIG_AsVal_int(obj4, &val5);
34920 if (!SWIG_IsOK(ecode5)) {
34921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34922 }
34923 arg5 = static_cast< int >(val5);
34924 }
34925 {
34926 PyThreadState* __tstate = wxPyBeginAllowThreads();
34927 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34928 wxPyEndAllowThreads(__tstate);
34929 if (PyErr_Occurred()) SWIG_fail;
34930 }
34931 resultobj = SWIG_Py_Void();
34932 return resultobj;
34933fail:
34934 return NULL;
34935}
34936
34937
2131d850 34938SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34939 PyObject *resultobj = 0;
34940 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34941 wxWindow *arg2 = (wxWindow *) 0 ;
34942 wxDC *arg3 = 0 ;
34943 wxRect *arg4 = 0 ;
34944 int arg5 = (int) 0 ;
34945 void *argp1 = 0 ;
34946 int res1 = 0 ;
34947 void *argp2 = 0 ;
34948 int res2 = 0 ;
34949 void *argp3 = 0 ;
34950 int res3 = 0 ;
34951 wxRect temp4 ;
34952 int val5 ;
34953 int ecode5 = 0 ;
34954 PyObject * obj0 = 0 ;
34955 PyObject * obj1 = 0 ;
34956 PyObject * obj2 = 0 ;
34957 PyObject * obj3 = 0 ;
34958 PyObject * obj4 = 0 ;
34959 char * kwnames[] = {
34960 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34961 };
34962
2131d850 34963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34965 if (!SWIG_IsOK(res1)) {
2131d850 34966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34967 }
34968 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34970 if (!SWIG_IsOK(res2)) {
2131d850 34971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34972 }
34973 arg2 = reinterpret_cast< wxWindow * >(argp2);
34974 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34975 if (!SWIG_IsOK(res3)) {
2131d850 34976 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34977 }
34978 if (!argp3) {
2131d850 34979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34980 }
34981 arg3 = reinterpret_cast< wxDC * >(argp3);
34982 {
34983 arg4 = &temp4;
34984 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34985 }
34986 if (obj4) {
34987 ecode5 = SWIG_AsVal_int(obj4, &val5);
34988 if (!SWIG_IsOK(ecode5)) {
2131d850 34989 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34990 }
34991 arg5 = static_cast< int >(val5);
34992 }
34993 {
34994 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34995 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34996 wxPyEndAllowThreads(__tstate);
34997 if (PyErr_Occurred()) SWIG_fail;
34998 }
34999 resultobj = SWIG_Py_Void();
35000 return resultobj;
35001fail:
35002 return NULL;
35003}
35004
35005
35006SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35007 PyObject *resultobj = 0;
35008 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35009 wxWindow *arg2 = (wxWindow *) 0 ;
35010 wxDC *arg3 = 0 ;
35011 wxRect *arg4 = 0 ;
35012 int arg5 = (int) 0 ;
35013 void *argp1 = 0 ;
35014 int res1 = 0 ;
35015 void *argp2 = 0 ;
35016 int res2 = 0 ;
35017 void *argp3 = 0 ;
35018 int res3 = 0 ;
35019 wxRect temp4 ;
35020 int val5 ;
35021 int ecode5 = 0 ;
35022 PyObject * obj0 = 0 ;
35023 PyObject * obj1 = 0 ;
35024 PyObject * obj2 = 0 ;
35025 PyObject * obj3 = 0 ;
35026 PyObject * obj4 = 0 ;
35027 char * kwnames[] = {
35028 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35029 };
35030
35031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35033 if (!SWIG_IsOK(res1)) {
35034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35035 }
35036 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35038 if (!SWIG_IsOK(res2)) {
35039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35040 }
35041 arg2 = reinterpret_cast< wxWindow * >(argp2);
35042 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35043 if (!SWIG_IsOK(res3)) {
35044 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35045 }
35046 if (!argp3) {
35047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35048 }
35049 arg3 = reinterpret_cast< wxDC * >(argp3);
35050 {
35051 arg4 = &temp4;
35052 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35053 }
35054 if (obj4) {
35055 ecode5 = SWIG_AsVal_int(obj4, &val5);
35056 if (!SWIG_IsOK(ecode5)) {
35057 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35058 }
35059 arg5 = static_cast< int >(val5);
35060 }
35061 {
35062 PyThreadState* __tstate = wxPyBeginAllowThreads();
35063 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35064 wxPyEndAllowThreads(__tstate);
35065 if (PyErr_Occurred()) SWIG_fail;
35066 }
35067 resultobj = SWIG_Py_Void();
35068 return resultobj;
35069fail:
35070 return NULL;
35071}
35072
35073
35074SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35075 PyObject *resultobj = 0;
35076 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35077 wxWindow *arg2 = (wxWindow *) 0 ;
35078 wxDC *arg3 = 0 ;
35079 wxRect *arg4 = 0 ;
35080 int arg5 = (int) 0 ;
35081 void *argp1 = 0 ;
35082 int res1 = 0 ;
35083 void *argp2 = 0 ;
35084 int res2 = 0 ;
35085 void *argp3 = 0 ;
35086 int res3 = 0 ;
35087 wxRect temp4 ;
35088 int val5 ;
35089 int ecode5 = 0 ;
35090 PyObject * obj0 = 0 ;
35091 PyObject * obj1 = 0 ;
35092 PyObject * obj2 = 0 ;
35093 PyObject * obj3 = 0 ;
35094 PyObject * obj4 = 0 ;
35095 char * kwnames[] = {
35096 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35097 };
35098
35099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35101 if (!SWIG_IsOK(res1)) {
35102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35103 }
35104 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35106 if (!SWIG_IsOK(res2)) {
35107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35108 }
35109 arg2 = reinterpret_cast< wxWindow * >(argp2);
35110 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35111 if (!SWIG_IsOK(res3)) {
35112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35113 }
35114 if (!argp3) {
35115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35116 }
35117 arg3 = reinterpret_cast< wxDC * >(argp3);
35118 {
35119 arg4 = &temp4;
35120 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35121 }
35122 if (obj4) {
35123 ecode5 = SWIG_AsVal_int(obj4, &val5);
35124 if (!SWIG_IsOK(ecode5)) {
35125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35126 }
35127 arg5 = static_cast< int >(val5);
35128 }
35129 {
35130 PyThreadState* __tstate = wxPyBeginAllowThreads();
35131 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
35132 wxPyEndAllowThreads(__tstate);
35133 if (PyErr_Occurred()) SWIG_fail;
35134 }
35135 resultobj = SWIG_Py_Void();
35136 return resultobj;
35137fail:
35138 return NULL;
35139}
35140
35141
1bd55598
RD
35142SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35143 PyObject *resultobj = 0;
35144 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35145 wxWindow *arg2 = (wxWindow *) 0 ;
35146 SwigValueWrapper<wxSplitterRenderParams > result;
35147 void *argp1 = 0 ;
35148 int res1 = 0 ;
35149 void *argp2 = 0 ;
35150 int res2 = 0 ;
35151 PyObject * obj0 = 0 ;
35152 PyObject * obj1 = 0 ;
35153 char * kwnames[] = {
35154 (char *) "self",(char *) "win", NULL
35155 };
35156
35157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35159 if (!SWIG_IsOK(res1)) {
35160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35161 }
35162 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35164 if (!SWIG_IsOK(res2)) {
35165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35166 }
35167 arg2 = reinterpret_cast< wxWindow * >(argp2);
35168 {
35169 PyThreadState* __tstate = wxPyBeginAllowThreads();
35170 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35171 wxPyEndAllowThreads(__tstate);
35172 if (PyErr_Occurred()) SWIG_fail;
35173 }
35174 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35175 return resultobj;
35176fail:
35177 return NULL;
35178}
35179
35180
35181SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35182 PyObject *resultobj = 0;
35183 wxRendererNative *result = 0 ;
35184
35185 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35186 {
704eda0c 35187 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35188 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35189 {
1bd55598
RD
35190 wxRendererNative &_result_ref = wxRendererNative::Get();
35191 result = (wxRendererNative *) &_result_ref;
36ed4f51 35192 }
1bd55598
RD
35193 wxPyEndAllowThreads(__tstate);
35194 if (PyErr_Occurred()) SWIG_fail;
35195 }
35196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35197 return resultobj;
35198fail:
35199 return NULL;
35200}
35201
35202
35203SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35204 PyObject *resultobj = 0;
35205 wxRendererNative *result = 0 ;
35206
35207 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35208 {
704eda0c 35209 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35210 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35211 {
1bd55598
RD
35212 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35213 result = (wxRendererNative *) &_result_ref;
be9b1dca 35214 }
1bd55598
RD
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35219 return resultobj;
35220fail:
35221 return NULL;
35222}
35223
35224
35225SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35226 PyObject *resultobj = 0;
35227 wxRendererNative *result = 0 ;
35228
35229 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35230 {
704eda0c 35231 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35232 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35233 {
1bd55598
RD
35234 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35235 result = (wxRendererNative *) &_result_ref;
be9b1dca 35236 }
1bd55598
RD
35237 wxPyEndAllowThreads(__tstate);
35238 if (PyErr_Occurred()) SWIG_fail;
35239 }
35240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35241 return resultobj;
35242fail:
35243 return NULL;
35244}
35245
35246
35247SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35248 PyObject *resultobj = 0;
35249 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35250 wxRendererNative *result = 0 ;
35251 void *argp1 = 0 ;
35252 int res1 = 0 ;
35253 PyObject * obj0 = 0 ;
35254 char * kwnames[] = {
35255 (char *) "renderer", NULL
35256 };
35257
35258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35260 if (!SWIG_IsOK(res1)) {
35261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35262 }
35263 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35264 {
704eda0c 35265 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35266 PyThreadState* __tstate = wxPyBeginAllowThreads();
35267 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35268 wxPyEndAllowThreads(__tstate);
35269 if (PyErr_Occurred()) SWIG_fail;
35270 }
35271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35272 return resultobj;
35273fail:
35274 return NULL;
35275}
35276
35277
35278SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35279 PyObject *resultobj = 0;
35280 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35281 SwigValueWrapper<wxRendererVersion > result;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 PyObject *swig_obj[1] ;
35285
35286 if (!args) SWIG_fail;
35287 swig_obj[0] = args;
35288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35289 if (!SWIG_IsOK(res1)) {
35290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35291 }
35292 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35293 {
35294 PyThreadState* __tstate = wxPyBeginAllowThreads();
35295 result = ((wxRendererNative const *)arg1)->GetVersion();
35296 wxPyEndAllowThreads(__tstate);
35297 if (PyErr_Occurred()) SWIG_fail;
35298 }
35299 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35300 return resultobj;
35301fail:
35302 return NULL;
35303}
35304
35305
35306SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35307 PyObject *obj;
35308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35309 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35310 return SWIG_Py_Void();
35311}
35312
27e45892
RD
35313SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35314 PyObject *resultobj = 0;
35315 wxPseudoDC *result = 0 ;
35316
35317 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 result = (wxPseudoDC *)new wxPseudoDC();
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35325 return resultobj;
35326fail:
35327 return NULL;
35328}
35329
35330
35331SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35332 PyObject *resultobj = 0;
35333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35334 void *argp1 = 0 ;
35335 int res1 = 0 ;
35336 PyObject *swig_obj[1] ;
35337
35338 if (!args) SWIG_fail;
35339 swig_obj[0] = args;
35340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35341 if (!SWIG_IsOK(res1)) {
35342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35343 }
35344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35345 {
35346 PyThreadState* __tstate = wxPyBeginAllowThreads();
35347 (arg1)->BeginDrawing();
35348 wxPyEndAllowThreads(__tstate);
35349 if (PyErr_Occurred()) SWIG_fail;
35350 }
35351 resultobj = SWIG_Py_Void();
35352 return resultobj;
35353fail:
35354 return NULL;
35355}
35356
35357
35358SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35359 PyObject *resultobj = 0;
35360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35361 void *argp1 = 0 ;
35362 int res1 = 0 ;
35363 PyObject *swig_obj[1] ;
35364
35365 if (!args) SWIG_fail;
35366 swig_obj[0] = args;
35367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35368 if (!SWIG_IsOK(res1)) {
35369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35370 }
35371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35372 {
35373 PyThreadState* __tstate = wxPyBeginAllowThreads();
35374 (arg1)->EndDrawing();
35375 wxPyEndAllowThreads(__tstate);
35376 if (PyErr_Occurred()) SWIG_fail;
35377 }
35378 resultobj = SWIG_Py_Void();
35379 return resultobj;
35380fail:
35381 return NULL;
35382}
35383
35384
35385SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35386 PyObject *resultobj = 0;
35387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35388 void *argp1 = 0 ;
35389 int res1 = 0 ;
35390 PyObject *swig_obj[1] ;
35391
35392 if (!args) SWIG_fail;
35393 swig_obj[0] = args;
35394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35395 if (!SWIG_IsOK(res1)) {
35396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35397 }
35398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35399 {
35400 PyThreadState* __tstate = wxPyBeginAllowThreads();
35401 delete arg1;
35402
35403 wxPyEndAllowThreads(__tstate);
35404 if (PyErr_Occurred()) SWIG_fail;
35405 }
35406 resultobj = SWIG_Py_Void();
35407 return resultobj;
35408fail:
35409 return NULL;
35410}
35411
35412
35413SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35414 PyObject *resultobj = 0;
35415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35416 void *argp1 = 0 ;
35417 int res1 = 0 ;
35418 PyObject *swig_obj[1] ;
35419
35420 if (!args) SWIG_fail;
35421 swig_obj[0] = args;
35422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35423 if (!SWIG_IsOK(res1)) {
35424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35425 }
35426 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35427 {
35428 PyThreadState* __tstate = wxPyBeginAllowThreads();
35429 (arg1)->RemoveAll();
35430 wxPyEndAllowThreads(__tstate);
35431 if (PyErr_Occurred()) SWIG_fail;
35432 }
35433 resultobj = SWIG_Py_Void();
35434 return resultobj;
35435fail:
35436 return NULL;
35437}
35438
35439
35440SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35441 PyObject *resultobj = 0;
35442 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35443 int result;
35444 void *argp1 = 0 ;
35445 int res1 = 0 ;
35446 PyObject *swig_obj[1] ;
35447
35448 if (!args) SWIG_fail;
35449 swig_obj[0] = args;
35450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35451 if (!SWIG_IsOK(res1)) {
35452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35453 }
35454 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35455 {
35456 PyThreadState* __tstate = wxPyBeginAllowThreads();
35457 result = (int)(arg1)->GetLen();
35458 wxPyEndAllowThreads(__tstate);
35459 if (PyErr_Occurred()) SWIG_fail;
35460 }
35461 resultobj = SWIG_From_int(static_cast< int >(result));
35462 return resultobj;
35463fail:
35464 return NULL;
35465}
35466
35467
35468SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35469 PyObject *resultobj = 0;
35470 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35471 int arg2 ;
35472 void *argp1 = 0 ;
35473 int res1 = 0 ;
35474 int val2 ;
35475 int ecode2 = 0 ;
35476 PyObject * obj0 = 0 ;
35477 PyObject * obj1 = 0 ;
35478 char * kwnames[] = {
35479 (char *) "self",(char *) "id", NULL
35480 };
35481
35482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35484 if (!SWIG_IsOK(res1)) {
35485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35486 }
35487 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35488 ecode2 = SWIG_AsVal_int(obj1, &val2);
35489 if (!SWIG_IsOK(ecode2)) {
35490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35491 }
35492 arg2 = static_cast< int >(val2);
35493 {
35494 PyThreadState* __tstate = wxPyBeginAllowThreads();
35495 (arg1)->SetId(arg2);
35496 wxPyEndAllowThreads(__tstate);
35497 if (PyErr_Occurred()) SWIG_fail;
35498 }
35499 resultobj = SWIG_Py_Void();
35500 return resultobj;
35501fail:
35502 return NULL;
35503}
35504
35505
35506SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35507 PyObject *resultobj = 0;
35508 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35509 int arg2 ;
35510 void *argp1 = 0 ;
35511 int res1 = 0 ;
35512 int val2 ;
35513 int ecode2 = 0 ;
35514 PyObject * obj0 = 0 ;
35515 PyObject * obj1 = 0 ;
35516 char * kwnames[] = {
35517 (char *) "self",(char *) "id", NULL
35518 };
35519
35520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35522 if (!SWIG_IsOK(res1)) {
35523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35524 }
35525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35526 ecode2 = SWIG_AsVal_int(obj1, &val2);
35527 if (!SWIG_IsOK(ecode2)) {
35528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35529 }
35530 arg2 = static_cast< int >(val2);
35531 {
35532 PyThreadState* __tstate = wxPyBeginAllowThreads();
35533 (arg1)->ClearId(arg2);
35534 wxPyEndAllowThreads(__tstate);
35535 if (PyErr_Occurred()) SWIG_fail;
35536 }
35537 resultobj = SWIG_Py_Void();
35538 return resultobj;
35539fail:
35540 return NULL;
35541}
35542
35543
35544SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35545 PyObject *resultobj = 0;
35546 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35547 int arg2 ;
35548 void *argp1 = 0 ;
35549 int res1 = 0 ;
35550 int val2 ;
35551 int ecode2 = 0 ;
35552 PyObject * obj0 = 0 ;
35553 PyObject * obj1 = 0 ;
35554 char * kwnames[] = {
35555 (char *) "self",(char *) "id", NULL
35556 };
35557
35558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35560 if (!SWIG_IsOK(res1)) {
35561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35562 }
35563 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35564 ecode2 = SWIG_AsVal_int(obj1, &val2);
35565 if (!SWIG_IsOK(ecode2)) {
35566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35567 }
35568 arg2 = static_cast< int >(val2);
35569 {
35570 PyThreadState* __tstate = wxPyBeginAllowThreads();
35571 (arg1)->RemoveId(arg2);
35572 wxPyEndAllowThreads(__tstate);
35573 if (PyErr_Occurred()) SWIG_fail;
35574 }
35575 resultobj = SWIG_Py_Void();
35576 return resultobj;
35577fail:
35578 return NULL;
35579}
35580
35581
35582SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35583 PyObject *resultobj = 0;
35584 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35585 int arg2 ;
35586 int arg3 ;
35587 int arg4 ;
35588 void *argp1 = 0 ;
35589 int res1 = 0 ;
35590 int val2 ;
35591 int ecode2 = 0 ;
35592 int val3 ;
35593 int ecode3 = 0 ;
35594 int val4 ;
35595 int ecode4 = 0 ;
35596 PyObject * obj0 = 0 ;
35597 PyObject * obj1 = 0 ;
35598 PyObject * obj2 = 0 ;
35599 PyObject * obj3 = 0 ;
35600 char * kwnames[] = {
35601 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35602 };
35603
35604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35606 if (!SWIG_IsOK(res1)) {
35607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35608 }
35609 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35610 ecode2 = SWIG_AsVal_int(obj1, &val2);
35611 if (!SWIG_IsOK(ecode2)) {
35612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35613 }
35614 arg2 = static_cast< int >(val2);
35615 ecode3 = SWIG_AsVal_int(obj2, &val3);
35616 if (!SWIG_IsOK(ecode3)) {
35617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35618 }
35619 arg3 = static_cast< int >(val3);
35620 ecode4 = SWIG_AsVal_int(obj3, &val4);
35621 if (!SWIG_IsOK(ecode4)) {
35622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35623 }
35624 arg4 = static_cast< int >(val4);
35625 {
35626 PyThreadState* __tstate = wxPyBeginAllowThreads();
35627 (arg1)->TranslateId(arg2,arg3,arg4);
35628 wxPyEndAllowThreads(__tstate);
35629 if (PyErr_Occurred()) SWIG_fail;
35630 }
35631 resultobj = SWIG_Py_Void();
35632 return resultobj;
35633fail:
35634 return NULL;
35635}
35636
35637
72ef6efb
RD
35638SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35639 PyObject *resultobj = 0;
35640 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35641 int arg2 ;
35642 bool arg3 = (bool) true ;
35643 void *argp1 = 0 ;
35644 int res1 = 0 ;
35645 int val2 ;
35646 int ecode2 = 0 ;
35647 bool val3 ;
35648 int ecode3 = 0 ;
35649 PyObject * obj0 = 0 ;
35650 PyObject * obj1 = 0 ;
35651 PyObject * obj2 = 0 ;
35652 char * kwnames[] = {
35653 (char *) "self",(char *) "id",(char *) "greyout", NULL
35654 };
35655
35656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35658 if (!SWIG_IsOK(res1)) {
35659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35660 }
35661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35662 ecode2 = SWIG_AsVal_int(obj1, &val2);
35663 if (!SWIG_IsOK(ecode2)) {
35664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35665 }
35666 arg2 = static_cast< int >(val2);
35667 if (obj2) {
35668 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35669 if (!SWIG_IsOK(ecode3)) {
35670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35671 }
35672 arg3 = static_cast< bool >(val3);
35673 }
35674 {
35675 PyThreadState* __tstate = wxPyBeginAllowThreads();
35676 (arg1)->SetIdGreyedOut(arg2,arg3);
35677 wxPyEndAllowThreads(__tstate);
35678 if (PyErr_Occurred()) SWIG_fail;
35679 }
35680 resultobj = SWIG_Py_Void();
35681 return resultobj;
35682fail:
35683 return NULL;
35684}
35685
35686
35687SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35688 PyObject *resultobj = 0;
35689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35690 int arg2 ;
35691 bool result;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 int val2 ;
35695 int ecode2 = 0 ;
35696 PyObject * obj0 = 0 ;
35697 PyObject * obj1 = 0 ;
35698 char * kwnames[] = {
35699 (char *) "self",(char *) "id", NULL
35700 };
35701
35702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35704 if (!SWIG_IsOK(res1)) {
35705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35706 }
35707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35708 ecode2 = SWIG_AsVal_int(obj1, &val2);
35709 if (!SWIG_IsOK(ecode2)) {
35710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35711 }
35712 arg2 = static_cast< int >(val2);
35713 {
35714 PyThreadState* __tstate = wxPyBeginAllowThreads();
35715 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35716 wxPyEndAllowThreads(__tstate);
35717 if (PyErr_Occurred()) SWIG_fail;
35718 }
35719 {
35720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35721 }
35722 return resultobj;
35723fail:
35724 return NULL;
35725}
35726
35727
35728SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35729 PyObject *resultobj = 0;
35730 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35731 int arg2 ;
35732 int arg3 ;
35733 int arg4 = (int) 1 ;
59ccbf7f
RD
35734 wxColour const &arg5_defvalue = *wxWHITE ;
35735 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
72ef6efb
RD
35736 PyObject *result = 0 ;
35737 void *argp1 = 0 ;
35738 int res1 = 0 ;
35739 int val2 ;
35740 int ecode2 = 0 ;
35741 int val3 ;
35742 int ecode3 = 0 ;
35743 int val4 ;
35744 int ecode4 = 0 ;
59ccbf7f 35745 wxColour temp5 ;
72ef6efb
RD
35746 PyObject * obj0 = 0 ;
35747 PyObject * obj1 = 0 ;
35748 PyObject * obj2 = 0 ;
35749 PyObject * obj3 = 0 ;
35750 PyObject * obj4 = 0 ;
35751 char * kwnames[] = {
35752 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35753 };
35754
35755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35757 if (!SWIG_IsOK(res1)) {
35758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35759 }
35760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35761 ecode2 = SWIG_AsVal_int(obj1, &val2);
35762 if (!SWIG_IsOK(ecode2)) {
35763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35764 }
35765 arg2 = static_cast< int >(val2);
35766 ecode3 = SWIG_AsVal_int(obj2, &val3);
35767 if (!SWIG_IsOK(ecode3)) {
35768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35769 }
35770 arg3 = static_cast< int >(val3);
35771 if (obj3) {
35772 ecode4 = SWIG_AsVal_int(obj3, &val4);
35773 if (!SWIG_IsOK(ecode4)) {
35774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35775 }
35776 arg4 = static_cast< int >(val4);
35777 }
35778 if (obj4) {
59ccbf7f
RD
35779 {
35780 arg5 = &temp5;
35781 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
72ef6efb 35782 }
72ef6efb
RD
35783 }
35784 {
59ccbf7f 35785 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
72ef6efb
RD
35786 if (PyErr_Occurred()) SWIG_fail;
35787 }
35788 resultobj = result;
35789 return resultobj;
35790fail:
35791 return NULL;
35792}
35793
35794
35795SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35796 PyObject *resultobj = 0;
35797 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35798 int arg2 ;
35799 int arg3 ;
35800 PyObject *result = 0 ;
35801 void *argp1 = 0 ;
35802 int res1 = 0 ;
35803 int val2 ;
35804 int ecode2 = 0 ;
35805 int val3 ;
35806 int ecode3 = 0 ;
35807 PyObject * obj0 = 0 ;
35808 PyObject * obj1 = 0 ;
35809 PyObject * obj2 = 0 ;
35810 char * kwnames[] = {
35811 (char *) "self",(char *) "x",(char *) "y", NULL
35812 };
35813
35814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35816 if (!SWIG_IsOK(res1)) {
35817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35818 }
35819 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35820 ecode2 = SWIG_AsVal_int(obj1, &val2);
35821 if (!SWIG_IsOK(ecode2)) {
35822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35823 }
35824 arg2 = static_cast< int >(val2);
35825 ecode3 = SWIG_AsVal_int(obj2, &val3);
35826 if (!SWIG_IsOK(ecode3)) {
35827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35828 }
35829 arg3 = static_cast< int >(val3);
35830 {
35831 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35832 if (PyErr_Occurred()) SWIG_fail;
35833 }
35834 resultobj = result;
35835 return resultobj;
35836fail:
35837 return NULL;
35838}
35839
35840
27e45892
RD
35841SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35842 PyObject *resultobj = 0;
35843 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35844 int arg2 ;
35845 wxDC *arg3 = (wxDC *) 0 ;
35846 void *argp1 = 0 ;
35847 int res1 = 0 ;
35848 int val2 ;
35849 int ecode2 = 0 ;
35850 void *argp3 = 0 ;
35851 int res3 = 0 ;
35852 PyObject * obj0 = 0 ;
35853 PyObject * obj1 = 0 ;
35854 PyObject * obj2 = 0 ;
35855 char * kwnames[] = {
35856 (char *) "self",(char *) "id",(char *) "dc", NULL
35857 };
35858
35859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35861 if (!SWIG_IsOK(res1)) {
35862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35863 }
35864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35865 ecode2 = SWIG_AsVal_int(obj1, &val2);
35866 if (!SWIG_IsOK(ecode2)) {
35867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35868 }
35869 arg2 = static_cast< int >(val2);
35870 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35871 if (!SWIG_IsOK(res3)) {
35872 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35873 }
35874 arg3 = reinterpret_cast< wxDC * >(argp3);
35875 {
35876 PyThreadState* __tstate = wxPyBeginAllowThreads();
35877 (arg1)->DrawIdToDC(arg2,arg3);
35878 wxPyEndAllowThreads(__tstate);
35879 if (PyErr_Occurred()) SWIG_fail;
35880 }
35881 resultobj = SWIG_Py_Void();
35882 return resultobj;
35883fail:
35884 return NULL;
35885}
35886
35887
35888SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35889 PyObject *resultobj = 0;
35890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35891 int arg2 ;
35892 wxRect *arg3 = 0 ;
35893 void *argp1 = 0 ;
35894 int res1 = 0 ;
35895 int val2 ;
35896 int ecode2 = 0 ;
35897 wxRect temp3 ;
35898 PyObject * obj0 = 0 ;
35899 PyObject * obj1 = 0 ;
35900 PyObject * obj2 = 0 ;
35901 char * kwnames[] = {
35902 (char *) "self",(char *) "id",(char *) "rect", NULL
35903 };
35904
35905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35907 if (!SWIG_IsOK(res1)) {
35908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35909 }
35910 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35911 ecode2 = SWIG_AsVal_int(obj1, &val2);
35912 if (!SWIG_IsOK(ecode2)) {
35913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35914 }
35915 arg2 = static_cast< int >(val2);
35916 {
35917 arg3 = &temp3;
35918 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35919 }
35920 {
35921 PyThreadState* __tstate = wxPyBeginAllowThreads();
35922 (arg1)->SetIdBounds(arg2,*arg3);
35923 wxPyEndAllowThreads(__tstate);
35924 if (PyErr_Occurred()) SWIG_fail;
35925 }
35926 resultobj = SWIG_Py_Void();
35927 return resultobj;
35928fail:
35929 return NULL;
35930}
35931
35932
35933SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35934 PyObject *resultobj = 0;
35935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35936 int arg2 ;
35937 wxRect result;
35938 void *argp1 = 0 ;
35939 int res1 = 0 ;
35940 int val2 ;
35941 int ecode2 = 0 ;
35942 PyObject * obj0 = 0 ;
35943 PyObject * obj1 = 0 ;
35944 char * kwnames[] = {
35945 (char *) "self",(char *) "id", NULL
35946 };
35947
35948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35950 if (!SWIG_IsOK(res1)) {
35951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35952 }
35953 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35954 ecode2 = SWIG_AsVal_int(obj1, &val2);
35955 if (!SWIG_IsOK(ecode2)) {
35956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35957 }
35958 arg2 = static_cast< int >(val2);
35959 {
35960 PyThreadState* __tstate = wxPyBeginAllowThreads();
35961 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35962 wxPyEndAllowThreads(__tstate);
35963 if (PyErr_Occurred()) SWIG_fail;
35964 }
35965 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35966 return resultobj;
35967fail:
35968 return NULL;
35969}
35970
35971
35972SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35973 PyObject *resultobj = 0;
35974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35975 wxDC *arg2 = (wxDC *) 0 ;
35976 wxRect *arg3 = 0 ;
35977 void *argp1 = 0 ;
35978 int res1 = 0 ;
35979 void *argp2 = 0 ;
35980 int res2 = 0 ;
35981 wxRect temp3 ;
35982 PyObject * obj0 = 0 ;
35983 PyObject * obj1 = 0 ;
35984 PyObject * obj2 = 0 ;
35985 char * kwnames[] = {
35986 (char *) "self",(char *) "dc",(char *) "rect", NULL
35987 };
35988
35989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35991 if (!SWIG_IsOK(res1)) {
35992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35993 }
35994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35995 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35996 if (!SWIG_IsOK(res2)) {
35997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35998 }
35999 arg2 = reinterpret_cast< wxDC * >(argp2);
36000 {
36001 arg3 = &temp3;
36002 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36003 }
36004 {
36005 PyThreadState* __tstate = wxPyBeginAllowThreads();
36006 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36007 wxPyEndAllowThreads(__tstate);
36008 if (PyErr_Occurred()) SWIG_fail;
36009 }
36010 resultobj = SWIG_Py_Void();
36011 return resultobj;
36012fail:
36013 return NULL;
36014}
36015
36016
36017SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36020 wxDC *arg2 = (wxDC *) 0 ;
36021 wxRegion *arg3 = 0 ;
36022 void *argp1 = 0 ;
36023 int res1 = 0 ;
36024 void *argp2 = 0 ;
36025 int res2 = 0 ;
36026 void *argp3 = 0 ;
36027 int res3 = 0 ;
36028 PyObject * obj0 = 0 ;
36029 PyObject * obj1 = 0 ;
36030 PyObject * obj2 = 0 ;
36031 char * kwnames[] = {
36032 (char *) "self",(char *) "dc",(char *) "region", NULL
36033 };
36034
36035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36037 if (!SWIG_IsOK(res1)) {
36038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36039 }
36040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36041 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36042 if (!SWIG_IsOK(res2)) {
36043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36044 }
36045 arg2 = reinterpret_cast< wxDC * >(argp2);
36046 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36047 if (!SWIG_IsOK(res3)) {
36048 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36049 }
36050 if (!argp3) {
36051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36052 }
36053 arg3 = reinterpret_cast< wxRegion * >(argp3);
36054 {
36055 PyThreadState* __tstate = wxPyBeginAllowThreads();
36056 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36057 wxPyEndAllowThreads(__tstate);
36058 if (PyErr_Occurred()) SWIG_fail;
36059 }
36060 resultobj = SWIG_Py_Void();
36061 return resultobj;
36062fail:
36063 return NULL;
36064}
36065
36066
36067SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36068 PyObject *resultobj = 0;
36069 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36070 wxDC *arg2 = (wxDC *) 0 ;
36071 void *argp1 = 0 ;
36072 int res1 = 0 ;
36073 void *argp2 = 0 ;
36074 int res2 = 0 ;
36075 PyObject * obj0 = 0 ;
36076 PyObject * obj1 = 0 ;
36077 char * kwnames[] = {
36078 (char *) "self",(char *) "dc", NULL
36079 };
36080
36081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36083 if (!SWIG_IsOK(res1)) {
36084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36085 }
36086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36088 if (!SWIG_IsOK(res2)) {
36089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36090 }
36091 arg2 = reinterpret_cast< wxDC * >(argp2);
36092 {
36093 PyThreadState* __tstate = wxPyBeginAllowThreads();
36094 (arg1)->DrawToDC(arg2);
36095 wxPyEndAllowThreads(__tstate);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 resultobj = SWIG_Py_Void();
36099 return resultobj;
36100fail:
36101 return NULL;
36102}
36103
36104
36105SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36106 PyObject *resultobj = 0;
36107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36108 int arg2 ;
36109 int arg3 ;
36110 wxColour *arg4 = 0 ;
36111 int arg5 = (int) wxFLOOD_SURFACE ;
36112 void *argp1 = 0 ;
36113 int res1 = 0 ;
36114 int val2 ;
36115 int ecode2 = 0 ;
36116 int val3 ;
36117 int ecode3 = 0 ;
36118 wxColour temp4 ;
36119 int val5 ;
36120 int ecode5 = 0 ;
36121 PyObject * obj0 = 0 ;
36122 PyObject * obj1 = 0 ;
36123 PyObject * obj2 = 0 ;
36124 PyObject * obj3 = 0 ;
36125 PyObject * obj4 = 0 ;
36126 char * kwnames[] = {
36127 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36128 };
36129
36130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36132 if (!SWIG_IsOK(res1)) {
36133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36134 }
36135 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36136 ecode2 = SWIG_AsVal_int(obj1, &val2);
36137 if (!SWIG_IsOK(ecode2)) {
36138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36139 }
36140 arg2 = static_cast< int >(val2);
36141 ecode3 = SWIG_AsVal_int(obj2, &val3);
36142 if (!SWIG_IsOK(ecode3)) {
36143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36144 }
36145 arg3 = static_cast< int >(val3);
36146 {
36147 arg4 = &temp4;
36148 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36149 }
36150 if (obj4) {
36151 ecode5 = SWIG_AsVal_int(obj4, &val5);
36152 if (!SWIG_IsOK(ecode5)) {
36153 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36154 }
36155 arg5 = static_cast< int >(val5);
36156 }
36157 {
36158 PyThreadState* __tstate = wxPyBeginAllowThreads();
36159 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36160 wxPyEndAllowThreads(__tstate);
36161 if (PyErr_Occurred()) SWIG_fail;
36162 }
36163 resultobj = SWIG_Py_Void();
36164 return resultobj;
36165fail:
36166 return NULL;
36167}
36168
36169
36170SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36171 PyObject *resultobj = 0;
36172 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36173 wxPoint *arg2 = 0 ;
36174 wxColour *arg3 = 0 ;
36175 int arg4 = (int) wxFLOOD_SURFACE ;
36176 void *argp1 = 0 ;
36177 int res1 = 0 ;
36178 wxPoint temp2 ;
36179 wxColour temp3 ;
36180 int val4 ;
36181 int ecode4 = 0 ;
36182 PyObject * obj0 = 0 ;
36183 PyObject * obj1 = 0 ;
36184 PyObject * obj2 = 0 ;
36185 PyObject * obj3 = 0 ;
36186 char * kwnames[] = {
36187 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36188 };
36189
36190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36192 if (!SWIG_IsOK(res1)) {
36193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36194 }
36195 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36196 {
36197 arg2 = &temp2;
36198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36199 }
36200 {
36201 arg3 = &temp3;
36202 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36203 }
36204 if (obj3) {
36205 ecode4 = SWIG_AsVal_int(obj3, &val4);
36206 if (!SWIG_IsOK(ecode4)) {
36207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36208 }
36209 arg4 = static_cast< int >(val4);
36210 }
36211 {
36212 PyThreadState* __tstate = wxPyBeginAllowThreads();
36213 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36214 wxPyEndAllowThreads(__tstate);
36215 if (PyErr_Occurred()) SWIG_fail;
36216 }
36217 resultobj = SWIG_Py_Void();
36218 return resultobj;
36219fail:
36220 return NULL;
36221}
36222
36223
36224SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36225 PyObject *resultobj = 0;
36226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36227 int arg2 ;
36228 int arg3 ;
36229 int arg4 ;
36230 int arg5 ;
36231 void *argp1 = 0 ;
36232 int res1 = 0 ;
36233 int val2 ;
36234 int ecode2 = 0 ;
36235 int val3 ;
36236 int ecode3 = 0 ;
36237 int val4 ;
36238 int ecode4 = 0 ;
36239 int val5 ;
36240 int ecode5 = 0 ;
36241 PyObject * obj0 = 0 ;
36242 PyObject * obj1 = 0 ;
36243 PyObject * obj2 = 0 ;
36244 PyObject * obj3 = 0 ;
36245 PyObject * obj4 = 0 ;
36246 char * kwnames[] = {
36247 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36248 };
36249
36250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36252 if (!SWIG_IsOK(res1)) {
36253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36254 }
36255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36256 ecode2 = SWIG_AsVal_int(obj1, &val2);
36257 if (!SWIG_IsOK(ecode2)) {
36258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36259 }
36260 arg2 = static_cast< int >(val2);
36261 ecode3 = SWIG_AsVal_int(obj2, &val3);
36262 if (!SWIG_IsOK(ecode3)) {
36263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36264 }
36265 arg3 = static_cast< int >(val3);
36266 ecode4 = SWIG_AsVal_int(obj3, &val4);
36267 if (!SWIG_IsOK(ecode4)) {
36268 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36269 }
36270 arg4 = static_cast< int >(val4);
36271 ecode5 = SWIG_AsVal_int(obj4, &val5);
36272 if (!SWIG_IsOK(ecode5)) {
36273 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36274 }
36275 arg5 = static_cast< int >(val5);
36276 {
36277 PyThreadState* __tstate = wxPyBeginAllowThreads();
36278 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36279 wxPyEndAllowThreads(__tstate);
36280 if (PyErr_Occurred()) SWIG_fail;
36281 }
36282 resultobj = SWIG_Py_Void();
36283 return resultobj;
36284fail:
36285 return NULL;
36286}
36287
36288
36289SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36290 PyObject *resultobj = 0;
36291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36292 wxPoint *arg2 = 0 ;
36293 wxPoint *arg3 = 0 ;
36294 void *argp1 = 0 ;
36295 int res1 = 0 ;
36296 wxPoint temp2 ;
36297 wxPoint temp3 ;
36298 PyObject * obj0 = 0 ;
36299 PyObject * obj1 = 0 ;
36300 PyObject * obj2 = 0 ;
36301 char * kwnames[] = {
36302 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36303 };
36304
36305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36307 if (!SWIG_IsOK(res1)) {
36308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36309 }
36310 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36311 {
36312 arg2 = &temp2;
36313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36314 }
36315 {
36316 arg3 = &temp3;
36317 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36318 }
36319 {
36320 PyThreadState* __tstate = wxPyBeginAllowThreads();
36321 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
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_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36333 PyObject *resultobj = 0;
36334 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36335 int arg2 ;
36336 int arg3 ;
36337 void *argp1 = 0 ;
36338 int res1 = 0 ;
36339 int val2 ;
36340 int ecode2 = 0 ;
36341 int val3 ;
36342 int ecode3 = 0 ;
36343 PyObject * obj0 = 0 ;
36344 PyObject * obj1 = 0 ;
36345 PyObject * obj2 = 0 ;
36346 char * kwnames[] = {
36347 (char *) "self",(char *) "x",(char *) "y", NULL
36348 };
36349
36350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36352 if (!SWIG_IsOK(res1)) {
36353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36354 }
36355 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36356 ecode2 = SWIG_AsVal_int(obj1, &val2);
36357 if (!SWIG_IsOK(ecode2)) {
36358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36359 }
36360 arg2 = static_cast< int >(val2);
36361 ecode3 = SWIG_AsVal_int(obj2, &val3);
36362 if (!SWIG_IsOK(ecode3)) {
36363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36364 }
36365 arg3 = static_cast< int >(val3);
36366 {
36367 PyThreadState* __tstate = wxPyBeginAllowThreads();
36368 (arg1)->CrossHair(arg2,arg3);
36369 wxPyEndAllowThreads(__tstate);
36370 if (PyErr_Occurred()) SWIG_fail;
36371 }
36372 resultobj = SWIG_Py_Void();
36373 return resultobj;
36374fail:
36375 return NULL;
36376}
36377
36378
36379SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36380 PyObject *resultobj = 0;
36381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36382 wxPoint *arg2 = 0 ;
36383 void *argp1 = 0 ;
36384 int res1 = 0 ;
36385 wxPoint temp2 ;
36386 PyObject * obj0 = 0 ;
36387 PyObject * obj1 = 0 ;
36388 char * kwnames[] = {
36389 (char *) "self",(char *) "pt", NULL
36390 };
36391
36392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36394 if (!SWIG_IsOK(res1)) {
36395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36396 }
36397 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36398 {
36399 arg2 = &temp2;
36400 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36401 }
36402 {
36403 PyThreadState* __tstate = wxPyBeginAllowThreads();
36404 (arg1)->CrossHair((wxPoint const &)*arg2);
36405 wxPyEndAllowThreads(__tstate);
36406 if (PyErr_Occurred()) SWIG_fail;
36407 }
36408 resultobj = SWIG_Py_Void();
36409 return resultobj;
36410fail:
36411 return NULL;
36412}
36413
36414
36415SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36416 PyObject *resultobj = 0;
36417 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36418 int arg2 ;
36419 int arg3 ;
36420 int arg4 ;
36421 int arg5 ;
36422 int arg6 ;
36423 int arg7 ;
36424 void *argp1 = 0 ;
36425 int res1 = 0 ;
36426 int val2 ;
36427 int ecode2 = 0 ;
36428 int val3 ;
36429 int ecode3 = 0 ;
36430 int val4 ;
36431 int ecode4 = 0 ;
36432 int val5 ;
36433 int ecode5 = 0 ;
36434 int val6 ;
36435 int ecode6 = 0 ;
36436 int val7 ;
36437 int ecode7 = 0 ;
36438 PyObject * obj0 = 0 ;
36439 PyObject * obj1 = 0 ;
36440 PyObject * obj2 = 0 ;
36441 PyObject * obj3 = 0 ;
36442 PyObject * obj4 = 0 ;
36443 PyObject * obj5 = 0 ;
36444 PyObject * obj6 = 0 ;
36445 char * kwnames[] = {
36446 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36447 };
36448
36449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36451 if (!SWIG_IsOK(res1)) {
36452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36453 }
36454 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36455 ecode2 = SWIG_AsVal_int(obj1, &val2);
36456 if (!SWIG_IsOK(ecode2)) {
36457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36458 }
36459 arg2 = static_cast< int >(val2);
36460 ecode3 = SWIG_AsVal_int(obj2, &val3);
36461 if (!SWIG_IsOK(ecode3)) {
36462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36463 }
36464 arg3 = static_cast< int >(val3);
36465 ecode4 = SWIG_AsVal_int(obj3, &val4);
36466 if (!SWIG_IsOK(ecode4)) {
36467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36468 }
36469 arg4 = static_cast< int >(val4);
36470 ecode5 = SWIG_AsVal_int(obj4, &val5);
36471 if (!SWIG_IsOK(ecode5)) {
36472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36473 }
36474 arg5 = static_cast< int >(val5);
36475 ecode6 = SWIG_AsVal_int(obj5, &val6);
36476 if (!SWIG_IsOK(ecode6)) {
36477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36478 }
36479 arg6 = static_cast< int >(val6);
36480 ecode7 = SWIG_AsVal_int(obj6, &val7);
36481 if (!SWIG_IsOK(ecode7)) {
36482 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36483 }
36484 arg7 = static_cast< int >(val7);
36485 {
36486 PyThreadState* __tstate = wxPyBeginAllowThreads();
36487 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36488 wxPyEndAllowThreads(__tstate);
36489 if (PyErr_Occurred()) SWIG_fail;
36490 }
36491 resultobj = SWIG_Py_Void();
36492 return resultobj;
36493fail:
36494 return NULL;
36495}
36496
36497
36498SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36499 PyObject *resultobj = 0;
36500 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36501 wxPoint *arg2 = 0 ;
36502 wxPoint *arg3 = 0 ;
36503 wxPoint *arg4 = 0 ;
36504 void *argp1 = 0 ;
36505 int res1 = 0 ;
36506 wxPoint temp2 ;
36507 wxPoint temp3 ;
36508 wxPoint temp4 ;
36509 PyObject * obj0 = 0 ;
36510 PyObject * obj1 = 0 ;
36511 PyObject * obj2 = 0 ;
36512 PyObject * obj3 = 0 ;
36513 char * kwnames[] = {
36514 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36515 };
36516
36517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36521 }
36522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36523 {
36524 arg2 = &temp2;
36525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36526 }
36527 {
36528 arg3 = &temp3;
36529 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36530 }
36531 {
36532 arg4 = &temp4;
36533 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36534 }
36535 {
36536 PyThreadState* __tstate = wxPyBeginAllowThreads();
36537 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36538 wxPyEndAllowThreads(__tstate);
36539 if (PyErr_Occurred()) SWIG_fail;
36540 }
36541 resultobj = SWIG_Py_Void();
36542 return resultobj;
36543fail:
36544 return NULL;
36545}
36546
36547
36548SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36549 PyObject *resultobj = 0;
36550 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36551 int arg2 ;
36552 int arg3 ;
36553 int arg4 ;
36554 int arg5 ;
36555 void *argp1 = 0 ;
36556 int res1 = 0 ;
36557 int val2 ;
36558 int ecode2 = 0 ;
36559 int val3 ;
36560 int ecode3 = 0 ;
36561 int val4 ;
36562 int ecode4 = 0 ;
36563 int val5 ;
36564 int ecode5 = 0 ;
36565 PyObject * obj0 = 0 ;
36566 PyObject * obj1 = 0 ;
36567 PyObject * obj2 = 0 ;
36568 PyObject * obj3 = 0 ;
36569 PyObject * obj4 = 0 ;
36570 char * kwnames[] = {
36571 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36572 };
36573
36574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36576 if (!SWIG_IsOK(res1)) {
36577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36578 }
36579 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36580 ecode2 = SWIG_AsVal_int(obj1, &val2);
36581 if (!SWIG_IsOK(ecode2)) {
36582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36583 }
36584 arg2 = static_cast< int >(val2);
36585 ecode3 = SWIG_AsVal_int(obj2, &val3);
36586 if (!SWIG_IsOK(ecode3)) {
36587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36588 }
36589 arg3 = static_cast< int >(val3);
36590 ecode4 = SWIG_AsVal_int(obj3, &val4);
36591 if (!SWIG_IsOK(ecode4)) {
36592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36593 }
36594 arg4 = static_cast< int >(val4);
36595 ecode5 = SWIG_AsVal_int(obj4, &val5);
36596 if (!SWIG_IsOK(ecode5)) {
36597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36598 }
36599 arg5 = static_cast< int >(val5);
36600 {
36601 PyThreadState* __tstate = wxPyBeginAllowThreads();
36602 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36603 wxPyEndAllowThreads(__tstate);
36604 if (PyErr_Occurred()) SWIG_fail;
36605 }
36606 resultobj = SWIG_Py_Void();
36607 return resultobj;
36608fail:
36609 return NULL;
36610}
36611
36612
36613SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36614 PyObject *resultobj = 0;
36615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36616 wxRect *arg2 = 0 ;
36617 void *argp1 = 0 ;
36618 int res1 = 0 ;
36619 wxRect temp2 ;
36620 PyObject * obj0 = 0 ;
36621 PyObject * obj1 = 0 ;
36622 char * kwnames[] = {
36623 (char *) "self",(char *) "rect", NULL
36624 };
36625
36626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36628 if (!SWIG_IsOK(res1)) {
36629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36630 }
36631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36632 {
36633 arg2 = &temp2;
36634 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36635 }
36636 {
36637 PyThreadState* __tstate = wxPyBeginAllowThreads();
36638 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36639 wxPyEndAllowThreads(__tstate);
36640 if (PyErr_Occurred()) SWIG_fail;
36641 }
36642 resultobj = SWIG_Py_Void();
36643 return resultobj;
36644fail:
36645 return NULL;
36646}
36647
36648
36649SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36650 PyObject *resultobj = 0;
36651 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36652 int arg2 ;
36653 int arg3 ;
36654 int arg4 ;
36655 int arg5 ;
36656 double arg6 ;
36657 double arg7 ;
36658 void *argp1 = 0 ;
36659 int res1 = 0 ;
36660 int val2 ;
36661 int ecode2 = 0 ;
36662 int val3 ;
36663 int ecode3 = 0 ;
36664 int val4 ;
36665 int ecode4 = 0 ;
36666 int val5 ;
36667 int ecode5 = 0 ;
36668 double val6 ;
36669 int ecode6 = 0 ;
36670 double val7 ;
36671 int ecode7 = 0 ;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674 PyObject * obj2 = 0 ;
36675 PyObject * obj3 = 0 ;
36676 PyObject * obj4 = 0 ;
36677 PyObject * obj5 = 0 ;
36678 PyObject * obj6 = 0 ;
36679 char * kwnames[] = {
36680 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36681 };
36682
36683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36685 if (!SWIG_IsOK(res1)) {
36686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36687 }
36688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36689 ecode2 = SWIG_AsVal_int(obj1, &val2);
36690 if (!SWIG_IsOK(ecode2)) {
36691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36692 }
36693 arg2 = static_cast< int >(val2);
36694 ecode3 = SWIG_AsVal_int(obj2, &val3);
36695 if (!SWIG_IsOK(ecode3)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36697 }
36698 arg3 = static_cast< int >(val3);
36699 ecode4 = SWIG_AsVal_int(obj3, &val4);
36700 if (!SWIG_IsOK(ecode4)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36702 }
36703 arg4 = static_cast< int >(val4);
36704 ecode5 = SWIG_AsVal_int(obj4, &val5);
36705 if (!SWIG_IsOK(ecode5)) {
36706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36707 }
36708 arg5 = static_cast< int >(val5);
36709 ecode6 = SWIG_AsVal_double(obj5, &val6);
36710 if (!SWIG_IsOK(ecode6)) {
36711 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36712 }
36713 arg6 = static_cast< double >(val6);
36714 ecode7 = SWIG_AsVal_double(obj6, &val7);
36715 if (!SWIG_IsOK(ecode7)) {
36716 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36717 }
36718 arg7 = static_cast< double >(val7);
36719 {
36720 PyThreadState* __tstate = wxPyBeginAllowThreads();
36721 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36722 wxPyEndAllowThreads(__tstate);
36723 if (PyErr_Occurred()) SWIG_fail;
36724 }
36725 resultobj = SWIG_Py_Void();
36726 return resultobj;
36727fail:
36728 return NULL;
36729}
36730
36731
36732SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36733 PyObject *resultobj = 0;
36734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36735 wxPoint *arg2 = 0 ;
36736 wxSize *arg3 = 0 ;
36737 double arg4 ;
36738 double arg5 ;
36739 void *argp1 = 0 ;
36740 int res1 = 0 ;
36741 wxPoint temp2 ;
36742 wxSize temp3 ;
36743 double val4 ;
36744 int ecode4 = 0 ;
36745 double val5 ;
36746 int ecode5 = 0 ;
36747 PyObject * obj0 = 0 ;
36748 PyObject * obj1 = 0 ;
36749 PyObject * obj2 = 0 ;
36750 PyObject * obj3 = 0 ;
36751 PyObject * obj4 = 0 ;
36752 char * kwnames[] = {
36753 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36754 };
36755
36756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36758 if (!SWIG_IsOK(res1)) {
36759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36760 }
36761 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36762 {
36763 arg2 = &temp2;
36764 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36765 }
36766 {
36767 arg3 = &temp3;
36768 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36769 }
36770 ecode4 = SWIG_AsVal_double(obj3, &val4);
36771 if (!SWIG_IsOK(ecode4)) {
36772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36773 }
36774 arg4 = static_cast< double >(val4);
36775 ecode5 = SWIG_AsVal_double(obj4, &val5);
36776 if (!SWIG_IsOK(ecode5)) {
36777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36778 }
36779 arg5 = static_cast< double >(val5);
36780 {
36781 PyThreadState* __tstate = wxPyBeginAllowThreads();
36782 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36783 wxPyEndAllowThreads(__tstate);
36784 if (PyErr_Occurred()) SWIG_fail;
36785 }
36786 resultobj = SWIG_Py_Void();
36787 return resultobj;
36788fail:
36789 return NULL;
36790}
36791
36792
36793SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36794 PyObject *resultobj = 0;
36795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36796 int arg2 ;
36797 int arg3 ;
36798 void *argp1 = 0 ;
36799 int res1 = 0 ;
36800 int val2 ;
36801 int ecode2 = 0 ;
36802 int val3 ;
36803 int ecode3 = 0 ;
36804 PyObject * obj0 = 0 ;
36805 PyObject * obj1 = 0 ;
36806 PyObject * obj2 = 0 ;
36807 char * kwnames[] = {
36808 (char *) "self",(char *) "x",(char *) "y", NULL
36809 };
36810
36811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36813 if (!SWIG_IsOK(res1)) {
36814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36815 }
36816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36817 ecode2 = SWIG_AsVal_int(obj1, &val2);
36818 if (!SWIG_IsOK(ecode2)) {
36819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36820 }
36821 arg2 = static_cast< int >(val2);
36822 ecode3 = SWIG_AsVal_int(obj2, &val3);
36823 if (!SWIG_IsOK(ecode3)) {
36824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36825 }
36826 arg3 = static_cast< int >(val3);
36827 {
36828 PyThreadState* __tstate = wxPyBeginAllowThreads();
36829 (arg1)->DrawPoint(arg2,arg3);
36830 wxPyEndAllowThreads(__tstate);
36831 if (PyErr_Occurred()) SWIG_fail;
36832 }
36833 resultobj = SWIG_Py_Void();
36834 return resultobj;
36835fail:
36836 return NULL;
36837}
36838
36839
36840SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36841 PyObject *resultobj = 0;
36842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36843 wxPoint *arg2 = 0 ;
36844 void *argp1 = 0 ;
36845 int res1 = 0 ;
36846 wxPoint temp2 ;
36847 PyObject * obj0 = 0 ;
36848 PyObject * obj1 = 0 ;
36849 char * kwnames[] = {
36850 (char *) "self",(char *) "pt", NULL
36851 };
36852
36853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36855 if (!SWIG_IsOK(res1)) {
36856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36857 }
36858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36859 {
36860 arg2 = &temp2;
36861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36862 }
36863 {
36864 PyThreadState* __tstate = wxPyBeginAllowThreads();
36865 (arg1)->DrawPoint((wxPoint const &)*arg2);
36866 wxPyEndAllowThreads(__tstate);
36867 if (PyErr_Occurred()) SWIG_fail;
36868 }
36869 resultobj = SWIG_Py_Void();
36870 return resultobj;
36871fail:
36872 return NULL;
36873}
36874
36875
36876SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36877 PyObject *resultobj = 0;
36878 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36879 int arg2 ;
36880 int arg3 ;
36881 int arg4 ;
36882 int arg5 ;
36883 void *argp1 = 0 ;
36884 int res1 = 0 ;
36885 int val2 ;
36886 int ecode2 = 0 ;
36887 int val3 ;
36888 int ecode3 = 0 ;
36889 int val4 ;
36890 int ecode4 = 0 ;
36891 int val5 ;
36892 int ecode5 = 0 ;
36893 PyObject * obj0 = 0 ;
36894 PyObject * obj1 = 0 ;
36895 PyObject * obj2 = 0 ;
36896 PyObject * obj3 = 0 ;
36897 PyObject * obj4 = 0 ;
36898 char * kwnames[] = {
36899 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36900 };
36901
36902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36904 if (!SWIG_IsOK(res1)) {
36905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36906 }
36907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36908 ecode2 = SWIG_AsVal_int(obj1, &val2);
36909 if (!SWIG_IsOK(ecode2)) {
36910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36911 }
36912 arg2 = static_cast< int >(val2);
36913 ecode3 = SWIG_AsVal_int(obj2, &val3);
36914 if (!SWIG_IsOK(ecode3)) {
36915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36916 }
36917 arg3 = static_cast< int >(val3);
36918 ecode4 = SWIG_AsVal_int(obj3, &val4);
36919 if (!SWIG_IsOK(ecode4)) {
36920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36921 }
36922 arg4 = static_cast< int >(val4);
36923 ecode5 = SWIG_AsVal_int(obj4, &val5);
36924 if (!SWIG_IsOK(ecode5)) {
36925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36926 }
36927 arg5 = static_cast< int >(val5);
36928 {
36929 PyThreadState* __tstate = wxPyBeginAllowThreads();
36930 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36931 wxPyEndAllowThreads(__tstate);
36932 if (PyErr_Occurred()) SWIG_fail;
36933 }
36934 resultobj = SWIG_Py_Void();
36935 return resultobj;
36936fail:
36937 return NULL;
36938}
36939
36940
36941SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36942 PyObject *resultobj = 0;
36943 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36944 wxRect *arg2 = 0 ;
36945 void *argp1 = 0 ;
36946 int res1 = 0 ;
36947 wxRect temp2 ;
36948 PyObject * obj0 = 0 ;
36949 PyObject * obj1 = 0 ;
36950 char * kwnames[] = {
36951 (char *) "self",(char *) "rect", NULL
36952 };
36953
36954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36956 if (!SWIG_IsOK(res1)) {
36957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36958 }
36959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36960 {
36961 arg2 = &temp2;
36962 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36963 }
36964 {
36965 PyThreadState* __tstate = wxPyBeginAllowThreads();
36966 (arg1)->DrawRectangle((wxRect const &)*arg2);
36967 wxPyEndAllowThreads(__tstate);
36968 if (PyErr_Occurred()) SWIG_fail;
36969 }
36970 resultobj = SWIG_Py_Void();
36971 return resultobj;
36972fail:
36973 return NULL;
36974}
36975
36976
36977SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36978 PyObject *resultobj = 0;
36979 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36980 wxPoint *arg2 = 0 ;
36981 wxSize *arg3 = 0 ;
36982 void *argp1 = 0 ;
36983 int res1 = 0 ;
36984 wxPoint temp2 ;
36985 wxSize temp3 ;
36986 PyObject * obj0 = 0 ;
36987 PyObject * obj1 = 0 ;
36988 PyObject * obj2 = 0 ;
36989 char * kwnames[] = {
36990 (char *) "self",(char *) "pt",(char *) "sz", NULL
36991 };
36992
36993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) 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_DrawRectanglePointSize" "', 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 {
37008 PyThreadState* __tstate = wxPyBeginAllowThreads();
37009 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37010 wxPyEndAllowThreads(__tstate);
37011 if (PyErr_Occurred()) SWIG_fail;
37012 }
37013 resultobj = SWIG_Py_Void();
37014 return resultobj;
37015fail:
37016 return NULL;
37017}
37018
37019
37020SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37021 PyObject *resultobj = 0;
37022 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37023 int arg2 ;
37024 int arg3 ;
37025 int arg4 ;
37026 int arg5 ;
37027 double arg6 ;
37028 void *argp1 = 0 ;
37029 int res1 = 0 ;
37030 int val2 ;
37031 int ecode2 = 0 ;
37032 int val3 ;
37033 int ecode3 = 0 ;
37034 int val4 ;
37035 int ecode4 = 0 ;
37036 int val5 ;
37037 int ecode5 = 0 ;
37038 double val6 ;
37039 int ecode6 = 0 ;
37040 PyObject * obj0 = 0 ;
37041 PyObject * obj1 = 0 ;
37042 PyObject * obj2 = 0 ;
37043 PyObject * obj3 = 0 ;
37044 PyObject * obj4 = 0 ;
37045 PyObject * obj5 = 0 ;
37046 char * kwnames[] = {
37047 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37048 };
37049
37050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37052 if (!SWIG_IsOK(res1)) {
37053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37054 }
37055 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37056 ecode2 = SWIG_AsVal_int(obj1, &val2);
37057 if (!SWIG_IsOK(ecode2)) {
37058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37059 }
37060 arg2 = static_cast< int >(val2);
37061 ecode3 = SWIG_AsVal_int(obj2, &val3);
37062 if (!SWIG_IsOK(ecode3)) {
37063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37064 }
37065 arg3 = static_cast< int >(val3);
37066 ecode4 = SWIG_AsVal_int(obj3, &val4);
37067 if (!SWIG_IsOK(ecode4)) {
37068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37069 }
37070 arg4 = static_cast< int >(val4);
37071 ecode5 = SWIG_AsVal_int(obj4, &val5);
37072 if (!SWIG_IsOK(ecode5)) {
37073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37074 }
37075 arg5 = static_cast< int >(val5);
37076 ecode6 = SWIG_AsVal_double(obj5, &val6);
37077 if (!SWIG_IsOK(ecode6)) {
37078 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37079 }
37080 arg6 = static_cast< double >(val6);
37081 {
37082 PyThreadState* __tstate = wxPyBeginAllowThreads();
37083 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37084 wxPyEndAllowThreads(__tstate);
37085 if (PyErr_Occurred()) SWIG_fail;
37086 }
37087 resultobj = SWIG_Py_Void();
37088 return resultobj;
37089fail:
37090 return NULL;
37091}
37092
37093
37094SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37095 PyObject *resultobj = 0;
37096 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37097 wxRect *arg2 = 0 ;
37098 double arg3 ;
37099 void *argp1 = 0 ;
37100 int res1 = 0 ;
37101 wxRect temp2 ;
37102 double val3 ;
37103 int ecode3 = 0 ;
37104 PyObject * obj0 = 0 ;
37105 PyObject * obj1 = 0 ;
37106 PyObject * obj2 = 0 ;
37107 char * kwnames[] = {
37108 (char *) "self",(char *) "r",(char *) "radius", NULL
37109 };
37110
37111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37113 if (!SWIG_IsOK(res1)) {
37114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37115 }
37116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37117 {
37118 arg2 = &temp2;
37119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37120 }
37121 ecode3 = SWIG_AsVal_double(obj2, &val3);
37122 if (!SWIG_IsOK(ecode3)) {
37123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37124 }
37125 arg3 = static_cast< double >(val3);
37126 {
37127 PyThreadState* __tstate = wxPyBeginAllowThreads();
37128 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37129 wxPyEndAllowThreads(__tstate);
37130 if (PyErr_Occurred()) SWIG_fail;
37131 }
37132 resultobj = SWIG_Py_Void();
37133 return resultobj;
37134fail:
37135 return NULL;
37136}
37137
37138
37139SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37140 PyObject *resultobj = 0;
37141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37142 wxPoint *arg2 = 0 ;
37143 wxSize *arg3 = 0 ;
37144 double arg4 ;
37145 void *argp1 = 0 ;
37146 int res1 = 0 ;
37147 wxPoint temp2 ;
37148 wxSize temp3 ;
37149 double val4 ;
37150 int ecode4 = 0 ;
37151 PyObject * obj0 = 0 ;
37152 PyObject * obj1 = 0 ;
37153 PyObject * obj2 = 0 ;
37154 PyObject * obj3 = 0 ;
37155 char * kwnames[] = {
37156 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37157 };
37158
37159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37161 if (!SWIG_IsOK(res1)) {
37162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37163 }
37164 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37165 {
37166 arg2 = &temp2;
37167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37168 }
37169 {
37170 arg3 = &temp3;
37171 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37172 }
37173 ecode4 = SWIG_AsVal_double(obj3, &val4);
37174 if (!SWIG_IsOK(ecode4)) {
37175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37176 }
37177 arg4 = static_cast< double >(val4);
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
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_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37192 PyObject *resultobj = 0;
37193 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37194 int arg2 ;
37195 int arg3 ;
37196 int arg4 ;
37197 void *argp1 = 0 ;
37198 int res1 = 0 ;
37199 int val2 ;
37200 int ecode2 = 0 ;
37201 int val3 ;
37202 int ecode3 = 0 ;
37203 int val4 ;
37204 int ecode4 = 0 ;
37205 PyObject * obj0 = 0 ;
37206 PyObject * obj1 = 0 ;
37207 PyObject * obj2 = 0 ;
37208 PyObject * obj3 = 0 ;
37209 char * kwnames[] = {
37210 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37211 };
37212
37213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37215 if (!SWIG_IsOK(res1)) {
37216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37217 }
37218 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37219 ecode2 = SWIG_AsVal_int(obj1, &val2);
37220 if (!SWIG_IsOK(ecode2)) {
37221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37222 }
37223 arg2 = static_cast< int >(val2);
37224 ecode3 = SWIG_AsVal_int(obj2, &val3);
37225 if (!SWIG_IsOK(ecode3)) {
37226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37227 }
37228 arg3 = static_cast< int >(val3);
37229 ecode4 = SWIG_AsVal_int(obj3, &val4);
37230 if (!SWIG_IsOK(ecode4)) {
37231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37232 }
37233 arg4 = static_cast< int >(val4);
37234 {
37235 PyThreadState* __tstate = wxPyBeginAllowThreads();
37236 (arg1)->DrawCircle(arg2,arg3,arg4);
37237 wxPyEndAllowThreads(__tstate);
37238 if (PyErr_Occurred()) SWIG_fail;
37239 }
37240 resultobj = SWIG_Py_Void();
37241 return resultobj;
37242fail:
37243 return NULL;
37244}
37245
37246
37247SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37248 PyObject *resultobj = 0;
37249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37250 wxPoint *arg2 = 0 ;
37251 int arg3 ;
37252 void *argp1 = 0 ;
37253 int res1 = 0 ;
37254 wxPoint temp2 ;
37255 int val3 ;
37256 int ecode3 = 0 ;
37257 PyObject * obj0 = 0 ;
37258 PyObject * obj1 = 0 ;
37259 PyObject * obj2 = 0 ;
37260 char * kwnames[] = {
37261 (char *) "self",(char *) "pt",(char *) "radius", NULL
37262 };
37263
37264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37266 if (!SWIG_IsOK(res1)) {
37267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37268 }
37269 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37270 {
37271 arg2 = &temp2;
37272 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37273 }
37274 ecode3 = SWIG_AsVal_int(obj2, &val3);
37275 if (!SWIG_IsOK(ecode3)) {
37276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37277 }
37278 arg3 = static_cast< int >(val3);
37279 {
37280 PyThreadState* __tstate = wxPyBeginAllowThreads();
37281 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37282 wxPyEndAllowThreads(__tstate);
37283 if (PyErr_Occurred()) SWIG_fail;
37284 }
37285 resultobj = SWIG_Py_Void();
37286 return resultobj;
37287fail:
37288 return NULL;
37289}
37290
37291
37292SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37293 PyObject *resultobj = 0;
37294 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37295 int arg2 ;
37296 int arg3 ;
37297 int arg4 ;
37298 int arg5 ;
37299 void *argp1 = 0 ;
37300 int res1 = 0 ;
37301 int val2 ;
37302 int ecode2 = 0 ;
37303 int val3 ;
37304 int ecode3 = 0 ;
37305 int val4 ;
37306 int ecode4 = 0 ;
37307 int val5 ;
37308 int ecode5 = 0 ;
37309 PyObject * obj0 = 0 ;
37310 PyObject * obj1 = 0 ;
37311 PyObject * obj2 = 0 ;
37312 PyObject * obj3 = 0 ;
37313 PyObject * obj4 = 0 ;
37314 char * kwnames[] = {
37315 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37316 };
37317
37318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37320 if (!SWIG_IsOK(res1)) {
37321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37322 }
37323 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37324 ecode2 = SWIG_AsVal_int(obj1, &val2);
37325 if (!SWIG_IsOK(ecode2)) {
37326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37327 }
37328 arg2 = static_cast< int >(val2);
37329 ecode3 = SWIG_AsVal_int(obj2, &val3);
37330 if (!SWIG_IsOK(ecode3)) {
37331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37332 }
37333 arg3 = static_cast< int >(val3);
37334 ecode4 = SWIG_AsVal_int(obj3, &val4);
37335 if (!SWIG_IsOK(ecode4)) {
37336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37337 }
37338 arg4 = static_cast< int >(val4);
37339 ecode5 = SWIG_AsVal_int(obj4, &val5);
37340 if (!SWIG_IsOK(ecode5)) {
37341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37342 }
37343 arg5 = static_cast< int >(val5);
37344 {
37345 PyThreadState* __tstate = wxPyBeginAllowThreads();
37346 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37347 wxPyEndAllowThreads(__tstate);
37348 if (PyErr_Occurred()) SWIG_fail;
37349 }
37350 resultobj = SWIG_Py_Void();
37351 return resultobj;
37352fail:
37353 return NULL;
37354}
37355
37356
37357SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37358 PyObject *resultobj = 0;
37359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37360 wxRect *arg2 = 0 ;
37361 void *argp1 = 0 ;
37362 int res1 = 0 ;
37363 wxRect temp2 ;
37364 PyObject * obj0 = 0 ;
37365 PyObject * obj1 = 0 ;
37366 char * kwnames[] = {
37367 (char *) "self",(char *) "rect", NULL
37368 };
37369
37370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37372 if (!SWIG_IsOK(res1)) {
37373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37374 }
37375 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37376 {
37377 arg2 = &temp2;
37378 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37379 }
37380 {
37381 PyThreadState* __tstate = wxPyBeginAllowThreads();
37382 (arg1)->DrawEllipse((wxRect const &)*arg2);
37383 wxPyEndAllowThreads(__tstate);
37384 if (PyErr_Occurred()) SWIG_fail;
37385 }
37386 resultobj = SWIG_Py_Void();
37387 return resultobj;
37388fail:
37389 return NULL;
37390}
37391
37392
37393SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37394 PyObject *resultobj = 0;
37395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37396 wxPoint *arg2 = 0 ;
37397 wxSize *arg3 = 0 ;
37398 void *argp1 = 0 ;
37399 int res1 = 0 ;
37400 wxPoint temp2 ;
37401 wxSize temp3 ;
37402 PyObject * obj0 = 0 ;
37403 PyObject * obj1 = 0 ;
37404 PyObject * obj2 = 0 ;
37405 char * kwnames[] = {
37406 (char *) "self",(char *) "pt",(char *) "sz", NULL
37407 };
37408
37409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37411 if (!SWIG_IsOK(res1)) {
37412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37413 }
37414 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37415 {
37416 arg2 = &temp2;
37417 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37418 }
37419 {
37420 arg3 = &temp3;
37421 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37422 }
37423 {
37424 PyThreadState* __tstate = wxPyBeginAllowThreads();
37425 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37426 wxPyEndAllowThreads(__tstate);
37427 if (PyErr_Occurred()) SWIG_fail;
37428 }
37429 resultobj = SWIG_Py_Void();
37430 return resultobj;
37431fail:
37432 return NULL;
37433}
37434
37435
37436SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37437 PyObject *resultobj = 0;
37438 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37439 wxIcon *arg2 = 0 ;
37440 int arg3 ;
37441 int arg4 ;
37442 void *argp1 = 0 ;
37443 int res1 = 0 ;
37444 void *argp2 = 0 ;
37445 int res2 = 0 ;
37446 int val3 ;
37447 int ecode3 = 0 ;
37448 int val4 ;
37449 int ecode4 = 0 ;
37450 PyObject * obj0 = 0 ;
37451 PyObject * obj1 = 0 ;
37452 PyObject * obj2 = 0 ;
37453 PyObject * obj3 = 0 ;
37454 char * kwnames[] = {
37455 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37456 };
37457
37458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37460 if (!SWIG_IsOK(res1)) {
37461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37462 }
37463 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37465 if (!SWIG_IsOK(res2)) {
37466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37467 }
37468 if (!argp2) {
37469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37470 }
37471 arg2 = reinterpret_cast< wxIcon * >(argp2);
37472 ecode3 = SWIG_AsVal_int(obj2, &val3);
37473 if (!SWIG_IsOK(ecode3)) {
37474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37475 }
37476 arg3 = static_cast< int >(val3);
37477 ecode4 = SWIG_AsVal_int(obj3, &val4);
37478 if (!SWIG_IsOK(ecode4)) {
37479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37480 }
37481 arg4 = static_cast< int >(val4);
37482 {
37483 PyThreadState* __tstate = wxPyBeginAllowThreads();
37484 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37485 wxPyEndAllowThreads(__tstate);
37486 if (PyErr_Occurred()) SWIG_fail;
37487 }
37488 resultobj = SWIG_Py_Void();
37489 return resultobj;
37490fail:
37491 return NULL;
37492}
37493
37494
37495SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37496 PyObject *resultobj = 0;
37497 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37498 wxIcon *arg2 = 0 ;
37499 wxPoint *arg3 = 0 ;
37500 void *argp1 = 0 ;
37501 int res1 = 0 ;
37502 void *argp2 = 0 ;
37503 int res2 = 0 ;
37504 wxPoint temp3 ;
37505 PyObject * obj0 = 0 ;
37506 PyObject * obj1 = 0 ;
37507 PyObject * obj2 = 0 ;
37508 char * kwnames[] = {
37509 (char *) "self",(char *) "icon",(char *) "pt", NULL
37510 };
37511
37512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37514 if (!SWIG_IsOK(res1)) {
37515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37516 }
37517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37519 if (!SWIG_IsOK(res2)) {
37520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37521 }
37522 if (!argp2) {
37523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37524 }
37525 arg2 = reinterpret_cast< wxIcon * >(argp2);
37526 {
37527 arg3 = &temp3;
37528 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37529 }
37530 {
37531 PyThreadState* __tstate = wxPyBeginAllowThreads();
37532 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37533 wxPyEndAllowThreads(__tstate);
37534 if (PyErr_Occurred()) SWIG_fail;
37535 }
37536 resultobj = SWIG_Py_Void();
37537 return resultobj;
37538fail:
37539 return NULL;
37540}
37541
37542
37543SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37544 PyObject *resultobj = 0;
37545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37546 wxBitmap *arg2 = 0 ;
37547 int arg3 ;
37548 int arg4 ;
37549 bool arg5 = (bool) false ;
37550 void *argp1 = 0 ;
37551 int res1 = 0 ;
37552 void *argp2 = 0 ;
37553 int res2 = 0 ;
37554 int val3 ;
37555 int ecode3 = 0 ;
37556 int val4 ;
37557 int ecode4 = 0 ;
37558 bool val5 ;
37559 int ecode5 = 0 ;
37560 PyObject * obj0 = 0 ;
37561 PyObject * obj1 = 0 ;
37562 PyObject * obj2 = 0 ;
37563 PyObject * obj3 = 0 ;
37564 PyObject * obj4 = 0 ;
37565 char * kwnames[] = {
37566 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37567 };
37568
37569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37571 if (!SWIG_IsOK(res1)) {
37572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37573 }
37574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37576 if (!SWIG_IsOK(res2)) {
37577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37578 }
37579 if (!argp2) {
37580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37581 }
37582 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37583 ecode3 = SWIG_AsVal_int(obj2, &val3);
37584 if (!SWIG_IsOK(ecode3)) {
37585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37586 }
37587 arg3 = static_cast< int >(val3);
37588 ecode4 = SWIG_AsVal_int(obj3, &val4);
37589 if (!SWIG_IsOK(ecode4)) {
37590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37591 }
37592 arg4 = static_cast< int >(val4);
37593 if (obj4) {
37594 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37595 if (!SWIG_IsOK(ecode5)) {
37596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37597 }
37598 arg5 = static_cast< bool >(val5);
37599 }
37600 {
37601 PyThreadState* __tstate = wxPyBeginAllowThreads();
37602 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37603 wxPyEndAllowThreads(__tstate);
37604 if (PyErr_Occurred()) SWIG_fail;
37605 }
37606 resultobj = SWIG_Py_Void();
37607 return resultobj;
37608fail:
37609 return NULL;
37610}
37611
37612
37613SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37614 PyObject *resultobj = 0;
37615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37616 wxBitmap *arg2 = 0 ;
37617 wxPoint *arg3 = 0 ;
37618 bool arg4 = (bool) false ;
37619 void *argp1 = 0 ;
37620 int res1 = 0 ;
37621 void *argp2 = 0 ;
37622 int res2 = 0 ;
37623 wxPoint temp3 ;
37624 bool val4 ;
37625 int ecode4 = 0 ;
37626 PyObject * obj0 = 0 ;
37627 PyObject * obj1 = 0 ;
37628 PyObject * obj2 = 0 ;
37629 PyObject * obj3 = 0 ;
37630 char * kwnames[] = {
37631 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37632 };
37633
37634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37636 if (!SWIG_IsOK(res1)) {
37637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37638 }
37639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37641 if (!SWIG_IsOK(res2)) {
37642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37643 }
37644 if (!argp2) {
37645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37646 }
37647 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37648 {
37649 arg3 = &temp3;
37650 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37651 }
37652 if (obj3) {
37653 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37654 if (!SWIG_IsOK(ecode4)) {
37655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37656 }
37657 arg4 = static_cast< bool >(val4);
37658 }
37659 {
37660 PyThreadState* __tstate = wxPyBeginAllowThreads();
37661 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37662 wxPyEndAllowThreads(__tstate);
37663 if (PyErr_Occurred()) SWIG_fail;
37664 }
37665 resultobj = SWIG_Py_Void();
37666 return resultobj;
37667fail:
37668 return NULL;
37669}
37670
37671
37672SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37673 PyObject *resultobj = 0;
37674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37675 wxString *arg2 = 0 ;
37676 int arg3 ;
37677 int arg4 ;
37678 void *argp1 = 0 ;
37679 int res1 = 0 ;
37680 bool temp2 = false ;
37681 int val3 ;
37682 int ecode3 = 0 ;
37683 int val4 ;
37684 int ecode4 = 0 ;
37685 PyObject * obj0 = 0 ;
37686 PyObject * obj1 = 0 ;
37687 PyObject * obj2 = 0 ;
37688 PyObject * obj3 = 0 ;
37689 char * kwnames[] = {
37690 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37691 };
37692
37693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37695 if (!SWIG_IsOK(res1)) {
37696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37697 }
37698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37699 {
37700 arg2 = wxString_in_helper(obj1);
37701 if (arg2 == NULL) SWIG_fail;
37702 temp2 = true;
37703 }
37704 ecode3 = SWIG_AsVal_int(obj2, &val3);
37705 if (!SWIG_IsOK(ecode3)) {
37706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37707 }
37708 arg3 = static_cast< int >(val3);
37709 ecode4 = SWIG_AsVal_int(obj3, &val4);
37710 if (!SWIG_IsOK(ecode4)) {
37711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37712 }
37713 arg4 = static_cast< int >(val4);
37714 {
37715 PyThreadState* __tstate = wxPyBeginAllowThreads();
37716 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37717 wxPyEndAllowThreads(__tstate);
37718 if (PyErr_Occurred()) SWIG_fail;
37719 }
37720 resultobj = SWIG_Py_Void();
37721 {
37722 if (temp2)
37723 delete arg2;
37724 }
37725 return resultobj;
37726fail:
37727 {
37728 if (temp2)
37729 delete arg2;
37730 }
37731 return NULL;
37732}
37733
37734
37735SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37736 PyObject *resultobj = 0;
37737 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37738 wxString *arg2 = 0 ;
37739 wxPoint *arg3 = 0 ;
37740 void *argp1 = 0 ;
37741 int res1 = 0 ;
37742 bool temp2 = false ;
37743 wxPoint temp3 ;
37744 PyObject * obj0 = 0 ;
37745 PyObject * obj1 = 0 ;
37746 PyObject * obj2 = 0 ;
37747 char * kwnames[] = {
37748 (char *) "self",(char *) "text",(char *) "pt", NULL
37749 };
37750
37751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37753 if (!SWIG_IsOK(res1)) {
37754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37755 }
37756 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37757 {
37758 arg2 = wxString_in_helper(obj1);
37759 if (arg2 == NULL) SWIG_fail;
37760 temp2 = true;
37761 }
37762 {
37763 arg3 = &temp3;
37764 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37765 }
37766 {
37767 PyThreadState* __tstate = wxPyBeginAllowThreads();
37768 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37769 wxPyEndAllowThreads(__tstate);
37770 if (PyErr_Occurred()) SWIG_fail;
37771 }
37772 resultobj = SWIG_Py_Void();
37773 {
37774 if (temp2)
37775 delete arg2;
37776 }
37777 return resultobj;
37778fail:
37779 {
37780 if (temp2)
37781 delete arg2;
37782 }
37783 return NULL;
37784}
37785
37786
37787SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37788 PyObject *resultobj = 0;
37789 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37790 wxString *arg2 = 0 ;
37791 int arg3 ;
37792 int arg4 ;
37793 double arg5 ;
37794 void *argp1 = 0 ;
37795 int res1 = 0 ;
37796 bool temp2 = false ;
37797 int val3 ;
37798 int ecode3 = 0 ;
37799 int val4 ;
37800 int ecode4 = 0 ;
37801 double val5 ;
37802 int ecode5 = 0 ;
37803 PyObject * obj0 = 0 ;
37804 PyObject * obj1 = 0 ;
37805 PyObject * obj2 = 0 ;
37806 PyObject * obj3 = 0 ;
37807 PyObject * obj4 = 0 ;
37808 char * kwnames[] = {
37809 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37810 };
37811
37812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37814 if (!SWIG_IsOK(res1)) {
37815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37816 }
37817 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37818 {
37819 arg2 = wxString_in_helper(obj1);
37820 if (arg2 == NULL) SWIG_fail;
37821 temp2 = true;
37822 }
37823 ecode3 = SWIG_AsVal_int(obj2, &val3);
37824 if (!SWIG_IsOK(ecode3)) {
37825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37826 }
37827 arg3 = static_cast< int >(val3);
37828 ecode4 = SWIG_AsVal_int(obj3, &val4);
37829 if (!SWIG_IsOK(ecode4)) {
37830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37831 }
37832 arg4 = static_cast< int >(val4);
37833 ecode5 = SWIG_AsVal_double(obj4, &val5);
37834 if (!SWIG_IsOK(ecode5)) {
37835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37836 }
37837 arg5 = static_cast< double >(val5);
37838 {
37839 PyThreadState* __tstate = wxPyBeginAllowThreads();
37840 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37841 wxPyEndAllowThreads(__tstate);
37842 if (PyErr_Occurred()) SWIG_fail;
37843 }
37844 resultobj = SWIG_Py_Void();
37845 {
37846 if (temp2)
37847 delete arg2;
37848 }
37849 return resultobj;
37850fail:
37851 {
37852 if (temp2)
37853 delete arg2;
37854 }
37855 return NULL;
37856}
37857
37858
37859SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37860 PyObject *resultobj = 0;
37861 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37862 wxString *arg2 = 0 ;
37863 wxPoint *arg3 = 0 ;
37864 double arg4 ;
37865 void *argp1 = 0 ;
37866 int res1 = 0 ;
37867 bool temp2 = false ;
37868 wxPoint temp3 ;
37869 double val4 ;
37870 int ecode4 = 0 ;
37871 PyObject * obj0 = 0 ;
37872 PyObject * obj1 = 0 ;
37873 PyObject * obj2 = 0 ;
37874 PyObject * obj3 = 0 ;
37875 char * kwnames[] = {
37876 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37877 };
37878
37879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37881 if (!SWIG_IsOK(res1)) {
37882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37883 }
37884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37885 {
37886 arg2 = wxString_in_helper(obj1);
37887 if (arg2 == NULL) SWIG_fail;
37888 temp2 = true;
37889 }
37890 {
37891 arg3 = &temp3;
37892 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37893 }
37894 ecode4 = SWIG_AsVal_double(obj3, &val4);
37895 if (!SWIG_IsOK(ecode4)) {
37896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37897 }
37898 arg4 = static_cast< double >(val4);
37899 {
37900 PyThreadState* __tstate = wxPyBeginAllowThreads();
37901 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37902 wxPyEndAllowThreads(__tstate);
37903 if (PyErr_Occurred()) SWIG_fail;
37904 }
37905 resultobj = SWIG_Py_Void();
37906 {
37907 if (temp2)
37908 delete arg2;
37909 }
37910 return resultobj;
37911fail:
37912 {
37913 if (temp2)
37914 delete arg2;
37915 }
37916 return NULL;
37917}
37918
37919
37920SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37921 PyObject *resultobj = 0;
37922 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37923 int arg2 ;
37924 wxPoint *arg3 = (wxPoint *) 0 ;
37925 int arg4 = (int) 0 ;
37926 int arg5 = (int) 0 ;
37927 void *argp1 = 0 ;
37928 int res1 = 0 ;
37929 int val4 ;
37930 int ecode4 = 0 ;
37931 int val5 ;
37932 int ecode5 = 0 ;
37933 PyObject * obj0 = 0 ;
37934 PyObject * obj1 = 0 ;
37935 PyObject * obj2 = 0 ;
37936 PyObject * obj3 = 0 ;
37937 char * kwnames[] = {
37938 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37939 };
37940
37941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37943 if (!SWIG_IsOK(res1)) {
37944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37945 }
37946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37947 {
37948 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37949 if (arg3 == NULL) SWIG_fail;
37950 }
37951 if (obj2) {
37952 ecode4 = SWIG_AsVal_int(obj2, &val4);
37953 if (!SWIG_IsOK(ecode4)) {
37954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37955 }
37956 arg4 = static_cast< int >(val4);
37957 }
37958 if (obj3) {
37959 ecode5 = SWIG_AsVal_int(obj3, &val5);
37960 if (!SWIG_IsOK(ecode5)) {
37961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37962 }
37963 arg5 = static_cast< int >(val5);
37964 }
37965 {
37966 PyThreadState* __tstate = wxPyBeginAllowThreads();
37967 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37968 wxPyEndAllowThreads(__tstate);
37969 if (PyErr_Occurred()) SWIG_fail;
37970 }
37971 resultobj = SWIG_Py_Void();
37972 {
37973 if (arg3) delete [] arg3;
37974 }
37975 return resultobj;
37976fail:
37977 {
37978 if (arg3) delete [] arg3;
37979 }
37980 return NULL;
37981}
37982
37983
37984SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37985 PyObject *resultobj = 0;
37986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37987 int arg2 ;
37988 wxPoint *arg3 = (wxPoint *) 0 ;
37989 int arg4 = (int) 0 ;
37990 int arg5 = (int) 0 ;
37991 int arg6 = (int) wxODDEVEN_RULE ;
37992 void *argp1 = 0 ;
37993 int res1 = 0 ;
37994 int val4 ;
37995 int ecode4 = 0 ;
37996 int val5 ;
37997 int ecode5 = 0 ;
37998 int val6 ;
37999 int ecode6 = 0 ;
38000 PyObject * obj0 = 0 ;
38001 PyObject * obj1 = 0 ;
38002 PyObject * obj2 = 0 ;
38003 PyObject * obj3 = 0 ;
38004 PyObject * obj4 = 0 ;
38005 char * kwnames[] = {
38006 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38007 };
38008
38009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38013 }
38014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38015 {
38016 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38017 if (arg3 == NULL) SWIG_fail;
38018 }
38019 if (obj2) {
38020 ecode4 = SWIG_AsVal_int(obj2, &val4);
38021 if (!SWIG_IsOK(ecode4)) {
38022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38023 }
38024 arg4 = static_cast< int >(val4);
38025 }
38026 if (obj3) {
38027 ecode5 = SWIG_AsVal_int(obj3, &val5);
38028 if (!SWIG_IsOK(ecode5)) {
38029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38030 }
38031 arg5 = static_cast< int >(val5);
38032 }
38033 if (obj4) {
38034 ecode6 = SWIG_AsVal_int(obj4, &val6);
38035 if (!SWIG_IsOK(ecode6)) {
38036 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38037 }
38038 arg6 = static_cast< int >(val6);
38039 }
38040 {
38041 PyThreadState* __tstate = wxPyBeginAllowThreads();
38042 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38043 wxPyEndAllowThreads(__tstate);
38044 if (PyErr_Occurred()) SWIG_fail;
38045 }
38046 resultobj = SWIG_Py_Void();
38047 {
38048 if (arg3) delete [] arg3;
38049 }
38050 return resultobj;
38051fail:
38052 {
38053 if (arg3) delete [] arg3;
38054 }
38055 return NULL;
38056}
38057
38058
38059SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38060 PyObject *resultobj = 0;
38061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38062 wxString *arg2 = 0 ;
38063 wxRect *arg3 = 0 ;
38064 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38065 int arg5 = (int) -1 ;
38066 void *argp1 = 0 ;
38067 int res1 = 0 ;
38068 bool temp2 = false ;
38069 wxRect temp3 ;
38070 int val4 ;
38071 int ecode4 = 0 ;
38072 int val5 ;
38073 int ecode5 = 0 ;
38074 PyObject * obj0 = 0 ;
38075 PyObject * obj1 = 0 ;
38076 PyObject * obj2 = 0 ;
38077 PyObject * obj3 = 0 ;
38078 PyObject * obj4 = 0 ;
38079 char * kwnames[] = {
38080 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38081 };
38082
38083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38085 if (!SWIG_IsOK(res1)) {
38086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38087 }
38088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38089 {
38090 arg2 = wxString_in_helper(obj1);
38091 if (arg2 == NULL) SWIG_fail;
38092 temp2 = true;
38093 }
38094 {
38095 arg3 = &temp3;
38096 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38097 }
38098 if (obj3) {
38099 ecode4 = SWIG_AsVal_int(obj3, &val4);
38100 if (!SWIG_IsOK(ecode4)) {
38101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38102 }
38103 arg4 = static_cast< int >(val4);
38104 }
38105 if (obj4) {
38106 ecode5 = SWIG_AsVal_int(obj4, &val5);
38107 if (!SWIG_IsOK(ecode5)) {
38108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38109 }
38110 arg5 = static_cast< int >(val5);
38111 }
38112 {
38113 PyThreadState* __tstate = wxPyBeginAllowThreads();
38114 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38115 wxPyEndAllowThreads(__tstate);
38116 if (PyErr_Occurred()) SWIG_fail;
38117 }
38118 resultobj = SWIG_Py_Void();
38119 {
38120 if (temp2)
38121 delete arg2;
38122 }
38123 return resultobj;
38124fail:
38125 {
38126 if (temp2)
38127 delete arg2;
38128 }
38129 return NULL;
38130}
38131
38132
38133SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38134 PyObject *resultobj = 0;
38135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38136 wxString *arg2 = 0 ;
38137 wxBitmap *arg3 = 0 ;
38138 wxRect *arg4 = 0 ;
38139 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38140 int arg6 = (int) -1 ;
38141 void *argp1 = 0 ;
38142 int res1 = 0 ;
38143 bool temp2 = false ;
38144 void *argp3 = 0 ;
38145 int res3 = 0 ;
38146 wxRect temp4 ;
38147 int val5 ;
38148 int ecode5 = 0 ;
38149 int val6 ;
38150 int ecode6 = 0 ;
38151 PyObject * obj0 = 0 ;
38152 PyObject * obj1 = 0 ;
38153 PyObject * obj2 = 0 ;
38154 PyObject * obj3 = 0 ;
38155 PyObject * obj4 = 0 ;
38156 PyObject * obj5 = 0 ;
38157 char * kwnames[] = {
38158 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38159 };
38160
38161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38163 if (!SWIG_IsOK(res1)) {
38164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38165 }
38166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38167 {
38168 arg2 = wxString_in_helper(obj1);
38169 if (arg2 == NULL) SWIG_fail;
38170 temp2 = true;
38171 }
38172 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38173 if (!SWIG_IsOK(res3)) {
38174 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38175 }
38176 if (!argp3) {
38177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38178 }
38179 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38180 {
38181 arg4 = &temp4;
38182 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38183 }
38184 if (obj4) {
38185 ecode5 = SWIG_AsVal_int(obj4, &val5);
38186 if (!SWIG_IsOK(ecode5)) {
38187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38188 }
38189 arg5 = static_cast< int >(val5);
38190 }
38191 if (obj5) {
38192 ecode6 = SWIG_AsVal_int(obj5, &val6);
38193 if (!SWIG_IsOK(ecode6)) {
38194 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38195 }
38196 arg6 = static_cast< int >(val6);
38197 }
38198 {
38199 PyThreadState* __tstate = wxPyBeginAllowThreads();
38200 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38201 wxPyEndAllowThreads(__tstate);
38202 if (PyErr_Occurred()) SWIG_fail;
38203 }
38204 resultobj = SWIG_Py_Void();
38205 {
38206 if (temp2)
38207 delete arg2;
38208 }
38209 return resultobj;
38210fail:
38211 {
38212 if (temp2)
38213 delete arg2;
38214 }
38215 return NULL;
38216}
38217
38218
38219SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38220 PyObject *resultobj = 0;
38221 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38222 int arg2 ;
38223 wxPoint *arg3 = (wxPoint *) 0 ;
38224 void *argp1 = 0 ;
38225 int res1 = 0 ;
38226 PyObject * obj0 = 0 ;
38227 PyObject * obj1 = 0 ;
38228 char * kwnames[] = {
38229 (char *) "self",(char *) "points", NULL
38230 };
38231
38232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38234 if (!SWIG_IsOK(res1)) {
38235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38236 }
38237 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38238 {
38239 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38240 if (arg3 == NULL) SWIG_fail;
38241 }
38242 {
38243 PyThreadState* __tstate = wxPyBeginAllowThreads();
38244 (arg1)->DrawSpline(arg2,arg3);
38245 wxPyEndAllowThreads(__tstate);
38246 if (PyErr_Occurred()) SWIG_fail;
38247 }
38248 resultobj = SWIG_Py_Void();
38249 {
38250 if (arg3) delete [] arg3;
38251 }
38252 return resultobj;
38253fail:
38254 {
38255 if (arg3) delete [] arg3;
38256 }
38257 return NULL;
38258}
38259
38260
38261SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38262 PyObject *resultobj = 0;
38263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38264 void *argp1 = 0 ;
38265 int res1 = 0 ;
38266 PyObject *swig_obj[1] ;
38267
38268 if (!args) SWIG_fail;
38269 swig_obj[0] = args;
38270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38271 if (!SWIG_IsOK(res1)) {
38272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38273 }
38274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38275 {
38276 PyThreadState* __tstate = wxPyBeginAllowThreads();
38277 (arg1)->Clear();
38278 wxPyEndAllowThreads(__tstate);
38279 if (PyErr_Occurred()) SWIG_fail;
38280 }
38281 resultobj = SWIG_Py_Void();
38282 return resultobj;
38283fail:
38284 return NULL;
38285}
38286
38287
38288SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38289 PyObject *resultobj = 0;
38290 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38291 wxFont *arg2 = 0 ;
38292 void *argp1 = 0 ;
38293 int res1 = 0 ;
38294 void *argp2 = 0 ;
38295 int res2 = 0 ;
38296 PyObject * obj0 = 0 ;
38297 PyObject * obj1 = 0 ;
38298 char * kwnames[] = {
38299 (char *) "self",(char *) "font", NULL
38300 };
38301
38302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38304 if (!SWIG_IsOK(res1)) {
38305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38306 }
38307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38308 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38309 if (!SWIG_IsOK(res2)) {
38310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38311 }
38312 if (!argp2) {
38313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38314 }
38315 arg2 = reinterpret_cast< wxFont * >(argp2);
38316 {
38317 PyThreadState* __tstate = wxPyBeginAllowThreads();
38318 (arg1)->SetFont((wxFont const &)*arg2);
38319 wxPyEndAllowThreads(__tstate);
38320 if (PyErr_Occurred()) SWIG_fail;
38321 }
38322 resultobj = SWIG_Py_Void();
38323 return resultobj;
38324fail:
38325 return NULL;
38326}
38327
38328
38329SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38330 PyObject *resultobj = 0;
38331 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38332 wxPen *arg2 = 0 ;
38333 void *argp1 = 0 ;
38334 int res1 = 0 ;
38335 void *argp2 = 0 ;
38336 int res2 = 0 ;
38337 PyObject * obj0 = 0 ;
38338 PyObject * obj1 = 0 ;
38339 char * kwnames[] = {
38340 (char *) "self",(char *) "pen", NULL
38341 };
38342
38343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38345 if (!SWIG_IsOK(res1)) {
38346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38347 }
38348 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38349 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38350 if (!SWIG_IsOK(res2)) {
38351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38352 }
38353 if (!argp2) {
38354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38355 }
38356 arg2 = reinterpret_cast< wxPen * >(argp2);
38357 {
38358 PyThreadState* __tstate = wxPyBeginAllowThreads();
38359 (arg1)->SetPen((wxPen const &)*arg2);
38360 wxPyEndAllowThreads(__tstate);
38361 if (PyErr_Occurred()) SWIG_fail;
38362 }
38363 resultobj = SWIG_Py_Void();
38364 return resultobj;
38365fail:
38366 return NULL;
38367}
38368
38369
38370SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38371 PyObject *resultobj = 0;
38372 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38373 wxBrush *arg2 = 0 ;
38374 void *argp1 = 0 ;
38375 int res1 = 0 ;
38376 void *argp2 = 0 ;
38377 int res2 = 0 ;
38378 PyObject * obj0 = 0 ;
38379 PyObject * obj1 = 0 ;
38380 char * kwnames[] = {
38381 (char *) "self",(char *) "brush", NULL
38382 };
38383
38384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38386 if (!SWIG_IsOK(res1)) {
38387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38388 }
38389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38391 if (!SWIG_IsOK(res2)) {
38392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38393 }
38394 if (!argp2) {
38395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38396 }
38397 arg2 = reinterpret_cast< wxBrush * >(argp2);
38398 {
38399 PyThreadState* __tstate = wxPyBeginAllowThreads();
38400 (arg1)->SetBrush((wxBrush const &)*arg2);
38401 wxPyEndAllowThreads(__tstate);
38402 if (PyErr_Occurred()) SWIG_fail;
38403 }
38404 resultobj = SWIG_Py_Void();
38405 return resultobj;
38406fail:
38407 return NULL;
38408}
38409
38410
38411SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38412 PyObject *resultobj = 0;
38413 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38414 wxBrush *arg2 = 0 ;
38415 void *argp1 = 0 ;
38416 int res1 = 0 ;
38417 void *argp2 = 0 ;
38418 int res2 = 0 ;
38419 PyObject * obj0 = 0 ;
38420 PyObject * obj1 = 0 ;
38421 char * kwnames[] = {
38422 (char *) "self",(char *) "brush", NULL
38423 };
38424
38425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38427 if (!SWIG_IsOK(res1)) {
38428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38429 }
38430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38432 if (!SWIG_IsOK(res2)) {
38433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38434 }
38435 if (!argp2) {
38436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38437 }
38438 arg2 = reinterpret_cast< wxBrush * >(argp2);
38439 {
38440 PyThreadState* __tstate = wxPyBeginAllowThreads();
38441 (arg1)->SetBackground((wxBrush const &)*arg2);
38442 wxPyEndAllowThreads(__tstate);
38443 if (PyErr_Occurred()) SWIG_fail;
38444 }
38445 resultobj = SWIG_Py_Void();
38446 return resultobj;
38447fail:
38448 return NULL;
38449}
38450
38451
38452SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38453 PyObject *resultobj = 0;
38454 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38455 int arg2 ;
38456 void *argp1 = 0 ;
38457 int res1 = 0 ;
38458 int val2 ;
38459 int ecode2 = 0 ;
38460 PyObject * obj0 = 0 ;
38461 PyObject * obj1 = 0 ;
38462 char * kwnames[] = {
38463 (char *) "self",(char *) "mode", NULL
38464 };
38465
38466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38468 if (!SWIG_IsOK(res1)) {
38469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38470 }
38471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38472 ecode2 = SWIG_AsVal_int(obj1, &val2);
38473 if (!SWIG_IsOK(ecode2)) {
38474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38475 }
38476 arg2 = static_cast< int >(val2);
38477 {
38478 PyThreadState* __tstate = wxPyBeginAllowThreads();
38479 (arg1)->SetBackgroundMode(arg2);
38480 wxPyEndAllowThreads(__tstate);
38481 if (PyErr_Occurred()) SWIG_fail;
38482 }
38483 resultobj = SWIG_Py_Void();
38484 return resultobj;
38485fail:
38486 return NULL;
38487}
38488
38489
38490SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38491 PyObject *resultobj = 0;
38492 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38493 wxPalette *arg2 = 0 ;
38494 void *argp1 = 0 ;
38495 int res1 = 0 ;
38496 void *argp2 = 0 ;
38497 int res2 = 0 ;
38498 PyObject * obj0 = 0 ;
38499 PyObject * obj1 = 0 ;
38500 char * kwnames[] = {
38501 (char *) "self",(char *) "palette", NULL
38502 };
38503
38504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38506 if (!SWIG_IsOK(res1)) {
38507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38508 }
38509 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38511 if (!SWIG_IsOK(res2)) {
38512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38513 }
38514 if (!argp2) {
38515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38516 }
38517 arg2 = reinterpret_cast< wxPalette * >(argp2);
38518 {
38519 PyThreadState* __tstate = wxPyBeginAllowThreads();
38520 (arg1)->SetPalette((wxPalette const &)*arg2);
38521 wxPyEndAllowThreads(__tstate);
38522 if (PyErr_Occurred()) SWIG_fail;
38523 }
38524 resultobj = SWIG_Py_Void();
38525 return resultobj;
38526fail:
38527 return NULL;
38528}
38529
38530
38531SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38532 PyObject *resultobj = 0;
38533 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38534 wxColour *arg2 = 0 ;
38535 void *argp1 = 0 ;
38536 int res1 = 0 ;
38537 wxColour temp2 ;
38538 PyObject * obj0 = 0 ;
38539 PyObject * obj1 = 0 ;
38540 char * kwnames[] = {
38541 (char *) "self",(char *) "colour", NULL
38542 };
38543
38544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38546 if (!SWIG_IsOK(res1)) {
38547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38548 }
38549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38550 {
38551 arg2 = &temp2;
38552 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38553 }
38554 {
38555 PyThreadState* __tstate = wxPyBeginAllowThreads();
38556 (arg1)->SetTextForeground((wxColour const &)*arg2);
38557 wxPyEndAllowThreads(__tstate);
38558 if (PyErr_Occurred()) SWIG_fail;
38559 }
38560 resultobj = SWIG_Py_Void();
38561 return resultobj;
38562fail:
38563 return NULL;
38564}
38565
38566
38567SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38568 PyObject *resultobj = 0;
38569 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38570 wxColour *arg2 = 0 ;
38571 void *argp1 = 0 ;
38572 int res1 = 0 ;
38573 wxColour temp2 ;
38574 PyObject * obj0 = 0 ;
38575 PyObject * obj1 = 0 ;
38576 char * kwnames[] = {
38577 (char *) "self",(char *) "colour", NULL
38578 };
38579
38580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38582 if (!SWIG_IsOK(res1)) {
38583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38584 }
38585 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38586 {
38587 arg2 = &temp2;
38588 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38589 }
38590 {
38591 PyThreadState* __tstate = wxPyBeginAllowThreads();
38592 (arg1)->SetTextBackground((wxColour const &)*arg2);
38593 wxPyEndAllowThreads(__tstate);
38594 if (PyErr_Occurred()) SWIG_fail;
38595 }
38596 resultobj = SWIG_Py_Void();
38597 return resultobj;
38598fail:
38599 return NULL;
38600}
38601
38602
38603SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38604 PyObject *resultobj = 0;
38605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38606 int arg2 ;
38607 void *argp1 = 0 ;
38608 int res1 = 0 ;
38609 int val2 ;
38610 int ecode2 = 0 ;
38611 PyObject * obj0 = 0 ;
38612 PyObject * obj1 = 0 ;
38613 char * kwnames[] = {
38614 (char *) "self",(char *) "function", NULL
38615 };
38616
38617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38619 if (!SWIG_IsOK(res1)) {
38620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38621 }
38622 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38623 ecode2 = SWIG_AsVal_int(obj1, &val2);
38624 if (!SWIG_IsOK(ecode2)) {
38625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38626 }
38627 arg2 = static_cast< int >(val2);
38628 {
38629 PyThreadState* __tstate = wxPyBeginAllowThreads();
38630 (arg1)->SetLogicalFunction(arg2);
38631 wxPyEndAllowThreads(__tstate);
38632 if (PyErr_Occurred()) SWIG_fail;
38633 }
38634 resultobj = SWIG_Py_Void();
38635 return resultobj;
38636fail:
38637 return NULL;
38638}
38639
38640
38641SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38642 PyObject *obj;
38643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38644 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38645 return SWIG_Py_Void();
38646}
38647
38648SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38649 return SWIG_Python_InitShadowInstance(args);
38650}
38651
38652static PyMethodDef SwigMethods[] = {
38653 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38654 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38655 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38656 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38657 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38658 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38662 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38663 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38664 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38665 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38666 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38667 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38672 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38674 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38675 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38676 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38677 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38678 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38680 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38683 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38684 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38685 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38686 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38688 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38689 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38690 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38691 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38692 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38693 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38694 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38701 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38705 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38706 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38709 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38713 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38714 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38715 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38716 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38717 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38718 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38720 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38721 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38723 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38728 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38729 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38730 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38731 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38732 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38733 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38734 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38735 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38741 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38746 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38748 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38751 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38752 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38756 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38757 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38758 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38759 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38760 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38761 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38762 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38763 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38764 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38765 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38766 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38767 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38768 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38769 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38770 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38772 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38773 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38779 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38780 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38781 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38782 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38783 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38784 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38785 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38786 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38787 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38788 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38789 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38790 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38792 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38793 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38799 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38800 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38801 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38803 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38804 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38805 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38807 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38808 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38811 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38812 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38813 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38814 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38815 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38820 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38821 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38823 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38824 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38826 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38828 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38829 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38830 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38831 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38834 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38838 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38839 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38841 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38843 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38844 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38845 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38846 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38851 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38852 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38858 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38862 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38863 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38873 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38876 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38877 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38879 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38880 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38881 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38882 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38883 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38884 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38885 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38886 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38887 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38888 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38889 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38890 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38891 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38892 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38893 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38894 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38895 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38897 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38898 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38899 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38900 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38901 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38902 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38903 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38912 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38913 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38915 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38916 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38917 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38918 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38919 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38920 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38921 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38922 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38923 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38925 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38926 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38927 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38930 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38931 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38932 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38935 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38941 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38946 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38947 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38949 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38954 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38955 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38956 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38958 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38959 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38960 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38961 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38962 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38963 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38964 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38965 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38966 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38967 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38968 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38969 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38970 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38982 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38983 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38984 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38986 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38987 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38989 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38990 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38991 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38992 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38995 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38996 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38997 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38998 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38999 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39000 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39001 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39002 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39003 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39004 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39005 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39006 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39007 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39009 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39012 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39013 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39014 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39015 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39016 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39017 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39018 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39019 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39021 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39022 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39029 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39030 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39031 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39033 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39037 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39038 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39039 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39040 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39041 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39042 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39048 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39049 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39050 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39089 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39090 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39100 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39102 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39103 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39104 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39111 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39112 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39113 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39114 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39115 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39120 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39121 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39122 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39123 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39132 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39133 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39134 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39135 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
39136 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39137 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39138 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39139 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39140 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39141 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39142 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39143 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39146 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39148 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39150 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39152 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39153 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39156 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39157 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39161 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39163 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39166 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39167 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39168 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39169 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39170 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39171 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39172 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39173 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39180 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39182 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39183 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39184 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39186 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39187 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39188 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39190 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39191 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39192 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39193 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39194 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39195 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39196 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39197 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39200 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39201 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39202 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39204 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39205 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39207 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39208 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39210 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39211 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39216 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39217 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39218 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39219 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39220 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39222 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39223 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39224 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39226 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39227 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39229 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39230 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39231 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39233 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39234 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39236 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39239 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39240 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39241 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39243 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39244 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39246 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39247 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39248 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39249 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39250 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39252 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39253 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39254 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39256 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39257 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39259 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39260 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39261 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39262 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39263 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39264 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39265 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39266 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39267 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39268 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39269 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39270 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39271 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39272 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39273 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39274 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39275 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39276 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39277 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39278 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39279 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39280 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39281 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39283 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39289 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39290 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39291 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39292 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39293 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39294 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39295 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39296 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39297 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39298 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39299 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39300 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39304 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39307 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39310 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39311 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39312 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39313 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39314 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39315 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39316 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39317 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39318 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39319 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39325 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39326 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39327 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39328 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39329 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39330 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
39331 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39332 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39333 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39336 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39339 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39340 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39341 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39342 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39345 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39347 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39348 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39353 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39354 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39355 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39359 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39360 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39361 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39362 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39363 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39364 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39365 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39368 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39375 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39376 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39377 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39378 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39379 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39380 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39381 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39382 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39383 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39384 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39385 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39386 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39387 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39388 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39389 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39390 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39391 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39393 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39401 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39403 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39405 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39406 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39407 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39408 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39409 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39410 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39416 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39417 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39418 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39419 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39420 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39421 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39422 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39423 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39424 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39425 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39426 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39427 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39428 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39429 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39433 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39434 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39435 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39440 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39441 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39442 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39443 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39444 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39445 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39446 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39447 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39448 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39449 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39450 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39451 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39460 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39461 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39463 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39464 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39465 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39466 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39467 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39468 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39469 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39470 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39471 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39472 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39473 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39474 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39475 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39476 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39477 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39478 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39479 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39480 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39481 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39482 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39483 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39484 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39485 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39486 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39488 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39490 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39491 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39492 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39493 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39494 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39496 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39501 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39504 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39506 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39507 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39508 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39510 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39511 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39512 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39513 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39514 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39515 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39516 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39517 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39518 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39521 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39525 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39570 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39580 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39581 { NULL, NULL, 0, NULL }
39582};
39583
39584
39585/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39586
72ef6efb
RD
39587static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39588 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39589}
8e99bda9
RD
39590static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39591 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39592}
39593static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39594 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39595}
26c4d26f
RD
39596static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39597 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39598}
39599static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39600 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39601}
72ef6efb
RD
39602static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39603 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39604}
39605static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39606 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39607}
26c4d26f
RD
39608static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39609 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39610}
fc46b7f3
RD
39611static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39612 return (void *)((wxLocale *) ((wxPyLocale *) x));
39613}
70d7cb34
RD
39614static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39615 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39616}
39617static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39618 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39619}
39620static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39621 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39622}
39623static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39624 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39625}
39626static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39627 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39628}
39629static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39630 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39631}
1bd55598
RD
39632static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39633 return (void *)((wxGDIObject *) ((wxIcon *) x));
39634}
39635static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39636 return (void *)((wxGDIObject *) ((wxPalette *) x));
39637}
39638static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39639 return (void *)((wxGDIObject *) ((wxPen *) x));
39640}
39641static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39642 return (void *)((wxGDIObject *) ((wxFont *) x));
39643}
39644static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39645 return (void *)((wxGDIObject *) ((wxCursor *) x));
39646}
39647static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39648 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39649}
39650static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39651 return (void *)((wxGDIObject *) ((wxRegion *) x));
39652}
39653static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39654 return (void *)((wxGDIObject *) ((wxBrush *) x));
39655}
72ef6efb
RD
39656static void *_p_wxGCDCTo_p_wxDC(void *x) {
39657 return (void *)((wxDC *) ((wxGCDC *) x));
39658}
1bd55598
RD
39659static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39660 return (void *)((wxDC *) ((wxScreenDC *) x));
39661}
24f6c4e8 39662static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39663 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39664}
1bd55598
RD
39665static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39666 return (void *)((wxDC *) ((wxMirrorDC *) x));
39667}
1bd55598
RD
39668static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39669 return (void *)((wxDC *) ((wxWindowDC *) x));
39670}
26c4d26f
RD
39671static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39672 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39673}
1bd55598
RD
39674static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39675 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39676}
1bd55598 39677static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39678 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39679}
39680static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39681 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39682}
24f6c4e8 39683static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39684 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39685}
39686static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39687 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39688}
1bd55598
RD
39689static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39690 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39691}
39692static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39693 return (void *)((wxDC *) ((wxPrinterDC *) x));
39694}
da91cb0f
RD
39695static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39696 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39697}
39698static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39699 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39700}
39701static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39702 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39703}
1bd55598
RD
39704static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39705 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39706}
39707static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39708 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39709}
39710static void *_p_wxPenTo_p_wxObject(void *x) {
39711 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39712}
39713static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39714 return (void *)((wxObject *) ((wxRegionIterator *) x));
39715}
1bd55598
RD
39716static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39717 return (void *)((wxObject *) ((wxSizerItem *) x));
39718}
34e0a3bb
RD
39719static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39720 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39721}
1bd55598
RD
39722static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39723 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39724}
39725static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39726 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39727}
39728static void *_p_wxIconTo_p_wxObject(void *x) {
39729 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39730}
39731static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39732 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39733}
39734static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39735 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39736}
39737static void *_p_wxSizerTo_p_wxObject(void *x) {
39738 return (void *)((wxObject *) ((wxSizer *) x));
39739}
39740static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39741 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39742}
39743static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39745}
1bd55598
RD
39746static void *_p_wxEventTo_p_wxObject(void *x) {
39747 return (void *)((wxObject *) ((wxEvent *) x));
39748}
39749static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39750 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39751}
39752static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39753 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39754}
39755static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39756 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39757}
27e45892
RD
39758static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39759 return (void *)((wxObject *) ((wxPseudoDC *) x));
39760}
2131d850
RD
39761static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39762 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39763}
1bd55598
RD
39764static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39765 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39766}
39767static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39768 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39769}
39770static void *_p_wxDCTo_p_wxObject(void *x) {
39771 return (void *)((wxObject *) ((wxDC *) x));
39772}
39773static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39774 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39775}
39776static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39777 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39778}
39779static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39780 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39781}
39782static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39783 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39784}
39785static void *_p_wxControlTo_p_wxObject(void *x) {
39786 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39787}
70d7cb34
RD
39788static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39789 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39790}
1bd55598
RD
39791static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39792 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39793}
39794static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39795 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39796}
39797static void *_p_wxFSFileTo_p_wxObject(void *x) {
39798 return (void *)((wxObject *) ((wxFSFile *) x));
39799}
39800static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39801 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39802}
39803static void *_p_wxRegionTo_p_wxObject(void *x) {
39804 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39805}
39806static void *_p_wxPySizerTo_p_wxObject(void *x) {
39807 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39808}
39809static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39810 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39811}
39812static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39813 return (void *)((wxObject *) ((wxGDIObject *) x));
39814}
70d7cb34
RD
39815static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39816 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39817}
39818static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39819 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39820}
1bd55598
RD
39821static void *_p_wxEffectsTo_p_wxObject(void *x) {
39822 return (void *)((wxObject *) ((wxEffects *) x));
39823}
39824static void *_p_wxPyEventTo_p_wxObject(void *x) {
39825 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39826}
39827static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39828 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39829}
39830static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39831 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39832}
70d7cb34
RD
39833static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39834 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39835}
1bd55598
RD
39836static void *_p_wxShowEventTo_p_wxObject(void *x) {
39837 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39838}
39839static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39840 return (void *)((wxObject *) ((wxMenuItem *) x));
39841}
39842static void *_p_wxDateEventTo_p_wxObject(void *x) {
39843 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39844}
39845static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39846 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39847}
39848static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39849 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39850}
39851static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39852 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39853}
39854static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39855 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39856}
39857static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39858 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39859}
39860static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39861 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39862}
39863static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39864 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39865}
39866static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39867 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39868}
39869static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39870 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39871}
39872static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39873 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39874}
39875static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39876 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39877}
39878static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39879 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39880}
39881static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39882 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39883}
39884static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39885 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39886}
39887static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39888 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39889}
39890static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39891 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39892}
39893static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39894 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39895}
39896static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39897 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39898}
39899static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39900 return (void *)((wxObject *) ((wxImageHandler *) x));
39901}
39902static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39903 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39904}
39905static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39906 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39907}
580080c5
RD
39908static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39909 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39910}
1bd55598
RD
39911static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39912 return (void *)((wxObject *) ((wxEvtHandler *) x));
39913}
34e0a3bb
RD
39914static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39915 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39916}
24f6c4e8
RD
39917static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39918 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39919}
1bd55598 39920static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39921 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39922}
24f6c4e8
RD
39923static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39924 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39925}
39926static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39927 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39928}
39929static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39930 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39931}
1bd55598
RD
39932static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39933 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39934}
580080c5
RD
39935static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39936 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39937}
1bd55598
RD
39938static void *_p_wxImageTo_p_wxObject(void *x) {
39939 return (void *)((wxObject *) ((wxImage *) x));
39940}
39941static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39942 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39943}
70d7cb34
RD
39944static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39945 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39946}
39947static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39948 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39949}
1bd55598
RD
39950static void *_p_wxPaletteTo_p_wxObject(void *x) {
39951 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39952}
39953static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39954 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39955}
39956static void *_p_wxImageListTo_p_wxObject(void *x) {
39957 return (void *)((wxObject *) ((wxImageList *) x));
39958}
72ef6efb
RD
39959static void *_p_wxGCDCTo_p_wxObject(void *x) {
39960 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39961}
1bd55598
RD
39962static void *_p_wxCursorTo_p_wxObject(void *x) {
39963 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39964}
39965static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39966 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39967}
39968static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39969 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39970}
70d7cb34
RD
39971static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39972 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39973}
1bd55598
RD
39974static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39975 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39976}
39977static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39978 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39979}
39980static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39981 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39982}
39983static void *_p_wxWindowTo_p_wxObject(void *x) {
39984 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39985}
39986static void *_p_wxMenuTo_p_wxObject(void *x) {
39987 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39988}
39989static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39991}
39992static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39993 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39994}
1bd55598
RD
39995static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39996 return (void *)((wxObject *) ((wxFileSystem *) x));
39997}
39998static void *_p_wxBitmapTo_p_wxObject(void *x) {
39999 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40000}
40001static void *_p_wxMaskTo_p_wxObject(void *x) {
40002 return (void *)((wxObject *) ((wxMask *) x));
40003}
70d7cb34
RD
40004static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40005 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40006}
1bd55598
RD
40007static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40008 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40009}
40010static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40011 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40012}
40013static void *_p_wxPyAppTo_p_wxObject(void *x) {
40014 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40015}
40016static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40017 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40018}
40019static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40020 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40021}
40022static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40023 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40024}
40025static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40026 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40027}
40028static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40029 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40030}
40031static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40032 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40033}
40034static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40035 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40036}
40037static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40038 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40039}
40040static void *_p_wxFontTo_p_wxObject(void *x) {
40041 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40042}
40043static void *_p_wxBrushTo_p_wxObject(void *x) {
40044 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40045}
40046static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40047 return (void *)((wxObject *) ((wxMetaFile *) x));
40048}
40049static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40051}
40052static void *_p_wxColourTo_p_wxObject(void *x) {
40053 return (void *)((wxObject *) ((wxColour *) x));
40054}
1bd55598
RD
40055static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40056 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40057}
40058static void *_p_wxValidatorTo_p_wxObject(void *x) {
40059 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40060}
40061static void *_p_wxControlTo_p_wxWindow(void *x) {
40062 return (void *)((wxWindow *) ((wxControl *) x));
40063}
40064static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40065 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40066}
40067static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40068 return (void *)((wxWindow *) ((wxMenuBar *) x));
40069}
fc46b7f3
RD
40070static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40071 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40072}
40073static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40074 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40075}
40076static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 40077static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40078static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40079static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40080static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40081static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40082static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40083static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40084static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40085static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40086static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40087static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
40088static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40089static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40090static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40091static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40092static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40093static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598
RD
40094static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40095static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40096static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40097static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40098static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40099static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40100static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40101static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40102static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40103static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
40104static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40105static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40106static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40107static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40108static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40109static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40110static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40111static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 40112static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 40113static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40114static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40115static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40116static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40117static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40118static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40119static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40120static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40121static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40122static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
40123static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40124static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40125static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40126static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40127static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40128static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40129static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40130static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40131static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40132static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40133static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40134static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40135static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40136static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40137static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40138static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
40139static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40140static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 40141static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 40142static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
40143static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40144static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40145static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40146static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40147static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40148static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40149static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40150static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40151static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40152static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40153static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40154static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40155static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
40156static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40157static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40158static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40159static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40160static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40161static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40162static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40163static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40164static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40165static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40166static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40167static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40168static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40169static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40170static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40171static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40172static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40173static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40174static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40175static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40176static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40177static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40178static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 40179static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40180static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40181static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40182static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40183static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40184static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40185static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40186static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40187static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40188static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40189static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40190static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40191static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40192static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40193static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40194static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40195static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40196static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40197static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40198static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40199static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40200static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40201static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40202static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40203static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40204static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40205static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40206static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40207static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40208static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40209static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40210static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40211static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40212static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40213static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40214static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40215static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40216static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40217static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40218static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40219static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40220static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40221static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40222static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40223static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40224static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40225static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40226static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40227static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40228static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40229static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40230static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40231static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40232static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40233static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40234static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40235static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40236static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40237static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40238static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40239static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40240static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40241static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40242static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40243static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40244static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40245
40246static swig_type_info *swig_type_initial[] = {
fc46b7f3 40247 &_swigt__p_buffer,
1bd55598
RD
40248 &_swigt__p_char,
40249 &_swigt__p_double,
40250 &_swigt__p_form_ops_t,
40251 &_swigt__p_int,
40252 &_swigt__p_unsigned_char,
40253 &_swigt__p_unsigned_int,
40254 &_swigt__p_unsigned_long,
0a27f394 40255 &_swigt__p_void,
1bd55598
RD
40256 &_swigt__p_wxANIHandler,
40257 &_swigt__p_wxAcceleratorTable,
40258 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40259 &_swigt__p_wxAlphaPixelData,
40260 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40261 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40262 &_swigt__p_wxBMPHandler,
40263 &_swigt__p_wxBitmap,
40264 &_swigt__p_wxBoxSizer,
40265 &_swigt__p_wxBrush,
40266 &_swigt__p_wxBrushList,
40267 &_swigt__p_wxBufferedDC,
40268 &_swigt__p_wxBufferedPaintDC,
40269 &_swigt__p_wxCURHandler,
fc46b7f3 40270 &_swigt__p_wxChar,
1bd55598
RD
40271 &_swigt__p_wxChildFocusEvent,
40272 &_swigt__p_wxClientDC,
2131d850 40273 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
40274 &_swigt__p_wxCloseEvent,
40275 &_swigt__p_wxColour,
40276 &_swigt__p_wxColourDatabase,
40277 &_swigt__p_wxCommandEvent,
40278 &_swigt__p_wxContextMenuEvent,
40279 &_swigt__p_wxControl,
40280 &_swigt__p_wxControlWithItems,
40281 &_swigt__p_wxCursor,
40282 &_swigt__p_wxDC,
70d7cb34
RD
40283 &_swigt__p_wxDCBrushChanger,
40284 &_swigt__p_wxDCClipper,
b39fe951 40285 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40286 &_swigt__p_wxDCPenChanger,
40287 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40288 &_swigt__p_wxDash,
40289 &_swigt__p_wxDateEvent,
40290 &_swigt__p_wxDisplayChangedEvent,
40291 &_swigt__p_wxDropFilesEvent,
40292 &_swigt__p_wxDuplexMode,
40293 &_swigt__p_wxEffects,
40294 &_swigt__p_wxEncodingConverter,
40295 &_swigt__p_wxEraseEvent,
40296 &_swigt__p_wxEvent,
40297 &_swigt__p_wxEvtHandler,
40298 &_swigt__p_wxFSFile,
40299 &_swigt__p_wxFileSystem,
40300 &_swigt__p_wxFlexGridSizer,
40301 &_swigt__p_wxFocusEvent,
40302 &_swigt__p_wxFont,
40303 &_swigt__p_wxFontList,
40304 &_swigt__p_wxFontMapper,
40305 &_swigt__p_wxGBSizerItem,
72ef6efb 40306 &_swigt__p_wxGCDC,
da91cb0f 40307 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40308 &_swigt__p_wxGDIObject,
40309 &_swigt__p_wxGIFHandler,
70d7cb34 40310 &_swigt__p_wxGraphicsBrush,
72ef6efb 40311 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40312 &_swigt__p_wxGraphicsFont,
40313 &_swigt__p_wxGraphicsMatrix,
40314 &_swigt__p_wxGraphicsObject,
72ef6efb 40315 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40316 &_swigt__p_wxGraphicsPen,
40317 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40318 &_swigt__p_wxGridBagSizer,
40319 &_swigt__p_wxGridSizer,
33d6fd3b 40320 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40321 &_swigt__p_wxICOHandler,
40322 &_swigt__p_wxIcon,
40323 &_swigt__p_wxIconBundle,
40324 &_swigt__p_wxIconLocation,
40325 &_swigt__p_wxIconizeEvent,
40326 &_swigt__p_wxIdleEvent,
40327 &_swigt__p_wxImage,
40328 &_swigt__p_wxImageHandler,
40329 &_swigt__p_wxImageList,
40330 &_swigt__p_wxIndividualLayoutConstraint,
40331 &_swigt__p_wxInitDialogEvent,
40332 &_swigt__p_wxJPEGHandler,
40333 &_swigt__p_wxKeyEvent,
40334 &_swigt__p_wxLanguageInfo,
40335 &_swigt__p_wxLayoutConstraints,
40336 &_swigt__p_wxLocale,
40337 &_swigt__p_wxMask,
40338 &_swigt__p_wxMaximizeEvent,
40339 &_swigt__p_wxMemoryDC,
40340 &_swigt__p_wxMenu,
40341 &_swigt__p_wxMenuBar,
40342 &_swigt__p_wxMenuEvent,
40343 &_swigt__p_wxMenuItem,
40344 &_swigt__p_wxMetaFile,
40345 &_swigt__p_wxMetaFileDC,
40346 &_swigt__p_wxMirrorDC,
40347 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40348 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40349 &_swigt__p_wxMouseEvent,
40350 &_swigt__p_wxMoveEvent,
40351 &_swigt__p_wxNativeEncodingInfo,
40352 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40353 &_swigt__p_wxNativePixelData,
40354 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40355 &_swigt__p_wxNavigationKeyEvent,
40356 &_swigt__p_wxNcPaintEvent,
40357 &_swigt__p_wxNotifyEvent,
40358 &_swigt__p_wxObject,
b39fe951 40359 &_swigt__p_wxOverlay,
1bd55598
RD
40360 &_swigt__p_wxPCXHandler,
40361 &_swigt__p_wxPNGHandler,
40362 &_swigt__p_wxPNMHandler,
40363 &_swigt__p_wxPaintDC,
40364 &_swigt__p_wxPaintEvent,
40365 &_swigt__p_wxPalette,
40366 &_swigt__p_wxPaletteChangedEvent,
40367 &_swigt__p_wxPaperSize,
40368 &_swigt__p_wxPen,
40369 &_swigt__p_wxPenList,
fc46b7f3 40370 &_swigt__p_wxPixelDataBase,
1bd55598 40371 &_swigt__p_wxPoint,
72ef6efb 40372 &_swigt__p_wxPoint2D,
1bd55598
RD
40373 &_swigt__p_wxPostScriptDC,
40374 &_swigt__p_wxPrintData,
40375 &_swigt__p_wxPrinterDC,
27e45892 40376 &_swigt__p_wxPseudoDC,
1bd55598
RD
40377 &_swigt__p_wxPyApp,
40378 &_swigt__p_wxPyCommandEvent,
40379 &_swigt__p_wxPyEvent,
40380 &_swigt__p_wxPyFontEnumerator,
40381 &_swigt__p_wxPyImageHandler,
fc46b7f3 40382 &_swigt__p_wxPyLocale,
1bd55598
RD
40383 &_swigt__p_wxPySizer,
40384 &_swigt__p_wxPyValidator,
40385 &_swigt__p_wxQueryNewPaletteEvent,
40386 &_swigt__p_wxRect,
4fe9ce47 40387 &_swigt__p_wxRect2D,
1bd55598
RD
40388 &_swigt__p_wxRegion,
40389 &_swigt__p_wxRegionIterator,
40390 &_swigt__p_wxRendererNative,
40391 &_swigt__p_wxRendererVersion,
40392 &_swigt__p_wxScreenDC,
40393 &_swigt__p_wxScrollEvent,
40394 &_swigt__p_wxScrollWinEvent,
40395 &_swigt__p_wxSetCursorEvent,
40396 &_swigt__p_wxShowEvent,
40397 &_swigt__p_wxSize,
40398 &_swigt__p_wxSizeEvent,
40399 &_swigt__p_wxSizer,
40400 &_swigt__p_wxSizerItem,
40401 &_swigt__p_wxSplitterRenderParams,
40402 &_swigt__p_wxStaticBoxSizer,
40403 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40404 &_swigt__p_wxStockGDI,
1bd55598
RD
40405 &_swigt__p_wxString,
40406 &_swigt__p_wxSysColourChangedEvent,
580080c5 40407 &_swigt__p_wxTGAHandler,
1bd55598
RD
40408 &_swigt__p_wxTIFFHandler,
40409 &_swigt__p_wxUpdateUIEvent,
40410 &_swigt__p_wxValidator,
40411 &_swigt__p_wxWindow,
40412 &_swigt__p_wxWindowCreateEvent,
40413 &_swigt__p_wxWindowDC,
40414 &_swigt__p_wxWindowDestroyEvent,
40415 &_swigt__p_wxXPMHandler,
40416};
40417
fc46b7f3 40418static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40419static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40420static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40421static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40422static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40423static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40424static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40425static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40426static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40427static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40428static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40429static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40430static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40431static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40432static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40433static 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}};
40434static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40435static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40436static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40437static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40438static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40439static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40440static 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
40441static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40442static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40443static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40444static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40445static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40446static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40447static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40448static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40449static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40450static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40451static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40452static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40453static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40454static 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 40455static 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 40456static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40457static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40458static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40459static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40460static 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 40461static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40462static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40463static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40464static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40465static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40466static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40467static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40468static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40469static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40470static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40471static 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 40472static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40473static 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
40474static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40475static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40476static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40477static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40478static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40479static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40480static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40481static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40482static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40483static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40484static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40485static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40486static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40487static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40488static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40489static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40490static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40491static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40492static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40493static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40494static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40495static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40496static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40497static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40498static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40499static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40500static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40501static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40502static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40503static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40504static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40505static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40506static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40507static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40508static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40509static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40510static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40511static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40512static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40513static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40514static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40515static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40516static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40517static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40518static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40519static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40520static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40521static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40522static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40523static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40524static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40525static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40526static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40527static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40528static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40529static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40530static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40531static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40532static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40533static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40534static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40535static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40536static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40537static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40538static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40539static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40540static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40541static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40542static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40543static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40544static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40545static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40546static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40547static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40548static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40549static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40550static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40551static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40552static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40553static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40554static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40555static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40556static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40557static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40558static 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 40559static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40560static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40561static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40562static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40563static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40564static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40565static 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 40566static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40567static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40568static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40569static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40570static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40571static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40572static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40573static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40574static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 40575static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40576static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40577static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40578static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40579static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40580static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40581static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40582static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40583static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40584static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40585static 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 40586static 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
40587
40588static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40589 _swigc__p_buffer,
1bd55598
RD
40590 _swigc__p_char,
40591 _swigc__p_double,
40592 _swigc__p_form_ops_t,
40593 _swigc__p_int,
40594 _swigc__p_unsigned_char,
40595 _swigc__p_unsigned_int,
40596 _swigc__p_unsigned_long,
0a27f394 40597 _swigc__p_void,
1bd55598
RD
40598 _swigc__p_wxANIHandler,
40599 _swigc__p_wxAcceleratorTable,
40600 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40601 _swigc__p_wxAlphaPixelData,
40602 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40603 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40604 _swigc__p_wxBMPHandler,
40605 _swigc__p_wxBitmap,
40606 _swigc__p_wxBoxSizer,
40607 _swigc__p_wxBrush,
40608 _swigc__p_wxBrushList,
40609 _swigc__p_wxBufferedDC,
40610 _swigc__p_wxBufferedPaintDC,
40611 _swigc__p_wxCURHandler,
fc46b7f3 40612 _swigc__p_wxChar,
1bd55598
RD
40613 _swigc__p_wxChildFocusEvent,
40614 _swigc__p_wxClientDC,
2131d850 40615 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
40616 _swigc__p_wxCloseEvent,
40617 _swigc__p_wxColour,
40618 _swigc__p_wxColourDatabase,
40619 _swigc__p_wxCommandEvent,
40620 _swigc__p_wxContextMenuEvent,
40621 _swigc__p_wxControl,
40622 _swigc__p_wxControlWithItems,
40623 _swigc__p_wxCursor,
40624 _swigc__p_wxDC,
70d7cb34
RD
40625 _swigc__p_wxDCBrushChanger,
40626 _swigc__p_wxDCClipper,
b39fe951 40627 _swigc__p_wxDCOverlay,
70d7cb34
RD
40628 _swigc__p_wxDCPenChanger,
40629 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40630 _swigc__p_wxDash,
40631 _swigc__p_wxDateEvent,
40632 _swigc__p_wxDisplayChangedEvent,
40633 _swigc__p_wxDropFilesEvent,
40634 _swigc__p_wxDuplexMode,
40635 _swigc__p_wxEffects,
40636 _swigc__p_wxEncodingConverter,
40637 _swigc__p_wxEraseEvent,
40638 _swigc__p_wxEvent,
40639 _swigc__p_wxEvtHandler,
40640 _swigc__p_wxFSFile,
40641 _swigc__p_wxFileSystem,
40642 _swigc__p_wxFlexGridSizer,
40643 _swigc__p_wxFocusEvent,
40644 _swigc__p_wxFont,
40645 _swigc__p_wxFontList,
40646 _swigc__p_wxFontMapper,
40647 _swigc__p_wxGBSizerItem,
72ef6efb 40648 _swigc__p_wxGCDC,
da91cb0f 40649 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40650 _swigc__p_wxGDIObject,
40651 _swigc__p_wxGIFHandler,
70d7cb34 40652 _swigc__p_wxGraphicsBrush,
72ef6efb 40653 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40654 _swigc__p_wxGraphicsFont,
40655 _swigc__p_wxGraphicsMatrix,
40656 _swigc__p_wxGraphicsObject,
72ef6efb 40657 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40658 _swigc__p_wxGraphicsPen,
40659 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40660 _swigc__p_wxGridBagSizer,
40661 _swigc__p_wxGridSizer,
33d6fd3b 40662 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40663 _swigc__p_wxICOHandler,
40664 _swigc__p_wxIcon,
40665 _swigc__p_wxIconBundle,
40666 _swigc__p_wxIconLocation,
40667 _swigc__p_wxIconizeEvent,
40668 _swigc__p_wxIdleEvent,
40669 _swigc__p_wxImage,
40670 _swigc__p_wxImageHandler,
40671 _swigc__p_wxImageList,
40672 _swigc__p_wxIndividualLayoutConstraint,
40673 _swigc__p_wxInitDialogEvent,
40674 _swigc__p_wxJPEGHandler,
40675 _swigc__p_wxKeyEvent,
40676 _swigc__p_wxLanguageInfo,
40677 _swigc__p_wxLayoutConstraints,
40678 _swigc__p_wxLocale,
40679 _swigc__p_wxMask,
40680 _swigc__p_wxMaximizeEvent,
40681 _swigc__p_wxMemoryDC,
40682 _swigc__p_wxMenu,
40683 _swigc__p_wxMenuBar,
40684 _swigc__p_wxMenuEvent,
40685 _swigc__p_wxMenuItem,
40686 _swigc__p_wxMetaFile,
40687 _swigc__p_wxMetaFileDC,
40688 _swigc__p_wxMirrorDC,
40689 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40690 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40691 _swigc__p_wxMouseEvent,
40692 _swigc__p_wxMoveEvent,
40693 _swigc__p_wxNativeEncodingInfo,
40694 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40695 _swigc__p_wxNativePixelData,
40696 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40697 _swigc__p_wxNavigationKeyEvent,
40698 _swigc__p_wxNcPaintEvent,
40699 _swigc__p_wxNotifyEvent,
40700 _swigc__p_wxObject,
b39fe951 40701 _swigc__p_wxOverlay,
1bd55598
RD
40702 _swigc__p_wxPCXHandler,
40703 _swigc__p_wxPNGHandler,
40704 _swigc__p_wxPNMHandler,
40705 _swigc__p_wxPaintDC,
40706 _swigc__p_wxPaintEvent,
40707 _swigc__p_wxPalette,
40708 _swigc__p_wxPaletteChangedEvent,
40709 _swigc__p_wxPaperSize,
40710 _swigc__p_wxPen,
40711 _swigc__p_wxPenList,
fc46b7f3 40712 _swigc__p_wxPixelDataBase,
1bd55598 40713 _swigc__p_wxPoint,
72ef6efb 40714 _swigc__p_wxPoint2D,
1bd55598
RD
40715 _swigc__p_wxPostScriptDC,
40716 _swigc__p_wxPrintData,
40717 _swigc__p_wxPrinterDC,
27e45892 40718 _swigc__p_wxPseudoDC,
1bd55598
RD
40719 _swigc__p_wxPyApp,
40720 _swigc__p_wxPyCommandEvent,
40721 _swigc__p_wxPyEvent,
40722 _swigc__p_wxPyFontEnumerator,
40723 _swigc__p_wxPyImageHandler,
fc46b7f3 40724 _swigc__p_wxPyLocale,
1bd55598
RD
40725 _swigc__p_wxPySizer,
40726 _swigc__p_wxPyValidator,
40727 _swigc__p_wxQueryNewPaletteEvent,
40728 _swigc__p_wxRect,
4fe9ce47 40729 _swigc__p_wxRect2D,
1bd55598
RD
40730 _swigc__p_wxRegion,
40731 _swigc__p_wxRegionIterator,
40732 _swigc__p_wxRendererNative,
40733 _swigc__p_wxRendererVersion,
40734 _swigc__p_wxScreenDC,
40735 _swigc__p_wxScrollEvent,
40736 _swigc__p_wxScrollWinEvent,
40737 _swigc__p_wxSetCursorEvent,
40738 _swigc__p_wxShowEvent,
40739 _swigc__p_wxSize,
40740 _swigc__p_wxSizeEvent,
40741 _swigc__p_wxSizer,
40742 _swigc__p_wxSizerItem,
40743 _swigc__p_wxSplitterRenderParams,
40744 _swigc__p_wxStaticBoxSizer,
40745 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40746 _swigc__p_wxStockGDI,
1bd55598
RD
40747 _swigc__p_wxString,
40748 _swigc__p_wxSysColourChangedEvent,
580080c5 40749 _swigc__p_wxTGAHandler,
1bd55598
RD
40750 _swigc__p_wxTIFFHandler,
40751 _swigc__p_wxUpdateUIEvent,
40752 _swigc__p_wxValidator,
40753 _swigc__p_wxWindow,
40754 _swigc__p_wxWindowCreateEvent,
40755 _swigc__p_wxWindowDC,
40756 _swigc__p_wxWindowDestroyEvent,
40757 _swigc__p_wxXPMHandler,
40758};
40759
40760
40761/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40762
40763static swig_const_info swig_const_table[] = {
40764{0, 0, 0, 0.0, 0, 0}};
40765
40766#ifdef __cplusplus
40767}
40768#endif
40769/* -----------------------------------------------------------------------------
40770 * Type initialization:
40771 * This problem is tough by the requirement that no dynamic
40772 * memory is used. Also, since swig_type_info structures store pointers to
40773 * swig_cast_info structures and swig_cast_info structures store pointers back
40774 * to swig_type_info structures, we need some lookup code at initialization.
40775 * The idea is that swig generates all the structures that are needed.
40776 * The runtime then collects these partially filled structures.
40777 * The SWIG_InitializeModule function takes these initial arrays out of
40778 * swig_module, and does all the lookup, filling in the swig_module.types
40779 * array with the correct data and linking the correct swig_cast_info
40780 * structures together.
40781 *
40782 * The generated swig_type_info structures are assigned staticly to an initial
40783 * array. We just loop though that array, and handle each type individually.
40784 * First we lookup if this type has been already loaded, and if so, use the
40785 * loaded structure instead of the generated one. Then we have to fill in the
40786 * cast linked list. The cast data is initially stored in something like a
40787 * two-dimensional array. Each row corresponds to a type (there are the same
40788 * number of rows as there are in the swig_type_initial array). Each entry in
40789 * a column is one of the swig_cast_info structures for that type.
40790 * The cast_initial array is actually an array of arrays, because each row has
40791 * a variable number of columns. So to actually build the cast linked list,
40792 * we find the array of casts associated with the type, and loop through it
40793 * adding the casts to the list. The one last trick we need to do is making
40794 * sure the type pointer in the swig_cast_info struct is correct.
40795 *
40796 * First off, we lookup the cast->type name to see if it is already loaded.
40797 * There are three cases to handle:
40798 * 1) If the cast->type has already been loaded AND the type we are adding
40799 * casting info to has not been loaded (it is in this module), THEN we
40800 * replace the cast->type pointer with the type pointer that has already
40801 * been loaded.
40802 * 2) If BOTH types (the one we are adding casting info to, and the
40803 * cast->type) are loaded, THEN the cast info has already been loaded by
40804 * the previous module so we just ignore it.
40805 * 3) Finally, if cast->type has not already been loaded, then we add that
40806 * swig_cast_info to the linked list (because the cast->type) pointer will
40807 * be correct.
40808 * ----------------------------------------------------------------------------- */
40809
40810#ifdef __cplusplus
40811extern "C" {
40812#if 0
40813} /* c-mode */
40814#endif
40815#endif
40816
40817#if 0
40818#define SWIGRUNTIME_DEBUG
40819#endif
40820
40821SWIGRUNTIME void
40822SWIG_InitializeModule(void *clientdata) {
40823 size_t i;
40824 swig_module_info *module_head;
40825 static int init_run = 0;
40826
40827 clientdata = clientdata;
40828
40829 if (init_run) return;
40830 init_run = 1;
40831
40832 /* Initialize the swig_module */
40833 swig_module.type_initial = swig_type_initial;
40834 swig_module.cast_initial = swig_cast_initial;
40835
40836 /* Try and load any already created modules */
40837 module_head = SWIG_GetModule(clientdata);
40838 if (module_head) {
40839 swig_module.next = module_head->next;
40840 module_head->next = &swig_module;
40841 } else {
40842 /* This is the first module loaded */
40843 swig_module.next = &swig_module;
40844 SWIG_SetModule(clientdata, &swig_module);
40845 }
40846
40847 /* Now work on filling in swig_module.types */
40848#ifdef SWIGRUNTIME_DEBUG
40849 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40850#endif
40851 for (i = 0; i < swig_module.size; ++i) {
40852 swig_type_info *type = 0;
40853 swig_type_info *ret;
40854 swig_cast_info *cast;
40855
40856#ifdef SWIGRUNTIME_DEBUG
40857 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40858#endif
40859
40860 /* if there is another module already loaded */
40861 if (swig_module.next != &swig_module) {
40862 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40863 }
1bd55598
RD
40864 if (type) {
40865 /* Overwrite clientdata field */
40866#ifdef SWIGRUNTIME_DEBUG
40867 printf("SWIG_InitializeModule: found type %s\n", type->name);
40868#endif
40869 if (swig_module.type_initial[i]->clientdata) {
40870 type->clientdata = swig_module.type_initial[i]->clientdata;
40871#ifdef SWIGRUNTIME_DEBUG
40872 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40873#endif
40874 }
40875 } else {
40876 type = swig_module.type_initial[i];
be9b1dca 40877 }
1bd55598
RD
40878
40879 /* Insert casting types */
40880 cast = swig_module.cast_initial[i];
40881 while (cast->type) {
40882 /* Don't need to add information already in the list */
40883 ret = 0;
40884#ifdef SWIGRUNTIME_DEBUG
40885 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40886#endif
40887 if (swig_module.next != &swig_module) {
40888 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40889#ifdef SWIGRUNTIME_DEBUG
40890 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40891#endif
40892 }
40893 if (ret) {
40894 if (type == swig_module.type_initial[i]) {
40895#ifdef SWIGRUNTIME_DEBUG
40896 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40897#endif
40898 cast->type = ret;
40899 ret = 0;
40900 } else {
40901 /* Check for casting already in the list */
40902 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40903#ifdef SWIGRUNTIME_DEBUG
40904 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40905#endif
40906 if (!ocast) ret = 0;
40907 }
40908 }
40909
40910 if (!ret) {
40911#ifdef SWIGRUNTIME_DEBUG
40912 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40913#endif
40914 if (type->cast) {
40915 type->cast->prev = cast;
40916 cast->next = type->cast;
40917 }
40918 type->cast = cast;
40919 }
40920 cast++;
be9b1dca 40921 }
1bd55598
RD
40922 /* Set entry in modules->types array equal to the type */
40923 swig_module.types[i] = type;
40924 }
40925 swig_module.types[i] = 0;
40926
40927#ifdef SWIGRUNTIME_DEBUG
40928 printf("**** SWIG_InitializeModule: Cast List ******\n");
40929 for (i = 0; i < swig_module.size; ++i) {
40930 int j = 0;
40931 swig_cast_info *cast = swig_module.cast_initial[i];
40932 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40933 while (cast->type) {
40934 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40935 cast++;
40936 ++j;
40937 }
40938 printf("---- Total casts: %d\n",j);
40939 }
40940 printf("**** SWIG_InitializeModule: Cast List ******\n");
40941#endif
40942}
40943
40944/* This function will propagate the clientdata field of type to
40945* any new swig_type_info structures that have been added into the list
40946* of equivalent types. It is like calling
40947* SWIG_TypeClientData(type, clientdata) a second time.
40948*/
40949SWIGRUNTIME void
40950SWIG_PropagateClientData(void) {
40951 size_t i;
40952 swig_cast_info *equiv;
40953 static int init_run = 0;
40954
40955 if (init_run) return;
40956 init_run = 1;
40957
40958 for (i = 0; i < swig_module.size; i++) {
40959 if (swig_module.types[i]->clientdata) {
40960 equiv = swig_module.types[i]->cast;
40961 while (equiv) {
40962 if (!equiv->converter) {
40963 if (equiv->type && !equiv->type->clientdata)
40964 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40965 }
40966 equiv = equiv->next;
40967 }
be9b1dca 40968 }
1bd55598
RD
40969 }
40970}
40971
40972#ifdef __cplusplus
40973#if 0
40974{
40975 /* c-mode */
40976#endif
40977}
40978#endif
40979
40980
40981
40982#ifdef __cplusplus
40983extern "C" {
40984#endif
40985
40986 /* Python-specific SWIG API */
40987#define SWIG_newvarlink() SWIG_Python_newvarlink()
40988#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40989#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40990
40991 /* -----------------------------------------------------------------------------
40992 * global variable support code.
40993 * ----------------------------------------------------------------------------- */
40994
40995 typedef struct swig_globalvar {
40996 char *name; /* Name of global variable */
40997 PyObject *(*get_attr)(void); /* Return the current value */
40998 int (*set_attr)(PyObject *); /* Set the value */
40999 struct swig_globalvar *next;
41000 } swig_globalvar;
41001
41002 typedef struct swig_varlinkobject {
41003 PyObject_HEAD
41004 swig_globalvar *vars;
41005 } swig_varlinkobject;
41006
41007 SWIGINTERN PyObject *
41008 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41009 return PyString_FromString("<Swig global variables>");
41010 }
41011
41012 SWIGINTERN PyObject *
41013 swig_varlink_str(swig_varlinkobject *v) {
41014 PyObject *str = PyString_FromString("(");
41015 swig_globalvar *var;
41016 for (var = v->vars; var; var=var->next) {
41017 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41018 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41019 }
41020 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41021 return str;
41022 }
41023
41024 SWIGINTERN int
41025 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41026 PyObject *str = swig_varlink_str(v);
41027 fprintf(fp,"Swig global variables ");
41028 fprintf(fp,"%s\n", PyString_AsString(str));
41029 Py_DECREF(str);
41030 return 0;
41031 }
41032
41033 SWIGINTERN void
41034 swig_varlink_dealloc(swig_varlinkobject *v) {
41035 swig_globalvar *var = v->vars;
41036 while (var) {
41037 swig_globalvar *n = var->next;
41038 free(var->name);
41039 free(var);
41040 var = n;
be9b1dca 41041 }
1bd55598
RD
41042 }
41043
41044 SWIGINTERN PyObject *
41045 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41046 PyObject *res = NULL;
41047 swig_globalvar *var = v->vars;
41048 while (var) {
41049 if (strcmp(var->name,n) == 0) {
41050 res = (*var->get_attr)();
41051 break;
41052 }
41053 var = var->next;
be9b1dca 41054 }
1bd55598
RD
41055 if (res == NULL && !PyErr_Occurred()) {
41056 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41057 }
1bd55598
RD
41058 return res;
41059 }
41060
41061 SWIGINTERN int
41062 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41063 int res = 1;
41064 swig_globalvar *var = v->vars;
41065 while (var) {
41066 if (strcmp(var->name,n) == 0) {
41067 res = (*var->set_attr)(p);
41068 break;
41069 }
41070 var = var->next;
be9b1dca 41071 }
1bd55598
RD
41072 if (res == 1 && !PyErr_Occurred()) {
41073 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41074 }
1bd55598
RD
41075 return res;
41076 }
41077
41078 SWIGINTERN PyTypeObject*
41079 swig_varlink_type(void) {
41080 static char varlink__doc__[] = "Swig var link object";
41081 static PyTypeObject varlink_type;
41082 static int type_init = 0;
41083 if (!type_init) {
41084 const PyTypeObject tmp
41085 = {
41086 PyObject_HEAD_INIT(NULL)
41087 0, /* Number of items in variable part (ob_size) */
41088 (char *)"swigvarlink", /* Type name (tp_name) */
41089 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41090 0, /* Itemsize (tp_itemsize) */
41091 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41092 (printfunc) swig_varlink_print, /* Print (tp_print) */
41093 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41094 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41095 0, /* tp_compare */
41096 (reprfunc) swig_varlink_repr, /* tp_repr */
41097 0, /* tp_as_number */
41098 0, /* tp_as_sequence */
41099 0, /* tp_as_mapping */
41100 0, /* tp_hash */
41101 0, /* tp_call */
41102 (reprfunc)swig_varlink_str, /* tp_str */
41103 0, /* tp_getattro */
41104 0, /* tp_setattro */
41105 0, /* tp_as_buffer */
41106 0, /* tp_flags */
41107 varlink__doc__, /* tp_doc */
41108 0, /* tp_traverse */
41109 0, /* tp_clear */
41110 0, /* tp_richcompare */
41111 0, /* tp_weaklistoffset */
41112#if PY_VERSION_HEX >= 0x02020000
41113 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41114#endif
41115#if PY_VERSION_HEX >= 0x02030000
41116 0, /* tp_del */
41117#endif
41118#ifdef COUNT_ALLOCS
41119 0,0,0,0 /* tp_alloc -> tp_next */
41120#endif
41121 };
41122 varlink_type = tmp;
41123 varlink_type.ob_type = &PyType_Type;
41124 type_init = 1;
be9b1dca 41125 }
1bd55598
RD
41126 return &varlink_type;
41127 }
41128
41129 /* Create a variable linking object for use later */
41130 SWIGINTERN PyObject *
41131 SWIG_Python_newvarlink(void) {
41132 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41133 if (result) {
41134 result->vars = 0;
41135 }
41136 return ((PyObject*) result);
41137 }
41138
41139 SWIGINTERN void
41140 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41141 swig_varlinkobject *v = (swig_varlinkobject *) p;
41142 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41143 if (gv) {
41144 size_t size = strlen(name)+1;
41145 gv->name = (char *)malloc(size);
41146 if (gv->name) {
41147 strncpy(gv->name,name,size);
41148 gv->get_attr = get_attr;
41149 gv->set_attr = set_attr;
41150 gv->next = v->vars;
41151 }
be9b1dca 41152 }
1bd55598
RD
41153 v->vars = gv;
41154 }
41155
41156 SWIGINTERN PyObject *
41157 SWIG_globals() {
41158 static PyObject *_SWIG_globals = 0;
41159 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41160 return _SWIG_globals;
41161 }
41162
41163 /* -----------------------------------------------------------------------------
41164 * constants/methods manipulation
41165 * ----------------------------------------------------------------------------- */
41166
41167 /* Install Constants */
41168 SWIGINTERN void
41169 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41170 PyObject *obj = 0;
41171 size_t i;
41172 for (i = 0; constants[i].type; ++i) {
41173 switch(constants[i].type) {
41174 case SWIG_PY_POINTER:
41175 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41176 break;
41177 case SWIG_PY_BINARY:
41178 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41179 break;
41180 default:
41181 obj = 0;
41182 break;
41183 }
41184 if (obj) {
41185 PyDict_SetItemString(d, constants[i].name, obj);
41186 Py_DECREF(obj);
41187 }
be9b1dca 41188 }
1bd55598
RD
41189 }
41190
41191 /* -----------------------------------------------------------------------------*/
41192 /* Fix SwigMethods to carry the callback ptrs when needed */
41193 /* -----------------------------------------------------------------------------*/
41194
41195 SWIGINTERN void
41196 SWIG_Python_FixMethods(PyMethodDef *methods,
41197 swig_const_info *const_table,
41198 swig_type_info **types,
41199 swig_type_info **types_initial) {
41200 size_t i;
41201 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41202 const char *c = methods[i].ml_doc;
1bd55598
RD
41203 if (c && (c = strstr(c, "swig_ptr: "))) {
41204 int j;
41205 swig_const_info *ci = 0;
3d6c9062 41206 const char *name = c + 10;
1bd55598
RD
41207 for (j = 0; const_table[j].type; ++j) {
41208 if (strncmp(const_table[j].name, name,
41209 strlen(const_table[j].name)) == 0) {
41210 ci = &(const_table[j]);
41211 break;
41212 }
41213 }
41214 if (ci) {
41215 size_t shift = (ci->ptype) - types;
41216 swig_type_info *ty = types_initial[shift];
41217 size_t ldoc = (c - methods[i].ml_doc);
41218 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41219 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41220 if (ndoc) {
41221 char *buff = ndoc;
41222 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41223 if (ptr) {
41224 strncpy(buff, methods[i].ml_doc, ldoc);
41225 buff += ldoc;
41226 strncpy(buff, "swig_ptr: ", 10);
41227 buff += 10;
41228 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41229 methods[i].ml_doc = ndoc;
41230 }
41231 }
41232 }
41233 }
be9b1dca 41234 }
1bd55598
RD
41235 }
41236
41237#ifdef __cplusplus
41238}
41239#endif
41240
41241/* -----------------------------------------------------------------------------*
41242 * Partial Init method
41243 * -----------------------------------------------------------------------------*/
41244
41245#ifdef __cplusplus
41246extern "C"
41247#endif
41248SWIGEXPORT void SWIG_init(void) {
41249 PyObject *m, *d;
41250
41251 /* Fix SwigMethods to carry the callback ptrs when needed */
41252 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41253
41254 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41255 d = PyModule_GetDict(m);
41256
41257 SWIG_InitializeModule(0);
41258 SWIG_InstallConstants(d,swig_const_table);
41259
41260
2131d850
RD
41261 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41262 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41263 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41264 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41265 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41266 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41267 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41268 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41269 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41270 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41271 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41272 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41273 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41274 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41275 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41276 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41277 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41278 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41279 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41280 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41281 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41282 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41283 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41284 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41285 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41286 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41287 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41288 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41289 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41290 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41291 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41292 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41293 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41294 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41295 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41296 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41297 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41298 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41299 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41300 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41301 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41302 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41303 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41304 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41305 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41306 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41307 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41308 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41309 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41310 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41311 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41312 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41313 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41314 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41315 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41316 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41317 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41318 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41319 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41320 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41321 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41322 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41323 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41324 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41325 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41326 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41327 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41328 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41329 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41330 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41331 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41332 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41333 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41334 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41335 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41382 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41383 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41384 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41385 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41386 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41387 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41388 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41389 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41390 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41391 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41392 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41393
41394 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41395
41396 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41627 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41628 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41629 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41630 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41631 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41632 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41633 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41634 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41635 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41636 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41637 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41638 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41639 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41640 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41641 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41642 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41643 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41644 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41645 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41646 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41647 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41648 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41649 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41650 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41651 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41652 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41653 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41654 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41655 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41656 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41657 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41658 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41659 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41660 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41661 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41662 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41663 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41664 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41665 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41666 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41667 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41668 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41669 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41670 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41671 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41672 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41673 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41674 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41675 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41676 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41677 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41678 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41679 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41680 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41681 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41682 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41683 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41684 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41685 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41686 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41687 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41688 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41689 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41690 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41691 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41692 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41693 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41694 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41695 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41696 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41697 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41698 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41699 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41700 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41701 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41702 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41703 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41704 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41705 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41706 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41707 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41708 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41709 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41710 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41711 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41712 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41713 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41714 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41715 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41716 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41717 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41718 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41719 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41720
41721 // Work around a chicken/egg problem in drawlist.cpp
41722 wxPyDrawList_SetAPIPtr();
41723
d55e5bfc
RD
41724}
41725