]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Adjustement to OW 1.6-rc2 state.
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
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
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 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
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49
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
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
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)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
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
d14a1e28
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 */
d14a1e28 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 */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
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
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
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
093d3ff1 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;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
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
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 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);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
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);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
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);
093d3ff1 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);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
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;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
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
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
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}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
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
994141e6 1000
0085ce49
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)
994141e6 1004
0085ce49
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)
d14a1e28 1008
0085ce49
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)
994141e6 1012
0085ce49
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
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
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
0085ce49
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
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
15afbcd0 1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
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);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
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 */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
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 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
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);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
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))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
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);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
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 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
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;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
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 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
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 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
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) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 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");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 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));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
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);
0085ce49 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);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2641
093d3ff1 2642/* -------- TYPES TABLE (END) -------- */
d14a1e28 2643
0085ce49
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d14a1e28 2658
093d3ff1
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d14a1e28 2663
093d3ff1 2664#define SWIG_name "_gdi_"
d14a1e28 2665
0085ce49 2666#define SWIGVERSION 0x010329
d14a1e28 2667
d14a1e28 2668
0085ce49
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2671
2672
0085ce49
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
093d3ff1 2684 }
0085ce49
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
093d3ff1 2689 }
0085ce49
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
093d3ff1 2719}
d14a1e28 2720
994141e6 2721
0085ce49
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
69223c70 2731 }
0085ce49 2732 };
15afbcd0
RD
2733}
2734
2735
0085ce49
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
01f6b6d3
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
0085ce49
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
b88bce5f 2762
b88bce5f 2763
50efceee
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
093d3ff1 2775SWIGINTERN int
0085ce49 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2780 return SWIG_TypeError;
093d3ff1
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
0085ce49 2784 return SWIG_OK;
093d3ff1 2785}
d14a1e28
RD
2786
2787
093d3ff1 2788SWIGINTERN int
0085ce49
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
093d3ff1 2791 unsigned long v;
0085ce49
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
093d3ff1 2796 } else {
0085ce49 2797 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2798 }
0085ce49
RD
2799 }
2800 return res;
093d3ff1 2801}
33b885b9 2802
d14a1e28 2803
0085ce49
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2806{
0085ce49
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2809}
d14a1e28 2810
d14a1e28 2811
0085ce49
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d14a1e28 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
093d3ff1
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
093d3ff1
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2871 return rv;
2872 }
0085ce49 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d14a1e28 2876
0085ce49
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2879{
0085ce49
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d14a1e28
RD
2890}
2891
0085ce49 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
0085ce49 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2909
093d3ff1
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
0085ce49
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2926
fc46b7f3
RD
2927#include <wx/rawbmp.h>
2928
2929
8f514ab4
RD
2930// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931// appears to me that the other platforms are already doing it, so I'll just
2932// automatically do it for wxMSW here.
2933#ifdef __WXMSW__
2934#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936#else
2937#define wxPy_premultiply(p, a) (p)
2938#define wxPy_unpremultiply(p, a) (p)
2939#endif
2940
2941
093d3ff1 2942#include <wx/image.h>
b88bce5f 2943
093d3ff1
RD
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
b88bce5f 2960 }
b88bce5f
RD
2961
2962
0085ce49 2963SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
0085ce49 2974SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
0085ce49 2980SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
0085ce49 2984SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
0085ce49 2988SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
8f514ab4
RD
2992SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
fc46b7f3 2995
8f514ab4
RD
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
fc46b7f3 3006
8f514ab4
RD
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
0085ce49 3202SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3203 if ( !colour.IsOk() )
093d3ff1
RD
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
d14a1e28 3208
093d3ff1 3209#include <wx/iconbndl.h>
d14a1e28 3210
0085ce49 3211SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
0085ce49 3216SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3217 char** cArray = NULL;
3218 wxIcon* icon;
d14a1e28 3219
093d3ff1
RD
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
0085ce49 3227SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3228
3229
d14a1e28 3230
093d3ff1 3231 return new wxIconLocation(*filename);
d14a1e28 3232
093d3ff1 3233 }
0085ce49 3234SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3235
3236
d14a1e28 3237
093d3ff1 3238 // do nothing
d14a1e28 3239
093d3ff1 3240 }
0085ce49 3241SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3242
3243
093d3ff1
RD
3244
3245 return -1;
3246
3247 }
0085ce49 3248SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3249#ifdef __WXGTK__
7557b9b5
RD
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
093d3ff1 3254#else
7557b9b5 3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3256#endif
3257 }
3258
3259
0085ce49 3260SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3261 (*self) ++;
3262 }
0085ce49 3263SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3264 return self->operator bool();
3265 }
3266
3267#include <wx/fontutil.h>
3268#include <wx/fontmap.h>
3269#include <wx/fontenum.h>
3270
0085ce49 3271SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3272 return self->ToString();
3273 }
3274
3275 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3276 static wxNativeEncodingInfo info;
3277 if ( wxGetNativeFontEncoding(encoding, &info) )
3278 return &info;
3279 else
3280 return NULL;
3281 }
3282
0085ce49
RD
3283
3284SWIGINTERNINLINE PyObject *
3285SWIG_From_size_t (size_t value)
3286{
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288}
3289
3290
3291SWIGINTERNINLINE int
3292SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293{
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298}
3299
3300SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
0085ce49 3309SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
0085ce49 3314SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
0085ce49 3317SWIGINTERN 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
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
0085ce49 3322SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
0085ce49
RD
3325SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3327
3328class wxPyFontEnumerator : public wxFontEnumerator {
3329public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337};
3338
3339IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
704eda0c 3343SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3344 PyObject* ret;
704eda0c 3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3347 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
093d3ff1 3350 }
704eda0c 3351SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3352 PyObject* ret;
704eda0c 3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3355 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
093d3ff1
RD
3358 }
3359
3360#include <locale.h>
3361
0085ce49 3362SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370#if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372#endif
3373 return loc;
3374 }
0085ce49 3375SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379#if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381#endif
3382 return rc;
3383 }
0085ce49 3384SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388#if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390#endif
3391 return rc;
3392 }
3393
fc46b7f3
RD
3394class wxPyLocale : public wxLocale
3395{
3396public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425};
3426
3427wxPyLocale::wxPyLocale() : wxLocale()
3428{
3429}
3430
3431wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437{
3438}
3439
3440wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442{
3443}
3444
3445wxPyLocale::~wxPyLocale()
3446{
3447}
3448
3449const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451{
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454}
3455
3456const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459{
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462}
3463
3464wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466{
3467 bool found;
3468 static wxString str;
3469 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.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484}
3485
3486wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509}
3510
3511SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519#if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521#endif
3522 return loc;
3523 }
3524
093d3ff1
RD
3525#include "wx/wxPython/pydrawxxx.h"
3526
0085ce49 3527SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
0085ce49 3532SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538SWIGINTERN int
0085ce49 3539SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3540{
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3543 return SWIG_OK;
093d3ff1 3544 }
0085ce49 3545 return SWIG_TypeError;
093d3ff1
RD
3546}
3547
0085ce49 3548SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
0085ce49 3553SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
0085ce49 3558SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
0085ce49 3564 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3565
0085ce49 3566SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
0085ce49 3569SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
0085ce49 3572SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
0085ce49 3575SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
0085ce49 3578SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
0085ce49 3581SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
0085ce49 3584SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
0085ce49 3587SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
0085ce49 3590SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599}
3600
3601
3602#include <wx/dcbuffer.h>
3603
3604
3605#include <wx/dcps.h>
3606
3607
3608class wxMetaFile : public wxObject {
3609public:
3610 wxMetaFile(const wxString&)
3611 { wxPyRaiseNotImplemented(); }
3612};
3613
3614class wxMetaFileDC : public wxClientDC {
3615public:
3616 wxMetaFileDC(const wxString&, int, int, const wxString&)
3617 { wxPyRaiseNotImplemented(); }
3618};
3619
3620
3621
3622class wxPrinterDC : public wxClientDC {
3623public:
3624 wxPrinterDC(const wxPrintData&)
3625 { wxPyRaiseNotImplemented(); }
3626
3627};
3628
3629
72ef6efb
RD
3630#include <wx/graphics.h>
3631
3632
3633#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3634// C++ stub classes for platforms or build configurations that don't have
3635// wxGraphicsContext yet.
72ef6efb 3636
70d7cb34
RD
3637
3638class wxGraphicsObject : public wxObject
72ef6efb
RD
3639{
3640public :
70d7cb34 3641 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3642 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3643 "wx.GraphicsObject is not available on this platform.");
3644 }
3645 wxGraphicsObject( const wxGraphicsObject& ) {}
3646 virtual ~wxGraphicsObject() {}
3647 bool IsNull() const { return false; }
3648 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3649} ;
3650
3651
3652
3653class wxGraphicsPen : public wxGraphicsObject
3654{
3655 wxGraphicsPen() {}
3656 virtual ~wxGraphicsPen() {}
3657} ;
3658wxGraphicsPen wxNullGraphicsPen;
3659
3660
3661
3662class wxGraphicsBrush : public wxGraphicsObject
3663{
3664public :
3665 wxGraphicsBrush() {}
3666 virtual ~wxGraphicsBrush() {}
3667} ;
3668wxGraphicsBrush wxNullGraphicsBrush;
3669
3670
3671
3672class wxGraphicsFont : public wxGraphicsObject
3673{
3674public :
3675 wxGraphicsFont() {}
3676 virtual ~wxGraphicsFont() {}
3677} ;
3678wxGraphicsFont wxNullGraphicsFont;
3679
3680
3681
3682class wxGraphicsPath : public wxGraphicsObject
3683{
3684public :
3685 wxGraphicsPath(wxGraphicsRenderer* ) {
3686 PyErr_SetString(PyExc_NotImplementedError,
3687 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3688 }
3689 virtual ~wxGraphicsPath() {}
70d7cb34 3690
72ef6efb 3691 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3692 void MoveToPoint( const wxPoint2DDouble& ) {}
3693 void AddLineToPoint( wxDouble, wxDouble ) {}
3694 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3695 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3696 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3697 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3698 void CloseSubpath() {}
3699 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3700 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3701 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3702 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3703
3704 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3705 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3706 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3707 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3708
70d7cb34
RD
3709 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3710 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3711 void * GetNativePath() const { return NULL; }
3712 void UnGetNativePath(void *) {}
3713 void Transform( wxGraphicsMatrix* ) {}
3714 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3715 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3716
3717 bool Contains( wxDouble , wxDouble , int ) { return false; }
3718 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3719};
5c8c7dd3 3720wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3721
3722
3723class wxGraphicsMatrix : public wxGraphicsObject
3724{
3725public :
3726 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3727 PyErr_SetString(PyExc_NotImplementedError,
3728 "wx.GraphicsMatrix is not available on this platform.");
3729 }
3730 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3731 virtual void Concat( const wxGraphicsMatrix * ) {}
3732 virtual void Copy( const wxGraphicsMatrix * ) {}
3733 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3734 wxDouble , wxDouble ) {}
3735 virtual void Invert() {}
3736 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3737 virtual bool IsIdentity() { return false; }
3738 virtual void Translate( wxDouble , wxDouble ) {}
3739 virtual void Scale( wxDouble , wxDouble ) {}
3740 virtual void Rotate( wxDouble ) {}
3741 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3742 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3743 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3744};
5c8c7dd3 3745wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3746
70d7cb34
RD
3747
3748class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3749{
3750public:
70d7cb34
RD
3751
3752 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3753 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3754 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3755 }
70d7cb34 3756
72ef6efb 3757 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3758
3759 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3760 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3761 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3762 }
b876c1e4 3763
70d7cb34 3764 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3765 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3766 "wx.GraphicsContext is not available on this platform.");
3767 }
b876c1e4 3768
70d7cb34
RD
3769 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 }
3778
3779 wxGraphicsPath * CreatePath() { return NULL; }
3780
3781 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3782
3783 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3784
3785 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3786 const wxColour&, const wxColour&) { return NULL; }
3787
3788 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3789 wxDouble xc, wxDouble yc, wxDouble radius,
3790 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3791
3792 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3793
3794 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3795 wxDouble, wxDouble) { return NULL; }
3796
3797 virtual void PushState() {}
3798 virtual void PopState() {}
3799 virtual void Clip( const wxRegion & ) {}
3800 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3801 virtual void ResetClip() {}
3802 virtual void * GetNativeContext() { return NULL; }
3803 virtual void Translate( wxDouble , wxDouble ) {}
3804 virtual void Scale( wxDouble , wxDouble ) {}
3805 virtual void Rotate( wxDouble ) {}
3806 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3807 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3808 virtual void GetTransform( wxGraphicsMatrix* ) {}
3809
3810 virtual void SetPen( const wxGraphicsPen& ) {}
3811 void SetPen( const wxPen& ) {}
3812
3813 virtual void SetBrush( const wxGraphicsBrush& ) {}
3814 void SetBrush( const wxBrush& ) {}
3815
3816 virtual void SetFont( const wxGraphicsFont& ) {}
3817 void SetFont( const wxFont&, const wxColour& ) {}
3818
3819 virtual void StrokePath( const wxGraphicsPath * ) {}
3820 virtual void FillPath( const wxGraphicsPath *, int ) {}
3821 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3822
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3825 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3826 wxDouble *, wxDouble * ) const {}
3827 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3828
3829 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3830 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3831
3832 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3834 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3835 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3836 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual bool ShouldOffset() const { return false; }
3840};
3841
3842
3843class wxGraphicsRenderer : public wxObject
3844{
3845public :
3846 wxGraphicsRenderer() {
3847 PyErr_SetString(PyExc_NotImplementedError,
3848 "wx.GraphicsRenderer is not available on this platform.");
3849 }
3850
3851 virtual ~wxGraphicsRenderer() {}
3852
3853 static wxGraphicsRenderer* GetDefaultRenderer(
3854 PyErr_SetString(PyExc_NotImplementedError,
3855 "wx.GraphicsRenderer is not available on this platform.");
3856 );
3857
3858 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3859 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3860 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3861 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3862
3863 virtual wxGraphicsPath * CreatePath() { return NULL; }
3864
3865 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3866 wxDouble , wxDouble ) { return NULL; }
3867
3868 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3869 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3870 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3871 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3872 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3873 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3875};
3876
3877
70d7cb34 3878
72ef6efb
RD
3879class wxGCDC: public wxWindowDC
3880{
3881public:
3882 wxGCDC(const wxWindowDC&) {
3883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3884 PyErr_SetString(PyExc_NotImplementedError,
3885 "wxGCDC is not available on this platform.");
3886 wxPyEndBlockThreads(blocked);
3887 }
70d7cb34 3888
48a0c021
RD
3889 wxGCDC(const wxWindow*) {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
3895
72ef6efb
RD
3896 wxGCDC() {
3897 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3898 PyErr_SetString(PyExc_NotImplementedError,
3899 "wxGCDC is not available on this platform.");
3900 wxPyEndBlockThreads(blocked);
3901 }
70d7cb34 3902
72ef6efb
RD
3903 virtual ~wxGCDC() {}
3904
b876c1e4
RD
3905 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3906 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3907};
3908
3909#endif
3910
f89238b9
RD
3911SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3912 if ( !backgroundBrush.IsNull() )
3913 self->DrawText(str, x, y, backgroundBrush);
3914 else
3915 self->DrawText(str, x, y);
3916 }
3917SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3918 if ( !backgroundBrush.IsNull() )
3919 self->DrawText(str, x, y, angle, backgroundBrush);
3920 else
3921 self->DrawText(str, x, y, angle);
3922 }
be68621e
RD
3923SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3924 wxDouble width = 0.0,
3925 height = 0.0;
3926 self->GetTextExtent(text, &width, &height, NULL, NULL);
3927 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3928 PyObject* rv = PyTuple_New(2);
3929 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3930 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3931 return rv;
3932 }
b39fe951
RD
3933SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3934 wxArrayDouble widths;
3935 self->GetPartialTextExtents(text, widths);
3936 return widths;
3937 }
f8eb59b9 3938SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3939 size_t c1, c2, count;
3940 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3941 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3942
3943 if ( beginP != NULL && endP != NULL )
3944 {
3945 count = wxMin(c1, c2);
3946 self->StrokeLines(count, beginP, endP);
3947 }
3948 delete [] beginP;
3949 delete [] endP;
3950 }
72ef6efb 3951
0a27f394
RD
3952#include "wx/dcgraph.h"
3953
3954
66493fc7
RD
3955#include <wx/overlay.h>
3956
3957
093d3ff1 3958
0085ce49 3959SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3960 self->AddColour(name, wxColour(red, green, blue));
3961 }
3962
50efceee
RD
3963 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3964 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3965 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3966 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3967
3968
093d3ff1
RD
3969#include <wx/effects.h>
3970
8d38bd1d
RD
3971
3972#include "wx/renderer.h"
3973
3974
32fe5131 3975SWIGINTERNINLINE PyObject*
0085ce49 3976 SWIG_From_bool (bool value)
8d38bd1d 3977{
0085ce49 3978 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3979}
3980
27e45892
RD
3981
3982#include "wx/wxPython/pseudodc.h"
3983
3984SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3985 wxRect rect;
3986 self->GetIdBounds(id, rect);
3987 return rect;
3988 }
093d3ff1
RD
3989#ifdef __cplusplus
3990extern "C" {
3991#endif
0085ce49
RD
3992SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3993 PyObject *resultobj = 0;
3994 wxGDIObject *result = 0 ;
3995
3996 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3997 {
3998 if (!wxPyCheckForApp()) SWIG_fail;
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 result = (wxGDIObject *)new wxGDIObject();
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4005 return resultobj;
4006fail:
4007 return NULL;
093d3ff1
RD
4008}
4009
4010
0085ce49
RD
4011SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4012 PyObject *resultobj = 0;
4013 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 PyObject *swig_obj[1] ;
4017
4018 if (!args) SWIG_fail;
4019 swig_obj[0] = args;
4020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4021 if (!SWIG_IsOK(res1)) {
4022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4023 }
4024 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 delete arg1;
093d3ff1 4028
0085ce49
RD
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 resultobj = SWIG_Py_Void();
4033 return resultobj;
4034fail:
4035 return NULL;
d14a1e28
RD
4036}
4037
4038
0085ce49
RD
4039SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 PyObject *resultobj = 0;
4041 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4042 bool result;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 PyObject *swig_obj[1] ;
4046
4047 if (!args) SWIG_fail;
4048 swig_obj[0] = args;
4049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4050 if (!SWIG_IsOK(res1)) {
4051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4052 }
4053 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 result = (bool)(arg1)->IsNull();
4057 wxPyEndAllowThreads(__tstate);
4058 if (PyErr_Occurred()) SWIG_fail;
4059 }
4060 {
4061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4062 }
4063 return resultobj;
4064fail:
4065 return NULL;
4066}
4067
4068
4069SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 PyObject *obj;
4071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4072 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4073 return SWIG_Py_Void();
4074}
4075
4076SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4077 return SWIG_Python_InitShadowInstance(args);
4078}
4079
4080SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4081 PyObject *resultobj = 0;
4082 byte arg1 = (byte) 0 ;
4083 byte arg2 = (byte) 0 ;
4084 byte arg3 = (byte) 0 ;
fc46b7f3 4085 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4086 wxColour *result = 0 ;
4087 unsigned char val1 ;
4088 int ecode1 = 0 ;
4089 unsigned char val2 ;
4090 int ecode2 = 0 ;
4091 unsigned char val3 ;
4092 int ecode3 = 0 ;
fc46b7f3
RD
4093 unsigned char val4 ;
4094 int ecode4 = 0 ;
0085ce49
RD
4095 PyObject * obj0 = 0 ;
4096 PyObject * obj1 = 0 ;
4097 PyObject * obj2 = 0 ;
fc46b7f3 4098 PyObject * obj3 = 0 ;
0085ce49 4099 char * kwnames[] = {
fc46b7f3 4100 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4101 };
4102
fc46b7f3 4103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
4104 if (obj0) {
4105 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4106 if (!SWIG_IsOK(ecode1)) {
4107 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4108 }
4109 arg1 = static_cast< byte >(val1);
4110 }
4111 if (obj1) {
4112 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4113 if (!SWIG_IsOK(ecode2)) {
4114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4115 }
4116 arg2 = static_cast< byte >(val2);
4117 }
4118 if (obj2) {
4119 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4120 if (!SWIG_IsOK(ecode3)) {
4121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4122 }
4123 arg3 = static_cast< byte >(val3);
4124 }
fc46b7f3
RD
4125 if (obj3) {
4126 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4127 if (!SWIG_IsOK(ecode4)) {
4128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4129 }
4130 arg4 = static_cast< byte >(val4);
4131 }
0085ce49
RD
4132 {
4133 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4134 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
4135 wxPyEndAllowThreads(__tstate);
4136 if (PyErr_Occurred()) SWIG_fail;
4137 }
4138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4139 return resultobj;
4140fail:
4141 return NULL;
d14a1e28
RD
4142}
4143
4144
0085ce49
RD
4145SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4146 PyObject *resultobj = 0;
4147 wxString *arg1 = 0 ;
4148 wxColour *result = 0 ;
4149 bool temp1 = false ;
4150 PyObject * obj0 = 0 ;
4151 char * kwnames[] = {
4152 (char *) "colorName", NULL
4153 };
4154
4155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4156 {
4157 arg1 = wxString_in_helper(obj0);
4158 if (arg1 == NULL) SWIG_fail;
4159 temp1 = true;
4160 }
4161 {
4162 if (!wxPyCheckForApp()) SWIG_fail;
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (wxColour *)new wxColour((wxString const &)*arg1);
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4169 {
4170 if (temp1)
4171 delete arg1;
4172 }
4173 return resultobj;
4174fail:
4175 {
4176 if (temp1)
4177 delete arg1;
4178 }
4179 return NULL;
d14a1e28
RD
4180}
4181
4182
0085ce49
RD
4183SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj = 0;
4185 unsigned long arg1 ;
4186 wxColour *result = 0 ;
4187 unsigned long val1 ;
4188 int ecode1 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 char * kwnames[] = {
4191 (char *) "colRGB", NULL
4192 };
4193
4194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4195 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4196 if (!SWIG_IsOK(ecode1)) {
4197 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4198 }
4199 arg1 = static_cast< unsigned long >(val1);
4200 {
4201 PyThreadState* __tstate = wxPyBeginAllowThreads();
4202 result = (wxColour *)new wxColour(arg1);
4203 wxPyEndAllowThreads(__tstate);
4204 if (PyErr_Occurred()) SWIG_fail;
4205 }
4206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4207 return resultobj;
4208fail:
4209 return NULL;
d14a1e28
RD
4210}
4211
4212
0085ce49
RD
4213SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4214 PyObject *resultobj = 0;
4215 wxColour *arg1 = (wxColour *) 0 ;
4216 void *argp1 = 0 ;
4217 int res1 = 0 ;
4218 PyObject *swig_obj[1] ;
4219
4220 if (!args) SWIG_fail;
4221 swig_obj[0] = args;
4222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4223 if (!SWIG_IsOK(res1)) {
4224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4225 }
4226 arg1 = reinterpret_cast< wxColour * >(argp1);
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 delete arg1;
d14a1e28 4230
0085ce49
RD
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_Py_Void();
4235 return resultobj;
4236fail:
4237 return NULL;
d14a1e28
RD
4238}
4239
4240
0085ce49
RD
4241SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4242 PyObject *resultobj = 0;
4243 wxColour *arg1 = (wxColour *) 0 ;
4244 byte result;
4245 void *argp1 = 0 ;
4246 int res1 = 0 ;
4247 PyObject *swig_obj[1] ;
4248
4249 if (!args) SWIG_fail;
4250 swig_obj[0] = args;
4251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4254 }
4255 arg1 = reinterpret_cast< wxColour * >(argp1);
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = (byte)(arg1)->Red();
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4263 return resultobj;
4264fail:
4265 return NULL;
d14a1e28
RD
4266}
4267
4268
0085ce49
RD
4269SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4270 PyObject *resultobj = 0;
4271 wxColour *arg1 = (wxColour *) 0 ;
4272 byte result;
4273 void *argp1 = 0 ;
4274 int res1 = 0 ;
4275 PyObject *swig_obj[1] ;
4276
4277 if (!args) SWIG_fail;
4278 swig_obj[0] = args;
4279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4280 if (!SWIG_IsOK(res1)) {
4281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4282 }
4283 arg1 = reinterpret_cast< wxColour * >(argp1);
4284 {
4285 PyThreadState* __tstate = wxPyBeginAllowThreads();
4286 result = (byte)(arg1)->Green();
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4291 return resultobj;
4292fail:
4293 return NULL;
5cbf236d
RD
4294}
4295
4296
0085ce49
RD
4297SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4298 PyObject *resultobj = 0;
4299 wxColour *arg1 = (wxColour *) 0 ;
4300 byte result;
4301 void *argp1 = 0 ;
4302 int res1 = 0 ;
4303 PyObject *swig_obj[1] ;
4304
4305 if (!args) SWIG_fail;
4306 swig_obj[0] = args;
4307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4308 if (!SWIG_IsOK(res1)) {
4309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4310 }
4311 arg1 = reinterpret_cast< wxColour * >(argp1);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (byte)(arg1)->Blue();
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4319 return resultobj;
4320fail:
4321 return NULL;
d14a1e28
RD
4322}
4323
4324
fc46b7f3
RD
4325SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4326 PyObject *resultobj = 0;
4327 wxColour *arg1 = (wxColour *) 0 ;
4328 byte result;
4329 void *argp1 = 0 ;
4330 int res1 = 0 ;
4331 PyObject *swig_obj[1] ;
4332
4333 if (!args) SWIG_fail;
4334 swig_obj[0] = args;
4335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4336 if (!SWIG_IsOK(res1)) {
4337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4338 }
4339 arg1 = reinterpret_cast< wxColour * >(argp1);
4340 {
4341 PyThreadState* __tstate = wxPyBeginAllowThreads();
4342 result = (byte)(arg1)->Alpha();
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4347 return resultobj;
4348fail:
4349 return NULL;
4350}
4351
4352
b39fe951 4353SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4354 PyObject *resultobj = 0;
4355 wxColour *arg1 = (wxColour *) 0 ;
4356 bool result;
4357 void *argp1 = 0 ;
4358 int res1 = 0 ;
4359 PyObject *swig_obj[1] ;
4360
4361 if (!args) SWIG_fail;
4362 swig_obj[0] = args;
4363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
b39fe951 4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4366 }
4367 arg1 = reinterpret_cast< wxColour * >(argp1);
4368 {
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4370 result = (bool)(arg1)->IsOk();
0085ce49
RD
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 {
4375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4376 }
4377 return resultobj;
4378fail:
4379 return NULL;
4380}
4381
4382
4383SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4384 PyObject *resultobj = 0;
4385 wxColour *arg1 = (wxColour *) 0 ;
4386 byte arg2 ;
4387 byte arg3 ;
4388 byte arg4 ;
fc46b7f3 4389 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4390 void *argp1 = 0 ;
4391 int res1 = 0 ;
4392 unsigned char val2 ;
4393 int ecode2 = 0 ;
4394 unsigned char val3 ;
4395 int ecode3 = 0 ;
4396 unsigned char val4 ;
4397 int ecode4 = 0 ;
fc46b7f3
RD
4398 unsigned char val5 ;
4399 int ecode5 = 0 ;
0085ce49
RD
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 PyObject * obj2 = 0 ;
4403 PyObject * obj3 = 0 ;
fc46b7f3 4404 PyObject * obj4 = 0 ;
0085ce49 4405 char * kwnames[] = {
fc46b7f3 4406 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4407 };
4408
fc46b7f3 4409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4411 if (!SWIG_IsOK(res1)) {
4412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4413 }
4414 arg1 = reinterpret_cast< wxColour * >(argp1);
4415 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4416 if (!SWIG_IsOK(ecode2)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4418 }
4419 arg2 = static_cast< byte >(val2);
4420 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4421 if (!SWIG_IsOK(ecode3)) {
4422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4423 }
4424 arg3 = static_cast< byte >(val3);
4425 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4426 if (!SWIG_IsOK(ecode4)) {
4427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4428 }
4429 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4430 if (obj4) {
4431 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4432 if (!SWIG_IsOK(ecode5)) {
4433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4434 }
4435 arg5 = static_cast< byte >(val5);
4436 }
0085ce49
RD
4437 {
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4439 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 resultobj = SWIG_Py_Void();
4444 return resultobj;
4445fail:
4446 return NULL;
4447}
4448
4449
4450SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj = 0;
4452 wxColour *arg1 = (wxColour *) 0 ;
4453 unsigned long arg2 ;
4454 void *argp1 = 0 ;
4455 int res1 = 0 ;
4456 unsigned long val2 ;
4457 int ecode2 = 0 ;
4458 PyObject * obj0 = 0 ;
4459 PyObject * obj1 = 0 ;
4460 char * kwnames[] = {
4461 (char *) "self",(char *) "colRGB", NULL
4462 };
4463
4464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4466 if (!SWIG_IsOK(res1)) {
4467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4468 }
4469 arg1 = reinterpret_cast< wxColour * >(argp1);
4470 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4471 if (!SWIG_IsOK(ecode2)) {
4472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4473 }
4474 arg2 = static_cast< unsigned long >(val2);
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 (arg1)->Set(arg2);
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_Py_Void();
4482 return resultobj;
4483fail:
4484 return NULL;
4485}
4486
4487
4488SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj = 0;
4490 wxColour *arg1 = (wxColour *) 0 ;
4491 wxString *arg2 = 0 ;
4492 void *argp1 = 0 ;
4493 int res1 = 0 ;
4494 bool temp2 = false ;
4495 PyObject * obj0 = 0 ;
4496 PyObject * obj1 = 0 ;
4497 char * kwnames[] = {
4498 (char *) "self",(char *) "colourName", NULL
4499 };
4500
4501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4503 if (!SWIG_IsOK(res1)) {
4504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4505 }
4506 arg1 = reinterpret_cast< wxColour * >(argp1);
4507 {
4508 arg2 = wxString_in_helper(obj1);
4509 if (arg2 == NULL) SWIG_fail;
4510 temp2 = true;
4511 }
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4514 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 resultobj = SWIG_Py_Void();
4519 {
4520 if (temp2)
4521 delete arg2;
4522 }
4523 return resultobj;
4524fail:
4525 {
4526 if (temp2)
4527 delete arg2;
4528 }
4529 return NULL;
d14a1e28
RD
4530}
4531
4532
01f6b6d3
RD
4533SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj = 0;
4535 wxColour *arg1 = (wxColour *) 0 ;
4536 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4537 wxString result;
4538 void *argp1 = 0 ;
4539 int res1 = 0 ;
4540 long val2 ;
4541 int ecode2 = 0 ;
4542 PyObject * obj0 = 0 ;
4543 PyObject * obj1 = 0 ;
4544 char * kwnames[] = {
4545 (char *) "self",(char *) "flags", NULL
4546 };
4547
4548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4550 if (!SWIG_IsOK(res1)) {
4551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4552 }
4553 arg1 = reinterpret_cast< wxColour * >(argp1);
4554 if (obj1) {
4555 ecode2 = SWIG_AsVal_long(obj1, &val2);
4556 if (!SWIG_IsOK(ecode2)) {
4557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4558 }
4559 arg2 = static_cast< long >(val2);
4560 }
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 result = ((wxColour const *)arg1)->GetAsString(arg2);
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) SWIG_fail;
4566 }
4567 {
4568#if wxUSE_UNICODE
4569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4570#else
4571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4572#endif
4573 }
4574 return resultobj;
4575fail:
4576 return NULL;
4577}
4578
4579
0085ce49
RD
4580SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4581 PyObject *resultobj = 0;
4582 wxColour *arg1 = (wxColour *) 0 ;
4583 long result;
4584 void *argp1 = 0 ;
4585 int res1 = 0 ;
4586 PyObject *swig_obj[1] ;
4587
4588 if (!args) SWIG_fail;
4589 swig_obj[0] = args;
4590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4591 if (!SWIG_IsOK(res1)) {
4592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4593 }
4594 arg1 = reinterpret_cast< wxColour * >(argp1);
4595 {
4596 PyThreadState* __tstate = wxPyBeginAllowThreads();
4597 result = (long)((wxColour const *)arg1)->GetPixel();
4598 wxPyEndAllowThreads(__tstate);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 resultobj = SWIG_From_long(static_cast< long >(result));
4602 return resultobj;
4603fail:
4604 return NULL;
4605}
4606
4607
4608SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4609 PyObject *resultobj = 0;
4610 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4611 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4612 bool result;
4613 void *argp1 = 0 ;
4614 int res1 = 0 ;
0085ce49
RD
4615 PyObject * obj0 = 0 ;
4616 PyObject * obj1 = 0 ;
4617 char * kwnames[] = {
e9d6f3a4 4618 (char *) "self",(char *) "other", NULL
0085ce49
RD
4619 };
4620
4621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4623 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4625 }
4626 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4627 arg2 = obj1;
0085ce49 4628 {
e9d6f3a4 4629 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 {
4633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4634 }
4635 return resultobj;
4636fail:
4637 return NULL;
4638}
4639
4640
4641SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj = 0;
4643 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4644 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4645 bool result;
4646 void *argp1 = 0 ;
4647 int res1 = 0 ;
0085ce49
RD
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 char * kwnames[] = {
e9d6f3a4 4651 (char *) "self",(char *) "other", NULL
0085ce49
RD
4652 };
4653
4654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4656 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4658 }
4659 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4660 arg2 = obj1;
0085ce49 4661 {
e9d6f3a4 4662 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 {
4666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4667 }
4668 return resultobj;
4669fail:
4670 return NULL;
d14a1e28
RD
4671}
4672
4673
fc46b7f3 4674SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4675 PyObject *resultobj = 0;
4676 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4677 bool arg2 = (bool) false ;
0085ce49
RD
4678 PyObject *result = 0 ;
4679 void *argp1 = 0 ;
4680 int res1 = 0 ;
fc46b7f3
RD
4681 bool val2 ;
4682 int ecode2 = 0 ;
4683 PyObject * obj0 = 0 ;
4684 PyObject * obj1 = 0 ;
4685 char * kwnames[] = {
4686 (char *) "self",(char *) "includeAlpha", NULL
4687 };
0085ce49 4688
fc46b7f3
RD
4689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4691 if (!SWIG_IsOK(res1)) {
4692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4693 }
4694 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4695 if (obj1) {
4696 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4697 if (!SWIG_IsOK(ecode2)) {
4698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4699 }
4700 arg2 = static_cast< bool >(val2);
4701 }
0085ce49 4702 {
fc46b7f3 4703 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = result;
4707 return resultobj;
4708fail:
4709 return NULL;
d14a1e28
RD
4710}
4711
4712
0085ce49
RD
4713SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4714 PyObject *resultobj = 0;
4715 wxColour *arg1 = (wxColour *) 0 ;
4716 unsigned long result;
4717 void *argp1 = 0 ;
4718 int res1 = 0 ;
4719 PyObject *swig_obj[1] ;
4720
4721 if (!args) SWIG_fail;
4722 swig_obj[0] = args;
4723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4726 }
4727 arg1 = reinterpret_cast< wxColour * >(argp1);
4728 {
0085ce49 4729 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4733 return resultobj;
4734fail:
4735 return NULL;
4736}
4737
4738
4739SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4740 PyObject *obj;
4741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4742 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4743 return SWIG_Py_Void();
4744}
4745
4746SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 return SWIG_Python_InitShadowInstance(args);
4748}
4749
4750SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4751 PyObject *resultobj = 0;
4752 int arg1 ;
4753 unsigned char *arg2 = (unsigned char *) 0 ;
4754 unsigned char *arg3 = (unsigned char *) 0 ;
4755 unsigned char *arg4 = (unsigned char *) 0 ;
4756 wxPalette *result = 0 ;
4757 int val1 ;
4758 int ecode1 = 0 ;
4759 void *argp2 = 0 ;
4760 int res2 = 0 ;
4761 void *argp3 = 0 ;
4762 int res3 = 0 ;
4763 void *argp4 = 0 ;
4764 int res4 = 0 ;
4765 PyObject * obj0 = 0 ;
4766 PyObject * obj1 = 0 ;
4767 PyObject * obj2 = 0 ;
4768 PyObject * obj3 = 0 ;
4769 char * kwnames[] = {
4770 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4771 };
4772
4773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4774 ecode1 = SWIG_AsVal_int(obj0, &val1);
4775 if (!SWIG_IsOK(ecode1)) {
4776 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4777 }
4778 arg1 = static_cast< int >(val1);
4779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4780 if (!SWIG_IsOK(res2)) {
4781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4782 }
4783 arg2 = reinterpret_cast< unsigned char * >(argp2);
4784 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4785 if (!SWIG_IsOK(res3)) {
4786 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4787 }
4788 arg3 = reinterpret_cast< unsigned char * >(argp3);
4789 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4790 if (!SWIG_IsOK(res4)) {
4791 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4792 }
4793 arg4 = reinterpret_cast< unsigned char * >(argp4);
4794 {
4795 if (!wxPyCheckForApp()) SWIG_fail;
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4798 wxPyEndAllowThreads(__tstate);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 }
4801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4802 return resultobj;
4803fail:
4804 return NULL;
d14a1e28
RD
4805}
4806
4807
0085ce49
RD
4808SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4809 PyObject *resultobj = 0;
4810 wxPalette *arg1 = (wxPalette *) 0 ;
4811 void *argp1 = 0 ;
4812 int res1 = 0 ;
4813 PyObject *swig_obj[1] ;
4814
4815 if (!args) SWIG_fail;
4816 swig_obj[0] = args;
4817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4818 if (!SWIG_IsOK(res1)) {
4819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4820 }
4821 arg1 = reinterpret_cast< wxPalette * >(argp1);
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 delete arg1;
d14a1e28 4825
0085ce49
RD
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 resultobj = SWIG_Py_Void();
4830 return resultobj;
4831fail:
4832 return NULL;
4833}
4834
4835
4836SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4837 PyObject *resultobj = 0;
4838 wxPalette *arg1 = (wxPalette *) 0 ;
4839 byte arg2 ;
4840 byte arg3 ;
4841 byte arg4 ;
4842 int result;
4843 void *argp1 = 0 ;
4844 int res1 = 0 ;
4845 unsigned char val2 ;
4846 int ecode2 = 0 ;
4847 unsigned char val3 ;
4848 int ecode3 = 0 ;
4849 unsigned char val4 ;
4850 int ecode4 = 0 ;
4851 PyObject * obj0 = 0 ;
4852 PyObject * obj1 = 0 ;
4853 PyObject * obj2 = 0 ;
4854 PyObject * obj3 = 0 ;
4855 char * kwnames[] = {
4856 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4857 };
4858
4859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4861 if (!SWIG_IsOK(res1)) {
4862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4863 }
4864 arg1 = reinterpret_cast< wxPalette * >(argp1);
4865 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4866 if (!SWIG_IsOK(ecode2)) {
4867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4868 }
4869 arg2 = static_cast< byte >(val2);
4870 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4871 if (!SWIG_IsOK(ecode3)) {
4872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4873 }
4874 arg3 = static_cast< byte >(val3);
4875 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4876 if (!SWIG_IsOK(ecode4)) {
4877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4878 }
4879 arg4 = static_cast< byte >(val4);
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 resultobj = SWIG_From_int(static_cast< int >(result));
4887 return resultobj;
4888fail:
4889 return NULL;
4890}
4891
4892
4893SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj = 0;
4895 wxPalette *arg1 = (wxPalette *) 0 ;
4896 int arg2 ;
4897 byte *arg3 = (byte *) 0 ;
4898 byte *arg4 = (byte *) 0 ;
4899 byte *arg5 = (byte *) 0 ;
4900 bool result;
4901 void *argp1 = 0 ;
4902 int res1 = 0 ;
4903 int val2 ;
4904 int ecode2 = 0 ;
4905 byte temp3 ;
4906 int res3 = SWIG_TMPOBJ ;
4907 byte temp4 ;
4908 int res4 = SWIG_TMPOBJ ;
4909 byte temp5 ;
4910 int res5 = SWIG_TMPOBJ ;
4911 PyObject * obj0 = 0 ;
4912 PyObject * obj1 = 0 ;
4913 char * kwnames[] = {
4914 (char *) "self",(char *) "pixel", NULL
4915 };
4916
4917 arg3 = &temp3;
4918 arg4 = &temp4;
4919 arg5 = &temp5;
4920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4922 if (!SWIG_IsOK(res1)) {
4923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4924 }
4925 arg1 = reinterpret_cast< wxPalette * >(argp1);
4926 ecode2 = SWIG_AsVal_int(obj1, &val2);
4927 if (!SWIG_IsOK(ecode2)) {
4928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4929 }
4930 arg2 = static_cast< int >(val2);
4931 {
4932 PyThreadState* __tstate = wxPyBeginAllowThreads();
4933 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4934 wxPyEndAllowThreads(__tstate);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 {
4938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4939 }
4940 if (SWIG_IsTmpObj(res3)) {
4941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4942 } else {
4943 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4945 }
4946 if (SWIG_IsTmpObj(res4)) {
4947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4948 } else {
4949 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4951 }
4952 if (SWIG_IsTmpObj(res5)) {
4953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4954 } else {
4955 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4957 }
4958 return resultobj;
4959fail:
4960 return NULL;
d14a1e28
RD
4961}
4962
4963
0085ce49
RD
4964SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 wxPalette *arg1 = (wxPalette *) 0 ;
4967 int result;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 PyObject *swig_obj[1] ;
4971
4972 if (!args) SWIG_fail;
4973 swig_obj[0] = args;
4974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4975 if (!SWIG_IsOK(res1)) {
4976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4977 }
4978 arg1 = reinterpret_cast< wxPalette * >(argp1);
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 resultobj = SWIG_From_int(static_cast< int >(result));
4986 return resultobj;
4987fail:
4988 return NULL;
d14a1e28
RD
4989}
4990
4991
b39fe951 4992SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4993 PyObject *resultobj = 0;
4994 wxPalette *arg1 = (wxPalette *) 0 ;
4995 bool result;
4996 void *argp1 = 0 ;
4997 int res1 = 0 ;
4998 PyObject *swig_obj[1] ;
4999
5000 if (!args) SWIG_fail;
5001 swig_obj[0] = args;
5002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5003 if (!SWIG_IsOK(res1)) {
b39fe951 5004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
5005 }
5006 arg1 = reinterpret_cast< wxPalette * >(argp1);
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5009 result = (bool)(arg1)->IsOk();
0085ce49
RD
5010 wxPyEndAllowThreads(__tstate);
5011 if (PyErr_Occurred()) SWIG_fail;
5012 }
5013 {
5014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5015 }
5016 return resultobj;
5017fail:
5018 return NULL;
5019}
5020
5021
5022SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5023 PyObject *obj;
5024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5025 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5026 return SWIG_Py_Void();
5027}
5028
5029SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5030 return SWIG_Python_InitShadowInstance(args);
5031}
5032
5033SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5034 PyObject *resultobj = 0;
5035 wxColour *arg1 = 0 ;
5036 int arg2 = (int) 1 ;
5037 int arg3 = (int) wxSOLID ;
5038 wxPen *result = 0 ;
5039 wxColour temp1 ;
5040 int val2 ;
5041 int ecode2 = 0 ;
5042 int val3 ;
5043 int ecode3 = 0 ;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 PyObject * obj2 = 0 ;
5047 char * kwnames[] = {
5048 (char *) "colour",(char *) "width",(char *) "style", NULL
5049 };
5050
5051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5052 {
5053 arg1 = &temp1;
5054 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5055 }
5056 if (obj1) {
5057 ecode2 = SWIG_AsVal_int(obj1, &val2);
5058 if (!SWIG_IsOK(ecode2)) {
5059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5060 }
5061 arg2 = static_cast< int >(val2);
5062 }
5063 if (obj2) {
5064 ecode3 = SWIG_AsVal_int(obj2, &val3);
5065 if (!SWIG_IsOK(ecode3)) {
5066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5067 }
5068 arg3 = static_cast< int >(val3);
5069 }
5070 {
5071 if (!wxPyCheckForApp()) SWIG_fail;
5072 PyThreadState* __tstate = wxPyBeginAllowThreads();
5073 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5074 wxPyEndAllowThreads(__tstate);
5075 if (PyErr_Occurred()) SWIG_fail;
5076 }
5077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5078 return resultobj;
5079fail:
5080 return NULL;
d14a1e28
RD
5081}
5082
5083
0085ce49
RD
5084SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5085 PyObject *resultobj = 0;
5086 wxPen *arg1 = (wxPen *) 0 ;
5087 void *argp1 = 0 ;
5088 int res1 = 0 ;
5089 PyObject *swig_obj[1] ;
5090
5091 if (!args) SWIG_fail;
5092 swig_obj[0] = args;
5093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5094 if (!SWIG_IsOK(res1)) {
5095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5096 }
5097 arg1 = reinterpret_cast< wxPen * >(argp1);
5098 {
5099 PyThreadState* __tstate = wxPyBeginAllowThreads();
5100 delete arg1;
d14a1e28 5101
0085ce49
RD
5102 wxPyEndAllowThreads(__tstate);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 resultobj = SWIG_Py_Void();
5106 return resultobj;
5107fail:
5108 return NULL;
d14a1e28
RD
5109}
5110
5111
0085ce49
RD
5112SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5113 PyObject *resultobj = 0;
5114 wxPen *arg1 = (wxPen *) 0 ;
5115 int result;
5116 void *argp1 = 0 ;
5117 int res1 = 0 ;
5118 PyObject *swig_obj[1] ;
5119
5120 if (!args) SWIG_fail;
5121 swig_obj[0] = args;
5122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5123 if (!SWIG_IsOK(res1)) {
5124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5125 }
5126 arg1 = reinterpret_cast< wxPen * >(argp1);
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 result = (int)(arg1)->GetCap();
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 resultobj = SWIG_From_int(static_cast< int >(result));
5134 return resultobj;
5135fail:
5136 return NULL;
d14a1e28
RD
5137}
5138
5139
0085ce49
RD
5140SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5141 PyObject *resultobj = 0;
5142 wxPen *arg1 = (wxPen *) 0 ;
5143 wxColour result;
5144 void *argp1 = 0 ;
5145 int res1 = 0 ;
5146 PyObject *swig_obj[1] ;
5147
5148 if (!args) SWIG_fail;
5149 swig_obj[0] = args;
5150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5151 if (!SWIG_IsOK(res1)) {
5152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5153 }
5154 arg1 = reinterpret_cast< wxPen * >(argp1);
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 result = (arg1)->GetColour();
5158 wxPyEndAllowThreads(__tstate);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 }
5161 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5162 return resultobj;
5163fail:
5164 return NULL;
d14a1e28
RD
5165}
5166
5167
0085ce49
RD
5168SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5169 PyObject *resultobj = 0;
5170 wxPen *arg1 = (wxPen *) 0 ;
5171 int result;
5172 void *argp1 = 0 ;
5173 int res1 = 0 ;
5174 PyObject *swig_obj[1] ;
5175
5176 if (!args) SWIG_fail;
5177 swig_obj[0] = args;
5178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5179 if (!SWIG_IsOK(res1)) {
5180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5181 }
5182 arg1 = reinterpret_cast< wxPen * >(argp1);
5183 {
5184 PyThreadState* __tstate = wxPyBeginAllowThreads();
5185 result = (int)(arg1)->GetJoin();
5186 wxPyEndAllowThreads(__tstate);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 resultobj = SWIG_From_int(static_cast< int >(result));
5190 return resultobj;
5191fail:
5192 return NULL;
d14a1e28
RD
5193}
5194
5195
0085ce49
RD
5196SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5197 PyObject *resultobj = 0;
5198 wxPen *arg1 = (wxPen *) 0 ;
5199 int result;
5200 void *argp1 = 0 ;
5201 int res1 = 0 ;
5202 PyObject *swig_obj[1] ;
5203
5204 if (!args) SWIG_fail;
5205 swig_obj[0] = args;
5206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5207 if (!SWIG_IsOK(res1)) {
5208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5209 }
5210 arg1 = reinterpret_cast< wxPen * >(argp1);
5211 {
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 result = (int)(arg1)->GetStyle();
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_From_int(static_cast< int >(result));
5218 return resultobj;
5219fail:
5220 return NULL;
3adfb63b
RD
5221}
5222
5223
0085ce49
RD
5224SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5225 PyObject *resultobj = 0;
5226 wxPen *arg1 = (wxPen *) 0 ;
5227 int result;
5228 void *argp1 = 0 ;
5229 int res1 = 0 ;
5230 PyObject *swig_obj[1] ;
5231
5232 if (!args) SWIG_fail;
5233 swig_obj[0] = args;
5234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5235 if (!SWIG_IsOK(res1)) {
5236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5237 }
5238 arg1 = reinterpret_cast< wxPen * >(argp1);
5239 {
5240 PyThreadState* __tstate = wxPyBeginAllowThreads();
5241 result = (int)(arg1)->GetWidth();
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 resultobj = SWIG_From_int(static_cast< int >(result));
5246 return resultobj;
5247fail:
5248 return NULL;
d14a1e28
RD
5249}
5250
5251
b39fe951 5252SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5253 PyObject *resultobj = 0;
5254 wxPen *arg1 = (wxPen *) 0 ;
5255 bool result;
5256 void *argp1 = 0 ;
5257 int res1 = 0 ;
5258 PyObject *swig_obj[1] ;
5259
5260 if (!args) SWIG_fail;
5261 swig_obj[0] = args;
5262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
b39fe951 5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
5265 }
5266 arg1 = reinterpret_cast< wxPen * >(argp1);
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5269 result = (bool)(arg1)->IsOk();
0085ce49
RD
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 {
5274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5275 }
5276 return resultobj;
5277fail:
5278 return NULL;
5279}
5280
5281
5282SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj = 0;
5284 wxPen *arg1 = (wxPen *) 0 ;
5285 int arg2 ;
5286 void *argp1 = 0 ;
5287 int res1 = 0 ;
5288 int val2 ;
5289 int ecode2 = 0 ;
5290 PyObject * obj0 = 0 ;
5291 PyObject * obj1 = 0 ;
5292 char * kwnames[] = {
5293 (char *) "self",(char *) "cap_style", NULL
5294 };
5295
5296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5298 if (!SWIG_IsOK(res1)) {
5299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5300 }
5301 arg1 = reinterpret_cast< wxPen * >(argp1);
5302 ecode2 = SWIG_AsVal_int(obj1, &val2);
5303 if (!SWIG_IsOK(ecode2)) {
5304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5305 }
5306 arg2 = static_cast< int >(val2);
5307 {
5308 PyThreadState* __tstate = wxPyBeginAllowThreads();
5309 (arg1)->SetCap(arg2);
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 resultobj = SWIG_Py_Void();
5314 return resultobj;
5315fail:
5316 return NULL;
5317}
5318
5319
5320SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj = 0;
5322 wxPen *arg1 = (wxPen *) 0 ;
5323 wxColour *arg2 = 0 ;
5324 void *argp1 = 0 ;
5325 int res1 = 0 ;
5326 wxColour temp2 ;
5327 PyObject * obj0 = 0 ;
5328 PyObject * obj1 = 0 ;
5329 char * kwnames[] = {
5330 (char *) "self",(char *) "colour", NULL
5331 };
5332
5333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5335 if (!SWIG_IsOK(res1)) {
5336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5337 }
5338 arg1 = reinterpret_cast< wxPen * >(argp1);
5339 {
5340 arg2 = &temp2;
5341 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5342 }
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 (arg1)->SetColour(*arg2);
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 resultobj = SWIG_Py_Void();
5350 return resultobj;
5351fail:
5352 return NULL;
5353}
5354
5355
5356SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj = 0;
5358 wxPen *arg1 = (wxPen *) 0 ;
5359 int arg2 ;
5360 void *argp1 = 0 ;
5361 int res1 = 0 ;
5362 int val2 ;
5363 int ecode2 = 0 ;
5364 PyObject * obj0 = 0 ;
5365 PyObject * obj1 = 0 ;
5366 char * kwnames[] = {
5367 (char *) "self",(char *) "join_style", NULL
5368 };
5369
5370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5372 if (!SWIG_IsOK(res1)) {
5373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5374 }
5375 arg1 = reinterpret_cast< wxPen * >(argp1);
5376 ecode2 = SWIG_AsVal_int(obj1, &val2);
5377 if (!SWIG_IsOK(ecode2)) {
5378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5379 }
5380 arg2 = static_cast< int >(val2);
5381 {
5382 PyThreadState* __tstate = wxPyBeginAllowThreads();
5383 (arg1)->SetJoin(arg2);
5384 wxPyEndAllowThreads(__tstate);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 }
5387 resultobj = SWIG_Py_Void();
5388 return resultobj;
5389fail:
5390 return NULL;
5391}
5392
5393
5394SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5395 PyObject *resultobj = 0;
5396 wxPen *arg1 = (wxPen *) 0 ;
5397 int arg2 ;
5398 void *argp1 = 0 ;
5399 int res1 = 0 ;
5400 int val2 ;
5401 int ecode2 = 0 ;
5402 PyObject * obj0 = 0 ;
5403 PyObject * obj1 = 0 ;
5404 char * kwnames[] = {
5405 (char *) "self",(char *) "style", NULL
5406 };
5407
5408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5410 if (!SWIG_IsOK(res1)) {
5411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5412 }
5413 arg1 = reinterpret_cast< wxPen * >(argp1);
5414 ecode2 = SWIG_AsVal_int(obj1, &val2);
5415 if (!SWIG_IsOK(ecode2)) {
5416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5417 }
5418 arg2 = static_cast< int >(val2);
5419 {
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 (arg1)->SetStyle(arg2);
5422 wxPyEndAllowThreads(__tstate);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 }
5425 resultobj = SWIG_Py_Void();
5426 return resultobj;
5427fail:
5428 return NULL;
5429}
5430
5431
5432SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5433 PyObject *resultobj = 0;
5434 wxPen *arg1 = (wxPen *) 0 ;
5435 int arg2 ;
5436 void *argp1 = 0 ;
5437 int res1 = 0 ;
5438 int val2 ;
5439 int ecode2 = 0 ;
5440 PyObject * obj0 = 0 ;
5441 PyObject * obj1 = 0 ;
5442 char * kwnames[] = {
5443 (char *) "self",(char *) "width", NULL
5444 };
5445
5446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5448 if (!SWIG_IsOK(res1)) {
5449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5450 }
5451 arg1 = reinterpret_cast< wxPen * >(argp1);
5452 ecode2 = SWIG_AsVal_int(obj1, &val2);
5453 if (!SWIG_IsOK(ecode2)) {
5454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5455 }
5456 arg2 = static_cast< int >(val2);
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 (arg1)->SetWidth(arg2);
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 resultobj = SWIG_Py_Void();
5464 return resultobj;
5465fail:
5466 return NULL;
5467}
5468
5469
5470SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj = 0;
5472 wxPen *arg1 = (wxPen *) 0 ;
5473 int arg2 ;
5474 wxDash *arg3 = (wxDash *) 0 ;
5475 void *argp1 = 0 ;
5476 int res1 = 0 ;
5477 PyObject * obj0 = 0 ;
5478 PyObject * obj1 = 0 ;
5479 char * kwnames[] = {
5480 (char *) "self",(char *) "dashes", NULL
5481 };
5482
5483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5485 if (!SWIG_IsOK(res1)) {
5486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5487 }
5488 arg1 = reinterpret_cast< wxPen * >(argp1);
5489 {
5490 arg2 = PyList_Size(obj1);
5491 arg3 = (wxDash*)byte_LIST_helper(obj1);
5492 if (arg3 == NULL) SWIG_fail;
5493 }
5494 {
5495 PyThreadState* __tstate = wxPyBeginAllowThreads();
5496 (arg1)->SetDashes(arg2,arg3);
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 resultobj = SWIG_Py_Void();
5501 {
5502 if (arg3) delete [] arg3;
5503 }
5504 return resultobj;
5505fail:
5506 {
5507 if (arg3) delete [] arg3;
5508 }
5509 return NULL;
d14a1e28
RD
5510}
5511
5512
0085ce49
RD
5513SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5514 PyObject *resultobj = 0;
5515 wxPen *arg1 = (wxPen *) 0 ;
5516 PyObject *result = 0 ;
5517 void *argp1 = 0 ;
5518 int res1 = 0 ;
5519 PyObject *swig_obj[1] ;
5520
5521 if (!args) SWIG_fail;
5522 swig_obj[0] = args;
5523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5524 if (!SWIG_IsOK(res1)) {
5525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5526 }
5527 arg1 = reinterpret_cast< wxPen * >(argp1);
5528 {
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 result = (PyObject *)wxPen_GetDashes(arg1);
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 resultobj = result;
5535 return resultobj;
5536fail:
5537 return NULL;
5538}
5539
5540
5541SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5542 PyObject *resultobj = 0;
5543 wxPen *arg1 = (wxPen *) 0 ;
5544 PyObject *arg2 = (PyObject *) 0 ;
5545 PyObject *arg3 = (PyObject *) 0 ;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 PyObject * obj2 = 0 ;
5551 char * kwnames[] = {
5552 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5553 };
5554
5555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5557 if (!SWIG_IsOK(res1)) {
5558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5559 }
5560 arg1 = reinterpret_cast< wxPen * >(argp1);
5561 arg2 = obj1;
5562 arg3 = obj2;
5563 {
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
5565 wxPen__SetDashes(arg1,arg2,arg3);
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 resultobj = SWIG_Py_Void();
5570 return resultobj;
5571fail:
5572 return NULL;
d14a1e28
RD
5573}
5574
5575
0085ce49
RD
5576SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5577 PyObject *resultobj = 0;
5578 wxPen *arg1 = (wxPen *) 0 ;
5579 int result;
5580 void *argp1 = 0 ;
5581 int res1 = 0 ;
5582 PyObject *swig_obj[1] ;
5583
5584 if (!args) SWIG_fail;
5585 swig_obj[0] = args;
5586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5587 if (!SWIG_IsOK(res1)) {
5588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5589 }
5590 arg1 = reinterpret_cast< wxPen * >(argp1);
5591 {
5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
5593 result = (int)((wxPen const *)arg1)->GetDashCount();
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 resultobj = SWIG_From_int(static_cast< int >(result));
5598 return resultobj;
5599fail:
5600 return NULL;
5601}
5602
5603
5604SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj = 0;
5606 wxPen *arg1 = (wxPen *) 0 ;
5607 wxPen *arg2 = (wxPen *) 0 ;
5608 bool result;
5609 void *argp1 = 0 ;
5610 int res1 = 0 ;
5611 void *argp2 = 0 ;
5612 int res2 = 0 ;
5613 PyObject * obj0 = 0 ;
5614 PyObject * obj1 = 0 ;
5615 char * kwnames[] = {
5616 (char *) "self",(char *) "other", NULL
5617 };
5618
5619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5621 if (!SWIG_IsOK(res1)) {
5622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5623 }
5624 arg1 = reinterpret_cast< wxPen * >(argp1);
5625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5626 if (!SWIG_IsOK(res2)) {
5627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5628 }
5629 arg2 = reinterpret_cast< wxPen * >(argp2);
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5633 wxPyEndAllowThreads(__tstate);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 {
5637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5638 }
5639 return resultobj;
5640fail:
5641 return NULL;
5642}
5643
5644
5645SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5646 PyObject *resultobj = 0;
5647 wxPen *arg1 = (wxPen *) 0 ;
5648 wxPen *arg2 = (wxPen *) 0 ;
5649 bool result;
5650 void *argp1 = 0 ;
5651 int res1 = 0 ;
5652 void *argp2 = 0 ;
5653 int res2 = 0 ;
5654 PyObject * obj0 = 0 ;
5655 PyObject * obj1 = 0 ;
5656 char * kwnames[] = {
5657 (char *) "self",(char *) "other", NULL
5658 };
5659
5660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5664 }
5665 arg1 = reinterpret_cast< wxPen * >(argp1);
5666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5667 if (!SWIG_IsOK(res2)) {
5668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5669 }
5670 arg2 = reinterpret_cast< wxPen * >(argp2);
5671 {
5672 PyThreadState* __tstate = wxPyBeginAllowThreads();
5673 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 {
5678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5679 }
5680 return resultobj;
5681fail:
5682 return NULL;
d14a1e28
RD
5683}
5684
5685
0085ce49
RD
5686SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5687 PyObject *obj;
5688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5689 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5690 return SWIG_Py_Void();
d14a1e28
RD
5691}
5692
0085ce49
RD
5693SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5694 return SWIG_Python_InitShadowInstance(args);
5695}
d14a1e28 5696
0085ce49
RD
5697SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj = 0;
5699 wxColour *arg1 = 0 ;
5700 int arg2 = (int) wxSOLID ;
5701 wxBrush *result = 0 ;
5702 wxColour temp1 ;
5703 int val2 ;
5704 int ecode2 = 0 ;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 char * kwnames[] = {
5708 (char *) "colour",(char *) "style", NULL
5709 };
5710
5711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5712 {
5713 arg1 = &temp1;
5714 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5715 }
5716 if (obj1) {
5717 ecode2 = SWIG_AsVal_int(obj1, &val2);
5718 if (!SWIG_IsOK(ecode2)) {
5719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5720 }
5721 arg2 = static_cast< int >(val2);
5722 }
5723 {
5724 if (!wxPyCheckForApp()) SWIG_fail;
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5727 wxPyEndAllowThreads(__tstate);
5728 if (PyErr_Occurred()) SWIG_fail;
5729 }
5730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5731 return resultobj;
5732fail:
5733 return NULL;
5734}
5735
5736
5737SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj = 0;
5739 wxBitmap *arg1 = 0 ;
5740 wxBrush *result = 0 ;
5741 void *argp1 = 0 ;
5742 int res1 = 0 ;
5743 PyObject * obj0 = 0 ;
5744 char * kwnames[] = {
5745 (char *) "stippleBitmap", NULL
5746 };
5747
5748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5749 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5750 if (!SWIG_IsOK(res1)) {
5751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5752 }
5753 if (!argp1) {
5754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5755 }
5756 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5757 {
5758 if (!wxPyCheckForApp()) SWIG_fail;
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5765 return resultobj;
5766fail:
5767 return NULL;
d14a1e28
RD
5768}
5769
5770
0085ce49
RD
5771SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5772 PyObject *resultobj = 0;
5773 wxBrush *arg1 = (wxBrush *) 0 ;
5774 void *argp1 = 0 ;
5775 int res1 = 0 ;
5776 PyObject *swig_obj[1] ;
5777
5778 if (!args) SWIG_fail;
5779 swig_obj[0] = args;
5780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5781 if (!SWIG_IsOK(res1)) {
5782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5783 }
5784 arg1 = reinterpret_cast< wxBrush * >(argp1);
5785 {
5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
5787 delete arg1;
d14a1e28 5788
0085ce49
RD
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 resultobj = SWIG_Py_Void();
5793 return resultobj;
5794fail:
5795 return NULL;
5796}
5797
5798
5799SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj = 0;
5801 wxBrush *arg1 = (wxBrush *) 0 ;
5802 wxColour *arg2 = 0 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 wxColour temp2 ;
5806 PyObject * obj0 = 0 ;
5807 PyObject * obj1 = 0 ;
5808 char * kwnames[] = {
5809 (char *) "self",(char *) "col", NULL
5810 };
5811
5812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5814 if (!SWIG_IsOK(res1)) {
5815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5816 }
5817 arg1 = reinterpret_cast< wxBrush * >(argp1);
5818 {
5819 arg2 = &temp2;
5820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5821 }
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 (arg1)->SetColour((wxColour const &)*arg2);
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_Py_Void();
5829 return resultobj;
5830fail:
5831 return NULL;
5832}
5833
5834
5835SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj = 0;
5837 wxBrush *arg1 = (wxBrush *) 0 ;
5838 int arg2 ;
5839 void *argp1 = 0 ;
5840 int res1 = 0 ;
5841 int val2 ;
5842 int ecode2 = 0 ;
5843 PyObject * obj0 = 0 ;
5844 PyObject * obj1 = 0 ;
5845 char * kwnames[] = {
5846 (char *) "self",(char *) "style", NULL
5847 };
5848
5849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5851 if (!SWIG_IsOK(res1)) {
5852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5853 }
5854 arg1 = reinterpret_cast< wxBrush * >(argp1);
5855 ecode2 = SWIG_AsVal_int(obj1, &val2);
5856 if (!SWIG_IsOK(ecode2)) {
5857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5858 }
5859 arg2 = static_cast< int >(val2);
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 (arg1)->SetStyle(arg2);
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 resultobj = SWIG_Py_Void();
5867 return resultobj;
5868fail:
5869 return NULL;
5870}
5871
5872
5873SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj = 0;
5875 wxBrush *arg1 = (wxBrush *) 0 ;
5876 wxBitmap *arg2 = 0 ;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 void *argp2 = 0 ;
5880 int res2 = 0 ;
5881 PyObject * obj0 = 0 ;
5882 PyObject * obj1 = 0 ;
5883 char * kwnames[] = {
5884 (char *) "self",(char *) "stipple", NULL
5885 };
5886
5887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5889 if (!SWIG_IsOK(res1)) {
5890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5891 }
5892 arg1 = reinterpret_cast< wxBrush * >(argp1);
5893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5894 if (!SWIG_IsOK(res2)) {
5895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5896 }
5897 if (!argp2) {
5898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5899 }
5900 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5901 {
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 (arg1)->SetStipple((wxBitmap const &)*arg2);
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 resultobj = SWIG_Py_Void();
5908 return resultobj;
5909fail:
5910 return NULL;
d14a1e28
RD
5911}
5912
5913
0085ce49
RD
5914SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5915 PyObject *resultobj = 0;
5916 wxBrush *arg1 = (wxBrush *) 0 ;
5917 wxColour result;
5918 void *argp1 = 0 ;
5919 int res1 = 0 ;
5920 PyObject *swig_obj[1] ;
5921
5922 if (!args) SWIG_fail;
5923 swig_obj[0] = args;
5924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5925 if (!SWIG_IsOK(res1)) {
5926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5927 }
5928 arg1 = reinterpret_cast< wxBrush * >(argp1);
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 result = ((wxBrush const *)arg1)->GetColour();
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5936 return resultobj;
5937fail:
5938 return NULL;
d14a1e28
RD
5939}
5940
5941
0085ce49
RD
5942SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5943 PyObject *resultobj = 0;
5944 wxBrush *arg1 = (wxBrush *) 0 ;
5945 int result;
5946 void *argp1 = 0 ;
5947 int res1 = 0 ;
5948 PyObject *swig_obj[1] ;
5949
5950 if (!args) SWIG_fail;
5951 swig_obj[0] = args;
5952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5953 if (!SWIG_IsOK(res1)) {
5954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5955 }
5956 arg1 = reinterpret_cast< wxBrush * >(argp1);
5957 {
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 result = (int)((wxBrush const *)arg1)->GetStyle();
5960 wxPyEndAllowThreads(__tstate);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 resultobj = SWIG_From_int(static_cast< int >(result));
5964 return resultobj;
5965fail:
5966 return NULL;
d14a1e28
RD
5967}
5968
5969
0085ce49
RD
5970SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5971 PyObject *resultobj = 0;
5972 wxBrush *arg1 = (wxBrush *) 0 ;
5973 wxBitmap *result = 0 ;
5974 void *argp1 = 0 ;
5975 int res1 = 0 ;
5976 PyObject *swig_obj[1] ;
5977
5978 if (!args) SWIG_fail;
5979 swig_obj[0] = args;
5980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5981 if (!SWIG_IsOK(res1)) {
5982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5983 }
5984 arg1 = reinterpret_cast< wxBrush * >(argp1);
5985 {
5986 PyThreadState* __tstate = wxPyBeginAllowThreads();
5987 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5992 return resultobj;
5993fail:
5994 return NULL;
d14a1e28
RD
5995}
5996
5997
0085ce49
RD
5998SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5999 PyObject *resultobj = 0;
6000 wxBrush *arg1 = (wxBrush *) 0 ;
6001 bool result;
6002 void *argp1 = 0 ;
6003 int res1 = 0 ;
6004 PyObject *swig_obj[1] ;
6005
6006 if (!args) SWIG_fail;
6007 swig_obj[0] = args;
6008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6009 if (!SWIG_IsOK(res1)) {
6010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6011 }
6012 arg1 = reinterpret_cast< wxBrush * >(argp1);
6013 {
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 result = (bool)((wxBrush const *)arg1)->IsHatch();
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 {
6020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6021 }
6022 return resultobj;
6023fail:
6024 return NULL;
f78cc896
RD
6025}
6026
6027
b39fe951 6028SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6029 PyObject *resultobj = 0;
6030 wxBrush *arg1 = (wxBrush *) 0 ;
6031 bool result;
6032 void *argp1 = 0 ;
6033 int res1 = 0 ;
6034 PyObject *swig_obj[1] ;
6035
6036 if (!args) SWIG_fail;
6037 swig_obj[0] = args;
6038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6039 if (!SWIG_IsOK(res1)) {
b39fe951 6040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
6041 }
6042 arg1 = reinterpret_cast< wxBrush * >(argp1);
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6045 result = (bool)(arg1)->IsOk();
0085ce49
RD
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 {
6050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6051 }
6052 return resultobj;
6053fail:
6054 return NULL;
d14a1e28
RD
6055}
6056
6057
0085ce49
RD
6058SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6059 PyObject *obj;
6060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6061 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6062 return SWIG_Py_Void();
d14a1e28
RD
6063}
6064
0085ce49
RD
6065SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6066 return SWIG_Python_InitShadowInstance(args);
6067}
d14a1e28 6068
0085ce49
RD
6069SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj = 0;
6071 wxString *arg1 = 0 ;
6072 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6073 wxBitmap *result = 0 ;
6074 bool temp1 = false ;
6075 int val2 ;
6076 int ecode2 = 0 ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 char * kwnames[] = {
6080 (char *) "name",(char *) "type", NULL
6081 };
6082
6083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6084 {
6085 arg1 = wxString_in_helper(obj0);
6086 if (arg1 == NULL) SWIG_fail;
6087 temp1 = true;
6088 }
6089 if (obj1) {
6090 ecode2 = SWIG_AsVal_int(obj1, &val2);
6091 if (!SWIG_IsOK(ecode2)) {
6092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6093 }
6094 arg2 = static_cast< wxBitmapType >(val2);
6095 }
6096 {
6097 if (!wxPyCheckForApp()) SWIG_fail;
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6104 {
6105 if (temp1)
6106 delete arg1;
6107 }
6108 return resultobj;
6109fail:
6110 {
6111 if (temp1)
6112 delete arg1;
6113 }
6114 return NULL;
d14a1e28
RD
6115}
6116
6117
0085ce49
RD
6118SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6119 PyObject *resultobj = 0;
6120 wxBitmap *arg1 = (wxBitmap *) 0 ;
6121 void *argp1 = 0 ;
6122 int res1 = 0 ;
6123 PyObject *swig_obj[1] ;
6124
6125 if (!args) SWIG_fail;
6126 swig_obj[0] = args;
6127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6128 if (!SWIG_IsOK(res1)) {
6129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6130 }
6131 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6132 {
0085ce49 6133 delete arg1;
66c033b4 6134
0085ce49
RD
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_Py_Void();
6138 return resultobj;
6139fail:
6140 return NULL;
6141}
6142
6143
6144SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj = 0;
6146 int arg1 ;
6147 int arg2 ;
6148 int arg3 = (int) -1 ;
6149 wxBitmap *result = 0 ;
6150 int val1 ;
6151 int ecode1 = 0 ;
6152 int val2 ;
6153 int ecode2 = 0 ;
6154 int val3 ;
6155 int ecode3 = 0 ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6158 PyObject * obj2 = 0 ;
6159 char * kwnames[] = {
6160 (char *) "width",(char *) "height",(char *) "depth", NULL
6161 };
6162
6163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6164 ecode1 = SWIG_AsVal_int(obj0, &val1);
6165 if (!SWIG_IsOK(ecode1)) {
6166 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6167 }
6168 arg1 = static_cast< int >(val1);
6169 ecode2 = SWIG_AsVal_int(obj1, &val2);
6170 if (!SWIG_IsOK(ecode2)) {
6171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6172 }
6173 arg2 = static_cast< int >(val2);
6174 if (obj2) {
6175 ecode3 = SWIG_AsVal_int(obj2, &val3);
6176 if (!SWIG_IsOK(ecode3)) {
6177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6178 }
6179 arg3 = static_cast< int >(val3);
6180 }
6181 {
6182 if (!wxPyCheckForApp()) SWIG_fail;
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6189 return resultobj;
6190fail:
6191 return NULL;
6192}
6193
6194
6195SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj = 0;
6197 wxIcon *arg1 = 0 ;
6198 wxBitmap *result = 0 ;
6199 void *argp1 = 0 ;
6200 int res1 = 0 ;
6201 PyObject * obj0 = 0 ;
6202 char * kwnames[] = {
6203 (char *) "icon", NULL
6204 };
6205
6206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6207 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6208 if (!SWIG_IsOK(res1)) {
6209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6210 }
6211 if (!argp1) {
6212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6213 }
6214 arg1 = reinterpret_cast< wxIcon * >(argp1);
6215 {
6216 if (!wxPyCheckForApp()) SWIG_fail;
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6223 return resultobj;
6224fail:
6225 return NULL;
6226}
6227
6228
6229SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj = 0;
6231 wxImage *arg1 = 0 ;
6232 int arg2 = (int) -1 ;
6233 wxBitmap *result = 0 ;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 int val2 ;
6237 int ecode2 = 0 ;
6238 PyObject * obj0 = 0 ;
6239 PyObject * obj1 = 0 ;
6240 char * kwnames[] = {
6241 (char *) "image",(char *) "depth", NULL
6242 };
6243
6244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6245 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6248 }
6249 if (!argp1) {
6250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6251 }
6252 arg1 = reinterpret_cast< wxImage * >(argp1);
6253 if (obj1) {
6254 ecode2 = SWIG_AsVal_int(obj1, &val2);
6255 if (!SWIG_IsOK(ecode2)) {
6256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6257 }
6258 arg2 = static_cast< int >(val2);
6259 }
6260 {
6261 if (!wxPyCheckForApp()) SWIG_fail;
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6268 return resultobj;
6269fail:
6270 return NULL;
66c033b4
RD
6271}
6272
6273
0085ce49
RD
6274SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 PyObject *arg1 = (PyObject *) 0 ;
6277 wxBitmap *result = 0 ;
6278 PyObject * obj0 = 0 ;
6279 char * kwnames[] = {
6280 (char *) "listOfStrings", NULL
6281 };
6282
6283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6284 arg1 = obj0;
6285 {
6286 if (!wxPyCheckForApp()) SWIG_fail;
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (wxBitmap *)new_wxBitmap(arg1);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6293 return resultobj;
6294fail:
6295 return NULL;
6296}
6297
6298
6299SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj = 0;
6301 PyObject *arg1 = (PyObject *) 0 ;
6302 int arg2 ;
6303 int arg3 ;
6304 int arg4 = (int) 1 ;
6305 wxBitmap *result = 0 ;
6306 int val2 ;
6307 int ecode2 = 0 ;
6308 int val3 ;
6309 int ecode3 = 0 ;
6310 int val4 ;
6311 int ecode4 = 0 ;
6312 PyObject * obj0 = 0 ;
6313 PyObject * obj1 = 0 ;
6314 PyObject * obj2 = 0 ;
6315 PyObject * obj3 = 0 ;
6316 char * kwnames[] = {
6317 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6318 };
6319
6320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6321 arg1 = obj0;
6322 ecode2 = SWIG_AsVal_int(obj1, &val2);
6323 if (!SWIG_IsOK(ecode2)) {
6324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6325 }
6326 arg2 = static_cast< int >(val2);
6327 ecode3 = SWIG_AsVal_int(obj2, &val3);
6328 if (!SWIG_IsOK(ecode3)) {
6329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6330 }
6331 arg3 = static_cast< int >(val3);
6332 if (obj3) {
6333 ecode4 = SWIG_AsVal_int(obj3, &val4);
6334 if (!SWIG_IsOK(ecode4)) {
6335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6336 }
6337 arg4 = static_cast< int >(val4);
6338 }
6339 {
6340 if (!wxPyCheckForApp()) SWIG_fail;
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6347 return resultobj;
6348fail:
6349 return NULL;
d14a1e28
RD
6350}
6351
6352
b39fe951 6353SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6354 PyObject *resultobj = 0;
6355 wxBitmap *arg1 = (wxBitmap *) 0 ;
6356 bool result;
6357 void *argp1 = 0 ;
6358 int res1 = 0 ;
6359 PyObject *swig_obj[1] ;
6360
6361 if (!args) SWIG_fail;
6362 swig_obj[0] = args;
6363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6364 if (!SWIG_IsOK(res1)) {
b39fe951 6365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6366 }
6367 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6368 {
b39fe951 6369 result = (bool)(arg1)->IsOk();
0085ce49
RD
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 {
6373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6374 }
6375 return resultobj;
6376fail:
6377 return NULL;
d14a1e28
RD
6378}
6379
6380
0085ce49
RD
6381SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6382 PyObject *resultobj = 0;
6383 wxBitmap *arg1 = (wxBitmap *) 0 ;
6384 int result;
6385 void *argp1 = 0 ;
6386 int res1 = 0 ;
6387 PyObject *swig_obj[1] ;
6388
6389 if (!args) SWIG_fail;
6390 swig_obj[0] = args;
6391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6392 if (!SWIG_IsOK(res1)) {
6393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6394 }
6395 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6396 {
0085ce49 6397 result = (int)(arg1)->GetWidth();
0085ce49
RD
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 resultobj = SWIG_From_int(static_cast< int >(result));
6401 return resultobj;
6402fail:
6403 return NULL;
d14a1e28
RD
6404}
6405
6406
0085ce49
RD
6407SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6408 PyObject *resultobj = 0;
6409 wxBitmap *arg1 = (wxBitmap *) 0 ;
6410 int result;
6411 void *argp1 = 0 ;
6412 int res1 = 0 ;
6413 PyObject *swig_obj[1] ;
6414
6415 if (!args) SWIG_fail;
6416 swig_obj[0] = args;
6417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6418 if (!SWIG_IsOK(res1)) {
6419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6420 }
6421 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6422 {
0085ce49 6423 result = (int)(arg1)->GetHeight();
0085ce49
RD
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_From_int(static_cast< int >(result));
6427 return resultobj;
6428fail:
6429 return NULL;
d14a1e28
RD
6430}
6431
6432
0085ce49
RD
6433SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6434 PyObject *resultobj = 0;
6435 wxBitmap *arg1 = (wxBitmap *) 0 ;
6436 int result;
6437 void *argp1 = 0 ;
6438 int res1 = 0 ;
6439 PyObject *swig_obj[1] ;
6440
6441 if (!args) SWIG_fail;
6442 swig_obj[0] = args;
6443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6444 if (!SWIG_IsOK(res1)) {
6445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6446 }
6447 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6448 {
0085ce49 6449 result = (int)(arg1)->GetDepth();
0085ce49
RD
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 resultobj = SWIG_From_int(static_cast< int >(result));
6453 return resultobj;
6454fail:
6455 return NULL;
d14a1e28
RD
6456}
6457
6458
0085ce49
RD
6459SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6460 PyObject *resultobj = 0;
6461 wxBitmap *arg1 = (wxBitmap *) 0 ;
6462 wxSize result;
6463 void *argp1 = 0 ;
6464 int res1 = 0 ;
6465 PyObject *swig_obj[1] ;
6466
6467 if (!args) SWIG_fail;
6468 swig_obj[0] = args;
6469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6470 if (!SWIG_IsOK(res1)) {
6471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6472 }
6473 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6474 {
0085ce49 6475 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6479 return resultobj;
6480fail:
6481 return NULL;
d14a1e28
RD
6482}
6483
6484
0085ce49
RD
6485SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6486 PyObject *resultobj = 0;
6487 wxBitmap *arg1 = (wxBitmap *) 0 ;
6488 SwigValueWrapper<wxImage > result;
6489 void *argp1 = 0 ;
6490 int res1 = 0 ;
6491 PyObject *swig_obj[1] ;
6492
6493 if (!args) SWIG_fail;
6494 swig_obj[0] = args;
6495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6496 if (!SWIG_IsOK(res1)) {
6497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6498 }
6499 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6500 {
0085ce49 6501 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6505 return resultobj;
6506fail:
6507 return NULL;
d14a1e28
RD
6508}
6509
6510
0085ce49
RD
6511SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxBitmap *arg1 = (wxBitmap *) 0 ;
6514 wxMask *result = 0 ;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject *swig_obj[1] ;
6518
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6524 }
6525 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6526 {
0085ce49 6527 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6531 return resultobj;
6532fail:
6533 return NULL;
6534}
6535
6536
6537SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj = 0;
6539 wxBitmap *arg1 = (wxBitmap *) 0 ;
6540 wxMask *arg2 = (wxMask *) 0 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 int res2 = 0 ;
6544 PyObject * obj0 = 0 ;
6545 PyObject * obj1 = 0 ;
6546 char * kwnames[] = {
6547 (char *) "self",(char *) "mask", NULL
6548 };
6549
6550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6552 if (!SWIG_IsOK(res1)) {
6553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6554 }
6555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6556 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6557 if (!SWIG_IsOK(res2)) {
6558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6559 }
6560 {
0085ce49 6561 (arg1)->SetMask(arg2);
0085ce49
RD
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_Py_Void();
6565 return resultobj;
6566fail:
6567 return NULL;
6568}
6569
6570
6571SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 wxColour *arg2 = 0 ;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 wxColour temp2 ;
6578 PyObject * obj0 = 0 ;
6579 PyObject * obj1 = 0 ;
6580 char * kwnames[] = {
6581 (char *) "self",(char *) "colour", NULL
6582 };
6583
6584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6586 if (!SWIG_IsOK(res1)) {
6587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6588 }
6589 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6590 {
6591 arg2 = &temp2;
6592 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6593 }
6594 {
0085ce49 6595 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 resultobj = SWIG_Py_Void();
6599 return resultobj;
6600fail:
6601 return NULL;
6602}
6603
6604
6605SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6606 PyObject *resultobj = 0;
6607 wxBitmap *arg1 = (wxBitmap *) 0 ;
6608 wxRect *arg2 = 0 ;
6609 SwigValueWrapper<wxBitmap > result;
6610 void *argp1 = 0 ;
6611 int res1 = 0 ;
6612 wxRect temp2 ;
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 char * kwnames[] = {
6616 (char *) "self",(char *) "rect", NULL
6617 };
6618
6619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6621 if (!SWIG_IsOK(res1)) {
6622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6623 }
6624 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6625 {
6626 arg2 = &temp2;
6627 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6628 }
6629 {
0085ce49 6630 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6634 return resultobj;
6635fail:
6636 return NULL;
6637}
6638
6639
6640SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj = 0;
6642 wxBitmap *arg1 = (wxBitmap *) 0 ;
6643 wxString *arg2 = 0 ;
6644 wxBitmapType arg3 ;
6645 wxPalette *arg4 = (wxPalette *) NULL ;
6646 bool result;
6647 void *argp1 = 0 ;
6648 int res1 = 0 ;
6649 bool temp2 = false ;
6650 int val3 ;
6651 int ecode3 = 0 ;
6652 void *argp4 = 0 ;
6653 int res4 = 0 ;
6654 PyObject * obj0 = 0 ;
6655 PyObject * obj1 = 0 ;
6656 PyObject * obj2 = 0 ;
6657 PyObject * obj3 = 0 ;
6658 char * kwnames[] = {
6659 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6660 };
6661
6662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6664 if (!SWIG_IsOK(res1)) {
6665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6666 }
6667 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6668 {
6669 arg2 = wxString_in_helper(obj1);
6670 if (arg2 == NULL) SWIG_fail;
6671 temp2 = true;
6672 }
6673 ecode3 = SWIG_AsVal_int(obj2, &val3);
6674 if (!SWIG_IsOK(ecode3)) {
6675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6676 }
6677 arg3 = static_cast< wxBitmapType >(val3);
6678 if (obj3) {
6679 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6680 if (!SWIG_IsOK(res4)) {
6681 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6682 }
0085ce49
RD
6683 arg4 = reinterpret_cast< wxPalette * >(argp4);
6684 }
6685 {
0085ce49 6686 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 {
6690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6691 }
6692 {
6693 if (temp2)
6694 delete arg2;
6695 }
6696 return resultobj;
6697fail:
6698 {
6699 if (temp2)
6700 delete arg2;
6701 }
6702 return NULL;
6703}
6704
6705
6706SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6707 PyObject *resultobj = 0;
6708 wxBitmap *arg1 = (wxBitmap *) 0 ;
6709 wxString *arg2 = 0 ;
6710 wxBitmapType arg3 ;
6711 bool result;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 bool temp2 = false ;
6715 int val3 ;
6716 int ecode3 = 0 ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719 PyObject * obj2 = 0 ;
6720 char * kwnames[] = {
6721 (char *) "self",(char *) "name",(char *) "type", NULL
6722 };
6723
6724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6726 if (!SWIG_IsOK(res1)) {
6727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6728 }
6729 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6730 {
6731 arg2 = wxString_in_helper(obj1);
6732 if (arg2 == NULL) SWIG_fail;
6733 temp2 = true;
6734 }
6735 ecode3 = SWIG_AsVal_int(obj2, &val3);
6736 if (!SWIG_IsOK(ecode3)) {
6737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6738 }
6739 arg3 = static_cast< wxBitmapType >(val3);
6740 {
0085ce49 6741 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 {
6745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6746 }
6747 {
6748 if (temp2)
6749 delete arg2;
6750 }
6751 return resultobj;
6752fail:
6753 {
6754 if (temp2)
6755 delete arg2;
6756 }
6757 return NULL;
d04418a7
RD
6758}
6759
6760
0085ce49
RD
6761SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6762 PyObject *resultobj = 0;
6763 wxBitmap *arg1 = (wxBitmap *) 0 ;
6764 wxPalette *result = 0 ;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 PyObject *swig_obj[1] ;
6768
6769 if (!args) SWIG_fail;
6770 swig_obj[0] = args;
6771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6772 if (!SWIG_IsOK(res1)) {
6773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6774 }
6775 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6776 {
0085ce49 6777 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6781 return resultobj;
6782fail:
6783 return NULL;
6784}
6785
6786
6787SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6788 PyObject *resultobj = 0;
6789 wxBitmap *arg1 = (wxBitmap *) 0 ;
6790 wxIcon *arg2 = 0 ;
6791 bool result;
6792 void *argp1 = 0 ;
6793 int res1 = 0 ;
6794 void *argp2 = 0 ;
6795 int res2 = 0 ;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 char * kwnames[] = {
6799 (char *) "self",(char *) "icon", NULL
6800 };
6801
6802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6804 if (!SWIG_IsOK(res1)) {
6805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6806 }
6807 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6809 if (!SWIG_IsOK(res2)) {
6810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6811 }
6812 if (!argp2) {
6813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6814 }
6815 arg2 = reinterpret_cast< wxIcon * >(argp2);
6816 {
0085ce49 6817 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 {
6821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6822 }
6823 return resultobj;
6824fail:
6825 return NULL;
6826}
6827
6828
6829SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6830 PyObject *resultobj = 0;
6831 wxBitmap *arg1 = (wxBitmap *) 0 ;
6832 int arg2 ;
6833 void *argp1 = 0 ;
6834 int res1 = 0 ;
6835 int val2 ;
6836 int ecode2 = 0 ;
6837 PyObject * obj0 = 0 ;
6838 PyObject * obj1 = 0 ;
6839 char * kwnames[] = {
6840 (char *) "self",(char *) "height", NULL
6841 };
6842
6843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6845 if (!SWIG_IsOK(res1)) {
6846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6847 }
6848 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6849 ecode2 = SWIG_AsVal_int(obj1, &val2);
6850 if (!SWIG_IsOK(ecode2)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6852 }
6853 arg2 = static_cast< int >(val2);
6854 {
0085ce49 6855 (arg1)->SetHeight(arg2);
0085ce49
RD
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 resultobj = SWIG_Py_Void();
6859 return resultobj;
6860fail:
6861 return NULL;
6862}
6863
6864
6865SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6866 PyObject *resultobj = 0;
6867 wxBitmap *arg1 = (wxBitmap *) 0 ;
6868 int arg2 ;
6869 void *argp1 = 0 ;
6870 int res1 = 0 ;
6871 int val2 ;
6872 int ecode2 = 0 ;
6873 PyObject * obj0 = 0 ;
6874 PyObject * obj1 = 0 ;
6875 char * kwnames[] = {
6876 (char *) "self",(char *) "width", NULL
6877 };
6878
6879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6881 if (!SWIG_IsOK(res1)) {
6882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6883 }
6884 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6885 ecode2 = SWIG_AsVal_int(obj1, &val2);
6886 if (!SWIG_IsOK(ecode2)) {
6887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6888 }
6889 arg2 = static_cast< int >(val2);
6890 {
0085ce49 6891 (arg1)->SetWidth(arg2);
0085ce49
RD
6892 if (PyErr_Occurred()) SWIG_fail;
6893 }
6894 resultobj = SWIG_Py_Void();
6895 return resultobj;
6896fail:
6897 return NULL;
6898}
6899
6900
6901SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6902 PyObject *resultobj = 0;
6903 wxBitmap *arg1 = (wxBitmap *) 0 ;
6904 int arg2 ;
6905 void *argp1 = 0 ;
6906 int res1 = 0 ;
6907 int val2 ;
6908 int ecode2 = 0 ;
6909 PyObject * obj0 = 0 ;
6910 PyObject * obj1 = 0 ;
6911 char * kwnames[] = {
6912 (char *) "self",(char *) "depth", NULL
6913 };
6914
6915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6917 if (!SWIG_IsOK(res1)) {
6918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6919 }
6920 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6921 ecode2 = SWIG_AsVal_int(obj1, &val2);
6922 if (!SWIG_IsOK(ecode2)) {
6923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6924 }
6925 arg2 = static_cast< int >(val2);
6926 {
0085ce49 6927 (arg1)->SetDepth(arg2);
0085ce49
RD
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 resultobj = SWIG_Py_Void();
6931 return resultobj;
6932fail:
6933 return NULL;
6934}
6935
6936
6937SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6938 PyObject *resultobj = 0;
6939 wxBitmap *arg1 = (wxBitmap *) 0 ;
6940 wxSize *arg2 = 0 ;
6941 void *argp1 = 0 ;
6942 int res1 = 0 ;
6943 wxSize temp2 ;
6944 PyObject * obj0 = 0 ;
6945 PyObject * obj1 = 0 ;
6946 char * kwnames[] = {
6947 (char *) "self",(char *) "size", NULL
6948 };
6949
6950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6952 if (!SWIG_IsOK(res1)) {
6953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6954 }
6955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6956 {
6957 arg2 = &temp2;
6958 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6959 }
6960 {
0085ce49 6961 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 resultobj = SWIG_Py_Void();
6965 return resultobj;
6966fail:
6967 return NULL;
6968}
6969
6970
8f514ab4
RD
6971SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6972 PyObject *resultobj = 0;
6973 wxBitmap *arg1 = (wxBitmap *) 0 ;
6974 buffer arg2 ;
6975 int arg3 ;
6976 void *argp1 = 0 ;
6977 int res1 = 0 ;
6978 Py_ssize_t temp2 ;
6979 PyObject * obj0 = 0 ;
6980 PyObject * obj1 = 0 ;
6981 char * kwnames[] = {
6982 (char *) "self",(char *) "data", NULL
6983 };
6984
6985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
6986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6987 if (!SWIG_IsOK(res1)) {
6988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
6989 }
6990 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6991 {
6992 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
6993 arg3 = (int)temp2;
6994 }
6995 {
6996 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 resultobj = SWIG_Py_Void();
7000 return resultobj;
7001fail:
7002 return NULL;
7003}
7004
7005
7006SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj = 0;
7008 wxBitmap *arg1 = (wxBitmap *) 0 ;
7009 buffer arg2 ;
7010 int arg3 ;
7011 void *argp1 = 0 ;
7012 int res1 = 0 ;
7013 Py_ssize_t temp2 ;
7014 PyObject * obj0 = 0 ;
7015 PyObject * obj1 = 0 ;
7016 char * kwnames[] = {
7017 (char *) "self",(char *) "data", NULL
7018 };
7019
7020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7022 if (!SWIG_IsOK(res1)) {
7023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7024 }
7025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7026 {
7027 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7028 arg3 = (int)temp2;
7029 }
7030 {
7031 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_Py_Void();
7035 return resultobj;
7036fail:
7037 return NULL;
7038}
7039
7040
0085ce49
RD
7041SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = 0;
7043 wxBitmap *arg1 = (wxBitmap *) 0 ;
7044 wxBitmap *arg2 = (wxBitmap *) 0 ;
7045 bool result;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 void *argp2 = 0 ;
7049 int res2 = 0 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char * kwnames[] = {
7053 (char *) "self",(char *) "other", NULL
7054 };
7055
7056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7058 if (!SWIG_IsOK(res1)) {
7059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7060 }
7061 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7062 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7063 if (!SWIG_IsOK(res2)) {
7064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7065 }
7066 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7067 {
0085ce49 7068 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
7069 if (PyErr_Occurred()) SWIG_fail;
7070 }
7071 {
fc46b7f3
RD
7072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7073 }
7074 return resultobj;
7075fail:
7076 return NULL;
7077}
7078
7079
7080SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj = 0;
7082 wxBitmap *arg1 = (wxBitmap *) 0 ;
7083 wxBitmap *arg2 = (wxBitmap *) 0 ;
7084 bool result;
7085 void *argp1 = 0 ;
7086 int res1 = 0 ;
7087 void *argp2 = 0 ;
7088 int res2 = 0 ;
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 char * kwnames[] = {
7092 (char *) "self",(char *) "other", NULL
7093 };
7094
7095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7097 if (!SWIG_IsOK(res1)) {
7098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7099 }
7100 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7102 if (!SWIG_IsOK(res2)) {
7103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7104 }
7105 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7106 {
7107 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7108 if (PyErr_Occurred()) SWIG_fail;
7109 }
7110 {
7111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7112 }
7113 return resultobj;
7114fail:
7115 return NULL;
7116}
7117
7118
7119SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7120 PyObject *obj;
7121 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7122 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7123 return SWIG_Py_Void();
7124}
7125
7126SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7127 return SWIG_Python_InitShadowInstance(args);
7128}
7129
7130SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 int arg1 ;
7133 int arg2 ;
7134 buffer arg3 ;
7135 int arg4 ;
7136 buffer arg5 ;
7137 int arg6 ;
7138 wxBitmap *result = 0 ;
7139 int val1 ;
7140 int ecode1 = 0 ;
7141 int val2 ;
7142 int ecode2 = 0 ;
c79fdf86
RD
7143 Py_ssize_t temp3 ;
7144 Py_ssize_t temp5 ;
fc46b7f3
RD
7145 PyObject * obj0 = 0 ;
7146 PyObject * obj1 = 0 ;
7147 PyObject * obj2 = 0 ;
7148 PyObject * obj3 = 0 ;
7149 char * kwnames[] = {
7150 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7151 };
7152
7153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7154 ecode1 = SWIG_AsVal_int(obj0, &val1);
7155 if (!SWIG_IsOK(ecode1)) {
7156 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7157 }
7158 arg1 = static_cast< int >(val1);
7159 ecode2 = SWIG_AsVal_int(obj1, &val2);
7160 if (!SWIG_IsOK(ecode2)) {
7161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7162 }
7163 arg2 = static_cast< int >(val2);
7164 {
c79fdf86
RD
7165 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7166 arg4 = (int)temp3;
fc46b7f3
RD
7167 }
7168 {
7169 if (obj3 != Py_None) {
c79fdf86
RD
7170 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7171 arg6 = (int)temp5;
fc46b7f3
RD
7172 }
7173 }
7174 {
7175 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7176 if (PyErr_Occurred()) SWIG_fail;
7177 }
7178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7179 return resultobj;
7180fail:
7181 return NULL;
7182}
7183
7184
7185SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7186 PyObject *resultobj = 0;
7187 int arg1 ;
7188 int arg2 ;
7189 buffer arg3 ;
7190 int arg4 ;
7191 wxBitmap *result = 0 ;
7192 int val1 ;
7193 int ecode1 = 0 ;
7194 int val2 ;
7195 int ecode2 = 0 ;
c79fdf86 7196 Py_ssize_t temp3 ;
fc46b7f3
RD
7197 PyObject * obj0 = 0 ;
7198 PyObject * obj1 = 0 ;
7199 PyObject * obj2 = 0 ;
7200 char * kwnames[] = {
7201 (char *) "width",(char *) "height",(char *) "data", NULL
7202 };
7203
7204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7205 ecode1 = SWIG_AsVal_int(obj0, &val1);
7206 if (!SWIG_IsOK(ecode1)) {
7207 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7208 }
7209 arg1 = static_cast< int >(val1);
7210 ecode2 = SWIG_AsVal_int(obj1, &val2);
7211 if (!SWIG_IsOK(ecode2)) {
7212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7213 }
7214 arg2 = static_cast< int >(val2);
7215 {
c79fdf86
RD
7216 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7217 arg4 = (int)temp3;
fc46b7f3
RD
7218 }
7219 {
7220 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7224 return resultobj;
7225fail:
7226 return NULL;
7227}
7228
7229
7230SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj = 0;
7232 int arg1 ;
7233 int arg2 ;
7234 buffer arg3 ;
7235 int arg4 ;
7236 wxBitmap *result = 0 ;
7237 int val1 ;
7238 int ecode1 = 0 ;
7239 int val2 ;
7240 int ecode2 = 0 ;
c79fdf86 7241 Py_ssize_t temp3 ;
fc46b7f3
RD
7242 PyObject * obj0 = 0 ;
7243 PyObject * obj1 = 0 ;
7244 PyObject * obj2 = 0 ;
7245 char * kwnames[] = {
7246 (char *) "width",(char *) "height",(char *) "data", NULL
7247 };
7248
7249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7250 ecode1 = SWIG_AsVal_int(obj0, &val1);
7251 if (!SWIG_IsOK(ecode1)) {
7252 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7253 }
7254 arg1 = static_cast< int >(val1);
7255 ecode2 = SWIG_AsVal_int(obj1, &val2);
7256 if (!SWIG_IsOK(ecode2)) {
7257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7258 }
7259 arg2 = static_cast< int >(val2);
7260 {
c79fdf86
RD
7261 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7262 arg4 = (int)temp3;
fc46b7f3
RD
7263 }
7264 {
7265 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7269 return resultobj;
7270fail:
7271 return NULL;
7272}
7273
7274
7275SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7276 PyObject *resultobj = 0;
7277 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7278 wxPoint result;
7279 void *argp1 = 0 ;
7280 int res1 = 0 ;
7281 PyObject *swig_obj[1] ;
7282
7283 if (!args) SWIG_fail;
7284 swig_obj[0] = args;
7285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7286 if (!SWIG_IsOK(res1)) {
7287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7288 }
7289 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7290 {
7291 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7295 return resultobj;
7296fail:
7297 return NULL;
7298}
7299
7300
7301SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 PyObject *resultobj = 0;
7303 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7304 int result;
7305 void *argp1 = 0 ;
7306 int res1 = 0 ;
7307 PyObject *swig_obj[1] ;
7308
7309 if (!args) SWIG_fail;
7310 swig_obj[0] = args;
7311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7312 if (!SWIG_IsOK(res1)) {
7313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7314 }
7315 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7316 {
7317 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = SWIG_From_int(static_cast< int >(result));
7321 return resultobj;
7322fail:
7323 return NULL;
7324}
7325
7326
7327SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 PyObject *resultobj = 0;
7329 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7330 int result;
7331 void *argp1 = 0 ;
7332 int res1 = 0 ;
7333 PyObject *swig_obj[1] ;
7334
7335 if (!args) SWIG_fail;
7336 swig_obj[0] = args;
7337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7340 }
7341 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7342 {
7343 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_From_int(static_cast< int >(result));
7347 return resultobj;
7348fail:
7349 return NULL;
7350}
7351
7352
7353SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *resultobj = 0;
7355 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7356 wxSize result;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 PyObject *swig_obj[1] ;
7360
7361 if (!args) SWIG_fail;
7362 swig_obj[0] = args;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7366 }
7367 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7368 {
7369 result = ((wxPixelDataBase const *)arg1)->GetSize();
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7373 return resultobj;
7374fail:
7375 return NULL;
7376}
7377
7378
7379SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7380 PyObject *resultobj = 0;
7381 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7382 int result;
7383 void *argp1 = 0 ;
7384 int res1 = 0 ;
7385 PyObject *swig_obj[1] ;
7386
7387 if (!args) SWIG_fail;
7388 swig_obj[0] = args;
7389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7390 if (!SWIG_IsOK(res1)) {
7391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7392 }
7393 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7394 {
7395 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7396 if (PyErr_Occurred()) SWIG_fail;
7397 }
7398 resultobj = SWIG_From_int(static_cast< int >(result));
7399 return resultobj;
7400fail:
7401 return NULL;
7402}
7403
7404
7405SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7406 PyObject *obj;
7407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7408 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7409 return SWIG_Py_Void();
7410}
7411
7412SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7413 PyObject *resultobj = 0;
7414 wxBitmap *arg1 = 0 ;
7415 wxNativePixelData *result = 0 ;
7416 void *argp1 = 0 ;
7417 int res1 = 0 ;
7418
7419 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7421 if (!SWIG_IsOK(res1)) {
7422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7423 }
7424 if (!argp1) {
7425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7426 }
7427 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7428 {
7429 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7433 return resultobj;
7434fail:
7435 return NULL;
7436}
7437
7438
7439SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7440 PyObject *resultobj = 0;
7441 wxBitmap *arg1 = 0 ;
7442 wxRect *arg2 = 0 ;
7443 wxNativePixelData *result = 0 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 wxRect temp2 ;
7447
7448 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7450 if (!SWIG_IsOK(res1)) {
7451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7452 }
7453 if (!argp1) {
7454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7455 }
7456 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7457 {
7458 arg2 = &temp2;
7459 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7460 }
7461 {
7462 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7466 return resultobj;
7467fail:
7468 return NULL;
7469}
7470
7471
7472SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7473 PyObject *resultobj = 0;
7474 wxBitmap *arg1 = 0 ;
7475 wxPoint *arg2 = 0 ;
7476 wxSize *arg3 = 0 ;
7477 wxNativePixelData *result = 0 ;
7478 void *argp1 = 0 ;
7479 int res1 = 0 ;
7480 wxPoint temp2 ;
7481 wxSize temp3 ;
7482
7483 if ((nobjs < 3) || (nobjs > 3)) 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 arg2 = &temp2;
7494 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7495 }
7496 {
7497 arg3 = &temp3;
7498 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7499 }
7500 {
7501 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7502 if (PyErr_Occurred()) SWIG_fail;
7503 }
7504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7505 return resultobj;
7506fail:
7507 return NULL;
7508}
7509
7510
7511SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7512 int argc;
7513 PyObject *argv[4];
7514
7515 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7516 --argc;
7517 if (argc == 1) {
7518 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7519 }
7520 if (argc == 2) {
7521 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7522 }
7523 if (argc == 3) {
7524 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7525 }
7526
7527fail:
7528 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7529 return NULL;
7530}
7531
7532
7533SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7534 PyObject *resultobj = 0;
7535 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7536 void *argp1 = 0 ;
7537 int res1 = 0 ;
7538 PyObject *swig_obj[1] ;
7539
7540 if (!args) SWIG_fail;
7541 swig_obj[0] = args;
7542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7543 if (!SWIG_IsOK(res1)) {
7544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7545 }
7546 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7547 {
7548 delete arg1;
7549
7550 if (PyErr_Occurred()) SWIG_fail;
7551 }
7552 resultobj = SWIG_Py_Void();
7553 return resultobj;
7554fail:
7555 return NULL;
7556}
7557
7558
7559SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7560 PyObject *resultobj = 0;
7561 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7562 wxNativePixelData_Accessor result;
7563 void *argp1 = 0 ;
7564 int res1 = 0 ;
7565 PyObject *swig_obj[1] ;
7566
7567 if (!args) SWIG_fail;
7568 swig_obj[0] = args;
7569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7570 if (!SWIG_IsOK(res1)) {
7571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7572 }
7573 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7574 {
7575 result = ((wxNativePixelData const *)arg1)->GetPixels();
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7579 return resultobj;
7580fail:
7581 return NULL;
7582}
7583
7584
7585SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7586 PyObject *resultobj = 0;
7587 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7588 void *argp1 = 0 ;
7589 int res1 = 0 ;
7590 PyObject *swig_obj[1] ;
7591
7592 if (!args) SWIG_fail;
7593 swig_obj[0] = args;
7594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7595 if (!SWIG_IsOK(res1)) {
7596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7597 }
7598 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7599 {
7600 (arg1)->UseAlpha();
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_Py_Void();
7604 return resultobj;
7605fail:
7606 return NULL;
7607}
7608
7609
7610SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7611 PyObject *resultobj = 0;
7612 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7613 bool result;
7614 void *argp1 = 0 ;
7615 int res1 = 0 ;
7616 PyObject *swig_obj[1] ;
7617
7618 if (!args) SWIG_fail;
7619 swig_obj[0] = args;
7620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7621 if (!SWIG_IsOK(res1)) {
7622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7623 }
7624 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7625 {
7626 result = (bool)wxNativePixelData___nonzero__(arg1);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 {
7630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7631 }
7632 return resultobj;
7633fail:
7634 return NULL;
7635}
7636
7637
7638SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7639 PyObject *obj;
7640 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7641 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7642 return SWIG_Py_Void();
7643}
7644
7645SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7646 return SWIG_Python_InitShadowInstance(args);
7647}
7648
7649SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7650 PyObject *resultobj = 0;
7651 wxNativePixelData *arg1 = 0 ;
7652 wxNativePixelData_Accessor *result = 0 ;
7653 void *argp1 = 0 ;
7654 int res1 = 0 ;
7655
7656 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7660 }
7661 if (!argp1) {
7662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7663 }
7664 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7665 {
7666 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7670 return resultobj;
7671fail:
7672 return NULL;
7673}
7674
7675
7676SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7677 PyObject *resultobj = 0;
7678 wxBitmap *arg1 = 0 ;
7679 wxNativePixelData *arg2 = 0 ;
7680 wxNativePixelData_Accessor *result = 0 ;
7681 void *argp1 = 0 ;
7682 int res1 = 0 ;
7683 void *argp2 = 0 ;
7684 int res2 = 0 ;
7685
7686 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7688 if (!SWIG_IsOK(res1)) {
7689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7690 }
7691 if (!argp1) {
7692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7693 }
7694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7695 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7696 if (!SWIG_IsOK(res2)) {
7697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7698 }
7699 if (!argp2) {
7700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7701 }
7702 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7703 {
7704 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7708 return resultobj;
7709fail:
7710 return NULL;
7711}
7712
7713
7714SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7715 PyObject *resultobj = 0;
7716 wxNativePixelData_Accessor *result = 0 ;
7717
7718 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7719 {
7720 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7724 return resultobj;
7725fail:
7726 return NULL;
7727}
7728
7729
7730SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7731 int argc;
7732 PyObject *argv[3];
7733
7734 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7735 --argc;
7736 if (argc == 0) {
7737 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7738 }
7739 if (argc == 1) {
7740 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7741 }
7742 if (argc == 2) {
7743 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7744 }
7745
7746fail:
7747 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7748 return NULL;
7749}
7750
7751
7752SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7753 PyObject *resultobj = 0;
7754 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7755 void *argp1 = 0 ;
7756 int res1 = 0 ;
7757 PyObject *swig_obj[1] ;
7758
7759 if (!args) SWIG_fail;
7760 swig_obj[0] = args;
7761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7764 }
7765 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7766 {
7767 delete arg1;
7768
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_Py_Void();
7772 return resultobj;
7773fail:
7774 return NULL;
7775}
7776
7777
7778SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj = 0;
7780 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7781 wxNativePixelData *arg2 = 0 ;
7782 void *argp1 = 0 ;
7783 int res1 = 0 ;
7784 void *argp2 = 0 ;
7785 int res2 = 0 ;
7786 PyObject * obj0 = 0 ;
7787 PyObject * obj1 = 0 ;
7788 char * kwnames[] = {
7789 (char *) "self",(char *) "data", NULL
7790 };
7791
7792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7794 if (!SWIG_IsOK(res1)) {
7795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7796 }
7797 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7799 if (!SWIG_IsOK(res2)) {
7800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7801 }
7802 if (!argp2) {
7803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7804 }
7805 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7806 {
7807 (arg1)->Reset((wxNativePixelData const &)*arg2);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 resultobj = SWIG_Py_Void();
7811 return resultobj;
7812fail:
7813 return NULL;
7814}
7815
7816
7817SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7818 PyObject *resultobj = 0;
7819 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7820 bool result;
7821 void *argp1 = 0 ;
7822 int res1 = 0 ;
7823 PyObject *swig_obj[1] ;
7824
7825 if (!args) SWIG_fail;
7826 swig_obj[0] = args;
7827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7828 if (!SWIG_IsOK(res1)) {
7829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7830 }
7831 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7832 {
7833 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 {
7837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7838 }
7839 return resultobj;
7840fail:
7841 return NULL;
7842}
7843
7844
7845SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7846 PyObject *resultobj = 0;
7847 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7848 void *argp1 = 0 ;
7849 int res1 = 0 ;
7850 PyObject *swig_obj[1] ;
7851
7852 if (!args) SWIG_fail;
7853 swig_obj[0] = args;
7854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7855 if (!SWIG_IsOK(res1)) {
7856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7857 }
7858 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7859 {
7860 wxNativePixelData_Accessor_nextPixel(arg1);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 }
7863 resultobj = SWIG_Py_Void();
7864 return resultobj;
7865fail:
7866 return NULL;
7867}
7868
7869
7870SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7871 PyObject *resultobj = 0;
7872 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7873 wxNativePixelData *arg2 = 0 ;
7874 int arg3 ;
7875 int arg4 ;
7876 void *argp1 = 0 ;
7877 int res1 = 0 ;
7878 void *argp2 = 0 ;
7879 int res2 = 0 ;
7880 int val3 ;
7881 int ecode3 = 0 ;
7882 int val4 ;
7883 int ecode4 = 0 ;
7884 PyObject * obj0 = 0 ;
7885 PyObject * obj1 = 0 ;
7886 PyObject * obj2 = 0 ;
7887 PyObject * obj3 = 0 ;
7888 char * kwnames[] = {
7889 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7890 };
7891
7892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7894 if (!SWIG_IsOK(res1)) {
7895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7896 }
7897 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7899 if (!SWIG_IsOK(res2)) {
7900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7901 }
7902 if (!argp2) {
7903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7904 }
7905 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7906 ecode3 = SWIG_AsVal_int(obj2, &val3);
7907 if (!SWIG_IsOK(ecode3)) {
7908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7909 }
7910 arg3 = static_cast< int >(val3);
7911 ecode4 = SWIG_AsVal_int(obj3, &val4);
7912 if (!SWIG_IsOK(ecode4)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7914 }
7915 arg4 = static_cast< int >(val4);
7916 {
7917 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 resultobj = SWIG_Py_Void();
7921 return resultobj;
7922fail:
7923 return NULL;
7924}
7925
7926
7927SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj = 0;
7929 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7930 wxNativePixelData *arg2 = 0 ;
7931 int arg3 ;
7932 void *argp1 = 0 ;
7933 int res1 = 0 ;
7934 void *argp2 = 0 ;
7935 int res2 = 0 ;
7936 int val3 ;
7937 int ecode3 = 0 ;
7938 PyObject * obj0 = 0 ;
7939 PyObject * obj1 = 0 ;
7940 PyObject * obj2 = 0 ;
7941 char * kwnames[] = {
7942 (char *) "self",(char *) "data",(char *) "x", NULL
7943 };
7944
7945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7947 if (!SWIG_IsOK(res1)) {
7948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7949 }
7950 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7952 if (!SWIG_IsOK(res2)) {
7953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7954 }
7955 if (!argp2) {
7956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7957 }
7958 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7959 ecode3 = SWIG_AsVal_int(obj2, &val3);
7960 if (!SWIG_IsOK(ecode3)) {
7961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7962 }
7963 arg3 = static_cast< int >(val3);
7964 {
7965 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 resultobj = SWIG_Py_Void();
7969 return resultobj;
7970fail:
7971 return NULL;
7972}
7973
7974
7975SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7976 PyObject *resultobj = 0;
7977 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7978 wxNativePixelData *arg2 = 0 ;
7979 int arg3 ;
7980 void *argp1 = 0 ;
7981 int res1 = 0 ;
7982 void *argp2 = 0 ;
7983 int res2 = 0 ;
7984 int val3 ;
7985 int ecode3 = 0 ;
7986 PyObject * obj0 = 0 ;
7987 PyObject * obj1 = 0 ;
7988 PyObject * obj2 = 0 ;
7989 char * kwnames[] = {
7990 (char *) "self",(char *) "data",(char *) "y", NULL
7991 };
7992
7993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7995 if (!SWIG_IsOK(res1)) {
7996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7997 }
7998 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8000 if (!SWIG_IsOK(res2)) {
8001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8002 }
8003 if (!argp2) {
8004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8005 }
8006 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8007 ecode3 = SWIG_AsVal_int(obj2, &val3);
8008 if (!SWIG_IsOK(ecode3)) {
8009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8010 }
8011 arg3 = static_cast< int >(val3);
8012 {
8013 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_Py_Void();
8017 return resultobj;
8018fail:
8019 return NULL;
8020}
8021
8022
8023SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8024 PyObject *resultobj = 0;
8025 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8026 wxNativePixelData *arg2 = 0 ;
8027 int arg3 ;
8028 int arg4 ;
8029 void *argp1 = 0 ;
8030 int res1 = 0 ;
8031 void *argp2 = 0 ;
8032 int res2 = 0 ;
8033 int val3 ;
8034 int ecode3 = 0 ;
8035 int val4 ;
8036 int ecode4 = 0 ;
8037 PyObject * obj0 = 0 ;
8038 PyObject * obj1 = 0 ;
8039 PyObject * obj2 = 0 ;
8040 PyObject * obj3 = 0 ;
8041 char * kwnames[] = {
8042 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8043 };
8044
8045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8047 if (!SWIG_IsOK(res1)) {
8048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8049 }
8050 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8052 if (!SWIG_IsOK(res2)) {
8053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8054 }
8055 if (!argp2) {
8056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8057 }
8058 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8059 ecode3 = SWIG_AsVal_int(obj2, &val3);
8060 if (!SWIG_IsOK(ecode3)) {
8061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8062 }
8063 arg3 = static_cast< int >(val3);
8064 ecode4 = SWIG_AsVal_int(obj3, &val4);
8065 if (!SWIG_IsOK(ecode4)) {
8066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8067 }
8068 arg4 = static_cast< int >(val4);
8069 {
8070 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
8073 resultobj = SWIG_Py_Void();
8074 return resultobj;
8075fail:
8076 return NULL;
8077}
8078
8079
8080SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8081 PyObject *resultobj = 0;
8082 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8083 byte arg2 ;
8084 byte arg3 ;
8085 byte arg4 ;
8086 void *argp1 = 0 ;
8087 int res1 = 0 ;
8088 unsigned char val2 ;
8089 int ecode2 = 0 ;
8090 unsigned char val3 ;
8091 int ecode3 = 0 ;
8092 unsigned char val4 ;
8093 int ecode4 = 0 ;
8094 PyObject * obj0 = 0 ;
8095 PyObject * obj1 = 0 ;
8096 PyObject * obj2 = 0 ;
8097 PyObject * obj3 = 0 ;
8098 char * kwnames[] = {
8099 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8100 };
8101
8102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8104 if (!SWIG_IsOK(res1)) {
8105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8106 }
8107 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8108 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8109 if (!SWIG_IsOK(ecode2)) {
8110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8111 }
8112 arg2 = static_cast< byte >(val2);
8113 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8114 if (!SWIG_IsOK(ecode3)) {
8115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8116 }
8117 arg3 = static_cast< byte >(val3);
8118 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8119 if (!SWIG_IsOK(ecode4)) {
8120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8121 }
8122 arg4 = static_cast< byte >(val4);
8123 {
8124 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 resultobj = SWIG_Py_Void();
8128 return resultobj;
8129fail:
8130 return NULL;
8131}
8132
8133
8134SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8135 PyObject *resultobj = 0;
8136 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8137 PyObject *result = 0 ;
8138 void *argp1 = 0 ;
8139 int res1 = 0 ;
8140 PyObject *swig_obj[1] ;
8141
8142 if (!args) SWIG_fail;
8143 swig_obj[0] = args;
8144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8145 if (!SWIG_IsOK(res1)) {
8146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8147 }
8148 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8149 {
8150 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 resultobj = result;
8154 return resultobj;
8155fail:
8156 return NULL;
8157}
8158
8159
8160SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8161 PyObject *obj;
8162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8163 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8164 return SWIG_Py_Void();
8165}
8166
8167SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8168 return SWIG_Python_InitShadowInstance(args);
8169}
8170
8171SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8172 PyObject *resultobj = 0;
8173 wxBitmap *arg1 = 0 ;
8174 wxAlphaPixelData *result = 0 ;
8175 void *argp1 = 0 ;
8176 int res1 = 0 ;
8177
8178 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8180 if (!SWIG_IsOK(res1)) {
8181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8182 }
8183 if (!argp1) {
8184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8185 }
8186 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8187 {
8188 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8192 return resultobj;
8193fail:
8194 return NULL;
8195}
8196
8197
8198SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8199 PyObject *resultobj = 0;
8200 wxBitmap *arg1 = 0 ;
8201 wxRect *arg2 = 0 ;
8202 wxAlphaPixelData *result = 0 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 wxRect temp2 ;
8206
8207 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8209 if (!SWIG_IsOK(res1)) {
8210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8211 }
8212 if (!argp1) {
8213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8214 }
8215 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8216 {
8217 arg2 = &temp2;
8218 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8219 }
8220 {
8221 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 }
8224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8225 return resultobj;
8226fail:
8227 return NULL;
8228}
8229
8230
8231SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8232 PyObject *resultobj = 0;
8233 wxBitmap *arg1 = 0 ;
8234 wxPoint *arg2 = 0 ;
8235 wxSize *arg3 = 0 ;
8236 wxAlphaPixelData *result = 0 ;
8237 void *argp1 = 0 ;
8238 int res1 = 0 ;
8239 wxPoint temp2 ;
8240 wxSize temp3 ;
8241
8242 if ((nobjs < 3) || (nobjs > 3)) 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 arg2 = &temp2;
8253 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8254 }
8255 {
8256 arg3 = &temp3;
8257 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8258 }
8259 {
8260 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 }
8263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8264 return resultobj;
8265fail:
8266 return NULL;
8267}
8268
8269
8270SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8271 int argc;
8272 PyObject *argv[4];
8273
8274 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8275 --argc;
8276 if (argc == 1) {
8277 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8278 }
8279 if (argc == 2) {
8280 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8281 }
8282 if (argc == 3) {
8283 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8284 }
8285
8286fail:
8287 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8288 return NULL;
8289}
8290
8291
8292SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8293 PyObject *resultobj = 0;
8294 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8295 void *argp1 = 0 ;
8296 int res1 = 0 ;
8297 PyObject *swig_obj[1] ;
8298
8299 if (!args) SWIG_fail;
8300 swig_obj[0] = args;
8301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8304 }
8305 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8306 {
8307 delete arg1;
8308
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 resultobj = SWIG_Py_Void();
8312 return resultobj;
8313fail:
8314 return NULL;
8315}
8316
8317
8318SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8319 PyObject *resultobj = 0;
8320 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8321 wxAlphaPixelData_Accessor result;
8322 void *argp1 = 0 ;
8323 int res1 = 0 ;
8324 PyObject *swig_obj[1] ;
8325
8326 if (!args) SWIG_fail;
8327 swig_obj[0] = args;
8328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8329 if (!SWIG_IsOK(res1)) {
8330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8331 }
8332 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8333 {
8334 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8338 return resultobj;
8339fail:
8340 return NULL;
8341}
8342
8343
8344SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 PyObject *resultobj = 0;
8346 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8347 void *argp1 = 0 ;
8348 int res1 = 0 ;
8349 PyObject *swig_obj[1] ;
8350
8351 if (!args) SWIG_fail;
8352 swig_obj[0] = args;
8353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8354 if (!SWIG_IsOK(res1)) {
8355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8356 }
8357 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8358 {
8359 (arg1)->UseAlpha();
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = SWIG_Py_Void();
8363 return resultobj;
8364fail:
8365 return NULL;
8366}
8367
8368
8369SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8370 PyObject *resultobj = 0;
8371 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8372 bool result;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 PyObject *swig_obj[1] ;
8376
8377 if (!args) SWIG_fail;
8378 swig_obj[0] = args;
8379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8380 if (!SWIG_IsOK(res1)) {
8381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8382 }
8383 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8384 {
8385 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 {
8389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8390 }
8391 return resultobj;
8392fail:
8393 return NULL;
8394}
8395
8396
8397SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8398 PyObject *obj;
8399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8400 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8401 return SWIG_Py_Void();
8402}
8403
8404SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8405 return SWIG_Python_InitShadowInstance(args);
8406}
8407
8408SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8409 PyObject *resultobj = 0;
8410 wxAlphaPixelData *arg1 = 0 ;
8411 wxAlphaPixelData_Accessor *result = 0 ;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414
8415 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8417 if (!SWIG_IsOK(res1)) {
8418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8419 }
8420 if (!argp1) {
8421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8422 }
8423 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8424 {
8425 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8429 return resultobj;
8430fail:
8431 return NULL;
8432}
8433
8434
8435SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8436 PyObject *resultobj = 0;
8437 wxBitmap *arg1 = 0 ;
8438 wxAlphaPixelData *arg2 = 0 ;
8439 wxAlphaPixelData_Accessor *result = 0 ;
8440 void *argp1 = 0 ;
8441 int res1 = 0 ;
8442 void *argp2 = 0 ;
8443 int res2 = 0 ;
8444
8445 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8447 if (!SWIG_IsOK(res1)) {
8448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8449 }
8450 if (!argp1) {
8451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8452 }
8453 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8454 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8455 if (!SWIG_IsOK(res2)) {
8456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8457 }
8458 if (!argp2) {
8459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8460 }
8461 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8462 {
8463 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8467 return resultobj;
8468fail:
8469 return NULL;
8470}
8471
8472
8473SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8474 PyObject *resultobj = 0;
8475 wxAlphaPixelData_Accessor *result = 0 ;
8476
8477 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8478 {
8479 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8483 return resultobj;
8484fail:
8485 return NULL;
8486}
8487
8488
8489SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8490 int argc;
8491 PyObject *argv[3];
8492
8493 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8494 --argc;
8495 if (argc == 0) {
8496 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8497 }
8498 if (argc == 1) {
8499 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8500 }
8501 if (argc == 2) {
8502 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8503 }
8504
8505fail:
8506 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8507 return NULL;
8508}
8509
8510
8511SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8512 PyObject *resultobj = 0;
8513 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8514 void *argp1 = 0 ;
8515 int res1 = 0 ;
8516 PyObject *swig_obj[1] ;
8517
8518 if (!args) SWIG_fail;
8519 swig_obj[0] = args;
8520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8523 }
8524 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8525 {
8526 delete arg1;
8527
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_Py_Void();
8531 return resultobj;
8532fail:
8533 return NULL;
8534}
8535
8536
8537SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8538 PyObject *resultobj = 0;
8539 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8540 wxAlphaPixelData *arg2 = 0 ;
8541 void *argp1 = 0 ;
8542 int res1 = 0 ;
8543 void *argp2 = 0 ;
8544 int res2 = 0 ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 char * kwnames[] = {
8548 (char *) "self",(char *) "data", NULL
8549 };
8550
8551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8553 if (!SWIG_IsOK(res1)) {
8554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8555 }
8556 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8558 if (!SWIG_IsOK(res2)) {
8559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8560 }
8561 if (!argp2) {
8562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8563 }
8564 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8565 {
8566 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
8569 resultobj = SWIG_Py_Void();
8570 return resultobj;
8571fail:
8572 return NULL;
8573}
8574
8575
8576SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8577 PyObject *resultobj = 0;
8578 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8579 bool result;
8580 void *argp1 = 0 ;
8581 int res1 = 0 ;
8582 PyObject *swig_obj[1] ;
8583
8584 if (!args) SWIG_fail;
8585 swig_obj[0] = args;
8586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8587 if (!SWIG_IsOK(res1)) {
8588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8589 }
8590 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8591 {
8592 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 {
8596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8597 }
8598 return resultobj;
8599fail:
8600 return NULL;
8601}
8602
8603
8604SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8605 PyObject *resultobj = 0;
8606 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8607 void *argp1 = 0 ;
8608 int res1 = 0 ;
8609 PyObject *swig_obj[1] ;
8610
8611 if (!args) SWIG_fail;
8612 swig_obj[0] = args;
8613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8614 if (!SWIG_IsOK(res1)) {
8615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8616 }
8617 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8618 {
8619 wxAlphaPixelData_Accessor_nextPixel(arg1);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 resultobj = SWIG_Py_Void();
8623 return resultobj;
8624fail:
8625 return NULL;
8626}
8627
8628
8629SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8630 PyObject *resultobj = 0;
8631 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8632 wxAlphaPixelData *arg2 = 0 ;
8633 int arg3 ;
8634 int arg4 ;
8635 void *argp1 = 0 ;
8636 int res1 = 0 ;
8637 void *argp2 = 0 ;
8638 int res2 = 0 ;
8639 int val3 ;
8640 int ecode3 = 0 ;
8641 int val4 ;
8642 int ecode4 = 0 ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 PyObject * obj2 = 0 ;
8646 PyObject * obj3 = 0 ;
8647 char * kwnames[] = {
8648 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8649 };
8650
8651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8653 if (!SWIG_IsOK(res1)) {
8654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8655 }
8656 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8658 if (!SWIG_IsOK(res2)) {
8659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8660 }
8661 if (!argp2) {
8662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8663 }
8664 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8665 ecode3 = SWIG_AsVal_int(obj2, &val3);
8666 if (!SWIG_IsOK(ecode3)) {
8667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8668 }
8669 arg3 = static_cast< int >(val3);
8670 ecode4 = SWIG_AsVal_int(obj3, &val4);
8671 if (!SWIG_IsOK(ecode4)) {
8672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8673 }
8674 arg4 = static_cast< int >(val4);
8675 {
8676 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 resultobj = SWIG_Py_Void();
8680 return resultobj;
8681fail:
8682 return NULL;
8683}
8684
8685
8686SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8687 PyObject *resultobj = 0;
8688 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8689 wxAlphaPixelData *arg2 = 0 ;
8690 int arg3 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 void *argp2 = 0 ;
8694 int res2 = 0 ;
8695 int val3 ;
8696 int ecode3 = 0 ;
8697 PyObject * obj0 = 0 ;
8698 PyObject * obj1 = 0 ;
8699 PyObject * obj2 = 0 ;
8700 char * kwnames[] = {
8701 (char *) "self",(char *) "data",(char *) "x", NULL
8702 };
8703
8704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8706 if (!SWIG_IsOK(res1)) {
8707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8708 }
8709 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8711 if (!SWIG_IsOK(res2)) {
8712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8713 }
8714 if (!argp2) {
8715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8716 }
8717 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8718 ecode3 = SWIG_AsVal_int(obj2, &val3);
8719 if (!SWIG_IsOK(ecode3)) {
8720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8721 }
8722 arg3 = static_cast< int >(val3);
8723 {
8724 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_Py_Void();
8728 return resultobj;
8729fail:
8730 return NULL;
8731}
8732
8733
8734SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj = 0;
8736 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8737 wxAlphaPixelData *arg2 = 0 ;
8738 int arg3 ;
8739 void *argp1 = 0 ;
8740 int res1 = 0 ;
8741 void *argp2 = 0 ;
8742 int res2 = 0 ;
8743 int val3 ;
8744 int ecode3 = 0 ;
8745 PyObject * obj0 = 0 ;
8746 PyObject * obj1 = 0 ;
8747 PyObject * obj2 = 0 ;
8748 char * kwnames[] = {
8749 (char *) "self",(char *) "data",(char *) "y", NULL
8750 };
8751
8752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8754 if (!SWIG_IsOK(res1)) {
8755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8756 }
8757 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8759 if (!SWIG_IsOK(res2)) {
8760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8761 }
8762 if (!argp2) {
8763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8764 }
8765 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8766 ecode3 = SWIG_AsVal_int(obj2, &val3);
8767 if (!SWIG_IsOK(ecode3)) {
8768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8769 }
8770 arg3 = static_cast< int >(val3);
8771 {
8772 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 resultobj = SWIG_Py_Void();
8776 return resultobj;
8777fail:
8778 return NULL;
8779}
8780
8781
8782SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj = 0;
8784 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8785 wxAlphaPixelData *arg2 = 0 ;
8786 int arg3 ;
8787 int arg4 ;
8788 void *argp1 = 0 ;
8789 int res1 = 0 ;
8790 void *argp2 = 0 ;
8791 int res2 = 0 ;
8792 int val3 ;
8793 int ecode3 = 0 ;
8794 int val4 ;
8795 int ecode4 = 0 ;
8796 PyObject * obj0 = 0 ;
8797 PyObject * obj1 = 0 ;
8798 PyObject * obj2 = 0 ;
8799 PyObject * obj3 = 0 ;
8800 char * kwnames[] = {
8801 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8802 };
8803
8804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8806 if (!SWIG_IsOK(res1)) {
8807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8808 }
8809 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8811 if (!SWIG_IsOK(res2)) {
8812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8813 }
8814 if (!argp2) {
8815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8816 }
8817 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8818 ecode3 = SWIG_AsVal_int(obj2, &val3);
8819 if (!SWIG_IsOK(ecode3)) {
8820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8821 }
8822 arg3 = static_cast< int >(val3);
8823 ecode4 = SWIG_AsVal_int(obj3, &val4);
8824 if (!SWIG_IsOK(ecode4)) {
8825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8826 }
8827 arg4 = static_cast< int >(val4);
8828 {
8829 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 resultobj = SWIG_Py_Void();
8833 return resultobj;
8834fail:
8835 return NULL;
8836}
8837
8838
8839SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj = 0;
8841 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8842 byte arg2 ;
8843 byte arg3 ;
8844 byte arg4 ;
8845 byte arg5 ;
8846 void *argp1 = 0 ;
8847 int res1 = 0 ;
8848 unsigned char val2 ;
8849 int ecode2 = 0 ;
8850 unsigned char val3 ;
8851 int ecode3 = 0 ;
8852 unsigned char val4 ;
8853 int ecode4 = 0 ;
8854 unsigned char val5 ;
8855 int ecode5 = 0 ;
8856 PyObject * obj0 = 0 ;
8857 PyObject * obj1 = 0 ;
8858 PyObject * obj2 = 0 ;
8859 PyObject * obj3 = 0 ;
8860 PyObject * obj4 = 0 ;
8861 char * kwnames[] = {
8862 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8863 };
8864
8865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8867 if (!SWIG_IsOK(res1)) {
8868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8869 }
8870 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8871 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8872 if (!SWIG_IsOK(ecode2)) {
8873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8874 }
8875 arg2 = static_cast< byte >(val2);
8876 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8877 if (!SWIG_IsOK(ecode3)) {
8878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8879 }
8880 arg3 = static_cast< byte >(val3);
8881 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8882 if (!SWIG_IsOK(ecode4)) {
8883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8884 }
8885 arg4 = static_cast< byte >(val4);
8886 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8887 if (!SWIG_IsOK(ecode5)) {
8888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8889 }
8890 arg5 = static_cast< byte >(val5);
8891 {
8892 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8893 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8894 }
fc46b7f3 8895 resultobj = SWIG_Py_Void();
0085ce49
RD
8896 return resultobj;
8897fail:
8898 return NULL;
8899}
8900
8901
fc46b7f3 8902SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8903 PyObject *resultobj = 0;
fc46b7f3
RD
8904 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8905 PyObject *result = 0 ;
0085ce49
RD
8906 void *argp1 = 0 ;
8907 int res1 = 0 ;
fc46b7f3 8908 PyObject *swig_obj[1] ;
0085ce49 8909
fc46b7f3
RD
8910 if (!args) SWIG_fail;
8911 swig_obj[0] = args;
8912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8913 if (!SWIG_IsOK(res1)) {
fc46b7f3 8914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8915 }
fc46b7f3 8916 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8917 {
fc46b7f3 8918 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8919 if (PyErr_Occurred()) SWIG_fail;
8920 }
fc46b7f3 8921 resultobj = result;
0085ce49
RD
8922 return resultobj;
8923fail:
8924 return NULL;
d14a1e28
RD
8925}
8926
8927
fc46b7f3 8928SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8929 PyObject *obj;
8930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8931 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8932 return SWIG_Py_Void();
b2df227b
RD
8933}
8934
fc46b7f3 8935SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8936 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8937}
8938
0085ce49
RD
8939SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj = 0;
8941 wxBitmap *arg1 = 0 ;
8942 wxColour const &arg2_defvalue = wxNullColour ;
8943 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8944 wxMask *result = 0 ;
8945 void *argp1 = 0 ;
8946 int res1 = 0 ;
8947 wxColour temp2 ;
8948 PyObject * obj0 = 0 ;
8949 PyObject * obj1 = 0 ;
8950 char * kwnames[] = {
8951 (char *) "bitmap",(char *) "colour", NULL
8952 };
8953
8954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8955 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8956 if (!SWIG_IsOK(res1)) {
8957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8958 }
8959 if (!argp1) {
8960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8961 }
8962 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8963 if (obj1) {
d14a1e28 8964 {
0085ce49
RD
8965 arg2 = &temp2;
8966 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8967 }
0085ce49
RD
8968 }
8969 {
8970 if (!wxPyCheckForApp()) SWIG_fail;
8971 PyThreadState* __tstate = wxPyBeginAllowThreads();
8972 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8973 wxPyEndAllowThreads(__tstate);
8974 if (PyErr_Occurred()) SWIG_fail;
8975 }
8976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8977 return resultobj;
8978fail:
8979 return NULL;
d14a1e28
RD
8980}
8981
8982
0085ce49
RD
8983SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8984 PyObject *resultobj = 0;
8985 wxMask *arg1 = (wxMask *) 0 ;
8986 void *argp1 = 0 ;
8987 int res1 = 0 ;
8988 PyObject *swig_obj[1] ;
8989
8990 if (!args) SWIG_fail;
8991 swig_obj[0] = args;
8992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8993 if (!SWIG_IsOK(res1)) {
8994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8995 }
8996 arg1 = reinterpret_cast< wxMask * >(argp1);
8997 {
0085ce49 8998 delete arg1;
d14a1e28 8999
0085ce49
RD
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 resultobj = SWIG_Py_Void();
9003 return resultobj;
9004fail:
9005 return NULL;
9006}
9007
9008
9009SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9010 PyObject *obj;
9011 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9012 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9013 return SWIG_Py_Void();
9014}
9015
9016SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9017 return SWIG_Python_InitShadowInstance(args);
9018}
9019
9020SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj = 0;
9022 wxString *arg1 = 0 ;
9023 wxBitmapType arg2 ;
9024 int arg3 = (int) -1 ;
9025 int arg4 = (int) -1 ;
9026 wxIcon *result = 0 ;
9027 bool temp1 = false ;
9028 int val2 ;
9029 int ecode2 = 0 ;
9030 int val3 ;
9031 int ecode3 = 0 ;
9032 int val4 ;
9033 int ecode4 = 0 ;
9034 PyObject * obj0 = 0 ;
9035 PyObject * obj1 = 0 ;
9036 PyObject * obj2 = 0 ;
9037 PyObject * obj3 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9043 {
9044 arg1 = wxString_in_helper(obj0);
9045 if (arg1 == NULL) SWIG_fail;
9046 temp1 = true;
9047 }
9048 ecode2 = SWIG_AsVal_int(obj1, &val2);
9049 if (!SWIG_IsOK(ecode2)) {
9050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9051 }
9052 arg2 = static_cast< wxBitmapType >(val2);
9053 if (obj2) {
9054 ecode3 = SWIG_AsVal_int(obj2, &val3);
9055 if (!SWIG_IsOK(ecode3)) {
9056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9057 }
9058 arg3 = static_cast< int >(val3);
9059 }
9060 if (obj3) {
9061 ecode4 = SWIG_AsVal_int(obj3, &val4);
9062 if (!SWIG_IsOK(ecode4)) {
9063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9064 }
9065 arg4 = static_cast< int >(val4);
9066 }
9067 {
9068 if (!wxPyCheckForApp()) SWIG_fail;
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9071 wxPyEndAllowThreads(__tstate);
9072 if (PyErr_Occurred()) SWIG_fail;
9073 }
9074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9075 {
9076 if (temp1)
9077 delete arg1;
9078 }
9079 return resultobj;
9080fail:
9081 {
9082 if (temp1)
9083 delete arg1;
9084 }
9085 return NULL;
d14a1e28
RD
9086}
9087
9088
0085ce49
RD
9089SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9090 PyObject *resultobj = 0;
9091 wxIcon *arg1 = (wxIcon *) 0 ;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 PyObject *swig_obj[1] ;
9095
9096 if (!args) SWIG_fail;
9097 swig_obj[0] = args;
9098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9099 if (!SWIG_IsOK(res1)) {
9100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9101 }
9102 arg1 = reinterpret_cast< wxIcon * >(argp1);
9103 {
9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
9105 delete arg1;
d14a1e28 9106
0085ce49
RD
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 resultobj = SWIG_Py_Void();
9111 return resultobj;
9112fail:
9113 return NULL;
d14a1e28
RD
9114}
9115
9116
0085ce49
RD
9117SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9118 PyObject *resultobj = 0;
9119 wxIcon *result = 0 ;
9120
9121 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9122 {
9123 if (!wxPyCheckForApp()) SWIG_fail;
9124 PyThreadState* __tstate = wxPyBeginAllowThreads();
9125 result = (wxIcon *)new wxIcon();
9126 wxPyEndAllowThreads(__tstate);
9127 if (PyErr_Occurred()) SWIG_fail;
9128 }
9129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9130 return resultobj;
9131fail:
9132 return NULL;
9133}
9134
9135
9136SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj = 0;
9138 wxIconLocation *arg1 = 0 ;
9139 wxIcon *result = 0 ;
9140 void *argp1 = 0 ;
9141 int res1 = 0 ;
9142 PyObject * obj0 = 0 ;
9143 char * kwnames[] = {
9144 (char *) "loc", NULL
9145 };
9146
9147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9148 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9149 if (!SWIG_IsOK(res1)) {
9150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9151 }
9152 if (!argp1) {
9153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9154 }
9155 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9156 {
9157 if (!wxPyCheckForApp()) SWIG_fail;
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9164 return resultobj;
9165fail:
9166 return NULL;
9167}
9168
9169
9170SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj = 0;
9172 wxBitmap *arg1 = 0 ;
9173 wxIcon *result = 0 ;
9174 void *argp1 = 0 ;
9175 int res1 = 0 ;
9176 PyObject * obj0 = 0 ;
9177 char * kwnames[] = {
9178 (char *) "bmp", NULL
9179 };
9180
9181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9182 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9183 if (!SWIG_IsOK(res1)) {
9184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9185 }
9186 if (!argp1) {
9187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9188 }
9189 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9190 {
9191 if (!wxPyCheckForApp()) SWIG_fail;
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9198 return resultobj;
9199fail:
9200 return NULL;
d14a1e28
RD
9201}
9202
9203
0085ce49
RD
9204SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9205 PyObject *resultobj = 0;
9206 PyObject *arg1 = (PyObject *) 0 ;
9207 wxIcon *result = 0 ;
9208 PyObject * obj0 = 0 ;
9209 char * kwnames[] = {
9210 (char *) "listOfStrings", NULL
9211 };
9212
9213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9214 arg1 = obj0;
9215 {
9216 if (!wxPyCheckForApp()) SWIG_fail;
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (wxIcon *)new_wxIcon(arg1);
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9223 return resultobj;
9224fail:
9225 return NULL;
9226}
9227
9228
9229SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9230 PyObject *resultobj = 0;
9231 wxIcon *arg1 = (wxIcon *) 0 ;
9232 wxString *arg2 = 0 ;
9233 wxBitmapType arg3 ;
9234 bool result;
9235 void *argp1 = 0 ;
9236 int res1 = 0 ;
9237 bool temp2 = false ;
9238 int val3 ;
9239 int ecode3 = 0 ;
9240 PyObject * obj0 = 0 ;
9241 PyObject * obj1 = 0 ;
9242 PyObject * obj2 = 0 ;
9243 char * kwnames[] = {
9244 (char *) "self",(char *) "name",(char *) "type", NULL
9245 };
9246
9247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9251 }
9252 arg1 = reinterpret_cast< wxIcon * >(argp1);
9253 {
9254 arg2 = wxString_in_helper(obj1);
9255 if (arg2 == NULL) SWIG_fail;
9256 temp2 = true;
9257 }
9258 ecode3 = SWIG_AsVal_int(obj2, &val3);
9259 if (!SWIG_IsOK(ecode3)) {
9260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9261 }
9262 arg3 = static_cast< wxBitmapType >(val3);
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 {
9270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9271 }
9272 {
9273 if (temp2)
9274 delete arg2;
9275 }
9276 return resultobj;
9277fail:
9278 {
9279 if (temp2)
9280 delete arg2;
9281 }
9282 return NULL;
d14a1e28
RD
9283}
9284
9285
b39fe951 9286SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9287 PyObject *resultobj = 0;
9288 wxIcon *arg1 = (wxIcon *) 0 ;
9289 bool result;
9290 void *argp1 = 0 ;
9291 int res1 = 0 ;
9292 PyObject *swig_obj[1] ;
9293
9294 if (!args) SWIG_fail;
9295 swig_obj[0] = args;
9296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
b39fe951 9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
9299 }
9300 arg1 = reinterpret_cast< wxIcon * >(argp1);
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9303 result = (bool)(arg1)->IsOk();
0085ce49
RD
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 {
9308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9309 }
9310 return resultobj;
9311fail:
9312 return NULL;
d14a1e28
RD
9313}
9314
9315
0085ce49
RD
9316SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9317 PyObject *resultobj = 0;
9318 wxIcon *arg1 = (wxIcon *) 0 ;
9319 int result;
9320 void *argp1 = 0 ;
9321 int res1 = 0 ;
9322 PyObject *swig_obj[1] ;
9323
9324 if (!args) SWIG_fail;
9325 swig_obj[0] = args;
9326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9327 if (!SWIG_IsOK(res1)) {
9328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9329 }
9330 arg1 = reinterpret_cast< wxIcon * >(argp1);
9331 {
9332 PyThreadState* __tstate = wxPyBeginAllowThreads();
9333 result = (int)(arg1)->GetWidth();
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 resultobj = SWIG_From_int(static_cast< int >(result));
9338 return resultobj;
9339fail:
9340 return NULL;
d3b6e4ff
RD
9341}
9342
9343
0085ce49
RD
9344SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9345 PyObject *resultobj = 0;
9346 wxIcon *arg1 = (wxIcon *) 0 ;
9347 int result;
9348 void *argp1 = 0 ;
9349 int res1 = 0 ;
9350 PyObject *swig_obj[1] ;
9351
9352 if (!args) SWIG_fail;
9353 swig_obj[0] = args;
9354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9355 if (!SWIG_IsOK(res1)) {
9356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9357 }
9358 arg1 = reinterpret_cast< wxIcon * >(argp1);
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (int)(arg1)->GetHeight();
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_From_int(static_cast< int >(result));
9366 return resultobj;
9367fail:
9368 return NULL;
d14a1e28
RD
9369}
9370
9371
0085ce49
RD
9372SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9373 PyObject *resultobj = 0;
9374 wxIcon *arg1 = (wxIcon *) 0 ;
9375 int result;
9376 void *argp1 = 0 ;
9377 int res1 = 0 ;
9378 PyObject *swig_obj[1] ;
9379
9380 if (!args) SWIG_fail;
9381 swig_obj[0] = args;
9382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9383 if (!SWIG_IsOK(res1)) {
9384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9385 }
9386 arg1 = reinterpret_cast< wxIcon * >(argp1);
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 result = (int)(arg1)->GetDepth();
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 resultobj = SWIG_From_int(static_cast< int >(result));
9394 return resultobj;
9395fail:
9396 return NULL;
9397}
9398
9399
9400SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9401 PyObject *resultobj = 0;
9402 wxIcon *arg1 = (wxIcon *) 0 ;
9403 int arg2 ;
9404 void *argp1 = 0 ;
9405 int res1 = 0 ;
9406 int val2 ;
9407 int ecode2 = 0 ;
9408 PyObject * obj0 = 0 ;
9409 PyObject * obj1 = 0 ;
9410 char * kwnames[] = {
9411 (char *) "self",(char *) "w", NULL
9412 };
9413
9414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9416 if (!SWIG_IsOK(res1)) {
9417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9418 }
9419 arg1 = reinterpret_cast< wxIcon * >(argp1);
9420 ecode2 = SWIG_AsVal_int(obj1, &val2);
9421 if (!SWIG_IsOK(ecode2)) {
9422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9423 }
9424 arg2 = static_cast< int >(val2);
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 (arg1)->SetWidth(arg2);
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = SWIG_Py_Void();
9432 return resultobj;
9433fail:
9434 return NULL;
9435}
9436
9437
9438SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj = 0;
9440 wxIcon *arg1 = (wxIcon *) 0 ;
9441 int arg2 ;
9442 void *argp1 = 0 ;
9443 int res1 = 0 ;
9444 int val2 ;
9445 int ecode2 = 0 ;
9446 PyObject * obj0 = 0 ;
9447 PyObject * obj1 = 0 ;
9448 char * kwnames[] = {
9449 (char *) "self",(char *) "h", NULL
9450 };
9451
9452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9454 if (!SWIG_IsOK(res1)) {
9455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9456 }
9457 arg1 = reinterpret_cast< wxIcon * >(argp1);
9458 ecode2 = SWIG_AsVal_int(obj1, &val2);
9459 if (!SWIG_IsOK(ecode2)) {
9460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9461 }
9462 arg2 = static_cast< int >(val2);
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 (arg1)->SetHeight(arg2);
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 resultobj = SWIG_Py_Void();
9470 return resultobj;
9471fail:
9472 return NULL;
9473}
9474
9475
9476SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj = 0;
9478 wxIcon *arg1 = (wxIcon *) 0 ;
9479 int arg2 ;
9480 void *argp1 = 0 ;
9481 int res1 = 0 ;
9482 int val2 ;
9483 int ecode2 = 0 ;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 char * kwnames[] = {
9487 (char *) "self",(char *) "d", NULL
9488 };
9489
9490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9492 if (!SWIG_IsOK(res1)) {
9493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9494 }
9495 arg1 = reinterpret_cast< wxIcon * >(argp1);
9496 ecode2 = SWIG_AsVal_int(obj1, &val2);
9497 if (!SWIG_IsOK(ecode2)) {
9498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9499 }
9500 arg2 = static_cast< int >(val2);
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 (arg1)->SetDepth(arg2);
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_Py_Void();
9508 return resultobj;
9509fail:
9510 return NULL;
9511}
9512
9513
9514SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj = 0;
9516 wxIcon *arg1 = (wxIcon *) 0 ;
9517 wxBitmap *arg2 = 0 ;
9518 void *argp1 = 0 ;
9519 int res1 = 0 ;
9520 void *argp2 = 0 ;
9521 int res2 = 0 ;
9522 PyObject * obj0 = 0 ;
9523 PyObject * obj1 = 0 ;
9524 char * kwnames[] = {
9525 (char *) "self",(char *) "bmp", NULL
9526 };
9527
9528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9530 if (!SWIG_IsOK(res1)) {
9531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9532 }
9533 arg1 = reinterpret_cast< wxIcon * >(argp1);
9534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9535 if (!SWIG_IsOK(res2)) {
9536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9537 }
9538 if (!argp2) {
9539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9540 }
9541 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 resultobj = SWIG_Py_Void();
9549 return resultobj;
9550fail:
9551 return NULL;
d14a1e28
RD
9552}
9553
9554
0085ce49
RD
9555SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9556 PyObject *obj;
9557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9558 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9559 return SWIG_Py_Void();
d14a1e28
RD
9560}
9561
0085ce49
RD
9562SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9563 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9564}
9565
0085ce49
RD
9566SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9567 PyObject *resultobj = 0;
9568 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9569 int arg2 = (int) 0 ;
9570 wxIconLocation *result = 0 ;
9571 bool temp1 = false ;
9572 int val2 ;
9573 int ecode2 = 0 ;
9574 PyObject * obj0 = 0 ;
9575 PyObject * obj1 = 0 ;
9576 char * kwnames[] = {
9577 (char *) "filename",(char *) "num", NULL
9578 };
9579
9580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9581 if (obj0) {
b2df227b 9582 {
0085ce49
RD
9583 arg1 = wxString_in_helper(obj0);
9584 if (arg1 == NULL) SWIG_fail;
9585 temp1 = true;
b2df227b 9586 }
0085ce49
RD
9587 }
9588 if (obj1) {
9589 ecode2 = SWIG_AsVal_int(obj1, &val2);
9590 if (!SWIG_IsOK(ecode2)) {
9591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9592 }
9593 arg2 = static_cast< int >(val2);
9594 }
9595 {
9596 PyThreadState* __tstate = wxPyBeginAllowThreads();
9597 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9598 wxPyEndAllowThreads(__tstate);
9599 if (PyErr_Occurred()) SWIG_fail;
9600 }
9601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9602 {
9603 if (temp1)
9604 delete arg1;
9605 }
9606 return resultobj;
9607fail:
9608 {
9609 if (temp1)
9610 delete arg1;
9611 }
9612 return NULL;
b2df227b
RD
9613}
9614
9615
0085ce49
RD
9616SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9617 PyObject *resultobj = 0;
9618 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9619 void *argp1 = 0 ;
9620 int res1 = 0 ;
9621 PyObject *swig_obj[1] ;
9622
9623 if (!args) SWIG_fail;
9624 swig_obj[0] = args;
9625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9626 if (!SWIG_IsOK(res1)) {
9627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9628 }
9629 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 delete arg1;
4276dc52 9633
0085ce49
RD
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 resultobj = SWIG_Py_Void();
9638 return resultobj;
9639fail:
9640 return NULL;
4276dc52
RD
9641}
9642
9643
0085ce49
RD
9644SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9645 PyObject *resultobj = 0;
9646 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9647 bool result;
9648 void *argp1 = 0 ;
9649 int res1 = 0 ;
9650 PyObject *swig_obj[1] ;
9651
9652 if (!args) SWIG_fail;
9653 swig_obj[0] = args;
9654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9655 if (!SWIG_IsOK(res1)) {
9656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9657 }
9658 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9659 {
9660 PyThreadState* __tstate = wxPyBeginAllowThreads();
9661 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9662 wxPyEndAllowThreads(__tstate);
9663 if (PyErr_Occurred()) SWIG_fail;
9664 }
9665 {
9666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9667 }
9668 return resultobj;
9669fail:
9670 return NULL;
9671}
9672
9673
9674SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj = 0;
9676 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9677 wxString *arg2 = 0 ;
9678 void *argp1 = 0 ;
9679 int res1 = 0 ;
9680 bool temp2 = false ;
9681 PyObject * obj0 = 0 ;
9682 PyObject * obj1 = 0 ;
9683 char * kwnames[] = {
9684 (char *) "self",(char *) "filename", NULL
9685 };
9686
9687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9689 if (!SWIG_IsOK(res1)) {
9690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9691 }
9692 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9693 {
9694 arg2 = wxString_in_helper(obj1);
9695 if (arg2 == NULL) SWIG_fail;
9696 temp2 = true;
9697 }
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 (arg1)->SetFileName((wxString const &)*arg2);
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = SWIG_Py_Void();
9705 {
9706 if (temp2)
9707 delete arg2;
9708 }
9709 return resultobj;
9710fail:
9711 {
9712 if (temp2)
9713 delete arg2;
9714 }
9715 return NULL;
4276dc52
RD
9716}
9717
9718
0085ce49
RD
9719SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9722 wxString *result = 0 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 PyObject *swig_obj[1] ;
9726
9727 if (!args) SWIG_fail;
9728 swig_obj[0] = args;
9729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9732 }
9733 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9736 {
0085ce49
RD
9737 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9738 result = (wxString *) &_result_ref;
093d3ff1 9739 }
0085ce49
RD
9740 wxPyEndAllowThreads(__tstate);
9741 if (PyErr_Occurred()) SWIG_fail;
9742 }
9743 {
9744#if wxUSE_UNICODE
9745 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9746#else
9747 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9748#endif
9749 }
9750 return resultobj;
9751fail:
9752 return NULL;
9753}
9754
9755
9756SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj = 0;
9758 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9759 int arg2 ;
9760 void *argp1 = 0 ;
9761 int res1 = 0 ;
9762 int val2 ;
9763 int ecode2 = 0 ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 char * kwnames[] = {
9767 (char *) "self",(char *) "num", NULL
9768 };
9769
9770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9772 if (!SWIG_IsOK(res1)) {
9773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9774 }
9775 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9776 ecode2 = SWIG_AsVal_int(obj1, &val2);
9777 if (!SWIG_IsOK(ecode2)) {
9778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9779 }
9780 arg2 = static_cast< int >(val2);
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 wxIconLocation_SetIndex(arg1,arg2);
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_Py_Void();
9788 return resultobj;
9789fail:
9790 return NULL;
d14a1e28
RD
9791}
9792
9793
0085ce49
RD
9794SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9795 PyObject *resultobj = 0;
9796 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9797 int result;
9798 void *argp1 = 0 ;
9799 int res1 = 0 ;
9800 PyObject *swig_obj[1] ;
9801
9802 if (!args) SWIG_fail;
9803 swig_obj[0] = args;
9804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9805 if (!SWIG_IsOK(res1)) {
9806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9807 }
9808 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 result = (int)wxIconLocation_GetIndex(arg1);
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 resultobj = SWIG_From_int(static_cast< int >(result));
9816 return resultobj;
9817fail:
9818 return NULL;
d14a1e28
RD
9819}
9820
9821
0085ce49
RD
9822SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9823 PyObject *obj;
9824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9825 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9826 return SWIG_Py_Void();
d14a1e28
RD
9827}
9828
0085ce49
RD
9829SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9830 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9831}
9832
0085ce49
RD
9833SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9834 PyObject *resultobj = 0;
9835 wxIconBundle *result = 0 ;
9836
9837 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 result = (wxIconBundle *)new wxIconBundle();
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9845 return resultobj;
9846fail:
9847 return NULL;
9848}
9849
9850
9851SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9852 PyObject *resultobj = 0;
9853 wxString *arg1 = 0 ;
9854 long arg2 ;
9855 wxIconBundle *result = 0 ;
9856 bool temp1 = false ;
9857 long val2 ;
9858 int ecode2 = 0 ;
9859 PyObject * obj0 = 0 ;
9860 PyObject * obj1 = 0 ;
9861 char * kwnames[] = {
9862 (char *) "file",(char *) "type", NULL
9863 };
9864
9865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9866 {
9867 arg1 = wxString_in_helper(obj0);
9868 if (arg1 == NULL) SWIG_fail;
9869 temp1 = true;
9870 }
9871 ecode2 = SWIG_AsVal_long(obj1, &val2);
9872 if (!SWIG_IsOK(ecode2)) {
9873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9874 }
9875 arg2 = static_cast< long >(val2);
9876 {
9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
9878 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9883 {
9884 if (temp1)
9885 delete arg1;
9886 }
9887 return resultobj;
9888fail:
9889 {
9890 if (temp1)
9891 delete arg1;
9892 }
9893 return NULL;
d14a1e28
RD
9894}
9895
9896
0085ce49
RD
9897SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj = 0;
9899 wxIcon *arg1 = 0 ;
9900 wxIconBundle *result = 0 ;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 PyObject * obj0 = 0 ;
9904 char * kwnames[] = {
9905 (char *) "icon", NULL
9906 };
9907
9908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9909 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9910 if (!SWIG_IsOK(res1)) {
9911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9912 }
9913 if (!argp1) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9915 }
9916 arg1 = reinterpret_cast< wxIcon * >(argp1);
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9924 return resultobj;
9925fail:
9926 return NULL;
d14a1e28
RD
9927}
9928
9929
0085ce49
RD
9930SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9931 PyObject *resultobj = 0;
9932 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9933 void *argp1 = 0 ;
9934 int res1 = 0 ;
9935 PyObject *swig_obj[1] ;
9936
9937 if (!args) SWIG_fail;
9938 swig_obj[0] = args;
9939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9940 if (!SWIG_IsOK(res1)) {
9941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9942 }
9943 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 delete arg1;
d14a1e28 9947
0085ce49
RD
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 resultobj = SWIG_Py_Void();
9952 return resultobj;
9953fail:
9954 return NULL;
9955}
9956
9957
9958SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj = 0;
9960 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9961 wxIcon *arg2 = 0 ;
9962 void *argp1 = 0 ;
9963 int res1 = 0 ;
9964 void *argp2 = 0 ;
9965 int res2 = 0 ;
9966 PyObject * obj0 = 0 ;
9967 PyObject * obj1 = 0 ;
9968 char * kwnames[] = {
9969 (char *) "self",(char *) "icon", NULL
9970 };
9971
9972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9974 if (!SWIG_IsOK(res1)) {
9975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9976 }
9977 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9979 if (!SWIG_IsOK(res2)) {
9980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9981 }
9982 if (!argp2) {
9983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9984 }
9985 arg2 = reinterpret_cast< wxIcon * >(argp2);
9986 {
9987 PyThreadState* __tstate = wxPyBeginAllowThreads();
9988 (arg1)->AddIcon((wxIcon const &)*arg2);
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 resultobj = SWIG_Py_Void();
9993 return resultobj;
9994fail:
9995 return NULL;
9996}
9997
9998
9999SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj = 0;
10001 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10002 wxString *arg2 = 0 ;
10003 long arg3 ;
10004 void *argp1 = 0 ;
10005 int res1 = 0 ;
10006 bool temp2 = false ;
10007 long val3 ;
10008 int ecode3 = 0 ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 PyObject * obj2 = 0 ;
10012 char * kwnames[] = {
10013 (char *) "self",(char *) "file",(char *) "type", NULL
10014 };
10015
10016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10018 if (!SWIG_IsOK(res1)) {
10019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10020 }
10021 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10022 {
10023 arg2 = wxString_in_helper(obj1);
10024 if (arg2 == NULL) SWIG_fail;
10025 temp2 = true;
10026 }
10027 ecode3 = SWIG_AsVal_long(obj2, &val3);
10028 if (!SWIG_IsOK(ecode3)) {
10029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10030 }
10031 arg3 = static_cast< long >(val3);
10032 {
10033 PyThreadState* __tstate = wxPyBeginAllowThreads();
10034 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10035 wxPyEndAllowThreads(__tstate);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 }
10038 resultobj = SWIG_Py_Void();
10039 {
10040 if (temp2)
10041 delete arg2;
10042 }
10043 return resultobj;
10044fail:
10045 {
10046 if (temp2)
10047 delete arg2;
10048 }
10049 return NULL;
10050}
10051
10052
10053SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10054 PyObject *resultobj = 0;
10055 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10056 wxSize *arg2 = 0 ;
10057 wxIcon *result = 0 ;
10058 void *argp1 = 0 ;
10059 int res1 = 0 ;
10060 wxSize temp2 ;
10061 PyObject * obj0 = 0 ;
10062 PyObject * obj1 = 0 ;
10063 char * kwnames[] = {
10064 (char *) "self",(char *) "size", NULL
10065 };
10066
10067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10069 if (!SWIG_IsOK(res1)) {
10070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10071 }
10072 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10073 {
10074 arg2 = &temp2;
10075 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10076 }
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 10079 {
0085ce49
RD
10080 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10081 result = (wxIcon *) &_result_ref;
d14a1e28 10082 }
0085ce49
RD
10083 wxPyEndAllowThreads(__tstate);
10084 if (PyErr_Occurred()) SWIG_fail;
10085 }
10086 {
10087 wxIcon* resultptr = new wxIcon(*result);
10088 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10089 }
10090 return resultobj;
10091fail:
10092 return NULL;
10093}
10094
10095
10096SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10097 PyObject *obj;
10098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10099 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10100 return SWIG_Py_Void();
10101}
10102
10103SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10104 return SWIG_Python_InitShadowInstance(args);
10105}
10106
10107SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj = 0;
10109 wxString *arg1 = 0 ;
10110 long arg2 ;
10111 int arg3 = (int) 0 ;
10112 int arg4 = (int) 0 ;
10113 wxCursor *result = 0 ;
10114 bool temp1 = false ;
10115 long val2 ;
10116 int ecode2 = 0 ;
10117 int val3 ;
10118 int ecode3 = 0 ;
10119 int val4 ;
10120 int ecode4 = 0 ;
10121 PyObject * obj0 = 0 ;
10122 PyObject * obj1 = 0 ;
10123 PyObject * obj2 = 0 ;
10124 PyObject * obj3 = 0 ;
10125 char * kwnames[] = {
10126 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10127 };
10128
10129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10130 {
10131 arg1 = wxString_in_helper(obj0);
10132 if (arg1 == NULL) SWIG_fail;
10133 temp1 = true;
10134 }
10135 ecode2 = SWIG_AsVal_long(obj1, &val2);
10136 if (!SWIG_IsOK(ecode2)) {
10137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10138 }
10139 arg2 = static_cast< long >(val2);
10140 if (obj2) {
10141 ecode3 = SWIG_AsVal_int(obj2, &val3);
10142 if (!SWIG_IsOK(ecode3)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10144 }
10145 arg3 = static_cast< int >(val3);
10146 }
10147 if (obj3) {
10148 ecode4 = SWIG_AsVal_int(obj3, &val4);
10149 if (!SWIG_IsOK(ecode4)) {
10150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10151 }
10152 arg4 = static_cast< int >(val4);
10153 }
10154 {
10155 if (!wxPyCheckForApp()) SWIG_fail;
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10162 {
10163 if (temp1)
10164 delete arg1;
10165 }
10166 return resultobj;
10167fail:
10168 {
10169 if (temp1)
10170 delete arg1;
10171 }
10172 return NULL;
d14a1e28
RD
10173}
10174
10175
0085ce49
RD
10176SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10177 PyObject *resultobj = 0;
10178 wxCursor *arg1 = (wxCursor *) 0 ;
10179 void *argp1 = 0 ;
10180 int res1 = 0 ;
10181 PyObject *swig_obj[1] ;
10182
10183 if (!args) SWIG_fail;
10184 swig_obj[0] = args;
10185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10186 if (!SWIG_IsOK(res1)) {
10187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10188 }
10189 arg1 = reinterpret_cast< wxCursor * >(argp1);
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 delete arg1;
093d3ff1 10193
0085ce49
RD
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_Py_Void();
10198 return resultobj;
10199fail:
10200 return NULL;
10201}
10202
10203
10204SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj = 0;
10206 int arg1 ;
10207 wxCursor *result = 0 ;
10208 int val1 ;
10209 int ecode1 = 0 ;
10210 PyObject * obj0 = 0 ;
10211 char * kwnames[] = {
10212 (char *) "id", NULL
10213 };
10214
10215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10216 ecode1 = SWIG_AsVal_int(obj0, &val1);
10217 if (!SWIG_IsOK(ecode1)) {
10218 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10219 }
10220 arg1 = static_cast< int >(val1);
10221 {
10222 if (!wxPyCheckForApp()) SWIG_fail;
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (wxCursor *)new wxCursor(arg1);
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10229 return resultobj;
10230fail:
10231 return NULL;
10232}
10233
10234
10235SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10236 PyObject *resultobj = 0;
10237 wxImage *arg1 = 0 ;
10238 wxCursor *result = 0 ;
10239 void *argp1 = 0 ;
10240 int res1 = 0 ;
10241 PyObject * obj0 = 0 ;
10242 char * kwnames[] = {
10243 (char *) "image", NULL
10244 };
10245
10246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10247 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10250 }
10251 if (!argp1) {
10252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10253 }
10254 arg1 = reinterpret_cast< wxImage * >(argp1);
10255 {
10256 if (!wxPyCheckForApp()) SWIG_fail;
10257 PyThreadState* __tstate = wxPyBeginAllowThreads();
10258 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10263 return resultobj;
10264fail:
10265 return NULL;
093d3ff1
RD
10266}
10267
10268
b39fe951 10269SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
10270 PyObject *resultobj = 0;
10271 wxCursor *arg1 = (wxCursor *) 0 ;
10272 bool result;
10273 void *argp1 = 0 ;
10274 int res1 = 0 ;
10275 PyObject *swig_obj[1] ;
10276
10277 if (!args) SWIG_fail;
10278 swig_obj[0] = args;
10279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10280 if (!SWIG_IsOK(res1)) {
b39fe951 10281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
10282 }
10283 arg1 = reinterpret_cast< wxCursor * >(argp1);
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10286 result = (bool)(arg1)->IsOk();
0085ce49
RD
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
10290 {
10291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10292 }
10293 return resultobj;
10294fail:
10295 return NULL;
10296}
10297
10298
10299SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10300 PyObject *obj;
10301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10302 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10303 return SWIG_Py_Void();
10304}
10305
10306SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10307 return SWIG_Python_InitShadowInstance(args);
10308}
10309
10310SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10311 PyObject *resultobj = 0;
10312 int arg1 = (int) 0 ;
10313 int arg2 = (int) 0 ;
10314 int arg3 = (int) 0 ;
10315 int arg4 = (int) 0 ;
10316 wxRegion *result = 0 ;
10317 int val1 ;
10318 int ecode1 = 0 ;
10319 int val2 ;
10320 int ecode2 = 0 ;
10321 int val3 ;
10322 int ecode3 = 0 ;
10323 int val4 ;
10324 int ecode4 = 0 ;
10325 PyObject * obj0 = 0 ;
10326 PyObject * obj1 = 0 ;
10327 PyObject * obj2 = 0 ;
10328 PyObject * obj3 = 0 ;
10329 char * kwnames[] = {
10330 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10331 };
10332
10333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10334 if (obj0) {
10335 ecode1 = SWIG_AsVal_int(obj0, &val1);
10336 if (!SWIG_IsOK(ecode1)) {
10337 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10338 }
10339 arg1 = static_cast< int >(val1);
10340 }
10341 if (obj1) {
10342 ecode2 = SWIG_AsVal_int(obj1, &val2);
10343 if (!SWIG_IsOK(ecode2)) {
10344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10345 }
10346 arg2 = static_cast< int >(val2);
10347 }
10348 if (obj2) {
10349 ecode3 = SWIG_AsVal_int(obj2, &val3);
10350 if (!SWIG_IsOK(ecode3)) {
10351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10352 }
10353 arg3 = static_cast< int >(val3);
10354 }
10355 if (obj3) {
10356 ecode4 = SWIG_AsVal_int(obj3, &val4);
10357 if (!SWIG_IsOK(ecode4)) {
10358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10359 }
10360 arg4 = static_cast< int >(val4);
10361 }
10362 {
10363 if (!wxPyCheckForApp()) SWIG_fail;
10364 PyThreadState* __tstate = wxPyBeginAllowThreads();
10365 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10370 return resultobj;
10371fail:
10372 return NULL;
10373}
10374
10375
10376SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj = 0;
10378 wxBitmap *arg1 = 0 ;
10379 wxRegion *result = 0 ;
10380 void *argp1 = 0 ;
10381 int res1 = 0 ;
10382 PyObject * obj0 = 0 ;
10383 char * kwnames[] = {
10384 (char *) "bmp", NULL
10385 };
10386
10387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10388 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10389 if (!SWIG_IsOK(res1)) {
10390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10391 }
10392 if (!argp1) {
10393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10394 }
10395 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10396 {
10397 if (!wxPyCheckForApp()) SWIG_fail;
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10404 return resultobj;
10405fail:
10406 return NULL;
10407}
10408
10409
10410SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj = 0;
10412 wxBitmap *arg1 = 0 ;
10413 wxColour *arg2 = 0 ;
10414 int arg3 = (int) 0 ;
10415 wxRegion *result = 0 ;
10416 void *argp1 = 0 ;
10417 int res1 = 0 ;
10418 wxColour temp2 ;
10419 int val3 ;
10420 int ecode3 = 0 ;
10421 PyObject * obj0 = 0 ;
10422 PyObject * obj1 = 0 ;
10423 PyObject * obj2 = 0 ;
10424 char * kwnames[] = {
10425 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10426 };
10427
10428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10429 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10430 if (!SWIG_IsOK(res1)) {
10431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10432 }
10433 if (!argp1) {
10434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10435 }
10436 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10437 {
10438 arg2 = &temp2;
10439 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10440 }
10441 if (obj2) {
10442 ecode3 = SWIG_AsVal_int(obj2, &val3);
10443 if (!SWIG_IsOK(ecode3)) {
10444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10445 }
10446 arg3 = static_cast< int >(val3);
10447 }
10448 {
10449 if (!wxPyCheckForApp()) SWIG_fail;
10450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10451 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10456 return resultobj;
10457fail:
10458 return NULL;
10459}
10460
10461
10462SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj = 0;
10464 int arg1 ;
10465 wxPoint *arg2 = (wxPoint *) 0 ;
10466 int arg3 = (int) wxWINDING_RULE ;
10467 wxRegion *result = 0 ;
10468 int val3 ;
10469 int ecode3 = 0 ;
10470 PyObject * obj0 = 0 ;
10471 PyObject * obj1 = 0 ;
10472 char * kwnames[] = {
10473 (char *) "points",(char *) "fillStyle", NULL
10474 };
10475
10476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10477 {
10478 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10479 if (arg2 == NULL) SWIG_fail;
10480 }
10481 if (obj1) {
10482 ecode3 = SWIG_AsVal_int(obj1, &val3);
10483 if (!SWIG_IsOK(ecode3)) {
10484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10485 }
10486 arg3 = static_cast< int >(val3);
10487 }
10488 {
10489 if (!wxPyCheckForApp()) SWIG_fail;
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10496 {
10497 if (arg2) delete [] arg2;
10498 }
10499 return resultobj;
10500fail:
10501 {
10502 if (arg2) delete [] arg2;
10503 }
10504 return NULL;
d14a1e28
RD
10505}
10506
10507
0085ce49
RD
10508SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10509 PyObject *resultobj = 0;
10510 wxRegion *arg1 = (wxRegion *) 0 ;
10511 void *argp1 = 0 ;
10512 int res1 = 0 ;
10513 PyObject *swig_obj[1] ;
10514
10515 if (!args) SWIG_fail;
10516 swig_obj[0] = args;
10517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10518 if (!SWIG_IsOK(res1)) {
10519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10520 }
10521 arg1 = reinterpret_cast< wxRegion * >(argp1);
10522 {
10523 PyThreadState* __tstate = wxPyBeginAllowThreads();
10524 delete arg1;
d14a1e28 10525
0085ce49
RD
10526 wxPyEndAllowThreads(__tstate);
10527 if (PyErr_Occurred()) SWIG_fail;
10528 }
10529 resultobj = SWIG_Py_Void();
10530 return resultobj;
10531fail:
10532 return NULL;
d14a1e28
RD
10533}
10534
10535
0085ce49
RD
10536SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10537 PyObject *resultobj = 0;
10538 wxRegion *arg1 = (wxRegion *) 0 ;
10539 void *argp1 = 0 ;
10540 int res1 = 0 ;
10541 PyObject *swig_obj[1] ;
10542
10543 if (!args) SWIG_fail;
10544 swig_obj[0] = args;
10545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10546 if (!SWIG_IsOK(res1)) {
10547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10548 }
10549 arg1 = reinterpret_cast< wxRegion * >(argp1);
10550 {
10551 PyThreadState* __tstate = wxPyBeginAllowThreads();
10552 (arg1)->Clear();
10553 wxPyEndAllowThreads(__tstate);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 }
10556 resultobj = SWIG_Py_Void();
10557 return resultobj;
10558fail:
10559 return NULL;
10560}
10561
10562
10563SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10564 PyObject *resultobj = 0;
10565 wxRegion *arg1 = (wxRegion *) 0 ;
10566 int arg2 ;
10567 int arg3 ;
10568 bool result;
10569 void *argp1 = 0 ;
10570 int res1 = 0 ;
10571 int val2 ;
10572 int ecode2 = 0 ;
10573 int val3 ;
10574 int ecode3 = 0 ;
10575 PyObject * obj0 = 0 ;
10576 PyObject * obj1 = 0 ;
10577 PyObject * obj2 = 0 ;
10578 char * kwnames[] = {
10579 (char *) "self",(char *) "x",(char *) "y", NULL
10580 };
10581
10582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10584 if (!SWIG_IsOK(res1)) {
10585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10586 }
10587 arg1 = reinterpret_cast< wxRegion * >(argp1);
10588 ecode2 = SWIG_AsVal_int(obj1, &val2);
10589 if (!SWIG_IsOK(ecode2)) {
10590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10591 }
10592 arg2 = static_cast< int >(val2);
10593 ecode3 = SWIG_AsVal_int(obj2, &val3);
10594 if (!SWIG_IsOK(ecode3)) {
10595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10596 }
10597 arg3 = static_cast< int >(val3);
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 result = (bool)(arg1)->Offset(arg2,arg3);
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 {
10605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10606 }
10607 return resultobj;
10608fail:
10609 return NULL;
10610}
10611
10612
10613SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10614 PyObject *resultobj = 0;
10615 wxRegion *arg1 = (wxRegion *) 0 ;
10616 int arg2 ;
10617 int arg3 ;
10618 wxRegionContain result;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 int val2 ;
10622 int ecode2 = 0 ;
10623 int val3 ;
10624 int ecode3 = 0 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 PyObject * obj2 = 0 ;
10628 char * kwnames[] = {
10629 (char *) "self",(char *) "x",(char *) "y", NULL
10630 };
10631
10632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10636 }
10637 arg1 = reinterpret_cast< wxRegion * >(argp1);
10638 ecode2 = SWIG_AsVal_int(obj1, &val2);
10639 if (!SWIG_IsOK(ecode2)) {
10640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10641 }
10642 arg2 = static_cast< int >(val2);
10643 ecode3 = SWIG_AsVal_int(obj2, &val3);
10644 if (!SWIG_IsOK(ecode3)) {
10645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10646 }
10647 arg3 = static_cast< int >(val3);
10648 {
10649 PyThreadState* __tstate = wxPyBeginAllowThreads();
10650 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 resultobj = SWIG_From_int(static_cast< int >(result));
10655 return resultobj;
10656fail:
10657 return NULL;
10658}
10659
10660
10661SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj = 0;
10663 wxRegion *arg1 = (wxRegion *) 0 ;
10664 wxPoint *arg2 = 0 ;
10665 wxRegionContain result;
10666 void *argp1 = 0 ;
10667 int res1 = 0 ;
10668 wxPoint temp2 ;
10669 PyObject * obj0 = 0 ;
10670 PyObject * obj1 = 0 ;
10671 char * kwnames[] = {
10672 (char *) "self",(char *) "pt", NULL
10673 };
10674
10675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10677 if (!SWIG_IsOK(res1)) {
10678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10679 }
10680 arg1 = reinterpret_cast< wxRegion * >(argp1);
10681 {
10682 arg2 = &temp2;
10683 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10684 }
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 resultobj = SWIG_From_int(static_cast< int >(result));
10692 return resultobj;
10693fail:
10694 return NULL;
10695}
10696
10697
10698SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10699 PyObject *resultobj = 0;
10700 wxRegion *arg1 = (wxRegion *) 0 ;
10701 wxRect *arg2 = 0 ;
10702 wxRegionContain result;
10703 void *argp1 = 0 ;
10704 int res1 = 0 ;
10705 wxRect temp2 ;
10706 PyObject * obj0 = 0 ;
10707 PyObject * obj1 = 0 ;
10708 char * kwnames[] = {
10709 (char *) "self",(char *) "rect", NULL
10710 };
10711
10712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10714 if (!SWIG_IsOK(res1)) {
10715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10716 }
10717 arg1 = reinterpret_cast< wxRegion * >(argp1);
10718 {
10719 arg2 = &temp2;
10720 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10721 }
10722 {
10723 PyThreadState* __tstate = wxPyBeginAllowThreads();
10724 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10725 wxPyEndAllowThreads(__tstate);
10726 if (PyErr_Occurred()) SWIG_fail;
10727 }
10728 resultobj = SWIG_From_int(static_cast< int >(result));
10729 return resultobj;
10730fail:
10731 return NULL;
10732}
10733
10734
10735SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj = 0;
10737 wxRegion *arg1 = (wxRegion *) 0 ;
10738 int arg2 ;
10739 int arg3 ;
10740 int arg4 ;
10741 int arg5 ;
10742 wxRegionContain result;
10743 void *argp1 = 0 ;
10744 int res1 = 0 ;
10745 int val2 ;
10746 int ecode2 = 0 ;
10747 int val3 ;
10748 int ecode3 = 0 ;
10749 int val4 ;
10750 int ecode4 = 0 ;
10751 int val5 ;
10752 int ecode5 = 0 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 PyObject * obj2 = 0 ;
10756 PyObject * obj3 = 0 ;
10757 PyObject * obj4 = 0 ;
10758 char * kwnames[] = {
10759 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10760 };
10761
10762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10764 if (!SWIG_IsOK(res1)) {
10765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10766 }
10767 arg1 = reinterpret_cast< wxRegion * >(argp1);
10768 ecode2 = SWIG_AsVal_int(obj1, &val2);
10769 if (!SWIG_IsOK(ecode2)) {
10770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10771 }
10772 arg2 = static_cast< int >(val2);
10773 ecode3 = SWIG_AsVal_int(obj2, &val3);
10774 if (!SWIG_IsOK(ecode3)) {
10775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10776 }
10777 arg3 = static_cast< int >(val3);
10778 ecode4 = SWIG_AsVal_int(obj3, &val4);
10779 if (!SWIG_IsOK(ecode4)) {
10780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10781 }
10782 arg4 = static_cast< int >(val4);
10783 ecode5 = SWIG_AsVal_int(obj4, &val5);
10784 if (!SWIG_IsOK(ecode5)) {
10785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10786 }
10787 arg5 = static_cast< int >(val5);
10788 {
10789 PyThreadState* __tstate = wxPyBeginAllowThreads();
10790 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 resultobj = SWIG_From_int(static_cast< int >(result));
10795 return resultobj;
10796fail:
10797 return NULL;
d14a1e28
RD
10798}
10799
10800
0085ce49
RD
10801SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10802 PyObject *resultobj = 0;
10803 wxRegion *arg1 = (wxRegion *) 0 ;
10804 wxRect result;
10805 void *argp1 = 0 ;
10806 int res1 = 0 ;
10807 PyObject *swig_obj[1] ;
10808
10809 if (!args) SWIG_fail;
10810 swig_obj[0] = args;
10811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10812 if (!SWIG_IsOK(res1)) {
10813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10814 }
10815 arg1 = reinterpret_cast< wxRegion * >(argp1);
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 result = (arg1)->GetBox();
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10823 return resultobj;
10824fail:
10825 return NULL;
10826}
10827
10828
10829SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10830 PyObject *resultobj = 0;
10831 wxRegion *arg1 = (wxRegion *) 0 ;
10832 int arg2 ;
10833 int arg3 ;
10834 int arg4 ;
10835 int arg5 ;
10836 bool result;
10837 void *argp1 = 0 ;
10838 int res1 = 0 ;
10839 int val2 ;
10840 int ecode2 = 0 ;
10841 int val3 ;
10842 int ecode3 = 0 ;
10843 int val4 ;
10844 int ecode4 = 0 ;
10845 int val5 ;
10846 int ecode5 = 0 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 PyObject * obj2 = 0 ;
10850 PyObject * obj3 = 0 ;
10851 PyObject * obj4 = 0 ;
10852 char * kwnames[] = {
10853 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10854 };
10855
10856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10858 if (!SWIG_IsOK(res1)) {
10859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10860 }
10861 arg1 = reinterpret_cast< wxRegion * >(argp1);
10862 ecode2 = SWIG_AsVal_int(obj1, &val2);
10863 if (!SWIG_IsOK(ecode2)) {
10864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10865 }
10866 arg2 = static_cast< int >(val2);
10867 ecode3 = SWIG_AsVal_int(obj2, &val3);
10868 if (!SWIG_IsOK(ecode3)) {
10869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10870 }
10871 arg3 = static_cast< int >(val3);
10872 ecode4 = SWIG_AsVal_int(obj3, &val4);
10873 if (!SWIG_IsOK(ecode4)) {
10874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10875 }
10876 arg4 = static_cast< int >(val4);
10877 ecode5 = SWIG_AsVal_int(obj4, &val5);
10878 if (!SWIG_IsOK(ecode5)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10880 }
10881 arg5 = static_cast< int >(val5);
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 {
10889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10890 }
10891 return resultobj;
10892fail:
10893 return NULL;
10894}
10895
10896
10897SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10898 PyObject *resultobj = 0;
10899 wxRegion *arg1 = (wxRegion *) 0 ;
10900 wxRect *arg2 = 0 ;
10901 bool result;
10902 void *argp1 = 0 ;
10903 int res1 = 0 ;
10904 wxRect temp2 ;
10905 PyObject * obj0 = 0 ;
10906 PyObject * obj1 = 0 ;
10907 char * kwnames[] = {
10908 (char *) "self",(char *) "rect", NULL
10909 };
10910
10911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10913 if (!SWIG_IsOK(res1)) {
10914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10915 }
10916 arg1 = reinterpret_cast< wxRegion * >(argp1);
10917 {
10918 arg2 = &temp2;
10919 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10920 }
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 {
10928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10929 }
10930 return resultobj;
10931fail:
10932 return NULL;
10933}
10934
10935
10936SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj = 0;
10938 wxRegion *arg1 = (wxRegion *) 0 ;
10939 wxRegion *arg2 = 0 ;
10940 bool result;
10941 void *argp1 = 0 ;
10942 int res1 = 0 ;
10943 void *argp2 = 0 ;
10944 int res2 = 0 ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 char * kwnames[] = {
10948 (char *) "self",(char *) "region", NULL
10949 };
10950
10951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10953 if (!SWIG_IsOK(res1)) {
10954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10955 }
10956 arg1 = reinterpret_cast< wxRegion * >(argp1);
10957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10958 if (!SWIG_IsOK(res2)) {
10959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10960 }
10961 if (!argp2) {
10962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10963 }
10964 arg2 = reinterpret_cast< wxRegion * >(argp2);
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10968 wxPyEndAllowThreads(__tstate);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 }
10971 {
10972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10973 }
10974 return resultobj;
10975fail:
10976 return NULL;
d14a1e28
RD
10977}
10978
10979
0085ce49
RD
10980SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10981 PyObject *resultobj = 0;
10982 wxRegion *arg1 = (wxRegion *) 0 ;
10983 bool result;
10984 void *argp1 = 0 ;
10985 int res1 = 0 ;
10986 PyObject *swig_obj[1] ;
10987
10988 if (!args) SWIG_fail;
10989 swig_obj[0] = args;
10990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10991 if (!SWIG_IsOK(res1)) {
10992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10993 }
10994 arg1 = reinterpret_cast< wxRegion * >(argp1);
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (bool)(arg1)->IsEmpty();
10998 wxPyEndAllowThreads(__tstate);
10999 if (PyErr_Occurred()) SWIG_fail;
11000 }
11001 {
11002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11003 }
11004 return resultobj;
11005fail:
11006 return NULL;
11007}
11008
11009
f5263701
RD
11010SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj = 0;
11012 wxRegion *arg1 = (wxRegion *) 0 ;
11013 wxRegion *arg2 = 0 ;
11014 bool result;
11015 void *argp1 = 0 ;
11016 int res1 = 0 ;
11017 void *argp2 = 0 ;
11018 int res2 = 0 ;
11019 PyObject * obj0 = 0 ;
11020 PyObject * obj1 = 0 ;
11021 char * kwnames[] = {
11022 (char *) "self",(char *) "region", NULL
11023 };
11024
11025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11027 if (!SWIG_IsOK(res1)) {
11028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11029 }
11030 arg1 = reinterpret_cast< wxRegion * >(argp1);
11031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11032 if (!SWIG_IsOK(res2)) {
11033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11034 }
11035 if (!argp2) {
11036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11037 }
11038 arg2 = reinterpret_cast< wxRegion * >(argp2);
11039 {
11040 PyThreadState* __tstate = wxPyBeginAllowThreads();
11041 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 {
11046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11047 }
11048 return resultobj;
11049fail:
11050 return NULL;
11051}
11052
11053
0085ce49
RD
11054SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11055 PyObject *resultobj = 0;
11056 wxRegion *arg1 = (wxRegion *) 0 ;
11057 int arg2 ;
11058 int arg3 ;
11059 int arg4 ;
11060 int arg5 ;
11061 bool result;
11062 void *argp1 = 0 ;
11063 int res1 = 0 ;
11064 int val2 ;
11065 int ecode2 = 0 ;
11066 int val3 ;
11067 int ecode3 = 0 ;
11068 int val4 ;
11069 int ecode4 = 0 ;
11070 int val5 ;
11071 int ecode5 = 0 ;
11072 PyObject * obj0 = 0 ;
11073 PyObject * obj1 = 0 ;
11074 PyObject * obj2 = 0 ;
11075 PyObject * obj3 = 0 ;
11076 PyObject * obj4 = 0 ;
11077 char * kwnames[] = {
11078 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11079 };
11080
11081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11083 if (!SWIG_IsOK(res1)) {
11084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11085 }
11086 arg1 = reinterpret_cast< wxRegion * >(argp1);
11087 ecode2 = SWIG_AsVal_int(obj1, &val2);
11088 if (!SWIG_IsOK(ecode2)) {
11089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11090 }
11091 arg2 = static_cast< int >(val2);
11092 ecode3 = SWIG_AsVal_int(obj2, &val3);
11093 if (!SWIG_IsOK(ecode3)) {
11094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11095 }
11096 arg3 = static_cast< int >(val3);
11097 ecode4 = SWIG_AsVal_int(obj3, &val4);
11098 if (!SWIG_IsOK(ecode4)) {
11099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11100 }
11101 arg4 = static_cast< int >(val4);
11102 ecode5 = SWIG_AsVal_int(obj4, &val5);
11103 if (!SWIG_IsOK(ecode5)) {
11104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11105 }
11106 arg5 = static_cast< int >(val5);
11107 {
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11110 wxPyEndAllowThreads(__tstate);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 {
11114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11115 }
11116 return resultobj;
11117fail:
11118 return NULL;
11119}
11120
11121
11122SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11123 PyObject *resultobj = 0;
11124 wxRegion *arg1 = (wxRegion *) 0 ;
11125 wxRect *arg2 = 0 ;
11126 bool result;
11127 void *argp1 = 0 ;
11128 int res1 = 0 ;
11129 wxRect temp2 ;
11130 PyObject * obj0 = 0 ;
11131 PyObject * obj1 = 0 ;
11132 char * kwnames[] = {
11133 (char *) "self",(char *) "rect", NULL
11134 };
11135
11136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11138 if (!SWIG_IsOK(res1)) {
11139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11140 }
11141 arg1 = reinterpret_cast< wxRegion * >(argp1);
11142 {
11143 arg2 = &temp2;
11144 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11145 }
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 {
11153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11154 }
11155 return resultobj;
11156fail:
11157 return NULL;
11158}
11159
11160
11161SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11162 PyObject *resultobj = 0;
11163 wxRegion *arg1 = (wxRegion *) 0 ;
11164 wxRegion *arg2 = 0 ;
11165 bool result;
11166 void *argp1 = 0 ;
11167 int res1 = 0 ;
11168 void *argp2 = 0 ;
11169 int res2 = 0 ;
11170 PyObject * obj0 = 0 ;
11171 PyObject * obj1 = 0 ;
11172 char * kwnames[] = {
11173 (char *) "self",(char *) "region", NULL
11174 };
11175
11176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11178 if (!SWIG_IsOK(res1)) {
11179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11180 }
11181 arg1 = reinterpret_cast< wxRegion * >(argp1);
11182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11183 if (!SWIG_IsOK(res2)) {
11184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11185 }
11186 if (!argp2) {
11187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11188 }
11189 arg2 = reinterpret_cast< wxRegion * >(argp2);
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 {
11197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11198 }
11199 return resultobj;
11200fail:
11201 return NULL;
11202}
11203
11204
11205SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11206 PyObject *resultobj = 0;
11207 wxRegion *arg1 = (wxRegion *) 0 ;
11208 int arg2 ;
11209 int arg3 ;
11210 int arg4 ;
11211 int arg5 ;
11212 bool result;
11213 void *argp1 = 0 ;
11214 int res1 = 0 ;
11215 int val2 ;
11216 int ecode2 = 0 ;
11217 int val3 ;
11218 int ecode3 = 0 ;
11219 int val4 ;
11220 int ecode4 = 0 ;
11221 int val5 ;
11222 int ecode5 = 0 ;
11223 PyObject * obj0 = 0 ;
11224 PyObject * obj1 = 0 ;
11225 PyObject * obj2 = 0 ;
11226 PyObject * obj3 = 0 ;
11227 PyObject * obj4 = 0 ;
11228 char * kwnames[] = {
11229 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11230 };
11231
11232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11234 if (!SWIG_IsOK(res1)) {
11235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11236 }
11237 arg1 = reinterpret_cast< wxRegion * >(argp1);
11238 ecode2 = SWIG_AsVal_int(obj1, &val2);
11239 if (!SWIG_IsOK(ecode2)) {
11240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11241 }
11242 arg2 = static_cast< int >(val2);
11243 ecode3 = SWIG_AsVal_int(obj2, &val3);
11244 if (!SWIG_IsOK(ecode3)) {
11245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11246 }
11247 arg3 = static_cast< int >(val3);
11248 ecode4 = SWIG_AsVal_int(obj3, &val4);
11249 if (!SWIG_IsOK(ecode4)) {
11250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11251 }
11252 arg4 = static_cast< int >(val4);
11253 ecode5 = SWIG_AsVal_int(obj4, &val5);
11254 if (!SWIG_IsOK(ecode5)) {
11255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11256 }
11257 arg5 = static_cast< int >(val5);
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 {
11265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11266 }
11267 return resultobj;
11268fail:
11269 return NULL;
11270}
11271
11272
11273SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj = 0;
11275 wxRegion *arg1 = (wxRegion *) 0 ;
11276 wxRect *arg2 = 0 ;
11277 bool result;
11278 void *argp1 = 0 ;
11279 int res1 = 0 ;
11280 wxRect temp2 ;
11281 PyObject * obj0 = 0 ;
11282 PyObject * obj1 = 0 ;
11283 char * kwnames[] = {
11284 (char *) "self",(char *) "rect", NULL
11285 };
11286
11287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11289 if (!SWIG_IsOK(res1)) {
11290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11291 }
11292 arg1 = reinterpret_cast< wxRegion * >(argp1);
11293 {
11294 arg2 = &temp2;
11295 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11296 }
11297 {
11298 PyThreadState* __tstate = wxPyBeginAllowThreads();
11299 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 {
11304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11305 }
11306 return resultobj;
11307fail:
11308 return NULL;
11309}
11310
11311
11312SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj = 0;
11314 wxRegion *arg1 = (wxRegion *) 0 ;
11315 wxRegion *arg2 = 0 ;
11316 bool result;
11317 void *argp1 = 0 ;
11318 int res1 = 0 ;
11319 void *argp2 = 0 ;
11320 int res2 = 0 ;
11321 PyObject * obj0 = 0 ;
11322 PyObject * obj1 = 0 ;
11323 char * kwnames[] = {
11324 (char *) "self",(char *) "region", NULL
11325 };
11326
11327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11329 if (!SWIG_IsOK(res1)) {
11330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11331 }
11332 arg1 = reinterpret_cast< wxRegion * >(argp1);
11333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11334 if (!SWIG_IsOK(res2)) {
11335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11336 }
11337 if (!argp2) {
11338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11339 }
11340 arg2 = reinterpret_cast< wxRegion * >(argp2);
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 {
11348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11349 }
11350 return resultobj;
11351fail:
11352 return NULL;
11353}
11354
11355
11356SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11357 PyObject *resultobj = 0;
11358 wxRegion *arg1 = (wxRegion *) 0 ;
11359 int arg2 ;
11360 int arg3 ;
11361 int arg4 ;
11362 int arg5 ;
11363 bool result;
11364 void *argp1 = 0 ;
11365 int res1 = 0 ;
11366 int val2 ;
11367 int ecode2 = 0 ;
11368 int val3 ;
11369 int ecode3 = 0 ;
11370 int val4 ;
11371 int ecode4 = 0 ;
11372 int val5 ;
11373 int ecode5 = 0 ;
11374 PyObject * obj0 = 0 ;
11375 PyObject * obj1 = 0 ;
11376 PyObject * obj2 = 0 ;
11377 PyObject * obj3 = 0 ;
11378 PyObject * obj4 = 0 ;
11379 char * kwnames[] = {
11380 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11381 };
11382
11383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11387 }
11388 arg1 = reinterpret_cast< wxRegion * >(argp1);
11389 ecode2 = SWIG_AsVal_int(obj1, &val2);
11390 if (!SWIG_IsOK(ecode2)) {
11391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11392 }
11393 arg2 = static_cast< int >(val2);
11394 ecode3 = SWIG_AsVal_int(obj2, &val3);
11395 if (!SWIG_IsOK(ecode3)) {
11396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11397 }
11398 arg3 = static_cast< int >(val3);
11399 ecode4 = SWIG_AsVal_int(obj3, &val4);
11400 if (!SWIG_IsOK(ecode4)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11402 }
11403 arg4 = static_cast< int >(val4);
11404 ecode5 = SWIG_AsVal_int(obj4, &val5);
11405 if (!SWIG_IsOK(ecode5)) {
11406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11407 }
11408 arg5 = static_cast< int >(val5);
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 {
11416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11417 }
11418 return resultobj;
11419fail:
11420 return NULL;
11421}
11422
11423
11424SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11425 PyObject *resultobj = 0;
11426 wxRegion *arg1 = (wxRegion *) 0 ;
11427 wxRect *arg2 = 0 ;
11428 bool result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 wxRect temp2 ;
11432 PyObject * obj0 = 0 ;
11433 PyObject * obj1 = 0 ;
11434 char * kwnames[] = {
11435 (char *) "self",(char *) "rect", NULL
11436 };
11437
11438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11440 if (!SWIG_IsOK(res1)) {
11441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11442 }
11443 arg1 = reinterpret_cast< wxRegion * >(argp1);
11444 {
11445 arg2 = &temp2;
11446 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11447 }
11448 {
11449 PyThreadState* __tstate = wxPyBeginAllowThreads();
11450 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 {
11455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11456 }
11457 return resultobj;
11458fail:
11459 return NULL;
11460}
11461
11462
11463SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11464 PyObject *resultobj = 0;
11465 wxRegion *arg1 = (wxRegion *) 0 ;
11466 wxRegion *arg2 = 0 ;
11467 bool result;
11468 void *argp1 = 0 ;
11469 int res1 = 0 ;
11470 void *argp2 = 0 ;
11471 int res2 = 0 ;
11472 PyObject * obj0 = 0 ;
11473 PyObject * obj1 = 0 ;
11474 char * kwnames[] = {
11475 (char *) "self",(char *) "region", NULL
11476 };
11477
11478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11480 if (!SWIG_IsOK(res1)) {
11481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11482 }
11483 arg1 = reinterpret_cast< wxRegion * >(argp1);
11484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11485 if (!SWIG_IsOK(res2)) {
11486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11487 }
11488 if (!argp2) {
11489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11490 }
11491 arg2 = reinterpret_cast< wxRegion * >(argp2);
11492 {
11493 PyThreadState* __tstate = wxPyBeginAllowThreads();
11494 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11495 wxPyEndAllowThreads(__tstate);
11496 if (PyErr_Occurred()) SWIG_fail;
11497 }
11498 {
11499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11500 }
11501 return resultobj;
11502fail:
11503 return NULL;
d14a1e28
RD
11504}
11505
11506
0085ce49
RD
11507SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11508 PyObject *resultobj = 0;
11509 wxRegion *arg1 = (wxRegion *) 0 ;
11510 SwigValueWrapper<wxBitmap > result;
11511 void *argp1 = 0 ;
11512 int res1 = 0 ;
11513 PyObject *swig_obj[1] ;
11514
11515 if (!args) SWIG_fail;
11516 swig_obj[0] = args;
11517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11518 if (!SWIG_IsOK(res1)) {
11519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11520 }
11521 arg1 = reinterpret_cast< wxRegion * >(argp1);
11522 {
11523 PyThreadState* __tstate = wxPyBeginAllowThreads();
11524 result = (arg1)->ConvertToBitmap();
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11529 return resultobj;
11530fail:
11531 return NULL;
11532}
11533
11534
11535SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11536 PyObject *resultobj = 0;
11537 wxRegion *arg1 = (wxRegion *) 0 ;
11538 wxBitmap *arg2 = 0 ;
11539 bool result;
11540 void *argp1 = 0 ;
11541 int res1 = 0 ;
11542 void *argp2 = 0 ;
11543 int res2 = 0 ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 char * kwnames[] = {
11547 (char *) "self",(char *) "bmp", NULL
11548 };
11549
11550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11552 if (!SWIG_IsOK(res1)) {
11553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11554 }
11555 arg1 = reinterpret_cast< wxRegion * >(argp1);
11556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11557 if (!SWIG_IsOK(res2)) {
11558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11559 }
11560 if (!argp2) {
11561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11562 }
11563 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11564 {
11565 PyThreadState* __tstate = wxPyBeginAllowThreads();
11566 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11567 wxPyEndAllowThreads(__tstate);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 }
11570 {
11571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11572 }
11573 return resultobj;
11574fail:
11575 return NULL;
11576}
11577
11578
11579SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11580 PyObject *resultobj = 0;
11581 wxRegion *arg1 = (wxRegion *) 0 ;
11582 wxBitmap *arg2 = 0 ;
11583 wxColour *arg3 = 0 ;
11584 int arg4 = (int) 0 ;
11585 bool result;
11586 void *argp1 = 0 ;
11587 int res1 = 0 ;
11588 void *argp2 = 0 ;
11589 int res2 = 0 ;
11590 wxColour temp3 ;
11591 int val4 ;
11592 int ecode4 = 0 ;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 PyObject * obj2 = 0 ;
11596 PyObject * obj3 = 0 ;
11597 char * kwnames[] = {
11598 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11599 };
11600
11601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11603 if (!SWIG_IsOK(res1)) {
11604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11605 }
11606 arg1 = reinterpret_cast< wxRegion * >(argp1);
11607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11608 if (!SWIG_IsOK(res2)) {
11609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11610 }
11611 if (!argp2) {
11612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11613 }
11614 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11615 {
11616 arg3 = &temp3;
11617 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11618 }
11619 if (obj3) {
11620 ecode4 = SWIG_AsVal_int(obj3, &val4);
11621 if (!SWIG_IsOK(ecode4)) {
11622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11623 }
11624 arg4 = static_cast< int >(val4);
11625 }
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 {
11633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11634 }
11635 return resultobj;
11636fail:
11637 return NULL;
d14a1e28
RD
11638}
11639
11640
0085ce49
RD
11641SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11642 PyObject *obj;
11643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11644 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11645 return SWIG_Py_Void();
d14a1e28
RD
11646}
11647
0085ce49
RD
11648SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11649 return SWIG_Python_InitShadowInstance(args);
11650}
d14a1e28 11651
0085ce49
RD
11652SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11653 PyObject *resultobj = 0;
11654 wxRegion *arg1 = 0 ;
11655 wxRegionIterator *result = 0 ;
11656 void *argp1 = 0 ;
11657 int res1 = 0 ;
11658 PyObject * obj0 = 0 ;
11659 char * kwnames[] = {
11660 (char *) "region", NULL
11661 };
11662
11663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11664 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11665 if (!SWIG_IsOK(res1)) {
11666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11667 }
11668 if (!argp1) {
11669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11670 }
11671 arg1 = reinterpret_cast< wxRegion * >(argp1);
11672 {
11673 if (!wxPyCheckForApp()) SWIG_fail;
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11676 wxPyEndAllowThreads(__tstate);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 }
11679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11680 return resultobj;
11681fail:
11682 return NULL;
d14a1e28
RD
11683}
11684
11685
0085ce49
RD
11686SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11687 PyObject *resultobj = 0;
11688 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11689 void *argp1 = 0 ;
11690 int res1 = 0 ;
11691 PyObject *swig_obj[1] ;
11692
11693 if (!args) SWIG_fail;
11694 swig_obj[0] = args;
11695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11696 if (!SWIG_IsOK(res1)) {
11697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11698 }
11699 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 delete arg1;
d14a1e28 11703
0085ce49
RD
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 resultobj = SWIG_Py_Void();
11708 return resultobj;
11709fail:
11710 return NULL;
d14a1e28
RD
11711}
11712
11713
0085ce49
RD
11714SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11715 PyObject *resultobj = 0;
11716 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11717 int result;
11718 void *argp1 = 0 ;
11719 int res1 = 0 ;
11720 PyObject *swig_obj[1] ;
11721
11722 if (!args) SWIG_fail;
11723 swig_obj[0] = args;
11724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11725 if (!SWIG_IsOK(res1)) {
11726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11727 }
11728 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = (int)(arg1)->GetX();
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 resultobj = SWIG_From_int(static_cast< int >(result));
11736 return resultobj;
11737fail:
11738 return NULL;
d14a1e28
RD
11739}
11740
11741
0085ce49
RD
11742SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11743 PyObject *resultobj = 0;
11744 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11745 int result;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 PyObject *swig_obj[1] ;
11749
11750 if (!args) SWIG_fail;
11751 swig_obj[0] = args;
11752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11753 if (!SWIG_IsOK(res1)) {
11754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11755 }
11756 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 result = (int)(arg1)->GetY();
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_From_int(static_cast< int >(result));
11764 return resultobj;
11765fail:
11766 return NULL;
d14a1e28
RD
11767}
11768
11769
0085ce49
RD
11770SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11771 PyObject *resultobj = 0;
11772 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11773 int result;
11774 void *argp1 = 0 ;
11775 int res1 = 0 ;
11776 PyObject *swig_obj[1] ;
11777
11778 if (!args) SWIG_fail;
11779 swig_obj[0] = args;
11780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11781 if (!SWIG_IsOK(res1)) {
11782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11783 }
11784 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (int)(arg1)->GetW();
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_From_int(static_cast< int >(result));
11792 return resultobj;
11793fail:
11794 return NULL;
d14a1e28
RD
11795}
11796
11797
0085ce49
RD
11798SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11799 PyObject *resultobj = 0;
11800 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11801 int result;
11802 void *argp1 = 0 ;
11803 int res1 = 0 ;
11804 PyObject *swig_obj[1] ;
11805
11806 if (!args) SWIG_fail;
11807 swig_obj[0] = args;
11808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11809 if (!SWIG_IsOK(res1)) {
11810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11811 }
11812 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
11815 result = (int)(arg1)->GetWidth();
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 resultobj = SWIG_From_int(static_cast< int >(result));
11820 return resultobj;
11821fail:
11822 return NULL;
093d3ff1
RD
11823}
11824
11825
0085ce49
RD
11826SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11827 PyObject *resultobj = 0;
11828 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11829 int result;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 PyObject *swig_obj[1] ;
11833
11834 if (!args) SWIG_fail;
11835 swig_obj[0] = args;
11836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11837 if (!SWIG_IsOK(res1)) {
11838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11839 }
11840 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 result = (int)(arg1)->GetH();
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 resultobj = SWIG_From_int(static_cast< int >(result));
11848 return resultobj;
11849fail:
11850 return NULL;
d14a1e28
RD
11851}
11852
11853
0085ce49
RD
11854SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11855 PyObject *resultobj = 0;
11856 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11857 int result;
11858 void *argp1 = 0 ;
11859 int res1 = 0 ;
11860 PyObject *swig_obj[1] ;
11861
11862 if (!args) SWIG_fail;
11863 swig_obj[0] = args;
11864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11865 if (!SWIG_IsOK(res1)) {
11866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11867 }
11868 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 result = (int)(arg1)->GetHeight();
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 resultobj = SWIG_From_int(static_cast< int >(result));
11876 return resultobj;
11877fail:
11878 return NULL;
093d3ff1
RD
11879}
11880
11881
0085ce49
RD
11882SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11883 PyObject *resultobj = 0;
11884 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11885 wxRect result;
11886 void *argp1 = 0 ;
11887 int res1 = 0 ;
11888 PyObject *swig_obj[1] ;
11889
11890 if (!args) SWIG_fail;
11891 swig_obj[0] = args;
11892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11893 if (!SWIG_IsOK(res1)) {
11894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11895 }
11896 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 result = (arg1)->GetRect();
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11904 return resultobj;
11905fail:
11906 return NULL;
d14a1e28
RD
11907}
11908
11909
0085ce49
RD
11910SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11911 PyObject *resultobj = 0;
11912 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11913 bool result;
11914 void *argp1 = 0 ;
11915 int res1 = 0 ;
11916 PyObject *swig_obj[1] ;
11917
11918 if (!args) SWIG_fail;
11919 swig_obj[0] = args;
11920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11921 if (!SWIG_IsOK(res1)) {
11922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11923 }
11924 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 result = (bool)(arg1)->HaveRects();
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 {
11932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11933 }
11934 return resultobj;
11935fail:
11936 return NULL;
093d3ff1
RD
11937}
11938
11939
0085ce49
RD
11940SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11941 PyObject *resultobj = 0;
11942 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11943 void *argp1 = 0 ;
11944 int res1 = 0 ;
11945 PyObject *swig_obj[1] ;
11946
11947 if (!args) SWIG_fail;
11948 swig_obj[0] = args;
11949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11950 if (!SWIG_IsOK(res1)) {
11951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11952 }
11953 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 (arg1)->Reset();
11957 wxPyEndAllowThreads(__tstate);
11958 if (PyErr_Occurred()) SWIG_fail;
11959 }
11960 resultobj = SWIG_Py_Void();
11961 return resultobj;
11962fail:
11963 return NULL;
d14a1e28
RD
11964}
11965
11966
0085ce49
RD
11967SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11968 PyObject *resultobj = 0;
11969 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11970 void *argp1 = 0 ;
11971 int res1 = 0 ;
11972 PyObject *swig_obj[1] ;
11973
11974 if (!args) SWIG_fail;
11975 swig_obj[0] = args;
11976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11977 if (!SWIG_IsOK(res1)) {
11978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11979 }
11980 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11981 {
11982 PyThreadState* __tstate = wxPyBeginAllowThreads();
11983 wxRegionIterator_Next(arg1);
11984 wxPyEndAllowThreads(__tstate);
11985 if (PyErr_Occurred()) SWIG_fail;
11986 }
11987 resultobj = SWIG_Py_Void();
11988 return resultobj;
11989fail:
11990 return NULL;
d14a1e28
RD
11991}
11992
11993
0085ce49
RD
11994SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11995 PyObject *resultobj = 0;
11996 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11997 bool result;
11998 void *argp1 = 0 ;
11999 int res1 = 0 ;
12000 PyObject *swig_obj[1] ;
12001
12002 if (!args) SWIG_fail;
12003 swig_obj[0] = args;
12004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12005 if (!SWIG_IsOK(res1)) {
12006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12007 }
12008 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 result = (bool)wxRegionIterator___nonzero__(arg1);
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 {
12016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12017 }
12018 return resultobj;
12019fail:
12020 return NULL;
d14a1e28
RD
12021}
12022
12023
0085ce49
RD
12024SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12025 PyObject *obj;
12026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12027 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12028 return SWIG_Py_Void();
d14a1e28
RD
12029}
12030
0085ce49
RD
12031SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12032 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12033}
12034
0085ce49
RD
12035SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12036 PyObject *resultobj = 0;
12037 wxNativeFontInfo *result = 0 ;
12038
12039 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12040 {
12041 PyThreadState* __tstate = wxPyBeginAllowThreads();
12042 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12043 wxPyEndAllowThreads(__tstate);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12047 return resultobj;
12048fail:
12049 return NULL;
d14a1e28
RD
12050}
12051
12052
0085ce49
RD
12053SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12054 PyObject *resultobj = 0;
12055 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12056 void *argp1 = 0 ;
12057 int res1 = 0 ;
12058 PyObject *swig_obj[1] ;
12059
12060 if (!args) SWIG_fail;
12061 swig_obj[0] = args;
12062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12063 if (!SWIG_IsOK(res1)) {
12064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12065 }
12066 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 delete arg1;
d14a1e28 12070
0085ce49
RD
12071 wxPyEndAllowThreads(__tstate);
12072 if (PyErr_Occurred()) SWIG_fail;
12073 }
12074 resultobj = SWIG_Py_Void();
12075 return resultobj;
12076fail:
12077 return NULL;
d14a1e28
RD
12078}
12079
12080
0085ce49
RD
12081SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12082 PyObject *resultobj = 0;
12083 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12084 void *argp1 = 0 ;
12085 int res1 = 0 ;
12086 PyObject *swig_obj[1] ;
12087
12088 if (!args) SWIG_fail;
12089 swig_obj[0] = args;
12090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12091 if (!SWIG_IsOK(res1)) {
12092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12093 }
12094 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 (arg1)->Init();
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 resultobj = SWIG_Py_Void();
12102 return resultobj;
12103fail:
12104 return NULL;
12105}
12106
12107
12108SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12109 PyObject *resultobj = 0;
12110 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12111 wxFont *arg2 = 0 ;
12112 void *argp1 = 0 ;
12113 int res1 = 0 ;
12114 void *argp2 = 0 ;
12115 int res2 = 0 ;
12116 PyObject * obj0 = 0 ;
12117 PyObject * obj1 = 0 ;
12118 char * kwnames[] = {
12119 (char *) "self",(char *) "font", NULL
12120 };
12121
12122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12124 if (!SWIG_IsOK(res1)) {
12125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12126 }
12127 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12129 if (!SWIG_IsOK(res2)) {
12130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12131 }
12132 if (!argp2) {
12133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12134 }
12135 arg2 = reinterpret_cast< wxFont * >(argp2);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 (arg1)->InitFromFont((wxFont const &)*arg2);
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_Py_Void();
12143 return resultobj;
12144fail:
12145 return NULL;
e6ffcedd
RD
12146}
12147
12148
0085ce49
RD
12149SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12150 PyObject *resultobj = 0;
12151 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12152 int result;
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 PyObject *swig_obj[1] ;
12156
12157 if (!args) SWIG_fail;
12158 swig_obj[0] = args;
12159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12160 if (!SWIG_IsOK(res1)) {
12161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12162 }
12163 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12167 wxPyEndAllowThreads(__tstate);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 resultobj = SWIG_From_int(static_cast< int >(result));
12171 return resultobj;
12172fail:
12173 return NULL;
d14a1e28
RD
12174}
12175
12176
0085ce49
RD
12177SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12178 PyObject *resultobj = 0;
12179 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12180 wxFontStyle result;
12181 void *argp1 = 0 ;
12182 int res1 = 0 ;
12183 PyObject *swig_obj[1] ;
12184
12185 if (!args) SWIG_fail;
12186 swig_obj[0] = args;
12187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12188 if (!SWIG_IsOK(res1)) {
12189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12190 }
12191 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12195 wxPyEndAllowThreads(__tstate);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 }
12198 resultobj = SWIG_From_int(static_cast< int >(result));
12199 return resultobj;
12200fail:
12201 return NULL;
d14a1e28
RD
12202}
12203
12204
0085ce49
RD
12205SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12206 PyObject *resultobj = 0;
12207 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12208 wxFontWeight result;
12209 void *argp1 = 0 ;
12210 int res1 = 0 ;
12211 PyObject *swig_obj[1] ;
12212
12213 if (!args) SWIG_fail;
12214 swig_obj[0] = args;
12215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12216 if (!SWIG_IsOK(res1)) {
12217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12218 }
12219 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12220 {
12221 PyThreadState* __tstate = wxPyBeginAllowThreads();
12222 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 resultobj = SWIG_From_int(static_cast< int >(result));
12227 return resultobj;
12228fail:
12229 return NULL;
d14a1e28
RD
12230}
12231
12232
0085ce49
RD
12233SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12234 PyObject *resultobj = 0;
12235 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12236 bool result;
12237 void *argp1 = 0 ;
12238 int res1 = 0 ;
12239 PyObject *swig_obj[1] ;
12240
12241 if (!args) SWIG_fail;
12242 swig_obj[0] = args;
12243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12246 }
12247 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12248 {
12249 PyThreadState* __tstate = wxPyBeginAllowThreads();
12250 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12251 wxPyEndAllowThreads(__tstate);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 {
12255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12256 }
12257 return resultobj;
12258fail:
12259 return NULL;
d14a1e28
RD
12260}
12261
12262
0085ce49
RD
12263SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12264 PyObject *resultobj = 0;
12265 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12266 wxString result;
12267 void *argp1 = 0 ;
12268 int res1 = 0 ;
12269 PyObject *swig_obj[1] ;
12270
12271 if (!args) SWIG_fail;
12272 swig_obj[0] = args;
12273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12274 if (!SWIG_IsOK(res1)) {
12275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12276 }
12277 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 {
12285#if wxUSE_UNICODE
12286 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12287#else
12288 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12289#endif
12290 }
12291 return resultobj;
12292fail:
12293 return NULL;
d14a1e28
RD
12294}
12295
12296
0085ce49
RD
12297SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12298 PyObject *resultobj = 0;
12299 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12300 wxFontFamily result;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 PyObject *swig_obj[1] ;
12304
12305 if (!args) SWIG_fail;
12306 swig_obj[0] = args;
12307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12308 if (!SWIG_IsOK(res1)) {
12309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12310 }
12311 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12312 {
12313 PyThreadState* __tstate = wxPyBeginAllowThreads();
12314 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = SWIG_From_int(static_cast< int >(result));
12319 return resultobj;
12320fail:
12321 return NULL;
d14a1e28
RD
12322}
12323
12324
0085ce49
RD
12325SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12326 PyObject *resultobj = 0;
12327 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12328 wxFontEncoding result;
12329 void *argp1 = 0 ;
12330 int res1 = 0 ;
12331 PyObject *swig_obj[1] ;
12332
12333 if (!args) SWIG_fail;
12334 swig_obj[0] = args;
12335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12336 if (!SWIG_IsOK(res1)) {
12337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12338 }
12339 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
12342 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 resultobj = SWIG_From_int(static_cast< int >(result));
12347 return resultobj;
12348fail:
12349 return NULL;
12350}
12351
12352
12353SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12354 PyObject *resultobj = 0;
12355 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12356 int arg2 ;
12357 void *argp1 = 0 ;
12358 int res1 = 0 ;
12359 int val2 ;
12360 int ecode2 = 0 ;
12361 PyObject * obj0 = 0 ;
12362 PyObject * obj1 = 0 ;
12363 char * kwnames[] = {
12364 (char *) "self",(char *) "pointsize", NULL
12365 };
12366
12367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12369 if (!SWIG_IsOK(res1)) {
12370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12371 }
12372 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12373 ecode2 = SWIG_AsVal_int(obj1, &val2);
12374 if (!SWIG_IsOK(ecode2)) {
12375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12376 }
12377 arg2 = static_cast< int >(val2);
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 (arg1)->SetPointSize(arg2);
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_Py_Void();
12385 return resultobj;
12386fail:
12387 return NULL;
12388}
12389
12390
12391SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj = 0;
12393 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12394 wxFontStyle arg2 ;
12395 void *argp1 = 0 ;
12396 int res1 = 0 ;
12397 int val2 ;
12398 int ecode2 = 0 ;
12399 PyObject * obj0 = 0 ;
12400 PyObject * obj1 = 0 ;
12401 char * kwnames[] = {
12402 (char *) "self",(char *) "style", NULL
12403 };
12404
12405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12407 if (!SWIG_IsOK(res1)) {
12408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12409 }
12410 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12411 ecode2 = SWIG_AsVal_int(obj1, &val2);
12412 if (!SWIG_IsOK(ecode2)) {
12413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12414 }
12415 arg2 = static_cast< wxFontStyle >(val2);
12416 {
12417 PyThreadState* __tstate = wxPyBeginAllowThreads();
12418 (arg1)->SetStyle(arg2);
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 resultobj = SWIG_Py_Void();
12423 return resultobj;
12424fail:
12425 return NULL;
12426}
12427
12428
12429SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12430 PyObject *resultobj = 0;
12431 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12432 wxFontWeight arg2 ;
12433 void *argp1 = 0 ;
12434 int res1 = 0 ;
12435 int val2 ;
12436 int ecode2 = 0 ;
12437 PyObject * obj0 = 0 ;
12438 PyObject * obj1 = 0 ;
12439 char * kwnames[] = {
12440 (char *) "self",(char *) "weight", NULL
12441 };
12442
12443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12445 if (!SWIG_IsOK(res1)) {
12446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12447 }
12448 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12449 ecode2 = SWIG_AsVal_int(obj1, &val2);
12450 if (!SWIG_IsOK(ecode2)) {
12451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12452 }
12453 arg2 = static_cast< wxFontWeight >(val2);
12454 {
12455 PyThreadState* __tstate = wxPyBeginAllowThreads();
12456 (arg1)->SetWeight(arg2);
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 resultobj = SWIG_Py_Void();
12461 return resultobj;
12462fail:
12463 return NULL;
12464}
12465
12466
12467SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12468 PyObject *resultobj = 0;
12469 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12470 bool arg2 ;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 bool val2 ;
12474 int ecode2 = 0 ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 char * kwnames[] = {
12478 (char *) "self",(char *) "underlined", NULL
12479 };
12480
12481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12483 if (!SWIG_IsOK(res1)) {
12484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12485 }
12486 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12487 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12488 if (!SWIG_IsOK(ecode2)) {
12489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12490 }
12491 arg2 = static_cast< bool >(val2);
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 (arg1)->SetUnderlined(arg2);
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 resultobj = SWIG_Py_Void();
12499 return resultobj;
12500fail:
12501 return NULL;
12502}
12503
12504
12505SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj = 0;
12507 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12508 wxString arg2 ;
704eda0c 12509 bool result;
0085ce49
RD
12510 void *argp1 = 0 ;
12511 int res1 = 0 ;
12512 PyObject * obj0 = 0 ;
12513 PyObject * obj1 = 0 ;
12514 char * kwnames[] = {
12515 (char *) "self",(char *) "facename", NULL
12516 };
12517
12518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12522 }
12523 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12524 {
12525 wxString* sptr = wxString_in_helper(obj1);
12526 if (sptr == NULL) SWIG_fail;
12527 arg2 = *sptr;
12528 delete sptr;
12529 }
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12532 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
704eda0c
RD
12536 {
12537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12538 }
0085ce49
RD
12539 return resultobj;
12540fail:
12541 return NULL;
12542}
12543
12544
12545SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12546 PyObject *resultobj = 0;
12547 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12548 wxFontFamily arg2 ;
12549 void *argp1 = 0 ;
12550 int res1 = 0 ;
12551 int val2 ;
12552 int ecode2 = 0 ;
12553 PyObject * obj0 = 0 ;
12554 PyObject * obj1 = 0 ;
12555 char * kwnames[] = {
12556 (char *) "self",(char *) "family", NULL
12557 };
12558
12559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12561 if (!SWIG_IsOK(res1)) {
12562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12563 }
12564 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12565 ecode2 = SWIG_AsVal_int(obj1, &val2);
12566 if (!SWIG_IsOK(ecode2)) {
12567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12568 }
12569 arg2 = static_cast< wxFontFamily >(val2);
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 (arg1)->SetFamily(arg2);
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 resultobj = SWIG_Py_Void();
12577 return resultobj;
12578fail:
12579 return NULL;
12580}
12581
12582
12583SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12584 PyObject *resultobj = 0;
12585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12586 wxFontEncoding arg2 ;
12587 void *argp1 = 0 ;
12588 int res1 = 0 ;
12589 int val2 ;
12590 int ecode2 = 0 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 char * kwnames[] = {
12594 (char *) "self",(char *) "encoding", NULL
12595 };
12596
12597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12601 }
12602 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12603 ecode2 = SWIG_AsVal_int(obj1, &val2);
12604 if (!SWIG_IsOK(ecode2)) {
12605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12606 }
12607 arg2 = static_cast< wxFontEncoding >(val2);
12608 {
12609 PyThreadState* __tstate = wxPyBeginAllowThreads();
12610 (arg1)->SetEncoding(arg2);
12611 wxPyEndAllowThreads(__tstate);
12612 if (PyErr_Occurred()) SWIG_fail;
12613 }
12614 resultobj = SWIG_Py_Void();
12615 return resultobj;
12616fail:
12617 return NULL;
12618}
12619
12620
12621SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj = 0;
12623 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12624 wxString *arg2 = 0 ;
12625 bool result;
12626 void *argp1 = 0 ;
12627 int res1 = 0 ;
12628 bool temp2 = false ;
12629 PyObject * obj0 = 0 ;
12630 PyObject * obj1 = 0 ;
12631 char * kwnames[] = {
12632 (char *) "self",(char *) "s", NULL
12633 };
12634
12635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12637 if (!SWIG_IsOK(res1)) {
12638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12639 }
12640 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12641 {
12642 arg2 = wxString_in_helper(obj1);
12643 if (arg2 == NULL) SWIG_fail;
12644 temp2 = true;
12645 }
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 {
12653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12654 }
12655 {
12656 if (temp2)
12657 delete arg2;
12658 }
12659 return resultobj;
12660fail:
12661 {
12662 if (temp2)
12663 delete arg2;
12664 }
12665 return NULL;
d14a1e28
RD
12666}
12667
12668
0085ce49
RD
12669SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12670 PyObject *resultobj = 0;
12671 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12672 wxString result;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 PyObject *swig_obj[1] ;
12676
12677 if (!args) SWIG_fail;
12678 swig_obj[0] = args;
12679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12680 if (!SWIG_IsOK(res1)) {
12681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12682 }
12683 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = ((wxNativeFontInfo const *)arg1)->ToString();
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 {
12691#if wxUSE_UNICODE
12692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12693#else
12694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12695#endif
12696 }
12697 return resultobj;
12698fail:
12699 return NULL;
d14a1e28
RD
12700}
12701
12702
0085ce49
RD
12703SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12704 PyObject *resultobj = 0;
12705 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12706 wxString result;
12707 void *argp1 = 0 ;
12708 int res1 = 0 ;
12709 PyObject *swig_obj[1] ;
12710
12711 if (!args) SWIG_fail;
12712 swig_obj[0] = args;
12713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12714 if (!SWIG_IsOK(res1)) {
12715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12716 }
12717 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12718 {
12719 PyThreadState* __tstate = wxPyBeginAllowThreads();
12720 result = wxNativeFontInfo___str__(arg1);
12721 wxPyEndAllowThreads(__tstate);
12722 if (PyErr_Occurred()) SWIG_fail;
12723 }
12724 {
12725#if wxUSE_UNICODE
12726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12727#else
12728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12729#endif
12730 }
12731 return resultobj;
12732fail:
12733 return NULL;
12734}
12735
12736
12737SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12738 PyObject *resultobj = 0;
12739 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12740 wxString *arg2 = 0 ;
12741 bool result;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 bool temp2 = false ;
12745 PyObject * obj0 = 0 ;
12746 PyObject * obj1 = 0 ;
12747 char * kwnames[] = {
12748 (char *) "self",(char *) "s", NULL
12749 };
12750
12751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12753 if (!SWIG_IsOK(res1)) {
12754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12755 }
12756 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12757 {
12758 arg2 = wxString_in_helper(obj1);
12759 if (arg2 == NULL) SWIG_fail;
12760 temp2 = true;
12761 }
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 {
12769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12770 }
12771 {
12772 if (temp2)
12773 delete arg2;
12774 }
12775 return resultobj;
12776fail:
12777 {
12778 if (temp2)
12779 delete arg2;
12780 }
12781 return NULL;
d14a1e28
RD
12782}
12783
12784
0085ce49
RD
12785SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12786 PyObject *resultobj = 0;
12787 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12788 wxString result;
12789 void *argp1 = 0 ;
12790 int res1 = 0 ;
12791 PyObject *swig_obj[1] ;
12792
12793 if (!args) SWIG_fail;
12794 swig_obj[0] = args;
12795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12796 if (!SWIG_IsOK(res1)) {
12797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12798 }
12799 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 {
12807#if wxUSE_UNICODE
12808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12809#else
12810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12811#endif
12812 }
12813 return resultobj;
12814fail:
12815 return NULL;
d14a1e28
RD
12816}
12817
12818
0085ce49
RD
12819SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12820 PyObject *obj;
12821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12822 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12823 return SWIG_Py_Void();
d14a1e28
RD
12824}
12825
0085ce49
RD
12826SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12827 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12828}
12829
0085ce49
RD
12830SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12831 PyObject *resultobj = 0;
12832 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12833 wxString *arg2 = (wxString *) 0 ;
12834 void *argp1 = 0 ;
12835 int res1 = 0 ;
12836 bool temp2 = false ;
12837 PyObject *swig_obj[2] ;
12838
12839 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12841 if (!SWIG_IsOK(res1)) {
12842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12843 }
12844 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12845 {
12846 arg2 = wxString_in_helper(swig_obj[1]);
12847 if (arg2 == NULL) SWIG_fail;
12848 temp2 = true;
12849 }
12850 if (arg1) (arg1)->facename = *arg2;
12851
12852 resultobj = SWIG_Py_Void();
12853 {
12854 if (temp2)
12855 delete arg2;
12856 }
12857 return resultobj;
12858fail:
12859 {
12860 if (temp2)
12861 delete arg2;
12862 }
12863 return NULL;
d14a1e28
RD
12864}
12865
12866
0085ce49
RD
12867SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12868 PyObject *resultobj = 0;
12869 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12870 wxString *result = 0 ;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 PyObject *swig_obj[1] ;
12874
12875 if (!args) SWIG_fail;
12876 swig_obj[0] = args;
12877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12878 if (!SWIG_IsOK(res1)) {
12879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12880 }
12881 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12882 result = (wxString *)& ((arg1)->facename);
12883 {
12884#if wxUSE_UNICODE
12885 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12886#else
12887 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12888#endif
12889 }
12890 return resultobj;
12891fail:
12892 return NULL;
d14a1e28
RD
12893}
12894
12895
0085ce49
RD
12896SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12897 PyObject *resultobj = 0;
12898 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12899 wxFontEncoding arg2 ;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 int val2 ;
12903 int ecode2 = 0 ;
12904 PyObject *swig_obj[2] ;
12905
12906 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12908 if (!SWIG_IsOK(res1)) {
12909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12910 }
12911 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12912 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12913 if (!SWIG_IsOK(ecode2)) {
12914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12915 }
12916 arg2 = static_cast< wxFontEncoding >(val2);
12917 if (arg1) (arg1)->encoding = arg2;
12918
12919 resultobj = SWIG_Py_Void();
12920 return resultobj;
12921fail:
12922 return NULL;
d14a1e28
RD
12923}
12924
12925
0085ce49
RD
12926SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12927 PyObject *resultobj = 0;
12928 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12929 wxFontEncoding result;
12930 void *argp1 = 0 ;
12931 int res1 = 0 ;
12932 PyObject *swig_obj[1] ;
12933
12934 if (!args) SWIG_fail;
12935 swig_obj[0] = args;
12936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12937 if (!SWIG_IsOK(res1)) {
12938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12939 }
12940 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12941 result = (wxFontEncoding) ((arg1)->encoding);
12942 resultobj = SWIG_From_int(static_cast< int >(result));
12943 return resultobj;
12944fail:
12945 return NULL;
d14a1e28
RD
12946}
12947
12948
0085ce49
RD
12949SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12950 PyObject *resultobj = 0;
12951 wxNativeEncodingInfo *result = 0 ;
12952
12953 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12957 wxPyEndAllowThreads(__tstate);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12961 return resultobj;
12962fail:
12963 return NULL;
d14a1e28
RD
12964}
12965
12966
0085ce49
RD
12967SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12968 PyObject *resultobj = 0;
12969 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 PyObject *swig_obj[1] ;
12973
12974 if (!args) SWIG_fail;
12975 swig_obj[0] = args;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 delete arg1;
d14a1e28 12984
0085ce49
RD
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 resultobj = SWIG_Py_Void();
12989 return resultobj;
12990fail:
12991 return NULL;
12992}
12993
12994
12995SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj = 0;
12997 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12998 wxString *arg2 = 0 ;
12999 bool result;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 bool temp2 = false ;
13003 PyObject * obj0 = 0 ;
13004 PyObject * obj1 = 0 ;
13005 char * kwnames[] = {
13006 (char *) "self",(char *) "s", NULL
13007 };
13008
13009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13011 if (!SWIG_IsOK(res1)) {
13012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13013 }
13014 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13015 {
13016 arg2 = wxString_in_helper(obj1);
13017 if (arg2 == NULL) SWIG_fail;
13018 temp2 = true;
13019 }
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13023 wxPyEndAllowThreads(__tstate);
13024 if (PyErr_Occurred()) SWIG_fail;
13025 }
13026 {
13027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13028 }
13029 {
13030 if (temp2)
13031 delete arg2;
13032 }
13033 return resultobj;
13034fail:
13035 {
13036 if (temp2)
13037 delete arg2;
13038 }
13039 return NULL;
d14a1e28
RD
13040}
13041
13042
0085ce49
RD
13043SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13044 PyObject *resultobj = 0;
13045 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13046 wxString result;
13047 void *argp1 = 0 ;
13048 int res1 = 0 ;
13049 PyObject *swig_obj[1] ;
13050
13051 if (!args) SWIG_fail;
13052 swig_obj[0] = args;
13053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13054 if (!SWIG_IsOK(res1)) {
13055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13056 }
13057 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13058 {
13059 PyThreadState* __tstate = wxPyBeginAllowThreads();
13060 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 {
13065#if wxUSE_UNICODE
13066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13067#else
13068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13069#endif
13070 }
13071 return resultobj;
13072fail:
13073 return NULL;
d14a1e28
RD
13074}
13075
13076
0085ce49
RD
13077SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13078 PyObject *obj;
13079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13080 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13081 return SWIG_Py_Void();
d14a1e28
RD
13082}
13083
0085ce49
RD
13084SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13085 return SWIG_Python_InitShadowInstance(args);
13086}
d14a1e28 13087
0085ce49
RD
13088SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13089 PyObject *resultobj = 0;
13090 wxFontEncoding arg1 ;
13091 wxNativeEncodingInfo *result = 0 ;
13092 int val1 ;
13093 int ecode1 = 0 ;
13094 PyObject * obj0 = 0 ;
13095 char * kwnames[] = {
13096 (char *) "encoding", NULL
13097 };
13098
13099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13100 ecode1 = SWIG_AsVal_int(obj0, &val1);
13101 if (!SWIG_IsOK(ecode1)) {
13102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13103 }
13104 arg1 = static_cast< wxFontEncoding >(val1);
13105 {
13106 PyThreadState* __tstate = wxPyBeginAllowThreads();
13107 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13108 wxPyEndAllowThreads(__tstate);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 }
13111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13112 return resultobj;
13113fail:
13114 return NULL;
13115}
13116
13117
13118SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj = 0;
13120 wxNativeEncodingInfo *arg1 = 0 ;
13121 bool result;
13122 void *argp1 = 0 ;
13123 int res1 = 0 ;
13124 PyObject * obj0 = 0 ;
13125 char * kwnames[] = {
13126 (char *) "info", NULL
13127 };
13128
13129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13130 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13131 if (!SWIG_IsOK(res1)) {
13132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13133 }
13134 if (!argp1) {
13135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13136 }
13137 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13138 {
13139 PyThreadState* __tstate = wxPyBeginAllowThreads();
13140 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13141 wxPyEndAllowThreads(__tstate);
13142 if (PyErr_Occurred()) SWIG_fail;
13143 }
13144 {
13145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13146 }
13147 return resultobj;
13148fail:
13149 return NULL;
d14a1e28
RD
13150}
13151
13152
0085ce49
RD
13153SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13154 PyObject *resultobj = 0;
13155 wxFontMapper *result = 0 ;
13156
13157 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = (wxFontMapper *)new wxFontMapper();
13161 wxPyEndAllowThreads(__tstate);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13165 return resultobj;
13166fail:
13167 return NULL;
d14a1e28
RD
13168}
13169
13170
0085ce49
RD
13171SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13172 PyObject *resultobj = 0;
13173 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13174 void *argp1 = 0 ;
13175 int res1 = 0 ;
13176 PyObject *swig_obj[1] ;
13177
13178 if (!args) SWIG_fail;
13179 swig_obj[0] = args;
13180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13181 if (!SWIG_IsOK(res1)) {
13182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13183 }
13184 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13185 {
13186 PyThreadState* __tstate = wxPyBeginAllowThreads();
13187 delete arg1;
d14a1e28 13188
0085ce49
RD
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 resultobj = SWIG_Py_Void();
13193 return resultobj;
13194fail:
13195 return NULL;
d14a1e28
RD
13196}
13197
13198
0085ce49
RD
13199SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13200 PyObject *resultobj = 0;
13201 wxFontMapper *result = 0 ;
13202
13203 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13204 {
13205 PyThreadState* __tstate = wxPyBeginAllowThreads();
13206 result = (wxFontMapper *)wxFontMapper::Get();
13207 wxPyEndAllowThreads(__tstate);
13208 if (PyErr_Occurred()) SWIG_fail;
13209 }
13210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13211 return resultobj;
13212fail:
13213 return NULL;
13214}
13215
13216
13217SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13218 PyObject *resultobj = 0;
13219 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13220 wxFontMapper *result = 0 ;
13221 void *argp1 = 0 ;
13222 int res1 = 0 ;
13223 PyObject * obj0 = 0 ;
13224 char * kwnames[] = {
13225 (char *) "mapper", NULL
13226 };
13227
13228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13232 }
13233 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13234 {
13235 PyThreadState* __tstate = wxPyBeginAllowThreads();
13236 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13237 wxPyEndAllowThreads(__tstate);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13241 return resultobj;
13242fail:
13243 return NULL;
13244}
13245
13246
13247SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13248 PyObject *resultobj = 0;
13249 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13250 wxString *arg2 = 0 ;
13251 bool arg3 = (bool) true ;
13252 wxFontEncoding result;
13253 void *argp1 = 0 ;
13254 int res1 = 0 ;
13255 bool temp2 = false ;
13256 bool val3 ;
13257 int ecode3 = 0 ;
13258 PyObject * obj0 = 0 ;
13259 PyObject * obj1 = 0 ;
13260 PyObject * obj2 = 0 ;
13261 char * kwnames[] = {
13262 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13263 };
13264
13265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13267 if (!SWIG_IsOK(res1)) {
13268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13269 }
13270 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13271 {
13272 arg2 = wxString_in_helper(obj1);
13273 if (arg2 == NULL) SWIG_fail;
13274 temp2 = true;
13275 }
13276 if (obj2) {
13277 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13278 if (!SWIG_IsOK(ecode3)) {
13279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13280 }
13281 arg3 = static_cast< bool >(val3);
13282 }
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 resultobj = SWIG_From_int(static_cast< int >(result));
13290 {
13291 if (temp2)
13292 delete arg2;
13293 }
13294 return resultobj;
13295fail:
13296 {
13297 if (temp2)
13298 delete arg2;
13299 }
13300 return NULL;
e6ffcedd
RD
13301}
13302
13303
0085ce49
RD
13304SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13305 PyObject *resultobj = 0;
13306 size_t result;
13307
13308 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13316 return resultobj;
13317fail:
13318 return NULL;
13319}
13320
13321
13322SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj = 0;
13324 size_t arg1 ;
13325 wxFontEncoding result;
13326 size_t val1 ;
13327 int ecode1 = 0 ;
13328 PyObject * obj0 = 0 ;
13329 char * kwnames[] = {
13330 (char *) "n", NULL
13331 };
13332
13333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13334 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13335 if (!SWIG_IsOK(ecode1)) {
13336 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13337 }
13338 arg1 = static_cast< size_t >(val1);
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 resultobj = SWIG_From_int(static_cast< int >(result));
13346 return resultobj;
13347fail:
13348 return NULL;
13349}
13350
13351
13352SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj = 0;
13354 wxFontEncoding arg1 ;
13355 wxString result;
13356 int val1 ;
13357 int ecode1 = 0 ;
13358 PyObject * obj0 = 0 ;
13359 char * kwnames[] = {
13360 (char *) "encoding", NULL
13361 };
13362
13363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13364 ecode1 = SWIG_AsVal_int(obj0, &val1);
13365 if (!SWIG_IsOK(ecode1)) {
13366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13367 }
13368 arg1 = static_cast< wxFontEncoding >(val1);
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = wxFontMapper::GetEncodingName(arg1);
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 {
13376#if wxUSE_UNICODE
13377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13378#else
13379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13380#endif
13381 }
13382 return resultobj;
13383fail:
13384 return NULL;
d14a1e28
RD
13385}
13386
13387
0085ce49
RD
13388SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13389 PyObject *resultobj = 0;
13390 wxFontEncoding arg1 ;
13391 wxString result;
13392 int val1 ;
13393 int ecode1 = 0 ;
13394 PyObject * obj0 = 0 ;
13395 char * kwnames[] = {
13396 (char *) "encoding", NULL
13397 };
13398
13399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13400 ecode1 = SWIG_AsVal_int(obj0, &val1);
13401 if (!SWIG_IsOK(ecode1)) {
13402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13403 }
13404 arg1 = static_cast< wxFontEncoding >(val1);
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
13407 result = wxFontMapper::GetEncodingDescription(arg1);
13408 wxPyEndAllowThreads(__tstate);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 {
13412#if wxUSE_UNICODE
13413 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13414#else
13415 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13416#endif
13417 }
13418 return resultobj;
13419fail:
13420 return NULL;
d14a1e28
RD
13421}
13422
13423
0085ce49
RD
13424SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13425 PyObject *resultobj = 0;
13426 wxString *arg1 = 0 ;
13427 wxFontEncoding result;
13428 bool temp1 = false ;
13429 PyObject * obj0 = 0 ;
13430 char * kwnames[] = {
13431 (char *) "name", NULL
13432 };
13433
13434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13435 {
13436 arg1 = wxString_in_helper(obj0);
13437 if (arg1 == NULL) SWIG_fail;
13438 temp1 = true;
13439 }
13440 {
13441 PyThreadState* __tstate = wxPyBeginAllowThreads();
13442 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 resultobj = SWIG_From_int(static_cast< int >(result));
13447 {
13448 if (temp1)
13449 delete arg1;
13450 }
13451 return resultobj;
13452fail:
13453 {
13454 if (temp1)
13455 delete arg1;
13456 }
13457 return NULL;
d14a1e28
RD
13458}
13459
13460
0085ce49
RD
13461SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj = 0;
13463 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13464 wxString *arg2 = 0 ;
13465 void *argp1 = 0 ;
13466 int res1 = 0 ;
13467 bool temp2 = false ;
13468 PyObject * obj0 = 0 ;
13469 PyObject * obj1 = 0 ;
13470 char * kwnames[] = {
13471 (char *) "self",(char *) "prefix", NULL
13472 };
13473
13474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13476 if (!SWIG_IsOK(res1)) {
13477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13478 }
13479 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13480 {
13481 arg2 = wxString_in_helper(obj1);
13482 if (arg2 == NULL) SWIG_fail;
13483 temp2 = true;
13484 }
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 (arg1)->SetConfigPath((wxString const &)*arg2);
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 resultobj = SWIG_Py_Void();
13492 {
13493 if (temp2)
13494 delete arg2;
13495 }
13496 return resultobj;
13497fail:
13498 {
13499 if (temp2)
13500 delete arg2;
13501 }
13502 return NULL;
d14a1e28
RD
13503}
13504
13505
0085ce49
RD
13506SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13507 PyObject *resultobj = 0;
13508 wxString result;
13509
13510 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = wxFontMapper::GetDefaultConfigPath();
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 {
13518#if wxUSE_UNICODE
13519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13520#else
13521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13522#endif
13523 }
13524 return resultobj;
13525fail:
13526 return NULL;
13527}
13528
13529
13530SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj = 0;
13532 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13533 wxFontEncoding arg2 ;
13534 wxString const &arg3_defvalue = wxPyEmptyString ;
13535 wxString *arg3 = (wxString *) &arg3_defvalue ;
13536 bool arg4 = (bool) true ;
13537 PyObject *result = 0 ;
13538 void *argp1 = 0 ;
13539 int res1 = 0 ;
13540 int val2 ;
13541 int ecode2 = 0 ;
13542 bool temp3 = false ;
13543 bool val4 ;
13544 int ecode4 = 0 ;
13545 PyObject * obj0 = 0 ;
13546 PyObject * obj1 = 0 ;
13547 PyObject * obj2 = 0 ;
13548 PyObject * obj3 = 0 ;
13549 char * kwnames[] = {
13550 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13551 };
13552
13553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13555 if (!SWIG_IsOK(res1)) {
13556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13557 }
13558 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13559 ecode2 = SWIG_AsVal_int(obj1, &val2);
13560 if (!SWIG_IsOK(ecode2)) {
13561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13562 }
13563 arg2 = static_cast< wxFontEncoding >(val2);
13564 if (obj2) {
093d3ff1 13565 {
0085ce49
RD
13566 arg3 = wxString_in_helper(obj2);
13567 if (arg3 == NULL) SWIG_fail;
13568 temp3 = true;
093d3ff1 13569 }
0085ce49
RD
13570 }
13571 if (obj3) {
13572 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13573 if (!SWIG_IsOK(ecode4)) {
13574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13575 }
13576 arg4 = static_cast< bool >(val4);
13577 }
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = result;
13585 {
13586 if (temp3)
13587 delete arg3;
13588 }
13589 return resultobj;
13590fail:
13591 {
13592 if (temp3)
13593 delete arg3;
13594 }
13595 return NULL;
13596}
13597
13598
13599SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13600 PyObject *resultobj = 0;
13601 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13602 wxFontEncoding arg2 ;
13603 wxString const &arg3_defvalue = wxPyEmptyString ;
13604 wxString *arg3 = (wxString *) &arg3_defvalue ;
13605 bool result;
13606 void *argp1 = 0 ;
13607 int res1 = 0 ;
13608 int val2 ;
13609 int ecode2 = 0 ;
13610 bool temp3 = false ;
13611 PyObject * obj0 = 0 ;
13612 PyObject * obj1 = 0 ;
13613 PyObject * obj2 = 0 ;
13614 char * kwnames[] = {
13615 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13616 };
13617
13618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13620 if (!SWIG_IsOK(res1)) {
13621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13622 }
13623 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13624 ecode2 = SWIG_AsVal_int(obj1, &val2);
13625 if (!SWIG_IsOK(ecode2)) {
13626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13627 }
13628 arg2 = static_cast< wxFontEncoding >(val2);
13629 if (obj2) {
d14a1e28 13630 {
0085ce49
RD
13631 arg3 = wxString_in_helper(obj2);
13632 if (arg3 == NULL) SWIG_fail;
13633 temp3 = true;
d14a1e28 13634 }
0085ce49
RD
13635 }
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 {
13643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13644 }
13645 {
13646 if (temp3)
13647 delete arg3;
13648 }
13649 return resultobj;
13650fail:
13651 {
13652 if (temp3)
13653 delete arg3;
13654 }
13655 return NULL;
13656}
13657
13658
13659SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj = 0;
13661 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13662 wxWindow *arg2 = (wxWindow *) 0 ;
13663 void *argp1 = 0 ;
13664 int res1 = 0 ;
13665 void *argp2 = 0 ;
13666 int res2 = 0 ;
13667 PyObject * obj0 = 0 ;
13668 PyObject * obj1 = 0 ;
13669 char * kwnames[] = {
13670 (char *) "self",(char *) "parent", NULL
13671 };
13672
13673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13675 if (!SWIG_IsOK(res1)) {
13676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13677 }
13678 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13680 if (!SWIG_IsOK(res2)) {
13681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13682 }
13683 arg2 = reinterpret_cast< wxWindow * >(argp2);
13684 {
13685 PyThreadState* __tstate = wxPyBeginAllowThreads();
13686 (arg1)->SetDialogParent(arg2);
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 resultobj = SWIG_Py_Void();
13691 return resultobj;
13692fail:
13693 return NULL;
13694}
13695
13696
13697SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13698 PyObject *resultobj = 0;
13699 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13700 wxString *arg2 = 0 ;
13701 void *argp1 = 0 ;
13702 int res1 = 0 ;
13703 bool temp2 = false ;
13704 PyObject * obj0 = 0 ;
13705 PyObject * obj1 = 0 ;
13706 char * kwnames[] = {
13707 (char *) "self",(char *) "title", NULL
13708 };
13709
13710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13712 if (!SWIG_IsOK(res1)) {
13713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13714 }
13715 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13716 {
13717 arg2 = wxString_in_helper(obj1);
13718 if (arg2 == NULL) SWIG_fail;
13719 temp2 = true;
13720 }
13721 {
13722 PyThreadState* __tstate = wxPyBeginAllowThreads();
13723 (arg1)->SetDialogTitle((wxString const &)*arg2);
13724 wxPyEndAllowThreads(__tstate);
13725 if (PyErr_Occurred()) SWIG_fail;
13726 }
13727 resultobj = SWIG_Py_Void();
13728 {
13729 if (temp2)
13730 delete arg2;
13731 }
13732 return resultobj;
13733fail:
13734 {
13735 if (temp2)
13736 delete arg2;
13737 }
13738 return NULL;
13739}
13740
13741
13742SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13743 PyObject *obj;
13744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13745 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13746 return SWIG_Py_Void();
13747}
13748
13749SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13750 return SWIG_Python_InitShadowInstance(args);
13751}
13752
13753SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj = 0;
13755 int arg1 ;
13756 int arg2 ;
13757 int arg3 ;
13758 int arg4 ;
13759 bool arg5 = (bool) false ;
13760 wxString const &arg6_defvalue = wxPyEmptyString ;
13761 wxString *arg6 = (wxString *) &arg6_defvalue ;
13762 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13763 wxFont *result = 0 ;
13764 int val1 ;
13765 int ecode1 = 0 ;
13766 int val2 ;
13767 int ecode2 = 0 ;
13768 int val3 ;
13769 int ecode3 = 0 ;
13770 int val4 ;
13771 int ecode4 = 0 ;
13772 bool val5 ;
13773 int ecode5 = 0 ;
13774 bool temp6 = false ;
13775 int val7 ;
13776 int ecode7 = 0 ;
13777 PyObject * obj0 = 0 ;
13778 PyObject * obj1 = 0 ;
13779 PyObject * obj2 = 0 ;
13780 PyObject * obj3 = 0 ;
13781 PyObject * obj4 = 0 ;
13782 PyObject * obj5 = 0 ;
13783 PyObject * obj6 = 0 ;
13784 char * kwnames[] = {
13785 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13786 };
13787
13788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13789 ecode1 = SWIG_AsVal_int(obj0, &val1);
13790 if (!SWIG_IsOK(ecode1)) {
13791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13792 }
13793 arg1 = static_cast< int >(val1);
13794 ecode2 = SWIG_AsVal_int(obj1, &val2);
13795 if (!SWIG_IsOK(ecode2)) {
13796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13797 }
13798 arg2 = static_cast< int >(val2);
13799 ecode3 = SWIG_AsVal_int(obj2, &val3);
13800 if (!SWIG_IsOK(ecode3)) {
13801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13802 }
13803 arg3 = static_cast< int >(val3);
13804 ecode4 = SWIG_AsVal_int(obj3, &val4);
13805 if (!SWIG_IsOK(ecode4)) {
13806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13807 }
13808 arg4 = static_cast< int >(val4);
13809 if (obj4) {
13810 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13811 if (!SWIG_IsOK(ecode5)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13813 }
13814 arg5 = static_cast< bool >(val5);
13815 }
13816 if (obj5) {
093d3ff1 13817 {
0085ce49
RD
13818 arg6 = wxString_in_helper(obj5);
13819 if (arg6 == NULL) SWIG_fail;
13820 temp6 = true;
093d3ff1 13821 }
0085ce49
RD
13822 }
13823 if (obj6) {
13824 ecode7 = SWIG_AsVal_int(obj6, &val7);
13825 if (!SWIG_IsOK(ecode7)) {
13826 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13827 }
13828 arg7 = static_cast< wxFontEncoding >(val7);
13829 }
13830 {
13831 if (!wxPyCheckForApp()) SWIG_fail;
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13838 {
13839 if (temp6)
13840 delete arg6;
13841 }
13842 return resultobj;
13843fail:
13844 {
13845 if (temp6)
13846 delete arg6;
13847 }
13848 return NULL;
d14a1e28
RD
13849}
13850
13851
0085ce49
RD
13852SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13853 PyObject *resultobj = 0;
13854 wxFont *arg1 = (wxFont *) 0 ;
13855 void *argp1 = 0 ;
13856 int res1 = 0 ;
13857 PyObject *swig_obj[1] ;
13858
13859 if (!args) SWIG_fail;
13860 swig_obj[0] = args;
13861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13862 if (!SWIG_IsOK(res1)) {
13863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13864 }
13865 arg1 = reinterpret_cast< wxFont * >(argp1);
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 delete arg1;
d14a1e28 13869
0085ce49
RD
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_Py_Void();
13874 return resultobj;
13875fail:
13876 return NULL;
13877}
13878
13879
13880SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj = 0;
13882 wxNativeFontInfo *arg1 = 0 ;
13883 wxFont *result = 0 ;
13884 void *argp1 = 0 ;
13885 int res1 = 0 ;
13886 PyObject * obj0 = 0 ;
13887 char * kwnames[] = {
13888 (char *) "info", NULL
13889 };
13890
13891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13892 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13893 if (!SWIG_IsOK(res1)) {
13894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13895 }
13896 if (!argp1) {
13897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13898 }
13899 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13900 {
13901 if (!wxPyCheckForApp()) SWIG_fail;
13902 PyThreadState* __tstate = wxPyBeginAllowThreads();
13903 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13908 return resultobj;
13909fail:
13910 return NULL;
d14a1e28
RD
13911}
13912
13913
0085ce49
RD
13914SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj = 0;
13916 wxString *arg1 = 0 ;
13917 wxFont *result = 0 ;
13918 bool temp1 = false ;
13919 PyObject * obj0 = 0 ;
13920 char * kwnames[] = {
13921 (char *) "info", NULL
13922 };
13923
13924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13925 {
13926 arg1 = wxString_in_helper(obj0);
13927 if (arg1 == NULL) SWIG_fail;
13928 temp1 = true;
13929 }
13930 {
13931 if (!wxPyCheckForApp()) SWIG_fail;
13932 PyThreadState* __tstate = wxPyBeginAllowThreads();
13933 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13938 {
13939 if (temp1)
13940 delete arg1;
13941 }
13942 return resultobj;
13943fail:
13944 {
13945 if (temp1)
13946 delete arg1;
13947 }
13948 return NULL;
13949}
13950
13951
13952SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj = 0;
13954 int arg1 ;
13955 wxFontFamily arg2 ;
13956 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13957 wxString const &arg4_defvalue = wxPyEmptyString ;
13958 wxString *arg4 = (wxString *) &arg4_defvalue ;
13959 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13960 wxFont *result = 0 ;
13961 int val1 ;
13962 int ecode1 = 0 ;
13963 int val2 ;
13964 int ecode2 = 0 ;
13965 int val3 ;
13966 int ecode3 = 0 ;
13967 bool temp4 = false ;
13968 int val5 ;
13969 int ecode5 = 0 ;
13970 PyObject * obj0 = 0 ;
13971 PyObject * obj1 = 0 ;
13972 PyObject * obj2 = 0 ;
13973 PyObject * obj3 = 0 ;
13974 PyObject * obj4 = 0 ;
13975 char * kwnames[] = {
13976 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13977 };
13978
13979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13980 ecode1 = SWIG_AsVal_int(obj0, &val1);
13981 if (!SWIG_IsOK(ecode1)) {
13982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13983 }
13984 arg1 = static_cast< int >(val1);
13985 ecode2 = SWIG_AsVal_int(obj1, &val2);
13986 if (!SWIG_IsOK(ecode2)) {
13987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13988 }
13989 arg2 = static_cast< wxFontFamily >(val2);
13990 if (obj2) {
13991 ecode3 = SWIG_AsVal_int(obj2, &val3);
13992 if (!SWIG_IsOK(ecode3)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13994 }
13995 arg3 = static_cast< int >(val3);
13996 }
13997 if (obj3) {
093d3ff1 13998 {
0085ce49
RD
13999 arg4 = wxString_in_helper(obj3);
14000 if (arg4 == NULL) SWIG_fail;
14001 temp4 = true;
093d3ff1 14002 }
0085ce49
RD
14003 }
14004 if (obj4) {
14005 ecode5 = SWIG_AsVal_int(obj4, &val5);
14006 if (!SWIG_IsOK(ecode5)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14008 }
14009 arg5 = static_cast< wxFontEncoding >(val5);
14010 }
14011 {
14012 if (!wxPyCheckForApp()) SWIG_fail;
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14019 {
14020 if (temp4)
14021 delete arg4;
14022 }
14023 return resultobj;
14024fail:
14025 {
14026 if (temp4)
14027 delete arg4;
14028 }
14029 return NULL;
14030}
14031
14032
14033SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14034 PyObject *resultobj = 0;
14035 wxSize *arg1 = 0 ;
14036 int arg2 ;
14037 int arg3 ;
14038 int arg4 ;
14039 bool arg5 = (bool) false ;
14040 wxString const &arg6_defvalue = wxEmptyString ;
14041 wxString *arg6 = (wxString *) &arg6_defvalue ;
14042 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14043 wxFont *result = 0 ;
14044 wxSize temp1 ;
14045 int val2 ;
14046 int ecode2 = 0 ;
14047 int val3 ;
14048 int ecode3 = 0 ;
14049 int val4 ;
14050 int ecode4 = 0 ;
14051 bool val5 ;
14052 int ecode5 = 0 ;
14053 bool temp6 = false ;
14054 int val7 ;
14055 int ecode7 = 0 ;
14056 PyObject * obj0 = 0 ;
14057 PyObject * obj1 = 0 ;
14058 PyObject * obj2 = 0 ;
14059 PyObject * obj3 = 0 ;
14060 PyObject * obj4 = 0 ;
14061 PyObject * obj5 = 0 ;
14062 PyObject * obj6 = 0 ;
14063 char * kwnames[] = {
14064 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14065 };
14066
14067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14068 {
14069 arg1 = &temp1;
14070 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14071 }
14072 ecode2 = SWIG_AsVal_int(obj1, &val2);
14073 if (!SWIG_IsOK(ecode2)) {
14074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14075 }
14076 arg2 = static_cast< int >(val2);
14077 ecode3 = SWIG_AsVal_int(obj2, &val3);
14078 if (!SWIG_IsOK(ecode3)) {
14079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14080 }
14081 arg3 = static_cast< int >(val3);
14082 ecode4 = SWIG_AsVal_int(obj3, &val4);
14083 if (!SWIG_IsOK(ecode4)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14085 }
14086 arg4 = static_cast< int >(val4);
14087 if (obj4) {
14088 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14089 if (!SWIG_IsOK(ecode5)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14091 }
14092 arg5 = static_cast< bool >(val5);
14093 }
14094 if (obj5) {
d14a1e28 14095 {
0085ce49
RD
14096 arg6 = wxString_in_helper(obj5);
14097 if (arg6 == NULL) SWIG_fail;
14098 temp6 = true;
d14a1e28 14099 }
0085ce49
RD
14100 }
14101 if (obj6) {
14102 ecode7 = SWIG_AsVal_int(obj6, &val7);
14103 if (!SWIG_IsOK(ecode7)) {
14104 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14105 }
14106 arg7 = static_cast< wxFontEncoding >(val7);
14107 }
14108 {
14109 if (!wxPyCheckForApp()) SWIG_fail;
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14116 {
14117 if (temp6)
14118 delete arg6;
14119 }
14120 return resultobj;
14121fail:
14122 {
14123 if (temp6)
14124 delete arg6;
14125 }
14126 return NULL;
14127}
14128
14129
14130SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14131 PyObject *resultobj = 0;
14132 wxSize *arg1 = 0 ;
14133 wxFontFamily arg2 ;
14134 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14135 wxString const &arg4_defvalue = wxEmptyString ;
14136 wxString *arg4 = (wxString *) &arg4_defvalue ;
14137 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14138 wxFont *result = 0 ;
14139 wxSize temp1 ;
14140 int val2 ;
14141 int ecode2 = 0 ;
14142 int val3 ;
14143 int ecode3 = 0 ;
14144 bool temp4 = false ;
14145 int val5 ;
14146 int ecode5 = 0 ;
14147 PyObject * obj0 = 0 ;
14148 PyObject * obj1 = 0 ;
14149 PyObject * obj2 = 0 ;
14150 PyObject * obj3 = 0 ;
14151 PyObject * obj4 = 0 ;
14152 char * kwnames[] = {
14153 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14154 };
14155
14156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14157 {
14158 arg1 = &temp1;
14159 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14160 }
14161 ecode2 = SWIG_AsVal_int(obj1, &val2);
14162 if (!SWIG_IsOK(ecode2)) {
14163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14164 }
14165 arg2 = static_cast< wxFontFamily >(val2);
14166 if (obj2) {
14167 ecode3 = SWIG_AsVal_int(obj2, &val3);
14168 if (!SWIG_IsOK(ecode3)) {
14169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14170 }
14171 arg3 = static_cast< int >(val3);
14172 }
14173 if (obj3) {
093d3ff1 14174 {
0085ce49
RD
14175 arg4 = wxString_in_helper(obj3);
14176 if (arg4 == NULL) SWIG_fail;
14177 temp4 = true;
093d3ff1 14178 }
0085ce49
RD
14179 }
14180 if (obj4) {
14181 ecode5 = SWIG_AsVal_int(obj4, &val5);
14182 if (!SWIG_IsOK(ecode5)) {
14183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14184 }
14185 arg5 = static_cast< wxFontEncoding >(val5);
14186 }
14187 {
14188 if (!wxPyCheckForApp()) SWIG_fail;
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14191 wxPyEndAllowThreads(__tstate);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 }
14194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14195 {
14196 if (temp4)
14197 delete arg4;
14198 }
14199 return resultobj;
14200fail:
14201 {
14202 if (temp4)
14203 delete arg4;
14204 }
14205 return NULL;
d14a1e28
RD
14206}
14207
14208
b39fe951 14209SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
14210 PyObject *resultobj = 0;
14211 wxFont *arg1 = (wxFont *) 0 ;
14212 bool result;
14213 void *argp1 = 0 ;
14214 int res1 = 0 ;
14215 PyObject *swig_obj[1] ;
14216
14217 if (!args) SWIG_fail;
14218 swig_obj[0] = args;
14219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14220 if (!SWIG_IsOK(res1)) {
b39fe951 14221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
14222 }
14223 arg1 = reinterpret_cast< wxFont * >(argp1);
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14226 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14232 }
14233 return resultobj;
14234fail:
14235 return NULL;
14236}
14237
14238
14239SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14240 PyObject *resultobj = 0;
14241 wxFont *arg1 = (wxFont *) 0 ;
14242 wxFont *arg2 = (wxFont *) 0 ;
14243 bool result;
14244 void *argp1 = 0 ;
14245 int res1 = 0 ;
14246 void *argp2 = 0 ;
14247 int res2 = 0 ;
14248 PyObject * obj0 = 0 ;
14249 PyObject * obj1 = 0 ;
14250 char * kwnames[] = {
14251 (char *) "self",(char *) "other", NULL
14252 };
14253
14254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14256 if (!SWIG_IsOK(res1)) {
14257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14258 }
14259 arg1 = reinterpret_cast< wxFont * >(argp1);
14260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14261 if (!SWIG_IsOK(res2)) {
14262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14263 }
14264 arg2 = reinterpret_cast< wxFont * >(argp2);
14265 {
14266 PyThreadState* __tstate = wxPyBeginAllowThreads();
14267 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 {
14272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14273 }
14274 return resultobj;
14275fail:
14276 return NULL;
14277}
14278
14279
14280SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14281 PyObject *resultobj = 0;
14282 wxFont *arg1 = (wxFont *) 0 ;
14283 wxFont *arg2 = (wxFont *) 0 ;
14284 bool result;
14285 void *argp1 = 0 ;
14286 int res1 = 0 ;
14287 void *argp2 = 0 ;
14288 int res2 = 0 ;
14289 PyObject * obj0 = 0 ;
14290 PyObject * obj1 = 0 ;
14291 char * kwnames[] = {
14292 (char *) "self",(char *) "other", NULL
14293 };
14294
14295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14297 if (!SWIG_IsOK(res1)) {
14298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14299 }
14300 arg1 = reinterpret_cast< wxFont * >(argp1);
14301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14302 if (!SWIG_IsOK(res2)) {
14303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14304 }
14305 arg2 = reinterpret_cast< wxFont * >(argp2);
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 {
14313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14314 }
14315 return resultobj;
14316fail:
14317 return NULL;
d14a1e28
RD
14318}
14319
14320
0085ce49
RD
14321SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14322 PyObject *resultobj = 0;
14323 wxFont *arg1 = (wxFont *) 0 ;
14324 int result;
14325 void *argp1 = 0 ;
14326 int res1 = 0 ;
14327 PyObject *swig_obj[1] ;
14328
14329 if (!args) SWIG_fail;
14330 swig_obj[0] = args;
14331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14332 if (!SWIG_IsOK(res1)) {
14333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14334 }
14335 arg1 = reinterpret_cast< wxFont * >(argp1);
14336 {
14337 PyThreadState* __tstate = wxPyBeginAllowThreads();
14338 result = (int)((wxFont const *)arg1)->GetPointSize();
14339 wxPyEndAllowThreads(__tstate);
14340 if (PyErr_Occurred()) SWIG_fail;
14341 }
14342 resultobj = SWIG_From_int(static_cast< int >(result));
14343 return resultobj;
14344fail:
14345 return NULL;
d14a1e28
RD
14346}
14347
14348
0085ce49
RD
14349SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14350 PyObject *resultobj = 0;
14351 wxFont *arg1 = (wxFont *) 0 ;
14352 wxSize result;
14353 void *argp1 = 0 ;
14354 int res1 = 0 ;
14355 PyObject *swig_obj[1] ;
14356
14357 if (!args) SWIG_fail;
14358 swig_obj[0] = args;
14359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14360 if (!SWIG_IsOK(res1)) {
14361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14362 }
14363 arg1 = reinterpret_cast< wxFont * >(argp1);
14364 {
14365 PyThreadState* __tstate = wxPyBeginAllowThreads();
14366 result = ((wxFont const *)arg1)->GetPixelSize();
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14371 return resultobj;
14372fail:
14373 return NULL;
d14a1e28
RD
14374}
14375
14376
0085ce49
RD
14377SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14378 PyObject *resultobj = 0;
14379 wxFont *arg1 = (wxFont *) 0 ;
14380 bool result;
14381 void *argp1 = 0 ;
14382 int res1 = 0 ;
14383 PyObject *swig_obj[1] ;
14384
14385 if (!args) SWIG_fail;
14386 swig_obj[0] = args;
14387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14388 if (!SWIG_IsOK(res1)) {
14389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14390 }
14391 arg1 = reinterpret_cast< wxFont * >(argp1);
14392 {
14393 PyThreadState* __tstate = wxPyBeginAllowThreads();
14394 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 {
14399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14400 }
14401 return resultobj;
14402fail:
14403 return NULL;
d14a1e28
RD
14404}
14405
14406
0085ce49
RD
14407SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14408 PyObject *resultobj = 0;
14409 wxFont *arg1 = (wxFont *) 0 ;
14410 int result;
14411 void *argp1 = 0 ;
14412 int res1 = 0 ;
14413 PyObject *swig_obj[1] ;
14414
14415 if (!args) SWIG_fail;
14416 swig_obj[0] = args;
14417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14418 if (!SWIG_IsOK(res1)) {
14419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14420 }
14421 arg1 = reinterpret_cast< wxFont * >(argp1);
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = (int)((wxFont const *)arg1)->GetFamily();
14425 wxPyEndAllowThreads(__tstate);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 resultobj = SWIG_From_int(static_cast< int >(result));
14429 return resultobj;
14430fail:
14431 return NULL;
d14a1e28
RD
14432}
14433
14434
0085ce49
RD
14435SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14436 PyObject *resultobj = 0;
14437 wxFont *arg1 = (wxFont *) 0 ;
14438 int result;
14439 void *argp1 = 0 ;
14440 int res1 = 0 ;
14441 PyObject *swig_obj[1] ;
14442
14443 if (!args) SWIG_fail;
14444 swig_obj[0] = args;
14445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14446 if (!SWIG_IsOK(res1)) {
14447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14448 }
14449 arg1 = reinterpret_cast< wxFont * >(argp1);
14450 {
14451 PyThreadState* __tstate = wxPyBeginAllowThreads();
14452 result = (int)((wxFont const *)arg1)->GetStyle();
14453 wxPyEndAllowThreads(__tstate);
14454 if (PyErr_Occurred()) SWIG_fail;
14455 }
14456 resultobj = SWIG_From_int(static_cast< int >(result));
14457 return resultobj;
14458fail:
14459 return NULL;
d14a1e28
RD
14460}
14461
14462
0085ce49
RD
14463SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14464 PyObject *resultobj = 0;
14465 wxFont *arg1 = (wxFont *) 0 ;
14466 int result;
14467 void *argp1 = 0 ;
14468 int res1 = 0 ;
14469 PyObject *swig_obj[1] ;
14470
14471 if (!args) SWIG_fail;
14472 swig_obj[0] = args;
14473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14474 if (!SWIG_IsOK(res1)) {
14475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14476 }
14477 arg1 = reinterpret_cast< wxFont * >(argp1);
14478 {
14479 PyThreadState* __tstate = wxPyBeginAllowThreads();
14480 result = (int)((wxFont const *)arg1)->GetWeight();
14481 wxPyEndAllowThreads(__tstate);
14482 if (PyErr_Occurred()) SWIG_fail;
14483 }
14484 resultobj = SWIG_From_int(static_cast< int >(result));
14485 return resultobj;
14486fail:
14487 return NULL;
d14a1e28
RD
14488}
14489
14490
0085ce49
RD
14491SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14492 PyObject *resultobj = 0;
14493 wxFont *arg1 = (wxFont *) 0 ;
14494 bool result;
14495 void *argp1 = 0 ;
14496 int res1 = 0 ;
14497 PyObject *swig_obj[1] ;
14498
14499 if (!args) SWIG_fail;
14500 swig_obj[0] = args;
14501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14502 if (!SWIG_IsOK(res1)) {
14503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14504 }
14505 arg1 = reinterpret_cast< wxFont * >(argp1);
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14509 wxPyEndAllowThreads(__tstate);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 {
14513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14514 }
14515 return resultobj;
14516fail:
14517 return NULL;
d14a1e28
RD
14518}
14519
14520
0085ce49
RD
14521SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14522 PyObject *resultobj = 0;
14523 wxFont *arg1 = (wxFont *) 0 ;
14524 wxString result;
14525 void *argp1 = 0 ;
14526 int res1 = 0 ;
14527 PyObject *swig_obj[1] ;
14528
14529 if (!args) SWIG_fail;
14530 swig_obj[0] = args;
14531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14532 if (!SWIG_IsOK(res1)) {
14533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14534 }
14535 arg1 = reinterpret_cast< wxFont * >(argp1);
14536 {
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 result = ((wxFont const *)arg1)->GetFaceName();
14539 wxPyEndAllowThreads(__tstate);
14540 if (PyErr_Occurred()) SWIG_fail;
14541 }
14542 {
14543#if wxUSE_UNICODE
14544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14545#else
14546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14547#endif
14548 }
14549 return resultobj;
14550fail:
14551 return NULL;
d14a1e28
RD
14552}
14553
14554
0085ce49
RD
14555SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14556 PyObject *resultobj = 0;
14557 wxFont *arg1 = (wxFont *) 0 ;
14558 wxFontEncoding result;
14559 void *argp1 = 0 ;
14560 int res1 = 0 ;
14561 PyObject *swig_obj[1] ;
14562
14563 if (!args) SWIG_fail;
14564 swig_obj[0] = args;
14565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14566 if (!SWIG_IsOK(res1)) {
14567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14568 }
14569 arg1 = reinterpret_cast< wxFont * >(argp1);
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 resultobj = SWIG_From_int(static_cast< int >(result));
14577 return resultobj;
14578fail:
14579 return NULL;
d14a1e28
RD
14580}
14581
14582
0085ce49
RD
14583SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14584 PyObject *resultobj = 0;
14585 wxFont *arg1 = (wxFont *) 0 ;
14586 wxNativeFontInfo *result = 0 ;
14587 void *argp1 = 0 ;
14588 int res1 = 0 ;
14589 PyObject *swig_obj[1] ;
14590
14591 if (!args) SWIG_fail;
14592 swig_obj[0] = args;
14593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14594 if (!SWIG_IsOK(res1)) {
14595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14596 }
14597 arg1 = reinterpret_cast< wxFont * >(argp1);
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14605 return resultobj;
14606fail:
14607 return NULL;
d14a1e28
RD
14608}
14609
14610
0085ce49
RD
14611SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14612 PyObject *resultobj = 0;
14613 wxFont *arg1 = (wxFont *) 0 ;
14614 bool result;
14615 void *argp1 = 0 ;
14616 int res1 = 0 ;
14617 PyObject *swig_obj[1] ;
14618
14619 if (!args) SWIG_fail;
14620 swig_obj[0] = args;
14621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14622 if (!SWIG_IsOK(res1)) {
14623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14624 }
14625 arg1 = reinterpret_cast< wxFont * >(argp1);
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14629 wxPyEndAllowThreads(__tstate);
14630 if (PyErr_Occurred()) SWIG_fail;
14631 }
14632 {
14633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14634 }
14635 return resultobj;
14636fail:
14637 return NULL;
d14a1e28
RD
14638}
14639
14640
0085ce49
RD
14641SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14642 PyObject *resultobj = 0;
14643 wxFont *arg1 = (wxFont *) 0 ;
14644 wxString result;
14645 void *argp1 = 0 ;
14646 int res1 = 0 ;
14647 PyObject *swig_obj[1] ;
14648
14649 if (!args) SWIG_fail;
14650 swig_obj[0] = args;
14651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14652 if (!SWIG_IsOK(res1)) {
14653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14654 }
14655 arg1 = reinterpret_cast< wxFont * >(argp1);
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 {
14663#if wxUSE_UNICODE
14664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14665#else
14666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14667#endif
14668 }
14669 return resultobj;
14670fail:
14671 return NULL;
d14a1e28
RD
14672}
14673
14674
0085ce49
RD
14675SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14676 PyObject *resultobj = 0;
14677 wxFont *arg1 = (wxFont *) 0 ;
14678 wxString result;
14679 void *argp1 = 0 ;
14680 int res1 = 0 ;
14681 PyObject *swig_obj[1] ;
14682
14683 if (!args) SWIG_fail;
14684 swig_obj[0] = args;
14685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14686 if (!SWIG_IsOK(res1)) {
14687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14688 }
14689 arg1 = reinterpret_cast< wxFont * >(argp1);
14690 {
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14693 wxPyEndAllowThreads(__tstate);
14694 if (PyErr_Occurred()) SWIG_fail;
14695 }
14696 {
14697#if wxUSE_UNICODE
14698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14699#else
14700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14701#endif
14702 }
14703 return resultobj;
14704fail:
14705 return NULL;
14706}
14707
14708
14709SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14710 PyObject *resultobj = 0;
14711 wxFont *arg1 = (wxFont *) 0 ;
14712 int arg2 ;
14713 void *argp1 = 0 ;
14714 int res1 = 0 ;
14715 int val2 ;
14716 int ecode2 = 0 ;
14717 PyObject * obj0 = 0 ;
14718 PyObject * obj1 = 0 ;
14719 char * kwnames[] = {
14720 (char *) "self",(char *) "pointSize", NULL
14721 };
14722
14723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14725 if (!SWIG_IsOK(res1)) {
14726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14727 }
14728 arg1 = reinterpret_cast< wxFont * >(argp1);
14729 ecode2 = SWIG_AsVal_int(obj1, &val2);
14730 if (!SWIG_IsOK(ecode2)) {
14731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14732 }
14733 arg2 = static_cast< int >(val2);
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 (arg1)->SetPointSize(arg2);
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 resultobj = SWIG_Py_Void();
14741 return resultobj;
14742fail:
14743 return NULL;
14744}
14745
14746
14747SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14748 PyObject *resultobj = 0;
14749 wxFont *arg1 = (wxFont *) 0 ;
14750 wxSize *arg2 = 0 ;
14751 void *argp1 = 0 ;
14752 int res1 = 0 ;
14753 wxSize temp2 ;
14754 PyObject * obj0 = 0 ;
14755 PyObject * obj1 = 0 ;
14756 char * kwnames[] = {
14757 (char *) "self",(char *) "pixelSize", NULL
14758 };
14759
14760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14762 if (!SWIG_IsOK(res1)) {
14763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14764 }
14765 arg1 = reinterpret_cast< wxFont * >(argp1);
14766 {
14767 arg2 = &temp2;
14768 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14769 }
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 (arg1)->SetPixelSize((wxSize const &)*arg2);
14773 wxPyEndAllowThreads(__tstate);
14774 if (PyErr_Occurred()) SWIG_fail;
14775 }
14776 resultobj = SWIG_Py_Void();
14777 return resultobj;
14778fail:
14779 return NULL;
14780}
14781
14782
14783SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14784 PyObject *resultobj = 0;
14785 wxFont *arg1 = (wxFont *) 0 ;
14786 int arg2 ;
14787 void *argp1 = 0 ;
14788 int res1 = 0 ;
14789 int val2 ;
14790 int ecode2 = 0 ;
14791 PyObject * obj0 = 0 ;
14792 PyObject * obj1 = 0 ;
14793 char * kwnames[] = {
14794 (char *) "self",(char *) "family", NULL
14795 };
14796
14797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14799 if (!SWIG_IsOK(res1)) {
14800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14801 }
14802 arg1 = reinterpret_cast< wxFont * >(argp1);
14803 ecode2 = SWIG_AsVal_int(obj1, &val2);
14804 if (!SWIG_IsOK(ecode2)) {
14805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14806 }
14807 arg2 = static_cast< int >(val2);
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 (arg1)->SetFamily(arg2);
14811 wxPyEndAllowThreads(__tstate);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 resultobj = SWIG_Py_Void();
14815 return resultobj;
14816fail:
14817 return NULL;
14818}
14819
14820
14821SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14822 PyObject *resultobj = 0;
14823 wxFont *arg1 = (wxFont *) 0 ;
14824 int arg2 ;
14825 void *argp1 = 0 ;
14826 int res1 = 0 ;
14827 int val2 ;
14828 int ecode2 = 0 ;
14829 PyObject * obj0 = 0 ;
14830 PyObject * obj1 = 0 ;
14831 char * kwnames[] = {
14832 (char *) "self",(char *) "style", NULL
14833 };
14834
14835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14837 if (!SWIG_IsOK(res1)) {
14838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14839 }
14840 arg1 = reinterpret_cast< wxFont * >(argp1);
14841 ecode2 = SWIG_AsVal_int(obj1, &val2);
14842 if (!SWIG_IsOK(ecode2)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14844 }
14845 arg2 = static_cast< int >(val2);
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 (arg1)->SetStyle(arg2);
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = SWIG_Py_Void();
14853 return resultobj;
14854fail:
14855 return NULL;
14856}
14857
14858
14859SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj = 0;
14861 wxFont *arg1 = (wxFont *) 0 ;
14862 int arg2 ;
14863 void *argp1 = 0 ;
14864 int res1 = 0 ;
14865 int val2 ;
14866 int ecode2 = 0 ;
14867 PyObject * obj0 = 0 ;
14868 PyObject * obj1 = 0 ;
14869 char * kwnames[] = {
14870 (char *) "self",(char *) "weight", NULL
14871 };
14872
14873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14875 if (!SWIG_IsOK(res1)) {
14876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14877 }
14878 arg1 = reinterpret_cast< wxFont * >(argp1);
14879 ecode2 = SWIG_AsVal_int(obj1, &val2);
14880 if (!SWIG_IsOK(ecode2)) {
14881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14882 }
14883 arg2 = static_cast< int >(val2);
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 (arg1)->SetWeight(arg2);
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 resultobj = SWIG_Py_Void();
14891 return resultobj;
14892fail:
14893 return NULL;
14894}
14895
14896
14897SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14898 PyObject *resultobj = 0;
14899 wxFont *arg1 = (wxFont *) 0 ;
14900 wxString *arg2 = 0 ;
704eda0c 14901 bool result;
0085ce49
RD
14902 void *argp1 = 0 ;
14903 int res1 = 0 ;
14904 bool temp2 = false ;
14905 PyObject * obj0 = 0 ;
14906 PyObject * obj1 = 0 ;
14907 char * kwnames[] = {
14908 (char *) "self",(char *) "faceName", NULL
14909 };
14910
14911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14913 if (!SWIG_IsOK(res1)) {
14914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14915 }
14916 arg1 = reinterpret_cast< wxFont * >(argp1);
14917 {
14918 arg2 = wxString_in_helper(obj1);
14919 if (arg2 == NULL) SWIG_fail;
14920 temp2 = true;
14921 }
14922 {
14923 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14924 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14925 wxPyEndAllowThreads(__tstate);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 }
704eda0c
RD
14928 {
14929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14930 }
0085ce49
RD
14931 {
14932 if (temp2)
14933 delete arg2;
14934 }
14935 return resultobj;
14936fail:
14937 {
14938 if (temp2)
14939 delete arg2;
14940 }
14941 return NULL;
14942}
14943
14944
14945SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj = 0;
14947 wxFont *arg1 = (wxFont *) 0 ;
14948 bool arg2 ;
14949 void *argp1 = 0 ;
14950 int res1 = 0 ;
14951 bool val2 ;
14952 int ecode2 = 0 ;
14953 PyObject * obj0 = 0 ;
14954 PyObject * obj1 = 0 ;
14955 char * kwnames[] = {
14956 (char *) "self",(char *) "underlined", NULL
14957 };
14958
14959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14961 if (!SWIG_IsOK(res1)) {
14962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14963 }
14964 arg1 = reinterpret_cast< wxFont * >(argp1);
14965 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14966 if (!SWIG_IsOK(ecode2)) {
14967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14968 }
14969 arg2 = static_cast< bool >(val2);
14970 {
14971 PyThreadState* __tstate = wxPyBeginAllowThreads();
14972 (arg1)->SetUnderlined(arg2);
14973 wxPyEndAllowThreads(__tstate);
14974 if (PyErr_Occurred()) SWIG_fail;
14975 }
14976 resultobj = SWIG_Py_Void();
14977 return resultobj;
14978fail:
14979 return NULL;
14980}
14981
14982
14983SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj = 0;
14985 wxFont *arg1 = (wxFont *) 0 ;
14986 wxFontEncoding arg2 ;
14987 void *argp1 = 0 ;
14988 int res1 = 0 ;
14989 int val2 ;
14990 int ecode2 = 0 ;
14991 PyObject * obj0 = 0 ;
14992 PyObject * obj1 = 0 ;
14993 char * kwnames[] = {
14994 (char *) "self",(char *) "encoding", NULL
14995 };
14996
14997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14999 if (!SWIG_IsOK(res1)) {
15000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15001 }
15002 arg1 = reinterpret_cast< wxFont * >(argp1);
15003 ecode2 = SWIG_AsVal_int(obj1, &val2);
15004 if (!SWIG_IsOK(ecode2)) {
15005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15006 }
15007 arg2 = static_cast< wxFontEncoding >(val2);
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 (arg1)->SetEncoding(arg2);
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 resultobj = SWIG_Py_Void();
15015 return resultobj;
15016fail:
15017 return NULL;
15018}
15019
15020
15021SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj = 0;
15023 wxFont *arg1 = (wxFont *) 0 ;
15024 wxNativeFontInfo *arg2 = 0 ;
15025 void *argp1 = 0 ;
15026 int res1 = 0 ;
15027 void *argp2 = 0 ;
15028 int res2 = 0 ;
15029 PyObject * obj0 = 0 ;
15030 PyObject * obj1 = 0 ;
15031 char * kwnames[] = {
15032 (char *) "self",(char *) "info", NULL
15033 };
15034
15035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15037 if (!SWIG_IsOK(res1)) {
15038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15039 }
15040 arg1 = reinterpret_cast< wxFont * >(argp1);
15041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15042 if (!SWIG_IsOK(res2)) {
15043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15044 }
15045 if (!argp2) {
15046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15047 }
15048 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15052 wxPyEndAllowThreads(__tstate);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 }
15055 resultobj = SWIG_Py_Void();
15056 return resultobj;
15057fail:
15058 return NULL;
15059}
15060
15061
15062SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15063 PyObject *resultobj = 0;
15064 wxFont *arg1 = (wxFont *) 0 ;
15065 wxString *arg2 = 0 ;
704eda0c 15066 bool result;
0085ce49
RD
15067 void *argp1 = 0 ;
15068 int res1 = 0 ;
15069 bool temp2 = false ;
15070 PyObject * obj0 = 0 ;
15071 PyObject * obj1 = 0 ;
15072 char * kwnames[] = {
15073 (char *) "self",(char *) "info", NULL
15074 };
15075
15076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15078 if (!SWIG_IsOK(res1)) {
15079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15080 }
15081 arg1 = reinterpret_cast< wxFont * >(argp1);
15082 {
15083 arg2 = wxString_in_helper(obj1);
15084 if (arg2 == NULL) SWIG_fail;
15085 temp2 = true;
15086 }
15087 {
15088 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15089 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
15090 wxPyEndAllowThreads(__tstate);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
704eda0c
RD
15093 {
15094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15095 }
0085ce49
RD
15096 {
15097 if (temp2)
15098 delete arg2;
15099 }
15100 return resultobj;
15101fail:
15102 {
15103 if (temp2)
15104 delete arg2;
15105 }
15106 return NULL;
d14a1e28
RD
15107}
15108
15109
0085ce49
RD
15110SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15111 PyObject *resultobj = 0;
15112 wxFont *arg1 = (wxFont *) 0 ;
15113 wxString *arg2 = 0 ;
704eda0c 15114 bool result;
0085ce49
RD
15115 void *argp1 = 0 ;
15116 int res1 = 0 ;
15117 bool temp2 = false ;
15118 PyObject * obj0 = 0 ;
15119 PyObject * obj1 = 0 ;
15120 char * kwnames[] = {
15121 (char *) "self",(char *) "info", NULL
15122 };
15123
15124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15126 if (!SWIG_IsOK(res1)) {
15127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15128 }
15129 arg1 = reinterpret_cast< wxFont * >(argp1);
15130 {
15131 arg2 = wxString_in_helper(obj1);
15132 if (arg2 == NULL) SWIG_fail;
15133 temp2 = true;
15134 }
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15137 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
704eda0c
RD
15141 {
15142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15143 }
0085ce49
RD
15144 {
15145 if (temp2)
15146 delete arg2;
15147 }
15148 return resultobj;
15149fail:
15150 {
15151 if (temp2)
15152 delete arg2;
15153 }
15154 return NULL;
d14a1e28
RD
15155}
15156
15157
0085ce49
RD
15158SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15159 PyObject *resultobj = 0;
15160 wxFont *arg1 = (wxFont *) 0 ;
15161 wxString result;
15162 void *argp1 = 0 ;
15163 int res1 = 0 ;
15164 PyObject *swig_obj[1] ;
15165
15166 if (!args) SWIG_fail;
15167 swig_obj[0] = args;
15168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15169 if (!SWIG_IsOK(res1)) {
15170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15171 }
15172 arg1 = reinterpret_cast< wxFont * >(argp1);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = ((wxFont const *)arg1)->GetFamilyString();
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 {
15180#if wxUSE_UNICODE
15181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15182#else
15183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15184#endif
15185 }
15186 return resultobj;
15187fail:
15188 return NULL;
d14a1e28
RD
15189}
15190
15191
0085ce49
RD
15192SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15193 PyObject *resultobj = 0;
15194 wxFont *arg1 = (wxFont *) 0 ;
15195 wxString result;
15196 void *argp1 = 0 ;
15197 int res1 = 0 ;
15198 PyObject *swig_obj[1] ;
15199
15200 if (!args) SWIG_fail;
15201 swig_obj[0] = args;
15202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15203 if (!SWIG_IsOK(res1)) {
15204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15205 }
15206 arg1 = reinterpret_cast< wxFont * >(argp1);
15207 {
15208 PyThreadState* __tstate = wxPyBeginAllowThreads();
15209 result = ((wxFont const *)arg1)->GetStyleString();
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 {
15214#if wxUSE_UNICODE
15215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15216#else
15217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15218#endif
15219 }
15220 return resultobj;
15221fail:
15222 return NULL;
d14a1e28
RD
15223}
15224
15225
0085ce49
RD
15226SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15227 PyObject *resultobj = 0;
15228 wxFont *arg1 = (wxFont *) 0 ;
15229 wxString result;
15230 void *argp1 = 0 ;
15231 int res1 = 0 ;
15232 PyObject *swig_obj[1] ;
15233
15234 if (!args) SWIG_fail;
15235 swig_obj[0] = args;
15236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15237 if (!SWIG_IsOK(res1)) {
15238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15239 }
15240 arg1 = reinterpret_cast< wxFont * >(argp1);
15241 {
15242 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 result = ((wxFont const *)arg1)->GetWeightString();
15244 wxPyEndAllowThreads(__tstate);
15245 if (PyErr_Occurred()) SWIG_fail;
15246 }
15247 {
d14a1e28 15248#if wxUSE_UNICODE
0085ce49 15249 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15250#else
0085ce49 15251 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15252#endif
0085ce49
RD
15253 }
15254 return resultobj;
15255fail:
15256 return NULL;
15257}
15258
15259
15260SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15261 PyObject *resultobj = 0;
15262 wxFont *arg1 = (wxFont *) 0 ;
15263 bool arg2 = (bool) true ;
15264 void *argp1 = 0 ;
15265 int res1 = 0 ;
15266 bool val2 ;
15267 int ecode2 = 0 ;
15268 PyObject * obj0 = 0 ;
15269 PyObject * obj1 = 0 ;
15270 char * kwnames[] = {
15271 (char *) "self",(char *) "no", NULL
15272 };
15273
15274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15276 if (!SWIG_IsOK(res1)) {
15277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15278 }
15279 arg1 = reinterpret_cast< wxFont * >(argp1);
15280 if (obj1) {
15281 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15282 if (!SWIG_IsOK(ecode2)) {
15283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15284 }
15285 arg2 = static_cast< bool >(val2);
15286 }
15287 {
15288 PyThreadState* __tstate = wxPyBeginAllowThreads();
15289 (arg1)->SetNoAntiAliasing(arg2);
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = SWIG_Py_Void();
15294 return resultobj;
15295fail:
15296 return NULL;
d14a1e28
RD
15297}
15298
15299
0085ce49
RD
15300SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15301 PyObject *resultobj = 0;
15302 wxFont *arg1 = (wxFont *) 0 ;
15303 bool result;
15304 void *argp1 = 0 ;
15305 int res1 = 0 ;
15306 PyObject *swig_obj[1] ;
15307
15308 if (!args) SWIG_fail;
15309 swig_obj[0] = args;
15310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15311 if (!SWIG_IsOK(res1)) {
15312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15313 }
15314 arg1 = reinterpret_cast< wxFont * >(argp1);
15315 {
15316 PyThreadState* __tstate = wxPyBeginAllowThreads();
15317 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 {
15322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15323 }
15324 return resultobj;
15325fail:
15326 return NULL;
d14a1e28
RD
15327}
15328
15329
0085ce49
RD
15330SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331 PyObject *resultobj = 0;
15332 wxFontEncoding result;
15333
15334 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15335 {
15336 if (!wxPyCheckForApp()) SWIG_fail;
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 resultobj = SWIG_From_int(static_cast< int >(result));
15343 return resultobj;
15344fail:
15345 return NULL;
d14a1e28
RD
15346}
15347
15348
0085ce49
RD
15349SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15350 PyObject *resultobj = 0;
15351 wxFontEncoding arg1 ;
15352 int val1 ;
15353 int ecode1 = 0 ;
15354 PyObject * obj0 = 0 ;
15355 char * kwnames[] = {
15356 (char *) "encoding", NULL
15357 };
15358
15359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15360 ecode1 = SWIG_AsVal_int(obj0, &val1);
15361 if (!SWIG_IsOK(ecode1)) {
15362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15363 }
15364 arg1 = static_cast< wxFontEncoding >(val1);
15365 {
15366 if (!wxPyCheckForApp()) SWIG_fail;
15367 PyThreadState* __tstate = wxPyBeginAllowThreads();
15368 wxFont::SetDefaultEncoding(arg1);
15369 wxPyEndAllowThreads(__tstate);
15370 if (PyErr_Occurred()) SWIG_fail;
15371 }
15372 resultobj = SWIG_Py_Void();
15373 return resultobj;
15374fail:
15375 return NULL;
d14a1e28
RD
15376}
15377
15378
0085ce49
RD
15379SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15380 PyObject *obj;
15381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15382 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15383 return SWIG_Py_Void();
d14a1e28
RD
15384}
15385
0085ce49
RD
15386SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15387 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15388}
15389
0085ce49
RD
15390SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15391 PyObject *resultobj = 0;
15392 wxPyFontEnumerator *result = 0 ;
15393
15394 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15395 {
15396 if (!wxPyCheckForApp()) SWIG_fail;
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15399 wxPyEndAllowThreads(__tstate);
15400 if (PyErr_Occurred()) SWIG_fail;
15401 }
15402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15403 return resultobj;
15404fail:
15405 return NULL;
d14a1e28
RD
15406}
15407
15408
0085ce49
RD
15409SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15410 PyObject *resultobj = 0;
15411 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15412 void *argp1 = 0 ;
15413 int res1 = 0 ;
15414 PyObject *swig_obj[1] ;
15415
15416 if (!args) SWIG_fail;
15417 swig_obj[0] = args;
15418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15419 if (!SWIG_IsOK(res1)) {
15420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15421 }
15422 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
15425 delete arg1;
d14a1e28 15426
0085ce49
RD
15427 wxPyEndAllowThreads(__tstate);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
15430 resultobj = SWIG_Py_Void();
15431 return resultobj;
15432fail:
15433 return NULL;
15434}
15435
15436
15437SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj = 0;
15439 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15440 PyObject *arg2 = (PyObject *) 0 ;
15441 PyObject *arg3 = (PyObject *) 0 ;
15442 bool arg4 ;
15443 void *argp1 = 0 ;
15444 int res1 = 0 ;
15445 bool val4 ;
15446 int ecode4 = 0 ;
15447 PyObject * obj0 = 0 ;
15448 PyObject * obj1 = 0 ;
15449 PyObject * obj2 = 0 ;
15450 PyObject * obj3 = 0 ;
15451 char * kwnames[] = {
15452 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15453 };
15454
15455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15457 if (!SWIG_IsOK(res1)) {
15458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15459 }
15460 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15461 arg2 = obj1;
15462 arg3 = obj2;
15463 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15464 if (!SWIG_IsOK(ecode4)) {
15465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15466 }
15467 arg4 = static_cast< bool >(val4);
15468 {
15469 PyThreadState* __tstate = wxPyBeginAllowThreads();
15470 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 resultobj = SWIG_Py_Void();
15475 return resultobj;
15476fail:
15477 return NULL;
15478}
15479
15480
15481SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj = 0;
15483 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15484 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15485 bool arg3 = (bool) false ;
15486 bool result;
15487 void *argp1 = 0 ;
15488 int res1 = 0 ;
15489 int val2 ;
15490 int ecode2 = 0 ;
15491 bool val3 ;
15492 int ecode3 = 0 ;
15493 PyObject * obj0 = 0 ;
15494 PyObject * obj1 = 0 ;
15495 PyObject * obj2 = 0 ;
15496 char * kwnames[] = {
15497 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15498 };
15499
15500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15502 if (!SWIG_IsOK(res1)) {
15503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15504 }
15505 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15506 if (obj1) {
15507 ecode2 = SWIG_AsVal_int(obj1, &val2);
15508 if (!SWIG_IsOK(ecode2)) {
15509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15510 }
15511 arg2 = static_cast< wxFontEncoding >(val2);
15512 }
15513 if (obj2) {
15514 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15515 if (!SWIG_IsOK(ecode3)) {
15516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15517 }
15518 arg3 = static_cast< bool >(val3);
15519 }
15520 {
15521 PyThreadState* __tstate = wxPyBeginAllowThreads();
15522 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15523 wxPyEndAllowThreads(__tstate);
15524 if (PyErr_Occurred()) SWIG_fail;
15525 }
15526 {
15527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15528 }
15529 return resultobj;
15530fail:
15531 return NULL;
15532}
15533
15534
15535SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15536 PyObject *resultobj = 0;
15537 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15538 wxString const &arg2_defvalue = wxPyEmptyString ;
15539 wxString *arg2 = (wxString *) &arg2_defvalue ;
15540 bool result;
15541 void *argp1 = 0 ;
15542 int res1 = 0 ;
15543 bool temp2 = false ;
15544 PyObject * obj0 = 0 ;
15545 PyObject * obj1 = 0 ;
15546 char * kwnames[] = {
15547 (char *) "self",(char *) "facename", NULL
15548 };
15549
15550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15552 if (!SWIG_IsOK(res1)) {
15553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15554 }
15555 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15556 if (obj1) {
d14a1e28 15557 {
0085ce49
RD
15558 arg2 = wxString_in_helper(obj1);
15559 if (arg2 == NULL) SWIG_fail;
15560 temp2 = true;
d14a1e28 15561 }
0085ce49
RD
15562 }
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 {
15570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15571 }
15572 {
15573 if (temp2)
15574 delete arg2;
15575 }
15576 return resultobj;
15577fail:
15578 {
15579 if (temp2)
15580 delete arg2;
15581 }
15582 return NULL;
d14a1e28
RD
15583}
15584
15585
0085ce49
RD
15586SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15587 PyObject *resultobj = 0;
0085ce49 15588 PyObject *result = 0 ;
0085ce49 15589
704eda0c 15590 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15591 {
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15593 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = result;
15598 return resultobj;
15599fail:
15600 return NULL;
d14a1e28
RD
15601}
15602
15603
0085ce49
RD
15604SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15605 PyObject *resultobj = 0;
0085ce49 15606 PyObject *result = 0 ;
0085ce49 15607
704eda0c 15608 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15611 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = result;
15616 return resultobj;
15617fail:
15618 return NULL;
d14a1e28
RD
15619}
15620
15621
704eda0c
RD
15622SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15623 PyObject *resultobj = 0;
15624 wxString *arg1 = 0 ;
15625 bool result;
15626 bool temp1 = false ;
15627 PyObject * obj0 = 0 ;
15628 char * kwnames[] = {
15629 (char *) "str", NULL
15630 };
15631
15632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15633 {
15634 arg1 = wxString_in_helper(obj0);
15635 if (arg1 == NULL) SWIG_fail;
15636 temp1 = true;
15637 }
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 {
15645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15646 }
15647 {
15648 if (temp1)
15649 delete arg1;
15650 }
15651 return resultobj;
15652fail:
15653 {
15654 if (temp1)
15655 delete arg1;
15656 }
15657 return NULL;
15658}
15659
15660
0085ce49
RD
15661SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15662 PyObject *obj;
15663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15664 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15665 return SWIG_Py_Void();
d14a1e28
RD
15666}
15667
0085ce49
RD
15668SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15669 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15670}
15671
0085ce49
RD
15672SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15673 PyObject *resultobj = 0;
15674 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15675 int arg2 ;
15676 void *argp1 = 0 ;
15677 int res1 = 0 ;
15678 int val2 ;
15679 int ecode2 = 0 ;
15680 PyObject *swig_obj[2] ;
15681
15682 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15684 if (!SWIG_IsOK(res1)) {
15685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15686 }
15687 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15688 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15689 if (!SWIG_IsOK(ecode2)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15691 }
15692 arg2 = static_cast< int >(val2);
15693 if (arg1) (arg1)->Language = arg2;
15694
15695 resultobj = SWIG_Py_Void();
15696 return resultobj;
15697fail:
15698 return NULL;
d14a1e28
RD
15699}
15700
15701
0085ce49
RD
15702SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15703 PyObject *resultobj = 0;
15704 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15705 int result;
15706 void *argp1 = 0 ;
15707 int res1 = 0 ;
15708 PyObject *swig_obj[1] ;
15709
15710 if (!args) SWIG_fail;
15711 swig_obj[0] = args;
15712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15713 if (!SWIG_IsOK(res1)) {
15714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15715 }
15716 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15717 result = (int) ((arg1)->Language);
15718 resultobj = SWIG_From_int(static_cast< int >(result));
15719 return resultobj;
15720fail:
15721 return NULL;
15722}
15723
15724
15725SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15726 PyObject *resultobj = 0;
15727 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15728 wxString *arg2 = (wxString *) 0 ;
15729 void *argp1 = 0 ;
15730 int res1 = 0 ;
15731 bool temp2 = false ;
15732 PyObject *swig_obj[2] ;
15733
15734 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15736 if (!SWIG_IsOK(res1)) {
15737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15738 }
15739 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15740 {
15741 arg2 = wxString_in_helper(swig_obj[1]);
15742 if (arg2 == NULL) SWIG_fail;
15743 temp2 = true;
15744 }
15745 if (arg1) (arg1)->CanonicalName = *arg2;
15746
15747 resultobj = SWIG_Py_Void();
15748 {
15749 if (temp2)
15750 delete arg2;
15751 }
15752 return resultobj;
15753fail:
15754 {
15755 if (temp2)
15756 delete arg2;
15757 }
15758 return NULL;
d14a1e28
RD
15759}
15760
15761
0085ce49
RD
15762SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15763 PyObject *resultobj = 0;
15764 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15765 wxString *result = 0 ;
15766 void *argp1 = 0 ;
15767 int res1 = 0 ;
15768 PyObject *swig_obj[1] ;
15769
15770 if (!args) SWIG_fail;
15771 swig_obj[0] = args;
15772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15773 if (!SWIG_IsOK(res1)) {
15774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15775 }
15776 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15777 result = (wxString *)& ((arg1)->CanonicalName);
15778 {
093d3ff1 15779#if wxUSE_UNICODE
0085ce49 15780 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15781#else
0085ce49 15782 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15783#endif
0085ce49
RD
15784 }
15785 return resultobj;
15786fail:
15787 return NULL;
d14a1e28
RD
15788}
15789
15790
0085ce49
RD
15791SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15792 PyObject *resultobj = 0;
15793 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15794 wxString *arg2 = (wxString *) 0 ;
15795 void *argp1 = 0 ;
15796 int res1 = 0 ;
15797 bool temp2 = false ;
15798 PyObject *swig_obj[2] ;
15799
15800 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15802 if (!SWIG_IsOK(res1)) {
15803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15804 }
15805 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15806 {
15807 arg2 = wxString_in_helper(swig_obj[1]);
15808 if (arg2 == NULL) SWIG_fail;
15809 temp2 = true;
15810 }
15811 if (arg1) (arg1)->Description = *arg2;
15812
15813 resultobj = SWIG_Py_Void();
15814 {
15815 if (temp2)
15816 delete arg2;
15817 }
15818 return resultobj;
15819fail:
15820 {
15821 if (temp2)
15822 delete arg2;
15823 }
15824 return NULL;
d14a1e28
RD
15825}
15826
15827
0085ce49
RD
15828SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15829 PyObject *resultobj = 0;
15830 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15831 wxString *result = 0 ;
15832 void *argp1 = 0 ;
15833 int res1 = 0 ;
15834 PyObject *swig_obj[1] ;
15835
15836 if (!args) SWIG_fail;
15837 swig_obj[0] = args;
15838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15839 if (!SWIG_IsOK(res1)) {
15840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15841 }
15842 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15843 result = (wxString *)& ((arg1)->Description);
15844 {
d14a1e28 15845#if wxUSE_UNICODE
0085ce49 15846 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15847#else
0085ce49 15848 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15849#endif
0085ce49
RD
15850 }
15851 return resultobj;
15852fail:
15853 return NULL;
15854}
15855
15856
15857SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15858 PyObject *obj;
15859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15860 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15861 return SWIG_Py_Void();
15862}
15863
15864SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15865 PyObject *resultobj = 0;
15866 int arg1 = (int) -1 ;
15867 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15868 wxLocale *result = 0 ;
15869 int val1 ;
15870 int ecode1 = 0 ;
15871 int val2 ;
15872 int ecode2 = 0 ;
15873 PyObject * obj0 = 0 ;
15874 PyObject * obj1 = 0 ;
15875 char * kwnames[] = {
15876 (char *) "language",(char *) "flags", NULL
15877 };
15878
15879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15880 if (obj0) {
15881 ecode1 = SWIG_AsVal_int(obj0, &val1);
15882 if (!SWIG_IsOK(ecode1)) {
15883 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15884 }
15885 arg1 = static_cast< int >(val1);
15886 }
15887 if (obj1) {
15888 ecode2 = SWIG_AsVal_int(obj1, &val2);
15889 if (!SWIG_IsOK(ecode2)) {
15890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15891 }
15892 arg2 = static_cast< int >(val2);
15893 }
15894 {
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 result = (wxLocale *)new_wxLocale(arg1,arg2);
15897 wxPyEndAllowThreads(__tstate);
15898 if (PyErr_Occurred()) SWIG_fail;
15899 }
15900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15901 return resultobj;
15902fail:
15903 return NULL;
d14a1e28
RD
15904}
15905
15906
0085ce49
RD
15907SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15908 PyObject *resultobj = 0;
15909 wxLocale *arg1 = (wxLocale *) 0 ;
15910 void *argp1 = 0 ;
15911 int res1 = 0 ;
15912 PyObject *swig_obj[1] ;
15913
15914 if (!args) SWIG_fail;
15915 swig_obj[0] = args;
15916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15917 if (!SWIG_IsOK(res1)) {
15918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15919 }
15920 arg1 = reinterpret_cast< wxLocale * >(argp1);
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 delete arg1;
d14a1e28 15924
0085ce49
RD
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 resultobj = SWIG_Py_Void();
15929 return resultobj;
15930fail:
15931 return NULL;
15932}
15933
15934
15935SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15936 PyObject *resultobj = 0;
15937 wxLocale *arg1 = (wxLocale *) 0 ;
15938 wxString *arg2 = 0 ;
15939 wxString const &arg3_defvalue = wxPyEmptyString ;
15940 wxString *arg3 = (wxString *) &arg3_defvalue ;
15941 wxString const &arg4_defvalue = wxPyEmptyString ;
15942 wxString *arg4 = (wxString *) &arg4_defvalue ;
15943 bool arg5 = (bool) true ;
15944 bool arg6 = (bool) false ;
15945 bool result;
15946 void *argp1 = 0 ;
15947 int res1 = 0 ;
15948 bool temp2 = false ;
15949 bool temp3 = false ;
15950 bool temp4 = false ;
15951 bool val5 ;
15952 int ecode5 = 0 ;
15953 bool val6 ;
15954 int ecode6 = 0 ;
15955 PyObject * obj0 = 0 ;
15956 PyObject * obj1 = 0 ;
15957 PyObject * obj2 = 0 ;
15958 PyObject * obj3 = 0 ;
15959 PyObject * obj4 = 0 ;
15960 PyObject * obj5 = 0 ;
15961 char * kwnames[] = {
15962 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15963 };
15964
15965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15967 if (!SWIG_IsOK(res1)) {
15968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15969 }
15970 arg1 = reinterpret_cast< wxLocale * >(argp1);
15971 {
15972 arg2 = wxString_in_helper(obj1);
15973 if (arg2 == NULL) SWIG_fail;
15974 temp2 = true;
15975 }
15976 if (obj2) {
d14a1e28 15977 {
0085ce49
RD
15978 arg3 = wxString_in_helper(obj2);
15979 if (arg3 == NULL) SWIG_fail;
15980 temp3 = true;
d14a1e28 15981 }
0085ce49
RD
15982 }
15983 if (obj3) {
093d3ff1 15984 {
0085ce49
RD
15985 arg4 = wxString_in_helper(obj3);
15986 if (arg4 == NULL) SWIG_fail;
15987 temp4 = true;
093d3ff1 15988 }
0085ce49
RD
15989 }
15990 if (obj4) {
15991 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15992 if (!SWIG_IsOK(ecode5)) {
15993 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15994 }
15995 arg5 = static_cast< bool >(val5);
15996 }
15997 if (obj5) {
15998 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15999 if (!SWIG_IsOK(ecode6)) {
16000 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16001 }
16002 arg6 = static_cast< bool >(val6);
16003 }
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16007 wxPyEndAllowThreads(__tstate);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 {
16011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16012 }
16013 {
16014 if (temp2)
16015 delete arg2;
16016 }
16017 {
16018 if (temp3)
16019 delete arg3;
16020 }
16021 {
16022 if (temp4)
16023 delete arg4;
16024 }
16025 return resultobj;
16026fail:
16027 {
16028 if (temp2)
16029 delete arg2;
16030 }
16031 {
16032 if (temp3)
16033 delete arg3;
16034 }
16035 {
16036 if (temp4)
16037 delete arg4;
16038 }
16039 return NULL;
16040}
16041
16042
16043SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj = 0;
16045 wxLocale *arg1 = (wxLocale *) 0 ;
16046 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16047 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16048 bool result;
16049 void *argp1 = 0 ;
16050 int res1 = 0 ;
16051 int val2 ;
16052 int ecode2 = 0 ;
16053 int val3 ;
16054 int ecode3 = 0 ;
16055 PyObject * obj0 = 0 ;
16056 PyObject * obj1 = 0 ;
16057 PyObject * obj2 = 0 ;
16058 char * kwnames[] = {
16059 (char *) "self",(char *) "language",(char *) "flags", NULL
16060 };
16061
16062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16064 if (!SWIG_IsOK(res1)) {
16065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16066 }
16067 arg1 = reinterpret_cast< wxLocale * >(argp1);
16068 if (obj1) {
16069 ecode2 = SWIG_AsVal_int(obj1, &val2);
16070 if (!SWIG_IsOK(ecode2)) {
16071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16072 }
16073 arg2 = static_cast< int >(val2);
16074 }
16075 if (obj2) {
16076 ecode3 = SWIG_AsVal_int(obj2, &val3);
16077 if (!SWIG_IsOK(ecode3)) {
16078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16079 }
16080 arg3 = static_cast< int >(val3);
16081 }
16082 {
16083 PyThreadState* __tstate = wxPyBeginAllowThreads();
16084 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16085 wxPyEndAllowThreads(__tstate);
16086 if (PyErr_Occurred()) SWIG_fail;
16087 }
16088 {
16089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16090 }
16091 return resultobj;
16092fail:
16093 return NULL;
093d3ff1
RD
16094}
16095
16096
0085ce49
RD
16097SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16098 PyObject *resultobj = 0;
16099 int result;
16100
16101 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16102 {
16103 PyThreadState* __tstate = wxPyBeginAllowThreads();
16104 result = (int)wxLocale::GetSystemLanguage();
16105 wxPyEndAllowThreads(__tstate);
16106 if (PyErr_Occurred()) SWIG_fail;
16107 }
16108 resultobj = SWIG_From_int(static_cast< int >(result));
16109 return resultobj;
16110fail:
16111 return NULL;
d14a1e28
RD
16112}
16113
16114
0085ce49
RD
16115SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16116 PyObject *resultobj = 0;
16117 wxFontEncoding result;
16118
16119 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16123 wxPyEndAllowThreads(__tstate);
16124 if (PyErr_Occurred()) SWIG_fail;
16125 }
16126 resultobj = SWIG_From_int(static_cast< int >(result));
16127 return resultobj;
16128fail:
16129 return NULL;
d14a1e28
RD
16130}
16131
16132
0085ce49
RD
16133SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16134 PyObject *resultobj = 0;
16135 wxString result;
16136
16137 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16138 {
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 result = wxLocale::GetSystemEncodingName();
16141 wxPyEndAllowThreads(__tstate);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 {
d14a1e28 16145#if wxUSE_UNICODE
0085ce49 16146 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 16147#else
0085ce49 16148 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 16149#endif
0085ce49
RD
16150 }
16151 return resultobj;
16152fail:
16153 return NULL;
d14a1e28
RD
16154}
16155
16156
0085ce49
RD
16157SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16158 PyObject *resultobj = 0;
16159 wxLocale *arg1 = (wxLocale *) 0 ;
16160 bool result;
16161 void *argp1 = 0 ;
16162 int res1 = 0 ;
16163 PyObject *swig_obj[1] ;
16164
16165 if (!args) SWIG_fail;
16166 swig_obj[0] = args;
16167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16168 if (!SWIG_IsOK(res1)) {
16169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16170 }
16171 arg1 = reinterpret_cast< wxLocale * >(argp1);
16172 {
16173 PyThreadState* __tstate = wxPyBeginAllowThreads();
16174 result = (bool)((wxLocale const *)arg1)->IsOk();
16175 wxPyEndAllowThreads(__tstate);
16176 if (PyErr_Occurred()) SWIG_fail;
16177 }
16178 {
16179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16180 }
16181 return resultobj;
16182fail:
16183 return NULL;
093d3ff1 16184}
0085ce49
RD
16185
16186
16187SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16188 PyObject *resultobj = 0;
16189 wxLocale *arg1 = (wxLocale *) 0 ;
16190 wxString result;
16191 void *argp1 = 0 ;
16192 int res1 = 0 ;
16193 PyObject *swig_obj[1] ;
16194
16195 if (!args) SWIG_fail;
16196 swig_obj[0] = args;
16197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16198 if (!SWIG_IsOK(res1)) {
16199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16200 }
16201 arg1 = reinterpret_cast< wxLocale * >(argp1);
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 result = ((wxLocale const *)arg1)->GetLocale();
16205 wxPyEndAllowThreads(__tstate);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 }
16208 {
16209#if wxUSE_UNICODE
16210 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16211#else
16212 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16213#endif
16214 }
16215 return resultobj;
16216fail:
16217 return NULL;
d14a1e28
RD
16218}
16219
16220
0085ce49
RD
16221SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16222 PyObject *resultobj = 0;
16223 wxLocale *arg1 = (wxLocale *) 0 ;
16224 int result;
16225 void *argp1 = 0 ;
16226 int res1 = 0 ;
16227 PyObject *swig_obj[1] ;
16228
16229 if (!args) SWIG_fail;
16230 swig_obj[0] = args;
16231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16232 if (!SWIG_IsOK(res1)) {
16233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16234 }
16235 arg1 = reinterpret_cast< wxLocale * >(argp1);
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 result = (int)((wxLocale const *)arg1)->GetLanguage();
16239 wxPyEndAllowThreads(__tstate);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 }
16242 resultobj = SWIG_From_int(static_cast< int >(result));
16243 return resultobj;
16244fail:
16245 return NULL;
d14a1e28
RD
16246}
16247
16248
0085ce49
RD
16249SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16250 PyObject *resultobj = 0;
16251 wxLocale *arg1 = (wxLocale *) 0 ;
16252 wxString result;
16253 void *argp1 = 0 ;
16254 int res1 = 0 ;
16255 PyObject *swig_obj[1] ;
16256
16257 if (!args) SWIG_fail;
16258 swig_obj[0] = args;
16259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16260 if (!SWIG_IsOK(res1)) {
16261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16262 }
16263 arg1 = reinterpret_cast< wxLocale * >(argp1);
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 result = ((wxLocale const *)arg1)->GetSysName();
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 {
16271#if wxUSE_UNICODE
16272 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16273#else
16274 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16275#endif
16276 }
16277 return resultobj;
16278fail:
16279 return NULL;
d14a1e28
RD
16280}
16281
16282
0085ce49
RD
16283SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16284 PyObject *resultobj = 0;
16285 wxLocale *arg1 = (wxLocale *) 0 ;
16286 wxString result;
16287 void *argp1 = 0 ;
16288 int res1 = 0 ;
16289 PyObject *swig_obj[1] ;
16290
16291 if (!args) SWIG_fail;
16292 swig_obj[0] = args;
16293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16296 }
16297 arg1 = reinterpret_cast< wxLocale * >(argp1);
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 result = ((wxLocale const *)arg1)->GetCanonicalName();
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305#if wxUSE_UNICODE
16306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16307#else
16308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16309#endif
16310 }
16311 return resultobj;
16312fail:
16313 return NULL;
d14a1e28
RD
16314}
16315
16316
0085ce49
RD
16317SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16318 PyObject *resultobj = 0;
16319 wxString *arg1 = 0 ;
16320 bool temp1 = false ;
16321 PyObject * obj0 = 0 ;
16322 char * kwnames[] = {
16323 (char *) "prefix", NULL
16324 };
16325
16326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16327 {
16328 arg1 = wxString_in_helper(obj0);
16329 if (arg1 == NULL) SWIG_fail;
16330 temp1 = true;
16331 }
16332 {
16333 PyThreadState* __tstate = wxPyBeginAllowThreads();
16334 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16335 wxPyEndAllowThreads(__tstate);
16336 if (PyErr_Occurred()) SWIG_fail;
16337 }
16338 resultobj = SWIG_Py_Void();
16339 {
16340 if (temp1)
16341 delete arg1;
16342 }
16343 return resultobj;
16344fail:
16345 {
16346 if (temp1)
16347 delete arg1;
16348 }
16349 return NULL;
16350}
16351
16352
16353SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj = 0;
16355 wxLocale *arg1 = (wxLocale *) 0 ;
16356 wxString *arg2 = 0 ;
16357 bool result;
16358 void *argp1 = 0 ;
16359 int res1 = 0 ;
16360 bool temp2 = false ;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 char * kwnames[] = {
16364 (char *) "self",(char *) "szDomain", NULL
16365 };
16366
16367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16369 if (!SWIG_IsOK(res1)) {
16370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16371 }
16372 arg1 = reinterpret_cast< wxLocale * >(argp1);
16373 {
16374 arg2 = wxString_in_helper(obj1);
16375 if (arg2 == NULL) SWIG_fail;
16376 temp2 = true;
16377 }
16378 {
16379 PyThreadState* __tstate = wxPyBeginAllowThreads();
16380 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16381 wxPyEndAllowThreads(__tstate);
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 {
16385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16386 }
16387 {
16388 if (temp2)
16389 delete arg2;
16390 }
16391 return resultobj;
16392fail:
16393 {
16394 if (temp2)
16395 delete arg2;
16396 }
16397 return NULL;
16398}
16399
16400
33d6fd3b
RD
16401SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj = 0;
16403 int arg1 ;
16404 bool result;
16405 int val1 ;
16406 int ecode1 = 0 ;
16407 PyObject * obj0 = 0 ;
16408 char * kwnames[] = {
16409 (char *) "lang", NULL
16410 };
16411
16412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16413 ecode1 = SWIG_AsVal_int(obj0, &val1);
16414 if (!SWIG_IsOK(ecode1)) {
16415 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16416 }
16417 arg1 = static_cast< int >(val1);
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
16420 result = (bool)wxLocale::IsAvailable(arg1);
16421 wxPyEndAllowThreads(__tstate);
16422 if (PyErr_Occurred()) SWIG_fail;
16423 }
16424 {
16425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16426 }
16427 return resultobj;
16428fail:
16429 return NULL;
16430}
16431
16432
0085ce49
RD
16433SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16434 PyObject *resultobj = 0;
16435 wxLocale *arg1 = (wxLocale *) 0 ;
16436 wxString *arg2 = 0 ;
16437 bool result;
16438 void *argp1 = 0 ;
16439 int res1 = 0 ;
16440 bool temp2 = false ;
16441 PyObject * obj0 = 0 ;
16442 PyObject * obj1 = 0 ;
16443 char * kwnames[] = {
16444 (char *) "self",(char *) "szDomain", NULL
16445 };
16446
16447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16449 if (!SWIG_IsOK(res1)) {
16450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16451 }
16452 arg1 = reinterpret_cast< wxLocale * >(argp1);
16453 {
16454 arg2 = wxString_in_helper(obj1);
16455 if (arg2 == NULL) SWIG_fail;
16456 temp2 = true;
16457 }
16458 {
16459 PyThreadState* __tstate = wxPyBeginAllowThreads();
16460 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 {
16465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16466 }
16467 {
16468 if (temp2)
16469 delete arg2;
16470 }
16471 return resultobj;
16472fail:
16473 {
16474 if (temp2)
16475 delete arg2;
16476 }
16477 return NULL;
d14a1e28
RD
16478}
16479
16480
0085ce49
RD
16481SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj = 0;
16483 int arg1 ;
16484 wxLanguageInfo *result = 0 ;
16485 int val1 ;
16486 int ecode1 = 0 ;
16487 PyObject * obj0 = 0 ;
16488 char * kwnames[] = {
16489 (char *) "lang", NULL
16490 };
16491
16492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16493 ecode1 = SWIG_AsVal_int(obj0, &val1);
16494 if (!SWIG_IsOK(ecode1)) {
16495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16496 }
16497 arg1 = static_cast< int >(val1);
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
16500 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16501 wxPyEndAllowThreads(__tstate);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 }
16504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16505 return resultobj;
16506fail:
16507 return NULL;
16508}
16509
16510
16511SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj = 0;
16513 int arg1 ;
16514 wxString result;
16515 int val1 ;
16516 int ecode1 = 0 ;
16517 PyObject * obj0 = 0 ;
16518 char * kwnames[] = {
16519 (char *) "lang", NULL
16520 };
16521
16522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16523 ecode1 = SWIG_AsVal_int(obj0, &val1);
16524 if (!SWIG_IsOK(ecode1)) {
16525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16526 }
16527 arg1 = static_cast< int >(val1);
16528 {
16529 PyThreadState* __tstate = wxPyBeginAllowThreads();
16530 result = wxLocale::GetLanguageName(arg1);
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 {
16535#if wxUSE_UNICODE
16536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16537#else
16538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16539#endif
16540 }
16541 return resultobj;
16542fail:
16543 return NULL;
d14a1e28
RD
16544}
16545
16546
0085ce49
RD
16547SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16548 PyObject *resultobj = 0;
16549 wxString *arg1 = 0 ;
16550 wxLanguageInfo *result = 0 ;
16551 bool temp1 = false ;
16552 PyObject * obj0 = 0 ;
16553 char * kwnames[] = {
16554 (char *) "locale", NULL
16555 };
16556
16557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16558 {
16559 arg1 = wxString_in_helper(obj0);
16560 if (arg1 == NULL) SWIG_fail;
16561 temp1 = true;
16562 }
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16565 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16570 {
16571 if (temp1)
16572 delete arg1;
16573 }
16574 return resultobj;
16575fail:
16576 {
16577 if (temp1)
16578 delete arg1;
16579 }
16580 return NULL;
16581}
16582
16583
16584SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16585 PyObject *resultobj = 0;
16586 wxLanguageInfo *arg1 = 0 ;
16587 void *argp1 = 0 ;
16588 int res1 = 0 ;
16589 PyObject * obj0 = 0 ;
16590 char * kwnames[] = {
16591 (char *) "info", NULL
16592 };
16593
16594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16595 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16596 if (!SWIG_IsOK(res1)) {
16597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16598 }
16599 if (!argp1) {
16600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16601 }
16602 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16603 {
16604 PyThreadState* __tstate = wxPyBeginAllowThreads();
16605 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16606 wxPyEndAllowThreads(__tstate);
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 resultobj = SWIG_Py_Void();
16610 return resultobj;
16611fail:
16612 return NULL;
16613}
16614
16615
16616SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16617 PyObject *resultobj = 0;
16618 wxLocale *arg1 = (wxLocale *) 0 ;
16619 wxString *arg2 = 0 ;
16620 wxString const &arg3_defvalue = wxPyEmptyString ;
16621 wxString *arg3 = (wxString *) &arg3_defvalue ;
16622 wxString result;
16623 void *argp1 = 0 ;
16624 int res1 = 0 ;
16625 bool temp2 = false ;
16626 bool temp3 = false ;
16627 PyObject * obj0 = 0 ;
16628 PyObject * obj1 = 0 ;
16629 PyObject * obj2 = 0 ;
16630 char * kwnames[] = {
16631 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16632 };
16633
16634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16636 if (!SWIG_IsOK(res1)) {
16637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16638 }
16639 arg1 = reinterpret_cast< wxLocale * >(argp1);
16640 {
16641 arg2 = wxString_in_helper(obj1);
16642 if (arg2 == NULL) SWIG_fail;
16643 temp2 = true;
16644 }
16645 if (obj2) {
16646 {
16647 arg3 = wxString_in_helper(obj2);
16648 if (arg3 == NULL) SWIG_fail;
16649 temp3 = true;
16650 }
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16655 wxPyEndAllowThreads(__tstate);
16656 if (PyErr_Occurred()) SWIG_fail;
16657 }
16658 {
16659#if wxUSE_UNICODE
16660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16661#else
16662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16663#endif
16664 }
16665 {
16666 if (temp2)
16667 delete arg2;
16668 }
16669 {
16670 if (temp3)
16671 delete arg3;
16672 }
16673 return resultobj;
16674fail:
16675 {
16676 if (temp2)
16677 delete arg2;
16678 }
16679 {
16680 if (temp3)
16681 delete arg3;
16682 }
16683 return NULL;
16684}
16685
16686
16687SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16688 PyObject *resultobj = 0;
16689 wxLocale *arg1 = (wxLocale *) 0 ;
16690 wxString *result = 0 ;
16691 void *argp1 = 0 ;
16692 int res1 = 0 ;
16693 PyObject *swig_obj[1] ;
16694
16695 if (!args) SWIG_fail;
16696 swig_obj[0] = args;
16697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16698 if (!SWIG_IsOK(res1)) {
16699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16700 }
16701 arg1 = reinterpret_cast< wxLocale * >(argp1);
16702 {
16703 PyThreadState* __tstate = wxPyBeginAllowThreads();
16704 {
16705 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16706 result = (wxString *) &_result_ref;
16707 }
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 {
16712#if wxUSE_UNICODE
16713 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16714#else
16715 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16716#endif
16717 }
16718 return resultobj;
16719fail:
16720 return NULL;
16721}
16722
16723
16724SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16725 PyObject *obj;
16726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16727 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16728 return SWIG_Py_Void();
16729}
16730
16731SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16732 return SWIG_Python_InitShadowInstance(args);
16733}
16734
16735SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16736 PyObject *resultobj = 0;
16737 int arg1 = (int) -1 ;
16738 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16739 wxPyLocale *result = 0 ;
16740 int val1 ;
16741 int ecode1 = 0 ;
16742 int val2 ;
16743 int ecode2 = 0 ;
16744 PyObject * obj0 = 0 ;
16745 PyObject * obj1 = 0 ;
16746 char * kwnames[] = {
16747 (char *) "language",(char *) "flags", NULL
16748 };
16749
16750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16751 if (obj0) {
16752 ecode1 = SWIG_AsVal_int(obj0, &val1);
16753 if (!SWIG_IsOK(ecode1)) {
16754 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16755 }
16756 arg1 = static_cast< int >(val1);
16757 }
16758 if (obj1) {
16759 ecode2 = SWIG_AsVal_int(obj1, &val2);
16760 if (!SWIG_IsOK(ecode2)) {
16761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16762 }
16763 arg2 = static_cast< int >(val2);
16764 }
16765 {
16766 PyThreadState* __tstate = wxPyBeginAllowThreads();
16767 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16768 wxPyEndAllowThreads(__tstate);
16769 if (PyErr_Occurred()) SWIG_fail;
16770 }
16771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16772 return resultobj;
16773fail:
16774 return NULL;
16775}
16776
16777
16778SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16779 PyObject *resultobj = 0;
16780 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16781 void *argp1 = 0 ;
16782 int res1 = 0 ;
16783 PyObject *swig_obj[1] ;
16784
16785 if (!args) SWIG_fail;
16786 swig_obj[0] = args;
16787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16788 if (!SWIG_IsOK(res1)) {
16789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16790 }
16791 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16792 {
16793 PyThreadState* __tstate = wxPyBeginAllowThreads();
16794 delete arg1;
16795
0085ce49
RD
16796 wxPyEndAllowThreads(__tstate);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 }
fc46b7f3 16799 resultobj = SWIG_Py_Void();
0085ce49
RD
16800 return resultobj;
16801fail:
0085ce49 16802 return NULL;
d14a1e28
RD
16803}
16804
16805
fc46b7f3 16806SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16807 PyObject *resultobj = 0;
fc46b7f3
RD
16808 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16809 PyObject *arg2 = (PyObject *) 0 ;
16810 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16811 void *argp1 = 0 ;
16812 int res1 = 0 ;
16813 PyObject * obj0 = 0 ;
fc46b7f3
RD
16814 PyObject * obj1 = 0 ;
16815 PyObject * obj2 = 0 ;
0085ce49 16816 char * kwnames[] = {
fc46b7f3 16817 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16818 };
16819
fc46b7f3
RD
16820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16822 if (!SWIG_IsOK(res1)) {
fc46b7f3 16823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16824 }
fc46b7f3
RD
16825 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16826 arg2 = obj1;
16827 arg3 = obj2;
0085ce49
RD
16828 {
16829 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16830 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16831 wxPyEndAllowThreads(__tstate);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 resultobj = SWIG_Py_Void();
16835 return resultobj;
16836fail:
16837 return NULL;
16838}
16839
16840
fc46b7f3 16841SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16842 PyObject *resultobj = 0;
fc46b7f3
RD
16843 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16844 wxChar *arg2 = (wxChar *) 0 ;
16845 wxChar *arg3 = (wxChar *) NULL ;
16846 wxChar *result = 0 ;
0085ce49
RD
16847 void *argp1 = 0 ;
16848 int res1 = 0 ;
fc46b7f3
RD
16849 void *argp2 = 0 ;
16850 int res2 = 0 ;
16851 void *argp3 = 0 ;
16852 int res3 = 0 ;
0085ce49
RD
16853 PyObject * obj0 = 0 ;
16854 PyObject * obj1 = 0 ;
16855 PyObject * obj2 = 0 ;
16856 char * kwnames[] = {
16857 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16858 };
16859
fc46b7f3
RD
16860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16862 if (!SWIG_IsOK(res1)) {
fc46b7f3 16863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16864 }
fc46b7f3
RD
16865 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16866 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16867 if (!SWIG_IsOK(res2)) {
16868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16869 }
fc46b7f3 16870 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16871 if (obj2) {
fc46b7f3
RD
16872 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16873 if (!SWIG_IsOK(res3)) {
16874 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16875 }
fc46b7f3 16876 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16877 }
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16880 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16881 wxPyEndAllowThreads(__tstate);
16882 if (PyErr_Occurred()) SWIG_fail;
16883 }
fc46b7f3 16884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16885 return resultobj;
16886fail:
0085ce49 16887 return NULL;
b6294124
RD
16888}
16889
16890
fc46b7f3 16891SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16892 PyObject *resultobj = 0;
fc46b7f3
RD
16893 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16894 wxChar *arg2 = (wxChar *) 0 ;
16895 wxChar *arg3 = (wxChar *) 0 ;
16896 size_t arg4 ;
16897 wxChar *arg5 = (wxChar *) NULL ;
16898 wxChar *result = 0 ;
0085ce49
RD
16899 void *argp1 = 0 ;
16900 int res1 = 0 ;
fc46b7f3
RD
16901 void *argp2 = 0 ;
16902 int res2 = 0 ;
16903 void *argp3 = 0 ;
16904 int res3 = 0 ;
16905 size_t val4 ;
16906 int ecode4 = 0 ;
16907 void *argp5 = 0 ;
16908 int res5 = 0 ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 PyObject * obj2 = 0 ;
16912 PyObject * obj3 = 0 ;
16913 PyObject * obj4 = 0 ;
16914 char * kwnames[] = {
16915 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16916 };
0085ce49 16917
fc46b7f3
RD
16918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16920 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16922 }
16923 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16925 if (!SWIG_IsOK(res2)) {
16926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16927 }
16928 arg2 = reinterpret_cast< wxChar * >(argp2);
16929 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16930 if (!SWIG_IsOK(res3)) {
16931 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16932 }
16933 arg3 = reinterpret_cast< wxChar * >(argp3);
16934 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16935 if (!SWIG_IsOK(ecode4)) {
16936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16937 }
16938 arg4 = static_cast< size_t >(val4);
16939 if (obj4) {
16940 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16941 if (!SWIG_IsOK(res5)) {
16942 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16943 }
16944 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16945 }
0085ce49
RD
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16948 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16949 wxPyEndAllowThreads(__tstate);
16950 if (PyErr_Occurred()) SWIG_fail;
16951 }
fc46b7f3 16952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16953 return resultobj;
16954fail:
16955 return NULL;
d14a1e28
RD
16956}
16957
16958
fc46b7f3 16959SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16960 PyObject *obj;
16961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16962 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16963 return SWIG_Py_Void();
d14a1e28
RD
16964}
16965
fc46b7f3 16966SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16967 return SWIG_Python_InitShadowInstance(args);
16968}
d14a1e28 16969
0085ce49
RD
16970SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16971 PyObject *resultobj = 0;
16972 wxLocale *result = 0 ;
16973
16974 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = (wxLocale *)wxGetLocale();
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16982 return resultobj;
16983fail:
16984 return NULL;
d14a1e28
RD
16985}
16986
16987
0085ce49
RD
16988SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16989 PyObject *resultobj = 0;
16990 wxString *arg1 = 0 ;
16991 wxString result;
16992 bool temp1 = false ;
16993
16994 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16995 {
16996 arg1 = wxString_in_helper(swig_obj[0]);
16997 if (arg1 == NULL) SWIG_fail;
16998 temp1 = true;
16999 }
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
17002 result = wxGetTranslation((wxString const &)*arg1);
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 {
093d3ff1 17007#if wxUSE_UNICODE
0085ce49 17008 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17009#else
0085ce49 17010 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17011#endif
0085ce49
RD
17012 }
17013 {
17014 if (temp1)
17015 delete arg1;
17016 }
17017 return resultobj;
17018fail:
17019 {
17020 if (temp1)
17021 delete arg1;
17022 }
17023 return NULL;
b6294124
RD
17024}
17025
17026
0085ce49 17027SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17028 PyObject *resultobj = 0;
17029 wxString *arg1 = 0 ;
17030 wxString *arg2 = 0 ;
17031 wxString result;
17032 bool temp1 = false ;
17033 bool temp2 = false ;
17034
17035 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17036 {
17037 arg1 = wxString_in_helper(swig_obj[0]);
17038 if (arg1 == NULL) SWIG_fail;
17039 temp1 = true;
17040 }
17041 {
17042 arg2 = wxString_in_helper(swig_obj[1]);
17043 if (arg2 == NULL) SWIG_fail;
17044 temp2 = true;
17045 }
17046 {
17047 PyThreadState* __tstate = wxPyBeginAllowThreads();
17048 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17049 wxPyEndAllowThreads(__tstate);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 }
17052 {
17053#if wxUSE_UNICODE
17054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17055#else
17056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17057#endif
17058 }
17059 {
17060 if (temp1)
17061 delete arg1;
17062 }
17063 {
17064 if (temp2)
17065 delete arg2;
17066 }
17067 return resultobj;
17068fail:
17069 {
17070 if (temp1)
17071 delete arg1;
17072 }
17073 {
17074 if (temp2)
17075 delete arg2;
17076 }
17077 return NULL;
17078}
17079
17080
17081SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
17082 PyObject *resultobj = 0;
17083 wxString *arg1 = 0 ;
17084 wxString *arg2 = 0 ;
17085 size_t arg3 ;
17086 wxString result;
17087 bool temp1 = false ;
17088 bool temp2 = false ;
17089 size_t val3 ;
17090 int ecode3 = 0 ;
17091
17092 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17093 {
17094 arg1 = wxString_in_helper(swig_obj[0]);
17095 if (arg1 == NULL) SWIG_fail;
17096 temp1 = true;
17097 }
17098 {
17099 arg2 = wxString_in_helper(swig_obj[1]);
17100 if (arg2 == NULL) SWIG_fail;
17101 temp2 = true;
17102 }
17103 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17104 if (!SWIG_IsOK(ecode3)) {
17105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17106 }
17107 arg3 = static_cast< size_t >(val3);
17108 {
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
17110 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 {
17115#if wxUSE_UNICODE
17116 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17117#else
17118 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17119#endif
17120 }
17121 {
17122 if (temp1)
17123 delete arg1;
17124 }
17125 {
17126 if (temp2)
17127 delete arg2;
17128 }
17129 return resultobj;
17130fail:
17131 {
17132 if (temp1)
17133 delete arg1;
17134 }
17135 {
17136 if (temp2)
17137 delete arg2;
17138 }
17139 return NULL;
d14a1e28
RD
17140}
17141
17142
fc46b7f3
RD
17143SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17144 PyObject *resultobj = 0;
17145 wxString *arg1 = 0 ;
17146 wxString *arg2 = 0 ;
17147 size_t arg3 ;
17148 wxString *arg4 = 0 ;
17149 wxString result;
17150 bool temp1 = false ;
17151 bool temp2 = false ;
17152 size_t val3 ;
17153 int ecode3 = 0 ;
17154 bool temp4 = false ;
17155
17156 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17157 {
17158 arg1 = wxString_in_helper(swig_obj[0]);
17159 if (arg1 == NULL) SWIG_fail;
17160 temp1 = true;
17161 }
17162 {
17163 arg2 = wxString_in_helper(swig_obj[1]);
17164 if (arg2 == NULL) SWIG_fail;
17165 temp2 = true;
17166 }
17167 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17168 if (!SWIG_IsOK(ecode3)) {
17169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17170 }
17171 arg3 = static_cast< size_t >(val3);
17172 {
17173 arg4 = wxString_in_helper(swig_obj[3]);
17174 if (arg4 == NULL) SWIG_fail;
17175 temp4 = true;
17176 }
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17180 wxPyEndAllowThreads(__tstate);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 {
17184#if wxUSE_UNICODE
17185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17186#else
17187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17188#endif
17189 }
17190 {
17191 if (temp1)
17192 delete arg1;
17193 }
17194 {
17195 if (temp2)
17196 delete arg2;
17197 }
17198 {
17199 if (temp4)
17200 delete arg4;
17201 }
17202 return resultobj;
17203fail:
17204 {
17205 if (temp1)
17206 delete arg1;
17207 }
17208 {
17209 if (temp2)
17210 delete arg2;
17211 }
17212 {
17213 if (temp4)
17214 delete arg4;
17215 }
17216 return NULL;
17217}
17218
17219
0085ce49
RD
17220SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17221 int argc;
fc46b7f3 17222 PyObject *argv[5];
0085ce49 17223
fc46b7f3 17224 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
17225 --argc;
17226 if (argc == 1) {
17227 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17228 }
fc46b7f3 17229 if (argc == 2) {
0085ce49
RD
17230 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17231 }
fc46b7f3
RD
17232 if (argc == 3) {
17233 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17234 }
17235 if (argc == 4) {
17236 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17237 }
0085ce49
RD
17238
17239fail:
17240 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17241 return NULL;
d14a1e28
RD
17242}
17243
17244
0085ce49
RD
17245SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17246 PyObject *resultobj = 0;
17247 wxEncodingConverter *result = 0 ;
17248
17249 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (wxEncodingConverter *)new wxEncodingConverter();
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17257 return resultobj;
17258fail:
17259 return NULL;
d14a1e28
RD
17260}
17261
17262
0085ce49
RD
17263SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17264 PyObject *resultobj = 0;
17265 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17266 void *argp1 = 0 ;
17267 int res1 = 0 ;
17268 PyObject *swig_obj[1] ;
17269
17270 if (!args) SWIG_fail;
17271 swig_obj[0] = args;
17272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17273 if (!SWIG_IsOK(res1)) {
17274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17275 }
17276 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17277 {
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 delete arg1;
d14a1e28 17280
0085ce49
RD
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 resultobj = SWIG_Py_Void();
17285 return resultobj;
17286fail:
17287 return NULL;
17288}
17289
17290
17291SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17292 PyObject *resultobj = 0;
17293 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17294 wxFontEncoding arg2 ;
17295 wxFontEncoding arg3 ;
17296 int arg4 = (int) wxCONVERT_STRICT ;
17297 bool result;
17298 void *argp1 = 0 ;
17299 int res1 = 0 ;
17300 int val2 ;
17301 int ecode2 = 0 ;
17302 int val3 ;
17303 int ecode3 = 0 ;
17304 int val4 ;
17305 int ecode4 = 0 ;
17306 PyObject * obj0 = 0 ;
17307 PyObject * obj1 = 0 ;
17308 PyObject * obj2 = 0 ;
17309 PyObject * obj3 = 0 ;
17310 char * kwnames[] = {
17311 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17312 };
17313
17314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17316 if (!SWIG_IsOK(res1)) {
17317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17318 }
17319 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17320 ecode2 = SWIG_AsVal_int(obj1, &val2);
17321 if (!SWIG_IsOK(ecode2)) {
17322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17323 }
17324 arg2 = static_cast< wxFontEncoding >(val2);
17325 ecode3 = SWIG_AsVal_int(obj2, &val3);
17326 if (!SWIG_IsOK(ecode3)) {
17327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17328 }
17329 arg3 = static_cast< wxFontEncoding >(val3);
17330 if (obj3) {
17331 ecode4 = SWIG_AsVal_int(obj3, &val4);
17332 if (!SWIG_IsOK(ecode4)) {
17333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17334 }
17335 arg4 = static_cast< int >(val4);
17336 }
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 {
17344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17345 }
17346 return resultobj;
17347fail:
17348 return NULL;
17349}
17350
17351
17352SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17353 PyObject *resultobj = 0;
17354 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17355 wxString *arg2 = 0 ;
17356 wxString result;
17357 void *argp1 = 0 ;
17358 int res1 = 0 ;
17359 bool temp2 = false ;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 char * kwnames[] = {
17363 (char *) "self",(char *) "input", NULL
17364 };
17365
17366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17368 if (!SWIG_IsOK(res1)) {
17369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17370 }
17371 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17372 {
17373 arg2 = wxString_in_helper(obj1);
17374 if (arg2 == NULL) SWIG_fail;
17375 temp2 = true;
17376 }
17377 {
17378 PyThreadState* __tstate = wxPyBeginAllowThreads();
17379 result = (arg1)->Convert((wxString const &)*arg2);
17380 wxPyEndAllowThreads(__tstate);
17381 if (PyErr_Occurred()) SWIG_fail;
17382 }
17383 {
17384#if wxUSE_UNICODE
17385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17386#else
17387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17388#endif
17389 }
17390 {
17391 if (temp2)
17392 delete arg2;
17393 }
17394 return resultobj;
17395fail:
17396 {
17397 if (temp2)
17398 delete arg2;
17399 }
17400 return NULL;
17401}
17402
17403
17404SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17405 PyObject *resultobj = 0;
17406 wxFontEncoding arg1 ;
17407 int arg2 = (int) wxPLATFORM_CURRENT ;
17408 wxFontEncodingArray result;
17409 int val1 ;
17410 int ecode1 = 0 ;
17411 int val2 ;
17412 int ecode2 = 0 ;
17413 PyObject * obj0 = 0 ;
17414 PyObject * obj1 = 0 ;
17415 char * kwnames[] = {
17416 (char *) "enc",(char *) "platform", NULL
17417 };
17418
17419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17420 ecode1 = SWIG_AsVal_int(obj0, &val1);
17421 if (!SWIG_IsOK(ecode1)) {
17422 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17423 }
17424 arg1 = static_cast< wxFontEncoding >(val1);
17425 if (obj1) {
17426 ecode2 = SWIG_AsVal_int(obj1, &val2);
17427 if (!SWIG_IsOK(ecode2)) {
17428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17429 }
17430 arg2 = static_cast< int >(val2);
17431 }
17432 {
17433 PyThreadState* __tstate = wxPyBeginAllowThreads();
17434 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17435 wxPyEndAllowThreads(__tstate);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 {
17439 resultobj = PyList_New(0);
17440 for (size_t i=0; i < (&result)->GetCount(); i++) {
17441 PyObject* number = PyInt_FromLong((&result)->Item(i));
17442 PyList_Append(resultobj, number);
17443 Py_DECREF(number);
093d3ff1 17444 }
0085ce49
RD
17445 }
17446 return resultobj;
17447fail:
17448 return NULL;
d14a1e28
RD
17449}
17450
17451
0085ce49
RD
17452SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj = 0;
17454 wxFontEncoding arg1 ;
17455 wxFontEncodingArray result;
17456 int val1 ;
17457 int ecode1 = 0 ;
17458 PyObject * obj0 = 0 ;
17459 char * kwnames[] = {
17460 (char *) "enc", NULL
17461 };
17462
17463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17464 ecode1 = SWIG_AsVal_int(obj0, &val1);
17465 if (!SWIG_IsOK(ecode1)) {
17466 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17467 }
17468 arg1 = static_cast< wxFontEncoding >(val1);
17469 {
17470 PyThreadState* __tstate = wxPyBeginAllowThreads();
17471 result = wxEncodingConverter::GetAllEquivalents(arg1);
17472 wxPyEndAllowThreads(__tstate);
17473 if (PyErr_Occurred()) SWIG_fail;
17474 }
17475 {
17476 resultobj = PyList_New(0);
17477 for (size_t i=0; i < (&result)->GetCount(); i++) {
17478 PyObject* number = PyInt_FromLong((&result)->Item(i));
17479 PyList_Append(resultobj, number);
17480 Py_DECREF(number);
093d3ff1 17481 }
0085ce49
RD
17482 }
17483 return resultobj;
17484fail:
17485 return NULL;
17486}
17487
17488
17489SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17490 PyObject *resultobj = 0;
17491 wxFontEncoding arg1 ;
17492 wxFontEncoding arg2 ;
17493 bool result;
17494 int val1 ;
17495 int ecode1 = 0 ;
17496 int val2 ;
17497 int ecode2 = 0 ;
17498 PyObject * obj0 = 0 ;
17499 PyObject * obj1 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "encIn",(char *) "encOut", NULL
17502 };
17503
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17505 ecode1 = SWIG_AsVal_int(obj0, &val1);
17506 if (!SWIG_IsOK(ecode1)) {
17507 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17508 }
17509 arg1 = static_cast< wxFontEncoding >(val1);
17510 ecode2 = SWIG_AsVal_int(obj1, &val2);
17511 if (!SWIG_IsOK(ecode2)) {
17512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17513 }
17514 arg2 = static_cast< wxFontEncoding >(val2);
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
17517 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 {
17522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17523 }
17524 return resultobj;
17525fail:
17526 return NULL;
d14a1e28
RD
17527}
17528
17529
0085ce49
RD
17530SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17531 PyObject *obj;
17532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17533 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17534 return SWIG_Py_Void();
d14a1e28
RD
17535}
17536
0085ce49
RD
17537SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17538 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17539}
17540
0085ce49
RD
17541SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17542 PyObject *resultobj = 0;
17543 wxDC *arg1 = (wxDC *) 0 ;
17544 void *argp1 = 0 ;
17545 int res1 = 0 ;
17546 PyObject *swig_obj[1] ;
17547
17548 if (!args) SWIG_fail;
17549 swig_obj[0] = args;
17550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17551 if (!SWIG_IsOK(res1)) {
17552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17553 }
17554 arg1 = reinterpret_cast< wxDC * >(argp1);
17555 {
17556 PyThreadState* __tstate = wxPyBeginAllowThreads();
17557 delete arg1;
d14a1e28 17558
0085ce49
RD
17559 wxPyEndAllowThreads(__tstate);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 resultobj = SWIG_Py_Void();
17563 return resultobj;
17564fail:
17565 return NULL;
17566}
17567
17568
17569SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17570 PyObject *resultobj = 0;
17571 wxDC *arg1 = (wxDC *) 0 ;
17572 int arg2 ;
17573 int arg3 ;
17574 wxColour *arg4 = 0 ;
17575 int arg5 = (int) wxFLOOD_SURFACE ;
17576 bool result;
17577 void *argp1 = 0 ;
17578 int res1 = 0 ;
17579 int val2 ;
17580 int ecode2 = 0 ;
17581 int val3 ;
17582 int ecode3 = 0 ;
17583 wxColour temp4 ;
17584 int val5 ;
17585 int ecode5 = 0 ;
17586 PyObject * obj0 = 0 ;
17587 PyObject * obj1 = 0 ;
17588 PyObject * obj2 = 0 ;
17589 PyObject * obj3 = 0 ;
17590 PyObject * obj4 = 0 ;
17591 char * kwnames[] = {
17592 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17593 };
17594
17595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17597 if (!SWIG_IsOK(res1)) {
17598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17599 }
17600 arg1 = reinterpret_cast< wxDC * >(argp1);
17601 ecode2 = SWIG_AsVal_int(obj1, &val2);
17602 if (!SWIG_IsOK(ecode2)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17604 }
17605 arg2 = static_cast< int >(val2);
17606 ecode3 = SWIG_AsVal_int(obj2, &val3);
17607 if (!SWIG_IsOK(ecode3)) {
17608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17609 }
17610 arg3 = static_cast< int >(val3);
17611 {
17612 arg4 = &temp4;
17613 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17614 }
17615 if (obj4) {
17616 ecode5 = SWIG_AsVal_int(obj4, &val5);
17617 if (!SWIG_IsOK(ecode5)) {
17618 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17619 }
17620 arg5 = static_cast< int >(val5);
17621 }
17622 {
17623 PyThreadState* __tstate = wxPyBeginAllowThreads();
17624 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17625 wxPyEndAllowThreads(__tstate);
17626 if (PyErr_Occurred()) SWIG_fail;
17627 }
17628 {
17629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17630 }
17631 return resultobj;
17632fail:
17633 return NULL;
17634}
17635
17636
17637SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj = 0;
17639 wxDC *arg1 = (wxDC *) 0 ;
17640 wxPoint *arg2 = 0 ;
17641 wxColour *arg3 = 0 ;
17642 int arg4 = (int) wxFLOOD_SURFACE ;
17643 bool result;
17644 void *argp1 = 0 ;
17645 int res1 = 0 ;
17646 wxPoint temp2 ;
17647 wxColour temp3 ;
17648 int val4 ;
17649 int ecode4 = 0 ;
17650 PyObject * obj0 = 0 ;
17651 PyObject * obj1 = 0 ;
17652 PyObject * obj2 = 0 ;
17653 PyObject * obj3 = 0 ;
17654 char * kwnames[] = {
17655 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17656 };
17657
17658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17660 if (!SWIG_IsOK(res1)) {
17661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17662 }
17663 arg1 = reinterpret_cast< wxDC * >(argp1);
17664 {
17665 arg2 = &temp2;
17666 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17667 }
17668 {
17669 arg3 = &temp3;
17670 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17671 }
17672 if (obj3) {
17673 ecode4 = SWIG_AsVal_int(obj3, &val4);
17674 if (!SWIG_IsOK(ecode4)) {
17675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17676 }
17677 arg4 = static_cast< int >(val4);
17678 }
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 {
17686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17687 }
17688 return resultobj;
17689fail:
17690 return NULL;
17691}
17692
17693
17694SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17695 PyObject *resultobj = 0;
17696 wxDC *arg1 = (wxDC *) 0 ;
17697 wxRect *arg2 = 0 ;
17698 wxColour *arg3 = 0 ;
17699 wxColour *arg4 = 0 ;
17700 wxPoint *arg5 = 0 ;
17701 void *argp1 = 0 ;
17702 int res1 = 0 ;
17703 wxRect temp2 ;
17704 wxColour temp3 ;
17705 wxColour temp4 ;
17706 wxPoint temp5 ;
17707 PyObject * obj0 = 0 ;
17708 PyObject * obj1 = 0 ;
17709 PyObject * obj2 = 0 ;
17710 PyObject * obj3 = 0 ;
17711 PyObject * obj4 = 0 ;
17712 char * kwnames[] = {
17713 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17714 };
17715
17716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17718 if (!SWIG_IsOK(res1)) {
17719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17720 }
17721 arg1 = reinterpret_cast< wxDC * >(argp1);
17722 {
17723 arg2 = &temp2;
17724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17725 }
17726 {
17727 arg3 = &temp3;
17728 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17729 }
17730 {
17731 arg4 = &temp4;
17732 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17733 }
17734 {
17735 arg5 = &temp5;
17736 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17737 }
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 resultobj = SWIG_Py_Void();
17745 return resultobj;
17746fail:
17747 return NULL;
17748}
17749
17750
17751SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17752 PyObject *resultobj = 0;
17753 wxDC *arg1 = (wxDC *) 0 ;
17754 wxRect *arg2 = 0 ;
17755 wxColour *arg3 = 0 ;
17756 wxColour *arg4 = 0 ;
17757 wxDirection arg5 = (wxDirection) wxEAST ;
17758 void *argp1 = 0 ;
17759 int res1 = 0 ;
17760 wxRect temp2 ;
17761 wxColour temp3 ;
17762 wxColour temp4 ;
17763 int val5 ;
17764 int ecode5 = 0 ;
17765 PyObject * obj0 = 0 ;
17766 PyObject * obj1 = 0 ;
17767 PyObject * obj2 = 0 ;
17768 PyObject * obj3 = 0 ;
17769 PyObject * obj4 = 0 ;
17770 char * kwnames[] = {
17771 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17772 };
17773
17774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17776 if (!SWIG_IsOK(res1)) {
17777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17778 }
17779 arg1 = reinterpret_cast< wxDC * >(argp1);
17780 {
17781 arg2 = &temp2;
17782 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17783 }
17784 {
17785 arg3 = &temp3;
17786 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17787 }
17788 {
17789 arg4 = &temp4;
17790 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17791 }
17792 if (obj4) {
17793 ecode5 = SWIG_AsVal_int(obj4, &val5);
17794 if (!SWIG_IsOK(ecode5)) {
17795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17796 }
17797 arg5 = static_cast< wxDirection >(val5);
17798 }
17799 {
17800 PyThreadState* __tstate = wxPyBeginAllowThreads();
17801 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17802 wxPyEndAllowThreads(__tstate);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 resultobj = SWIG_Py_Void();
17806 return resultobj;
17807fail:
17808 return NULL;
17809}
17810
17811
17812SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17813 PyObject *resultobj = 0;
17814 wxDC *arg1 = (wxDC *) 0 ;
17815 int arg2 ;
17816 int arg3 ;
17817 wxColour result;
17818 void *argp1 = 0 ;
17819 int res1 = 0 ;
17820 int val2 ;
17821 int ecode2 = 0 ;
17822 int val3 ;
17823 int ecode3 = 0 ;
17824 PyObject * obj0 = 0 ;
17825 PyObject * obj1 = 0 ;
17826 PyObject * obj2 = 0 ;
17827 char * kwnames[] = {
17828 (char *) "self",(char *) "x",(char *) "y", NULL
17829 };
17830
17831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17833 if (!SWIG_IsOK(res1)) {
17834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17835 }
17836 arg1 = reinterpret_cast< wxDC * >(argp1);
17837 ecode2 = SWIG_AsVal_int(obj1, &val2);
17838 if (!SWIG_IsOK(ecode2)) {
17839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17840 }
17841 arg2 = static_cast< int >(val2);
17842 ecode3 = SWIG_AsVal_int(obj2, &val3);
17843 if (!SWIG_IsOK(ecode3)) {
17844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17845 }
17846 arg3 = static_cast< int >(val3);
17847 {
17848 PyThreadState* __tstate = wxPyBeginAllowThreads();
17849 result = wxDC_GetPixel(arg1,arg2,arg3);
17850 wxPyEndAllowThreads(__tstate);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17854 return resultobj;
17855fail:
17856 return NULL;
17857}
17858
17859
17860SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17861 PyObject *resultobj = 0;
17862 wxDC *arg1 = (wxDC *) 0 ;
17863 wxPoint *arg2 = 0 ;
17864 wxColour result;
17865 void *argp1 = 0 ;
17866 int res1 = 0 ;
17867 wxPoint temp2 ;
17868 PyObject * obj0 = 0 ;
17869 PyObject * obj1 = 0 ;
17870 char * kwnames[] = {
17871 (char *) "self",(char *) "pt", NULL
17872 };
17873
17874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17876 if (!SWIG_IsOK(res1)) {
17877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17878 }
17879 arg1 = reinterpret_cast< wxDC * >(argp1);
17880 {
17881 arg2 = &temp2;
17882 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17883 }
17884 {
17885 PyThreadState* __tstate = wxPyBeginAllowThreads();
17886 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17887 wxPyEndAllowThreads(__tstate);
17888 if (PyErr_Occurred()) SWIG_fail;
17889 }
17890 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17891 return resultobj;
17892fail:
17893 return NULL;
17894}
17895
17896
17897SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17898 PyObject *resultobj = 0;
17899 wxDC *arg1 = (wxDC *) 0 ;
17900 int arg2 ;
17901 int arg3 ;
17902 int arg4 ;
17903 int arg5 ;
17904 void *argp1 = 0 ;
17905 int res1 = 0 ;
17906 int val2 ;
17907 int ecode2 = 0 ;
17908 int val3 ;
17909 int ecode3 = 0 ;
17910 int val4 ;
17911 int ecode4 = 0 ;
17912 int val5 ;
17913 int ecode5 = 0 ;
17914 PyObject * obj0 = 0 ;
17915 PyObject * obj1 = 0 ;
17916 PyObject * obj2 = 0 ;
17917 PyObject * obj3 = 0 ;
17918 PyObject * obj4 = 0 ;
17919 char * kwnames[] = {
17920 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17921 };
17922
17923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17925 if (!SWIG_IsOK(res1)) {
17926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17927 }
17928 arg1 = reinterpret_cast< wxDC * >(argp1);
17929 ecode2 = SWIG_AsVal_int(obj1, &val2);
17930 if (!SWIG_IsOK(ecode2)) {
17931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17932 }
17933 arg2 = static_cast< int >(val2);
17934 ecode3 = SWIG_AsVal_int(obj2, &val3);
17935 if (!SWIG_IsOK(ecode3)) {
17936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17937 }
17938 arg3 = static_cast< int >(val3);
17939 ecode4 = SWIG_AsVal_int(obj3, &val4);
17940 if (!SWIG_IsOK(ecode4)) {
17941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17942 }
17943 arg4 = static_cast< int >(val4);
17944 ecode5 = SWIG_AsVal_int(obj4, &val5);
17945 if (!SWIG_IsOK(ecode5)) {
17946 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17947 }
17948 arg5 = static_cast< int >(val5);
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 resultobj = SWIG_Py_Void();
17956 return resultobj;
17957fail:
17958 return NULL;
17959}
17960
17961
17962SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17963 PyObject *resultobj = 0;
17964 wxDC *arg1 = (wxDC *) 0 ;
17965 wxPoint *arg2 = 0 ;
17966 wxPoint *arg3 = 0 ;
17967 void *argp1 = 0 ;
17968 int res1 = 0 ;
17969 wxPoint temp2 ;
17970 wxPoint temp3 ;
17971 PyObject * obj0 = 0 ;
17972 PyObject * obj1 = 0 ;
17973 PyObject * obj2 = 0 ;
17974 char * kwnames[] = {
17975 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17976 };
17977
17978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17980 if (!SWIG_IsOK(res1)) {
17981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17982 }
17983 arg1 = reinterpret_cast< wxDC * >(argp1);
17984 {
17985 arg2 = &temp2;
17986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17987 }
17988 {
17989 arg3 = &temp3;
17990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17991 }
17992 {
17993 PyThreadState* __tstate = wxPyBeginAllowThreads();
17994 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 resultobj = SWIG_Py_Void();
17999 return resultobj;
18000fail:
18001 return NULL;
18002}
18003
18004
18005SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj = 0;
18007 wxDC *arg1 = (wxDC *) 0 ;
18008 int arg2 ;
18009 int arg3 ;
18010 void *argp1 = 0 ;
18011 int res1 = 0 ;
18012 int val2 ;
18013 int ecode2 = 0 ;
18014 int val3 ;
18015 int ecode3 = 0 ;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 PyObject * obj2 = 0 ;
18019 char * kwnames[] = {
18020 (char *) "self",(char *) "x",(char *) "y", NULL
18021 };
18022
18023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18027 }
18028 arg1 = reinterpret_cast< wxDC * >(argp1);
18029 ecode2 = SWIG_AsVal_int(obj1, &val2);
18030 if (!SWIG_IsOK(ecode2)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18032 }
18033 arg2 = static_cast< int >(val2);
18034 ecode3 = SWIG_AsVal_int(obj2, &val3);
18035 if (!SWIG_IsOK(ecode3)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18037 }
18038 arg3 = static_cast< int >(val3);
18039 {
18040 PyThreadState* __tstate = wxPyBeginAllowThreads();
18041 (arg1)->CrossHair(arg2,arg3);
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 resultobj = SWIG_Py_Void();
18046 return resultobj;
18047fail:
18048 return NULL;
18049}
18050
18051
18052SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj = 0;
18054 wxDC *arg1 = (wxDC *) 0 ;
18055 wxPoint *arg2 = 0 ;
18056 void *argp1 = 0 ;
18057 int res1 = 0 ;
18058 wxPoint temp2 ;
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 char * kwnames[] = {
18062 (char *) "self",(char *) "pt", NULL
18063 };
18064
18065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18067 if (!SWIG_IsOK(res1)) {
18068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18069 }
18070 arg1 = reinterpret_cast< wxDC * >(argp1);
18071 {
18072 arg2 = &temp2;
18073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18074 }
18075 {
18076 PyThreadState* __tstate = wxPyBeginAllowThreads();
18077 (arg1)->CrossHair((wxPoint const &)*arg2);
18078 wxPyEndAllowThreads(__tstate);
18079 if (PyErr_Occurred()) SWIG_fail;
18080 }
18081 resultobj = SWIG_Py_Void();
18082 return resultobj;
18083fail:
18084 return NULL;
18085}
18086
18087
18088SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18089 PyObject *resultobj = 0;
18090 wxDC *arg1 = (wxDC *) 0 ;
18091 int arg2 ;
18092 int arg3 ;
18093 int arg4 ;
18094 int arg5 ;
18095 int arg6 ;
18096 int arg7 ;
18097 void *argp1 = 0 ;
18098 int res1 = 0 ;
18099 int val2 ;
18100 int ecode2 = 0 ;
18101 int val3 ;
18102 int ecode3 = 0 ;
18103 int val4 ;
18104 int ecode4 = 0 ;
18105 int val5 ;
18106 int ecode5 = 0 ;
18107 int val6 ;
18108 int ecode6 = 0 ;
18109 int val7 ;
18110 int ecode7 = 0 ;
18111 PyObject * obj0 = 0 ;
18112 PyObject * obj1 = 0 ;
18113 PyObject * obj2 = 0 ;
18114 PyObject * obj3 = 0 ;
18115 PyObject * obj4 = 0 ;
18116 PyObject * obj5 = 0 ;
18117 PyObject * obj6 = 0 ;
18118 char * kwnames[] = {
18119 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18120 };
18121
18122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18126 }
18127 arg1 = reinterpret_cast< wxDC * >(argp1);
18128 ecode2 = SWIG_AsVal_int(obj1, &val2);
18129 if (!SWIG_IsOK(ecode2)) {
18130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18131 }
18132 arg2 = static_cast< int >(val2);
18133 ecode3 = SWIG_AsVal_int(obj2, &val3);
18134 if (!SWIG_IsOK(ecode3)) {
18135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18136 }
18137 arg3 = static_cast< int >(val3);
18138 ecode4 = SWIG_AsVal_int(obj3, &val4);
18139 if (!SWIG_IsOK(ecode4)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18141 }
18142 arg4 = static_cast< int >(val4);
18143 ecode5 = SWIG_AsVal_int(obj4, &val5);
18144 if (!SWIG_IsOK(ecode5)) {
18145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18146 }
18147 arg5 = static_cast< int >(val5);
18148 ecode6 = SWIG_AsVal_int(obj5, &val6);
18149 if (!SWIG_IsOK(ecode6)) {
18150 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18151 }
18152 arg6 = static_cast< int >(val6);
18153 ecode7 = SWIG_AsVal_int(obj6, &val7);
18154 if (!SWIG_IsOK(ecode7)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18156 }
18157 arg7 = static_cast< int >(val7);
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_Py_Void();
18165 return resultobj;
18166fail:
18167 return NULL;
18168}
18169
18170
18171SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj = 0;
18173 wxDC *arg1 = (wxDC *) 0 ;
18174 wxPoint *arg2 = 0 ;
18175 wxPoint *arg3 = 0 ;
18176 wxPoint *arg4 = 0 ;
18177 void *argp1 = 0 ;
18178 int res1 = 0 ;
18179 wxPoint temp2 ;
18180 wxPoint temp3 ;
18181 wxPoint temp4 ;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 PyObject * obj2 = 0 ;
18185 PyObject * obj3 = 0 ;
18186 char * kwnames[] = {
18187 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18188 };
18189
18190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18192 if (!SWIG_IsOK(res1)) {
18193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18194 }
18195 arg1 = reinterpret_cast< wxDC * >(argp1);
18196 {
18197 arg2 = &temp2;
18198 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18199 }
18200 {
18201 arg3 = &temp3;
18202 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18203 }
18204 {
18205 arg4 = &temp4;
18206 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18207 }
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 resultobj = SWIG_Py_Void();
18215 return resultobj;
18216fail:
18217 return NULL;
18218}
18219
18220
18221SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj = 0;
18223 wxDC *arg1 = (wxDC *) 0 ;
18224 int arg2 ;
18225 int arg3 ;
18226 int arg4 ;
18227 int arg5 ;
18228 void *argp1 = 0 ;
18229 int res1 = 0 ;
18230 int val2 ;
18231 int ecode2 = 0 ;
18232 int val3 ;
18233 int ecode3 = 0 ;
18234 int val4 ;
18235 int ecode4 = 0 ;
18236 int val5 ;
18237 int ecode5 = 0 ;
18238 PyObject * obj0 = 0 ;
18239 PyObject * obj1 = 0 ;
18240 PyObject * obj2 = 0 ;
18241 PyObject * obj3 = 0 ;
18242 PyObject * obj4 = 0 ;
18243 char * kwnames[] = {
18244 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18245 };
18246
18247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18249 if (!SWIG_IsOK(res1)) {
18250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18251 }
18252 arg1 = reinterpret_cast< wxDC * >(argp1);
18253 ecode2 = SWIG_AsVal_int(obj1, &val2);
18254 if (!SWIG_IsOK(ecode2)) {
18255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18256 }
18257 arg2 = static_cast< int >(val2);
18258 ecode3 = SWIG_AsVal_int(obj2, &val3);
18259 if (!SWIG_IsOK(ecode3)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18261 }
18262 arg3 = static_cast< int >(val3);
18263 ecode4 = SWIG_AsVal_int(obj3, &val4);
18264 if (!SWIG_IsOK(ecode4)) {
18265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18266 }
18267 arg4 = static_cast< int >(val4);
18268 ecode5 = SWIG_AsVal_int(obj4, &val5);
18269 if (!SWIG_IsOK(ecode5)) {
18270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18271 }
18272 arg5 = static_cast< int >(val5);
18273 {
18274 PyThreadState* __tstate = wxPyBeginAllowThreads();
18275 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18276 wxPyEndAllowThreads(__tstate);
18277 if (PyErr_Occurred()) SWIG_fail;
18278 }
18279 resultobj = SWIG_Py_Void();
18280 return resultobj;
18281fail:
18282 return NULL;
18283}
18284
18285
18286SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj = 0;
18288 wxDC *arg1 = (wxDC *) 0 ;
18289 wxRect *arg2 = 0 ;
18290 void *argp1 = 0 ;
18291 int res1 = 0 ;
18292 wxRect temp2 ;
18293 PyObject * obj0 = 0 ;
18294 PyObject * obj1 = 0 ;
18295 char * kwnames[] = {
18296 (char *) "self",(char *) "rect", NULL
18297 };
18298
18299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18301 if (!SWIG_IsOK(res1)) {
18302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18303 }
18304 arg1 = reinterpret_cast< wxDC * >(argp1);
18305 {
18306 arg2 = &temp2;
18307 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18308 }
18309 {
18310 PyThreadState* __tstate = wxPyBeginAllowThreads();
18311 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 resultobj = SWIG_Py_Void();
18316 return resultobj;
18317fail:
18318 return NULL;
18319}
18320
18321
18322SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj = 0;
18324 wxDC *arg1 = (wxDC *) 0 ;
18325 int arg2 ;
18326 int arg3 ;
18327 int arg4 ;
18328 int arg5 ;
18329 double arg6 ;
18330 double arg7 ;
18331 void *argp1 = 0 ;
18332 int res1 = 0 ;
18333 int val2 ;
18334 int ecode2 = 0 ;
18335 int val3 ;
18336 int ecode3 = 0 ;
18337 int val4 ;
18338 int ecode4 = 0 ;
18339 int val5 ;
18340 int ecode5 = 0 ;
18341 double val6 ;
18342 int ecode6 = 0 ;
18343 double val7 ;
18344 int ecode7 = 0 ;
18345 PyObject * obj0 = 0 ;
18346 PyObject * obj1 = 0 ;
18347 PyObject * obj2 = 0 ;
18348 PyObject * obj3 = 0 ;
18349 PyObject * obj4 = 0 ;
18350 PyObject * obj5 = 0 ;
18351 PyObject * obj6 = 0 ;
18352 char * kwnames[] = {
18353 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18354 };
18355
18356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18358 if (!SWIG_IsOK(res1)) {
18359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18360 }
18361 arg1 = reinterpret_cast< wxDC * >(argp1);
18362 ecode2 = SWIG_AsVal_int(obj1, &val2);
18363 if (!SWIG_IsOK(ecode2)) {
18364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18365 }
18366 arg2 = static_cast< int >(val2);
18367 ecode3 = SWIG_AsVal_int(obj2, &val3);
18368 if (!SWIG_IsOK(ecode3)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18370 }
18371 arg3 = static_cast< int >(val3);
18372 ecode4 = SWIG_AsVal_int(obj3, &val4);
18373 if (!SWIG_IsOK(ecode4)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18375 }
18376 arg4 = static_cast< int >(val4);
18377 ecode5 = SWIG_AsVal_int(obj4, &val5);
18378 if (!SWIG_IsOK(ecode5)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18380 }
18381 arg5 = static_cast< int >(val5);
18382 ecode6 = SWIG_AsVal_double(obj5, &val6);
18383 if (!SWIG_IsOK(ecode6)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18385 }
18386 arg6 = static_cast< double >(val6);
18387 ecode7 = SWIG_AsVal_double(obj6, &val7);
18388 if (!SWIG_IsOK(ecode7)) {
18389 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18390 }
18391 arg7 = static_cast< double >(val7);
18392 {
18393 PyThreadState* __tstate = wxPyBeginAllowThreads();
18394 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 resultobj = SWIG_Py_Void();
18399 return resultobj;
18400fail:
18401 return NULL;
18402}
18403
18404
18405SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18406 PyObject *resultobj = 0;
18407 wxDC *arg1 = (wxDC *) 0 ;
18408 wxPoint *arg2 = 0 ;
18409 wxSize *arg3 = 0 ;
18410 double arg4 ;
18411 double arg5 ;
18412 void *argp1 = 0 ;
18413 int res1 = 0 ;
18414 wxPoint temp2 ;
18415 wxSize temp3 ;
18416 double val4 ;
18417 int ecode4 = 0 ;
18418 double val5 ;
18419 int ecode5 = 0 ;
18420 PyObject * obj0 = 0 ;
18421 PyObject * obj1 = 0 ;
18422 PyObject * obj2 = 0 ;
18423 PyObject * obj3 = 0 ;
18424 PyObject * obj4 = 0 ;
18425 char * kwnames[] = {
18426 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18427 };
18428
18429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18431 if (!SWIG_IsOK(res1)) {
18432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18433 }
18434 arg1 = reinterpret_cast< wxDC * >(argp1);
18435 {
18436 arg2 = &temp2;
18437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18438 }
18439 {
18440 arg3 = &temp3;
18441 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18442 }
18443 ecode4 = SWIG_AsVal_double(obj3, &val4);
18444 if (!SWIG_IsOK(ecode4)) {
18445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18446 }
18447 arg4 = static_cast< double >(val4);
18448 ecode5 = SWIG_AsVal_double(obj4, &val5);
18449 if (!SWIG_IsOK(ecode5)) {
18450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18451 }
18452 arg5 = static_cast< double >(val5);
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18456 wxPyEndAllowThreads(__tstate);
18457 if (PyErr_Occurred()) SWIG_fail;
18458 }
18459 resultobj = SWIG_Py_Void();
18460 return resultobj;
18461fail:
18462 return NULL;
18463}
18464
18465
18466SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18467 PyObject *resultobj = 0;
18468 wxDC *arg1 = (wxDC *) 0 ;
18469 int arg2 ;
18470 int arg3 ;
18471 void *argp1 = 0 ;
18472 int res1 = 0 ;
18473 int val2 ;
18474 int ecode2 = 0 ;
18475 int val3 ;
18476 int ecode3 = 0 ;
18477 PyObject * obj0 = 0 ;
18478 PyObject * obj1 = 0 ;
18479 PyObject * obj2 = 0 ;
18480 char * kwnames[] = {
18481 (char *) "self",(char *) "x",(char *) "y", NULL
18482 };
18483
18484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18486 if (!SWIG_IsOK(res1)) {
18487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18488 }
18489 arg1 = reinterpret_cast< wxDC * >(argp1);
18490 ecode2 = SWIG_AsVal_int(obj1, &val2);
18491 if (!SWIG_IsOK(ecode2)) {
18492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18493 }
18494 arg2 = static_cast< int >(val2);
18495 ecode3 = SWIG_AsVal_int(obj2, &val3);
18496 if (!SWIG_IsOK(ecode3)) {
18497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18498 }
18499 arg3 = static_cast< int >(val3);
18500 {
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 (arg1)->DrawPoint(arg2,arg3);
18503 wxPyEndAllowThreads(__tstate);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 }
18506 resultobj = SWIG_Py_Void();
18507 return resultobj;
18508fail:
18509 return NULL;
18510}
18511
18512
18513SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18514 PyObject *resultobj = 0;
18515 wxDC *arg1 = (wxDC *) 0 ;
18516 wxPoint *arg2 = 0 ;
18517 void *argp1 = 0 ;
18518 int res1 = 0 ;
18519 wxPoint temp2 ;
18520 PyObject * obj0 = 0 ;
18521 PyObject * obj1 = 0 ;
18522 char * kwnames[] = {
18523 (char *) "self",(char *) "pt", NULL
18524 };
18525
18526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18528 if (!SWIG_IsOK(res1)) {
18529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18530 }
18531 arg1 = reinterpret_cast< wxDC * >(argp1);
18532 {
18533 arg2 = &temp2;
18534 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18535 }
18536 {
18537 PyThreadState* __tstate = wxPyBeginAllowThreads();
18538 (arg1)->DrawPoint((wxPoint const &)*arg2);
18539 wxPyEndAllowThreads(__tstate);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 resultobj = SWIG_Py_Void();
18543 return resultobj;
18544fail:
18545 return NULL;
18546}
18547
18548
18549SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18550 PyObject *resultobj = 0;
18551 wxDC *arg1 = (wxDC *) 0 ;
18552 int arg2 ;
18553 int arg3 ;
18554 int arg4 ;
18555 int arg5 ;
18556 void *argp1 = 0 ;
18557 int res1 = 0 ;
18558 int val2 ;
18559 int ecode2 = 0 ;
18560 int val3 ;
18561 int ecode3 = 0 ;
18562 int val4 ;
18563 int ecode4 = 0 ;
18564 int val5 ;
18565 int ecode5 = 0 ;
18566 PyObject * obj0 = 0 ;
18567 PyObject * obj1 = 0 ;
18568 PyObject * obj2 = 0 ;
18569 PyObject * obj3 = 0 ;
18570 PyObject * obj4 = 0 ;
18571 char * kwnames[] = {
18572 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18573 };
18574
18575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18577 if (!SWIG_IsOK(res1)) {
18578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18579 }
18580 arg1 = reinterpret_cast< wxDC * >(argp1);
18581 ecode2 = SWIG_AsVal_int(obj1, &val2);
18582 if (!SWIG_IsOK(ecode2)) {
18583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18584 }
18585 arg2 = static_cast< int >(val2);
18586 ecode3 = SWIG_AsVal_int(obj2, &val3);
18587 if (!SWIG_IsOK(ecode3)) {
18588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18589 }
18590 arg3 = static_cast< int >(val3);
18591 ecode4 = SWIG_AsVal_int(obj3, &val4);
18592 if (!SWIG_IsOK(ecode4)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18594 }
18595 arg4 = static_cast< int >(val4);
18596 ecode5 = SWIG_AsVal_int(obj4, &val5);
18597 if (!SWIG_IsOK(ecode5)) {
18598 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18599 }
18600 arg5 = static_cast< int >(val5);
18601 {
18602 PyThreadState* __tstate = wxPyBeginAllowThreads();
18603 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 resultobj = SWIG_Py_Void();
18608 return resultobj;
18609fail:
18610 return NULL;
18611}
18612
18613
18614SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18615 PyObject *resultobj = 0;
18616 wxDC *arg1 = (wxDC *) 0 ;
18617 wxRect *arg2 = 0 ;
18618 void *argp1 = 0 ;
18619 int res1 = 0 ;
18620 wxRect temp2 ;
18621 PyObject * obj0 = 0 ;
18622 PyObject * obj1 = 0 ;
18623 char * kwnames[] = {
18624 (char *) "self",(char *) "rect", NULL
18625 };
18626
18627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18629 if (!SWIG_IsOK(res1)) {
18630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18631 }
18632 arg1 = reinterpret_cast< wxDC * >(argp1);
18633 {
18634 arg2 = &temp2;
18635 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18636 }
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 (arg1)->DrawRectangle((wxRect const &)*arg2);
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 resultobj = SWIG_Py_Void();
18644 return resultobj;
18645fail:
18646 return NULL;
18647}
18648
18649
18650SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj = 0;
18652 wxDC *arg1 = (wxDC *) 0 ;
18653 wxPoint *arg2 = 0 ;
18654 wxSize *arg3 = 0 ;
18655 void *argp1 = 0 ;
18656 int res1 = 0 ;
18657 wxPoint temp2 ;
18658 wxSize temp3 ;
18659 PyObject * obj0 = 0 ;
18660 PyObject * obj1 = 0 ;
18661 PyObject * obj2 = 0 ;
18662 char * kwnames[] = {
18663 (char *) "self",(char *) "pt",(char *) "sz", NULL
18664 };
18665
18666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18668 if (!SWIG_IsOK(res1)) {
18669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18670 }
18671 arg1 = reinterpret_cast< wxDC * >(argp1);
18672 {
18673 arg2 = &temp2;
18674 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18675 }
18676 {
18677 arg3 = &temp3;
18678 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18679 }
18680 {
18681 PyThreadState* __tstate = wxPyBeginAllowThreads();
18682 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18683 wxPyEndAllowThreads(__tstate);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 }
18686 resultobj = SWIG_Py_Void();
18687 return resultobj;
18688fail:
18689 return NULL;
18690}
18691
18692
18693SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18694 PyObject *resultobj = 0;
18695 wxDC *arg1 = (wxDC *) 0 ;
18696 int arg2 ;
18697 int arg3 ;
18698 int arg4 ;
18699 int arg5 ;
18700 double arg6 ;
18701 void *argp1 = 0 ;
18702 int res1 = 0 ;
18703 int val2 ;
18704 int ecode2 = 0 ;
18705 int val3 ;
18706 int ecode3 = 0 ;
18707 int val4 ;
18708 int ecode4 = 0 ;
18709 int val5 ;
18710 int ecode5 = 0 ;
18711 double val6 ;
18712 int ecode6 = 0 ;
18713 PyObject * obj0 = 0 ;
18714 PyObject * obj1 = 0 ;
18715 PyObject * obj2 = 0 ;
18716 PyObject * obj3 = 0 ;
18717 PyObject * obj4 = 0 ;
18718 PyObject * obj5 = 0 ;
18719 char * kwnames[] = {
18720 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18721 };
18722
18723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18725 if (!SWIG_IsOK(res1)) {
18726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18727 }
18728 arg1 = reinterpret_cast< wxDC * >(argp1);
18729 ecode2 = SWIG_AsVal_int(obj1, &val2);
18730 if (!SWIG_IsOK(ecode2)) {
18731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18732 }
18733 arg2 = static_cast< int >(val2);
18734 ecode3 = SWIG_AsVal_int(obj2, &val3);
18735 if (!SWIG_IsOK(ecode3)) {
18736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18737 }
18738 arg3 = static_cast< int >(val3);
18739 ecode4 = SWIG_AsVal_int(obj3, &val4);
18740 if (!SWIG_IsOK(ecode4)) {
18741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18742 }
18743 arg4 = static_cast< int >(val4);
18744 ecode5 = SWIG_AsVal_int(obj4, &val5);
18745 if (!SWIG_IsOK(ecode5)) {
18746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18747 }
18748 arg5 = static_cast< int >(val5);
18749 ecode6 = SWIG_AsVal_double(obj5, &val6);
18750 if (!SWIG_IsOK(ecode6)) {
18751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18752 }
18753 arg6 = static_cast< double >(val6);
18754 {
18755 PyThreadState* __tstate = wxPyBeginAllowThreads();
18756 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18757 wxPyEndAllowThreads(__tstate);
18758 if (PyErr_Occurred()) SWIG_fail;
18759 }
18760 resultobj = SWIG_Py_Void();
18761 return resultobj;
18762fail:
18763 return NULL;
18764}
18765
18766
18767SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18768 PyObject *resultobj = 0;
18769 wxDC *arg1 = (wxDC *) 0 ;
18770 wxRect *arg2 = 0 ;
18771 double arg3 ;
18772 void *argp1 = 0 ;
18773 int res1 = 0 ;
18774 wxRect temp2 ;
18775 double val3 ;
18776 int ecode3 = 0 ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 PyObject * obj2 = 0 ;
18780 char * kwnames[] = {
18781 (char *) "self",(char *) "r",(char *) "radius", NULL
18782 };
18783
18784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18786 if (!SWIG_IsOK(res1)) {
18787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18788 }
18789 arg1 = reinterpret_cast< wxDC * >(argp1);
18790 {
18791 arg2 = &temp2;
18792 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18793 }
18794 ecode3 = SWIG_AsVal_double(obj2, &val3);
18795 if (!SWIG_IsOK(ecode3)) {
18796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18797 }
18798 arg3 = static_cast< double >(val3);
18799 {
18800 PyThreadState* __tstate = wxPyBeginAllowThreads();
18801 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18802 wxPyEndAllowThreads(__tstate);
18803 if (PyErr_Occurred()) SWIG_fail;
18804 }
18805 resultobj = SWIG_Py_Void();
18806 return resultobj;
18807fail:
18808 return NULL;
18809}
18810
18811
18812SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18813 PyObject *resultobj = 0;
18814 wxDC *arg1 = (wxDC *) 0 ;
18815 wxPoint *arg2 = 0 ;
18816 wxSize *arg3 = 0 ;
18817 double arg4 ;
18818 void *argp1 = 0 ;
18819 int res1 = 0 ;
18820 wxPoint temp2 ;
18821 wxSize temp3 ;
18822 double val4 ;
18823 int ecode4 = 0 ;
18824 PyObject * obj0 = 0 ;
18825 PyObject * obj1 = 0 ;
18826 PyObject * obj2 = 0 ;
18827 PyObject * obj3 = 0 ;
18828 char * kwnames[] = {
18829 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18830 };
18831
18832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18834 if (!SWIG_IsOK(res1)) {
18835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18836 }
18837 arg1 = reinterpret_cast< wxDC * >(argp1);
18838 {
18839 arg2 = &temp2;
18840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18841 }
18842 {
18843 arg3 = &temp3;
18844 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18845 }
18846 ecode4 = SWIG_AsVal_double(obj3, &val4);
18847 if (!SWIG_IsOK(ecode4)) {
18848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18849 }
18850 arg4 = static_cast< double >(val4);
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_Py_Void();
18858 return resultobj;
18859fail:
18860 return NULL;
18861}
18862
18863
18864SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18865 PyObject *resultobj = 0;
18866 wxDC *arg1 = (wxDC *) 0 ;
18867 int arg2 ;
18868 int arg3 ;
18869 int arg4 ;
18870 void *argp1 = 0 ;
18871 int res1 = 0 ;
18872 int val2 ;
18873 int ecode2 = 0 ;
18874 int val3 ;
18875 int ecode3 = 0 ;
18876 int val4 ;
18877 int ecode4 = 0 ;
18878 PyObject * obj0 = 0 ;
18879 PyObject * obj1 = 0 ;
18880 PyObject * obj2 = 0 ;
18881 PyObject * obj3 = 0 ;
18882 char * kwnames[] = {
18883 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18884 };
18885
18886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18888 if (!SWIG_IsOK(res1)) {
18889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18890 }
18891 arg1 = reinterpret_cast< wxDC * >(argp1);
18892 ecode2 = SWIG_AsVal_int(obj1, &val2);
18893 if (!SWIG_IsOK(ecode2)) {
18894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18895 }
18896 arg2 = static_cast< int >(val2);
18897 ecode3 = SWIG_AsVal_int(obj2, &val3);
18898 if (!SWIG_IsOK(ecode3)) {
18899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18900 }
18901 arg3 = static_cast< int >(val3);
18902 ecode4 = SWIG_AsVal_int(obj3, &val4);
18903 if (!SWIG_IsOK(ecode4)) {
18904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18905 }
18906 arg4 = static_cast< int >(val4);
18907 {
18908 PyThreadState* __tstate = wxPyBeginAllowThreads();
18909 (arg1)->DrawCircle(arg2,arg3,arg4);
18910 wxPyEndAllowThreads(__tstate);
18911 if (PyErr_Occurred()) SWIG_fail;
18912 }
18913 resultobj = SWIG_Py_Void();
18914 return resultobj;
18915fail:
18916 return NULL;
18917}
18918
18919
18920SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18921 PyObject *resultobj = 0;
18922 wxDC *arg1 = (wxDC *) 0 ;
18923 wxPoint *arg2 = 0 ;
18924 int arg3 ;
18925 void *argp1 = 0 ;
18926 int res1 = 0 ;
18927 wxPoint temp2 ;
18928 int val3 ;
18929 int ecode3 = 0 ;
18930 PyObject * obj0 = 0 ;
18931 PyObject * obj1 = 0 ;
18932 PyObject * obj2 = 0 ;
18933 char * kwnames[] = {
18934 (char *) "self",(char *) "pt",(char *) "radius", NULL
18935 };
18936
18937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18939 if (!SWIG_IsOK(res1)) {
18940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18941 }
18942 arg1 = reinterpret_cast< wxDC * >(argp1);
18943 {
18944 arg2 = &temp2;
18945 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18946 }
18947 ecode3 = SWIG_AsVal_int(obj2, &val3);
18948 if (!SWIG_IsOK(ecode3)) {
18949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18950 }
18951 arg3 = static_cast< int >(val3);
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_Py_Void();
18959 return resultobj;
18960fail:
18961 return NULL;
18962}
18963
18964
18965SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18966 PyObject *resultobj = 0;
18967 wxDC *arg1 = (wxDC *) 0 ;
18968 int arg2 ;
18969 int arg3 ;
18970 int arg4 ;
18971 int arg5 ;
18972 void *argp1 = 0 ;
18973 int res1 = 0 ;
18974 int val2 ;
18975 int ecode2 = 0 ;
18976 int val3 ;
18977 int ecode3 = 0 ;
18978 int val4 ;
18979 int ecode4 = 0 ;
18980 int val5 ;
18981 int ecode5 = 0 ;
18982 PyObject * obj0 = 0 ;
18983 PyObject * obj1 = 0 ;
18984 PyObject * obj2 = 0 ;
18985 PyObject * obj3 = 0 ;
18986 PyObject * obj4 = 0 ;
18987 char * kwnames[] = {
18988 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18989 };
18990
18991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18993 if (!SWIG_IsOK(res1)) {
18994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18995 }
18996 arg1 = reinterpret_cast< wxDC * >(argp1);
18997 ecode2 = SWIG_AsVal_int(obj1, &val2);
18998 if (!SWIG_IsOK(ecode2)) {
18999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19000 }
19001 arg2 = static_cast< int >(val2);
19002 ecode3 = SWIG_AsVal_int(obj2, &val3);
19003 if (!SWIG_IsOK(ecode3)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19005 }
19006 arg3 = static_cast< int >(val3);
19007 ecode4 = SWIG_AsVal_int(obj3, &val4);
19008 if (!SWIG_IsOK(ecode4)) {
19009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19010 }
19011 arg4 = static_cast< int >(val4);
19012 ecode5 = SWIG_AsVal_int(obj4, &val5);
19013 if (!SWIG_IsOK(ecode5)) {
19014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19015 }
19016 arg5 = static_cast< int >(val5);
19017 {
19018 PyThreadState* __tstate = wxPyBeginAllowThreads();
19019 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19020 wxPyEndAllowThreads(__tstate);
19021 if (PyErr_Occurred()) SWIG_fail;
19022 }
19023 resultobj = SWIG_Py_Void();
19024 return resultobj;
19025fail:
19026 return NULL;
19027}
19028
19029
19030SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj = 0;
19032 wxDC *arg1 = (wxDC *) 0 ;
19033 wxRect *arg2 = 0 ;
19034 void *argp1 = 0 ;
19035 int res1 = 0 ;
19036 wxRect temp2 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 char * kwnames[] = {
19040 (char *) "self",(char *) "rect", NULL
19041 };
19042
19043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19045 if (!SWIG_IsOK(res1)) {
19046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19047 }
19048 arg1 = reinterpret_cast< wxDC * >(argp1);
19049 {
19050 arg2 = &temp2;
19051 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19052 }
19053 {
19054 PyThreadState* __tstate = wxPyBeginAllowThreads();
19055 (arg1)->DrawEllipse((wxRect const &)*arg2);
19056 wxPyEndAllowThreads(__tstate);
19057 if (PyErr_Occurred()) SWIG_fail;
19058 }
19059 resultobj = SWIG_Py_Void();
19060 return resultobj;
19061fail:
19062 return NULL;
19063}
19064
19065
19066SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19067 PyObject *resultobj = 0;
19068 wxDC *arg1 = (wxDC *) 0 ;
19069 wxPoint *arg2 = 0 ;
19070 wxSize *arg3 = 0 ;
19071 void *argp1 = 0 ;
19072 int res1 = 0 ;
19073 wxPoint temp2 ;
19074 wxSize temp3 ;
19075 PyObject * obj0 = 0 ;
19076 PyObject * obj1 = 0 ;
19077 PyObject * obj2 = 0 ;
19078 char * kwnames[] = {
19079 (char *) "self",(char *) "pt",(char *) "sz", NULL
19080 };
19081
19082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19084 if (!SWIG_IsOK(res1)) {
19085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19086 }
19087 arg1 = reinterpret_cast< wxDC * >(argp1);
19088 {
19089 arg2 = &temp2;
19090 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19091 }
19092 {
19093 arg3 = &temp3;
19094 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19095 }
19096 {
19097 PyThreadState* __tstate = wxPyBeginAllowThreads();
19098 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19099 wxPyEndAllowThreads(__tstate);
19100 if (PyErr_Occurred()) SWIG_fail;
19101 }
19102 resultobj = SWIG_Py_Void();
19103 return resultobj;
19104fail:
19105 return NULL;
19106}
19107
19108
19109SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19110 PyObject *resultobj = 0;
19111 wxDC *arg1 = (wxDC *) 0 ;
19112 wxIcon *arg2 = 0 ;
19113 int arg3 ;
19114 int arg4 ;
19115 void *argp1 = 0 ;
19116 int res1 = 0 ;
19117 void *argp2 = 0 ;
19118 int res2 = 0 ;
19119 int val3 ;
19120 int ecode3 = 0 ;
19121 int val4 ;
19122 int ecode4 = 0 ;
19123 PyObject * obj0 = 0 ;
19124 PyObject * obj1 = 0 ;
19125 PyObject * obj2 = 0 ;
19126 PyObject * obj3 = 0 ;
19127 char * kwnames[] = {
19128 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19129 };
19130
19131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19133 if (!SWIG_IsOK(res1)) {
19134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19135 }
19136 arg1 = reinterpret_cast< wxDC * >(argp1);
19137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19138 if (!SWIG_IsOK(res2)) {
19139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19140 }
19141 if (!argp2) {
19142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19143 }
19144 arg2 = reinterpret_cast< wxIcon * >(argp2);
19145 ecode3 = SWIG_AsVal_int(obj2, &val3);
19146 if (!SWIG_IsOK(ecode3)) {
19147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19148 }
19149 arg3 = static_cast< int >(val3);
19150 ecode4 = SWIG_AsVal_int(obj3, &val4);
19151 if (!SWIG_IsOK(ecode4)) {
19152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19153 }
19154 arg4 = static_cast< int >(val4);
19155 {
19156 PyThreadState* __tstate = wxPyBeginAllowThreads();
19157 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19158 wxPyEndAllowThreads(__tstate);
19159 if (PyErr_Occurred()) SWIG_fail;
19160 }
19161 resultobj = SWIG_Py_Void();
19162 return resultobj;
19163fail:
19164 return NULL;
19165}
19166
19167
19168SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19169 PyObject *resultobj = 0;
19170 wxDC *arg1 = (wxDC *) 0 ;
19171 wxIcon *arg2 = 0 ;
19172 wxPoint *arg3 = 0 ;
19173 void *argp1 = 0 ;
19174 int res1 = 0 ;
19175 void *argp2 = 0 ;
19176 int res2 = 0 ;
19177 wxPoint temp3 ;
19178 PyObject * obj0 = 0 ;
19179 PyObject * obj1 = 0 ;
19180 PyObject * obj2 = 0 ;
19181 char * kwnames[] = {
19182 (char *) "self",(char *) "icon",(char *) "pt", NULL
19183 };
19184
19185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19187 if (!SWIG_IsOK(res1)) {
19188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19189 }
19190 arg1 = reinterpret_cast< wxDC * >(argp1);
19191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19192 if (!SWIG_IsOK(res2)) {
19193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19194 }
19195 if (!argp2) {
19196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19197 }
19198 arg2 = reinterpret_cast< wxIcon * >(argp2);
19199 {
19200 arg3 = &temp3;
19201 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19202 }
19203 {
19204 PyThreadState* __tstate = wxPyBeginAllowThreads();
19205 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19206 wxPyEndAllowThreads(__tstate);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 resultobj = SWIG_Py_Void();
19210 return resultobj;
19211fail:
19212 return NULL;
19213}
19214
19215
19216SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19217 PyObject *resultobj = 0;
19218 wxDC *arg1 = (wxDC *) 0 ;
19219 wxBitmap *arg2 = 0 ;
19220 int arg3 ;
19221 int arg4 ;
19222 bool arg5 = (bool) false ;
19223 void *argp1 = 0 ;
19224 int res1 = 0 ;
19225 void *argp2 = 0 ;
19226 int res2 = 0 ;
19227 int val3 ;
19228 int ecode3 = 0 ;
19229 int val4 ;
19230 int ecode4 = 0 ;
19231 bool val5 ;
19232 int ecode5 = 0 ;
19233 PyObject * obj0 = 0 ;
19234 PyObject * obj1 = 0 ;
19235 PyObject * obj2 = 0 ;
19236 PyObject * obj3 = 0 ;
19237 PyObject * obj4 = 0 ;
19238 char * kwnames[] = {
19239 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19240 };
19241
19242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19244 if (!SWIG_IsOK(res1)) {
19245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19246 }
19247 arg1 = reinterpret_cast< wxDC * >(argp1);
19248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19249 if (!SWIG_IsOK(res2)) {
19250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19251 }
19252 if (!argp2) {
19253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19254 }
19255 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19256 ecode3 = SWIG_AsVal_int(obj2, &val3);
19257 if (!SWIG_IsOK(ecode3)) {
19258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19259 }
19260 arg3 = static_cast< int >(val3);
19261 ecode4 = SWIG_AsVal_int(obj3, &val4);
19262 if (!SWIG_IsOK(ecode4)) {
19263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19264 }
19265 arg4 = static_cast< int >(val4);
19266 if (obj4) {
19267 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19268 if (!SWIG_IsOK(ecode5)) {
19269 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19270 }
19271 arg5 = static_cast< bool >(val5);
19272 }
19273 {
19274 PyThreadState* __tstate = wxPyBeginAllowThreads();
19275 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19276 wxPyEndAllowThreads(__tstate);
19277 if (PyErr_Occurred()) SWIG_fail;
19278 }
19279 resultobj = SWIG_Py_Void();
19280 return resultobj;
19281fail:
19282 return NULL;
19283}
19284
19285
19286SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19287 PyObject *resultobj = 0;
19288 wxDC *arg1 = (wxDC *) 0 ;
19289 wxBitmap *arg2 = 0 ;
19290 wxPoint *arg3 = 0 ;
19291 bool arg4 = (bool) false ;
19292 void *argp1 = 0 ;
19293 int res1 = 0 ;
19294 void *argp2 = 0 ;
19295 int res2 = 0 ;
19296 wxPoint temp3 ;
19297 bool val4 ;
19298 int ecode4 = 0 ;
19299 PyObject * obj0 = 0 ;
19300 PyObject * obj1 = 0 ;
19301 PyObject * obj2 = 0 ;
19302 PyObject * obj3 = 0 ;
19303 char * kwnames[] = {
19304 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19305 };
19306
19307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19309 if (!SWIG_IsOK(res1)) {
19310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19311 }
19312 arg1 = reinterpret_cast< wxDC * >(argp1);
19313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19314 if (!SWIG_IsOK(res2)) {
19315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19316 }
19317 if (!argp2) {
19318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19319 }
19320 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19321 {
19322 arg3 = &temp3;
19323 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19324 }
19325 if (obj3) {
19326 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19327 if (!SWIG_IsOK(ecode4)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19329 }
19330 arg4 = static_cast< bool >(val4);
19331 }
19332 {
19333 PyThreadState* __tstate = wxPyBeginAllowThreads();
19334 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 resultobj = SWIG_Py_Void();
19339 return resultobj;
19340fail:
19341 return NULL;
19342}
19343
19344
19345SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj = 0;
19347 wxDC *arg1 = (wxDC *) 0 ;
19348 wxString *arg2 = 0 ;
19349 int arg3 ;
19350 int arg4 ;
19351 void *argp1 = 0 ;
19352 int res1 = 0 ;
19353 bool temp2 = false ;
19354 int val3 ;
19355 int ecode3 = 0 ;
19356 int val4 ;
19357 int ecode4 = 0 ;
19358 PyObject * obj0 = 0 ;
19359 PyObject * obj1 = 0 ;
19360 PyObject * obj2 = 0 ;
19361 PyObject * obj3 = 0 ;
19362 char * kwnames[] = {
19363 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19364 };
19365
19366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19368 if (!SWIG_IsOK(res1)) {
19369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19370 }
19371 arg1 = reinterpret_cast< wxDC * >(argp1);
19372 {
19373 arg2 = wxString_in_helper(obj1);
19374 if (arg2 == NULL) SWIG_fail;
19375 temp2 = true;
19376 }
19377 ecode3 = SWIG_AsVal_int(obj2, &val3);
19378 if (!SWIG_IsOK(ecode3)) {
19379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19380 }
19381 arg3 = static_cast< int >(val3);
19382 ecode4 = SWIG_AsVal_int(obj3, &val4);
19383 if (!SWIG_IsOK(ecode4)) {
19384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19385 }
19386 arg4 = static_cast< int >(val4);
19387 {
19388 PyThreadState* __tstate = wxPyBeginAllowThreads();
19389 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 resultobj = SWIG_Py_Void();
19394 {
19395 if (temp2)
19396 delete arg2;
19397 }
19398 return resultobj;
19399fail:
19400 {
19401 if (temp2)
19402 delete arg2;
19403 }
19404 return NULL;
19405}
19406
19407
19408SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19409 PyObject *resultobj = 0;
19410 wxDC *arg1 = (wxDC *) 0 ;
19411 wxString *arg2 = 0 ;
19412 wxPoint *arg3 = 0 ;
19413 void *argp1 = 0 ;
19414 int res1 = 0 ;
19415 bool temp2 = false ;
19416 wxPoint temp3 ;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 PyObject * obj2 = 0 ;
19420 char * kwnames[] = {
19421 (char *) "self",(char *) "text",(char *) "pt", NULL
19422 };
19423
19424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19426 if (!SWIG_IsOK(res1)) {
19427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19428 }
19429 arg1 = reinterpret_cast< wxDC * >(argp1);
19430 {
19431 arg2 = wxString_in_helper(obj1);
19432 if (arg2 == NULL) SWIG_fail;
19433 temp2 = true;
19434 }
19435 {
19436 arg3 = &temp3;
19437 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19438 }
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 resultobj = SWIG_Py_Void();
19446 {
19447 if (temp2)
19448 delete arg2;
19449 }
19450 return resultobj;
19451fail:
19452 {
19453 if (temp2)
19454 delete arg2;
19455 }
19456 return NULL;
19457}
19458
19459
19460SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19461 PyObject *resultobj = 0;
19462 wxDC *arg1 = (wxDC *) 0 ;
19463 wxString *arg2 = 0 ;
19464 int arg3 ;
19465 int arg4 ;
19466 double arg5 ;
19467 void *argp1 = 0 ;
19468 int res1 = 0 ;
19469 bool temp2 = false ;
19470 int val3 ;
19471 int ecode3 = 0 ;
19472 int val4 ;
19473 int ecode4 = 0 ;
19474 double val5 ;
19475 int ecode5 = 0 ;
19476 PyObject * obj0 = 0 ;
19477 PyObject * obj1 = 0 ;
19478 PyObject * obj2 = 0 ;
19479 PyObject * obj3 = 0 ;
19480 PyObject * obj4 = 0 ;
19481 char * kwnames[] = {
19482 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19483 };
19484
19485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19487 if (!SWIG_IsOK(res1)) {
19488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19489 }
19490 arg1 = reinterpret_cast< wxDC * >(argp1);
19491 {
19492 arg2 = wxString_in_helper(obj1);
19493 if (arg2 == NULL) SWIG_fail;
19494 temp2 = true;
19495 }
19496 ecode3 = SWIG_AsVal_int(obj2, &val3);
19497 if (!SWIG_IsOK(ecode3)) {
19498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19499 }
19500 arg3 = static_cast< int >(val3);
19501 ecode4 = SWIG_AsVal_int(obj3, &val4);
19502 if (!SWIG_IsOK(ecode4)) {
19503 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19504 }
19505 arg4 = static_cast< int >(val4);
19506 ecode5 = SWIG_AsVal_double(obj4, &val5);
19507 if (!SWIG_IsOK(ecode5)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19509 }
19510 arg5 = static_cast< double >(val5);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 resultobj = SWIG_Py_Void();
19518 {
19519 if (temp2)
19520 delete arg2;
19521 }
19522 return resultobj;
19523fail:
19524 {
19525 if (temp2)
19526 delete arg2;
19527 }
19528 return NULL;
19529}
19530
19531
19532SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19533 PyObject *resultobj = 0;
19534 wxDC *arg1 = (wxDC *) 0 ;
19535 wxString *arg2 = 0 ;
19536 wxPoint *arg3 = 0 ;
19537 double arg4 ;
19538 void *argp1 = 0 ;
19539 int res1 = 0 ;
19540 bool temp2 = false ;
19541 wxPoint temp3 ;
19542 double val4 ;
19543 int ecode4 = 0 ;
19544 PyObject * obj0 = 0 ;
19545 PyObject * obj1 = 0 ;
19546 PyObject * obj2 = 0 ;
19547 PyObject * obj3 = 0 ;
19548 char * kwnames[] = {
19549 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19550 };
19551
19552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19554 if (!SWIG_IsOK(res1)) {
19555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19556 }
19557 arg1 = reinterpret_cast< wxDC * >(argp1);
19558 {
19559 arg2 = wxString_in_helper(obj1);
19560 if (arg2 == NULL) SWIG_fail;
19561 temp2 = true;
19562 }
19563 {
19564 arg3 = &temp3;
19565 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19566 }
19567 ecode4 = SWIG_AsVal_double(obj3, &val4);
19568 if (!SWIG_IsOK(ecode4)) {
19569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19570 }
19571 arg4 = static_cast< double >(val4);
19572 {
19573 PyThreadState* __tstate = wxPyBeginAllowThreads();
19574 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 resultobj = SWIG_Py_Void();
19579 {
19580 if (temp2)
19581 delete arg2;
19582 }
19583 return resultobj;
19584fail:
19585 {
19586 if (temp2)
19587 delete arg2;
19588 }
19589 return NULL;
19590}
19591
19592
19593SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19594 PyObject *resultobj = 0;
19595 wxDC *arg1 = (wxDC *) 0 ;
19596 int arg2 ;
19597 int arg3 ;
19598 int arg4 ;
19599 int arg5 ;
19600 wxDC *arg6 = (wxDC *) 0 ;
19601 int arg7 ;
19602 int arg8 ;
19603 int arg9 = (int) wxCOPY ;
19604 bool arg10 = (bool) false ;
19605 int arg11 = (int) -1 ;
19606 int arg12 = (int) -1 ;
19607 bool result;
19608 void *argp1 = 0 ;
19609 int res1 = 0 ;
19610 int val2 ;
19611 int ecode2 = 0 ;
19612 int val3 ;
19613 int ecode3 = 0 ;
19614 int val4 ;
19615 int ecode4 = 0 ;
19616 int val5 ;
19617 int ecode5 = 0 ;
19618 void *argp6 = 0 ;
19619 int res6 = 0 ;
19620 int val7 ;
19621 int ecode7 = 0 ;
19622 int val8 ;
19623 int ecode8 = 0 ;
19624 int val9 ;
19625 int ecode9 = 0 ;
19626 bool val10 ;
19627 int ecode10 = 0 ;
19628 int val11 ;
19629 int ecode11 = 0 ;
19630 int val12 ;
19631 int ecode12 = 0 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 PyObject * obj2 = 0 ;
19635 PyObject * obj3 = 0 ;
19636 PyObject * obj4 = 0 ;
19637 PyObject * obj5 = 0 ;
19638 PyObject * obj6 = 0 ;
19639 PyObject * obj7 = 0 ;
19640 PyObject * obj8 = 0 ;
19641 PyObject * obj9 = 0 ;
19642 PyObject * obj10 = 0 ;
19643 PyObject * obj11 = 0 ;
19644 char * kwnames[] = {
19645 (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
19646 };
19647
19648 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;
19649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19650 if (!SWIG_IsOK(res1)) {
19651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19652 }
19653 arg1 = reinterpret_cast< wxDC * >(argp1);
19654 ecode2 = SWIG_AsVal_int(obj1, &val2);
19655 if (!SWIG_IsOK(ecode2)) {
19656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19657 }
19658 arg2 = static_cast< int >(val2);
19659 ecode3 = SWIG_AsVal_int(obj2, &val3);
19660 if (!SWIG_IsOK(ecode3)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19662 }
19663 arg3 = static_cast< int >(val3);
19664 ecode4 = SWIG_AsVal_int(obj3, &val4);
19665 if (!SWIG_IsOK(ecode4)) {
19666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19667 }
19668 arg4 = static_cast< int >(val4);
19669 ecode5 = SWIG_AsVal_int(obj4, &val5);
19670 if (!SWIG_IsOK(ecode5)) {
19671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19672 }
19673 arg5 = static_cast< int >(val5);
19674 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19675 if (!SWIG_IsOK(res6)) {
19676 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19677 }
19678 arg6 = reinterpret_cast< wxDC * >(argp6);
19679 ecode7 = SWIG_AsVal_int(obj6, &val7);
19680 if (!SWIG_IsOK(ecode7)) {
19681 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19682 }
19683 arg7 = static_cast< int >(val7);
19684 ecode8 = SWIG_AsVal_int(obj7, &val8);
19685 if (!SWIG_IsOK(ecode8)) {
19686 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19687 }
19688 arg8 = static_cast< int >(val8);
19689 if (obj8) {
19690 ecode9 = SWIG_AsVal_int(obj8, &val9);
19691 if (!SWIG_IsOK(ecode9)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19693 }
19694 arg9 = static_cast< int >(val9);
19695 }
19696 if (obj9) {
19697 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19698 if (!SWIG_IsOK(ecode10)) {
19699 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19700 }
19701 arg10 = static_cast< bool >(val10);
19702 }
19703 if (obj10) {
19704 ecode11 = SWIG_AsVal_int(obj10, &val11);
19705 if (!SWIG_IsOK(ecode11)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19707 }
19708 arg11 = static_cast< int >(val11);
19709 }
19710 if (obj11) {
19711 ecode12 = SWIG_AsVal_int(obj11, &val12);
19712 if (!SWIG_IsOK(ecode12)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19714 }
19715 arg12 = static_cast< int >(val12);
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 {
19724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19725 }
19726 return resultobj;
19727fail:
19728 return NULL;
19729}
19730
19731
19732SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19733 PyObject *resultobj = 0;
19734 wxDC *arg1 = (wxDC *) 0 ;
19735 wxPoint *arg2 = 0 ;
19736 wxSize *arg3 = 0 ;
19737 wxDC *arg4 = (wxDC *) 0 ;
19738 wxPoint *arg5 = 0 ;
19739 int arg6 = (int) wxCOPY ;
19740 bool arg7 = (bool) false ;
19741 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19742 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19743 bool result;
19744 void *argp1 = 0 ;
19745 int res1 = 0 ;
19746 wxPoint temp2 ;
19747 wxSize temp3 ;
19748 void *argp4 = 0 ;
19749 int res4 = 0 ;
19750 wxPoint temp5 ;
19751 int val6 ;
19752 int ecode6 = 0 ;
19753 bool val7 ;
19754 int ecode7 = 0 ;
19755 wxPoint temp8 ;
19756 PyObject * obj0 = 0 ;
19757 PyObject * obj1 = 0 ;
19758 PyObject * obj2 = 0 ;
19759 PyObject * obj3 = 0 ;
19760 PyObject * obj4 = 0 ;
19761 PyObject * obj5 = 0 ;
19762 PyObject * obj6 = 0 ;
19763 PyObject * obj7 = 0 ;
19764 char * kwnames[] = {
19765 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19766 };
19767
19768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19770 if (!SWIG_IsOK(res1)) {
19771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19772 }
19773 arg1 = reinterpret_cast< wxDC * >(argp1);
19774 {
19775 arg2 = &temp2;
19776 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19777 }
19778 {
19779 arg3 = &temp3;
19780 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19781 }
19782 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19783 if (!SWIG_IsOK(res4)) {
19784 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19785 }
19786 arg4 = reinterpret_cast< wxDC * >(argp4);
19787 {
19788 arg5 = &temp5;
19789 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19790 }
19791 if (obj5) {
19792 ecode6 = SWIG_AsVal_int(obj5, &val6);
19793 if (!SWIG_IsOK(ecode6)) {
19794 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19795 }
19796 arg6 = static_cast< int >(val6);
19797 }
19798 if (obj6) {
19799 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19800 if (!SWIG_IsOK(ecode7)) {
19801 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19802 }
19803 arg7 = static_cast< bool >(val7);
19804 }
19805 if (obj7) {
093d3ff1 19806 {
0085ce49
RD
19807 arg8 = &temp8;
19808 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19809 }
0085ce49
RD
19810 }
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 {
19818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19819 }
19820 return resultobj;
19821fail:
19822 return NULL;
19823}
19824
19825
8f514ab4
RD
19826SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19827 PyObject *resultobj = 0;
19828 wxDC *arg1 = (wxDC *) 0 ;
19829 wxRect *arg2 = (wxRect *) NULL ;
19830 SwigValueWrapper<wxBitmap > result;
19831 void *argp1 = 0 ;
19832 int res1 = 0 ;
19833 void *argp2 = 0 ;
19834 int res2 = 0 ;
19835 PyObject * obj0 = 0 ;
19836 PyObject * obj1 = 0 ;
19837 char * kwnames[] = {
19838 (char *) "self",(char *) "subrect", NULL
19839 };
19840
19841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19843 if (!SWIG_IsOK(res1)) {
19844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19845 }
19846 arg1 = reinterpret_cast< wxDC * >(argp1);
19847 if (obj1) {
19848 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19849 if (!SWIG_IsOK(res2)) {
19850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19851 }
19852 arg2 = reinterpret_cast< wxRect * >(argp2);
19853 }
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19861 return resultobj;
19862fail:
19863 return NULL;
19864}
19865
19866
0085ce49
RD
19867SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19868 PyObject *resultobj = 0;
19869 wxDC *arg1 = (wxDC *) 0 ;
19870 int arg2 ;
19871 int arg3 ;
19872 int arg4 ;
19873 int arg5 ;
19874 void *argp1 = 0 ;
19875 int res1 = 0 ;
19876 int val2 ;
19877 int ecode2 = 0 ;
19878 int val3 ;
19879 int ecode3 = 0 ;
19880 int val4 ;
19881 int ecode4 = 0 ;
19882 int val5 ;
19883 int ecode5 = 0 ;
19884 PyObject * obj0 = 0 ;
19885 PyObject * obj1 = 0 ;
19886 PyObject * obj2 = 0 ;
19887 PyObject * obj3 = 0 ;
19888 PyObject * obj4 = 0 ;
19889 char * kwnames[] = {
19890 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19891 };
19892
19893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19895 if (!SWIG_IsOK(res1)) {
19896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19897 }
19898 arg1 = reinterpret_cast< wxDC * >(argp1);
19899 ecode2 = SWIG_AsVal_int(obj1, &val2);
19900 if (!SWIG_IsOK(ecode2)) {
19901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19902 }
19903 arg2 = static_cast< int >(val2);
19904 ecode3 = SWIG_AsVal_int(obj2, &val3);
19905 if (!SWIG_IsOK(ecode3)) {
19906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19907 }
19908 arg3 = static_cast< int >(val3);
19909 ecode4 = SWIG_AsVal_int(obj3, &val4);
19910 if (!SWIG_IsOK(ecode4)) {
19911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19912 }
19913 arg4 = static_cast< int >(val4);
19914 ecode5 = SWIG_AsVal_int(obj4, &val5);
19915 if (!SWIG_IsOK(ecode5)) {
19916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19917 }
19918 arg5 = static_cast< int >(val5);
19919 {
19920 PyThreadState* __tstate = wxPyBeginAllowThreads();
19921 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19922 wxPyEndAllowThreads(__tstate);
19923 if (PyErr_Occurred()) SWIG_fail;
19924 }
19925 resultobj = SWIG_Py_Void();
19926 return resultobj;
19927fail:
19928 return NULL;
19929}
19930
19931
19932SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19933 PyObject *resultobj = 0;
19934 wxDC *arg1 = (wxDC *) 0 ;
19935 wxPoint *arg2 = 0 ;
19936 wxSize *arg3 = 0 ;
19937 void *argp1 = 0 ;
19938 int res1 = 0 ;
19939 wxPoint temp2 ;
19940 wxSize temp3 ;
19941 PyObject * obj0 = 0 ;
19942 PyObject * obj1 = 0 ;
19943 PyObject * obj2 = 0 ;
19944 char * kwnames[] = {
19945 (char *) "self",(char *) "pt",(char *) "sz", NULL
19946 };
19947
19948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19950 if (!SWIG_IsOK(res1)) {
19951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19952 }
19953 arg1 = reinterpret_cast< wxDC * >(argp1);
19954 {
19955 arg2 = &temp2;
19956 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19957 }
19958 {
19959 arg3 = &temp3;
19960 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19961 }
19962 {
19963 PyThreadState* __tstate = wxPyBeginAllowThreads();
19964 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19965 wxPyEndAllowThreads(__tstate);
19966 if (PyErr_Occurred()) SWIG_fail;
19967 }
19968 resultobj = SWIG_Py_Void();
19969 return resultobj;
19970fail:
19971 return NULL;
19972}
19973
19974
19975SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj = 0;
19977 wxDC *arg1 = (wxDC *) 0 ;
19978 wxRegion *arg2 = 0 ;
19979 void *argp1 = 0 ;
19980 int res1 = 0 ;
19981 void *argp2 = 0 ;
19982 int res2 = 0 ;
19983 PyObject * obj0 = 0 ;
19984 PyObject * obj1 = 0 ;
19985 char * kwnames[] = {
19986 (char *) "self",(char *) "region", NULL
19987 };
19988
19989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19991 if (!SWIG_IsOK(res1)) {
19992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19993 }
19994 arg1 = reinterpret_cast< wxDC * >(argp1);
19995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19996 if (!SWIG_IsOK(res2)) {
19997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19998 }
19999 if (!argp2) {
20000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20001 }
20002 arg2 = reinterpret_cast< wxRegion * >(argp2);
20003 {
20004 PyThreadState* __tstate = wxPyBeginAllowThreads();
20005 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20006 wxPyEndAllowThreads(__tstate);
20007 if (PyErr_Occurred()) SWIG_fail;
20008 }
20009 resultobj = SWIG_Py_Void();
20010 return resultobj;
20011fail:
20012 return NULL;
20013}
20014
20015
20016SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20017 PyObject *resultobj = 0;
20018 wxDC *arg1 = (wxDC *) 0 ;
20019 wxRect *arg2 = 0 ;
20020 void *argp1 = 0 ;
20021 int res1 = 0 ;
20022 wxRect temp2 ;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 char * kwnames[] = {
20026 (char *) "self",(char *) "rect", NULL
20027 };
20028
20029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20031 if (!SWIG_IsOK(res1)) {
20032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20033 }
20034 arg1 = reinterpret_cast< wxDC * >(argp1);
20035 {
20036 arg2 = &temp2;
20037 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20038 }
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20042 wxPyEndAllowThreads(__tstate);
20043 if (PyErr_Occurred()) SWIG_fail;
20044 }
20045 resultobj = SWIG_Py_Void();
20046 return resultobj;
20047fail:
20048 return NULL;
20049}
20050
20051
20052SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20053 PyObject *resultobj = 0;
20054 wxDC *arg1 = (wxDC *) 0 ;
20055 int arg2 ;
20056 wxPoint *arg3 = (wxPoint *) 0 ;
20057 int arg4 = (int) 0 ;
20058 int arg5 = (int) 0 ;
20059 void *argp1 = 0 ;
20060 int res1 = 0 ;
20061 int val4 ;
20062 int ecode4 = 0 ;
20063 int val5 ;
20064 int ecode5 = 0 ;
20065 PyObject * obj0 = 0 ;
20066 PyObject * obj1 = 0 ;
20067 PyObject * obj2 = 0 ;
20068 PyObject * obj3 = 0 ;
20069 char * kwnames[] = {
20070 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20071 };
20072
20073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20075 if (!SWIG_IsOK(res1)) {
20076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20077 }
20078 arg1 = reinterpret_cast< wxDC * >(argp1);
20079 {
20080 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20081 if (arg3 == NULL) SWIG_fail;
20082 }
20083 if (obj2) {
20084 ecode4 = SWIG_AsVal_int(obj2, &val4);
20085 if (!SWIG_IsOK(ecode4)) {
20086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20087 }
20088 arg4 = static_cast< int >(val4);
20089 }
20090 if (obj3) {
20091 ecode5 = SWIG_AsVal_int(obj3, &val5);
20092 if (!SWIG_IsOK(ecode5)) {
20093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20094 }
20095 arg5 = static_cast< int >(val5);
20096 }
20097 {
20098 PyThreadState* __tstate = wxPyBeginAllowThreads();
20099 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20100 wxPyEndAllowThreads(__tstate);
20101 if (PyErr_Occurred()) SWIG_fail;
20102 }
20103 resultobj = SWIG_Py_Void();
20104 {
20105 if (arg3) delete [] arg3;
20106 }
20107 return resultobj;
20108fail:
20109 {
20110 if (arg3) delete [] arg3;
20111 }
20112 return NULL;
20113}
20114
20115
20116SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj = 0;
20118 wxDC *arg1 = (wxDC *) 0 ;
20119 int arg2 ;
20120 wxPoint *arg3 = (wxPoint *) 0 ;
20121 int arg4 = (int) 0 ;
20122 int arg5 = (int) 0 ;
20123 int arg6 = (int) wxODDEVEN_RULE ;
20124 void *argp1 = 0 ;
20125 int res1 = 0 ;
20126 int val4 ;
20127 int ecode4 = 0 ;
20128 int val5 ;
20129 int ecode5 = 0 ;
20130 int val6 ;
20131 int ecode6 = 0 ;
20132 PyObject * obj0 = 0 ;
20133 PyObject * obj1 = 0 ;
20134 PyObject * obj2 = 0 ;
20135 PyObject * obj3 = 0 ;
20136 PyObject * obj4 = 0 ;
20137 char * kwnames[] = {
20138 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20139 };
20140
20141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20143 if (!SWIG_IsOK(res1)) {
20144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20145 }
20146 arg1 = reinterpret_cast< wxDC * >(argp1);
20147 {
20148 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20149 if (arg3 == NULL) SWIG_fail;
20150 }
20151 if (obj2) {
20152 ecode4 = SWIG_AsVal_int(obj2, &val4);
20153 if (!SWIG_IsOK(ecode4)) {
20154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20155 }
20156 arg4 = static_cast< int >(val4);
20157 }
20158 if (obj3) {
20159 ecode5 = SWIG_AsVal_int(obj3, &val5);
20160 if (!SWIG_IsOK(ecode5)) {
20161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20162 }
20163 arg5 = static_cast< int >(val5);
20164 }
20165 if (obj4) {
20166 ecode6 = SWIG_AsVal_int(obj4, &val6);
20167 if (!SWIG_IsOK(ecode6)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20169 }
20170 arg6 = static_cast< int >(val6);
20171 }
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20175 wxPyEndAllowThreads(__tstate);
20176 if (PyErr_Occurred()) SWIG_fail;
20177 }
20178 resultobj = SWIG_Py_Void();
20179 {
20180 if (arg3) delete [] arg3;
20181 }
20182 return resultobj;
20183fail:
20184 {
20185 if (arg3) delete [] arg3;
20186 }
20187 return NULL;
20188}
20189
20190
20191SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20192 PyObject *resultobj = 0;
20193 wxDC *arg1 = (wxDC *) 0 ;
20194 wxString *arg2 = 0 ;
20195 wxRect *arg3 = 0 ;
20196 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20197 int arg5 = (int) -1 ;
20198 void *argp1 = 0 ;
20199 int res1 = 0 ;
20200 bool temp2 = false ;
20201 wxRect temp3 ;
20202 int val4 ;
20203 int ecode4 = 0 ;
20204 int val5 ;
20205 int ecode5 = 0 ;
20206 PyObject * obj0 = 0 ;
20207 PyObject * obj1 = 0 ;
20208 PyObject * obj2 = 0 ;
20209 PyObject * obj3 = 0 ;
20210 PyObject * obj4 = 0 ;
20211 char * kwnames[] = {
20212 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20213 };
20214
20215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20217 if (!SWIG_IsOK(res1)) {
20218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20219 }
20220 arg1 = reinterpret_cast< wxDC * >(argp1);
20221 {
20222 arg2 = wxString_in_helper(obj1);
20223 if (arg2 == NULL) SWIG_fail;
20224 temp2 = true;
20225 }
20226 {
20227 arg3 = &temp3;
20228 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20229 }
20230 if (obj3) {
20231 ecode4 = SWIG_AsVal_int(obj3, &val4);
20232 if (!SWIG_IsOK(ecode4)) {
20233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20234 }
20235 arg4 = static_cast< int >(val4);
20236 }
20237 if (obj4) {
20238 ecode5 = SWIG_AsVal_int(obj4, &val5);
20239 if (!SWIG_IsOK(ecode5)) {
20240 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20241 }
20242 arg5 = static_cast< int >(val5);
20243 }
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 resultobj = SWIG_Py_Void();
20251 {
20252 if (temp2)
20253 delete arg2;
20254 }
20255 return resultobj;
20256fail:
20257 {
20258 if (temp2)
20259 delete arg2;
20260 }
20261 return NULL;
20262}
20263
20264
20265SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20266 PyObject *resultobj = 0;
20267 wxDC *arg1 = (wxDC *) 0 ;
20268 wxString *arg2 = 0 ;
20269 wxBitmap *arg3 = 0 ;
20270 wxRect *arg4 = 0 ;
20271 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20272 int arg6 = (int) -1 ;
20273 wxRect result;
20274 void *argp1 = 0 ;
20275 int res1 = 0 ;
20276 bool temp2 = false ;
20277 void *argp3 = 0 ;
20278 int res3 = 0 ;
20279 wxRect temp4 ;
20280 int val5 ;
20281 int ecode5 = 0 ;
20282 int val6 ;
20283 int ecode6 = 0 ;
20284 PyObject * obj0 = 0 ;
20285 PyObject * obj1 = 0 ;
20286 PyObject * obj2 = 0 ;
20287 PyObject * obj3 = 0 ;
20288 PyObject * obj4 = 0 ;
20289 PyObject * obj5 = 0 ;
20290 char * kwnames[] = {
20291 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20292 };
20293
20294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20296 if (!SWIG_IsOK(res1)) {
20297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20298 }
20299 arg1 = reinterpret_cast< wxDC * >(argp1);
20300 {
20301 arg2 = wxString_in_helper(obj1);
20302 if (arg2 == NULL) SWIG_fail;
20303 temp2 = true;
20304 }
20305 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20306 if (!SWIG_IsOK(res3)) {
20307 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20308 }
20309 if (!argp3) {
20310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20311 }
20312 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20313 {
20314 arg4 = &temp4;
20315 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20316 }
20317 if (obj4) {
20318 ecode5 = SWIG_AsVal_int(obj4, &val5);
20319 if (!SWIG_IsOK(ecode5)) {
20320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20321 }
20322 arg5 = static_cast< int >(val5);
20323 }
20324 if (obj5) {
20325 ecode6 = SWIG_AsVal_int(obj5, &val6);
20326 if (!SWIG_IsOK(ecode6)) {
20327 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20328 }
20329 arg6 = static_cast< int >(val6);
20330 }
20331 {
20332 PyThreadState* __tstate = wxPyBeginAllowThreads();
20333 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20334 wxPyEndAllowThreads(__tstate);
20335 if (PyErr_Occurred()) SWIG_fail;
20336 }
20337 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20338 {
20339 if (temp2)
20340 delete arg2;
20341 }
20342 return resultobj;
20343fail:
20344 {
20345 if (temp2)
20346 delete arg2;
20347 }
20348 return NULL;
20349}
20350
20351
20352SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20353 PyObject *resultobj = 0;
20354 wxDC *arg1 = (wxDC *) 0 ;
20355 int arg2 ;
20356 wxPoint *arg3 = (wxPoint *) 0 ;
20357 void *argp1 = 0 ;
20358 int res1 = 0 ;
20359 PyObject * obj0 = 0 ;
20360 PyObject * obj1 = 0 ;
20361 char * kwnames[] = {
20362 (char *) "self",(char *) "points", NULL
20363 };
20364
20365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20367 if (!SWIG_IsOK(res1)) {
20368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20369 }
20370 arg1 = reinterpret_cast< wxDC * >(argp1);
20371 {
20372 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20373 if (arg3 == NULL) SWIG_fail;
20374 }
20375 {
20376 PyThreadState* __tstate = wxPyBeginAllowThreads();
20377 (arg1)->DrawSpline(arg2,arg3);
20378 wxPyEndAllowThreads(__tstate);
20379 if (PyErr_Occurred()) SWIG_fail;
20380 }
20381 resultobj = SWIG_Py_Void();
20382 {
20383 if (arg3) delete [] arg3;
20384 }
20385 return resultobj;
20386fail:
20387 {
20388 if (arg3) delete [] arg3;
20389 }
20390 return NULL;
20391}
20392
20393
20394SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20395 PyObject *resultobj = 0;
20396 wxDC *arg1 = (wxDC *) 0 ;
20397 void *argp1 = 0 ;
20398 int res1 = 0 ;
20399 PyObject *swig_obj[1] ;
20400
20401 if (!args) SWIG_fail;
20402 swig_obj[0] = args;
20403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20404 if (!SWIG_IsOK(res1)) {
20405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20406 }
20407 arg1 = reinterpret_cast< wxDC * >(argp1);
20408 {
20409 PyThreadState* __tstate = wxPyBeginAllowThreads();
20410 (arg1)->Clear();
20411 wxPyEndAllowThreads(__tstate);
20412 if (PyErr_Occurred()) SWIG_fail;
20413 }
20414 resultobj = SWIG_Py_Void();
20415 return resultobj;
20416fail:
20417 return NULL;
20418}
20419
20420
20421SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20422 PyObject *resultobj = 0;
20423 wxDC *arg1 = (wxDC *) 0 ;
20424 wxString *arg2 = 0 ;
20425 bool result;
20426 void *argp1 = 0 ;
20427 int res1 = 0 ;
20428 bool temp2 = false ;
20429 PyObject * obj0 = 0 ;
20430 PyObject * obj1 = 0 ;
20431 char * kwnames[] = {
20432 (char *) "self",(char *) "message", NULL
20433 };
20434
20435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20437 if (!SWIG_IsOK(res1)) {
20438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20439 }
20440 arg1 = reinterpret_cast< wxDC * >(argp1);
20441 {
20442 arg2 = wxString_in_helper(obj1);
20443 if (arg2 == NULL) SWIG_fail;
20444 temp2 = true;
20445 }
20446 {
20447 PyThreadState* __tstate = wxPyBeginAllowThreads();
20448 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20449 wxPyEndAllowThreads(__tstate);
20450 if (PyErr_Occurred()) SWIG_fail;
20451 }
20452 {
20453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20454 }
20455 {
20456 if (temp2)
20457 delete arg2;
20458 }
20459 return resultobj;
20460fail:
20461 {
20462 if (temp2)
20463 delete arg2;
20464 }
20465 return NULL;
20466}
20467
20468
20469SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20470 PyObject *resultobj = 0;
20471 wxDC *arg1 = (wxDC *) 0 ;
20472 void *argp1 = 0 ;
20473 int res1 = 0 ;
20474 PyObject *swig_obj[1] ;
20475
20476 if (!args) SWIG_fail;
20477 swig_obj[0] = args;
20478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20479 if (!SWIG_IsOK(res1)) {
20480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20481 }
20482 arg1 = reinterpret_cast< wxDC * >(argp1);
20483 {
20484 PyThreadState* __tstate = wxPyBeginAllowThreads();
20485 (arg1)->EndDoc();
20486 wxPyEndAllowThreads(__tstate);
20487 if (PyErr_Occurred()) SWIG_fail;
20488 }
20489 resultobj = SWIG_Py_Void();
20490 return resultobj;
20491fail:
20492 return NULL;
20493}
20494
20495
20496SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20497 PyObject *resultobj = 0;
20498 wxDC *arg1 = (wxDC *) 0 ;
20499 void *argp1 = 0 ;
20500 int res1 = 0 ;
20501 PyObject *swig_obj[1] ;
20502
20503 if (!args) SWIG_fail;
20504 swig_obj[0] = args;
20505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20506 if (!SWIG_IsOK(res1)) {
20507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20508 }
20509 arg1 = reinterpret_cast< wxDC * >(argp1);
20510 {
20511 PyThreadState* __tstate = wxPyBeginAllowThreads();
20512 (arg1)->StartPage();
20513 wxPyEndAllowThreads(__tstate);
20514 if (PyErr_Occurred()) SWIG_fail;
20515 }
20516 resultobj = SWIG_Py_Void();
20517 return resultobj;
20518fail:
20519 return NULL;
20520}
20521
20522
20523SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20524 PyObject *resultobj = 0;
20525 wxDC *arg1 = (wxDC *) 0 ;
20526 void *argp1 = 0 ;
20527 int res1 = 0 ;
20528 PyObject *swig_obj[1] ;
20529
20530 if (!args) SWIG_fail;
20531 swig_obj[0] = args;
20532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20533 if (!SWIG_IsOK(res1)) {
20534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20535 }
20536 arg1 = reinterpret_cast< wxDC * >(argp1);
20537 {
20538 PyThreadState* __tstate = wxPyBeginAllowThreads();
20539 (arg1)->EndPage();
20540 wxPyEndAllowThreads(__tstate);
20541 if (PyErr_Occurred()) SWIG_fail;
20542 }
20543 resultobj = SWIG_Py_Void();
20544 return resultobj;
20545fail:
20546 return NULL;
20547}
20548
20549
20550SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20551 PyObject *resultobj = 0;
20552 wxDC *arg1 = (wxDC *) 0 ;
20553 wxFont *arg2 = 0 ;
20554 void *argp1 = 0 ;
20555 int res1 = 0 ;
20556 void *argp2 = 0 ;
20557 int res2 = 0 ;
20558 PyObject * obj0 = 0 ;
20559 PyObject * obj1 = 0 ;
20560 char * kwnames[] = {
20561 (char *) "self",(char *) "font", NULL
20562 };
20563
20564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20566 if (!SWIG_IsOK(res1)) {
20567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20568 }
20569 arg1 = reinterpret_cast< wxDC * >(argp1);
20570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20571 if (!SWIG_IsOK(res2)) {
20572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20573 }
20574 if (!argp2) {
20575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20576 }
20577 arg2 = reinterpret_cast< wxFont * >(argp2);
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 (arg1)->SetFont((wxFont const &)*arg2);
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 resultobj = SWIG_Py_Void();
20585 return resultobj;
20586fail:
20587 return NULL;
20588}
20589
20590
20591SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20592 PyObject *resultobj = 0;
20593 wxDC *arg1 = (wxDC *) 0 ;
20594 wxPen *arg2 = 0 ;
20595 void *argp1 = 0 ;
20596 int res1 = 0 ;
20597 void *argp2 = 0 ;
20598 int res2 = 0 ;
20599 PyObject * obj0 = 0 ;
20600 PyObject * obj1 = 0 ;
20601 char * kwnames[] = {
20602 (char *) "self",(char *) "pen", NULL
20603 };
20604
20605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20607 if (!SWIG_IsOK(res1)) {
20608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20609 }
20610 arg1 = reinterpret_cast< wxDC * >(argp1);
20611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20612 if (!SWIG_IsOK(res2)) {
20613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20614 }
20615 if (!argp2) {
20616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20617 }
20618 arg2 = reinterpret_cast< wxPen * >(argp2);
20619 {
20620 PyThreadState* __tstate = wxPyBeginAllowThreads();
20621 (arg1)->SetPen((wxPen const &)*arg2);
20622 wxPyEndAllowThreads(__tstate);
20623 if (PyErr_Occurred()) SWIG_fail;
20624 }
20625 resultobj = SWIG_Py_Void();
20626 return resultobj;
20627fail:
20628 return NULL;
20629}
20630
20631
20632SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20633 PyObject *resultobj = 0;
20634 wxDC *arg1 = (wxDC *) 0 ;
20635 wxBrush *arg2 = 0 ;
20636 void *argp1 = 0 ;
20637 int res1 = 0 ;
20638 void *argp2 = 0 ;
20639 int res2 = 0 ;
20640 PyObject * obj0 = 0 ;
20641 PyObject * obj1 = 0 ;
20642 char * kwnames[] = {
20643 (char *) "self",(char *) "brush", NULL
20644 };
20645
20646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20648 if (!SWIG_IsOK(res1)) {
20649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20650 }
20651 arg1 = reinterpret_cast< wxDC * >(argp1);
20652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20653 if (!SWIG_IsOK(res2)) {
20654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20655 }
20656 if (!argp2) {
20657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20658 }
20659 arg2 = reinterpret_cast< wxBrush * >(argp2);
20660 {
20661 PyThreadState* __tstate = wxPyBeginAllowThreads();
20662 (arg1)->SetBrush((wxBrush const &)*arg2);
20663 wxPyEndAllowThreads(__tstate);
20664 if (PyErr_Occurred()) SWIG_fail;
20665 }
20666 resultobj = SWIG_Py_Void();
20667 return resultobj;
20668fail:
20669 return NULL;
20670}
20671
20672
20673SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20674 PyObject *resultobj = 0;
20675 wxDC *arg1 = (wxDC *) 0 ;
20676 wxBrush *arg2 = 0 ;
20677 void *argp1 = 0 ;
20678 int res1 = 0 ;
20679 void *argp2 = 0 ;
20680 int res2 = 0 ;
20681 PyObject * obj0 = 0 ;
20682 PyObject * obj1 = 0 ;
20683 char * kwnames[] = {
20684 (char *) "self",(char *) "brush", NULL
20685 };
20686
20687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20689 if (!SWIG_IsOK(res1)) {
20690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20691 }
20692 arg1 = reinterpret_cast< wxDC * >(argp1);
20693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20694 if (!SWIG_IsOK(res2)) {
20695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20696 }
20697 if (!argp2) {
20698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20699 }
20700 arg2 = reinterpret_cast< wxBrush * >(argp2);
20701 {
20702 PyThreadState* __tstate = wxPyBeginAllowThreads();
20703 (arg1)->SetBackground((wxBrush const &)*arg2);
20704 wxPyEndAllowThreads(__tstate);
20705 if (PyErr_Occurred()) SWIG_fail;
20706 }
20707 resultobj = SWIG_Py_Void();
20708 return resultobj;
20709fail:
20710 return NULL;
20711}
20712
20713
20714SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20715 PyObject *resultobj = 0;
20716 wxDC *arg1 = (wxDC *) 0 ;
20717 int arg2 ;
20718 void *argp1 = 0 ;
20719 int res1 = 0 ;
20720 int val2 ;
20721 int ecode2 = 0 ;
20722 PyObject * obj0 = 0 ;
20723 PyObject * obj1 = 0 ;
20724 char * kwnames[] = {
20725 (char *) "self",(char *) "mode", NULL
20726 };
20727
20728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20730 if (!SWIG_IsOK(res1)) {
20731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20732 }
20733 arg1 = reinterpret_cast< wxDC * >(argp1);
20734 ecode2 = SWIG_AsVal_int(obj1, &val2);
20735 if (!SWIG_IsOK(ecode2)) {
20736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20737 }
20738 arg2 = static_cast< int >(val2);
20739 {
20740 PyThreadState* __tstate = wxPyBeginAllowThreads();
20741 (arg1)->SetBackgroundMode(arg2);
20742 wxPyEndAllowThreads(__tstate);
20743 if (PyErr_Occurred()) SWIG_fail;
20744 }
20745 resultobj = SWIG_Py_Void();
20746 return resultobj;
20747fail:
20748 return NULL;
20749}
20750
20751
20752SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20753 PyObject *resultobj = 0;
20754 wxDC *arg1 = (wxDC *) 0 ;
20755 wxPalette *arg2 = 0 ;
20756 void *argp1 = 0 ;
20757 int res1 = 0 ;
20758 void *argp2 = 0 ;
20759 int res2 = 0 ;
20760 PyObject * obj0 = 0 ;
20761 PyObject * obj1 = 0 ;
20762 char * kwnames[] = {
20763 (char *) "self",(char *) "palette", NULL
20764 };
20765
20766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20768 if (!SWIG_IsOK(res1)) {
20769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20770 }
20771 arg1 = reinterpret_cast< wxDC * >(argp1);
20772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20773 if (!SWIG_IsOK(res2)) {
20774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20775 }
20776 if (!argp2) {
20777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20778 }
20779 arg2 = reinterpret_cast< wxPalette * >(argp2);
20780 {
20781 PyThreadState* __tstate = wxPyBeginAllowThreads();
20782 (arg1)->SetPalette((wxPalette const &)*arg2);
20783 wxPyEndAllowThreads(__tstate);
20784 if (PyErr_Occurred()) SWIG_fail;
20785 }
20786 resultobj = SWIG_Py_Void();
20787 return resultobj;
20788fail:
20789 return NULL;
20790}
20791
20792
20793SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20794 PyObject *resultobj = 0;
20795 wxDC *arg1 = (wxDC *) 0 ;
20796 void *argp1 = 0 ;
20797 int res1 = 0 ;
20798 PyObject *swig_obj[1] ;
20799
20800 if (!args) SWIG_fail;
20801 swig_obj[0] = args;
20802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20803 if (!SWIG_IsOK(res1)) {
20804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20805 }
20806 arg1 = reinterpret_cast< wxDC * >(argp1);
20807 {
20808 PyThreadState* __tstate = wxPyBeginAllowThreads();
20809 (arg1)->DestroyClippingRegion();
20810 wxPyEndAllowThreads(__tstate);
20811 if (PyErr_Occurred()) SWIG_fail;
20812 }
20813 resultobj = SWIG_Py_Void();
20814 return resultobj;
20815fail:
20816 return NULL;
20817}
20818
20819
20820SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20821 PyObject *resultobj = 0;
20822 wxDC *arg1 = (wxDC *) 0 ;
20823 int *arg2 = (int *) 0 ;
20824 int *arg3 = (int *) 0 ;
20825 int *arg4 = (int *) 0 ;
20826 int *arg5 = (int *) 0 ;
20827 void *argp1 = 0 ;
20828 int res1 = 0 ;
20829 int temp2 ;
20830 int res2 = SWIG_TMPOBJ ;
20831 int temp3 ;
20832 int res3 = SWIG_TMPOBJ ;
20833 int temp4 ;
20834 int res4 = SWIG_TMPOBJ ;
20835 int temp5 ;
20836 int res5 = SWIG_TMPOBJ ;
20837 PyObject *swig_obj[1] ;
20838
20839 arg2 = &temp2;
20840 arg3 = &temp3;
20841 arg4 = &temp4;
20842 arg5 = &temp5;
20843 if (!args) SWIG_fail;
20844 swig_obj[0] = args;
20845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20846 if (!SWIG_IsOK(res1)) {
20847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20848 }
20849 arg1 = reinterpret_cast< wxDC * >(argp1);
20850 {
20851 PyThreadState* __tstate = wxPyBeginAllowThreads();
20852 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20853 wxPyEndAllowThreads(__tstate);
20854 if (PyErr_Occurred()) SWIG_fail;
20855 }
20856 resultobj = SWIG_Py_Void();
20857 if (SWIG_IsTmpObj(res2)) {
20858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20859 } else {
20860 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20862 }
20863 if (SWIG_IsTmpObj(res3)) {
20864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20865 } else {
20866 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20868 }
20869 if (SWIG_IsTmpObj(res4)) {
20870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20871 } else {
20872 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20874 }
20875 if (SWIG_IsTmpObj(res5)) {
20876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20877 } else {
20878 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20880 }
20881 return resultobj;
20882fail:
20883 return NULL;
20884}
20885
20886
20887SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *resultobj = 0;
20889 wxDC *arg1 = (wxDC *) 0 ;
20890 wxRect result;
20891 void *argp1 = 0 ;
20892 int res1 = 0 ;
20893 PyObject *swig_obj[1] ;
20894
20895 if (!args) SWIG_fail;
20896 swig_obj[0] = args;
20897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20898 if (!SWIG_IsOK(res1)) {
20899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20900 }
20901 arg1 = reinterpret_cast< wxDC * >(argp1);
20902 {
20903 PyThreadState* __tstate = wxPyBeginAllowThreads();
20904 result = wxDC_GetClippingRect(arg1);
20905 wxPyEndAllowThreads(__tstate);
20906 if (PyErr_Occurred()) SWIG_fail;
20907 }
20908 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20909 return resultobj;
20910fail:
20911 return NULL;
20912}
20913
20914
20915SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20916 PyObject *resultobj = 0;
20917 wxDC *arg1 = (wxDC *) 0 ;
20918 int result;
20919 void *argp1 = 0 ;
20920 int res1 = 0 ;
20921 PyObject *swig_obj[1] ;
20922
20923 if (!args) SWIG_fail;
20924 swig_obj[0] = args;
20925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20926 if (!SWIG_IsOK(res1)) {
20927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20928 }
20929 arg1 = reinterpret_cast< wxDC * >(argp1);
20930 {
20931 PyThreadState* __tstate = wxPyBeginAllowThreads();
20932 result = (int)((wxDC const *)arg1)->GetCharHeight();
20933 wxPyEndAllowThreads(__tstate);
20934 if (PyErr_Occurred()) SWIG_fail;
20935 }
20936 resultobj = SWIG_From_int(static_cast< int >(result));
20937 return resultobj;
20938fail:
20939 return NULL;
20940}
20941
20942
20943SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20944 PyObject *resultobj = 0;
20945 wxDC *arg1 = (wxDC *) 0 ;
20946 int result;
20947 void *argp1 = 0 ;
20948 int res1 = 0 ;
20949 PyObject *swig_obj[1] ;
20950
20951 if (!args) SWIG_fail;
20952 swig_obj[0] = args;
20953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20954 if (!SWIG_IsOK(res1)) {
20955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20956 }
20957 arg1 = reinterpret_cast< wxDC * >(argp1);
20958 {
20959 PyThreadState* __tstate = wxPyBeginAllowThreads();
20960 result = (int)((wxDC const *)arg1)->GetCharWidth();
20961 wxPyEndAllowThreads(__tstate);
20962 if (PyErr_Occurred()) SWIG_fail;
20963 }
20964 resultobj = SWIG_From_int(static_cast< int >(result));
20965 return resultobj;
20966fail:
20967 return NULL;
20968}
20969
20970
20971SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20972 PyObject *resultobj = 0;
20973 wxDC *arg1 = (wxDC *) 0 ;
20974 wxString *arg2 = 0 ;
20975 int *arg3 = (int *) 0 ;
20976 int *arg4 = (int *) 0 ;
20977 void *argp1 = 0 ;
20978 int res1 = 0 ;
20979 bool temp2 = false ;
20980 int temp3 ;
20981 int res3 = SWIG_TMPOBJ ;
20982 int temp4 ;
20983 int res4 = SWIG_TMPOBJ ;
20984 PyObject * obj0 = 0 ;
20985 PyObject * obj1 = 0 ;
20986 char * kwnames[] = {
20987 (char *) "self",(char *) "string", NULL
20988 };
20989
20990 arg3 = &temp3;
20991 arg4 = &temp4;
20992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20994 if (!SWIG_IsOK(res1)) {
20995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20996 }
20997 arg1 = reinterpret_cast< wxDC * >(argp1);
20998 {
20999 arg2 = wxString_in_helper(obj1);
21000 if (arg2 == NULL) SWIG_fail;
21001 temp2 = true;
21002 }
21003 {
21004 PyThreadState* __tstate = wxPyBeginAllowThreads();
21005 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21006 wxPyEndAllowThreads(__tstate);
21007 if (PyErr_Occurred()) SWIG_fail;
21008 }
21009 resultobj = SWIG_Py_Void();
21010 if (SWIG_IsTmpObj(res3)) {
21011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21012 } else {
21013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21015 }
21016 if (SWIG_IsTmpObj(res4)) {
21017 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21018 } else {
21019 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21021 }
21022 {
21023 if (temp2)
21024 delete arg2;
21025 }
21026 return resultobj;
21027fail:
21028 {
21029 if (temp2)
21030 delete arg2;
21031 }
21032 return NULL;
21033}
21034
21035
21036SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj = 0;
21038 wxDC *arg1 = (wxDC *) 0 ;
21039 wxString *arg2 = 0 ;
21040 int *arg3 = (int *) 0 ;
21041 int *arg4 = (int *) 0 ;
21042 int *arg5 = (int *) 0 ;
21043 int *arg6 = (int *) 0 ;
21044 wxFont *arg7 = (wxFont *) NULL ;
21045 void *argp1 = 0 ;
21046 int res1 = 0 ;
21047 bool temp2 = false ;
21048 int temp3 ;
21049 int res3 = SWIG_TMPOBJ ;
21050 int temp4 ;
21051 int res4 = SWIG_TMPOBJ ;
21052 int temp5 ;
21053 int res5 = SWIG_TMPOBJ ;
21054 int temp6 ;
21055 int res6 = SWIG_TMPOBJ ;
21056 void *argp7 = 0 ;
21057 int res7 = 0 ;
21058 PyObject * obj0 = 0 ;
21059 PyObject * obj1 = 0 ;
21060 PyObject * obj2 = 0 ;
21061 char * kwnames[] = {
21062 (char *) "self",(char *) "string",(char *) "font", NULL
21063 };
21064
21065 arg3 = &temp3;
21066 arg4 = &temp4;
21067 arg5 = &temp5;
21068 arg6 = &temp6;
21069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21071 if (!SWIG_IsOK(res1)) {
21072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21073 }
21074 arg1 = reinterpret_cast< wxDC * >(argp1);
21075 {
21076 arg2 = wxString_in_helper(obj1);
21077 if (arg2 == NULL) SWIG_fail;
21078 temp2 = true;
21079 }
21080 if (obj2) {
21081 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21082 if (!SWIG_IsOK(res7)) {
21083 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21084 }
0085ce49
RD
21085 arg7 = reinterpret_cast< wxFont * >(argp7);
21086 }
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_Py_Void();
21094 if (SWIG_IsTmpObj(res3)) {
21095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21096 } else {
21097 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21099 }
21100 if (SWIG_IsTmpObj(res4)) {
21101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21102 } else {
21103 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21105 }
21106 if (SWIG_IsTmpObj(res5)) {
21107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21108 } else {
21109 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21111 }
21112 if (SWIG_IsTmpObj(res6)) {
21113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21114 } else {
21115 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21117 }
21118 {
21119 if (temp2)
21120 delete arg2;
21121 }
21122 return resultobj;
21123fail:
21124 {
21125 if (temp2)
21126 delete arg2;
21127 }
21128 return NULL;
21129}
21130
21131
21132SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj = 0;
21134 wxDC *arg1 = (wxDC *) 0 ;
21135 wxString *arg2 = 0 ;
21136 int *arg3 = (int *) 0 ;
21137 int *arg4 = (int *) 0 ;
21138 int *arg5 = (int *) 0 ;
21139 wxFont *arg6 = (wxFont *) NULL ;
21140 void *argp1 = 0 ;
21141 int res1 = 0 ;
21142 bool temp2 = false ;
21143 int temp3 ;
21144 int res3 = SWIG_TMPOBJ ;
21145 int temp4 ;
21146 int res4 = SWIG_TMPOBJ ;
21147 int temp5 ;
21148 int res5 = SWIG_TMPOBJ ;
21149 void *argp6 = 0 ;
21150 int res6 = 0 ;
21151 PyObject * obj0 = 0 ;
21152 PyObject * obj1 = 0 ;
21153 PyObject * obj2 = 0 ;
21154 char * kwnames[] = {
21155 (char *) "self",(char *) "text",(char *) "font", NULL
21156 };
21157
21158 arg3 = &temp3;
21159 arg4 = &temp4;
21160 arg5 = &temp5;
21161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21163 if (!SWIG_IsOK(res1)) {
21164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21165 }
21166 arg1 = reinterpret_cast< wxDC * >(argp1);
21167 {
21168 arg2 = wxString_in_helper(obj1);
21169 if (arg2 == NULL) SWIG_fail;
21170 temp2 = true;
21171 }
21172 if (obj2) {
21173 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21174 if (!SWIG_IsOK(res6)) {
21175 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21176 }
0085ce49
RD
21177 arg6 = reinterpret_cast< wxFont * >(argp6);
21178 }
21179 {
21180 PyThreadState* __tstate = wxPyBeginAllowThreads();
21181 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 resultobj = SWIG_Py_Void();
21186 if (SWIG_IsTmpObj(res3)) {
21187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21188 } else {
21189 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21191 }
21192 if (SWIG_IsTmpObj(res4)) {
21193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21194 } else {
21195 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21197 }
21198 if (SWIG_IsTmpObj(res5)) {
21199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21200 } else {
21201 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21203 }
21204 {
21205 if (temp2)
21206 delete arg2;
21207 }
21208 return resultobj;
21209fail:
21210 {
21211 if (temp2)
21212 delete arg2;
21213 }
21214 return NULL;
21215}
21216
21217
21218SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21219 PyObject *resultobj = 0;
21220 wxDC *arg1 = (wxDC *) 0 ;
21221 wxString *arg2 = 0 ;
21222 wxArrayInt result;
21223 void *argp1 = 0 ;
21224 int res1 = 0 ;
21225 bool temp2 = false ;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 char * kwnames[] = {
21229 (char *) "self",(char *) "text", NULL
21230 };
21231
21232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21234 if (!SWIG_IsOK(res1)) {
21235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21236 }
21237 arg1 = reinterpret_cast< wxDC * >(argp1);
21238 {
21239 arg2 = wxString_in_helper(obj1);
21240 if (arg2 == NULL) SWIG_fail;
21241 temp2 = true;
21242 }
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 {
b39fe951 21250 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
21251 }
21252 {
21253 if (temp2)
21254 delete arg2;
21255 }
21256 return resultobj;
21257fail:
21258 {
21259 if (temp2)
21260 delete arg2;
21261 }
21262 return NULL;
21263}
21264
21265
21266SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21267 PyObject *resultobj = 0;
21268 wxDC *arg1 = (wxDC *) 0 ;
21269 wxSize result;
21270 void *argp1 = 0 ;
21271 int res1 = 0 ;
21272 PyObject *swig_obj[1] ;
21273
21274 if (!args) SWIG_fail;
21275 swig_obj[0] = args;
21276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21277 if (!SWIG_IsOK(res1)) {
21278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21279 }
21280 arg1 = reinterpret_cast< wxDC * >(argp1);
21281 {
21282 PyThreadState* __tstate = wxPyBeginAllowThreads();
21283 result = (arg1)->GetSize();
21284 wxPyEndAllowThreads(__tstate);
21285 if (PyErr_Occurred()) SWIG_fail;
21286 }
21287 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21288 return resultobj;
21289fail:
21290 return NULL;
21291}
21292
21293
21294SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21295 PyObject *resultobj = 0;
21296 wxDC *arg1 = (wxDC *) 0 ;
21297 int *arg2 = (int *) 0 ;
21298 int *arg3 = (int *) 0 ;
21299 void *argp1 = 0 ;
21300 int res1 = 0 ;
21301 int temp2 ;
21302 int res2 = SWIG_TMPOBJ ;
21303 int temp3 ;
21304 int res3 = SWIG_TMPOBJ ;
21305 PyObject *swig_obj[1] ;
21306
21307 arg2 = &temp2;
21308 arg3 = &temp3;
21309 if (!args) SWIG_fail;
21310 swig_obj[0] = args;
21311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21312 if (!SWIG_IsOK(res1)) {
21313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21314 }
21315 arg1 = reinterpret_cast< wxDC * >(argp1);
21316 {
21317 PyThreadState* __tstate = wxPyBeginAllowThreads();
21318 (arg1)->GetSize(arg2,arg3);
21319 wxPyEndAllowThreads(__tstate);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 }
21322 resultobj = SWIG_Py_Void();
21323 if (SWIG_IsTmpObj(res2)) {
21324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21325 } else {
21326 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21328 }
21329 if (SWIG_IsTmpObj(res3)) {
21330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21331 } else {
21332 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21334 }
21335 return resultobj;
21336fail:
21337 return NULL;
21338}
21339
21340
21341SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21342 PyObject *resultobj = 0;
21343 wxDC *arg1 = (wxDC *) 0 ;
21344 wxSize result;
21345 void *argp1 = 0 ;
21346 int res1 = 0 ;
21347 PyObject *swig_obj[1] ;
21348
21349 if (!args) SWIG_fail;
21350 swig_obj[0] = args;
21351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21352 if (!SWIG_IsOK(res1)) {
21353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21354 }
21355 arg1 = reinterpret_cast< wxDC * >(argp1);
21356 {
21357 PyThreadState* __tstate = wxPyBeginAllowThreads();
21358 result = ((wxDC const *)arg1)->GetSizeMM();
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21363 return resultobj;
21364fail:
21365 return NULL;
21366}
21367
21368
21369SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21370 PyObject *resultobj = 0;
21371 wxDC *arg1 = (wxDC *) 0 ;
21372 int *arg2 = (int *) 0 ;
21373 int *arg3 = (int *) 0 ;
21374 void *argp1 = 0 ;
21375 int res1 = 0 ;
21376 int temp2 ;
21377 int res2 = SWIG_TMPOBJ ;
21378 int temp3 ;
21379 int res3 = SWIG_TMPOBJ ;
21380 PyObject *swig_obj[1] ;
21381
21382 arg2 = &temp2;
21383 arg3 = &temp3;
21384 if (!args) SWIG_fail;
21385 swig_obj[0] = args;
21386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21387 if (!SWIG_IsOK(res1)) {
21388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21389 }
21390 arg1 = reinterpret_cast< wxDC * >(argp1);
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21394 wxPyEndAllowThreads(__tstate);
21395 if (PyErr_Occurred()) SWIG_fail;
21396 }
21397 resultobj = SWIG_Py_Void();
21398 if (SWIG_IsTmpObj(res2)) {
21399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21400 } else {
21401 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21403 }
21404 if (SWIG_IsTmpObj(res3)) {
21405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21406 } else {
21407 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21409 }
21410 return resultobj;
21411fail:
21412 return NULL;
21413}
21414
21415
21416SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21417 PyObject *resultobj = 0;
21418 wxDC *arg1 = (wxDC *) 0 ;
21419 int arg2 ;
21420 int result;
21421 void *argp1 = 0 ;
21422 int res1 = 0 ;
21423 int val2 ;
21424 int ecode2 = 0 ;
21425 PyObject * obj0 = 0 ;
21426 PyObject * obj1 = 0 ;
21427 char * kwnames[] = {
21428 (char *) "self",(char *) "x", NULL
21429 };
21430
21431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21433 if (!SWIG_IsOK(res1)) {
21434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21435 }
21436 arg1 = reinterpret_cast< wxDC * >(argp1);
21437 ecode2 = SWIG_AsVal_int(obj1, &val2);
21438 if (!SWIG_IsOK(ecode2)) {
21439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21440 }
21441 arg2 = static_cast< int >(val2);
21442 {
21443 PyThreadState* __tstate = wxPyBeginAllowThreads();
21444 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 resultobj = SWIG_From_int(static_cast< int >(result));
21449 return resultobj;
21450fail:
21451 return NULL;
21452}
21453
21454
21455SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21456 PyObject *resultobj = 0;
21457 wxDC *arg1 = (wxDC *) 0 ;
21458 int arg2 ;
21459 int result;
21460 void *argp1 = 0 ;
21461 int res1 = 0 ;
21462 int val2 ;
21463 int ecode2 = 0 ;
21464 PyObject * obj0 = 0 ;
21465 PyObject * obj1 = 0 ;
21466 char * kwnames[] = {
21467 (char *) "self",(char *) "y", NULL
21468 };
21469
21470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21472 if (!SWIG_IsOK(res1)) {
21473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21474 }
21475 arg1 = reinterpret_cast< wxDC * >(argp1);
21476 ecode2 = SWIG_AsVal_int(obj1, &val2);
21477 if (!SWIG_IsOK(ecode2)) {
21478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21479 }
21480 arg2 = static_cast< int >(val2);
21481 {
21482 PyThreadState* __tstate = wxPyBeginAllowThreads();
21483 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21484 wxPyEndAllowThreads(__tstate);
21485 if (PyErr_Occurred()) SWIG_fail;
21486 }
21487 resultobj = SWIG_From_int(static_cast< int >(result));
21488 return resultobj;
21489fail:
21490 return NULL;
21491}
21492
21493
21494SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21495 PyObject *resultobj = 0;
21496 wxDC *arg1 = (wxDC *) 0 ;
21497 int arg2 ;
21498 int result;
21499 void *argp1 = 0 ;
21500 int res1 = 0 ;
21501 int val2 ;
21502 int ecode2 = 0 ;
21503 PyObject * obj0 = 0 ;
21504 PyObject * obj1 = 0 ;
21505 char * kwnames[] = {
21506 (char *) "self",(char *) "x", NULL
21507 };
21508
21509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21511 if (!SWIG_IsOK(res1)) {
21512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21513 }
21514 arg1 = reinterpret_cast< wxDC * >(argp1);
21515 ecode2 = SWIG_AsVal_int(obj1, &val2);
21516 if (!SWIG_IsOK(ecode2)) {
21517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21518 }
21519 arg2 = static_cast< int >(val2);
21520 {
21521 PyThreadState* __tstate = wxPyBeginAllowThreads();
21522 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21523 wxPyEndAllowThreads(__tstate);
21524 if (PyErr_Occurred()) SWIG_fail;
21525 }
21526 resultobj = SWIG_From_int(static_cast< int >(result));
21527 return resultobj;
21528fail:
21529 return NULL;
21530}
21531
21532
21533SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21534 PyObject *resultobj = 0;
21535 wxDC *arg1 = (wxDC *) 0 ;
21536 int arg2 ;
21537 int result;
21538 void *argp1 = 0 ;
21539 int res1 = 0 ;
21540 int val2 ;
21541 int ecode2 = 0 ;
21542 PyObject * obj0 = 0 ;
21543 PyObject * obj1 = 0 ;
21544 char * kwnames[] = {
21545 (char *) "self",(char *) "y", NULL
21546 };
21547
21548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21550 if (!SWIG_IsOK(res1)) {
21551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21552 }
21553 arg1 = reinterpret_cast< wxDC * >(argp1);
21554 ecode2 = SWIG_AsVal_int(obj1, &val2);
21555 if (!SWIG_IsOK(ecode2)) {
21556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21557 }
21558 arg2 = static_cast< int >(val2);
21559 {
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
21561 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 resultobj = SWIG_From_int(static_cast< int >(result));
21566 return resultobj;
21567fail:
21568 return NULL;
21569}
21570
21571
21572SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21573 PyObject *resultobj = 0;
21574 wxDC *arg1 = (wxDC *) 0 ;
21575 int arg2 ;
21576 int result;
21577 void *argp1 = 0 ;
21578 int res1 = 0 ;
21579 int val2 ;
21580 int ecode2 = 0 ;
21581 PyObject * obj0 = 0 ;
21582 PyObject * obj1 = 0 ;
21583 char * kwnames[] = {
21584 (char *) "self",(char *) "x", NULL
21585 };
21586
21587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21589 if (!SWIG_IsOK(res1)) {
21590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21591 }
21592 arg1 = reinterpret_cast< wxDC * >(argp1);
21593 ecode2 = SWIG_AsVal_int(obj1, &val2);
21594 if (!SWIG_IsOK(ecode2)) {
21595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21596 }
21597 arg2 = static_cast< int >(val2);
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21601 wxPyEndAllowThreads(__tstate);
21602 if (PyErr_Occurred()) SWIG_fail;
21603 }
21604 resultobj = SWIG_From_int(static_cast< int >(result));
21605 return resultobj;
21606fail:
21607 return NULL;
21608}
21609
21610
21611SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21612 PyObject *resultobj = 0;
21613 wxDC *arg1 = (wxDC *) 0 ;
21614 int arg2 ;
21615 int result;
21616 void *argp1 = 0 ;
21617 int res1 = 0 ;
21618 int val2 ;
21619 int ecode2 = 0 ;
21620 PyObject * obj0 = 0 ;
21621 PyObject * obj1 = 0 ;
21622 char * kwnames[] = {
21623 (char *) "self",(char *) "y", NULL
21624 };
21625
21626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21628 if (!SWIG_IsOK(res1)) {
21629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21630 }
21631 arg1 = reinterpret_cast< wxDC * >(argp1);
21632 ecode2 = SWIG_AsVal_int(obj1, &val2);
21633 if (!SWIG_IsOK(ecode2)) {
21634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21635 }
21636 arg2 = static_cast< int >(val2);
21637 {
21638 PyThreadState* __tstate = wxPyBeginAllowThreads();
21639 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21640 wxPyEndAllowThreads(__tstate);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 }
21643 resultobj = SWIG_From_int(static_cast< int >(result));
21644 return resultobj;
21645fail:
21646 return NULL;
21647}
21648
21649
21650SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21651 PyObject *resultobj = 0;
21652 wxDC *arg1 = (wxDC *) 0 ;
21653 int arg2 ;
21654 int result;
21655 void *argp1 = 0 ;
21656 int res1 = 0 ;
21657 int val2 ;
21658 int ecode2 = 0 ;
21659 PyObject * obj0 = 0 ;
21660 PyObject * obj1 = 0 ;
21661 char * kwnames[] = {
21662 (char *) "self",(char *) "x", NULL
21663 };
21664
21665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21667 if (!SWIG_IsOK(res1)) {
21668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21669 }
21670 arg1 = reinterpret_cast< wxDC * >(argp1);
21671 ecode2 = SWIG_AsVal_int(obj1, &val2);
21672 if (!SWIG_IsOK(ecode2)) {
21673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21674 }
21675 arg2 = static_cast< int >(val2);
21676 {
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21679 wxPyEndAllowThreads(__tstate);
21680 if (PyErr_Occurred()) SWIG_fail;
21681 }
21682 resultobj = SWIG_From_int(static_cast< int >(result));
21683 return resultobj;
21684fail:
21685 return NULL;
21686}
21687
21688
21689SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21690 PyObject *resultobj = 0;
21691 wxDC *arg1 = (wxDC *) 0 ;
21692 int arg2 ;
21693 int result;
21694 void *argp1 = 0 ;
21695 int res1 = 0 ;
21696 int val2 ;
21697 int ecode2 = 0 ;
21698 PyObject * obj0 = 0 ;
21699 PyObject * obj1 = 0 ;
21700 char * kwnames[] = {
21701 (char *) "self",(char *) "y", NULL
21702 };
21703
21704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21706 if (!SWIG_IsOK(res1)) {
21707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21708 }
21709 arg1 = reinterpret_cast< wxDC * >(argp1);
21710 ecode2 = SWIG_AsVal_int(obj1, &val2);
21711 if (!SWIG_IsOK(ecode2)) {
21712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21713 }
21714 arg2 = static_cast< int >(val2);
21715 {
21716 PyThreadState* __tstate = wxPyBeginAllowThreads();
21717 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21718 wxPyEndAllowThreads(__tstate);
21719 if (PyErr_Occurred()) SWIG_fail;
21720 }
21721 resultobj = SWIG_From_int(static_cast< int >(result));
21722 return resultobj;
21723fail:
21724 return NULL;
21725}
21726
21727
21728SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21729 PyObject *resultobj = 0;
21730 wxDC *arg1 = (wxDC *) 0 ;
21731 bool result;
21732 void *argp1 = 0 ;
21733 int res1 = 0 ;
21734 PyObject *swig_obj[1] ;
21735
21736 if (!args) SWIG_fail;
21737 swig_obj[0] = args;
21738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21739 if (!SWIG_IsOK(res1)) {
21740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21741 }
21742 arg1 = reinterpret_cast< wxDC * >(argp1);
21743 {
21744 PyThreadState* __tstate = wxPyBeginAllowThreads();
21745 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21746 wxPyEndAllowThreads(__tstate);
21747 if (PyErr_Occurred()) SWIG_fail;
21748 }
21749 {
21750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21751 }
21752 return resultobj;
21753fail:
21754 return NULL;
21755}
21756
21757
21758SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21759 PyObject *resultobj = 0;
21760 wxDC *arg1 = (wxDC *) 0 ;
21761 bool result;
21762 void *argp1 = 0 ;
21763 int res1 = 0 ;
21764 PyObject *swig_obj[1] ;
21765
21766 if (!args) SWIG_fail;
21767 swig_obj[0] = args;
21768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21769 if (!SWIG_IsOK(res1)) {
21770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21771 }
21772 arg1 = reinterpret_cast< wxDC * >(argp1);
21773 {
21774 PyThreadState* __tstate = wxPyBeginAllowThreads();
21775 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21776 wxPyEndAllowThreads(__tstate);
21777 if (PyErr_Occurred()) SWIG_fail;
21778 }
21779 {
21780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21781 }
21782 return resultobj;
21783fail:
21784 return NULL;
21785}
21786
21787
21788SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21789 PyObject *resultobj = 0;
21790 wxDC *arg1 = (wxDC *) 0 ;
21791 int result;
21792 void *argp1 = 0 ;
21793 int res1 = 0 ;
21794 PyObject *swig_obj[1] ;
21795
21796 if (!args) SWIG_fail;
21797 swig_obj[0] = args;
21798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21799 if (!SWIG_IsOK(res1)) {
21800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21801 }
21802 arg1 = reinterpret_cast< wxDC * >(argp1);
21803 {
21804 PyThreadState* __tstate = wxPyBeginAllowThreads();
21805 result = (int)((wxDC const *)arg1)->GetDepth();
21806 wxPyEndAllowThreads(__tstate);
21807 if (PyErr_Occurred()) SWIG_fail;
21808 }
21809 resultobj = SWIG_From_int(static_cast< int >(result));
21810 return resultobj;
21811fail:
21812 return NULL;
21813}
21814
21815
21816SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21817 PyObject *resultobj = 0;
21818 wxDC *arg1 = (wxDC *) 0 ;
21819 wxSize result;
21820 void *argp1 = 0 ;
21821 int res1 = 0 ;
21822 PyObject *swig_obj[1] ;
21823
21824 if (!args) SWIG_fail;
21825 swig_obj[0] = args;
21826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21827 if (!SWIG_IsOK(res1)) {
21828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21829 }
21830 arg1 = reinterpret_cast< wxDC * >(argp1);
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 result = ((wxDC const *)arg1)->GetPPI();
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21838 return resultobj;
21839fail:
21840 return NULL;
21841}
21842
21843
b39fe951 21844SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21845 PyObject *resultobj = 0;
21846 wxDC *arg1 = (wxDC *) 0 ;
21847 bool result;
21848 void *argp1 = 0 ;
21849 int res1 = 0 ;
21850 PyObject *swig_obj[1] ;
21851
21852 if (!args) SWIG_fail;
21853 swig_obj[0] = args;
21854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21855 if (!SWIG_IsOK(res1)) {
b39fe951 21856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21857 }
21858 arg1 = reinterpret_cast< wxDC * >(argp1);
21859 {
21860 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21861 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21862 wxPyEndAllowThreads(__tstate);
21863 if (PyErr_Occurred()) SWIG_fail;
21864 }
21865 {
21866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21867 }
21868 return resultobj;
21869fail:
21870 return NULL;
21871}
21872
21873
21874SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21875 PyObject *resultobj = 0;
21876 wxDC *arg1 = (wxDC *) 0 ;
21877 int result;
21878 void *argp1 = 0 ;
21879 int res1 = 0 ;
21880 PyObject *swig_obj[1] ;
21881
21882 if (!args) SWIG_fail;
21883 swig_obj[0] = args;
21884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21885 if (!SWIG_IsOK(res1)) {
21886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21887 }
21888 arg1 = reinterpret_cast< wxDC * >(argp1);
21889 {
21890 PyThreadState* __tstate = wxPyBeginAllowThreads();
21891 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21892 wxPyEndAllowThreads(__tstate);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 }
21895 resultobj = SWIG_From_int(static_cast< int >(result));
21896 return resultobj;
21897fail:
21898 return NULL;
21899}
21900
21901
21902SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21903 PyObject *resultobj = 0;
21904 wxDC *arg1 = (wxDC *) 0 ;
21905 wxBrush *result = 0 ;
21906 void *argp1 = 0 ;
21907 int res1 = 0 ;
21908 PyObject *swig_obj[1] ;
21909
21910 if (!args) SWIG_fail;
21911 swig_obj[0] = args;
21912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21913 if (!SWIG_IsOK(res1)) {
21914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21915 }
21916 arg1 = reinterpret_cast< wxDC * >(argp1);
21917 {
21918 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21919 {
0085ce49
RD
21920 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21921 result = (wxBrush *) &_result_ref;
093d3ff1 21922 }
0085ce49
RD
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 {
21927 wxBrush* resultptr = new wxBrush(*result);
21928 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21929 }
21930 return resultobj;
21931fail:
21932 return NULL;
21933}
21934
21935
21936SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21937 PyObject *resultobj = 0;
21938 wxDC *arg1 = (wxDC *) 0 ;
21939 wxBrush *result = 0 ;
21940 void *argp1 = 0 ;
21941 int res1 = 0 ;
21942 PyObject *swig_obj[1] ;
21943
21944 if (!args) SWIG_fail;
21945 swig_obj[0] = args;
21946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21947 if (!SWIG_IsOK(res1)) {
21948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21949 }
21950 arg1 = reinterpret_cast< wxDC * >(argp1);
21951 {
21952 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21953 {
0085ce49
RD
21954 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21955 result = (wxBrush *) &_result_ref;
093d3ff1 21956 }
0085ce49
RD
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 {
21961 wxBrush* resultptr = new wxBrush(*result);
21962 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21963 }
21964 return resultobj;
21965fail:
21966 return NULL;
21967}
21968
21969
21970SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 wxFont *result = 0 ;
21974 void *argp1 = 0 ;
21975 int res1 = 0 ;
21976 PyObject *swig_obj[1] ;
21977
21978 if (!args) SWIG_fail;
21979 swig_obj[0] = args;
21980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21981 if (!SWIG_IsOK(res1)) {
21982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21983 }
21984 arg1 = reinterpret_cast< wxDC * >(argp1);
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21987 {
0085ce49
RD
21988 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21989 result = (wxFont *) &_result_ref;
093d3ff1 21990 }
0085ce49
RD
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 {
21995 wxFont* resultptr = new wxFont(*result);
21996 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21997 }
21998 return resultobj;
21999fail:
22000 return NULL;
22001}
22002
22003
22004SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22005 PyObject *resultobj = 0;
22006 wxDC *arg1 = (wxDC *) 0 ;
22007 wxPen *result = 0 ;
22008 void *argp1 = 0 ;
22009 int res1 = 0 ;
22010 PyObject *swig_obj[1] ;
22011
22012 if (!args) SWIG_fail;
22013 swig_obj[0] = args;
22014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22017 }
22018 arg1 = reinterpret_cast< wxDC * >(argp1);
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22021 {
0085ce49
RD
22022 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22023 result = (wxPen *) &_result_ref;
093d3ff1 22024 }
0085ce49
RD
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 {
22029 wxPen* resultptr = new wxPen(*result);
22030 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22031 }
22032 return resultobj;
22033fail:
22034 return NULL;
22035}
22036
22037
22038SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22039 PyObject *resultobj = 0;
22040 wxDC *arg1 = (wxDC *) 0 ;
22041 wxColour *result = 0 ;
22042 void *argp1 = 0 ;
22043 int res1 = 0 ;
22044 PyObject *swig_obj[1] ;
22045
22046 if (!args) SWIG_fail;
22047 swig_obj[0] = args;
22048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22049 if (!SWIG_IsOK(res1)) {
22050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22051 }
22052 arg1 = reinterpret_cast< wxDC * >(argp1);
22053 {
22054 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22055 {
0085ce49
RD
22056 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22057 result = (wxColour *) &_result_ref;
093d3ff1 22058 }
0085ce49
RD
22059 wxPyEndAllowThreads(__tstate);
22060 if (PyErr_Occurred()) SWIG_fail;
22061 }
22062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22063 return resultobj;
22064fail:
22065 return NULL;
22066}
22067
22068
22069SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22070 PyObject *resultobj = 0;
22071 wxDC *arg1 = (wxDC *) 0 ;
22072 wxColour *result = 0 ;
22073 void *argp1 = 0 ;
22074 int res1 = 0 ;
22075 PyObject *swig_obj[1] ;
22076
22077 if (!args) SWIG_fail;
22078 swig_obj[0] = args;
22079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22082 }
22083 arg1 = reinterpret_cast< wxDC * >(argp1);
22084 {
22085 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22086 {
0085ce49
RD
22087 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22088 result = (wxColour *) &_result_ref;
093d3ff1 22089 }
0085ce49
RD
22090 wxPyEndAllowThreads(__tstate);
22091 if (PyErr_Occurred()) SWIG_fail;
22092 }
22093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22094 return resultobj;
22095fail:
22096 return NULL;
22097}
22098
22099
22100SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22101 PyObject *resultobj = 0;
22102 wxDC *arg1 = (wxDC *) 0 ;
22103 wxColour *arg2 = 0 ;
22104 void *argp1 = 0 ;
22105 int res1 = 0 ;
22106 wxColour temp2 ;
22107 PyObject * obj0 = 0 ;
22108 PyObject * obj1 = 0 ;
22109 char * kwnames[] = {
22110 (char *) "self",(char *) "colour", NULL
22111 };
22112
22113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22115 if (!SWIG_IsOK(res1)) {
22116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22117 }
22118 arg1 = reinterpret_cast< wxDC * >(argp1);
22119 {
22120 arg2 = &temp2;
22121 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22122 }
22123 {
22124 PyThreadState* __tstate = wxPyBeginAllowThreads();
22125 (arg1)->SetTextForeground((wxColour const &)*arg2);
22126 wxPyEndAllowThreads(__tstate);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 resultobj = SWIG_Py_Void();
22130 return resultobj;
22131fail:
22132 return NULL;
22133}
22134
22135
22136SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj = 0;
22138 wxDC *arg1 = (wxDC *) 0 ;
22139 wxColour *arg2 = 0 ;
22140 void *argp1 = 0 ;
22141 int res1 = 0 ;
22142 wxColour temp2 ;
22143 PyObject * obj0 = 0 ;
22144 PyObject * obj1 = 0 ;
22145 char * kwnames[] = {
22146 (char *) "self",(char *) "colour", NULL
22147 };
22148
22149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22151 if (!SWIG_IsOK(res1)) {
22152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22153 }
22154 arg1 = reinterpret_cast< wxDC * >(argp1);
22155 {
22156 arg2 = &temp2;
22157 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22158 }
22159 {
22160 PyThreadState* __tstate = wxPyBeginAllowThreads();
22161 (arg1)->SetTextBackground((wxColour const &)*arg2);
22162 wxPyEndAllowThreads(__tstate);
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 resultobj = SWIG_Py_Void();
22166 return resultobj;
22167fail:
22168 return NULL;
22169}
22170
22171
22172SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22173 PyObject *resultobj = 0;
22174 wxDC *arg1 = (wxDC *) 0 ;
22175 int result;
22176 void *argp1 = 0 ;
22177 int res1 = 0 ;
22178 PyObject *swig_obj[1] ;
22179
22180 if (!args) SWIG_fail;
22181 swig_obj[0] = args;
22182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22183 if (!SWIG_IsOK(res1)) {
22184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22185 }
22186 arg1 = reinterpret_cast< wxDC * >(argp1);
22187 {
22188 PyThreadState* __tstate = wxPyBeginAllowThreads();
22189 result = (int)((wxDC const *)arg1)->GetMapMode();
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 resultobj = SWIG_From_int(static_cast< int >(result));
22194 return resultobj;
22195fail:
22196 return NULL;
22197}
22198
22199
22200SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22201 PyObject *resultobj = 0;
22202 wxDC *arg1 = (wxDC *) 0 ;
22203 int arg2 ;
22204 void *argp1 = 0 ;
22205 int res1 = 0 ;
22206 int val2 ;
22207 int ecode2 = 0 ;
22208 PyObject * obj0 = 0 ;
22209 PyObject * obj1 = 0 ;
22210 char * kwnames[] = {
22211 (char *) "self",(char *) "mode", NULL
22212 };
22213
22214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22216 if (!SWIG_IsOK(res1)) {
22217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22218 }
22219 arg1 = reinterpret_cast< wxDC * >(argp1);
22220 ecode2 = SWIG_AsVal_int(obj1, &val2);
22221 if (!SWIG_IsOK(ecode2)) {
22222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22223 }
22224 arg2 = static_cast< int >(val2);
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 (arg1)->SetMapMode(arg2);
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 resultobj = SWIG_Py_Void();
22232 return resultobj;
22233fail:
22234 return NULL;
22235}
22236
22237
22238SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22239 PyObject *resultobj = 0;
22240 wxDC *arg1 = (wxDC *) 0 ;
22241 double *arg2 = (double *) 0 ;
22242 double *arg3 = (double *) 0 ;
22243 void *argp1 = 0 ;
22244 int res1 = 0 ;
22245 double temp2 ;
22246 int res2 = SWIG_TMPOBJ ;
22247 double temp3 ;
22248 int res3 = SWIG_TMPOBJ ;
22249 PyObject *swig_obj[1] ;
22250
22251 arg2 = &temp2;
22252 arg3 = &temp3;
22253 if (!args) SWIG_fail;
22254 swig_obj[0] = args;
22255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22256 if (!SWIG_IsOK(res1)) {
22257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22258 }
22259 arg1 = reinterpret_cast< wxDC * >(argp1);
22260 {
22261 PyThreadState* __tstate = wxPyBeginAllowThreads();
22262 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 resultobj = SWIG_Py_Void();
22267 if (SWIG_IsTmpObj(res2)) {
22268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22269 } else {
22270 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22272 }
22273 if (SWIG_IsTmpObj(res3)) {
22274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22275 } else {
22276 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22278 }
22279 return resultobj;
22280fail:
22281 return NULL;
22282}
22283
22284
22285SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22286 PyObject *resultobj = 0;
22287 wxDC *arg1 = (wxDC *) 0 ;
22288 double arg2 ;
22289 double arg3 ;
22290 void *argp1 = 0 ;
22291 int res1 = 0 ;
22292 double val2 ;
22293 int ecode2 = 0 ;
22294 double val3 ;
22295 int ecode3 = 0 ;
22296 PyObject * obj0 = 0 ;
22297 PyObject * obj1 = 0 ;
22298 PyObject * obj2 = 0 ;
22299 char * kwnames[] = {
22300 (char *) "self",(char *) "x",(char *) "y", NULL
22301 };
22302
22303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22305 if (!SWIG_IsOK(res1)) {
22306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22307 }
22308 arg1 = reinterpret_cast< wxDC * >(argp1);
22309 ecode2 = SWIG_AsVal_double(obj1, &val2);
22310 if (!SWIG_IsOK(ecode2)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22312 }
22313 arg2 = static_cast< double >(val2);
22314 ecode3 = SWIG_AsVal_double(obj2, &val3);
22315 if (!SWIG_IsOK(ecode3)) {
22316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22317 }
22318 arg3 = static_cast< double >(val3);
22319 {
22320 PyThreadState* __tstate = wxPyBeginAllowThreads();
22321 (arg1)->SetUserScale(arg2,arg3);
22322 wxPyEndAllowThreads(__tstate);
22323 if (PyErr_Occurred()) SWIG_fail;
22324 }
22325 resultobj = SWIG_Py_Void();
22326 return resultobj;
22327fail:
22328 return NULL;
22329}
22330
22331
22332SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22333 PyObject *resultobj = 0;
22334 wxDC *arg1 = (wxDC *) 0 ;
22335 double *arg2 = (double *) 0 ;
22336 double *arg3 = (double *) 0 ;
22337 void *argp1 = 0 ;
22338 int res1 = 0 ;
22339 double temp2 ;
22340 int res2 = SWIG_TMPOBJ ;
22341 double temp3 ;
22342 int res3 = SWIG_TMPOBJ ;
22343 PyObject *swig_obj[1] ;
22344
22345 arg2 = &temp2;
22346 arg3 = &temp3;
22347 if (!args) SWIG_fail;
22348 swig_obj[0] = args;
22349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22350 if (!SWIG_IsOK(res1)) {
22351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22352 }
22353 arg1 = reinterpret_cast< wxDC * >(argp1);
22354 {
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 (arg1)->GetLogicalScale(arg2,arg3);
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 resultobj = SWIG_Py_Void();
22361 if (SWIG_IsTmpObj(res2)) {
22362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22363 } else {
22364 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22366 }
22367 if (SWIG_IsTmpObj(res3)) {
22368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22369 } else {
22370 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22372 }
22373 return resultobj;
22374fail:
22375 return NULL;
22376}
22377
22378
22379SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22380 PyObject *resultobj = 0;
22381 wxDC *arg1 = (wxDC *) 0 ;
22382 double arg2 ;
22383 double arg3 ;
22384 void *argp1 = 0 ;
22385 int res1 = 0 ;
22386 double val2 ;
22387 int ecode2 = 0 ;
22388 double val3 ;
22389 int ecode3 = 0 ;
22390 PyObject * obj0 = 0 ;
22391 PyObject * obj1 = 0 ;
22392 PyObject * obj2 = 0 ;
22393 char * kwnames[] = {
22394 (char *) "self",(char *) "x",(char *) "y", NULL
22395 };
22396
22397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22399 if (!SWIG_IsOK(res1)) {
22400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22401 }
22402 arg1 = reinterpret_cast< wxDC * >(argp1);
22403 ecode2 = SWIG_AsVal_double(obj1, &val2);
22404 if (!SWIG_IsOK(ecode2)) {
22405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22406 }
22407 arg2 = static_cast< double >(val2);
22408 ecode3 = SWIG_AsVal_double(obj2, &val3);
22409 if (!SWIG_IsOK(ecode3)) {
22410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22411 }
22412 arg3 = static_cast< double >(val3);
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 (arg1)->SetLogicalScale(arg2,arg3);
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 resultobj = SWIG_Py_Void();
22420 return resultobj;
22421fail:
22422 return NULL;
22423}
22424
22425
22426SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22427 PyObject *resultobj = 0;
22428 wxDC *arg1 = (wxDC *) 0 ;
22429 wxPoint result;
22430 void *argp1 = 0 ;
22431 int res1 = 0 ;
22432 PyObject *swig_obj[1] ;
22433
22434 if (!args) SWIG_fail;
22435 swig_obj[0] = args;
22436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22437 if (!SWIG_IsOK(res1)) {
22438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22439 }
22440 arg1 = reinterpret_cast< wxDC * >(argp1);
22441 {
22442 PyThreadState* __tstate = wxPyBeginAllowThreads();
22443 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22444 wxPyEndAllowThreads(__tstate);
22445 if (PyErr_Occurred()) SWIG_fail;
22446 }
22447 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22448 return resultobj;
22449fail:
22450 return NULL;
22451}
22452
22453
22454SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22455 PyObject *resultobj = 0;
22456 wxDC *arg1 = (wxDC *) 0 ;
22457 int *arg2 = (int *) 0 ;
22458 int *arg3 = (int *) 0 ;
22459 void *argp1 = 0 ;
22460 int res1 = 0 ;
22461 int temp2 ;
22462 int res2 = SWIG_TMPOBJ ;
22463 int temp3 ;
22464 int res3 = SWIG_TMPOBJ ;
22465 PyObject *swig_obj[1] ;
22466
22467 arg2 = &temp2;
22468 arg3 = &temp3;
22469 if (!args) SWIG_fail;
22470 swig_obj[0] = args;
22471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22472 if (!SWIG_IsOK(res1)) {
22473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22474 }
22475 arg1 = reinterpret_cast< wxDC * >(argp1);
22476 {
22477 PyThreadState* __tstate = wxPyBeginAllowThreads();
22478 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 resultobj = SWIG_Py_Void();
22483 if (SWIG_IsTmpObj(res2)) {
22484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22485 } else {
22486 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22488 }
22489 if (SWIG_IsTmpObj(res3)) {
22490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22491 } else {
22492 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22494 }
22495 return resultobj;
22496fail:
22497 return NULL;
22498}
22499
22500
22501SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22502 PyObject *resultobj = 0;
22503 wxDC *arg1 = (wxDC *) 0 ;
22504 int arg2 ;
22505 int arg3 ;
22506 void *argp1 = 0 ;
22507 int res1 = 0 ;
22508 int val2 ;
22509 int ecode2 = 0 ;
22510 int val3 ;
22511 int ecode3 = 0 ;
22512 PyObject * obj0 = 0 ;
22513 PyObject * obj1 = 0 ;
22514 PyObject * obj2 = 0 ;
22515 char * kwnames[] = {
22516 (char *) "self",(char *) "x",(char *) "y", NULL
22517 };
22518
22519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22521 if (!SWIG_IsOK(res1)) {
22522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22523 }
22524 arg1 = reinterpret_cast< wxDC * >(argp1);
22525 ecode2 = SWIG_AsVal_int(obj1, &val2);
22526 if (!SWIG_IsOK(ecode2)) {
22527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22528 }
22529 arg2 = static_cast< int >(val2);
22530 ecode3 = SWIG_AsVal_int(obj2, &val3);
22531 if (!SWIG_IsOK(ecode3)) {
22532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22533 }
22534 arg3 = static_cast< int >(val3);
22535 {
22536 PyThreadState* __tstate = wxPyBeginAllowThreads();
22537 (arg1)->SetLogicalOrigin(arg2,arg3);
22538 wxPyEndAllowThreads(__tstate);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 resultobj = SWIG_Py_Void();
22542 return resultobj;
22543fail:
22544 return NULL;
22545}
22546
22547
22548SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22549 PyObject *resultobj = 0;
22550 wxDC *arg1 = (wxDC *) 0 ;
22551 wxPoint *arg2 = 0 ;
22552 void *argp1 = 0 ;
22553 int res1 = 0 ;
22554 wxPoint temp2 ;
22555 PyObject * obj0 = 0 ;
22556 PyObject * obj1 = 0 ;
22557 char * kwnames[] = {
22558 (char *) "self",(char *) "point", NULL
22559 };
22560
22561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22563 if (!SWIG_IsOK(res1)) {
22564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22565 }
22566 arg1 = reinterpret_cast< wxDC * >(argp1);
22567 {
22568 arg2 = &temp2;
22569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22570 }
22571 {
22572 PyThreadState* __tstate = wxPyBeginAllowThreads();
22573 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22574 wxPyEndAllowThreads(__tstate);
22575 if (PyErr_Occurred()) SWIG_fail;
22576 }
22577 resultobj = SWIG_Py_Void();
22578 return resultobj;
22579fail:
22580 return NULL;
22581}
22582
22583
22584SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22585 PyObject *resultobj = 0;
22586 wxDC *arg1 = (wxDC *) 0 ;
22587 wxPoint result;
22588 void *argp1 = 0 ;
22589 int res1 = 0 ;
22590 PyObject *swig_obj[1] ;
22591
22592 if (!args) SWIG_fail;
22593 swig_obj[0] = args;
22594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22595 if (!SWIG_IsOK(res1)) {
22596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22597 }
22598 arg1 = reinterpret_cast< wxDC * >(argp1);
22599 {
22600 PyThreadState* __tstate = wxPyBeginAllowThreads();
22601 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22602 wxPyEndAllowThreads(__tstate);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 }
22605 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22606 return resultobj;
22607fail:
22608 return NULL;
22609}
22610
22611
22612SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22613 PyObject *resultobj = 0;
22614 wxDC *arg1 = (wxDC *) 0 ;
22615 int *arg2 = (int *) 0 ;
22616 int *arg3 = (int *) 0 ;
22617 void *argp1 = 0 ;
22618 int res1 = 0 ;
22619 int temp2 ;
22620 int res2 = SWIG_TMPOBJ ;
22621 int temp3 ;
22622 int res3 = SWIG_TMPOBJ ;
22623 PyObject *swig_obj[1] ;
22624
22625 arg2 = &temp2;
22626 arg3 = &temp3;
22627 if (!args) SWIG_fail;
22628 swig_obj[0] = args;
22629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22632 }
22633 arg1 = reinterpret_cast< wxDC * >(argp1);
22634 {
22635 PyThreadState* __tstate = wxPyBeginAllowThreads();
22636 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22637 wxPyEndAllowThreads(__tstate);
22638 if (PyErr_Occurred()) SWIG_fail;
22639 }
22640 resultobj = SWIG_Py_Void();
22641 if (SWIG_IsTmpObj(res2)) {
22642 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22643 } else {
22644 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22646 }
22647 if (SWIG_IsTmpObj(res3)) {
22648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22649 } else {
22650 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22652 }
22653 return resultobj;
22654fail:
22655 return NULL;
22656}
22657
22658
22659SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22660 PyObject *resultobj = 0;
22661 wxDC *arg1 = (wxDC *) 0 ;
22662 int arg2 ;
22663 int arg3 ;
22664 void *argp1 = 0 ;
22665 int res1 = 0 ;
22666 int val2 ;
22667 int ecode2 = 0 ;
22668 int val3 ;
22669 int ecode3 = 0 ;
22670 PyObject * obj0 = 0 ;
22671 PyObject * obj1 = 0 ;
22672 PyObject * obj2 = 0 ;
22673 char * kwnames[] = {
22674 (char *) "self",(char *) "x",(char *) "y", NULL
22675 };
22676
22677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22679 if (!SWIG_IsOK(res1)) {
22680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22681 }
22682 arg1 = reinterpret_cast< wxDC * >(argp1);
22683 ecode2 = SWIG_AsVal_int(obj1, &val2);
22684 if (!SWIG_IsOK(ecode2)) {
22685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22686 }
22687 arg2 = static_cast< int >(val2);
22688 ecode3 = SWIG_AsVal_int(obj2, &val3);
22689 if (!SWIG_IsOK(ecode3)) {
22690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22691 }
22692 arg3 = static_cast< int >(val3);
22693 {
22694 PyThreadState* __tstate = wxPyBeginAllowThreads();
22695 (arg1)->SetDeviceOrigin(arg2,arg3);
22696 wxPyEndAllowThreads(__tstate);
22697 if (PyErr_Occurred()) SWIG_fail;
22698 }
22699 resultobj = SWIG_Py_Void();
22700 return resultobj;
22701fail:
22702 return NULL;
22703}
22704
22705
22706SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22707 PyObject *resultobj = 0;
22708 wxDC *arg1 = (wxDC *) 0 ;
22709 wxPoint *arg2 = 0 ;
22710 void *argp1 = 0 ;
22711 int res1 = 0 ;
22712 wxPoint temp2 ;
22713 PyObject * obj0 = 0 ;
22714 PyObject * obj1 = 0 ;
22715 char * kwnames[] = {
22716 (char *) "self",(char *) "point", NULL
22717 };
22718
22719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22721 if (!SWIG_IsOK(res1)) {
22722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22723 }
22724 arg1 = reinterpret_cast< wxDC * >(argp1);
22725 {
22726 arg2 = &temp2;
22727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22728 }
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 resultobj = SWIG_Py_Void();
22736 return resultobj;
22737fail:
22738 return NULL;
22739}
22740
22741
22742SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22743 PyObject *resultobj = 0;
22744 wxDC *arg1 = (wxDC *) 0 ;
22745 bool arg2 ;
22746 bool arg3 ;
22747 void *argp1 = 0 ;
22748 int res1 = 0 ;
22749 bool val2 ;
22750 int ecode2 = 0 ;
22751 bool val3 ;
22752 int ecode3 = 0 ;
22753 PyObject * obj0 = 0 ;
22754 PyObject * obj1 = 0 ;
22755 PyObject * obj2 = 0 ;
22756 char * kwnames[] = {
22757 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22758 };
22759
22760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22762 if (!SWIG_IsOK(res1)) {
22763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22764 }
22765 arg1 = reinterpret_cast< wxDC * >(argp1);
22766 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22767 if (!SWIG_IsOK(ecode2)) {
22768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22769 }
22770 arg2 = static_cast< bool >(val2);
22771 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22772 if (!SWIG_IsOK(ecode3)) {
22773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22774 }
22775 arg3 = static_cast< bool >(val3);
22776 {
22777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22778 (arg1)->SetAxisOrientation(arg2,arg3);
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 resultobj = SWIG_Py_Void();
22783 return resultobj;
22784fail:
22785 return NULL;
22786}
22787
22788
22789SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22790 PyObject *resultobj = 0;
22791 wxDC *arg1 = (wxDC *) 0 ;
22792 int result;
22793 void *argp1 = 0 ;
22794 int res1 = 0 ;
22795 PyObject *swig_obj[1] ;
22796
22797 if (!args) SWIG_fail;
22798 swig_obj[0] = args;
22799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22800 if (!SWIG_IsOK(res1)) {
22801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22802 }
22803 arg1 = reinterpret_cast< wxDC * >(argp1);
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 resultobj = SWIG_From_int(static_cast< int >(result));
22811 return resultobj;
22812fail:
22813 return NULL;
22814}
22815
22816
22817SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22818 PyObject *resultobj = 0;
22819 wxDC *arg1 = (wxDC *) 0 ;
22820 int arg2 ;
22821 void *argp1 = 0 ;
22822 int res1 = 0 ;
22823 int val2 ;
22824 int ecode2 = 0 ;
22825 PyObject * obj0 = 0 ;
22826 PyObject * obj1 = 0 ;
22827 char * kwnames[] = {
22828 (char *) "self",(char *) "function", NULL
22829 };
22830
22831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22833 if (!SWIG_IsOK(res1)) {
22834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22835 }
22836 arg1 = reinterpret_cast< wxDC * >(argp1);
22837 ecode2 = SWIG_AsVal_int(obj1, &val2);
22838 if (!SWIG_IsOK(ecode2)) {
22839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22840 }
22841 arg2 = static_cast< int >(val2);
22842 {
22843 PyThreadState* __tstate = wxPyBeginAllowThreads();
22844 (arg1)->SetLogicalFunction(arg2);
22845 wxPyEndAllowThreads(__tstate);
22846 if (PyErr_Occurred()) SWIG_fail;
22847 }
22848 resultobj = SWIG_Py_Void();
22849 return resultobj;
22850fail:
22851 return NULL;
22852}
22853
22854
22855SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22856 PyObject *resultobj = 0;
22857 wxDC *arg1 = (wxDC *) 0 ;
22858 void *argp1 = 0 ;
22859 int res1 = 0 ;
22860 PyObject *swig_obj[1] ;
22861
22862 if (!args) SWIG_fail;
22863 swig_obj[0] = args;
22864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22865 if (!SWIG_IsOK(res1)) {
22866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22867 }
22868 arg1 = reinterpret_cast< wxDC * >(argp1);
22869 {
22870 PyThreadState* __tstate = wxPyBeginAllowThreads();
22871 (arg1)->ComputeScaleAndOrigin();
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = SWIG_Py_Void();
22876 return resultobj;
22877fail:
22878 return NULL;
22879}
22880
22881
22882SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22883 PyObject *resultobj = 0;
22884 wxDC *arg1 = (wxDC *) 0 ;
22885 int arg2 ;
22886 int arg3 ;
22887 void *argp1 = 0 ;
22888 int res1 = 0 ;
22889 int val2 ;
22890 int ecode2 = 0 ;
22891 int val3 ;
22892 int ecode3 = 0 ;
22893 PyObject * obj0 = 0 ;
22894 PyObject * obj1 = 0 ;
22895 PyObject * obj2 = 0 ;
22896 char * kwnames[] = {
22897 (char *) "self",(char *) "x",(char *) "y", NULL
22898 };
22899
22900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22902 if (!SWIG_IsOK(res1)) {
22903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22904 }
22905 arg1 = reinterpret_cast< wxDC * >(argp1);
22906 ecode2 = SWIG_AsVal_int(obj1, &val2);
22907 if (!SWIG_IsOK(ecode2)) {
22908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22909 }
22910 arg2 = static_cast< int >(val2);
22911 ecode3 = SWIG_AsVal_int(obj2, &val3);
22912 if (!SWIG_IsOK(ecode3)) {
22913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22914 }
22915 arg3 = static_cast< int >(val3);
22916 {
22917 PyThreadState* __tstate = wxPyBeginAllowThreads();
22918 (arg1)->CalcBoundingBox(arg2,arg3);
22919 wxPyEndAllowThreads(__tstate);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 }
22922 resultobj = SWIG_Py_Void();
22923 return resultobj;
22924fail:
22925 return NULL;
22926}
22927
22928
22929SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22930 PyObject *resultobj = 0;
22931 wxDC *arg1 = (wxDC *) 0 ;
22932 wxPoint *arg2 = 0 ;
22933 void *argp1 = 0 ;
22934 int res1 = 0 ;
22935 wxPoint temp2 ;
22936 PyObject * obj0 = 0 ;
22937 PyObject * obj1 = 0 ;
22938 char * kwnames[] = {
22939 (char *) "self",(char *) "point", NULL
22940 };
22941
22942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22944 if (!SWIG_IsOK(res1)) {
22945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22946 }
22947 arg1 = reinterpret_cast< wxDC * >(argp1);
22948 {
22949 arg2 = &temp2;
22950 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22951 }
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22955 wxPyEndAllowThreads(__tstate);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 resultobj = SWIG_Py_Void();
22959 return resultobj;
22960fail:
22961 return NULL;
22962}
22963
22964
22965SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22966 PyObject *resultobj = 0;
22967 wxDC *arg1 = (wxDC *) 0 ;
22968 void *argp1 = 0 ;
22969 int res1 = 0 ;
22970 PyObject *swig_obj[1] ;
22971
22972 if (!args) SWIG_fail;
22973 swig_obj[0] = args;
22974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22975 if (!SWIG_IsOK(res1)) {
22976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22977 }
22978 arg1 = reinterpret_cast< wxDC * >(argp1);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->ResetBoundingBox();
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987fail:
22988 return NULL;
22989}
22990
22991
22992SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22993 PyObject *resultobj = 0;
22994 wxDC *arg1 = (wxDC *) 0 ;
22995 int result;
22996 void *argp1 = 0 ;
22997 int res1 = 0 ;
22998 PyObject *swig_obj[1] ;
22999
23000 if (!args) SWIG_fail;
23001 swig_obj[0] = args;
23002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23003 if (!SWIG_IsOK(res1)) {
23004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23005 }
23006 arg1 = reinterpret_cast< wxDC * >(argp1);
23007 {
23008 PyThreadState* __tstate = wxPyBeginAllowThreads();
23009 result = (int)((wxDC const *)arg1)->MinX();
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 resultobj = SWIG_From_int(static_cast< int >(result));
23014 return resultobj;
23015fail:
23016 return NULL;
23017}
23018
23019
23020SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23021 PyObject *resultobj = 0;
23022 wxDC *arg1 = (wxDC *) 0 ;
23023 int result;
23024 void *argp1 = 0 ;
23025 int res1 = 0 ;
23026 PyObject *swig_obj[1] ;
23027
23028 if (!args) SWIG_fail;
23029 swig_obj[0] = args;
23030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23031 if (!SWIG_IsOK(res1)) {
23032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23033 }
23034 arg1 = reinterpret_cast< wxDC * >(argp1);
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = (int)((wxDC const *)arg1)->MaxX();
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 resultobj = SWIG_From_int(static_cast< int >(result));
23042 return resultobj;
23043fail:
23044 return NULL;
23045}
23046
23047
23048SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23049 PyObject *resultobj = 0;
23050 wxDC *arg1 = (wxDC *) 0 ;
23051 int result;
23052 void *argp1 = 0 ;
23053 int res1 = 0 ;
23054 PyObject *swig_obj[1] ;
23055
23056 if (!args) SWIG_fail;
23057 swig_obj[0] = args;
23058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23059 if (!SWIG_IsOK(res1)) {
23060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23061 }
23062 arg1 = reinterpret_cast< wxDC * >(argp1);
23063 {
23064 PyThreadState* __tstate = wxPyBeginAllowThreads();
23065 result = (int)((wxDC const *)arg1)->MinY();
23066 wxPyEndAllowThreads(__tstate);
23067 if (PyErr_Occurred()) SWIG_fail;
23068 }
23069 resultobj = SWIG_From_int(static_cast< int >(result));
23070 return resultobj;
23071fail:
23072 return NULL;
23073}
23074
23075
23076SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23077 PyObject *resultobj = 0;
23078 wxDC *arg1 = (wxDC *) 0 ;
23079 int result;
23080 void *argp1 = 0 ;
23081 int res1 = 0 ;
23082 PyObject *swig_obj[1] ;
23083
23084 if (!args) SWIG_fail;
23085 swig_obj[0] = args;
23086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23087 if (!SWIG_IsOK(res1)) {
23088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23089 }
23090 arg1 = reinterpret_cast< wxDC * >(argp1);
23091 {
23092 PyThreadState* __tstate = wxPyBeginAllowThreads();
23093 result = (int)((wxDC const *)arg1)->MaxY();
23094 wxPyEndAllowThreads(__tstate);
23095 if (PyErr_Occurred()) SWIG_fail;
23096 }
23097 resultobj = SWIG_From_int(static_cast< int >(result));
23098 return resultobj;
23099fail:
23100 return NULL;
23101}
23102
23103
23104SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23105 PyObject *resultobj = 0;
23106 wxDC *arg1 = (wxDC *) 0 ;
23107 int *arg2 = (int *) 0 ;
23108 int *arg3 = (int *) 0 ;
23109 int *arg4 = (int *) 0 ;
23110 int *arg5 = (int *) 0 ;
23111 void *argp1 = 0 ;
23112 int res1 = 0 ;
23113 int temp2 ;
23114 int res2 = SWIG_TMPOBJ ;
23115 int temp3 ;
23116 int res3 = SWIG_TMPOBJ ;
23117 int temp4 ;
23118 int res4 = SWIG_TMPOBJ ;
23119 int temp5 ;
23120 int res5 = SWIG_TMPOBJ ;
23121 PyObject *swig_obj[1] ;
23122
23123 arg2 = &temp2;
23124 arg3 = &temp3;
23125 arg4 = &temp4;
23126 arg5 = &temp5;
23127 if (!args) SWIG_fail;
23128 swig_obj[0] = args;
23129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23132 }
23133 arg1 = reinterpret_cast< wxDC * >(argp1);
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23137 wxPyEndAllowThreads(__tstate);
23138 if (PyErr_Occurred()) SWIG_fail;
23139 }
23140 resultobj = SWIG_Py_Void();
23141 if (SWIG_IsTmpObj(res2)) {
23142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23143 } else {
23144 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23146 }
23147 if (SWIG_IsTmpObj(res3)) {
23148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23149 } else {
23150 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23152 }
23153 if (SWIG_IsTmpObj(res4)) {
23154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23155 } else {
23156 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23158 }
23159 if (SWIG_IsTmpObj(res5)) {
23160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23161 } else {
23162 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23164 }
23165 return resultobj;
23166fail:
23167 return NULL;
23168}
23169
23170
b39fe951
RD
23171SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23172 PyObject *resultobj = 0;
23173 wxDC *arg1 = (wxDC *) 0 ;
23174 wxLayoutDirection result;
23175 void *argp1 = 0 ;
23176 int res1 = 0 ;
23177 PyObject *swig_obj[1] ;
23178
23179 if (!args) SWIG_fail;
23180 swig_obj[0] = args;
23181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23182 if (!SWIG_IsOK(res1)) {
23183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23184 }
23185 arg1 = reinterpret_cast< wxDC * >(argp1);
23186 {
23187 PyThreadState* __tstate = wxPyBeginAllowThreads();
23188 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23189 wxPyEndAllowThreads(__tstate);
23190 if (PyErr_Occurred()) SWIG_fail;
23191 }
23192 resultobj = SWIG_From_int(static_cast< int >(result));
23193 return resultobj;
23194fail:
23195 return NULL;
23196}
23197
23198
23199SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23200 PyObject *resultobj = 0;
23201 wxDC *arg1 = (wxDC *) 0 ;
23202 wxLayoutDirection arg2 ;
23203 void *argp1 = 0 ;
23204 int res1 = 0 ;
23205 int val2 ;
23206 int ecode2 = 0 ;
23207 PyObject * obj0 = 0 ;
23208 PyObject * obj1 = 0 ;
23209 char * kwnames[] = {
23210 (char *) "self",(char *) "dir", NULL
23211 };
23212
23213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23215 if (!SWIG_IsOK(res1)) {
23216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23217 }
23218 arg1 = reinterpret_cast< wxDC * >(argp1);
23219 ecode2 = SWIG_AsVal_int(obj1, &val2);
23220 if (!SWIG_IsOK(ecode2)) {
23221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23222 }
23223 arg2 = static_cast< wxLayoutDirection >(val2);
23224 {
23225 PyThreadState* __tstate = wxPyBeginAllowThreads();
23226 (arg1)->SetLayoutDirection(arg2);
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_Py_Void();
23231 return resultobj;
23232fail:
23233 return NULL;
23234}
23235
23236
0085ce49
RD
23237SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23238 PyObject *resultobj = 0;
23239 wxDC *arg1 = (wxDC *) 0 ;
23240 PyObject *arg2 = (PyObject *) 0 ;
23241 PyObject *arg3 = (PyObject *) 0 ;
23242 PyObject *arg4 = (PyObject *) 0 ;
23243 PyObject *result = 0 ;
23244 void *argp1 = 0 ;
23245 int res1 = 0 ;
23246 PyObject * obj0 = 0 ;
23247 PyObject * obj1 = 0 ;
23248 PyObject * obj2 = 0 ;
23249 PyObject * obj3 = 0 ;
23250 char * kwnames[] = {
23251 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23252 };
23253
23254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23258 }
23259 arg1 = reinterpret_cast< wxDC * >(argp1);
23260 arg2 = obj1;
23261 arg3 = obj2;
23262 arg4 = obj3;
23263 {
23264 PyThreadState* __tstate = wxPyBeginAllowThreads();
23265 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 resultobj = result;
23270 return resultobj;
23271fail:
23272 return NULL;
23273}
23274
23275
23276SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23277 PyObject *resultobj = 0;
23278 wxDC *arg1 = (wxDC *) 0 ;
23279 PyObject *arg2 = (PyObject *) 0 ;
23280 PyObject *arg3 = (PyObject *) 0 ;
23281 PyObject *arg4 = (PyObject *) 0 ;
23282 PyObject *result = 0 ;
23283 void *argp1 = 0 ;
23284 int res1 = 0 ;
23285 PyObject * obj0 = 0 ;
23286 PyObject * obj1 = 0 ;
23287 PyObject * obj2 = 0 ;
23288 PyObject * obj3 = 0 ;
23289 char * kwnames[] = {
23290 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23291 };
23292
23293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23295 if (!SWIG_IsOK(res1)) {
23296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23297 }
23298 arg1 = reinterpret_cast< wxDC * >(argp1);
23299 arg2 = obj1;
23300 arg3 = obj2;
23301 arg4 = obj3;
23302 {
23303 PyThreadState* __tstate = wxPyBeginAllowThreads();
23304 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23305 wxPyEndAllowThreads(__tstate);
23306 if (PyErr_Occurred()) SWIG_fail;
23307 }
23308 resultobj = result;
23309 return resultobj;
23310fail:
23311 return NULL;
23312}
23313
23314
23315SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23316 PyObject *resultobj = 0;
23317 wxDC *arg1 = (wxDC *) 0 ;
23318 PyObject *arg2 = (PyObject *) 0 ;
23319 PyObject *arg3 = (PyObject *) 0 ;
23320 PyObject *arg4 = (PyObject *) 0 ;
23321 PyObject *result = 0 ;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 PyObject * obj0 = 0 ;
23325 PyObject * obj1 = 0 ;
23326 PyObject * obj2 = 0 ;
23327 PyObject * obj3 = 0 ;
23328 char * kwnames[] = {
23329 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23330 };
23331
23332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23334 if (!SWIG_IsOK(res1)) {
23335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23336 }
23337 arg1 = reinterpret_cast< wxDC * >(argp1);
23338 arg2 = obj1;
23339 arg3 = obj2;
23340 arg4 = obj3;
23341 {
23342 PyThreadState* __tstate = wxPyBeginAllowThreads();
23343 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23344 wxPyEndAllowThreads(__tstate);
23345 if (PyErr_Occurred()) SWIG_fail;
23346 }
23347 resultobj = result;
23348 return resultobj;
23349fail:
23350 return NULL;
23351}
23352
23353
23354SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23355 PyObject *resultobj = 0;
23356 wxDC *arg1 = (wxDC *) 0 ;
23357 PyObject *arg2 = (PyObject *) 0 ;
23358 PyObject *arg3 = (PyObject *) 0 ;
23359 PyObject *arg4 = (PyObject *) 0 ;
23360 PyObject *result = 0 ;
23361 void *argp1 = 0 ;
23362 int res1 = 0 ;
23363 PyObject * obj0 = 0 ;
23364 PyObject * obj1 = 0 ;
23365 PyObject * obj2 = 0 ;
23366 PyObject * obj3 = 0 ;
23367 char * kwnames[] = {
23368 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23369 };
23370
23371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23373 if (!SWIG_IsOK(res1)) {
23374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23375 }
23376 arg1 = reinterpret_cast< wxDC * >(argp1);
23377 arg2 = obj1;
23378 arg3 = obj2;
23379 arg4 = obj3;
23380 {
23381 PyThreadState* __tstate = wxPyBeginAllowThreads();
23382 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23383 wxPyEndAllowThreads(__tstate);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 }
23386 resultobj = result;
23387 return resultobj;
23388fail:
23389 return NULL;
23390}
23391
23392
23393SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23394 PyObject *resultobj = 0;
23395 wxDC *arg1 = (wxDC *) 0 ;
23396 PyObject *arg2 = (PyObject *) 0 ;
23397 PyObject *arg3 = (PyObject *) 0 ;
23398 PyObject *arg4 = (PyObject *) 0 ;
23399 PyObject *result = 0 ;
23400 void *argp1 = 0 ;
23401 int res1 = 0 ;
23402 PyObject * obj0 = 0 ;
23403 PyObject * obj1 = 0 ;
23404 PyObject * obj2 = 0 ;
23405 PyObject * obj3 = 0 ;
23406 char * kwnames[] = {
23407 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23408 };
23409
23410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23412 if (!SWIG_IsOK(res1)) {
23413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23414 }
23415 arg1 = reinterpret_cast< wxDC * >(argp1);
23416 arg2 = obj1;
23417 arg3 = obj2;
23418 arg4 = obj3;
23419 {
23420 PyThreadState* __tstate = wxPyBeginAllowThreads();
23421 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23422 wxPyEndAllowThreads(__tstate);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 }
23425 resultobj = result;
23426 return resultobj;
23427fail:
23428 return NULL;
23429}
23430
23431
23432SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23433 PyObject *resultobj = 0;
23434 wxDC *arg1 = (wxDC *) 0 ;
23435 PyObject *arg2 = (PyObject *) 0 ;
23436 PyObject *arg3 = (PyObject *) 0 ;
23437 PyObject *arg4 = (PyObject *) 0 ;
23438 PyObject *arg5 = (PyObject *) 0 ;
23439 PyObject *result = 0 ;
23440 void *argp1 = 0 ;
23441 int res1 = 0 ;
23442 PyObject * obj0 = 0 ;
23443 PyObject * obj1 = 0 ;
23444 PyObject * obj2 = 0 ;
23445 PyObject * obj3 = 0 ;
23446 PyObject * obj4 = 0 ;
23447 char * kwnames[] = {
23448 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23449 };
23450
23451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23453 if (!SWIG_IsOK(res1)) {
23454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23455 }
23456 arg1 = reinterpret_cast< wxDC * >(argp1);
23457 arg2 = obj1;
23458 arg3 = obj2;
23459 arg4 = obj3;
23460 arg5 = obj4;
23461 {
23462 PyThreadState* __tstate = wxPyBeginAllowThreads();
23463 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23464 wxPyEndAllowThreads(__tstate);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 }
23467 resultobj = result;
23468 return resultobj;
23469fail:
23470 return NULL;
23471}
23472
23473
23474SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23475 PyObject *obj;
23476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23477 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23478 return SWIG_Py_Void();
23479}
23480
70d7cb34
RD
23481SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23482 PyObject *resultobj = 0;
23483 wxDC *arg1 = 0 ;
23484 wxColour *arg2 = 0 ;
23485 wxDCTextColourChanger *result = 0 ;
23486 void *argp1 = 0 ;
23487 int res1 = 0 ;
23488 wxColour temp2 ;
23489 PyObject * obj0 = 0 ;
23490 PyObject * obj1 = 0 ;
23491 char * kwnames[] = {
23492 (char *) "dc",(char *) "col", NULL
23493 };
23494
23495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23496 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23499 }
23500 if (!argp1) {
23501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23502 }
23503 arg1 = reinterpret_cast< wxDC * >(argp1);
23504 {
23505 arg2 = &temp2;
23506 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23507 }
23508 {
23509 PyThreadState* __tstate = wxPyBeginAllowThreads();
23510 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23511 wxPyEndAllowThreads(__tstate);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 }
23514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23515 return resultobj;
23516fail:
23517 return NULL;
23518}
23519
23520
23521SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23522 PyObject *resultobj = 0;
23523 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23524 void *argp1 = 0 ;
23525 int res1 = 0 ;
23526 PyObject *swig_obj[1] ;
23527
23528 if (!args) SWIG_fail;
23529 swig_obj[0] = args;
23530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23531 if (!SWIG_IsOK(res1)) {
23532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23533 }
23534 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23535 {
23536 PyThreadState* __tstate = wxPyBeginAllowThreads();
23537 delete arg1;
23538
23539 wxPyEndAllowThreads(__tstate);
23540 if (PyErr_Occurred()) SWIG_fail;
23541 }
23542 resultobj = SWIG_Py_Void();
23543 return resultobj;
23544fail:
23545 return NULL;
23546}
23547
23548
23549SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23550 PyObject *obj;
23551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23552 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23553 return SWIG_Py_Void();
23554}
23555
23556SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23557 return SWIG_Python_InitShadowInstance(args);
23558}
23559
23560SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23561 PyObject *resultobj = 0;
23562 wxDC *arg1 = 0 ;
23563 wxPen *arg2 = 0 ;
23564 wxDCPenChanger *result = 0 ;
23565 void *argp1 = 0 ;
23566 int res1 = 0 ;
23567 void *argp2 = 0 ;
23568 int res2 = 0 ;
23569 PyObject * obj0 = 0 ;
23570 PyObject * obj1 = 0 ;
23571 char * kwnames[] = {
23572 (char *) "dc",(char *) "pen", NULL
23573 };
23574
23575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23576 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23577 if (!SWIG_IsOK(res1)) {
23578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23579 }
23580 if (!argp1) {
23581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23582 }
23583 arg1 = reinterpret_cast< wxDC * >(argp1);
23584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23585 if (!SWIG_IsOK(res2)) {
23586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23587 }
23588 if (!argp2) {
23589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23590 }
23591 arg2 = reinterpret_cast< wxPen * >(argp2);
23592 {
23593 PyThreadState* __tstate = wxPyBeginAllowThreads();
23594 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23595 wxPyEndAllowThreads(__tstate);
23596 if (PyErr_Occurred()) SWIG_fail;
23597 }
23598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23599 return resultobj;
23600fail:
23601 return NULL;
23602}
23603
23604
23605SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23606 PyObject *resultobj = 0;
23607 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23608 void *argp1 = 0 ;
23609 int res1 = 0 ;
23610 PyObject *swig_obj[1] ;
23611
23612 if (!args) SWIG_fail;
23613 swig_obj[0] = args;
23614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23615 if (!SWIG_IsOK(res1)) {
23616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23617 }
23618 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 delete arg1;
23622
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 resultobj = SWIG_Py_Void();
23627 return resultobj;
23628fail:
23629 return NULL;
23630}
23631
23632
23633SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23634 PyObject *obj;
23635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23636 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23637 return SWIG_Py_Void();
23638}
23639
23640SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23641 return SWIG_Python_InitShadowInstance(args);
23642}
23643
23644SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23645 PyObject *resultobj = 0;
23646 wxDC *arg1 = 0 ;
23647 wxBrush *arg2 = 0 ;
23648 wxDCBrushChanger *result = 0 ;
23649 void *argp1 = 0 ;
23650 int res1 = 0 ;
23651 void *argp2 = 0 ;
23652 int res2 = 0 ;
23653 PyObject * obj0 = 0 ;
23654 PyObject * obj1 = 0 ;
23655 char * kwnames[] = {
23656 (char *) "dc",(char *) "brush", NULL
23657 };
23658
23659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23660 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23661 if (!SWIG_IsOK(res1)) {
23662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23663 }
23664 if (!argp1) {
23665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23666 }
23667 arg1 = reinterpret_cast< wxDC * >(argp1);
23668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23669 if (!SWIG_IsOK(res2)) {
23670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23671 }
23672 if (!argp2) {
23673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23674 }
23675 arg2 = reinterpret_cast< wxBrush * >(argp2);
23676 {
23677 PyThreadState* __tstate = wxPyBeginAllowThreads();
23678 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23683 return resultobj;
23684fail:
23685 return NULL;
23686}
23687
23688
23689SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23690 PyObject *resultobj = 0;
23691 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23692 void *argp1 = 0 ;
23693 int res1 = 0 ;
23694 PyObject *swig_obj[1] ;
23695
23696 if (!args) SWIG_fail;
23697 swig_obj[0] = args;
23698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23699 if (!SWIG_IsOK(res1)) {
23700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23701 }
23702 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23703 {
23704 PyThreadState* __tstate = wxPyBeginAllowThreads();
23705 delete arg1;
23706
23707 wxPyEndAllowThreads(__tstate);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 resultobj = SWIG_Py_Void();
23711 return resultobj;
23712fail:
23713 return NULL;
23714}
23715
23716
23717SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23718 PyObject *obj;
23719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23720 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23721 return SWIG_Py_Void();
23722}
23723
23724SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23725 return SWIG_Python_InitShadowInstance(args);
23726}
23727
23728SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23729 PyObject *resultobj = 0;
23730 wxDC *arg1 = 0 ;
23731 wxRegion *arg2 = 0 ;
23732 wxDCClipper *result = 0 ;
23733 void *argp1 = 0 ;
23734 int res1 = 0 ;
23735 void *argp2 = 0 ;
23736 int res2 = 0 ;
23737
23738 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23740 if (!SWIG_IsOK(res1)) {
23741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23742 }
23743 if (!argp1) {
23744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23745 }
23746 arg1 = reinterpret_cast< wxDC * >(argp1);
23747 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23748 if (!SWIG_IsOK(res2)) {
23749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23750 }
23751 if (!argp2) {
23752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23753 }
23754 arg2 = reinterpret_cast< wxRegion * >(argp2);
23755 {
23756 PyThreadState* __tstate = wxPyBeginAllowThreads();
23757 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23758 wxPyEndAllowThreads(__tstate);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 }
23761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23762 return resultobj;
23763fail:
23764 return NULL;
23765}
23766
23767
23768SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23769 PyObject *resultobj = 0;
23770 wxDC *arg1 = 0 ;
23771 wxRect *arg2 = 0 ;
23772 wxDCClipper *result = 0 ;
23773 void *argp1 = 0 ;
23774 int res1 = 0 ;
23775 wxRect temp2 ;
23776
23777 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23779 if (!SWIG_IsOK(res1)) {
23780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23781 }
23782 if (!argp1) {
23783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23784 }
23785 arg1 = reinterpret_cast< wxDC * >(argp1);
23786 {
23787 arg2 = &temp2;
23788 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23789 }
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23797 return resultobj;
23798fail:
23799 return NULL;
23800}
23801
23802
23803SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23804 PyObject *resultobj = 0;
23805 wxDC *arg1 = 0 ;
23806 int arg2 ;
23807 int arg3 ;
23808 int arg4 ;
23809 int arg5 ;
23810 wxDCClipper *result = 0 ;
23811 void *argp1 = 0 ;
23812 int res1 = 0 ;
23813 int val2 ;
23814 int ecode2 = 0 ;
23815 int val3 ;
23816 int ecode3 = 0 ;
23817 int val4 ;
23818 int ecode4 = 0 ;
23819 int val5 ;
23820 int ecode5 = 0 ;
23821
23822 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23824 if (!SWIG_IsOK(res1)) {
23825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23826 }
23827 if (!argp1) {
23828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23829 }
23830 arg1 = reinterpret_cast< wxDC * >(argp1);
23831 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23832 if (!SWIG_IsOK(ecode2)) {
23833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23834 }
23835 arg2 = static_cast< int >(val2);
23836 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23837 if (!SWIG_IsOK(ecode3)) {
23838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23839 }
23840 arg3 = static_cast< int >(val3);
23841 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23842 if (!SWIG_IsOK(ecode4)) {
23843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23844 }
23845 arg4 = static_cast< int >(val4);
23846 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23847 if (!SWIG_IsOK(ecode5)) {
23848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23849 }
23850 arg5 = static_cast< int >(val5);
23851 {
23852 PyThreadState* __tstate = wxPyBeginAllowThreads();
23853 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23854 wxPyEndAllowThreads(__tstate);
23855 if (PyErr_Occurred()) SWIG_fail;
23856 }
23857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23858 return resultobj;
23859fail:
23860 return NULL;
23861}
23862
23863
23864SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23865 int argc;
23866 PyObject *argv[6];
23867
23868 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23869 --argc;
23870 if (argc == 2) {
23871 int _v = 0;
23872 {
23873 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23874 _v = SWIG_CheckState(res);
23875 }
23876 if (!_v) goto check_1;
23877 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23878 }
23879check_1:
23880
23881 if (argc == 2) {
23882 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23883 }
23884 if (argc == 5) {
23885 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23886 }
23887
23888fail:
23889 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23890 return NULL;
23891}
23892
23893
23894SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23895 PyObject *resultobj = 0;
23896 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 PyObject *swig_obj[1] ;
23900
23901 if (!args) SWIG_fail;
23902 swig_obj[0] = args;
23903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23904 if (!SWIG_IsOK(res1)) {
23905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23906 }
23907 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 delete arg1;
23911
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 resultobj = SWIG_Py_Void();
23916 return resultobj;
23917fail:
23918 return NULL;
23919}
23920
23921
23922SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23923 PyObject *obj;
23924 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23925 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23926 return SWIG_Py_Void();
23927}
23928
23929SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23930 return SWIG_Python_InitShadowInstance(args);
23931}
23932
24f6c4e8
RD
23933SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23934 PyObject *resultobj = 0;
23935 wxScreenDC *result = 0 ;
23936
23937 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23938 {
23939 if (!wxPyCheckForApp()) SWIG_fail;
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 result = (wxScreenDC *)new wxScreenDC();
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23946 return resultobj;
23947fail:
23948 return NULL;
23949}
23950
23951
23952SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj = 0;
23954 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23955 wxWindow *arg2 = (wxWindow *) 0 ;
23956 bool result;
23957 void *argp1 = 0 ;
23958 int res1 = 0 ;
23959 void *argp2 = 0 ;
23960 int res2 = 0 ;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 char * kwnames[] = {
23964 (char *) "self",(char *) "window", NULL
23965 };
23966
23967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23969 if (!SWIG_IsOK(res1)) {
23970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23971 }
23972 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23973 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23974 if (!SWIG_IsOK(res2)) {
23975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23976 }
23977 arg2 = reinterpret_cast< wxWindow * >(argp2);
23978 {
23979 PyThreadState* __tstate = wxPyBeginAllowThreads();
23980 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 {
23985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23986 }
23987 return resultobj;
23988fail:
23989 return NULL;
23990}
23991
23992
23993SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23994 PyObject *resultobj = 0;
23995 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23996 wxRect *arg2 = (wxRect *) NULL ;
23997 bool result;
23998 void *argp1 = 0 ;
23999 int res1 = 0 ;
24000 void *argp2 = 0 ;
24001 int res2 = 0 ;
24002 PyObject * obj0 = 0 ;
24003 PyObject * obj1 = 0 ;
24004 char * kwnames[] = {
24005 (char *) "self",(char *) "rect", NULL
24006 };
24007
24008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24010 if (!SWIG_IsOK(res1)) {
24011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24012 }
24013 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24014 if (obj1) {
24015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24016 if (!SWIG_IsOK(res2)) {
24017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24018 }
24019 arg2 = reinterpret_cast< wxRect * >(argp2);
24020 }
24021 {
24022 PyThreadState* __tstate = wxPyBeginAllowThreads();
24023 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24024 wxPyEndAllowThreads(__tstate);
24025 if (PyErr_Occurred()) SWIG_fail;
24026 }
24027 {
24028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24029 }
24030 return resultobj;
24031fail:
24032 return NULL;
24033}
24034
24035
24036SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24037 PyObject *resultobj = 0;
24038 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24039 bool result;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 PyObject *swig_obj[1] ;
24043
24044 if (!args) SWIG_fail;
24045 swig_obj[0] = args;
24046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24047 if (!SWIG_IsOK(res1)) {
24048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24049 }
24050 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (bool)(arg1)->EndDrawingOnTop();
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 {
24058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24059 }
24060 return resultobj;
24061fail:
24062 return NULL;
24063}
24064
24065
24066SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24067 PyObject *obj;
24068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24069 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24070 return SWIG_Py_Void();
24071}
24072
24073SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24074 return SWIG_Python_InitShadowInstance(args);
24075}
24076
24077SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24078 PyObject *resultobj = 0;
24079 wxWindow *arg1 = (wxWindow *) 0 ;
24080 wxWindowDC *result = 0 ;
24081 void *argp1 = 0 ;
24082 int res1 = 0 ;
24083 PyObject * obj0 = 0 ;
24084 char * kwnames[] = {
24085 (char *) "win", NULL
24086 };
24087
24088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24090 if (!SWIG_IsOK(res1)) {
24091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24092 }
24093 arg1 = reinterpret_cast< wxWindow * >(argp1);
24094 {
24095 if (!wxPyCheckForApp()) SWIG_fail;
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 result = (wxWindowDC *)new wxWindowDC(arg1);
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24102 return resultobj;
24103fail:
24104 return NULL;
24105}
24106
24107
24108SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24109 PyObject *obj;
24110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24111 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24112 return SWIG_Py_Void();
24113}
24114
24115SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24116 return SWIG_Python_InitShadowInstance(args);
24117}
24118
24119SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24120 PyObject *resultobj = 0;
24121 wxWindow *arg1 = (wxWindow *) 0 ;
24122 wxClientDC *result = 0 ;
24123 void *argp1 = 0 ;
24124 int res1 = 0 ;
24125 PyObject * obj0 = 0 ;
24126 char * kwnames[] = {
24127 (char *) "win", NULL
24128 };
24129
24130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24132 if (!SWIG_IsOK(res1)) {
24133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24134 }
24135 arg1 = reinterpret_cast< wxWindow * >(argp1);
24136 {
24137 if (!wxPyCheckForApp()) SWIG_fail;
24138 PyThreadState* __tstate = wxPyBeginAllowThreads();
24139 result = (wxClientDC *)new wxClientDC(arg1);
24140 wxPyEndAllowThreads(__tstate);
24141 if (PyErr_Occurred()) SWIG_fail;
24142 }
24143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24144 return resultobj;
24145fail:
24146 return NULL;
24147}
24148
24149
24150SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24151 PyObject *obj;
24152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24153 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24154 return SWIG_Py_Void();
24155}
24156
24157SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24158 return SWIG_Python_InitShadowInstance(args);
24159}
24160
24161SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24162 PyObject *resultobj = 0;
24163 wxWindow *arg1 = (wxWindow *) 0 ;
24164 wxPaintDC *result = 0 ;
24165 void *argp1 = 0 ;
24166 int res1 = 0 ;
24167 PyObject * obj0 = 0 ;
24168 char * kwnames[] = {
24169 (char *) "win", NULL
24170 };
24171
24172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24174 if (!SWIG_IsOK(res1)) {
24175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24176 }
24177 arg1 = reinterpret_cast< wxWindow * >(argp1);
24178 {
24179 if (!wxPyCheckForApp()) SWIG_fail;
24180 PyThreadState* __tstate = wxPyBeginAllowThreads();
24181 result = (wxPaintDC *)new wxPaintDC(arg1);
24182 wxPyEndAllowThreads(__tstate);
24183 if (PyErr_Occurred()) SWIG_fail;
24184 }
24185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24186 return resultobj;
24187fail:
24188 return NULL;
24189}
24190
24191
24192SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24193 PyObject *obj;
24194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24195 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24196 return SWIG_Py_Void();
24197}
24198
24199SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24200 return SWIG_Python_InitShadowInstance(args);
24201}
24202
26c4d26f
RD
24203SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24204 PyObject *resultobj = 0;
24205 wxBitmap &arg1_defvalue = wxNullBitmap ;
24206 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24207 wxMemoryDC *result = 0 ;
24208 void *argp1 = 0 ;
24209 int res1 = 0 ;
24210 PyObject * obj0 = 0 ;
24211 char * kwnames[] = {
24212 (char *) "bitmap", NULL
24213 };
24214
24215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24216 if (obj0) {
24217 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24218 if (!SWIG_IsOK(res1)) {
24219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24220 }
24221 if (!argp1) {
24222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24223 }
24224 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24225 }
24226 {
24227 if (!wxPyCheckForApp()) SWIG_fail;
24228 PyThreadState* __tstate = wxPyBeginAllowThreads();
24229 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24230 wxPyEndAllowThreads(__tstate);
24231 if (PyErr_Occurred()) SWIG_fail;
24232 }
24233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24234 return resultobj;
24235fail:
24236 return NULL;
24237}
24238
24239
24240SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24241 PyObject *resultobj = 0;
24242 wxDC *arg1 = (wxDC *) 0 ;
24243 wxMemoryDC *result = 0 ;
24244 void *argp1 = 0 ;
24245 int res1 = 0 ;
24246 PyObject * obj0 = 0 ;
24247 char * kwnames[] = {
24248 (char *) "oldDC", NULL
24249 };
24250
24251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24255 }
24256 arg1 = reinterpret_cast< wxDC * >(argp1);
24257 {
24258 if (!wxPyCheckForApp()) SWIG_fail;
24259 PyThreadState* __tstate = wxPyBeginAllowThreads();
24260 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24261 wxPyEndAllowThreads(__tstate);
24262 if (PyErr_Occurred()) SWIG_fail;
24263 }
24264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24265 return resultobj;
24266fail:
24267 return NULL;
24268}
24269
24270
24271SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24272 PyObject *resultobj = 0;
24273 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24274 wxBitmap *arg2 = 0 ;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 void *argp2 = 0 ;
24278 int res2 = 0 ;
24279 PyObject * obj0 = 0 ;
24280 PyObject * obj1 = 0 ;
24281 char * kwnames[] = {
24282 (char *) "self",(char *) "bitmap", NULL
24283 };
24284
24285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24287 if (!SWIG_IsOK(res1)) {
24288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24289 }
24290 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24292 if (!SWIG_IsOK(res2)) {
24293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24294 }
24295 if (!argp2) {
24296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24297 }
24298 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24299 {
24300 PyThreadState* __tstate = wxPyBeginAllowThreads();
24301 (arg1)->SelectObject(*arg2);
24302 wxPyEndAllowThreads(__tstate);
24303 if (PyErr_Occurred()) SWIG_fail;
24304 }
24305 resultobj = SWIG_Py_Void();
24306 return resultobj;
24307fail:
24308 return NULL;
24309}
24310
24311
24312SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24313 PyObject *resultobj = 0;
24314 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24315 wxBitmap *arg2 = 0 ;
24316 void *argp1 = 0 ;
24317 int res1 = 0 ;
24318 void *argp2 = 0 ;
24319 int res2 = 0 ;
24320 PyObject * obj0 = 0 ;
24321 PyObject * obj1 = 0 ;
24322 char * kwnames[] = {
24323 (char *) "self",(char *) "bmp", NULL
24324 };
24325
24326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24330 }
24331 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24333 if (!SWIG_IsOK(res2)) {
24334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24335 }
24336 if (!argp2) {
24337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24338 }
24339 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24340 {
24341 PyThreadState* __tstate = wxPyBeginAllowThreads();
24342 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24343 wxPyEndAllowThreads(__tstate);
24344 if (PyErr_Occurred()) SWIG_fail;
24345 }
24346 resultobj = SWIG_Py_Void();
24347 return resultobj;
24348fail:
24349 return NULL;
24350}
24351
24352
24353SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24354 PyObject *obj;
24355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24356 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24357 return SWIG_Py_Void();
24358}
24359
24360SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24361 return SWIG_Python_InitShadowInstance(args);
24362}
24363
0085ce49
RD
24364SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24365 PyObject *resultobj = 0;
24366 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24367 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24368 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24369 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24370 wxBufferedDC *result = 0 ;
24371 void *argp1 = 0 ;
24372 int res1 = 0 ;
24373 void *argp2 = 0 ;
24374 int res2 = 0 ;
24375 int val3 ;
24376 int ecode3 = 0 ;
24377
24378 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24380 if (!SWIG_IsOK(res1)) {
24381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24382 }
24383 arg1 = reinterpret_cast< wxDC * >(argp1);
24384 if (swig_obj[1]) {
b6df5cf9 24385 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24386 if (!SWIG_IsOK(res2)) {
b6df5cf9 24387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24388 }
0085ce49 24389 if (!argp2) {
b6df5cf9 24390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24391 }
0085ce49
RD
24392 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24393 }
24394 if (swig_obj[2]) {
24395 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24396 if (!SWIG_IsOK(ecode3)) {
24397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24398 }
24399 arg3 = static_cast< int >(val3);
24400 }
24401 {
24402 if (!wxPyCheckForApp()) SWIG_fail;
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24404 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
0085ce49
RD
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24409 return resultobj;
24410fail:
24411 return NULL;
24412}
24413
24414
24415SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24416 PyObject *resultobj = 0;
24417 wxDC *arg1 = (wxDC *) 0 ;
24418 wxSize *arg2 = 0 ;
24419 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24420 wxBufferedDC *result = 0 ;
24421 void *argp1 = 0 ;
24422 int res1 = 0 ;
24423 wxSize temp2 ;
24424 int val3 ;
24425 int ecode3 = 0 ;
24426
24427 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24429 if (!SWIG_IsOK(res1)) {
24430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24431 }
24432 arg1 = reinterpret_cast< wxDC * >(argp1);
24433 {
24434 arg2 = &temp2;
24435 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24436 }
24437 if (swig_obj[2]) {
24438 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24439 if (!SWIG_IsOK(ecode3)) {
24440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24441 }
24442 arg3 = static_cast< int >(val3);
24443 }
24444 {
24445 if (!wxPyCheckForApp()) SWIG_fail;
24446 PyThreadState* __tstate = wxPyBeginAllowThreads();
24447 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24448 wxPyEndAllowThreads(__tstate);
24449 if (PyErr_Occurred()) SWIG_fail;
24450 }
24451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24452 return resultobj;
24453fail:
24454 return NULL;
24455}
24456
24457
24458SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24459 int argc;
8e99bda9 24460 PyObject *argv[4];
0085ce49 24461
8e99bda9 24462 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
24463 --argc;
24464 if ((argc >= 1) && (argc <= 3)) {
24465 int _v = 0;
24466 if (argc > 1) {
24467 {
b6df5cf9
RD
24468 void *vptr = 0;
24469 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
0085ce49
RD
24470 _v = SWIG_CheckState(res);
24471 }
24472 if (!_v) goto check_1;
093d3ff1 24473 }
0085ce49
RD
24474 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24475 }
24476check_1:
24477
24478 if ((argc >= 2) && (argc <= 3)) {
24479 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24480 }
24481
24482fail:
24483 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24484 return NULL;
24485}
24486
24487
24488SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24489 PyObject *resultobj = 0;
24490 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24491 void *argp1 = 0 ;
24492 int res1 = 0 ;
24493 PyObject *swig_obj[1] ;
24494
24495 if (!args) SWIG_fail;
24496 swig_obj[0] = args;
24497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24498 if (!SWIG_IsOK(res1)) {
24499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24500 }
24501 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 delete arg1;
24505
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 resultobj = SWIG_Py_Void();
24510 return resultobj;
24511fail:
24512 return NULL;
24513}
24514
24515
24516SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24517 PyObject *resultobj = 0;
24518 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24519 void *argp1 = 0 ;
24520 int res1 = 0 ;
24521 PyObject *swig_obj[1] ;
24522
24523 if (!args) SWIG_fail;
24524 swig_obj[0] = args;
24525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24526 if (!SWIG_IsOK(res1)) {
24527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24528 }
24529 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 (arg1)->UnMask();
24533 wxPyEndAllowThreads(__tstate);
24534 if (PyErr_Occurred()) SWIG_fail;
24535 }
24536 resultobj = SWIG_Py_Void();
24537 return resultobj;
24538fail:
24539 return NULL;
24540}
24541
24542
b6df5cf9
RD
24543SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj = 0;
24545 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24546 int arg2 ;
24547 void *argp1 = 0 ;
24548 int res1 = 0 ;
24549 int val2 ;
24550 int ecode2 = 0 ;
24551 PyObject * obj0 = 0 ;
24552 PyObject * obj1 = 0 ;
24553 char * kwnames[] = {
24554 (char *) "self",(char *) "style", NULL
24555 };
24556
24557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24559 if (!SWIG_IsOK(res1)) {
24560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24561 }
24562 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24563 ecode2 = SWIG_AsVal_int(obj1, &val2);
24564 if (!SWIG_IsOK(ecode2)) {
24565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24566 }
24567 arg2 = static_cast< int >(val2);
24568 {
24569 PyThreadState* __tstate = wxPyBeginAllowThreads();
24570 (arg1)->SetStyle(arg2);
24571 wxPyEndAllowThreads(__tstate);
24572 if (PyErr_Occurred()) SWIG_fail;
24573 }
24574 resultobj = SWIG_Py_Void();
24575 return resultobj;
24576fail:
24577 return NULL;
24578}
24579
24580
24581SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24582 PyObject *resultobj = 0;
24583 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24584 int result;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 PyObject *swig_obj[1] ;
24588
24589 if (!args) SWIG_fail;
24590 swig_obj[0] = args;
24591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24594 }
24595 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 resultobj = SWIG_From_int(static_cast< int >(result));
24603 return resultobj;
24604fail:
24605 return NULL;
24606}
24607
24608
0085ce49
RD
24609SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24610 PyObject *obj;
24611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24612 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24613 return SWIG_Py_Void();
24614}
24615
24616SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24617 return SWIG_Python_InitShadowInstance(args);
24618}
24619
24620SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24621 PyObject *resultobj = 0;
24622 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24623 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24624 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24625 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24626 wxBufferedPaintDC *result = 0 ;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 void *argp2 = 0 ;
24630 int res2 = 0 ;
24631 int val3 ;
24632 int ecode3 = 0 ;
24633 PyObject * obj0 = 0 ;
24634 PyObject * obj1 = 0 ;
24635 PyObject * obj2 = 0 ;
24636 char * kwnames[] = {
24637 (char *) "window",(char *) "buffer",(char *) "style", NULL
24638 };
24639
24640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24642 if (!SWIG_IsOK(res1)) {
24643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24644 }
24645 arg1 = reinterpret_cast< wxWindow * >(argp1);
24646 if (obj1) {
b6df5cf9 24647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24648 if (!SWIG_IsOK(res2)) {
b6df5cf9 24649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24650 }
0085ce49 24651 if (!argp2) {
b6df5cf9 24652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24653 }
0085ce49
RD
24654 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24655 }
24656 if (obj2) {
24657 ecode3 = SWIG_AsVal_int(obj2, &val3);
24658 if (!SWIG_IsOK(ecode3)) {
24659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24660 }
24661 arg3 = static_cast< int >(val3);
24662 }
24663 {
24664 if (!wxPyCheckForApp()) SWIG_fail;
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24666 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
0085ce49
RD
24667 wxPyEndAllowThreads(__tstate);
24668 if (PyErr_Occurred()) SWIG_fail;
24669 }
24670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24671 return resultobj;
24672fail:
24673 return NULL;
24674}
24675
24676
24677SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24678 PyObject *obj;
24679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24680 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24681 return SWIG_Py_Void();
24682}
24683
24684SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24685 return SWIG_Python_InitShadowInstance(args);
24686}
24687
24f6c4e8 24688SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
24689 PyObject *resultobj = 0;
24690 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24691 wxAutoBufferedPaintDC *result = 0 ;
0085ce49
RD
24692 void *argp1 = 0 ;
24693 int res1 = 0 ;
24694 PyObject * obj0 = 0 ;
24695 char * kwnames[] = {
24696 (char *) "win", NULL
24697 };
24698
24f6c4e8 24699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
24700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24701 if (!SWIG_IsOK(res1)) {
24f6c4e8 24702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
24703 }
24704 arg1 = reinterpret_cast< wxWindow * >(argp1);
24705 {
0085ce49 24706 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24707 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
0085ce49
RD
24708 wxPyEndAllowThreads(__tstate);
24709 if (PyErr_Occurred()) SWIG_fail;
24710 }
24f6c4e8 24711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
24712 return resultobj;
24713fail:
24714 return NULL;
24715}
24716
24717
24f6c4e8 24718SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24719 PyObject *obj;
24720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24721 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
24722 return SWIG_Py_Void();
24723}
24724
24f6c4e8 24725SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24726 return SWIG_Python_InitShadowInstance(args);
24727}
24728
8e99bda9
RD
24729SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj = 0;
24731 wxWindow *arg1 = (wxWindow *) 0 ;
24732 wxDC *result = 0 ;
24733 void *argp1 = 0 ;
24734 int res1 = 0 ;
24735 PyObject * obj0 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "window", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24742 if (!SWIG_IsOK(res1)) {
24743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24744 }
24745 arg1 = reinterpret_cast< wxWindow * >(argp1);
24746 {
24747 PyThreadState* __tstate = wxPyBeginAllowThreads();
24748 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24749 wxPyEndAllowThreads(__tstate);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 {
24753 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24754 }
24755 return resultobj;
24756fail:
24757 return NULL;
24758}
24759
24760
0085ce49
RD
24761SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24762 PyObject *resultobj = 0;
24763 wxDC *arg1 = 0 ;
24764 bool arg2 ;
24765 wxMirrorDC *result = 0 ;
24766 void *argp1 = 0 ;
24767 int res1 = 0 ;
24768 bool val2 ;
24769 int ecode2 = 0 ;
24770 PyObject * obj0 = 0 ;
24771 PyObject * obj1 = 0 ;
24772 char * kwnames[] = {
24773 (char *) "dc",(char *) "mirror", NULL
24774 };
24775
24776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24777 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24778 if (!SWIG_IsOK(res1)) {
24779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24780 }
24781 if (!argp1) {
24782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24783 }
24784 arg1 = reinterpret_cast< wxDC * >(argp1);
24785 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24786 if (!SWIG_IsOK(ecode2)) {
24787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24788 }
24789 arg2 = static_cast< bool >(val2);
24790 {
24791 if (!wxPyCheckForApp()) SWIG_fail;
24792 PyThreadState* __tstate = wxPyBeginAllowThreads();
24793 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24798 return resultobj;
24799fail:
24800 return NULL;
24801}
24802
24803
24804SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24805 PyObject *obj;
24806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24807 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24808 return SWIG_Py_Void();
24809}
24810
24811SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24812 return SWIG_Python_InitShadowInstance(args);
24813}
24814
24815SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24816 PyObject *resultobj = 0;
24817 wxPrintData *arg1 = 0 ;
24818 wxPostScriptDC *result = 0 ;
24819 void *argp1 = 0 ;
24820 int res1 = 0 ;
24821 PyObject * obj0 = 0 ;
24822 char * kwnames[] = {
24823 (char *) "printData", NULL
24824 };
24825
24826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24827 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24828 if (!SWIG_IsOK(res1)) {
24829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24830 }
24831 if (!argp1) {
24832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24833 }
24834 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24835 {
24836 if (!wxPyCheckForApp()) SWIG_fail;
24837 PyThreadState* __tstate = wxPyBeginAllowThreads();
24838 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24839 wxPyEndAllowThreads(__tstate);
24840 if (PyErr_Occurred()) SWIG_fail;
24841 }
24842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24843 return resultobj;
24844fail:
24845 return NULL;
24846}
24847
24848
24849SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24850 PyObject *resultobj = 0;
24851 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24852 wxPrintData *result = 0 ;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855 PyObject *swig_obj[1] ;
24856
24857 if (!args) SWIG_fail;
24858 swig_obj[0] = args;
24859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24860 if (!SWIG_IsOK(res1)) {
24861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24862 }
24863 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24866 {
0085ce49
RD
24867 wxPrintData &_result_ref = (arg1)->GetPrintData();
24868 result = (wxPrintData *) &_result_ref;
e2950dbb 24869 }
0085ce49
RD
24870 wxPyEndAllowThreads(__tstate);
24871 if (PyErr_Occurred()) SWIG_fail;
24872 }
24873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24874 return resultobj;
24875fail:
24876 return NULL;
24877}
24878
24879
24880SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24881 PyObject *resultobj = 0;
24882 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24883 wxPrintData *arg2 = 0 ;
24884 void *argp1 = 0 ;
24885 int res1 = 0 ;
24886 void *argp2 = 0 ;
24887 int res2 = 0 ;
24888 PyObject * obj0 = 0 ;
24889 PyObject * obj1 = 0 ;
24890 char * kwnames[] = {
24891 (char *) "self",(char *) "data", NULL
24892 };
24893
24894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24896 if (!SWIG_IsOK(res1)) {
24897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24898 }
24899 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24901 if (!SWIG_IsOK(res2)) {
24902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24903 }
24904 if (!argp2) {
24905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24906 }
24907 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24908 {
24909 PyThreadState* __tstate = wxPyBeginAllowThreads();
24910 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 resultobj = SWIG_Py_Void();
24915 return resultobj;
24916fail:
24917 return NULL;
24918}
24919
24920
24921SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj = 0;
24923 int arg1 ;
24924 int val1 ;
24925 int ecode1 = 0 ;
24926 PyObject * obj0 = 0 ;
24927 char * kwnames[] = {
24928 (char *) "ppi", NULL
24929 };
24930
24931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24932 ecode1 = SWIG_AsVal_int(obj0, &val1);
24933 if (!SWIG_IsOK(ecode1)) {
24934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24935 }
24936 arg1 = static_cast< int >(val1);
24937 {
24938 PyThreadState* __tstate = wxPyBeginAllowThreads();
24939 wxPostScriptDC::SetResolution(arg1);
24940 wxPyEndAllowThreads(__tstate);
24941 if (PyErr_Occurred()) SWIG_fail;
24942 }
24943 resultobj = SWIG_Py_Void();
24944 return resultobj;
24945fail:
24946 return NULL;
24947}
24948
24949
24950SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24951 PyObject *resultobj = 0;
24952 int result;
24953
24954 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 result = (int)wxPostScriptDC::GetResolution();
24958 wxPyEndAllowThreads(__tstate);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 resultobj = SWIG_From_int(static_cast< int >(result));
24962 return resultobj;
24963fail:
24964 return NULL;
24965}
24966
24967
24968SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24969 PyObject *obj;
24970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24971 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24972 return SWIG_Py_Void();
24973}
24974
24975SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24976 return SWIG_Python_InitShadowInstance(args);
24977}
24978
24979SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj = 0;
24981 wxString const &arg1_defvalue = wxPyEmptyString ;
24982 wxString *arg1 = (wxString *) &arg1_defvalue ;
24983 wxMetaFile *result = 0 ;
24984 bool temp1 = false ;
24985 PyObject * obj0 = 0 ;
24986 char * kwnames[] = {
24987 (char *) "filename", NULL
24988 };
24989
24990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24991 if (obj0) {
093d3ff1 24992 {
0085ce49
RD
24993 arg1 = wxString_in_helper(obj0);
24994 if (arg1 == NULL) SWIG_fail;
24995 temp1 = true;
093d3ff1 24996 }
0085ce49
RD
24997 }
24998 {
24999 if (!wxPyCheckForApp()) SWIG_fail;
25000 PyThreadState* __tstate = wxPyBeginAllowThreads();
25001 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25002 wxPyEndAllowThreads(__tstate);
25003 if (PyErr_Occurred()) SWIG_fail;
25004 }
25005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25006 {
25007 if (temp1)
25008 delete arg1;
25009 }
25010 return resultobj;
25011fail:
25012 {
25013 if (temp1)
25014 delete arg1;
25015 }
25016 return NULL;
25017}
25018
25019
25020SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25021 PyObject *obj;
25022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25023 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25024 return SWIG_Py_Void();
25025}
25026
25027SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25028 return SWIG_Python_InitShadowInstance(args);
25029}
25030
25031SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25032 PyObject *resultobj = 0;
25033 wxString const &arg1_defvalue = wxPyEmptyString ;
25034 wxString *arg1 = (wxString *) &arg1_defvalue ;
25035 int arg2 = (int) 0 ;
25036 int arg3 = (int) 0 ;
25037 wxString const &arg4_defvalue = wxPyEmptyString ;
25038 wxString *arg4 = (wxString *) &arg4_defvalue ;
25039 wxMetaFileDC *result = 0 ;
25040 bool temp1 = false ;
25041 int val2 ;
25042 int ecode2 = 0 ;
25043 int val3 ;
25044 int ecode3 = 0 ;
25045 bool temp4 = false ;
25046 PyObject * obj0 = 0 ;
25047 PyObject * obj1 = 0 ;
25048 PyObject * obj2 = 0 ;
25049 PyObject * obj3 = 0 ;
25050 char * kwnames[] = {
25051 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25052 };
25053
25054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25055 if (obj0) {
093d3ff1 25056 {
0085ce49
RD
25057 arg1 = wxString_in_helper(obj0);
25058 if (arg1 == NULL) SWIG_fail;
25059 temp1 = true;
093d3ff1 25060 }
0085ce49
RD
25061 }
25062 if (obj1) {
25063 ecode2 = SWIG_AsVal_int(obj1, &val2);
25064 if (!SWIG_IsOK(ecode2)) {
25065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25066 }
25067 arg2 = static_cast< int >(val2);
25068 }
25069 if (obj2) {
25070 ecode3 = SWIG_AsVal_int(obj2, &val3);
25071 if (!SWIG_IsOK(ecode3)) {
25072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25073 }
25074 arg3 = static_cast< int >(val3);
25075 }
25076 if (obj3) {
093d3ff1 25077 {
0085ce49
RD
25078 arg4 = wxString_in_helper(obj3);
25079 if (arg4 == NULL) SWIG_fail;
25080 temp4 = true;
093d3ff1 25081 }
0085ce49
RD
25082 }
25083 {
25084 if (!wxPyCheckForApp()) SWIG_fail;
25085 PyThreadState* __tstate = wxPyBeginAllowThreads();
25086 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25087 wxPyEndAllowThreads(__tstate);
25088 if (PyErr_Occurred()) SWIG_fail;
25089 }
25090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25091 {
25092 if (temp1)
25093 delete arg1;
25094 }
25095 {
25096 if (temp4)
25097 delete arg4;
25098 }
25099 return resultobj;
25100fail:
25101 {
25102 if (temp1)
25103 delete arg1;
25104 }
25105 {
25106 if (temp4)
25107 delete arg4;
25108 }
25109 return NULL;
25110}
25111
25112
25113SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25114 PyObject *obj;
25115 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25116 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25117 return SWIG_Py_Void();
25118}
25119
25120SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25121 return SWIG_Python_InitShadowInstance(args);
25122}
25123
25124SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25125 PyObject *resultobj = 0;
25126 wxPrintData *arg1 = 0 ;
25127 wxPrinterDC *result = 0 ;
25128 void *argp1 = 0 ;
25129 int res1 = 0 ;
25130 PyObject * obj0 = 0 ;
25131 char * kwnames[] = {
25132 (char *) "printData", NULL
25133 };
25134
25135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25136 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25137 if (!SWIG_IsOK(res1)) {
25138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25139 }
25140 if (!argp1) {
25141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25142 }
25143 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25144 {
25145 if (!wxPyCheckForApp()) SWIG_fail;
25146 PyThreadState* __tstate = wxPyBeginAllowThreads();
25147 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25148 wxPyEndAllowThreads(__tstate);
25149 if (PyErr_Occurred()) SWIG_fail;
25150 }
25151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25152 return resultobj;
25153fail:
25154 return NULL;
25155}
25156
25157
25158SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25159 PyObject *obj;
25160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25161 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25162 return SWIG_Py_Void();
25163}
25164
25165SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25166 return SWIG_Python_InitShadowInstance(args);
25167}
25168
70d7cb34
RD
25169SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25170 PyObject *resultobj = 0;
25171 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25172 wxGraphicsObject *result = 0 ;
25173 void *argp1 = 0 ;
25174 int res1 = 0 ;
25175 PyObject * obj0 = 0 ;
25176 char * kwnames[] = {
25177 (char *) "renderer", NULL
25178 };
25179
25180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25181 if (obj0) {
25182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25183 if (!SWIG_IsOK(res1)) {
25184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25185 }
25186 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25187 }
25188 {
25189 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25190 if (PyErr_Occurred()) SWIG_fail;
25191 }
25192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25193 return resultobj;
25194fail:
25195 return NULL;
25196}
25197
25198
25199SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25200 PyObject *resultobj = 0;
25201 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25202 void *argp1 = 0 ;
25203 int res1 = 0 ;
25204 PyObject *swig_obj[1] ;
25205
25206 if (!args) SWIG_fail;
25207 swig_obj[0] = args;
25208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25211 }
25212 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25213 {
25214 delete arg1;
25215
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_Py_Void();
25219 return resultobj;
25220fail:
25221 return NULL;
25222}
25223
25224
25225SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25226 PyObject *resultobj = 0;
25227 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25228 bool result;
25229 void *argp1 = 0 ;
25230 int res1 = 0 ;
25231 PyObject *swig_obj[1] ;
25232
25233 if (!args) SWIG_fail;
25234 swig_obj[0] = args;
25235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25236 if (!SWIG_IsOK(res1)) {
25237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25238 }
25239 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25240 {
25241 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 {
25245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25246 }
25247 return resultobj;
25248fail:
25249 return NULL;
25250}
25251
25252
25253SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25254 PyObject *resultobj = 0;
25255 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25256 wxGraphicsRenderer *result = 0 ;
25257 void *argp1 = 0 ;
25258 int res1 = 0 ;
25259 PyObject *swig_obj[1] ;
25260
25261 if (!args) SWIG_fail;
25262 swig_obj[0] = args;
25263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25264 if (!SWIG_IsOK(res1)) {
25265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25266 }
25267 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25268 {
25269 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25270 if (PyErr_Occurred()) SWIG_fail;
25271 }
25272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25273 return resultobj;
25274fail:
25275 return NULL;
25276}
25277
25278
25279SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25280 PyObject *obj;
25281 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25282 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25283 return SWIG_Py_Void();
25284}
25285
25286SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25287 return SWIG_Python_InitShadowInstance(args);
25288}
25289
25290SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25291 PyObject *resultobj = 0;
25292 wxGraphicsPen *result = 0 ;
25293
25294 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25295 {
25296 result = (wxGraphicsPen *)new wxGraphicsPen();
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25300 return resultobj;
25301fail:
25302 return NULL;
25303}
25304
25305
25306SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25307 PyObject *resultobj = 0;
25308 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
25311 PyObject *swig_obj[1] ;
25312
25313 if (!args) SWIG_fail;
25314 swig_obj[0] = args;
25315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25316 if (!SWIG_IsOK(res1)) {
25317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25318 }
25319 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25320 {
25321 delete arg1;
25322
25323 if (PyErr_Occurred()) SWIG_fail;
25324 }
25325 resultobj = SWIG_Py_Void();
25326 return resultobj;
25327fail:
25328 return NULL;
25329}
25330
25331
25332SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25333 PyObject *obj;
25334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25335 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25336 return SWIG_Py_Void();
25337}
25338
25339SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25340 return SWIG_Python_InitShadowInstance(args);
25341}
25342
25343SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25344 PyObject *resultobj = 0;
25345 wxGraphicsBrush *result = 0 ;
25346
25347 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25348 {
25349 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25353 return resultobj;
25354fail:
25355 return NULL;
25356}
25357
25358
25359SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25360 PyObject *resultobj = 0;
25361 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 PyObject *swig_obj[1] ;
25365
25366 if (!args) SWIG_fail;
25367 swig_obj[0] = args;
25368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25369 if (!SWIG_IsOK(res1)) {
25370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25371 }
25372 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25373 {
25374 delete arg1;
25375
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 resultobj = SWIG_Py_Void();
25379 return resultobj;
25380fail:
25381 return NULL;
25382}
25383
25384
25385SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25386 PyObject *obj;
25387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25388 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25389 return SWIG_Py_Void();
25390}
25391
25392SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25393 return SWIG_Python_InitShadowInstance(args);
25394}
25395
25396SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25397 PyObject *resultobj = 0;
25398 wxGraphicsFont *result = 0 ;
25399
25400 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25401 {
25402 result = (wxGraphicsFont *)new wxGraphicsFont();
25403 if (PyErr_Occurred()) SWIG_fail;
25404 }
25405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25406 return resultobj;
25407fail:
25408 return NULL;
25409}
25410
25411
25412SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25413 PyObject *resultobj = 0;
25414 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25415 void *argp1 = 0 ;
25416 int res1 = 0 ;
25417 PyObject *swig_obj[1] ;
25418
25419 if (!args) SWIG_fail;
25420 swig_obj[0] = args;
25421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25422 if (!SWIG_IsOK(res1)) {
25423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25424 }
25425 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25426 {
25427 delete arg1;
25428
25429 if (PyErr_Occurred()) SWIG_fail;
25430 }
25431 resultobj = SWIG_Py_Void();
25432 return resultobj;
25433fail:
25434 return NULL;
25435}
25436
25437
25438SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25439 PyObject *obj;
25440 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25441 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25442 return SWIG_Py_Void();
25443}
25444
25445SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25446 return SWIG_Python_InitShadowInstance(args);
25447}
25448
8f514ab4
RD
25449SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25450 PyObject *resultobj = 0;
25451 wxGraphicsMatrix *result = 0 ;
25452
25453 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25454 {
25455 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25459 return resultobj;
25460fail:
25461 return NULL;
25462}
25463
25464
5c8c7dd3 25465SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25466 PyObject *resultobj = 0;
5c8c7dd3 25467 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25468 void *argp1 = 0 ;
25469 int res1 = 0 ;
25470 PyObject *swig_obj[1] ;
25471
25472 if (!args) SWIG_fail;
25473 swig_obj[0] = args;
5c8c7dd3 25474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
0085ce49 25475 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25477 }
5c8c7dd3 25478 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25479 {
0085ce49
RD
25480 delete arg1;
25481
0085ce49
RD
25482 if (PyErr_Occurred()) SWIG_fail;
25483 }
25484 resultobj = SWIG_Py_Void();
25485 return resultobj;
25486fail:
25487 return NULL;
25488}
25489
25490
5c8c7dd3 25491SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25492 PyObject *resultobj = 0;
5c8c7dd3
RD
25493 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25494 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25495 void *argp1 = 0 ;
25496 int res1 = 0 ;
5c8c7dd3
RD
25497 void *argp2 = 0 ;
25498 int res2 = 0 ;
25499 PyObject * obj0 = 0 ;
25500 PyObject * obj1 = 0 ;
25501 char * kwnames[] = {
25502 (char *) "self",(char *) "t", NULL
25503 };
70d7cb34 25504
5c8c7dd3
RD
25505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25507 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25509 }
5c8c7dd3
RD
25510 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25512 if (!SWIG_IsOK(res2)) {
25513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25514 }
25515 if (!argp2) {
25516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25517 }
25518 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25519 {
5c8c7dd3 25520 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25521 if (PyErr_Occurred()) SWIG_fail;
25522 }
5c8c7dd3 25523 resultobj = SWIG_Py_Void();
70d7cb34
RD
25524 return resultobj;
25525fail:
25526 return NULL;
25527}
25528
25529
5c8c7dd3 25530SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25531 PyObject *resultobj = 0;
5c8c7dd3
RD
25532 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25533 wxDouble arg2 = (wxDouble) 1.0 ;
25534 wxDouble arg3 = (wxDouble) 0.0 ;
25535 wxDouble arg4 = (wxDouble) 0.0 ;
25536 wxDouble arg5 = (wxDouble) 1.0 ;
25537 wxDouble arg6 = (wxDouble) 0.0 ;
25538 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25539 void *argp1 = 0 ;
25540 int res1 = 0 ;
5c8c7dd3
RD
25541 double val2 ;
25542 int ecode2 = 0 ;
25543 double val3 ;
25544 int ecode3 = 0 ;
25545 double val4 ;
25546 int ecode4 = 0 ;
25547 double val5 ;
25548 int ecode5 = 0 ;
25549 double val6 ;
25550 int ecode6 = 0 ;
25551 double val7 ;
25552 int ecode7 = 0 ;
25553 PyObject * obj0 = 0 ;
25554 PyObject * obj1 = 0 ;
25555 PyObject * obj2 = 0 ;
25556 PyObject * obj3 = 0 ;
25557 PyObject * obj4 = 0 ;
25558 PyObject * obj5 = 0 ;
25559 PyObject * obj6 = 0 ;
25560 char * kwnames[] = {
25561 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25562 };
70d7cb34 25563
5c8c7dd3
RD
25564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25566 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25568 }
5c8c7dd3
RD
25569 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25570 if (obj1) {
25571 ecode2 = SWIG_AsVal_double(obj1, &val2);
25572 if (!SWIG_IsOK(ecode2)) {
25573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25574 }
25575 arg2 = static_cast< wxDouble >(val2);
25576 }
25577 if (obj2) {
25578 ecode3 = SWIG_AsVal_double(obj2, &val3);
25579 if (!SWIG_IsOK(ecode3)) {
25580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25581 }
25582 arg3 = static_cast< wxDouble >(val3);
25583 }
25584 if (obj3) {
25585 ecode4 = SWIG_AsVal_double(obj3, &val4);
25586 if (!SWIG_IsOK(ecode4)) {
25587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25588 }
25589 arg4 = static_cast< wxDouble >(val4);
25590 }
25591 if (obj4) {
25592 ecode5 = SWIG_AsVal_double(obj4, &val5);
25593 if (!SWIG_IsOK(ecode5)) {
25594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25595 }
25596 arg5 = static_cast< wxDouble >(val5);
25597 }
25598 if (obj5) {
25599 ecode6 = SWIG_AsVal_double(obj5, &val6);
25600 if (!SWIG_IsOK(ecode6)) {
25601 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25602 }
25603 arg6 = static_cast< wxDouble >(val6);
25604 }
25605 if (obj6) {
25606 ecode7 = SWIG_AsVal_double(obj6, &val7);
25607 if (!SWIG_IsOK(ecode7)) {
25608 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25609 }
25610 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25611 }
25612 {
5c8c7dd3 25613 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25614 if (PyErr_Occurred()) SWIG_fail;
25615 }
25616 resultobj = SWIG_Py_Void();
25617 return resultobj;
25618fail:
25619 return NULL;
25620}
25621
25622
5c8c7dd3 25623SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25624 PyObject *resultobj = 0;
5c8c7dd3 25625 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25626 void *argp1 = 0 ;
25627 int res1 = 0 ;
5c8c7dd3 25628 PyObject *swig_obj[1] ;
0085ce49 25629
5c8c7dd3
RD
25630 if (!args) SWIG_fail;
25631 swig_obj[0] = args;
25632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25633 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25635 }
5c8c7dd3 25636 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25637 {
5c8c7dd3 25638 (arg1)->Invert();
0085ce49
RD
25639 if (PyErr_Occurred()) SWIG_fail;
25640 }
72ef6efb 25641 resultobj = SWIG_Py_Void();
0085ce49
RD
25642 return resultobj;
25643fail:
25644 return NULL;
25645}
25646
25647
5c8c7dd3 25648SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25649 PyObject *resultobj = 0;
5c8c7dd3
RD
25650 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25651 wxGraphicsMatrix *arg2 = 0 ;
25652 bool result;
70d7cb34
RD
25653 void *argp1 = 0 ;
25654 int res1 = 0 ;
5c8c7dd3
RD
25655 void *argp2 = 0 ;
25656 int res2 = 0 ;
25657 PyObject * obj0 = 0 ;
25658 PyObject * obj1 = 0 ;
25659 char * kwnames[] = {
25660 (char *) "self",(char *) "t", NULL
25661 };
70d7cb34 25662
5c8c7dd3
RD
25663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25665 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25667 }
5c8c7dd3
RD
25668 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25670 if (!SWIG_IsOK(res2)) {
25671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25672 }
25673 if (!argp2) {
25674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25675 }
5c8c7dd3 25676 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25677 {
5c8c7dd3 25678 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25679 if (PyErr_Occurred()) SWIG_fail;
25680 }
5c8c7dd3
RD
25681 {
25682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25683 }
70d7cb34
RD
25684 return resultobj;
25685fail:
25686 return NULL;
25687}
25688
25689
5c8c7dd3
RD
25690SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25691 PyObject *resultobj = 0;
25692 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25693 bool result;
25694 void *argp1 = 0 ;
25695 int res1 = 0 ;
25696 PyObject *swig_obj[1] ;
70d7cb34 25697
5c8c7dd3
RD
25698 if (!args) SWIG_fail;
25699 swig_obj[0] = args;
25700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25701 if (!SWIG_IsOK(res1)) {
25702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25703 }
5c8c7dd3
RD
25704 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25705 {
25706 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25707 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25708 }
5c8c7dd3
RD
25709 {
25710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25711 }
25712 return resultobj;
70d7cb34 25713fail:
70d7cb34
RD
25714 return NULL;
25715}
25716
25717
5c8c7dd3 25718SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25719 PyObject *resultobj = 0;
5c8c7dd3 25720 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25721 wxDouble arg2 ;
25722 wxDouble arg3 ;
0085ce49
RD
25723 void *argp1 = 0 ;
25724 int res1 = 0 ;
72ef6efb
RD
25725 double val2 ;
25726 int ecode2 = 0 ;
25727 double val3 ;
25728 int ecode3 = 0 ;
5c8c7dd3
RD
25729 PyObject * obj0 = 0 ;
25730 PyObject * obj1 = 0 ;
25731 PyObject * obj2 = 0 ;
25732 char * kwnames[] = {
25733 (char *) "self",(char *) "dx",(char *) "dy", NULL
25734 };
72ef6efb 25735
5c8c7dd3
RD
25736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25738 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25740 }
5c8c7dd3
RD
25741 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25742 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25743 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25745 }
25746 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25747 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25748 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25750 }
25751 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25752 {
5c8c7dd3 25753 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25754 if (PyErr_Occurred()) SWIG_fail;
25755 }
25756 resultobj = SWIG_Py_Void();
25757 return resultobj;
25758fail:
25759 return NULL;
25760}
25761
25762
5c8c7dd3 25763SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25764 PyObject *resultobj = 0;
5c8c7dd3
RD
25765 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25766 wxDouble arg2 ;
25767 wxDouble arg3 ;
70d7cb34
RD
25768 void *argp1 = 0 ;
25769 int res1 = 0 ;
5c8c7dd3
RD
25770 double val2 ;
25771 int ecode2 = 0 ;
25772 double val3 ;
25773 int ecode3 = 0 ;
25774 PyObject * obj0 = 0 ;
25775 PyObject * obj1 = 0 ;
25776 PyObject * obj2 = 0 ;
25777 char * kwnames[] = {
25778 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25779 };
70d7cb34 25780
5c8c7dd3
RD
25781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25783 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25785 }
5c8c7dd3
RD
25786 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25787 ecode2 = SWIG_AsVal_double(obj1, &val2);
25788 if (!SWIG_IsOK(ecode2)) {
25789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25790 }
25791 arg2 = static_cast< wxDouble >(val2);
25792 ecode3 = SWIG_AsVal_double(obj2, &val3);
25793 if (!SWIG_IsOK(ecode3)) {
25794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25795 }
25796 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25797 {
5c8c7dd3 25798 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25799 if (PyErr_Occurred()) SWIG_fail;
25800 }
25801 resultobj = SWIG_Py_Void();
25802 return resultobj;
25803fail:
25804 return NULL;
25805}
25806
25807
5c8c7dd3 25808SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25809 PyObject *resultobj = 0;
5c8c7dd3
RD
25810 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25811 wxDouble arg2 ;
70d7cb34
RD
25812 void *argp1 = 0 ;
25813 int res1 = 0 ;
5c8c7dd3
RD
25814 double val2 ;
25815 int ecode2 = 0 ;
70d7cb34
RD
25816 PyObject * obj0 = 0 ;
25817 PyObject * obj1 = 0 ;
25818 char * kwnames[] = {
5c8c7dd3 25819 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25820 };
25821
5c8c7dd3
RD
25822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25824 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25826 }
5c8c7dd3
RD
25827 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25828 ecode2 = SWIG_AsVal_double(obj1, &val2);
25829 if (!SWIG_IsOK(ecode2)) {
25830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25831 }
25832 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25833 {
5c8c7dd3 25834 (arg1)->Rotate(arg2);
70d7cb34
RD
25835 if (PyErr_Occurred()) SWIG_fail;
25836 }
25837 resultobj = SWIG_Py_Void();
25838 return resultobj;
25839fail:
25840 return NULL;
25841}
25842
25843
5c8c7dd3 25844SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 25845 PyObject *resultobj = 0;
5c8c7dd3
RD
25846 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25847 wxDouble *arg2 = (wxDouble *) 0 ;
25848 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
25849 void *argp1 = 0 ;
25850 int res1 = 0 ;
5c8c7dd3
RD
25851 wxDouble temp2 ;
25852 int res2 = 0 ;
25853 wxDouble temp3 ;
25854 int res3 = 0 ;
25855 PyObject * obj0 = 0 ;
25856 PyObject * obj1 = 0 ;
25857 PyObject * obj2 = 0 ;
25858 char * kwnames[] = {
25859 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25860 };
72ef6efb 25861
5c8c7dd3
RD
25862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25864 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
25865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25866 }
25867 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25868 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25869 double val;
25870 int ecode = SWIG_AsVal_double(obj1, &val);
25871 if (!SWIG_IsOK(ecode)) {
25872 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25873 }
25874 temp2 = static_cast< wxDouble >(val);
25875 arg2 = &temp2;
25876 res2 = SWIG_AddTmpMask(ecode);
25877 }
25878 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25879 double val;
25880 int ecode = SWIG_AsVal_double(obj2, &val);
25881 if (!SWIG_IsOK(ecode)) {
25882 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25883 }
25884 temp3 = static_cast< wxDouble >(val);
25885 arg3 = &temp3;
25886 res3 = SWIG_AddTmpMask(ecode);
25887 }
25888 {
25889 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25890 if (PyErr_Occurred()) SWIG_fail;
72ef6efb
RD
25891 }
25892 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
25893 if (SWIG_IsTmpObj(res2)) {
25894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25895 } else {
25896 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25898 }
25899 if (SWIG_IsTmpObj(res3)) {
25900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25901 } else {
25902 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25904 }
72ef6efb
RD
25905 return resultobj;
25906fail:
25907 return NULL;
25908}
25909
25910
5c8c7dd3
RD
25911SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25912 PyObject *resultobj = 0;
25913 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25914 wxDouble *arg2 = (wxDouble *) 0 ;
25915 wxDouble *arg3 = (wxDouble *) 0 ;
25916 void *argp1 = 0 ;
25917 int res1 = 0 ;
25918 wxDouble temp2 ;
25919 int res2 = 0 ;
25920 wxDouble temp3 ;
25921 int res3 = 0 ;
25922 PyObject * obj0 = 0 ;
25923 PyObject * obj1 = 0 ;
25924 PyObject * obj2 = 0 ;
25925 char * kwnames[] = {
25926 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25927 };
25928
25929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25931 if (!SWIG_IsOK(res1)) {
25932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25933 }
25934 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25935 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25936 double val;
25937 int ecode = SWIG_AsVal_double(obj1, &val);
25938 if (!SWIG_IsOK(ecode)) {
25939 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25940 }
25941 temp2 = static_cast< wxDouble >(val);
25942 arg2 = &temp2;
25943 res2 = SWIG_AddTmpMask(ecode);
25944 }
25945 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25946 double val;
25947 int ecode = SWIG_AsVal_double(obj2, &val);
25948 if (!SWIG_IsOK(ecode)) {
25949 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25950 }
25951 temp3 = static_cast< wxDouble >(val);
25952 arg3 = &temp3;
25953 res3 = SWIG_AddTmpMask(ecode);
25954 }
25955 {
25956 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25957 if (PyErr_Occurred()) SWIG_fail;
25958 }
25959 resultobj = SWIG_Py_Void();
25960 if (SWIG_IsTmpObj(res2)) {
25961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25962 } else {
25963 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25965 }
25966 if (SWIG_IsTmpObj(res3)) {
25967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25968 } else {
25969 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25971 }
25972 return resultobj;
25973fail:
25974 return NULL;
25975}
25976
25977
25978SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25979 PyObject *resultobj = 0;
25980 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25981 void *result = 0 ;
25982 void *argp1 = 0 ;
25983 int res1 = 0 ;
25984 PyObject *swig_obj[1] ;
25985
25986 if (!args) SWIG_fail;
25987 swig_obj[0] = args;
25988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25989 if (!SWIG_IsOK(res1)) {
25990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25991 }
25992 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25993 {
25994 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
25995 if (PyErr_Occurred()) SWIG_fail;
25996 }
25997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25998 return resultobj;
25999fail:
26000 return NULL;
26001}
26002
26003
26004SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26005 PyObject *obj;
26006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26007 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26008 return SWIG_Py_Void();
26009}
26010
8f514ab4
RD
26011SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26012 return SWIG_Python_InitShadowInstance(args);
26013}
26014
26015SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26016 PyObject *resultobj = 0;
26017 wxGraphicsPath *result = 0 ;
26018
26019 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26020 {
26021 if (!wxPyCheckForApp()) SWIG_fail;
26022 PyThreadState* __tstate = wxPyBeginAllowThreads();
26023 result = (wxGraphicsPath *)new wxGraphicsPath();
26024 wxPyEndAllowThreads(__tstate);
26025 if (PyErr_Occurred()) SWIG_fail;
26026 }
26027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26028 return resultobj;
26029fail:
26030 return NULL;
26031}
26032
26033
5c8c7dd3 26034SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26035 PyObject *resultobj = 0;
26036 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26037 void *argp1 = 0 ;
26038 int res1 = 0 ;
26039 PyObject *swig_obj[1] ;
26040
26041 if (!args) SWIG_fail;
26042 swig_obj[0] = args;
5c8c7dd3 26043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26044 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26046 }
26047 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26048 {
5c8c7dd3
RD
26049 delete arg1;
26050
72ef6efb
RD
26051 if (PyErr_Occurred()) SWIG_fail;
26052 }
5c8c7dd3 26053 resultobj = SWIG_Py_Void();
70d7cb34
RD
26054 return resultobj;
26055fail:
26056 return NULL;
26057}
26058
26059
5c8c7dd3 26060SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26061 PyObject *resultobj = 0;
26062 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26063 wxDouble arg2 ;
26064 wxDouble arg3 ;
70d7cb34
RD
26065 void *argp1 = 0 ;
26066 int res1 = 0 ;
26067 double val2 ;
26068 int ecode2 = 0 ;
26069 double val3 ;
26070 int ecode3 = 0 ;
70d7cb34 26071
5c8c7dd3 26072 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26074 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26076 }
26077 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26078 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26079 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26081 }
26082 arg2 = static_cast< wxDouble >(val2);
26083 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26084 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26086 }
26087 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26088 {
5c8c7dd3 26089 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26090 if (PyErr_Occurred()) SWIG_fail;
26091 }
26092 resultobj = SWIG_Py_Void();
26093 return resultobj;
26094fail:
26095 return NULL;
26096}
26097
26098
5c8c7dd3 26099SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26100 PyObject *resultobj = 0;
26101 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26102 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26103 void *argp1 = 0 ;
26104 int res1 = 0 ;
26105 wxPoint2D temp2 ;
70d7cb34 26106
5c8c7dd3 26107 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26109 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26111 }
26112 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26113 {
26114 arg2 = &temp2;
26115 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26116 }
70d7cb34 26117 {
5c8c7dd3 26118 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 resultobj = SWIG_Py_Void();
26122 return resultobj;
26123fail:
26124 return NULL;
26125}
26126
26127
5c8c7dd3 26128SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26129 int argc;
5c8c7dd3 26130 PyObject *argv[4];
70d7cb34 26131
5c8c7dd3 26132 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26133 --argc;
5c8c7dd3
RD
26134 if (argc == 2) {
26135 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26136 }
5c8c7dd3
RD
26137 if (argc == 3) {
26138 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26139 }
26140
26141fail:
5c8c7dd3 26142 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26143 return NULL;
26144}
26145
26146
5c8c7dd3 26147SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26148 PyObject *resultobj = 0;
26149 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26150 wxDouble arg2 ;
26151 wxDouble arg3 ;
70d7cb34
RD
26152 void *argp1 = 0 ;
26153 int res1 = 0 ;
26154 double val2 ;
26155 int ecode2 = 0 ;
26156 double val3 ;
26157 int ecode3 = 0 ;
70d7cb34 26158
5c8c7dd3
RD
26159 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26161 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26163 }
26164 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26165 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26166 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26168 }
26169 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26170 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26171 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26173 }
26174 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26175 {
5c8c7dd3 26176 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26177 if (PyErr_Occurred()) SWIG_fail;
26178 }
26179 resultobj = SWIG_Py_Void();
26180 return resultobj;
26181fail:
26182 return NULL;
26183}
26184
26185
5c8c7dd3 26186SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26187 PyObject *resultobj = 0;
26188 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26189 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26190 void *argp1 = 0 ;
26191 int res1 = 0 ;
5c8c7dd3 26192 wxPoint2D temp2 ;
70d7cb34 26193
5c8c7dd3
RD
26194 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26196 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26198 }
26199 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26200 {
5c8c7dd3
RD
26201 arg2 = &temp2;
26202 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26203 }
26204 {
26205 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26206 if (PyErr_Occurred()) SWIG_fail;
26207 }
26208 resultobj = SWIG_Py_Void();
26209 return resultobj;
26210fail:
26211 return NULL;
26212}
26213
26214
5c8c7dd3
RD
26215SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26216 int argc;
26217 PyObject *argv[4];
70d7cb34 26218
5c8c7dd3
RD
26219 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26220 --argc;
26221 if (argc == 2) {
26222 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26223 }
5c8c7dd3
RD
26224 if (argc == 3) {
26225 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26226 }
5c8c7dd3 26227
70d7cb34 26228fail:
5c8c7dd3 26229 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26230 return NULL;
26231}
26232
26233
5c8c7dd3 26234SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26235 PyObject *resultobj = 0;
26236 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26237 wxDouble arg2 ;
26238 wxDouble arg3 ;
26239 wxDouble arg4 ;
26240 wxDouble arg5 ;
26241 wxDouble arg6 ;
5c8c7dd3 26242 wxDouble arg7 ;
70d7cb34
RD
26243 void *argp1 = 0 ;
26244 int res1 = 0 ;
26245 double val2 ;
26246 int ecode2 = 0 ;
26247 double val3 ;
26248 int ecode3 = 0 ;
26249 double val4 ;
26250 int ecode4 = 0 ;
26251 double val5 ;
26252 int ecode5 = 0 ;
26253 double val6 ;
26254 int ecode6 = 0 ;
5c8c7dd3
RD
26255 double val7 ;
26256 int ecode7 = 0 ;
70d7cb34 26257
5c8c7dd3
RD
26258 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26260 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26262 }
26263 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26264 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26265 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26267 }
26268 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26269 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26270 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26272 }
26273 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26274 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26275 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26277 }
26278 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26279 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26280 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26282 }
26283 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26284 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26285 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26286 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26287 }
26288 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26289 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26290 if (!SWIG_IsOK(ecode7)) {
26291 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26292 }
26293 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26294 {
5c8c7dd3 26295 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26296 if (PyErr_Occurred()) SWIG_fail;
26297 }
26298 resultobj = SWIG_Py_Void();
26299 return resultobj;
26300fail:
26301 return NULL;
26302}
26303
26304
5c8c7dd3 26305SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26306 PyObject *resultobj = 0;
26307 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26308 wxPoint2D *arg2 = 0 ;
26309 wxPoint2D *arg3 = 0 ;
26310 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26311 void *argp1 = 0 ;
26312 int res1 = 0 ;
5c8c7dd3
RD
26313 wxPoint2D temp2 ;
26314 wxPoint2D temp3 ;
26315 wxPoint2D temp4 ;
70d7cb34 26316
5c8c7dd3
RD
26317 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26319 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26321 }
26322 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26323 {
5c8c7dd3
RD
26324 arg2 = &temp2;
26325 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26326 }
5c8c7dd3
RD
26327 {
26328 arg3 = &temp3;
26329 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26330 }
70d7cb34 26331 {
5c8c7dd3
RD
26332 arg4 = &temp4;
26333 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26334 }
26335 {
26336 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26337 if (PyErr_Occurred()) SWIG_fail;
26338 }
26339 resultobj = SWIG_Py_Void();
26340 return resultobj;
26341fail:
26342 return NULL;
26343}
26344
26345
5c8c7dd3
RD
26346SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26347 int argc;
26348 PyObject *argv[8];
70d7cb34 26349
5c8c7dd3
RD
26350 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26351 --argc;
26352 if (argc == 4) {
26353 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26354 }
5c8c7dd3
RD
26355 if (argc == 7) {
26356 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26357 }
5c8c7dd3 26358
70d7cb34 26359fail:
5c8c7dd3 26360 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26361 return NULL;
26362}
26363
26364
5c8c7dd3 26365SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26366 PyObject *resultobj = 0;
26367 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26368 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26369 void *argp1 = 0 ;
26370 int res1 = 0 ;
5c8c7dd3
RD
26371 void *argp2 = 0 ;
26372 int res2 = 0 ;
70d7cb34
RD
26373 PyObject * obj0 = 0 ;
26374 PyObject * obj1 = 0 ;
26375 char * kwnames[] = {
5c8c7dd3 26376 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26377 };
26378
5c8c7dd3 26379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26381 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26383 }
26384 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26386 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26388 }
26389 if (!argp2) {
26390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26391 }
5c8c7dd3 26392 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26393 {
5c8c7dd3 26394 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 resultobj = SWIG_Py_Void();
26398 return resultobj;
26399fail:
26400 return NULL;
26401}
26402
26403
5c8c7dd3 26404SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26405 PyObject *resultobj = 0;
26406 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26407 void *argp1 = 0 ;
26408 int res1 = 0 ;
5c8c7dd3 26409 PyObject *swig_obj[1] ;
70d7cb34 26410
5c8c7dd3
RD
26411 if (!args) SWIG_fail;
26412 swig_obj[0] = args;
26413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26414 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26416 }
26417 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26418 {
5c8c7dd3 26419 (arg1)->CloseSubpath();
70d7cb34
RD
26420 if (PyErr_Occurred()) SWIG_fail;
26421 }
26422 resultobj = SWIG_Py_Void();
26423 return resultobj;
26424fail:
26425 return NULL;
26426}
26427
26428
5c8c7dd3 26429SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26430 PyObject *resultobj = 0;
26431 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26432 wxPoint2D result;
70d7cb34
RD
26433 void *argp1 = 0 ;
26434 int res1 = 0 ;
26435 PyObject *swig_obj[1] ;
26436
26437 if (!args) SWIG_fail;
26438 swig_obj[0] = args;
26439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26440 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26442 }
26443 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26444 {
5c8c7dd3 26445 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26446 if (PyErr_Occurred()) SWIG_fail;
26447 }
5c8c7dd3 26448 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26449 return resultobj;
26450fail:
26451 return NULL;
26452}
26453
26454
5c8c7dd3 26455SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26456 PyObject *resultobj = 0;
26457 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26458 wxDouble arg2 ;
26459 wxDouble arg3 ;
5c8c7dd3
RD
26460 wxDouble arg4 ;
26461 wxDouble arg5 ;
26462 wxDouble arg6 ;
26463 bool arg7 ;
70d7cb34
RD
26464 void *argp1 = 0 ;
26465 int res1 = 0 ;
26466 double val2 ;
26467 int ecode2 = 0 ;
26468 double val3 ;
26469 int ecode3 = 0 ;
5c8c7dd3 26470 double val4 ;
70d7cb34 26471 int ecode4 = 0 ;
5c8c7dd3
RD
26472 double val5 ;
26473 int ecode5 = 0 ;
26474 double val6 ;
26475 int ecode6 = 0 ;
26476 bool val7 ;
26477 int ecode7 = 0 ;
70d7cb34 26478
5c8c7dd3 26479 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26481 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26483 }
26484 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26485 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26486 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26488 }
26489 arg2 = static_cast< wxDouble >(val2);
26490 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26491 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26493 }
26494 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26495 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26496 if (!SWIG_IsOK(ecode4)) {
26497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26498 }
26499 arg4 = static_cast< wxDouble >(val4);
26500 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26501 if (!SWIG_IsOK(ecode5)) {
26502 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26503 }
26504 arg5 = static_cast< wxDouble >(val5);
26505 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26506 if (!SWIG_IsOK(ecode6)) {
26507 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26508 }
26509 arg6 = static_cast< wxDouble >(val6);
26510 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26511 if (!SWIG_IsOK(ecode7)) {
26512 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26513 }
26514 arg7 = static_cast< bool >(val7);
70d7cb34 26515 {
5c8c7dd3 26516 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26517 if (PyErr_Occurred()) SWIG_fail;
26518 }
5c8c7dd3 26519 resultobj = SWIG_Py_Void();
70d7cb34
RD
26520 return resultobj;
26521fail:
26522 return NULL;
26523}
26524
26525
5c8c7dd3 26526SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26527 PyObject *resultobj = 0;
26528 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26529 wxPoint2D *arg2 = 0 ;
26530 wxDouble arg3 ;
26531 wxDouble arg4 ;
26532 wxDouble arg5 ;
26533 bool arg6 ;
70d7cb34
RD
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
5c8c7dd3
RD
26536 wxPoint2D temp2 ;
26537 double val3 ;
70d7cb34 26538 int ecode3 = 0 ;
5c8c7dd3
RD
26539 double val4 ;
26540 int ecode4 = 0 ;
26541 double val5 ;
26542 int ecode5 = 0 ;
26543 bool val6 ;
26544 int ecode6 = 0 ;
70d7cb34 26545
5c8c7dd3 26546 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26548 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26550 }
26551 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26552 {
5c8c7dd3
RD
26553 arg2 = &temp2;
26554 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26555 }
5c8c7dd3
RD
26556 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26557 if (!SWIG_IsOK(ecode3)) {
26558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26559 }
26560 arg3 = static_cast< wxDouble >(val3);
26561 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26562 if (!SWIG_IsOK(ecode4)) {
26563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26564 }
26565 arg4 = static_cast< wxDouble >(val4);
26566 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26567 if (!SWIG_IsOK(ecode5)) {
26568 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26569 }
26570 arg5 = static_cast< wxDouble >(val5);
26571 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26572 if (!SWIG_IsOK(ecode6)) {
26573 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26574 }
26575 arg6 = static_cast< bool >(val6);
70d7cb34 26576 {
5c8c7dd3
RD
26577 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26578 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26579 }
5c8c7dd3 26580 resultobj = SWIG_Py_Void();
70d7cb34
RD
26581 return resultobj;
26582fail:
26583 return NULL;
26584}
26585
26586
5c8c7dd3 26587SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26588 int argc;
5c8c7dd3 26589 PyObject *argv[8];
70d7cb34 26590
5c8c7dd3 26591 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26592 --argc;
5c8c7dd3
RD
26593 if (argc == 6) {
26594 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26595 }
5c8c7dd3
RD
26596 if (argc == 7) {
26597 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26598 }
26599
26600fail:
5c8c7dd3 26601 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26602 return NULL;
26603}
26604
26605
5c8c7dd3 26606SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26607 PyObject *resultobj = 0;
5c8c7dd3
RD
26608 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26609 wxDouble arg2 ;
26610 wxDouble arg3 ;
26611 wxDouble arg4 ;
26612 wxDouble arg5 ;
70d7cb34
RD
26613 void *argp1 = 0 ;
26614 int res1 = 0 ;
5c8c7dd3
RD
26615 double val2 ;
26616 int ecode2 = 0 ;
26617 double val3 ;
26618 int ecode3 = 0 ;
26619 double val4 ;
26620 int ecode4 = 0 ;
26621 double val5 ;
26622 int ecode5 = 0 ;
26623 PyObject * obj0 = 0 ;
26624 PyObject * obj1 = 0 ;
26625 PyObject * obj2 = 0 ;
26626 PyObject * obj3 = 0 ;
26627 PyObject * obj4 = 0 ;
26628 char * kwnames[] = {
26629 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26630 };
70d7cb34 26631
5c8c7dd3
RD
26632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26634 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26636 }
5c8c7dd3
RD
26637 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26638 ecode2 = SWIG_AsVal_double(obj1, &val2);
26639 if (!SWIG_IsOK(ecode2)) {
26640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26641 }
26642 arg2 = static_cast< wxDouble >(val2);
26643 ecode3 = SWIG_AsVal_double(obj2, &val3);
26644 if (!SWIG_IsOK(ecode3)) {
26645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26646 }
26647 arg3 = static_cast< wxDouble >(val3);
26648 ecode4 = SWIG_AsVal_double(obj3, &val4);
26649 if (!SWIG_IsOK(ecode4)) {
26650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26651 }
26652 arg4 = static_cast< wxDouble >(val4);
26653 ecode5 = SWIG_AsVal_double(obj4, &val5);
26654 if (!SWIG_IsOK(ecode5)) {
26655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26656 }
26657 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26658 {
5c8c7dd3 26659 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_Py_Void();
26663 return resultobj;
26664fail:
26665 return NULL;
26666}
26667
26668
5c8c7dd3 26669SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26670 PyObject *resultobj = 0;
5c8c7dd3
RD
26671 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26672 wxDouble arg2 ;
26673 wxDouble arg3 ;
26674 wxDouble arg4 ;
26675 wxDouble arg5 ;
70d7cb34
RD
26676 void *argp1 = 0 ;
26677 int res1 = 0 ;
5c8c7dd3
RD
26678 double val2 ;
26679 int ecode2 = 0 ;
26680 double val3 ;
26681 int ecode3 = 0 ;
26682 double val4 ;
26683 int ecode4 = 0 ;
26684 double val5 ;
26685 int ecode5 = 0 ;
70d7cb34
RD
26686 PyObject * obj0 = 0 ;
26687 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26688 PyObject * obj2 = 0 ;
26689 PyObject * obj3 = 0 ;
26690 PyObject * obj4 = 0 ;
70d7cb34 26691 char * kwnames[] = {
5c8c7dd3 26692 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26693 };
26694
5c8c7dd3
RD
26695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26697 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26699 }
5c8c7dd3
RD
26700 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26701 ecode2 = SWIG_AsVal_double(obj1, &val2);
26702 if (!SWIG_IsOK(ecode2)) {
26703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26704 }
26705 arg2 = static_cast< wxDouble >(val2);
26706 ecode3 = SWIG_AsVal_double(obj2, &val3);
26707 if (!SWIG_IsOK(ecode3)) {
26708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26709 }
26710 arg3 = static_cast< wxDouble >(val3);
26711 ecode4 = SWIG_AsVal_double(obj3, &val4);
26712 if (!SWIG_IsOK(ecode4)) {
26713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26714 }
26715 arg4 = static_cast< wxDouble >(val4);
26716 ecode5 = SWIG_AsVal_double(obj4, &val5);
26717 if (!SWIG_IsOK(ecode5)) {
26718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26719 }
26720 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26721 {
5c8c7dd3 26722 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 resultobj = SWIG_Py_Void();
26726 return resultobj;
26727fail:
26728 return NULL;
26729}
26730
26731
5c8c7dd3 26732SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26733 PyObject *resultobj = 0;
5c8c7dd3
RD
26734 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26735 wxDouble arg2 ;
26736 wxDouble arg3 ;
26737 wxDouble arg4 ;
70d7cb34
RD
26738 void *argp1 = 0 ;
26739 int res1 = 0 ;
5c8c7dd3
RD
26740 double val2 ;
26741 int ecode2 = 0 ;
26742 double val3 ;
26743 int ecode3 = 0 ;
26744 double val4 ;
26745 int ecode4 = 0 ;
70d7cb34
RD
26746 PyObject * obj0 = 0 ;
26747 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26748 PyObject * obj2 = 0 ;
26749 PyObject * obj3 = 0 ;
70d7cb34 26750 char * kwnames[] = {
5c8c7dd3 26751 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26752 };
26753
5c8c7dd3
RD
26754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26756 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26758 }
5c8c7dd3
RD
26759 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26760 ecode2 = SWIG_AsVal_double(obj1, &val2);
26761 if (!SWIG_IsOK(ecode2)) {
26762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26763 }
26764 arg2 = static_cast< wxDouble >(val2);
26765 ecode3 = SWIG_AsVal_double(obj2, &val3);
26766 if (!SWIG_IsOK(ecode3)) {
26767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26768 }
26769 arg3 = static_cast< wxDouble >(val3);
26770 ecode4 = SWIG_AsVal_double(obj3, &val4);
26771 if (!SWIG_IsOK(ecode4)) {
26772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26773 }
26774 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26775 {
5c8c7dd3 26776 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26777 if (PyErr_Occurred()) SWIG_fail;
26778 }
26779 resultobj = SWIG_Py_Void();
26780 return resultobj;
26781fail:
26782 return NULL;
26783}
26784
26785
5c8c7dd3 26786SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26787 PyObject *resultobj = 0;
5c8c7dd3
RD
26788 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26789 wxDouble arg2 ;
26790 wxDouble arg3 ;
26791 wxDouble arg4 ;
26792 wxDouble arg5 ;
26793 wxDouble arg6 ;
70d7cb34
RD
26794 void *argp1 = 0 ;
26795 int res1 = 0 ;
26796 double val2 ;
26797 int ecode2 = 0 ;
26798 double val3 ;
26799 int ecode3 = 0 ;
26800 double val4 ;
26801 int ecode4 = 0 ;
26802 double val5 ;
26803 int ecode5 = 0 ;
26804 double val6 ;
26805 int ecode6 = 0 ;
70d7cb34
RD
26806 PyObject * obj0 = 0 ;
26807 PyObject * obj1 = 0 ;
26808 PyObject * obj2 = 0 ;
26809 PyObject * obj3 = 0 ;
26810 PyObject * obj4 = 0 ;
26811 PyObject * obj5 = 0 ;
70d7cb34 26812 char * kwnames[] = {
5c8c7dd3 26813 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26814 };
26815
5c8c7dd3
RD
26816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26818 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26820 }
5c8c7dd3
RD
26821 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26822 ecode2 = SWIG_AsVal_double(obj1, &val2);
26823 if (!SWIG_IsOK(ecode2)) {
26824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26825 }
26826 arg2 = static_cast< wxDouble >(val2);
26827 ecode3 = SWIG_AsVal_double(obj2, &val3);
26828 if (!SWIG_IsOK(ecode3)) {
26829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26830 }
26831 arg3 = static_cast< wxDouble >(val3);
26832 ecode4 = SWIG_AsVal_double(obj3, &val4);
26833 if (!SWIG_IsOK(ecode4)) {
26834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26835 }
26836 arg4 = static_cast< wxDouble >(val4);
26837 ecode5 = SWIG_AsVal_double(obj4, &val5);
26838 if (!SWIG_IsOK(ecode5)) {
26839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26840 }
26841 arg5 = static_cast< wxDouble >(val5);
26842 ecode6 = SWIG_AsVal_double(obj5, &val6);
26843 if (!SWIG_IsOK(ecode6)) {
26844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26845 }
26846 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26847 {
5c8c7dd3 26848 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_Py_Void();
26852 return resultobj;
26853fail:
26854 return NULL;
26855}
26856
26857
5c8c7dd3 26858SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26859 PyObject *resultobj = 0;
5c8c7dd3
RD
26860 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26861 wxDouble arg2 ;
26862 wxDouble arg3 ;
26863 wxDouble arg4 ;
26864 wxDouble arg5 ;
70d7cb34
RD
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
5c8c7dd3
RD
26867 double val2 ;
26868 int ecode2 = 0 ;
26869 double val3 ;
26870 int ecode3 = 0 ;
26871 double val4 ;
26872 int ecode4 = 0 ;
26873 double val5 ;
26874 int ecode5 = 0 ;
26875 PyObject * obj0 = 0 ;
26876 PyObject * obj1 = 0 ;
26877 PyObject * obj2 = 0 ;
26878 PyObject * obj3 = 0 ;
26879 PyObject * obj4 = 0 ;
26880 char * kwnames[] = {
26881 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26882 };
70d7cb34 26883
5c8c7dd3
RD
26884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26886 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26888 }
5c8c7dd3
RD
26889 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26890 ecode2 = SWIG_AsVal_double(obj1, &val2);
26891 if (!SWIG_IsOK(ecode2)) {
26892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26893 }
26894 arg2 = static_cast< wxDouble >(val2);
26895 ecode3 = SWIG_AsVal_double(obj2, &val3);
26896 if (!SWIG_IsOK(ecode3)) {
26897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26898 }
26899 arg3 = static_cast< wxDouble >(val3);
26900 ecode4 = SWIG_AsVal_double(obj3, &val4);
26901 if (!SWIG_IsOK(ecode4)) {
26902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26903 }
26904 arg4 = static_cast< wxDouble >(val4);
26905 ecode5 = SWIG_AsVal_double(obj4, &val5);
26906 if (!SWIG_IsOK(ecode5)) {
26907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26908 }
26909 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26910 {
5c8c7dd3 26911 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
26912 if (PyErr_Occurred()) SWIG_fail;
26913 }
26914 resultobj = SWIG_Py_Void();
26915 return resultobj;
26916fail:
26917 return NULL;
26918}
26919
26920
5c8c7dd3 26921SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26922 PyObject *resultobj = 0;
5c8c7dd3
RD
26923 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26924 wxDouble arg2 ;
26925 wxDouble arg3 ;
26926 wxDouble arg4 ;
26927 wxDouble arg5 ;
26928 wxDouble arg6 ;
70d7cb34
RD
26929 void *argp1 = 0 ;
26930 int res1 = 0 ;
5c8c7dd3
RD
26931 double val2 ;
26932 int ecode2 = 0 ;
26933 double val3 ;
26934 int ecode3 = 0 ;
26935 double val4 ;
26936 int ecode4 = 0 ;
26937 double val5 ;
26938 int ecode5 = 0 ;
26939 double val6 ;
26940 int ecode6 = 0 ;
70d7cb34
RD
26941 PyObject * obj0 = 0 ;
26942 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26943 PyObject * obj2 = 0 ;
26944 PyObject * obj3 = 0 ;
26945 PyObject * obj4 = 0 ;
26946 PyObject * obj5 = 0 ;
70d7cb34 26947 char * kwnames[] = {
5c8c7dd3 26948 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
26949 };
26950
5c8c7dd3
RD
26951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26953 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26955 }
5c8c7dd3
RD
26956 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26957 ecode2 = SWIG_AsVal_double(obj1, &val2);
26958 if (!SWIG_IsOK(ecode2)) {
26959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26960 }
26961 arg2 = static_cast< wxDouble >(val2);
26962 ecode3 = SWIG_AsVal_double(obj2, &val3);
26963 if (!SWIG_IsOK(ecode3)) {
26964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26965 }
26966 arg3 = static_cast< wxDouble >(val3);
26967 ecode4 = SWIG_AsVal_double(obj3, &val4);
26968 if (!SWIG_IsOK(ecode4)) {
26969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26970 }
26971 arg4 = static_cast< wxDouble >(val4);
26972 ecode5 = SWIG_AsVal_double(obj4, &val5);
26973 if (!SWIG_IsOK(ecode5)) {
26974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26975 }
26976 arg5 = static_cast< wxDouble >(val5);
26977 ecode6 = SWIG_AsVal_double(obj5, &val6);
26978 if (!SWIG_IsOK(ecode6)) {
26979 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26980 }
26981 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26982 {
5c8c7dd3 26983 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26984 if (PyErr_Occurred()) SWIG_fail;
26985 }
5c8c7dd3 26986 resultobj = SWIG_Py_Void();
70d7cb34
RD
26987 return resultobj;
26988fail:
26989 return NULL;
26990}
26991
26992
5c8c7dd3 26993SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 26994 PyObject *resultobj = 0;
5c8c7dd3
RD
26995 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26996 void *result = 0 ;
70d7cb34
RD
26997 void *argp1 = 0 ;
26998 int res1 = 0 ;
26999 PyObject *swig_obj[1] ;
27000
27001 if (!args) SWIG_fail;
27002 swig_obj[0] = args;
5c8c7dd3 27003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27004 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27006 }
5c8c7dd3 27007 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27008 {
5c8c7dd3 27009 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27010 if (PyErr_Occurred()) SWIG_fail;
27011 }
5c8c7dd3 27012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27013 return resultobj;
27014fail:
27015 return NULL;
27016}
27017
27018
5c8c7dd3 27019SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27020 PyObject *resultobj = 0;
5c8c7dd3
RD
27021 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27022 void *arg2 = (void *) 0 ;
70d7cb34
RD
27023 void *argp1 = 0 ;
27024 int res1 = 0 ;
5c8c7dd3 27025 int res2 ;
70d7cb34
RD
27026 PyObject * obj0 = 0 ;
27027 PyObject * obj1 = 0 ;
70d7cb34 27028 char * kwnames[] = {
5c8c7dd3 27029 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27030 };
27031
5c8c7dd3
RD
27032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27034 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27036 }
27037 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27038 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27039 if (!SWIG_IsOK(res2)) {
27040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27041 }
70d7cb34 27042 {
5c8c7dd3 27043 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27044 if (PyErr_Occurred()) SWIG_fail;
27045 }
27046 resultobj = SWIG_Py_Void();
27047 return resultobj;
27048fail:
27049 return NULL;
27050}
27051
27052
5c8c7dd3 27053SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27054 PyObject *resultobj = 0;
5c8c7dd3
RD
27055 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27056 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27057 void *argp1 = 0 ;
27058 int res1 = 0 ;
5c8c7dd3
RD
27059 void *argp2 = 0 ;
27060 int res2 = 0 ;
70d7cb34
RD
27061 PyObject * obj0 = 0 ;
27062 PyObject * obj1 = 0 ;
70d7cb34 27063 char * kwnames[] = {
5c8c7dd3 27064 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27065 };
27066
5c8c7dd3
RD
27067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27069 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27071 }
5c8c7dd3
RD
27072 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27074 if (!SWIG_IsOK(res2)) {
27075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27076 }
27077 if (!argp2) {
27078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27079 }
27080 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27081 {
5c8c7dd3 27082 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_Py_Void();
27086 return resultobj;
27087fail:
27088 return NULL;
27089}
27090
27091
5c8c7dd3 27092SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27093 PyObject *resultobj = 0;
5c8c7dd3
RD
27094 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27095 wxRect2DDouble result;
70d7cb34
RD
27096 void *argp1 = 0 ;
27097 int res1 = 0 ;
5c8c7dd3 27098 PyObject *swig_obj[1] ;
70d7cb34 27099
5c8c7dd3
RD
27100 if (!args) SWIG_fail;
27101 swig_obj[0] = args;
27102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27103 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27105 }
5c8c7dd3 27106 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27107 {
5c8c7dd3 27108 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27109 if (PyErr_Occurred()) SWIG_fail;
27110 }
5c8c7dd3 27111 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27112 return resultobj;
27113fail:
27114 return NULL;
27115}
27116
27117
5c8c7dd3 27118SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27119 PyObject *resultobj = 0;
5c8c7dd3
RD
27120 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27121 wxDouble arg2 ;
27122 wxDouble arg3 ;
27123 int arg4 = (int) wxODDEVEN_RULE ;
27124 bool result;
70d7cb34
RD
27125 void *argp1 = 0 ;
27126 int res1 = 0 ;
5c8c7dd3
RD
27127 double val2 ;
27128 int ecode2 = 0 ;
27129 double val3 ;
27130 int ecode3 = 0 ;
27131 int val4 ;
27132 int ecode4 = 0 ;
70d7cb34 27133
5c8c7dd3
RD
27134 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27136 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27138 }
5c8c7dd3
RD
27139 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27140 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27141 if (!SWIG_IsOK(ecode2)) {
27142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27143 }
27144 arg2 = static_cast< wxDouble >(val2);
27145 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27146 if (!SWIG_IsOK(ecode3)) {
27147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27148 }
27149 arg3 = static_cast< wxDouble >(val3);
27150 if (swig_obj[3]) {
27151 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27152 if (!SWIG_IsOK(ecode4)) {
27153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27154 }
27155 arg4 = static_cast< int >(val4);
70d7cb34
RD
27156 }
27157 {
5c8c7dd3 27158 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27159 if (PyErr_Occurred()) SWIG_fail;
27160 }
5c8c7dd3
RD
27161 {
27162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27163 }
27164 return resultobj;
27165fail:
27166 return NULL;
27167}
27168
27169
5c8c7dd3 27170SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27171 PyObject *resultobj = 0;
5c8c7dd3
RD
27172 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27173 wxPoint2DDouble *arg2 = 0 ;
27174 int arg3 = (int) wxODDEVEN_RULE ;
27175 bool result;
70d7cb34
RD
27176 void *argp1 = 0 ;
27177 int res1 = 0 ;
5c8c7dd3 27178 void *argp2 = 0 ;
70d7cb34 27179 int res2 = 0 ;
5c8c7dd3
RD
27180 int val3 ;
27181 int ecode3 = 0 ;
70d7cb34 27182
5c8c7dd3
RD
27183 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27185 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27187 }
5c8c7dd3
RD
27188 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27189 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27190 if (!SWIG_IsOK(res2)) {
27191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27192 }
5c8c7dd3
RD
27193 if (!argp2) {
27194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27195 }
27196 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27197 if (swig_obj[2]) {
27198 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27199 if (!SWIG_IsOK(ecode3)) {
27200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27201 }
27202 arg3 = static_cast< int >(val3);
70d7cb34
RD
27203 }
27204 {
5c8c7dd3 27205 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
5c8c7dd3
RD
27208 {
27209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27210 }
27211 return resultobj;
27212fail:
27213 return NULL;
27214}
27215
27216
5c8c7dd3
RD
27217SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27218 int argc;
27219 PyObject *argv[5];
70d7cb34 27220
5c8c7dd3
RD
27221 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27222 --argc;
27223 if ((argc >= 2) && (argc <= 3)) {
27224 int _v = 0;
27225 {
27226 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27227 _v = SWIG_CheckState(res);
27228 }
27229 if (!_v) goto check_1;
27230 if (argc > 2) {
27231 {
27232 {
27233 int res = SWIG_AsVal_int(argv[2], NULL);
27234 _v = SWIG_CheckState(res);
27235 }
27236 }
27237 if (!_v) goto check_1;
27238 }
27239 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27240 }
5c8c7dd3
RD
27241check_1:
27242
27243 if ((argc >= 3) && (argc <= 4)) {
27244 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27245 }
5c8c7dd3 27246
70d7cb34 27247fail:
5c8c7dd3 27248 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27249 return NULL;
27250}
27251
27252
5c8c7dd3 27253SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27254 PyObject *obj;
27255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27256 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27257 return SWIG_Py_Void();
27258}
27259
8f514ab4
RD
27260SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27261 return SWIG_Python_InitShadowInstance(args);
27262}
27263
5c8c7dd3
RD
27264SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27265 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27266 return 1;
27267}
27268
27269
27270SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27271 PyObject *pyobj = 0;
27272
27273 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27274 return pyobj;
27275}
27276
27277
27278SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27279 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27280 return 1;
27281}
27282
27283
27284SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27285 PyObject *pyobj = 0;
27286
27287 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27288 return pyobj;
27289}
27290
27291
27292SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27293 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27294 return 1;
27295}
27296
27297
27298SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27299 PyObject *pyobj = 0;
27300
27301 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27302 return pyobj;
27303}
27304
27305
27306SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27307 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27308 return 1;
27309}
27310
27311
27312SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27313 PyObject *pyobj = 0;
27314
27315 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27316 return pyobj;
27317}
27318
27319
27320SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27321 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27322 return 1;
27323}
27324
27325
27326SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27327 PyObject *pyobj = 0;
27328
27329 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27330 return pyobj;
27331}
27332
27333
70d7cb34
RD
27334SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27335 PyObject *resultobj = 0;
27336 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 PyObject *swig_obj[1] ;
27340
27341 if (!args) SWIG_fail;
27342 swig_obj[0] = args;
27343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27344 if (!SWIG_IsOK(res1)) {
27345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27346 }
27347 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27348 {
27349 delete arg1;
27350
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_Py_Void();
27354 return resultobj;
27355fail:
27356 return NULL;
27357}
27358
27359
27360SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27361 PyObject *resultobj = 0;
27362 wxWindowDC *arg1 = 0 ;
27363 wxGraphicsContext *result = 0 ;
27364 void *argp1 = 0 ;
27365 int res1 = 0 ;
27366
27367 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27369 if (!SWIG_IsOK(res1)) {
27370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27371 }
27372 if (!argp1) {
27373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27374 }
27375 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27376 {
27377 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27378 if (PyErr_Occurred()) SWIG_fail;
27379 }
27380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27381 return resultobj;
27382fail:
27383 return NULL;
27384}
27385
27386
27387SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27388 PyObject *resultobj = 0;
27389 wxWindow *arg1 = (wxWindow *) 0 ;
27390 wxGraphicsContext *result = 0 ;
27391 void *argp1 = 0 ;
27392 int res1 = 0 ;
27393
27394 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27396 if (!SWIG_IsOK(res1)) {
27397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27398 }
27399 arg1 = reinterpret_cast< wxWindow * >(argp1);
27400 {
27401 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27402 if (PyErr_Occurred()) SWIG_fail;
27403 }
27404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27405 return resultobj;
27406fail:
27407 return NULL;
27408}
27409
27410
27411SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27412 int argc;
27413 PyObject *argv[2];
27414
27415 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27416 --argc;
27417 if (argc == 1) {
27418 int _v = 0;
27419 {
27420 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27421 _v = SWIG_CheckState(res);
27422 }
27423 if (!_v) goto check_1;
27424 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27425 }
27426check_1:
27427
27428 if (argc == 1) {
27429 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27430 }
27431
27432fail:
27433 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27434 return NULL;
27435}
27436
27437
f89238b9
RD
27438SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27439 PyObject *resultobj = 0;
27440 wxGraphicsContext *result = 0 ;
27441
27442 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27443 {
27444 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27448 return resultobj;
27449fail:
27450 return NULL;
27451}
27452
27453
70d7cb34
RD
27454SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27455 PyObject *resultobj = 0;
27456 void *arg1 = (void *) 0 ;
27457 wxGraphicsContext *result = 0 ;
27458 int res1 ;
27459 PyObject * obj0 = 0 ;
27460 char * kwnames[] = {
27461 (char *) "context", NULL
27462 };
27463
27464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27465 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27466 if (!SWIG_IsOK(res1)) {
27467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27468 }
27469 {
27470 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27471 if (PyErr_Occurred()) SWIG_fail;
27472 }
27473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27474 return resultobj;
27475fail:
27476 return NULL;
27477}
27478
27479
27480SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj = 0;
27482 void *arg1 = (void *) 0 ;
27483 wxGraphicsContext *result = 0 ;
27484 int res1 ;
27485 PyObject * obj0 = 0 ;
27486 char * kwnames[] = {
27487 (char *) "window", NULL
27488 };
27489
27490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27491 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27492 if (!SWIG_IsOK(res1)) {
27493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27494 }
27495 {
27496 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
27499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27500 return resultobj;
27501fail:
27502 return NULL;
27503}
27504
27505
27506SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27507 PyObject *resultobj = 0;
27508 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27509 wxGraphicsPath result;
70d7cb34
RD
27510 void *argp1 = 0 ;
27511 int res1 = 0 ;
27512 PyObject *swig_obj[1] ;
27513
27514 if (!args) SWIG_fail;
27515 swig_obj[0] = args;
27516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27517 if (!SWIG_IsOK(res1)) {
27518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27519 }
27520 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27521 {
5c8c7dd3 27522 result = (arg1)->CreatePath();
70d7cb34
RD
27523 if (PyErr_Occurred()) SWIG_fail;
27524 }
5c8c7dd3 27525 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27526 return resultobj;
27527fail:
27528 return NULL;
27529}
27530
27531
70d7cb34 27532SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27533 PyObject *resultobj = 0;
70d7cb34
RD
27534 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27535 wxPen *arg2 = 0 ;
27536 wxGraphicsPen result;
72ef6efb
RD
27537 void *argp1 = 0 ;
27538 int res1 = 0 ;
70d7cb34
RD
27539 void *argp2 = 0 ;
27540 int res2 = 0 ;
72ef6efb
RD
27541 PyObject * obj0 = 0 ;
27542 PyObject * obj1 = 0 ;
72ef6efb 27543 char * kwnames[] = {
70d7cb34 27544 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27545 };
27546
70d7cb34
RD
27547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27549 if (!SWIG_IsOK(res1)) {
70d7cb34 27550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27551 }
70d7cb34
RD
27552 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27554 if (!SWIG_IsOK(res2)) {
27555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27556 }
27557 if (!argp2) {
27558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27559 }
27560 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27561 {
70d7cb34 27562 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27563 if (PyErr_Occurred()) SWIG_fail;
27564 }
70d7cb34 27565 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27566 return resultobj;
27567fail:
27568 return NULL;
27569}
27570
27571
70d7cb34 27572SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27573 PyObject *resultobj = 0;
70d7cb34
RD
27574 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27575 wxBrush *arg2 = 0 ;
27576 wxGraphicsBrush result;
72ef6efb
RD
27577 void *argp1 = 0 ;
27578 int res1 = 0 ;
70d7cb34
RD
27579 void *argp2 = 0 ;
27580 int res2 = 0 ;
72ef6efb
RD
27581 PyObject * obj0 = 0 ;
27582 PyObject * obj1 = 0 ;
72ef6efb 27583 char * kwnames[] = {
70d7cb34 27584 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27585 };
27586
70d7cb34
RD
27587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27589 if (!SWIG_IsOK(res1)) {
70d7cb34 27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27591 }
70d7cb34
RD
27592 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27594 if (!SWIG_IsOK(res2)) {
27595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27596 }
27597 if (!argp2) {
27598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27599 }
27600 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27601 {
70d7cb34 27602 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27603 if (PyErr_Occurred()) SWIG_fail;
27604 }
70d7cb34 27605 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27606 return resultobj;
27607fail:
27608 return NULL;
27609}
27610
27611
70d7cb34 27612SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27613 PyObject *resultobj = 0;
70d7cb34 27614 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27615 wxDouble arg2 ;
27616 wxDouble arg3 ;
27617 wxDouble arg4 ;
27618 wxDouble arg5 ;
70d7cb34
RD
27619 wxColour *arg6 = 0 ;
27620 wxColour *arg7 = 0 ;
27621 wxGraphicsBrush result;
72ef6efb
RD
27622 void *argp1 = 0 ;
27623 int res1 = 0 ;
27624 double val2 ;
27625 int ecode2 = 0 ;
27626 double val3 ;
27627 int ecode3 = 0 ;
27628 double val4 ;
27629 int ecode4 = 0 ;
27630 double val5 ;
27631 int ecode5 = 0 ;
70d7cb34
RD
27632 wxColour temp6 ;
27633 wxColour temp7 ;
72ef6efb
RD
27634 PyObject * obj0 = 0 ;
27635 PyObject * obj1 = 0 ;
27636 PyObject * obj2 = 0 ;
27637 PyObject * obj3 = 0 ;
27638 PyObject * obj4 = 0 ;
70d7cb34
RD
27639 PyObject * obj5 = 0 ;
27640 PyObject * obj6 = 0 ;
72ef6efb 27641 char * kwnames[] = {
70d7cb34 27642 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27643 };
27644
70d7cb34
RD
27645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27647 if (!SWIG_IsOK(res1)) {
70d7cb34 27648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27649 }
70d7cb34 27650 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27651 ecode2 = SWIG_AsVal_double(obj1, &val2);
27652 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27654 }
27655 arg2 = static_cast< wxDouble >(val2);
27656 ecode3 = SWIG_AsVal_double(obj2, &val3);
27657 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27659 }
27660 arg3 = static_cast< wxDouble >(val3);
27661 ecode4 = SWIG_AsVal_double(obj3, &val4);
27662 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27664 }
27665 arg4 = static_cast< wxDouble >(val4);
27666 ecode5 = SWIG_AsVal_double(obj4, &val5);
27667 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27669 }
27670 arg5 = static_cast< wxDouble >(val5);
27671 {
70d7cb34
RD
27672 arg6 = &temp6;
27673 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27674 }
70d7cb34
RD
27675 {
27676 arg7 = &temp7;
27677 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27678 }
72ef6efb 27679 {
70d7cb34 27680 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
70d7cb34 27683 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27684 return resultobj;
27685fail:
27686 return NULL;
27687}
27688
27689
70d7cb34 27690SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27691 PyObject *resultobj = 0;
70d7cb34 27692 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27693 wxDouble arg2 ;
27694 wxDouble arg3 ;
27695 wxDouble arg4 ;
27696 wxDouble arg5 ;
27697 wxDouble arg6 ;
70d7cb34
RD
27698 wxColour *arg7 = 0 ;
27699 wxColour *arg8 = 0 ;
27700 wxGraphicsBrush result;
72ef6efb
RD
27701 void *argp1 = 0 ;
27702 int res1 = 0 ;
27703 double val2 ;
27704 int ecode2 = 0 ;
27705 double val3 ;
27706 int ecode3 = 0 ;
27707 double val4 ;
27708 int ecode4 = 0 ;
27709 double val5 ;
27710 int ecode5 = 0 ;
27711 double val6 ;
27712 int ecode6 = 0 ;
70d7cb34
RD
27713 wxColour temp7 ;
27714 wxColour temp8 ;
72ef6efb
RD
27715 PyObject * obj0 = 0 ;
27716 PyObject * obj1 = 0 ;
27717 PyObject * obj2 = 0 ;
27718 PyObject * obj3 = 0 ;
27719 PyObject * obj4 = 0 ;
27720 PyObject * obj5 = 0 ;
70d7cb34
RD
27721 PyObject * obj6 = 0 ;
27722 PyObject * obj7 = 0 ;
72ef6efb 27723 char * kwnames[] = {
70d7cb34 27724 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27725 };
27726
70d7cb34
RD
27727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27729 if (!SWIG_IsOK(res1)) {
70d7cb34 27730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27731 }
70d7cb34 27732 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27733 ecode2 = SWIG_AsVal_double(obj1, &val2);
27734 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27736 }
27737 arg2 = static_cast< wxDouble >(val2);
27738 ecode3 = SWIG_AsVal_double(obj2, &val3);
27739 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27741 }
27742 arg3 = static_cast< wxDouble >(val3);
27743 ecode4 = SWIG_AsVal_double(obj3, &val4);
27744 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27746 }
27747 arg4 = static_cast< wxDouble >(val4);
27748 ecode5 = SWIG_AsVal_double(obj4, &val5);
27749 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27751 }
27752 arg5 = static_cast< wxDouble >(val5);
27753 ecode6 = SWIG_AsVal_double(obj5, &val6);
27754 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27756 }
27757 arg6 = static_cast< wxDouble >(val6);
27758 {
70d7cb34
RD
27759 arg7 = &temp7;
27760 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27761 }
27762 {
27763 arg8 = &temp8;
27764 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27765 }
27766 {
27767 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27768 if (PyErr_Occurred()) SWIG_fail;
27769 }
70d7cb34 27770 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27771 return resultobj;
27772fail:
27773 return NULL;
27774}
27775
27776
70d7cb34 27777SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27778 PyObject *resultobj = 0;
27779 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27780 wxFont *arg2 = 0 ;
27781 wxColour const &arg3_defvalue = *wxBLACK ;
27782 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27783 wxGraphicsFont result;
72ef6efb
RD
27784 void *argp1 = 0 ;
27785 int res1 = 0 ;
70d7cb34
RD
27786 void *argp2 = 0 ;
27787 int res2 = 0 ;
27788 wxColour temp3 ;
27789 PyObject * obj0 = 0 ;
27790 PyObject * obj1 = 0 ;
27791 PyObject * obj2 = 0 ;
27792 char * kwnames[] = {
27793 (char *) "self",(char *) "font",(char *) "col", NULL
27794 };
72ef6efb 27795
70d7cb34
RD
27796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27798 if (!SWIG_IsOK(res1)) {
70d7cb34 27799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27800 }
27801 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27803 if (!SWIG_IsOK(res2)) {
27804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27805 }
70d7cb34
RD
27806 if (!argp2) {
27807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27808 }
70d7cb34
RD
27809 arg2 = reinterpret_cast< wxFont * >(argp2);
27810 if (obj2) {
27811 {
27812 arg3 = &temp3;
27813 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27814 }
72ef6efb 27815 }
72ef6efb 27816 {
70d7cb34 27817 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27818 if (PyErr_Occurred()) SWIG_fail;
27819 }
70d7cb34 27820 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27821 return resultobj;
27822fail:
27823 return NULL;
27824}
27825
27826
70d7cb34 27827SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27828 PyObject *resultobj = 0;
70d7cb34
RD
27829 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27830 wxDouble arg2 = (wxDouble) 1.0 ;
27831 wxDouble arg3 = (wxDouble) 0.0 ;
27832 wxDouble arg4 = (wxDouble) 0.0 ;
27833 wxDouble arg5 = (wxDouble) 1.0 ;
27834 wxDouble arg6 = (wxDouble) 0.0 ;
27835 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27836 wxGraphicsMatrix result;
0a27f394
RD
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
70d7cb34
RD
27839 double val2 ;
27840 int ecode2 = 0 ;
27841 double val3 ;
27842 int ecode3 = 0 ;
27843 double val4 ;
27844 int ecode4 = 0 ;
27845 double val5 ;
27846 int ecode5 = 0 ;
27847 double val6 ;
27848 int ecode6 = 0 ;
27849 double val7 ;
27850 int ecode7 = 0 ;
27851 PyObject * obj0 = 0 ;
27852 PyObject * obj1 = 0 ;
27853 PyObject * obj2 = 0 ;
27854 PyObject * obj3 = 0 ;
27855 PyObject * obj4 = 0 ;
27856 PyObject * obj5 = 0 ;
27857 PyObject * obj6 = 0 ;
27858 char * kwnames[] = {
27859 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27860 };
0a27f394 27861
70d7cb34
RD
27862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27864 if (!SWIG_IsOK(res1)) {
70d7cb34 27865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27866 }
70d7cb34
RD
27867 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27868 if (obj1) {
27869 ecode2 = SWIG_AsVal_double(obj1, &val2);
27870 if (!SWIG_IsOK(ecode2)) {
27871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27872 }
27873 arg2 = static_cast< wxDouble >(val2);
0a27f394 27874 }
70d7cb34
RD
27875 if (obj2) {
27876 ecode3 = SWIG_AsVal_double(obj2, &val3);
27877 if (!SWIG_IsOK(ecode3)) {
27878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27879 }
27880 arg3 = static_cast< wxDouble >(val3);
0a27f394 27881 }
70d7cb34
RD
27882 if (obj3) {
27883 ecode4 = SWIG_AsVal_double(obj3, &val4);
27884 if (!SWIG_IsOK(ecode4)) {
27885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27886 }
27887 arg4 = static_cast< wxDouble >(val4);
0a27f394 27888 }
70d7cb34
RD
27889 if (obj4) {
27890 ecode5 = SWIG_AsVal_double(obj4, &val5);
27891 if (!SWIG_IsOK(ecode5)) {
27892 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27893 }
27894 arg5 = static_cast< wxDouble >(val5);
0a27f394 27895 }
70d7cb34
RD
27896 if (obj5) {
27897 ecode6 = SWIG_AsVal_double(obj5, &val6);
27898 if (!SWIG_IsOK(ecode6)) {
27899 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27900 }
27901 arg6 = static_cast< wxDouble >(val6);
0a27f394 27902 }
70d7cb34
RD
27903 if (obj6) {
27904 ecode7 = SWIG_AsVal_double(obj6, &val7);
27905 if (!SWIG_IsOK(ecode7)) {
27906 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27907 }
27908 arg7 = static_cast< wxDouble >(val7);
72ef6efb 27909 }
72ef6efb 27910 {
5c8c7dd3 27911 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
27912 if (PyErr_Occurred()) SWIG_fail;
27913 }
5c8c7dd3 27914 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27915 return resultobj;
27916fail:
27917 return NULL;
27918}
27919
27920
27921SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27922 PyObject *resultobj = 0;
27923 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27924 void *argp1 = 0 ;
27925 int res1 = 0 ;
27926 PyObject *swig_obj[1] ;
27927
27928 if (!args) SWIG_fail;
27929 swig_obj[0] = args;
27930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27931 if (!SWIG_IsOK(res1)) {
27932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27933 }
27934 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27935 {
72ef6efb 27936 (arg1)->PushState();
72ef6efb
RD
27937 if (PyErr_Occurred()) SWIG_fail;
27938 }
27939 resultobj = SWIG_Py_Void();
27940 return resultobj;
27941fail:
27942 return NULL;
27943}
27944
27945
27946SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27947 PyObject *resultobj = 0;
27948 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27949 void *argp1 = 0 ;
27950 int res1 = 0 ;
27951 PyObject *swig_obj[1] ;
27952
27953 if (!args) SWIG_fail;
27954 swig_obj[0] = args;
27955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27956 if (!SWIG_IsOK(res1)) {
27957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27958 }
27959 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27960 {
72ef6efb 27961 (arg1)->PopState();
72ef6efb
RD
27962 if (PyErr_Occurred()) SWIG_fail;
27963 }
27964 resultobj = SWIG_Py_Void();
27965 return resultobj;
27966fail:
27967 return NULL;
27968}
27969
27970
0a27f394 27971SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27972 PyObject *resultobj = 0;
27973 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27974 wxRegion *arg2 = 0 ;
27975 void *argp1 = 0 ;
27976 int res1 = 0 ;
27977 void *argp2 = 0 ;
27978 int res2 = 0 ;
27979 PyObject * obj0 = 0 ;
27980 PyObject * obj1 = 0 ;
27981 char * kwnames[] = {
27982 (char *) "self",(char *) "region", NULL
27983 };
27984
0a27f394 27985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
27986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27987 if (!SWIG_IsOK(res1)) {
0a27f394 27988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27989 }
27990 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27992 if (!SWIG_IsOK(res2)) {
0a27f394 27993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27994 }
27995 if (!argp2) {
0a27f394 27996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27997 }
27998 arg2 = reinterpret_cast< wxRegion * >(argp2);
27999 {
72ef6efb 28000 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28001 if (PyErr_Occurred()) SWIG_fail;
28002 }
28003 resultobj = SWIG_Py_Void();
28004 return resultobj;
28005fail:
28006 return NULL;
28007}
28008
28009
0a27f394
RD
28010SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28011 PyObject *resultobj = 0;
28012 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28013 wxDouble arg2 ;
28014 wxDouble arg3 ;
28015 wxDouble arg4 ;
28016 wxDouble arg5 ;
28017 void *argp1 = 0 ;
28018 int res1 = 0 ;
28019 double val2 ;
28020 int ecode2 = 0 ;
28021 double val3 ;
28022 int ecode3 = 0 ;
28023 double val4 ;
28024 int ecode4 = 0 ;
28025 double val5 ;
28026 int ecode5 = 0 ;
28027 PyObject * obj0 = 0 ;
28028 PyObject * obj1 = 0 ;
28029 PyObject * obj2 = 0 ;
28030 PyObject * obj3 = 0 ;
28031 PyObject * obj4 = 0 ;
28032 char * kwnames[] = {
28033 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28034 };
28035
28036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28040 }
28041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28042 ecode2 = SWIG_AsVal_double(obj1, &val2);
28043 if (!SWIG_IsOK(ecode2)) {
28044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28045 }
28046 arg2 = static_cast< wxDouble >(val2);
28047 ecode3 = SWIG_AsVal_double(obj2, &val3);
28048 if (!SWIG_IsOK(ecode3)) {
28049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28050 }
28051 arg3 = static_cast< wxDouble >(val3);
28052 ecode4 = SWIG_AsVal_double(obj3, &val4);
28053 if (!SWIG_IsOK(ecode4)) {
28054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28055 }
28056 arg4 = static_cast< wxDouble >(val4);
28057 ecode5 = SWIG_AsVal_double(obj4, &val5);
28058 if (!SWIG_IsOK(ecode5)) {
28059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28060 }
28061 arg5 = static_cast< wxDouble >(val5);
28062 {
28063 (arg1)->Clip(arg2,arg3,arg4,arg5);
28064 if (PyErr_Occurred()) SWIG_fail;
28065 }
28066 resultobj = SWIG_Py_Void();
28067 return resultobj;
28068fail:
28069 return NULL;
28070}
28071
28072
28073SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28074 PyObject *resultobj = 0;
28075 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28076 void *argp1 = 0 ;
28077 int res1 = 0 ;
28078 PyObject *swig_obj[1] ;
28079
28080 if (!args) SWIG_fail;
28081 swig_obj[0] = args;
28082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28083 if (!SWIG_IsOK(res1)) {
28084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28085 }
28086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28087 {
28088 (arg1)->ResetClip();
28089 if (PyErr_Occurred()) SWIG_fail;
28090 }
28091 resultobj = SWIG_Py_Void();
28092 return resultobj;
28093fail:
28094 return NULL;
28095}
28096
28097
28098SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28099 PyObject *resultobj = 0;
28100 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28101 void *result = 0 ;
28102 void *argp1 = 0 ;
28103 int res1 = 0 ;
28104 PyObject *swig_obj[1] ;
28105
28106 if (!args) SWIG_fail;
28107 swig_obj[0] = args;
28108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28109 if (!SWIG_IsOK(res1)) {
28110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28111 }
28112 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28113 {
28114 result = (void *)(arg1)->GetNativeContext();
28115 if (PyErr_Occurred()) SWIG_fail;
28116 }
28117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28118 return resultobj;
28119fail:
28120 return NULL;
28121}
28122
28123
72ef6efb
RD
28124SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28125 PyObject *resultobj = 0;
28126 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28127 wxDouble arg2 ;
28128 wxDouble arg3 ;
28129 void *argp1 = 0 ;
28130 int res1 = 0 ;
28131 double val2 ;
28132 int ecode2 = 0 ;
28133 double val3 ;
28134 int ecode3 = 0 ;
28135 PyObject * obj0 = 0 ;
28136 PyObject * obj1 = 0 ;
28137 PyObject * obj2 = 0 ;
28138 char * kwnames[] = {
28139 (char *) "self",(char *) "dx",(char *) "dy", NULL
28140 };
28141
28142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28144 if (!SWIG_IsOK(res1)) {
28145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28146 }
28147 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28148 ecode2 = SWIG_AsVal_double(obj1, &val2);
28149 if (!SWIG_IsOK(ecode2)) {
28150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28151 }
28152 arg2 = static_cast< wxDouble >(val2);
28153 ecode3 = SWIG_AsVal_double(obj2, &val3);
28154 if (!SWIG_IsOK(ecode3)) {
28155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28156 }
28157 arg3 = static_cast< wxDouble >(val3);
28158 {
72ef6efb 28159 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28160 if (PyErr_Occurred()) SWIG_fail;
28161 }
28162 resultobj = SWIG_Py_Void();
28163 return resultobj;
28164fail:
28165 return NULL;
28166}
28167
28168
28169SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28170 PyObject *resultobj = 0;
28171 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28172 wxDouble arg2 ;
28173 wxDouble arg3 ;
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
28176 double val2 ;
28177 int ecode2 = 0 ;
28178 double val3 ;
28179 int ecode3 = 0 ;
28180 PyObject * obj0 = 0 ;
28181 PyObject * obj1 = 0 ;
28182 PyObject * obj2 = 0 ;
28183 char * kwnames[] = {
28184 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28185 };
28186
28187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28189 if (!SWIG_IsOK(res1)) {
28190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28191 }
28192 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28193 ecode2 = SWIG_AsVal_double(obj1, &val2);
28194 if (!SWIG_IsOK(ecode2)) {
28195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28196 }
28197 arg2 = static_cast< wxDouble >(val2);
28198 ecode3 = SWIG_AsVal_double(obj2, &val3);
28199 if (!SWIG_IsOK(ecode3)) {
28200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28201 }
28202 arg3 = static_cast< wxDouble >(val3);
28203 {
72ef6efb 28204 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28205 if (PyErr_Occurred()) SWIG_fail;
28206 }
28207 resultobj = SWIG_Py_Void();
28208 return resultobj;
28209fail:
28210 return NULL;
28211}
28212
28213
28214SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28215 PyObject *resultobj = 0;
28216 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28217 wxDouble arg2 ;
28218 void *argp1 = 0 ;
28219 int res1 = 0 ;
28220 double val2 ;
28221 int ecode2 = 0 ;
28222 PyObject * obj0 = 0 ;
28223 PyObject * obj1 = 0 ;
28224 char * kwnames[] = {
28225 (char *) "self",(char *) "angle", NULL
28226 };
28227
28228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28230 if (!SWIG_IsOK(res1)) {
28231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28232 }
28233 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28234 ecode2 = SWIG_AsVal_double(obj1, &val2);
28235 if (!SWIG_IsOK(ecode2)) {
28236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28237 }
28238 arg2 = static_cast< wxDouble >(val2);
28239 {
72ef6efb 28240 (arg1)->Rotate(arg2);
72ef6efb
RD
28241 if (PyErr_Occurred()) SWIG_fail;
28242 }
28243 resultobj = SWIG_Py_Void();
28244 return resultobj;
28245fail:
28246 return NULL;
28247}
28248
28249
5c8c7dd3
RD
28250SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28251 PyObject *resultobj = 0;
28252 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28253 wxGraphicsMatrix *arg2 = 0 ;
28254 void *argp1 = 0 ;
28255 int res1 = 0 ;
28256 void *argp2 = 0 ;
28257 int res2 = 0 ;
28258 PyObject * obj0 = 0 ;
28259 PyObject * obj1 = 0 ;
28260 char * kwnames[] = {
28261 (char *) "self",(char *) "matrix", NULL
28262 };
28263
28264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28266 if (!SWIG_IsOK(res1)) {
28267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28268 }
28269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28271 if (!SWIG_IsOK(res2)) {
28272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28273 }
28274 if (!argp2) {
28275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28276 }
28277 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28278 {
28279 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28280 if (PyErr_Occurred()) SWIG_fail;
28281 }
28282 resultobj = SWIG_Py_Void();
28283 return resultobj;
28284fail:
28285 return NULL;
28286}
28287
28288
28289SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28290 PyObject *resultobj = 0;
28291 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28292 wxGraphicsMatrix *arg2 = 0 ;
28293 void *argp1 = 0 ;
28294 int res1 = 0 ;
28295 void *argp2 = 0 ;
28296 int res2 = 0 ;
28297 PyObject * obj0 = 0 ;
28298 PyObject * obj1 = 0 ;
28299 char * kwnames[] = {
28300 (char *) "self",(char *) "matrix", NULL
28301 };
28302
28303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28305 if (!SWIG_IsOK(res1)) {
28306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28307 }
28308 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28310 if (!SWIG_IsOK(res2)) {
28311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28312 }
28313 if (!argp2) {
28314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28315 }
28316 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28317 {
28318 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28319 if (PyErr_Occurred()) SWIG_fail;
28320 }
28321 resultobj = SWIG_Py_Void();
28322 return resultobj;
28323fail:
28324 return NULL;
28325}
28326
28327
28328SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28329 PyObject *resultobj = 0;
28330 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28331 wxGraphicsMatrix result;
28332 void *argp1 = 0 ;
28333 int res1 = 0 ;
28334 PyObject *swig_obj[1] ;
28335
28336 if (!args) SWIG_fail;
28337 swig_obj[0] = args;
28338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28341 }
28342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28343 {
28344 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28348 return resultobj;
28349fail:
28350 return NULL;
28351}
28352
28353
70d7cb34
RD
28354SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28355 PyObject *resultobj = 0;
28356 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28357 wxGraphicsPen *arg2 = 0 ;
28358 void *argp1 = 0 ;
28359 int res1 = 0 ;
28360 void *argp2 = 0 ;
28361 int res2 = 0 ;
28362
28363 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28365 if (!SWIG_IsOK(res1)) {
28366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28367 }
28368 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28369 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28370 if (!SWIG_IsOK(res2)) {
28371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28372 }
28373 if (!argp2) {
28374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28375 }
28376 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28377 {
28378 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28379 if (PyErr_Occurred()) SWIG_fail;
28380 }
28381 resultobj = SWIG_Py_Void();
28382 return resultobj;
28383fail:
28384 return NULL;
28385}
28386
28387
28388SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28389 PyObject *resultobj = 0;
28390 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28391 wxPen *arg2 = 0 ;
28392 void *argp1 = 0 ;
28393 int res1 = 0 ;
28394 void *argp2 = 0 ;
28395 int res2 = 0 ;
72ef6efb 28396
70d7cb34
RD
28397 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28399 if (!SWIG_IsOK(res1)) {
28400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28401 }
28402 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28403 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28404 if (!SWIG_IsOK(res2)) {
28405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28406 }
28407 if (!argp2) {
28408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28409 }
28410 arg2 = reinterpret_cast< wxPen * >(argp2);
28411 {
72ef6efb 28412 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28413 if (PyErr_Occurred()) SWIG_fail;
28414 }
28415 resultobj = SWIG_Py_Void();
28416 return resultobj;
28417fail:
28418 return NULL;
28419}
28420
28421
70d7cb34
RD
28422SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28423 int argc;
28424 PyObject *argv[3];
28425
28426 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28427 --argc;
28428 if (argc == 2) {
28429 int _v = 0;
28430 {
28431 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28432 _v = SWIG_CheckState(res);
28433 }
28434 if (!_v) goto check_1;
28435 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28436 }
28437check_1:
28438
28439 if (argc == 2) {
28440 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28441 }
28442
28443fail:
28444 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28445 return NULL;
28446}
28447
28448
28449SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28450 PyObject *resultobj = 0;
28451 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28452 wxGraphicsBrush *arg2 = 0 ;
28453 void *argp1 = 0 ;
28454 int res1 = 0 ;
28455 void *argp2 = 0 ;
28456 int res2 = 0 ;
28457
28458 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28460 if (!SWIG_IsOK(res1)) {
28461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28462 }
28463 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28464 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28465 if (!SWIG_IsOK(res2)) {
28466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28467 }
28468 if (!argp2) {
28469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28470 }
28471 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28472 {
28473 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28474 if (PyErr_Occurred()) SWIG_fail;
28475 }
28476 resultobj = SWIG_Py_Void();
28477 return resultobj;
28478fail:
28479 return NULL;
28480}
28481
28482
28483SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28484 PyObject *resultobj = 0;
28485 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28486 wxBrush *arg2 = 0 ;
28487 void *argp1 = 0 ;
28488 int res1 = 0 ;
28489 void *argp2 = 0 ;
28490 int res2 = 0 ;
72ef6efb 28491
70d7cb34
RD
28492 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28494 if (!SWIG_IsOK(res1)) {
28495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28496 }
28497 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28498 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28499 if (!SWIG_IsOK(res2)) {
28500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28501 }
28502 if (!argp2) {
28503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28504 }
28505 arg2 = reinterpret_cast< wxBrush * >(argp2);
28506 {
72ef6efb 28507 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28508 if (PyErr_Occurred()) SWIG_fail;
28509 }
28510 resultobj = SWIG_Py_Void();
28511 return resultobj;
28512fail:
28513 return NULL;
28514}
28515
28516
70d7cb34
RD
28517SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28518 int argc;
28519 PyObject *argv[3];
72ef6efb 28520
70d7cb34
RD
28521 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28522 --argc;
28523 if (argc == 2) {
28524 int _v = 0;
28525 {
28526 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28527 _v = SWIG_CheckState(res);
28528 }
28529 if (!_v) goto check_1;
28530 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28531 }
70d7cb34
RD
28532check_1:
28533
28534 if (argc == 2) {
28535 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28536 }
70d7cb34 28537
72ef6efb 28538fail:
70d7cb34 28539 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28540 return NULL;
28541}
28542
28543
70d7cb34 28544SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28545 PyObject *resultobj = 0;
28546 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28547 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28548 void *argp1 = 0 ;
28549 int res1 = 0 ;
70d7cb34
RD
28550 void *argp2 = 0 ;
28551 int res2 = 0 ;
72ef6efb 28552
70d7cb34
RD
28553 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28555 if (!SWIG_IsOK(res1)) {
70d7cb34 28556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28557 }
28558 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28559 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28560 if (!SWIG_IsOK(res2)) {
28561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28562 }
70d7cb34
RD
28563 if (!argp2) {
28564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28565 }
70d7cb34 28566 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28567 {
70d7cb34 28568 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28569 if (PyErr_Occurred()) SWIG_fail;
28570 }
28571 resultobj = SWIG_Py_Void();
28572 return resultobj;
28573fail:
28574 return NULL;
28575}
28576
28577
70d7cb34 28578SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28579 PyObject *resultobj = 0;
28580 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28581 wxFont *arg2 = 0 ;
70d7cb34
RD
28582 wxColour const &arg3_defvalue = *wxBLACK ;
28583 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28584 void *argp1 = 0 ;
28585 int res1 = 0 ;
28586 void *argp2 = 0 ;
28587 int res2 = 0 ;
70d7cb34 28588 wxColour temp3 ;
72ef6efb 28589
70d7cb34
RD
28590 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28592 if (!SWIG_IsOK(res1)) {
28593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28594 }
28595 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28596 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28597 if (!SWIG_IsOK(res2)) {
28598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28599 }
28600 if (!argp2) {
28601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28602 }
28603 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28604 if (swig_obj[2]) {
28605 {
28606 arg3 = &temp3;
28607 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28608 }
28609 }
72ef6efb 28610 {
70d7cb34 28611 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28612 if (PyErr_Occurred()) SWIG_fail;
28613 }
28614 resultobj = SWIG_Py_Void();
28615 return resultobj;
28616fail:
28617 return NULL;
28618}
28619
28620
70d7cb34
RD
28621SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28622 int argc;
28623 PyObject *argv[4];
72ef6efb 28624
70d7cb34
RD
28625 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28626 --argc;
28627 if (argc == 2) {
28628 int _v = 0;
28629 {
28630 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28631 _v = SWIG_CheckState(res);
28632 }
28633 if (!_v) goto check_1;
28634 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28635 }
70d7cb34
RD
28636check_1:
28637
28638 if ((argc >= 2) && (argc <= 3)) {
28639 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28640 }
70d7cb34 28641
72ef6efb 28642fail:
70d7cb34 28643 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28644 return NULL;
28645}
28646
28647
28648SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28649 PyObject *resultobj = 0;
28650 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28651 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28652 void *argp1 = 0 ;
28653 int res1 = 0 ;
28654 void *argp2 = 0 ;
28655 int res2 = 0 ;
28656 PyObject * obj0 = 0 ;
28657 PyObject * obj1 = 0 ;
28658 char * kwnames[] = {
28659 (char *) "self",(char *) "path", NULL
28660 };
28661
28662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28664 if (!SWIG_IsOK(res1)) {
28665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28666 }
28667 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28669 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28671 }
28672 if (!argp2) {
28673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28674 }
28675 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28676 {
5c8c7dd3 28677 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28678 if (PyErr_Occurred()) SWIG_fail;
28679 }
28680 resultobj = SWIG_Py_Void();
28681 return resultobj;
28682fail:
28683 return NULL;
28684}
28685
28686
28687SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28688 PyObject *resultobj = 0;
28689 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28690 wxGraphicsPath *arg2 = 0 ;
28691 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28692 void *argp1 = 0 ;
28693 int res1 = 0 ;
28694 void *argp2 = 0 ;
28695 int res2 = 0 ;
28696 int val3 ;
28697 int ecode3 = 0 ;
28698 PyObject * obj0 = 0 ;
28699 PyObject * obj1 = 0 ;
28700 PyObject * obj2 = 0 ;
28701 char * kwnames[] = {
28702 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28703 };
28704
28705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28707 if (!SWIG_IsOK(res1)) {
28708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28709 }
28710 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28711 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28712 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28714 }
28715 if (!argp2) {
28716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28717 }
28718 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28719 if (obj2) {
28720 ecode3 = SWIG_AsVal_int(obj2, &val3);
28721 if (!SWIG_IsOK(ecode3)) {
28722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28723 }
28724 arg3 = static_cast< int >(val3);
28725 }
28726 {
5c8c7dd3 28727 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28728 if (PyErr_Occurred()) SWIG_fail;
28729 }
28730 resultobj = SWIG_Py_Void();
28731 return resultobj;
28732fail:
28733 return NULL;
28734}
28735
28736
28737SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28738 PyObject *resultobj = 0;
28739 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28740 wxGraphicsPath *arg2 = 0 ;
28741 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28742 void *argp1 = 0 ;
28743 int res1 = 0 ;
28744 void *argp2 = 0 ;
28745 int res2 = 0 ;
28746 int val3 ;
28747 int ecode3 = 0 ;
28748 PyObject * obj0 = 0 ;
28749 PyObject * obj1 = 0 ;
28750 PyObject * obj2 = 0 ;
28751 char * kwnames[] = {
28752 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28753 };
28754
28755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28757 if (!SWIG_IsOK(res1)) {
28758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28759 }
28760 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28762 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28764 }
28765 if (!argp2) {
28766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28767 }
28768 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28769 if (obj2) {
28770 ecode3 = SWIG_AsVal_int(obj2, &val3);
28771 if (!SWIG_IsOK(ecode3)) {
28772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28773 }
28774 arg3 = static_cast< int >(val3);
28775 }
28776 {
5c8c7dd3 28777 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28778 if (PyErr_Occurred()) SWIG_fail;
28779 }
28780 resultobj = SWIG_Py_Void();
28781 return resultobj;
28782fail:
28783 return NULL;
28784}
28785
28786
b39fe951 28787SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28788 PyObject *resultobj = 0;
28789 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28790 wxString *arg2 = 0 ;
28791 wxDouble arg3 ;
28792 wxDouble arg4 ;
f89238b9
RD
28793 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
28794 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
28795 void *argp1 = 0 ;
28796 int res1 = 0 ;
28797 bool temp2 = false ;
28798 double val3 ;
28799 int ecode3 = 0 ;
28800 double val4 ;
28801 int ecode4 = 0 ;
f89238b9
RD
28802 void *argp5 = 0 ;
28803 int res5 = 0 ;
b39fe951
RD
28804 PyObject * obj0 = 0 ;
28805 PyObject * obj1 = 0 ;
28806 PyObject * obj2 = 0 ;
28807 PyObject * obj3 = 0 ;
f89238b9 28808 PyObject * obj4 = 0 ;
b39fe951 28809 char * kwnames[] = {
f89238b9 28810 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 28811 };
72ef6efb 28812
f89238b9 28813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 28814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28815 if (!SWIG_IsOK(res1)) {
28816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28817 }
28818 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28819 {
b39fe951 28820 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28821 if (arg2 == NULL) SWIG_fail;
28822 temp2 = true;
28823 }
b39fe951 28824 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28825 if (!SWIG_IsOK(ecode3)) {
28826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28827 }
28828 arg3 = static_cast< wxDouble >(val3);
b39fe951 28829 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28830 if (!SWIG_IsOK(ecode4)) {
28831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28832 }
28833 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
28834 if (obj4) {
28835 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28836 if (!SWIG_IsOK(res5)) {
28837 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28838 }
28839 if (!argp5) {
28840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28841 }
28842 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
28843 }
72ef6efb 28844 {
f89238b9 28845 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
28846 if (PyErr_Occurred()) SWIG_fail;
28847 }
28848 resultobj = SWIG_Py_Void();
28849 {
28850 if (temp2)
28851 delete arg2;
28852 }
28853 return resultobj;
28854fail:
28855 {
28856 if (temp2)
28857 delete arg2;
28858 }
28859 return NULL;
28860}
28861
28862
b39fe951 28863SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28864 PyObject *resultobj = 0;
28865 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28866 wxString *arg2 = 0 ;
28867 wxDouble arg3 ;
28868 wxDouble arg4 ;
28869 wxDouble arg5 ;
f89238b9
RD
28870 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
28871 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
28872 void *argp1 = 0 ;
28873 int res1 = 0 ;
28874 bool temp2 = false ;
28875 double val3 ;
28876 int ecode3 = 0 ;
28877 double val4 ;
28878 int ecode4 = 0 ;
28879 double val5 ;
28880 int ecode5 = 0 ;
f89238b9
RD
28881 void *argp6 = 0 ;
28882 int res6 = 0 ;
b39fe951
RD
28883 PyObject * obj0 = 0 ;
28884 PyObject * obj1 = 0 ;
28885 PyObject * obj2 = 0 ;
28886 PyObject * obj3 = 0 ;
28887 PyObject * obj4 = 0 ;
f89238b9 28888 PyObject * obj5 = 0 ;
b39fe951 28889 char * kwnames[] = {
f89238b9 28890 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 28891 };
72ef6efb 28892
f89238b9 28893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 28894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28895 if (!SWIG_IsOK(res1)) {
b39fe951 28896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28897 }
28898 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28899 {
b39fe951 28900 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28901 if (arg2 == NULL) SWIG_fail;
28902 temp2 = true;
28903 }
b39fe951 28904 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 28905 if (!SWIG_IsOK(ecode3)) {
b39fe951 28906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28907 }
28908 arg3 = static_cast< wxDouble >(val3);
b39fe951 28909 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 28910 if (!SWIG_IsOK(ecode4)) {
b39fe951 28911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28912 }
28913 arg4 = static_cast< wxDouble >(val4);
b39fe951 28914 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 28915 if (!SWIG_IsOK(ecode5)) {
b39fe951 28916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28917 }
28918 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
28919 if (obj5) {
28920 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28921 if (!SWIG_IsOK(res6)) {
28922 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28923 }
28924 if (!argp6) {
28925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28926 }
28927 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
28928 }
72ef6efb 28929 {
f89238b9 28930 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
28931 if (PyErr_Occurred()) SWIG_fail;
28932 }
28933 resultobj = SWIG_Py_Void();
28934 {
28935 if (temp2)
28936 delete arg2;
28937 }
28938 return resultobj;
28939fail:
28940 {
28941 if (temp2)
28942 delete arg2;
28943 }
28944 return NULL;
28945}
28946
28947
be68621e 28948SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28949 PyObject *resultobj = 0;
28950 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28951 wxString *arg2 = 0 ;
28952 wxDouble *arg3 = (wxDouble *) 0 ;
28953 wxDouble *arg4 = (wxDouble *) 0 ;
28954 wxDouble *arg5 = (wxDouble *) 0 ;
28955 wxDouble *arg6 = (wxDouble *) 0 ;
28956 void *argp1 = 0 ;
28957 int res1 = 0 ;
28958 bool temp2 = false ;
28959 wxDouble temp3 ;
28960 int res3 = SWIG_TMPOBJ ;
28961 wxDouble temp4 ;
28962 int res4 = SWIG_TMPOBJ ;
28963 wxDouble temp5 ;
28964 int res5 = SWIG_TMPOBJ ;
28965 wxDouble temp6 ;
28966 int res6 = SWIG_TMPOBJ ;
28967 PyObject * obj0 = 0 ;
28968 PyObject * obj1 = 0 ;
28969 char * kwnames[] = {
28970 (char *) "self",(char *) "text", NULL
28971 };
28972
28973 arg3 = &temp3;
28974 arg4 = &temp4;
28975 arg5 = &temp5;
28976 arg6 = &temp6;
be68621e 28977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28979 if (!SWIG_IsOK(res1)) {
be68621e 28980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
28981 }
28982 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28983 {
28984 arg2 = wxString_in_helper(obj1);
28985 if (arg2 == NULL) SWIG_fail;
28986 temp2 = true;
28987 }
28988 {
72ef6efb 28989 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
28990 if (PyErr_Occurred()) SWIG_fail;
28991 }
28992 resultobj = SWIG_Py_Void();
28993 if (SWIG_IsTmpObj(res3)) {
28994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28995 } else {
28996 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28998 }
28999 if (SWIG_IsTmpObj(res4)) {
29000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29001 } else {
29002 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29004 }
29005 if (SWIG_IsTmpObj(res5)) {
29006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29007 } else {
29008 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29010 }
29011 if (SWIG_IsTmpObj(res6)) {
29012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29013 } else {
29014 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29016 }
29017 {
29018 if (temp2)
29019 delete arg2;
29020 }
29021 return resultobj;
29022fail:
29023 {
29024 if (temp2)
29025 delete arg2;
29026 }
29027 return NULL;
29028}
29029
29030
be68621e
RD
29031SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29032 PyObject *resultobj = 0;
29033 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29034 wxString *arg2 = 0 ;
29035 PyObject *result = 0 ;
29036 void *argp1 = 0 ;
29037 int res1 = 0 ;
29038 bool temp2 = false ;
29039 PyObject * obj0 = 0 ;
29040 PyObject * obj1 = 0 ;
29041 char * kwnames[] = {
29042 (char *) "self",(char *) "text", NULL
29043 };
29044
29045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29047 if (!SWIG_IsOK(res1)) {
29048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29049 }
29050 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29051 {
29052 arg2 = wxString_in_helper(obj1);
29053 if (arg2 == NULL) SWIG_fail;
29054 temp2 = true;
29055 }
29056 {
29057 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 resultobj = result;
29061 {
29062 if (temp2)
29063 delete arg2;
29064 }
29065 return resultobj;
29066fail:
29067 {
29068 if (temp2)
29069 delete arg2;
29070 }
29071 return NULL;
29072}
29073
29074
72ef6efb
RD
29075SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj = 0;
29077 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29078 wxString *arg2 = 0 ;
b39fe951 29079 wxArrayDouble result;
72ef6efb
RD
29080 void *argp1 = 0 ;
29081 int res1 = 0 ;
29082 bool temp2 = false ;
72ef6efb
RD
29083 PyObject * obj0 = 0 ;
29084 PyObject * obj1 = 0 ;
72ef6efb 29085 char * kwnames[] = {
b39fe951 29086 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29087 };
29088
b39fe951 29089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29091 if (!SWIG_IsOK(res1)) {
b39fe951 29092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29093 }
29094 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29095 {
29096 arg2 = wxString_in_helper(obj1);
29097 if (arg2 == NULL) SWIG_fail;
29098 temp2 = true;
29099 }
72ef6efb 29100 {
b39fe951 29101 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29102 if (PyErr_Occurred()) SWIG_fail;
29103 }
b39fe951
RD
29104 {
29105 resultobj = wxArrayDouble2PyList_helper(result);
29106 }
72ef6efb
RD
29107 {
29108 if (temp2)
29109 delete arg2;
29110 }
29111 return resultobj;
29112fail:
29113 {
29114 if (temp2)
29115 delete arg2;
29116 }
29117 return NULL;
29118}
29119
29120
29121SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29122 PyObject *resultobj = 0;
29123 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29124 wxBitmap *arg2 = 0 ;
29125 wxDouble arg3 ;
29126 wxDouble arg4 ;
29127 wxDouble arg5 ;
29128 wxDouble arg6 ;
29129 void *argp1 = 0 ;
29130 int res1 = 0 ;
29131 void *argp2 = 0 ;
29132 int res2 = 0 ;
29133 double val3 ;
29134 int ecode3 = 0 ;
29135 double val4 ;
29136 int ecode4 = 0 ;
29137 double val5 ;
29138 int ecode5 = 0 ;
29139 double val6 ;
29140 int ecode6 = 0 ;
29141 PyObject * obj0 = 0 ;
29142 PyObject * obj1 = 0 ;
29143 PyObject * obj2 = 0 ;
29144 PyObject * obj3 = 0 ;
29145 PyObject * obj4 = 0 ;
29146 PyObject * obj5 = 0 ;
29147 char * kwnames[] = {
29148 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29149 };
29150
29151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29153 if (!SWIG_IsOK(res1)) {
29154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29155 }
29156 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29158 if (!SWIG_IsOK(res2)) {
29159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29160 }
29161 if (!argp2) {
29162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29163 }
29164 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29165 ecode3 = SWIG_AsVal_double(obj2, &val3);
29166 if (!SWIG_IsOK(ecode3)) {
29167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29168 }
29169 arg3 = static_cast< wxDouble >(val3);
29170 ecode4 = SWIG_AsVal_double(obj3, &val4);
29171 if (!SWIG_IsOK(ecode4)) {
29172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29173 }
29174 arg4 = static_cast< wxDouble >(val4);
29175 ecode5 = SWIG_AsVal_double(obj4, &val5);
29176 if (!SWIG_IsOK(ecode5)) {
29177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29178 }
29179 arg5 = static_cast< wxDouble >(val5);
29180 ecode6 = SWIG_AsVal_double(obj5, &val6);
29181 if (!SWIG_IsOK(ecode6)) {
29182 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29183 }
29184 arg6 = static_cast< wxDouble >(val6);
29185 {
72ef6efb 29186 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29187 if (PyErr_Occurred()) SWIG_fail;
29188 }
29189 resultobj = SWIG_Py_Void();
29190 return resultobj;
29191fail:
29192 return NULL;
29193}
29194
29195
29196SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29197 PyObject *resultobj = 0;
29198 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29199 wxIcon *arg2 = 0 ;
29200 wxDouble arg3 ;
29201 wxDouble arg4 ;
29202 wxDouble arg5 ;
29203 wxDouble arg6 ;
29204 void *argp1 = 0 ;
29205 int res1 = 0 ;
29206 void *argp2 = 0 ;
29207 int res2 = 0 ;
29208 double val3 ;
29209 int ecode3 = 0 ;
29210 double val4 ;
29211 int ecode4 = 0 ;
29212 double val5 ;
29213 int ecode5 = 0 ;
70d7cb34
RD
29214 double val6 ;
29215 int ecode6 = 0 ;
29216 PyObject * obj0 = 0 ;
29217 PyObject * obj1 = 0 ;
29218 PyObject * obj2 = 0 ;
29219 PyObject * obj3 = 0 ;
29220 PyObject * obj4 = 0 ;
29221 PyObject * obj5 = 0 ;
29222 char * kwnames[] = {
29223 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29224 };
29225
29226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29228 if (!SWIG_IsOK(res1)) {
29229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29230 }
29231 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29233 if (!SWIG_IsOK(res2)) {
29234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29235 }
29236 if (!argp2) {
29237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29238 }
29239 arg2 = reinterpret_cast< wxIcon * >(argp2);
29240 ecode3 = SWIG_AsVal_double(obj2, &val3);
29241 if (!SWIG_IsOK(ecode3)) {
29242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29243 }
29244 arg3 = static_cast< wxDouble >(val3);
29245 ecode4 = SWIG_AsVal_double(obj3, &val4);
29246 if (!SWIG_IsOK(ecode4)) {
29247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29248 }
29249 arg4 = static_cast< wxDouble >(val4);
29250 ecode5 = SWIG_AsVal_double(obj4, &val5);
29251 if (!SWIG_IsOK(ecode5)) {
29252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29253 }
29254 arg5 = static_cast< wxDouble >(val5);
29255 ecode6 = SWIG_AsVal_double(obj5, &val6);
29256 if (!SWIG_IsOK(ecode6)) {
29257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29258 }
29259 arg6 = static_cast< wxDouble >(val6);
29260 {
29261 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
29264 resultobj = SWIG_Py_Void();
29265 return resultobj;
29266fail:
29267 return NULL;
29268}
29269
29270
29271SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj = 0;
29273 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29274 wxDouble arg2 ;
29275 wxDouble arg3 ;
29276 wxDouble arg4 ;
29277 wxDouble arg5 ;
29278 void *argp1 = 0 ;
29279 int res1 = 0 ;
29280 double val2 ;
29281 int ecode2 = 0 ;
29282 double val3 ;
29283 int ecode3 = 0 ;
29284 double val4 ;
29285 int ecode4 = 0 ;
29286 double val5 ;
29287 int ecode5 = 0 ;
29288 PyObject * obj0 = 0 ;
29289 PyObject * obj1 = 0 ;
29290 PyObject * obj2 = 0 ;
29291 PyObject * obj3 = 0 ;
29292 PyObject * obj4 = 0 ;
29293 char * kwnames[] = {
29294 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29295 };
29296
29297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29299 if (!SWIG_IsOK(res1)) {
29300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29301 }
29302 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29303 ecode2 = SWIG_AsVal_double(obj1, &val2);
29304 if (!SWIG_IsOK(ecode2)) {
29305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29306 }
29307 arg2 = static_cast< wxDouble >(val2);
29308 ecode3 = SWIG_AsVal_double(obj2, &val3);
29309 if (!SWIG_IsOK(ecode3)) {
29310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29311 }
29312 arg3 = static_cast< wxDouble >(val3);
29313 ecode4 = SWIG_AsVal_double(obj3, &val4);
29314 if (!SWIG_IsOK(ecode4)) {
29315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29316 }
29317 arg4 = static_cast< wxDouble >(val4);
29318 ecode5 = SWIG_AsVal_double(obj4, &val5);
29319 if (!SWIG_IsOK(ecode5)) {
29320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29321 }
29322 arg5 = static_cast< wxDouble >(val5);
29323 {
29324 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29325 if (PyErr_Occurred()) SWIG_fail;
29326 }
29327 resultobj = SWIG_Py_Void();
29328 return resultobj;
29329fail:
29330 return NULL;
29331}
29332
29333
29334SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29335 PyObject *resultobj = 0;
29336 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29337 size_t arg2 ;
29338 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29339 void *argp1 = 0 ;
29340 int res1 = 0 ;
29341 PyObject * obj0 = 0 ;
29342 PyObject * obj1 = 0 ;
29343 char * kwnames[] = {
29344 (char *) "self",(char *) "points", NULL
29345 };
29346
29347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29351 }
29352 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29353 {
29354 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29355 if (arg3 == NULL) SWIG_fail;
29356 }
29357 {
29358 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29359 if (PyErr_Occurred()) SWIG_fail;
29360 }
29361 resultobj = SWIG_Py_Void();
29362 {
29363 if (arg3) delete [] arg3;
29364 }
29365 return resultobj;
29366fail:
29367 {
29368 if (arg3) delete [] arg3;
29369 }
29370 return NULL;
29371}
29372
29373
29374SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29375 PyObject *resultobj = 0;
29376 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29377 PyObject *arg2 = (PyObject *) 0 ;
29378 PyObject *arg3 = (PyObject *) 0 ;
29379 void *argp1 = 0 ;
29380 int res1 = 0 ;
29381 PyObject * obj0 = 0 ;
29382 PyObject * obj1 = 0 ;
29383 PyObject * obj2 = 0 ;
29384 char * kwnames[] = {
29385 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29386 };
29387
29388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29390 if (!SWIG_IsOK(res1)) {
29391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29392 }
29393 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29394 arg2 = obj1;
29395 arg3 = obj2;
29396 {
29397 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29398 if (PyErr_Occurred()) SWIG_fail;
29399 }
29400 resultobj = SWIG_Py_Void();
29401 return resultobj;
29402fail:
29403 return NULL;
29404}
29405
29406
29407SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29408 PyObject *resultobj = 0;
29409 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29410 size_t arg2 ;
29411 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
5c8c7dd3 29412 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29413 void *argp1 = 0 ;
29414 int res1 = 0 ;
29415 int val4 ;
29416 int ecode4 = 0 ;
29417 PyObject * obj0 = 0 ;
29418 PyObject * obj1 = 0 ;
29419 PyObject * obj2 = 0 ;
29420 char * kwnames[] = {
29421 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29422 };
29423
29424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29426 if (!SWIG_IsOK(res1)) {
29427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29428 }
29429 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29430 {
29431 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29432 if (arg3 == NULL) SWIG_fail;
29433 }
29434 if (obj2) {
29435 ecode4 = SWIG_AsVal_int(obj2, &val4);
29436 if (!SWIG_IsOK(ecode4)) {
29437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29438 }
29439 arg4 = static_cast< int >(val4);
29440 }
29441 {
29442 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29443 if (PyErr_Occurred()) SWIG_fail;
29444 }
29445 resultobj = SWIG_Py_Void();
29446 {
29447 if (arg3) delete [] arg3;
29448 }
29449 return resultobj;
29450fail:
29451 {
29452 if (arg3) delete [] arg3;
29453 }
29454 return NULL;
29455}
29456
29457
29458SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29459 PyObject *resultobj = 0;
29460 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29461 wxDouble arg2 ;
29462 wxDouble arg3 ;
29463 wxDouble arg4 ;
29464 wxDouble arg5 ;
29465 void *argp1 = 0 ;
29466 int res1 = 0 ;
29467 double val2 ;
29468 int ecode2 = 0 ;
29469 double val3 ;
29470 int ecode3 = 0 ;
29471 double val4 ;
29472 int ecode4 = 0 ;
29473 double val5 ;
29474 int ecode5 = 0 ;
29475 PyObject * obj0 = 0 ;
29476 PyObject * obj1 = 0 ;
29477 PyObject * obj2 = 0 ;
29478 PyObject * obj3 = 0 ;
29479 PyObject * obj4 = 0 ;
29480 char * kwnames[] = {
29481 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29482 };
29483
29484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29486 if (!SWIG_IsOK(res1)) {
29487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29488 }
29489 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29490 ecode2 = SWIG_AsVal_double(obj1, &val2);
29491 if (!SWIG_IsOK(ecode2)) {
29492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29493 }
29494 arg2 = static_cast< wxDouble >(val2);
29495 ecode3 = SWIG_AsVal_double(obj2, &val3);
29496 if (!SWIG_IsOK(ecode3)) {
29497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29498 }
29499 arg3 = static_cast< wxDouble >(val3);
29500 ecode4 = SWIG_AsVal_double(obj3, &val4);
29501 if (!SWIG_IsOK(ecode4)) {
29502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29503 }
29504 arg4 = static_cast< wxDouble >(val4);
29505 ecode5 = SWIG_AsVal_double(obj4, &val5);
29506 if (!SWIG_IsOK(ecode5)) {
29507 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29508 }
29509 arg5 = static_cast< wxDouble >(val5);
29510 {
29511 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29512 if (PyErr_Occurred()) SWIG_fail;
29513 }
29514 resultobj = SWIG_Py_Void();
29515 return resultobj;
29516fail:
29517 return NULL;
29518}
29519
29520
29521SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29522 PyObject *resultobj = 0;
29523 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29524 wxDouble arg2 ;
29525 wxDouble arg3 ;
29526 wxDouble arg4 ;
29527 wxDouble arg5 ;
29528 void *argp1 = 0 ;
29529 int res1 = 0 ;
29530 double val2 ;
29531 int ecode2 = 0 ;
29532 double val3 ;
29533 int ecode3 = 0 ;
29534 double val4 ;
29535 int ecode4 = 0 ;
29536 double val5 ;
29537 int ecode5 = 0 ;
72ef6efb
RD
29538 PyObject * obj0 = 0 ;
29539 PyObject * obj1 = 0 ;
29540 PyObject * obj2 = 0 ;
29541 PyObject * obj3 = 0 ;
29542 PyObject * obj4 = 0 ;
72ef6efb 29543 char * kwnames[] = {
70d7cb34 29544 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29545 };
29546
70d7cb34 29547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
70d7cb34 29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29551 }
29552 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29553 ecode2 = SWIG_AsVal_double(obj1, &val2);
29554 if (!SWIG_IsOK(ecode2)) {
29555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29556 }
29557 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29558 ecode3 = SWIG_AsVal_double(obj2, &val3);
29559 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29561 }
29562 arg3 = static_cast< wxDouble >(val3);
29563 ecode4 = SWIG_AsVal_double(obj3, &val4);
29564 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29566 }
29567 arg4 = static_cast< wxDouble >(val4);
29568 ecode5 = SWIG_AsVal_double(obj4, &val5);
29569 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29571 }
29572 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29573 {
70d7cb34 29574 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29575 if (PyErr_Occurred()) SWIG_fail;
29576 }
29577 resultobj = SWIG_Py_Void();
29578 return resultobj;
29579fail:
29580 return NULL;
29581}
29582
29583
70d7cb34 29584SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29585 PyObject *resultobj = 0;
29586 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29587 wxDouble arg2 ;
29588 wxDouble arg3 ;
29589 wxDouble arg4 ;
29590 wxDouble arg5 ;
70d7cb34 29591 wxDouble arg6 ;
72ef6efb
RD
29592 void *argp1 = 0 ;
29593 int res1 = 0 ;
29594 double val2 ;
29595 int ecode2 = 0 ;
29596 double val3 ;
29597 int ecode3 = 0 ;
29598 double val4 ;
29599 int ecode4 = 0 ;
29600 double val5 ;
29601 int ecode5 = 0 ;
70d7cb34
RD
29602 double val6 ;
29603 int ecode6 = 0 ;
72ef6efb
RD
29604 PyObject * obj0 = 0 ;
29605 PyObject * obj1 = 0 ;
29606 PyObject * obj2 = 0 ;
29607 PyObject * obj3 = 0 ;
29608 PyObject * obj4 = 0 ;
70d7cb34 29609 PyObject * obj5 = 0 ;
72ef6efb 29610 char * kwnames[] = {
70d7cb34 29611 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29612 };
29613
70d7cb34 29614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29616 if (!SWIG_IsOK(res1)) {
70d7cb34 29617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29618 }
29619 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29620 ecode2 = SWIG_AsVal_double(obj1, &val2);
29621 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29623 }
29624 arg2 = static_cast< wxDouble >(val2);
29625 ecode3 = SWIG_AsVal_double(obj2, &val3);
29626 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29628 }
29629 arg3 = static_cast< wxDouble >(val3);
29630 ecode4 = SWIG_AsVal_double(obj3, &val4);
29631 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29633 }
29634 arg4 = static_cast< wxDouble >(val4);
29635 ecode5 = SWIG_AsVal_double(obj4, &val5);
29636 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29638 }
29639 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29640 ecode6 = SWIG_AsVal_double(obj5, &val6);
29641 if (!SWIG_IsOK(ecode6)) {
29642 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29643 }
29644 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29645 {
70d7cb34 29646 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29647 if (PyErr_Occurred()) SWIG_fail;
29648 }
29649 resultobj = SWIG_Py_Void();
29650 return resultobj;
29651fail:
29652 return NULL;
29653}
29654
29655
70d7cb34 29656SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29657 PyObject *resultobj = 0;
29658 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29659 bool result;
72ef6efb
RD
29660 void *argp1 = 0 ;
29661 int res1 = 0 ;
70d7cb34 29662 PyObject *swig_obj[1] ;
72ef6efb 29663
70d7cb34
RD
29664 if (!args) SWIG_fail;
29665 swig_obj[0] = args;
29666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29667 if (!SWIG_IsOK(res1)) {
70d7cb34 29668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29669 }
29670 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29671 {
70d7cb34
RD
29672 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29673 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29674 }
72ef6efb 29675 {
70d7cb34
RD
29676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29677 }
29678 return resultobj;
29679fail:
29680 return NULL;
29681}
29682
29683
29684SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29685 PyObject *obj;
29686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29687 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29688 return SWIG_Py_Void();
29689}
29690
29691SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29692 PyObject *resultobj = 0;
29693 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29694 void *argp1 = 0 ;
29695 int res1 = 0 ;
29696 PyObject *swig_obj[1] ;
29697
29698 if (!args) SWIG_fail;
29699 swig_obj[0] = args;
29700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29701 if (!SWIG_IsOK(res1)) {
29702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29703 }
29704 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29705 {
29706 delete arg1;
29707
72ef6efb
RD
29708 if (PyErr_Occurred()) SWIG_fail;
29709 }
29710 resultobj = SWIG_Py_Void();
70d7cb34
RD
29711 return resultobj;
29712fail:
29713 return NULL;
29714}
29715
29716
29717SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29718 PyObject *resultobj = 0;
29719 wxGraphicsRenderer *result = 0 ;
29720
29721 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29722 {
70d7cb34
RD
29723 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29724 if (PyErr_Occurred()) SWIG_fail;
29725 }
29726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29727 return resultobj;
29728fail:
29729 return NULL;
29730}
29731
29732
29733SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29734 PyObject *resultobj = 0;
29735 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29736 wxWindowDC *arg2 = 0 ;
29737 wxGraphicsContext *result = 0 ;
29738 void *argp1 = 0 ;
29739 int res1 = 0 ;
29740 void *argp2 = 0 ;
29741 int res2 = 0 ;
29742
29743 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29745 if (!SWIG_IsOK(res1)) {
29746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29747 }
29748 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29749 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29750 if (!SWIG_IsOK(res2)) {
29751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29752 }
29753 if (!argp2) {
29754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29755 }
29756 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29757 {
29758 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29759 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29760 }
70d7cb34 29761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29762 return resultobj;
29763fail:
70d7cb34
RD
29764 return NULL;
29765}
29766
29767
29768SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29769 PyObject *resultobj = 0;
29770 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29771 wxWindow *arg2 = (wxWindow *) 0 ;
29772 wxGraphicsContext *result = 0 ;
29773 void *argp1 = 0 ;
29774 int res1 = 0 ;
29775 void *argp2 = 0 ;
29776 int res2 = 0 ;
29777
29778 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29780 if (!SWIG_IsOK(res1)) {
29781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29782 }
29783 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29784 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29785 if (!SWIG_IsOK(res2)) {
29786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29787 }
29788 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29789 {
70d7cb34
RD
29790 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29791 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29792 }
70d7cb34
RD
29793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29794 return resultobj;
29795fail:
72ef6efb
RD
29796 return NULL;
29797}
29798
29799
70d7cb34
RD
29800SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29801 int argc;
29802 PyObject *argv[3];
29803
29804 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29805 --argc;
29806 if (argc == 2) {
29807 int _v = 0;
29808 {
29809 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29810 _v = SWIG_CheckState(res);
29811 }
29812 if (!_v) goto check_1;
29813 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29814 }
29815check_1:
29816
29817 if (argc == 2) {
29818 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29819 }
29820
29821fail:
29822 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29823 return NULL;
29824}
29825
29826
f89238b9
RD
29827SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29828 PyObject *resultobj = 0;
29829 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29830 wxGraphicsContext *result = 0 ;
29831 void *argp1 = 0 ;
29832 int res1 = 0 ;
29833 PyObject *swig_obj[1] ;
29834
29835 if (!args) SWIG_fail;
29836 swig_obj[0] = args;
29837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29838 if (!SWIG_IsOK(res1)) {
29839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29840 }
29841 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29842 {
29843 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
29844 if (PyErr_Occurred()) SWIG_fail;
29845 }
29846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29847 return resultobj;
29848fail:
29849 return NULL;
29850}
29851
29852
70d7cb34 29853SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29854 PyObject *resultobj = 0;
70d7cb34
RD
29855 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29856 void *arg2 = (void *) 0 ;
29857 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29858 void *argp1 = 0 ;
29859 int res1 = 0 ;
70d7cb34 29860 int res2 ;
b39fe951
RD
29861 PyObject * obj0 = 0 ;
29862 PyObject * obj1 = 0 ;
b39fe951 29863 char * kwnames[] = {
70d7cb34 29864 (char *) "self",(char *) "context", NULL
b39fe951 29865 };
72ef6efb 29866
70d7cb34
RD
29867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29869 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29871 }
29872 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29873 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29874 if (!SWIG_IsOK(res2)) {
29875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29876 }
72ef6efb 29877 {
70d7cb34 29878 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29879 if (PyErr_Occurred()) SWIG_fail;
29880 }
70d7cb34 29881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29882 return resultobj;
29883fail:
29884 return NULL;
29885}
29886
29887
70d7cb34 29888SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29889 PyObject *resultobj = 0;
70d7cb34
RD
29890 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29891 void *arg2 = (void *) 0 ;
29892 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29893 void *argp1 = 0 ;
29894 int res1 = 0 ;
70d7cb34 29895 int res2 ;
72ef6efb
RD
29896 PyObject * obj0 = 0 ;
29897 PyObject * obj1 = 0 ;
72ef6efb 29898 char * kwnames[] = {
70d7cb34 29899 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29900 };
29901
70d7cb34
RD
29902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29904 if (!SWIG_IsOK(res1)) {
70d7cb34 29905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29906 }
70d7cb34
RD
29907 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29908 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29909 if (!SWIG_IsOK(res2)) {
29910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
29911 }
29912 {
70d7cb34 29913 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
29914 if (PyErr_Occurred()) SWIG_fail;
29915 }
70d7cb34 29916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29917 return resultobj;
29918fail:
70d7cb34
RD
29919 return NULL;
29920}
29921
29922
29923SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29924 PyObject *resultobj = 0;
29925 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 29926 wxGraphicsPath result;
70d7cb34
RD
29927 void *argp1 = 0 ;
29928 int res1 = 0 ;
29929 PyObject *swig_obj[1] ;
29930
29931 if (!args) SWIG_fail;
29932 swig_obj[0] = args;
29933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29934 if (!SWIG_IsOK(res1)) {
29935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29936 }
29937 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 29938 {
5c8c7dd3 29939 result = (arg1)->CreatePath();
70d7cb34 29940 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29941 }
5c8c7dd3 29942 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
29943 return resultobj;
29944fail:
72ef6efb
RD
29945 return NULL;
29946}
29947
29948
70d7cb34 29949SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29950 PyObject *resultobj = 0;
70d7cb34
RD
29951 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29952 wxDouble arg2 = (wxDouble) 1.0 ;
29953 wxDouble arg3 = (wxDouble) 0.0 ;
29954 wxDouble arg4 = (wxDouble) 0.0 ;
29955 wxDouble arg5 = (wxDouble) 1.0 ;
29956 wxDouble arg6 = (wxDouble) 0.0 ;
29957 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 29958 wxGraphicsMatrix result;
72ef6efb
RD
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 double val2 ;
29962 int ecode2 = 0 ;
29963 double val3 ;
29964 int ecode3 = 0 ;
29965 double val4 ;
29966 int ecode4 = 0 ;
29967 double val5 ;
29968 int ecode5 = 0 ;
70d7cb34
RD
29969 double val6 ;
29970 int ecode6 = 0 ;
29971 double val7 ;
29972 int ecode7 = 0 ;
72ef6efb
RD
29973 PyObject * obj0 = 0 ;
29974 PyObject * obj1 = 0 ;
29975 PyObject * obj2 = 0 ;
29976 PyObject * obj3 = 0 ;
29977 PyObject * obj4 = 0 ;
70d7cb34
RD
29978 PyObject * obj5 = 0 ;
29979 PyObject * obj6 = 0 ;
72ef6efb 29980 char * kwnames[] = {
70d7cb34 29981 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
29982 };
29983
70d7cb34
RD
29984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29986 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29988 }
29989 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29990 if (obj1) {
29991 ecode2 = SWIG_AsVal_double(obj1, &val2);
29992 if (!SWIG_IsOK(ecode2)) {
29993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29994 }
29995 arg2 = static_cast< wxDouble >(val2);
29996 }
29997 if (obj2) {
29998 ecode3 = SWIG_AsVal_double(obj2, &val3);
29999 if (!SWIG_IsOK(ecode3)) {
30000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30001 }
30002 arg3 = static_cast< wxDouble >(val3);
30003 }
30004 if (obj3) {
30005 ecode4 = SWIG_AsVal_double(obj3, &val4);
30006 if (!SWIG_IsOK(ecode4)) {
30007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30008 }
30009 arg4 = static_cast< wxDouble >(val4);
30010 }
30011 if (obj4) {
30012 ecode5 = SWIG_AsVal_double(obj4, &val5);
30013 if (!SWIG_IsOK(ecode5)) {
30014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30015 }
30016 arg5 = static_cast< wxDouble >(val5);
30017 }
30018 if (obj5) {
30019 ecode6 = SWIG_AsVal_double(obj5, &val6);
30020 if (!SWIG_IsOK(ecode6)) {
30021 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30022 }
30023 arg6 = static_cast< wxDouble >(val6);
30024 }
30025 if (obj6) {
30026 ecode7 = SWIG_AsVal_double(obj6, &val7);
30027 if (!SWIG_IsOK(ecode7)) {
30028 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30029 }
30030 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30031 }
72ef6efb 30032 {
5c8c7dd3 30033 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30034 if (PyErr_Occurred()) SWIG_fail;
30035 }
5c8c7dd3 30036 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30037 return resultobj;
30038fail:
30039 return NULL;
30040}
30041
30042
70d7cb34 30043SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30044 PyObject *resultobj = 0;
70d7cb34
RD
30045 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30046 wxPen *arg2 = 0 ;
30047 wxGraphicsPen result;
30048 void *argp1 = 0 ;
30049 int res1 = 0 ;
30050 void *argp2 = 0 ;
30051 int res2 = 0 ;
30052 PyObject * obj0 = 0 ;
30053 PyObject * obj1 = 0 ;
30054 char * kwnames[] = {
30055 (char *) "self",(char *) "pen", NULL
30056 };
30057
30058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30060 if (!SWIG_IsOK(res1)) {
30061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30062 }
30063 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30065 if (!SWIG_IsOK(res2)) {
30066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30067 }
30068 if (!argp2) {
30069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30070 }
30071 arg2 = reinterpret_cast< wxPen * >(argp2);
30072 {
30073 result = (arg1)->CreatePen((wxPen const &)*arg2);
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30077 return resultobj;
30078fail:
30079 return NULL;
30080}
30081
30082
30083SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30084 PyObject *resultobj = 0;
30085 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30086 wxBrush *arg2 = 0 ;
30087 wxGraphicsBrush result;
30088 void *argp1 = 0 ;
30089 int res1 = 0 ;
30090 void *argp2 = 0 ;
30091 int res2 = 0 ;
30092 PyObject * obj0 = 0 ;
30093 PyObject * obj1 = 0 ;
30094 char * kwnames[] = {
30095 (char *) "self",(char *) "brush", NULL
30096 };
30097
30098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30100 if (!SWIG_IsOK(res1)) {
30101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30102 }
30103 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30104 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30105 if (!SWIG_IsOK(res2)) {
30106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30107 }
30108 if (!argp2) {
30109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30110 }
30111 arg2 = reinterpret_cast< wxBrush * >(argp2);
30112 {
30113 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30114 if (PyErr_Occurred()) SWIG_fail;
30115 }
30116 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30117 return resultobj;
30118fail:
30119 return NULL;
30120}
30121
30122
30123SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30124 PyObject *resultobj = 0;
30125 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30126 wxDouble arg2 ;
30127 wxDouble arg3 ;
30128 wxDouble arg4 ;
30129 wxDouble arg5 ;
70d7cb34
RD
30130 wxColour *arg6 = 0 ;
30131 wxColour *arg7 = 0 ;
30132 wxGraphicsBrush result;
72ef6efb
RD
30133 void *argp1 = 0 ;
30134 int res1 = 0 ;
30135 double val2 ;
30136 int ecode2 = 0 ;
30137 double val3 ;
30138 int ecode3 = 0 ;
30139 double val4 ;
30140 int ecode4 = 0 ;
30141 double val5 ;
30142 int ecode5 = 0 ;
70d7cb34
RD
30143 wxColour temp6 ;
30144 wxColour temp7 ;
72ef6efb
RD
30145 PyObject * obj0 = 0 ;
30146 PyObject * obj1 = 0 ;
30147 PyObject * obj2 = 0 ;
30148 PyObject * obj3 = 0 ;
30149 PyObject * obj4 = 0 ;
70d7cb34
RD
30150 PyObject * obj5 = 0 ;
30151 PyObject * obj6 = 0 ;
72ef6efb 30152 char * kwnames[] = {
70d7cb34 30153 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30154 };
30155
70d7cb34
RD
30156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30158 if (!SWIG_IsOK(res1)) {
70d7cb34 30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30160 }
70d7cb34 30161 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30162 ecode2 = SWIG_AsVal_double(obj1, &val2);
30163 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30165 }
30166 arg2 = static_cast< wxDouble >(val2);
30167 ecode3 = SWIG_AsVal_double(obj2, &val3);
30168 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30170 }
30171 arg3 = static_cast< wxDouble >(val3);
30172 ecode4 = SWIG_AsVal_double(obj3, &val4);
30173 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30175 }
30176 arg4 = static_cast< wxDouble >(val4);
30177 ecode5 = SWIG_AsVal_double(obj4, &val5);
30178 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30180 }
30181 arg5 = static_cast< wxDouble >(val5);
30182 {
70d7cb34
RD
30183 arg6 = &temp6;
30184 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30185 }
30186 {
30187 arg7 = &temp7;
30188 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30189 }
30190 {
30191 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30192 if (PyErr_Occurred()) SWIG_fail;
30193 }
70d7cb34 30194 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30195 return resultobj;
30196fail:
30197 return NULL;
30198}
30199
30200
70d7cb34 30201SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30202 PyObject *resultobj = 0;
70d7cb34 30203 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30204 wxDouble arg2 ;
30205 wxDouble arg3 ;
30206 wxDouble arg4 ;
30207 wxDouble arg5 ;
30208 wxDouble arg6 ;
70d7cb34
RD
30209 wxColour *arg7 = 0 ;
30210 wxColour *arg8 = 0 ;
30211 wxGraphicsBrush result;
72ef6efb
RD
30212 void *argp1 = 0 ;
30213 int res1 = 0 ;
30214 double val2 ;
30215 int ecode2 = 0 ;
30216 double val3 ;
30217 int ecode3 = 0 ;
30218 double val4 ;
30219 int ecode4 = 0 ;
30220 double val5 ;
30221 int ecode5 = 0 ;
30222 double val6 ;
30223 int ecode6 = 0 ;
70d7cb34
RD
30224 wxColour temp7 ;
30225 wxColour temp8 ;
72ef6efb
RD
30226 PyObject * obj0 = 0 ;
30227 PyObject * obj1 = 0 ;
30228 PyObject * obj2 = 0 ;
30229 PyObject * obj3 = 0 ;
30230 PyObject * obj4 = 0 ;
30231 PyObject * obj5 = 0 ;
70d7cb34
RD
30232 PyObject * obj6 = 0 ;
30233 PyObject * obj7 = 0 ;
72ef6efb 30234 char * kwnames[] = {
70d7cb34 30235 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30236 };
30237
70d7cb34
RD
30238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30240 if (!SWIG_IsOK(res1)) {
70d7cb34 30241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30242 }
70d7cb34 30243 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30244 ecode2 = SWIG_AsVal_double(obj1, &val2);
30245 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30247 }
30248 arg2 = static_cast< wxDouble >(val2);
30249 ecode3 = SWIG_AsVal_double(obj2, &val3);
30250 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30252 }
30253 arg3 = static_cast< wxDouble >(val3);
30254 ecode4 = SWIG_AsVal_double(obj3, &val4);
30255 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30257 }
30258 arg4 = static_cast< wxDouble >(val4);
30259 ecode5 = SWIG_AsVal_double(obj4, &val5);
30260 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30262 }
30263 arg5 = static_cast< wxDouble >(val5);
30264 ecode6 = SWIG_AsVal_double(obj5, &val6);
30265 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30266 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30267 }
30268 arg6 = static_cast< wxDouble >(val6);
30269 {
70d7cb34
RD
30270 arg7 = &temp7;
30271 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30272 }
30273 {
30274 arg8 = &temp8;
30275 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30276 }
30277 {
30278 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30279 if (PyErr_Occurred()) SWIG_fail;
30280 }
70d7cb34 30281 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30282 return resultobj;
30283fail:
30284 return NULL;
30285}
30286
30287
70d7cb34
RD
30288SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30289 PyObject *resultobj = 0;
30290 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30291 wxFont *arg2 = 0 ;
30292 wxColour const &arg3_defvalue = *wxBLACK ;
30293 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30294 wxGraphicsFont result;
30295 void *argp1 = 0 ;
30296 int res1 = 0 ;
30297 void *argp2 = 0 ;
30298 int res2 = 0 ;
30299 wxColour temp3 ;
30300 PyObject * obj0 = 0 ;
30301 PyObject * obj1 = 0 ;
30302 PyObject * obj2 = 0 ;
30303 char * kwnames[] = {
30304 (char *) "self",(char *) "font",(char *) "col", NULL
30305 };
30306
30307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30311 }
30312 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30314 if (!SWIG_IsOK(res2)) {
30315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30316 }
30317 if (!argp2) {
30318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30319 }
30320 arg2 = reinterpret_cast< wxFont * >(argp2);
30321 if (obj2) {
30322 {
30323 arg3 = &temp3;
30324 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30325 }
30326 }
30327 {
30328 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30329 if (PyErr_Occurred()) SWIG_fail;
30330 }
30331 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30332 return resultobj;
30333fail:
30334 return NULL;
30335}
30336
30337
30338SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30339 PyObject *obj;
30340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30341 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30342 return SWIG_Py_Void();
30343}
30344
48a0c021 30345SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30346 PyObject *resultobj = 0;
30347 wxWindowDC *arg1 = 0 ;
30348 wxGCDC *result = 0 ;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
72ef6efb 30351
48a0c021
RD
30352 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30354 if (!SWIG_IsOK(res1)) {
30355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30356 }
30357 if (!argp1) {
30358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30359 }
30360 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30361 {
30362 if (!wxPyCheckForApp()) SWIG_fail;
30363 PyThreadState* __tstate = wxPyBeginAllowThreads();
30364 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30365 wxPyEndAllowThreads(__tstate);
30366 if (PyErr_Occurred()) SWIG_fail;
30367 }
30368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30369 return resultobj;
30370fail:
30371 return NULL;
30372}
30373
30374
48a0c021
RD
30375SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30376 PyObject *resultobj = 0;
30377 wxWindow *arg1 = (wxWindow *) 0 ;
30378 wxGCDC *result = 0 ;
30379 void *argp1 = 0 ;
30380 int res1 = 0 ;
30381
30382 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30384 if (!SWIG_IsOK(res1)) {
30385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30386 }
30387 arg1 = reinterpret_cast< wxWindow * >(argp1);
30388 {
30389 if (!wxPyCheckForApp()) SWIG_fail;
30390 PyThreadState* __tstate = wxPyBeginAllowThreads();
30391 result = (wxGCDC *)new wxGCDC(arg1);
30392 wxPyEndAllowThreads(__tstate);
30393 if (PyErr_Occurred()) SWIG_fail;
30394 }
30395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30396 return resultobj;
30397fail:
30398 return NULL;
30399}
30400
30401
30402SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30403 int argc;
30404 PyObject *argv[2];
30405
30406 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30407 --argc;
30408 if (argc == 1) {
30409 int _v = 0;
30410 {
30411 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30412 _v = SWIG_CheckState(res);
30413 }
30414 if (!_v) goto check_1;
30415 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30416 }
30417check_1:
30418
30419 if (argc == 1) {
30420 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30421 }
30422
30423fail:
30424 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30425 return NULL;
30426}
30427
30428
72ef6efb
RD
30429SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30430 PyObject *resultobj = 0;
30431 wxGCDC *arg1 = (wxGCDC *) 0 ;
30432 void *argp1 = 0 ;
30433 int res1 = 0 ;
30434 PyObject *swig_obj[1] ;
30435
30436 if (!args) SWIG_fail;
30437 swig_obj[0] = args;
30438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30439 if (!SWIG_IsOK(res1)) {
30440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30441 }
30442 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30443 {
72ef6efb
RD
30444 delete arg1;
30445
72ef6efb
RD
30446 if (PyErr_Occurred()) SWIG_fail;
30447 }
30448 resultobj = SWIG_Py_Void();
30449 return resultobj;
30450fail:
30451 return NULL;
30452}
30453
30454
0a27f394 30455SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30456 PyObject *resultobj = 0;
30457 wxGCDC *arg1 = (wxGCDC *) 0 ;
30458 wxGraphicsContext *result = 0 ;
30459 void *argp1 = 0 ;
30460 int res1 = 0 ;
30461 PyObject *swig_obj[1] ;
30462
30463 if (!args) SWIG_fail;
30464 swig_obj[0] = args;
30465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30466 if (!SWIG_IsOK(res1)) {
0a27f394 30467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30468 }
30469 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30470 {
0a27f394 30471 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30472 if (PyErr_Occurred()) SWIG_fail;
30473 }
30474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30475 return resultobj;
30476fail:
30477 return NULL;
30478}
30479
30480
0a27f394
RD
30481SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30482 PyObject *resultobj = 0;
30483 wxGCDC *arg1 = (wxGCDC *) 0 ;
30484 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30485 void *argp1 = 0 ;
30486 int res1 = 0 ;
30487 void *argp2 = 0 ;
30488 int res2 = 0 ;
30489 PyObject * obj0 = 0 ;
30490 PyObject * obj1 = 0 ;
30491 char * kwnames[] = {
30492 (char *) "self",(char *) "ctx", NULL
30493 };
30494
30495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30497 if (!SWIG_IsOK(res1)) {
30498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30499 }
30500 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30501 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30502 if (!SWIG_IsOK(res2)) {
30503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30504 }
30505 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30506 {
30507 (arg1)->SetGraphicsContext(arg2);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 resultobj = SWIG_Py_Void();
30511 return resultobj;
30512fail:
30513 return NULL;
30514}
30515
30516
72ef6efb
RD
30517SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30518 PyObject *obj;
30519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30520 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30521 return SWIG_Py_Void();
30522}
30523
30524SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30525 return SWIG_Python_InitShadowInstance(args);
30526}
30527
b39fe951
RD
30528SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30529 PyObject *resultobj = 0;
30530 wxOverlay *result = 0 ;
30531
30532 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30533 {
30534 PyThreadState* __tstate = wxPyBeginAllowThreads();
30535 result = (wxOverlay *)new wxOverlay();
30536 wxPyEndAllowThreads(__tstate);
30537 if (PyErr_Occurred()) SWIG_fail;
30538 }
30539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30540 return resultobj;
30541fail:
30542 return NULL;
30543}
30544
30545
30546SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30547 PyObject *resultobj = 0;
30548 wxOverlay *arg1 = (wxOverlay *) 0 ;
30549 void *argp1 = 0 ;
30550 int res1 = 0 ;
30551 PyObject *swig_obj[1] ;
30552
30553 if (!args) SWIG_fail;
30554 swig_obj[0] = args;
30555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30556 if (!SWIG_IsOK(res1)) {
30557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30558 }
30559 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30560 {
30561 PyThreadState* __tstate = wxPyBeginAllowThreads();
30562 delete arg1;
30563
30564 wxPyEndAllowThreads(__tstate);
30565 if (PyErr_Occurred()) SWIG_fail;
30566 }
30567 resultobj = SWIG_Py_Void();
30568 return resultobj;
30569fail:
30570 return NULL;
30571}
30572
30573
30574SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30575 PyObject *resultobj = 0;
30576 wxOverlay *arg1 = (wxOverlay *) 0 ;
30577 void *argp1 = 0 ;
30578 int res1 = 0 ;
30579 PyObject *swig_obj[1] ;
30580
30581 if (!args) SWIG_fail;
30582 swig_obj[0] = args;
30583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30584 if (!SWIG_IsOK(res1)) {
30585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30586 }
30587 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30588 {
30589 PyThreadState* __tstate = wxPyBeginAllowThreads();
30590 (arg1)->Reset();
30591 wxPyEndAllowThreads(__tstate);
30592 if (PyErr_Occurred()) SWIG_fail;
30593 }
30594 resultobj = SWIG_Py_Void();
30595 return resultobj;
30596fail:
30597 return NULL;
30598}
30599
30600
30601SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30602 PyObject *obj;
30603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30604 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30605 return SWIG_Py_Void();
30606}
30607
30608SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30609 return SWIG_Python_InitShadowInstance(args);
30610}
30611
30612SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30613 PyObject *resultobj = 0;
30614 wxOverlay *arg1 = 0 ;
30615 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30616 int arg3 ;
30617 int arg4 ;
30618 int arg5 ;
30619 int arg6 ;
30620 wxDCOverlay *result = 0 ;
30621 void *argp1 = 0 ;
30622 int res1 = 0 ;
30623 void *argp2 = 0 ;
30624 int res2 = 0 ;
30625 int val3 ;
30626 int ecode3 = 0 ;
30627 int val4 ;
30628 int ecode4 = 0 ;
30629 int val5 ;
30630 int ecode5 = 0 ;
30631 int val6 ;
30632 int ecode6 = 0 ;
30633
30634 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30636 if (!SWIG_IsOK(res1)) {
30637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30638 }
30639 if (!argp1) {
30640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30641 }
30642 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30643 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30644 if (!SWIG_IsOK(res2)) {
30645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30646 }
30647 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30648 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30649 if (!SWIG_IsOK(ecode3)) {
30650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30651 }
30652 arg3 = static_cast< int >(val3);
30653 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30654 if (!SWIG_IsOK(ecode4)) {
30655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30656 }
30657 arg4 = static_cast< int >(val4);
30658 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30659 if (!SWIG_IsOK(ecode5)) {
30660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30661 }
30662 arg5 = static_cast< int >(val5);
30663 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30664 if (!SWIG_IsOK(ecode6)) {
30665 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30666 }
30667 arg6 = static_cast< int >(val6);
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30671 wxPyEndAllowThreads(__tstate);
30672 if (PyErr_Occurred()) SWIG_fail;
30673 }
30674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30675 return resultobj;
30676fail:
30677 return NULL;
30678}
30679
30680
30681SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30682 PyObject *resultobj = 0;
30683 wxOverlay *arg1 = 0 ;
30684 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30685 wxDCOverlay *result = 0 ;
30686 void *argp1 = 0 ;
30687 int res1 = 0 ;
30688 void *argp2 = 0 ;
30689 int res2 = 0 ;
30690
30691 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30693 if (!SWIG_IsOK(res1)) {
30694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30695 }
30696 if (!argp1) {
30697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30698 }
30699 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30700 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30701 if (!SWIG_IsOK(res2)) {
30702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30703 }
30704 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30712 return resultobj;
30713fail:
30714 return NULL;
30715}
30716
30717
30718SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30719 int argc;
30720 PyObject *argv[7];
30721
30722 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30723 --argc;
30724 if (argc == 2) {
30725 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30726 }
30727 if (argc == 6) {
30728 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30729 }
30730
30731fail:
30732 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30733 return NULL;
30734}
30735
30736
30737SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30738 PyObject *resultobj = 0;
30739 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30740 void *argp1 = 0 ;
30741 int res1 = 0 ;
30742 PyObject *swig_obj[1] ;
30743
30744 if (!args) SWIG_fail;
30745 swig_obj[0] = args;
30746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30747 if (!SWIG_IsOK(res1)) {
30748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30749 }
30750 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30751 {
30752 PyThreadState* __tstate = wxPyBeginAllowThreads();
30753 delete arg1;
30754
30755 wxPyEndAllowThreads(__tstate);
30756 if (PyErr_Occurred()) SWIG_fail;
30757 }
30758 resultobj = SWIG_Py_Void();
30759 return resultobj;
30760fail:
30761 return NULL;
30762}
30763
30764
30765SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30766 PyObject *resultobj = 0;
30767 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30768 void *argp1 = 0 ;
30769 int res1 = 0 ;
30770 PyObject *swig_obj[1] ;
30771
30772 if (!args) SWIG_fail;
30773 swig_obj[0] = args;
30774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30775 if (!SWIG_IsOK(res1)) {
30776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30777 }
30778 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30779 {
30780 PyThreadState* __tstate = wxPyBeginAllowThreads();
30781 (arg1)->Clear();
30782 wxPyEndAllowThreads(__tstate);
30783 if (PyErr_Occurred()) SWIG_fail;
30784 }
30785 resultobj = SWIG_Py_Void();
30786 return resultobj;
30787fail:
30788 return NULL;
30789}
30790
30791
30792SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30793 PyObject *obj;
30794 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30795 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30796 return SWIG_Py_Void();
30797}
30798
30799SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30800 return SWIG_Python_InitShadowInstance(args);
30801}
30802
72ef6efb
RD
30803SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30804 PyObject *resultobj = 0;
30805 int arg1 ;
30806 int arg2 ;
30807 int arg3 = (int) true ;
30808 int arg4 = (int) 1 ;
30809 wxImageList *result = 0 ;
30810 int val1 ;
30811 int ecode1 = 0 ;
30812 int val2 ;
30813 int ecode2 = 0 ;
30814 int val3 ;
30815 int ecode3 = 0 ;
30816 int val4 ;
30817 int ecode4 = 0 ;
30818 PyObject * obj0 = 0 ;
30819 PyObject * obj1 = 0 ;
30820 PyObject * obj2 = 0 ;
30821 PyObject * obj3 = 0 ;
30822 char * kwnames[] = {
30823 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30824 };
30825
30826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30827 ecode1 = SWIG_AsVal_int(obj0, &val1);
30828 if (!SWIG_IsOK(ecode1)) {
30829 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30830 }
30831 arg1 = static_cast< int >(val1);
30832 ecode2 = SWIG_AsVal_int(obj1, &val2);
30833 if (!SWIG_IsOK(ecode2)) {
30834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30835 }
30836 arg2 = static_cast< int >(val2);
30837 if (obj2) {
30838 ecode3 = SWIG_AsVal_int(obj2, &val3);
30839 if (!SWIG_IsOK(ecode3)) {
30840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30841 }
30842 arg3 = static_cast< int >(val3);
30843 }
30844 if (obj3) {
30845 ecode4 = SWIG_AsVal_int(obj3, &val4);
30846 if (!SWIG_IsOK(ecode4)) {
30847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30848 }
30849 arg4 = static_cast< int >(val4);
30850 }
30851 {
30852 if (!wxPyCheckForApp()) SWIG_fail;
30853 PyThreadState* __tstate = wxPyBeginAllowThreads();
30854 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30855 wxPyEndAllowThreads(__tstate);
30856 if (PyErr_Occurred()) SWIG_fail;
30857 }
e02c0a13 30858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30859 return resultobj;
30860fail:
30861 return NULL;
30862}
30863
30864
30865SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30866 PyObject *resultobj = 0;
30867 wxImageList *arg1 = (wxImageList *) 0 ;
30868 void *argp1 = 0 ;
30869 int res1 = 0 ;
30870 PyObject *swig_obj[1] ;
30871
30872 if (!args) SWIG_fail;
30873 swig_obj[0] = args;
30874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30875 if (!SWIG_IsOK(res1)) {
30876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30877 }
30878 arg1 = reinterpret_cast< wxImageList * >(argp1);
30879 {
30880 PyThreadState* __tstate = wxPyBeginAllowThreads();
30881 delete arg1;
30882
30883 wxPyEndAllowThreads(__tstate);
30884 if (PyErr_Occurred()) SWIG_fail;
30885 }
30886 resultobj = SWIG_Py_Void();
30887 return resultobj;
30888fail:
30889 return NULL;
30890}
30891
30892
30893SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30894 PyObject *resultobj = 0;
30895 wxImageList *arg1 = (wxImageList *) 0 ;
30896 wxBitmap *arg2 = 0 ;
30897 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30898 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30899 int result;
30900 void *argp1 = 0 ;
30901 int res1 = 0 ;
30902 void *argp2 = 0 ;
30903 int res2 = 0 ;
30904 void *argp3 = 0 ;
30905 int res3 = 0 ;
30906 PyObject * obj0 = 0 ;
30907 PyObject * obj1 = 0 ;
30908 PyObject * obj2 = 0 ;
30909 char * kwnames[] = {
30910 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30911 };
30912
30913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30915 if (!SWIG_IsOK(res1)) {
30916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30917 }
30918 arg1 = reinterpret_cast< wxImageList * >(argp1);
30919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30920 if (!SWIG_IsOK(res2)) {
30921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30922 }
30923 if (!argp2) {
30924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30925 }
30926 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30927 if (obj2) {
30928 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30929 if (!SWIG_IsOK(res3)) {
30930 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30931 }
30932 if (!argp3) {
30933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30934 }
30935 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30936 }
30937 {
30938 PyThreadState* __tstate = wxPyBeginAllowThreads();
30939 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30940 wxPyEndAllowThreads(__tstate);
30941 if (PyErr_Occurred()) SWIG_fail;
30942 }
30943 resultobj = SWIG_From_int(static_cast< int >(result));
30944 return resultobj;
30945fail:
30946 return NULL;
30947}
30948
30949
30950SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30951 PyObject *resultobj = 0;
30952 wxImageList *arg1 = (wxImageList *) 0 ;
30953 wxBitmap *arg2 = 0 ;
30954 wxColour *arg3 = 0 ;
30955 int result;
30956 void *argp1 = 0 ;
30957 int res1 = 0 ;
30958 void *argp2 = 0 ;
30959 int res2 = 0 ;
30960 wxColour temp3 ;
30961 PyObject * obj0 = 0 ;
30962 PyObject * obj1 = 0 ;
30963 PyObject * obj2 = 0 ;
30964 char * kwnames[] = {
30965 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30966 };
30967
30968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30970 if (!SWIG_IsOK(res1)) {
30971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30972 }
30973 arg1 = reinterpret_cast< wxImageList * >(argp1);
30974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30975 if (!SWIG_IsOK(res2)) {
30976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30977 }
30978 if (!argp2) {
30979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30980 }
30981 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30982 {
30983 arg3 = &temp3;
30984 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30985 }
30986 {
30987 PyThreadState* __tstate = wxPyBeginAllowThreads();
30988 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30989 wxPyEndAllowThreads(__tstate);
30990 if (PyErr_Occurred()) SWIG_fail;
30991 }
30992 resultobj = SWIG_From_int(static_cast< int >(result));
30993 return resultobj;
30994fail:
30995 return NULL;
30996}
30997
30998
30999SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31000 PyObject *resultobj = 0;
31001 wxImageList *arg1 = (wxImageList *) 0 ;
31002 wxIcon *arg2 = 0 ;
31003 int result;
31004 void *argp1 = 0 ;
31005 int res1 = 0 ;
31006 void *argp2 = 0 ;
31007 int res2 = 0 ;
31008 PyObject * obj0 = 0 ;
31009 PyObject * obj1 = 0 ;
31010 char * kwnames[] = {
31011 (char *) "self",(char *) "icon", NULL
31012 };
31013
31014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31016 if (!SWIG_IsOK(res1)) {
31017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31018 }
0085ce49
RD
31019 arg1 = reinterpret_cast< wxImageList * >(argp1);
31020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31021 if (!SWIG_IsOK(res2)) {
31022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31023 }
31024 if (!argp2) {
31025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31026 }
31027 arg2 = reinterpret_cast< wxIcon * >(argp2);
31028 {
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_From_int(static_cast< int >(result));
31035 return resultobj;
31036fail:
31037 return NULL;
31038}
31039
31040
31041SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31042 PyObject *resultobj = 0;
31043 wxImageList *arg1 = (wxImageList *) 0 ;
31044 int arg2 ;
31045 SwigValueWrapper<wxBitmap > result;
31046 void *argp1 = 0 ;
31047 int res1 = 0 ;
31048 int val2 ;
31049 int ecode2 = 0 ;
31050 PyObject * obj0 = 0 ;
31051 PyObject * obj1 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "self",(char *) "index", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31060 }
31061 arg1 = reinterpret_cast< wxImageList * >(argp1);
31062 ecode2 = SWIG_AsVal_int(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31065 }
31066 arg2 = static_cast< int >(val2);
31067 {
31068 PyThreadState* __tstate = wxPyBeginAllowThreads();
31069 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31070 wxPyEndAllowThreads(__tstate);
31071 if (PyErr_Occurred()) SWIG_fail;
31072 }
31073 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31074 return resultobj;
31075fail:
31076 return NULL;
31077}
31078
31079
31080SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31081 PyObject *resultobj = 0;
31082 wxImageList *arg1 = (wxImageList *) 0 ;
31083 int arg2 ;
31084 wxIcon result;
31085 void *argp1 = 0 ;
31086 int res1 = 0 ;
31087 int val2 ;
31088 int ecode2 = 0 ;
31089 PyObject * obj0 = 0 ;
31090 PyObject * obj1 = 0 ;
31091 char * kwnames[] = {
31092 (char *) "self",(char *) "index", NULL
31093 };
31094
31095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31097 if (!SWIG_IsOK(res1)) {
31098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31099 }
31100 arg1 = reinterpret_cast< wxImageList * >(argp1);
31101 ecode2 = SWIG_AsVal_int(obj1, &val2);
31102 if (!SWIG_IsOK(ecode2)) {
31103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31104 }
31105 arg2 = static_cast< int >(val2);
31106 {
31107 PyThreadState* __tstate = wxPyBeginAllowThreads();
31108 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31109 wxPyEndAllowThreads(__tstate);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 }
31112 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31113 return resultobj;
31114fail:
31115 return NULL;
31116}
31117
31118
31119SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31120 PyObject *resultobj = 0;
31121 wxImageList *arg1 = (wxImageList *) 0 ;
31122 int arg2 ;
31123 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
31124 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31125 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
31126 bool result;
31127 void *argp1 = 0 ;
31128 int res1 = 0 ;
31129 int val2 ;
31130 int ecode2 = 0 ;
31131 void *argp3 = 0 ;
31132 int res3 = 0 ;
01f6b6d3
RD
31133 void *argp4 = 0 ;
31134 int res4 = 0 ;
0085ce49
RD
31135 PyObject * obj0 = 0 ;
31136 PyObject * obj1 = 0 ;
31137 PyObject * obj2 = 0 ;
01f6b6d3 31138 PyObject * obj3 = 0 ;
0085ce49 31139 char * kwnames[] = {
01f6b6d3 31140 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
31141 };
31142
01f6b6d3 31143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
31144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31145 if (!SWIG_IsOK(res1)) {
31146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31147 }
31148 arg1 = reinterpret_cast< wxImageList * >(argp1);
31149 ecode2 = SWIG_AsVal_int(obj1, &val2);
31150 if (!SWIG_IsOK(ecode2)) {
31151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31152 }
31153 arg2 = static_cast< int >(val2);
31154 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31155 if (!SWIG_IsOK(res3)) {
31156 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31157 }
31158 if (!argp3) {
31159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31160 }
31161 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
31162 if (obj3) {
31163 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31164 if (!SWIG_IsOK(res4)) {
31165 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31166 }
31167 if (!argp4) {
31168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31169 }
31170 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31171 }
0085ce49
RD
31172 {
31173 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 31174 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
31175 wxPyEndAllowThreads(__tstate);
31176 if (PyErr_Occurred()) SWIG_fail;
31177 }
31178 {
31179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31180 }
31181 return resultobj;
31182fail:
31183 return NULL;
31184}
31185
31186
31187SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31188 PyObject *resultobj = 0;
31189 wxImageList *arg1 = (wxImageList *) 0 ;
31190 int arg2 ;
31191 wxDC *arg3 = 0 ;
31192 int arg4 ;
31193 int arg5 ;
31194 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31195 bool arg7 = (bool) (bool)false ;
31196 bool result;
31197 void *argp1 = 0 ;
31198 int res1 = 0 ;
31199 int val2 ;
31200 int ecode2 = 0 ;
31201 void *argp3 = 0 ;
31202 int res3 = 0 ;
31203 int val4 ;
31204 int ecode4 = 0 ;
31205 int val5 ;
31206 int ecode5 = 0 ;
31207 int val6 ;
31208 int ecode6 = 0 ;
31209 bool val7 ;
31210 int ecode7 = 0 ;
31211 PyObject * obj0 = 0 ;
31212 PyObject * obj1 = 0 ;
31213 PyObject * obj2 = 0 ;
31214 PyObject * obj3 = 0 ;
31215 PyObject * obj4 = 0 ;
31216 PyObject * obj5 = 0 ;
31217 PyObject * obj6 = 0 ;
31218 char * kwnames[] = {
31219 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31220 };
31221
31222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31224 if (!SWIG_IsOK(res1)) {
31225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31226 }
31227 arg1 = reinterpret_cast< wxImageList * >(argp1);
31228 ecode2 = SWIG_AsVal_int(obj1, &val2);
31229 if (!SWIG_IsOK(ecode2)) {
31230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31231 }
31232 arg2 = static_cast< int >(val2);
31233 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31234 if (!SWIG_IsOK(res3)) {
31235 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31236 }
31237 if (!argp3) {
31238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31239 }
31240 arg3 = reinterpret_cast< wxDC * >(argp3);
31241 ecode4 = SWIG_AsVal_int(obj3, &val4);
31242 if (!SWIG_IsOK(ecode4)) {
31243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31244 }
31245 arg4 = static_cast< int >(val4);
31246 ecode5 = SWIG_AsVal_int(obj4, &val5);
31247 if (!SWIG_IsOK(ecode5)) {
31248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31249 }
31250 arg5 = static_cast< int >(val5);
31251 if (obj5) {
31252 ecode6 = SWIG_AsVal_int(obj5, &val6);
31253 if (!SWIG_IsOK(ecode6)) {
31254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31255 }
31256 arg6 = static_cast< int >(val6);
31257 }
31258 if (obj6) {
31259 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31260 if (!SWIG_IsOK(ecode7)) {
31261 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31262 }
31263 arg7 = static_cast< bool >(val7);
31264 }
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31268 wxPyEndAllowThreads(__tstate);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 {
31272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31273 }
31274 return resultobj;
31275fail:
31276 return NULL;
31277}
31278
31279
31280SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31281 PyObject *resultobj = 0;
31282 wxImageList *arg1 = (wxImageList *) 0 ;
31283 int result;
31284 void *argp1 = 0 ;
31285 int res1 = 0 ;
31286 PyObject *swig_obj[1] ;
31287
31288 if (!args) SWIG_fail;
31289 swig_obj[0] = args;
31290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31291 if (!SWIG_IsOK(res1)) {
31292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31293 }
31294 arg1 = reinterpret_cast< wxImageList * >(argp1);
31295 {
31296 PyThreadState* __tstate = wxPyBeginAllowThreads();
31297 result = (int)(arg1)->GetImageCount();
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_From_int(static_cast< int >(result));
31302 return resultobj;
31303fail:
31304 return NULL;
31305}
31306
31307
31308SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj = 0;
31310 wxImageList *arg1 = (wxImageList *) 0 ;
31311 int arg2 ;
31312 bool result;
31313 void *argp1 = 0 ;
31314 int res1 = 0 ;
31315 int val2 ;
31316 int ecode2 = 0 ;
31317 PyObject * obj0 = 0 ;
31318 PyObject * obj1 = 0 ;
31319 char * kwnames[] = {
31320 (char *) "self",(char *) "index", NULL
31321 };
31322
31323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31325 if (!SWIG_IsOK(res1)) {
31326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31327 }
31328 arg1 = reinterpret_cast< wxImageList * >(argp1);
31329 ecode2 = SWIG_AsVal_int(obj1, &val2);
31330 if (!SWIG_IsOK(ecode2)) {
31331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31332 }
31333 arg2 = static_cast< int >(val2);
31334 {
31335 PyThreadState* __tstate = wxPyBeginAllowThreads();
31336 result = (bool)(arg1)->Remove(arg2);
31337 wxPyEndAllowThreads(__tstate);
31338 if (PyErr_Occurred()) SWIG_fail;
31339 }
31340 {
31341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31342 }
31343 return resultobj;
31344fail:
31345 return NULL;
31346}
31347
31348
31349SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31350 PyObject *resultobj = 0;
31351 wxImageList *arg1 = (wxImageList *) 0 ;
31352 bool result;
31353 void *argp1 = 0 ;
31354 int res1 = 0 ;
31355 PyObject *swig_obj[1] ;
31356
31357 if (!args) SWIG_fail;
31358 swig_obj[0] = args;
31359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31360 if (!SWIG_IsOK(res1)) {
31361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31362 }
31363 arg1 = reinterpret_cast< wxImageList * >(argp1);
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 result = (bool)(arg1)->RemoveAll();
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 {
31371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31372 }
31373 return resultobj;
31374fail:
31375 return NULL;
31376}
31377
31378
31379SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31380 PyObject *resultobj = 0;
31381 wxImageList *arg1 = (wxImageList *) 0 ;
31382 int arg2 ;
31383 int *arg3 = 0 ;
31384 int *arg4 = 0 ;
31385 void *argp1 = 0 ;
31386 int res1 = 0 ;
31387 int val2 ;
31388 int ecode2 = 0 ;
31389 int temp3 ;
31390 int res3 = SWIG_TMPOBJ ;
31391 int temp4 ;
31392 int res4 = SWIG_TMPOBJ ;
31393 PyObject * obj0 = 0 ;
31394 PyObject * obj1 = 0 ;
31395 char * kwnames[] = {
31396 (char *) "self",(char *) "index", NULL
31397 };
31398
31399 arg3 = &temp3;
31400 arg4 = &temp4;
31401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31405 }
31406 arg1 = reinterpret_cast< wxImageList * >(argp1);
31407 ecode2 = SWIG_AsVal_int(obj1, &val2);
31408 if (!SWIG_IsOK(ecode2)) {
31409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31410 }
31411 arg2 = static_cast< int >(val2);
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 (arg1)->GetSize(arg2,*arg3,*arg4);
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 resultobj = SWIG_Py_Void();
31419 if (SWIG_IsTmpObj(res3)) {
31420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31421 } else {
31422 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31424 }
31425 if (SWIG_IsTmpObj(res4)) {
31426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31427 } else {
31428 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31430 }
31431 return resultobj;
31432fail:
31433 return NULL;
31434}
31435
31436
31437SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31438 PyObject *obj;
31439 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31440 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31441 return SWIG_Py_Void();
31442}
31443
31444SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31445 return SWIG_Python_InitShadowInstance(args);
31446}
31447
50efceee
RD
31448SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31449 PyObject *resultobj = 0;
31450 wxStockGDI *result = 0 ;
0085ce49 31451
50efceee
RD
31452 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31453 {
31454 PyThreadState* __tstate = wxPyBeginAllowThreads();
31455 result = (wxStockGDI *)new wxStockGDI();
31456 wxPyEndAllowThreads(__tstate);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31460 return resultobj;
31461fail:
31462 return NULL;
0085ce49
RD
31463}
31464
31465
50efceee
RD
31466SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31467 PyObject *resultobj = 0;
31468 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31469 void *argp1 = 0 ;
31470 int res1 = 0 ;
31471 PyObject *swig_obj[1] ;
0085ce49 31472
50efceee
RD
31473 if (!args) SWIG_fail;
31474 swig_obj[0] = args;
31475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31476 if (!SWIG_IsOK(res1)) {
31477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31478 }
31479 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31480 {
31481 PyThreadState* __tstate = wxPyBeginAllowThreads();
31482 delete arg1;
31483
31484 wxPyEndAllowThreads(__tstate);
31485 if (PyErr_Occurred()) SWIG_fail;
31486 }
31487 resultobj = SWIG_Py_Void();
31488 return resultobj;
31489fail:
31490 return NULL;
0085ce49
RD
31491}
31492
31493
50efceee
RD
31494SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31495 PyObject *resultobj = 0;
0085ce49 31496
50efceee
RD
31497 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31498 {
31499 PyThreadState* __tstate = wxPyBeginAllowThreads();
31500 wxStockGDI::DeleteAll();
31501 wxPyEndAllowThreads(__tstate);
31502 if (PyErr_Occurred()) SWIG_fail;
31503 }
31504 resultobj = SWIG_Py_Void();
31505 return resultobj;
31506fail:
31507 return NULL;
0085ce49
RD
31508}
31509
31510
50efceee
RD
31511SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31512 PyObject *resultobj = 0;
31513 wxStockGDI *result = 0 ;
0085ce49 31514
50efceee
RD
31515 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31516 {
31517 PyThreadState* __tstate = wxPyBeginAllowThreads();
31518 {
31519 wxStockGDI &_result_ref = wxStockGDI::instance();
31520 result = (wxStockGDI *) &_result_ref;
31521 }
31522 wxPyEndAllowThreads(__tstate);
31523 if (PyErr_Occurred()) SWIG_fail;
31524 }
31525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31526 return resultobj;
31527fail:
31528 return NULL;
0085ce49
RD
31529}
31530
31531
50efceee
RD
31532SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31533 PyObject *resultobj = 0;
31534 wxStockGDI::Item arg1 ;
31535 wxBrush *result = 0 ;
31536 int val1 ;
31537 int ecode1 = 0 ;
31538 PyObject * obj0 = 0 ;
31539 char * kwnames[] = {
31540 (char *) "item", NULL
31541 };
31542
31543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31544 ecode1 = SWIG_AsVal_int(obj0, &val1);
31545 if (!SWIG_IsOK(ecode1)) {
31546 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31547 }
31548 arg1 = static_cast< wxStockGDI::Item >(val1);
31549 {
31550 PyThreadState* __tstate = wxPyBeginAllowThreads();
31551 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31552 wxPyEndAllowThreads(__tstate);
31553 if (PyErr_Occurred()) SWIG_fail;
31554 }
31555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31556 return resultobj;
31557fail:
31558 return NULL;
0085ce49
RD
31559}
31560
31561
50efceee
RD
31562SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31563 PyObject *resultobj = 0;
31564 wxStockGDI::Item arg1 ;
31565 wxColour *result = 0 ;
31566 int val1 ;
31567 int ecode1 = 0 ;
31568 PyObject * obj0 = 0 ;
31569 char * kwnames[] = {
31570 (char *) "item", NULL
31571 };
0085ce49 31572
50efceee
RD
31573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31574 ecode1 = SWIG_AsVal_int(obj0, &val1);
31575 if (!SWIG_IsOK(ecode1)) {
31576 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31577 }
31578 arg1 = static_cast< wxStockGDI::Item >(val1);
31579 {
31580 PyThreadState* __tstate = wxPyBeginAllowThreads();
31581 result = (wxColour *)wxStockGDI::GetColour(arg1);
31582 wxPyEndAllowThreads(__tstate);
31583 if (PyErr_Occurred()) SWIG_fail;
31584 }
31585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31586 return resultobj;
31587fail:
31588 return NULL;
0085ce49
RD
31589}
31590
31591
50efceee
RD
31592SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31593 PyObject *resultobj = 0;
31594 wxStockGDI::Item arg1 ;
31595 wxCursor *result = 0 ;
31596 int val1 ;
31597 int ecode1 = 0 ;
31598 PyObject * obj0 = 0 ;
31599 char * kwnames[] = {
31600 (char *) "item", NULL
31601 };
31602
31603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31604 ecode1 = SWIG_AsVal_int(obj0, &val1);
31605 if (!SWIG_IsOK(ecode1)) {
31606 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31607 }
31608 arg1 = static_cast< wxStockGDI::Item >(val1);
31609 {
31610 PyThreadState* __tstate = wxPyBeginAllowThreads();
31611 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31612 wxPyEndAllowThreads(__tstate);
31613 if (PyErr_Occurred()) SWIG_fail;
31614 }
31615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31616 return resultobj;
31617fail:
31618 return NULL;
0085ce49
RD
31619}
31620
31621
50efceee
RD
31622SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31623 PyObject *resultobj = 0;
31624 wxStockGDI::Item arg1 ;
31625 wxPen *result = 0 ;
31626 int val1 ;
31627 int ecode1 = 0 ;
31628 PyObject * obj0 = 0 ;
31629 char * kwnames[] = {
31630 (char *) "item", NULL
31631 };
31632
31633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31634 ecode1 = SWIG_AsVal_int(obj0, &val1);
31635 if (!SWIG_IsOK(ecode1)) {
31636 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31637 }
31638 arg1 = static_cast< wxStockGDI::Item >(val1);
31639 {
31640 PyThreadState* __tstate = wxPyBeginAllowThreads();
31641 result = (wxPen *)wxStockGDI::GetPen(arg1);
31642 wxPyEndAllowThreads(__tstate);
31643 if (PyErr_Occurred()) SWIG_fail;
31644 }
31645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31646 return resultobj;
31647fail:
31648 return NULL;
0085ce49
RD
31649}
31650
31651
50efceee
RD
31652SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31653 PyObject *resultobj = 0;
31654 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31655 wxStockGDI::Item arg2 ;
31656 wxFont *result = 0 ;
31657 void *argp1 = 0 ;
31658 int res1 = 0 ;
31659 int val2 ;
31660 int ecode2 = 0 ;
31661 PyObject * obj0 = 0 ;
31662 PyObject * obj1 = 0 ;
31663 char * kwnames[] = {
31664 (char *) "self",(char *) "item", NULL
31665 };
0085ce49 31666
50efceee
RD
31667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31669 if (!SWIG_IsOK(res1)) {
31670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31671 }
31672 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31673 ecode2 = SWIG_AsVal_int(obj1, &val2);
31674 if (!SWIG_IsOK(ecode2)) {
31675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31676 }
31677 arg2 = static_cast< wxStockGDI::Item >(val2);
31678 {
31679 PyThreadState* __tstate = wxPyBeginAllowThreads();
31680 result = (wxFont *)(arg1)->GetFont(arg2);
31681 wxPyEndAllowThreads(__tstate);
31682 if (PyErr_Occurred()) SWIG_fail;
31683 }
31684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31685 return resultobj;
31686fail:
31687 return NULL;
0085ce49
RD
31688}
31689
31690
50efceee
RD
31691SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31692 PyObject *obj;
31693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31694 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31695 return SWIG_Py_Void();
0085ce49
RD
31696}
31697
50efceee
RD
31698SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31699 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
31700}
31701
0085ce49
RD
31702SWIGINTERN int NullBitmap_set(PyObject *) {
31703 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31704 return 1;
31705}
31706
31707
31708SWIGINTERN PyObject *NullBitmap_get(void) {
31709 PyObject *pyobj = 0;
31710
31711 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31712 return pyobj;
31713}
31714
31715
31716SWIGINTERN int NullIcon_set(PyObject *) {
31717 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31718 return 1;
31719}
31720
31721
31722SWIGINTERN PyObject *NullIcon_get(void) {
31723 PyObject *pyobj = 0;
31724
31725 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31726 return pyobj;
31727}
31728
31729
31730SWIGINTERN int NullCursor_set(PyObject *) {
31731 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31732 return 1;
31733}
31734
31735
31736SWIGINTERN PyObject *NullCursor_get(void) {
31737 PyObject *pyobj = 0;
31738
31739 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31740 return pyobj;
31741}
31742
31743
31744SWIGINTERN int NullPen_set(PyObject *) {
31745 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31746 return 1;
31747}
31748
31749
31750SWIGINTERN PyObject *NullPen_get(void) {
31751 PyObject *pyobj = 0;
31752
31753 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31754 return pyobj;
31755}
31756
31757
31758SWIGINTERN int NullBrush_set(PyObject *) {
31759 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31760 return 1;
31761}
31762
31763
31764SWIGINTERN PyObject *NullBrush_get(void) {
31765 PyObject *pyobj = 0;
31766
31767 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31768 return pyobj;
31769}
31770
31771
31772SWIGINTERN int NullPalette_set(PyObject *) {
31773 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31774 return 1;
31775}
31776
31777
31778SWIGINTERN PyObject *NullPalette_get(void) {
31779 PyObject *pyobj = 0;
31780
31781 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31782 return pyobj;
31783}
31784
31785
31786SWIGINTERN int NullFont_set(PyObject *) {
31787 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31788 return 1;
31789}
31790
31791
31792SWIGINTERN PyObject *NullFont_get(void) {
31793 PyObject *pyobj = 0;
31794
31795 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31796 return pyobj;
31797}
31798
31799
31800SWIGINTERN int NullColour_set(PyObject *) {
31801 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31802 return 1;
31803}
31804
31805
31806SWIGINTERN PyObject *NullColour_get(void) {
31807 PyObject *pyobj = 0;
31808
31809 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31810 return pyobj;
31811}
31812
31813
50efceee 31814SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 31815 PyObject *resultobj = 0;
50efceee
RD
31816 wxGDIObjListBase *result = 0 ;
31817
31818 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31819 {
31820 PyThreadState* __tstate = wxPyBeginAllowThreads();
31821 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31822 wxPyEndAllowThreads(__tstate);
31823 if (PyErr_Occurred()) SWIG_fail;
31824 }
31825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31826 return resultobj;
31827fail:
31828 return NULL;
31829}
31830
31831
31832SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31833 PyObject *resultobj = 0;
31834 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
31835 void *argp1 = 0 ;
31836 int res1 = 0 ;
50efceee 31837 PyObject *swig_obj[1] ;
0085ce49 31838
50efceee
RD
31839 if (!args) SWIG_fail;
31840 swig_obj[0] = args;
31841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 31842 if (!SWIG_IsOK(res1)) {
50efceee 31843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 31844 }
50efceee 31845 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
31846 {
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
31848 delete arg1;
31849
0085ce49
RD
31850 wxPyEndAllowThreads(__tstate);
31851 if (PyErr_Occurred()) SWIG_fail;
31852 }
31853 resultobj = SWIG_Py_Void();
31854 return resultobj;
31855fail:
31856 return NULL;
31857}
31858
31859
50efceee
RD
31860SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31861 PyObject *obj;
31862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31863 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31864 return SWIG_Py_Void();
31865}
31866
31867SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31868 return SWIG_Python_InitShadowInstance(args);
31869}
31870
0085ce49
RD
31871SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31872 PyObject *resultobj = 0;
31873 wxPenList *arg1 = (wxPenList *) 0 ;
31874 wxColour *arg2 = 0 ;
31875 int arg3 ;
31876 int arg4 ;
31877 wxPen *result = 0 ;
31878 void *argp1 = 0 ;
31879 int res1 = 0 ;
31880 wxColour temp2 ;
31881 int val3 ;
31882 int ecode3 = 0 ;
31883 int val4 ;
31884 int ecode4 = 0 ;
31885 PyObject * obj0 = 0 ;
31886 PyObject * obj1 = 0 ;
31887 PyObject * obj2 = 0 ;
31888 PyObject * obj3 = 0 ;
31889 char * kwnames[] = {
31890 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31891 };
31892
31893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31895 if (!SWIG_IsOK(res1)) {
31896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31897 }
31898 arg1 = reinterpret_cast< wxPenList * >(argp1);
31899 {
31900 arg2 = &temp2;
31901 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31902 }
31903 ecode3 = SWIG_AsVal_int(obj2, &val3);
31904 if (!SWIG_IsOK(ecode3)) {
31905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31906 }
31907 arg3 = static_cast< int >(val3);
31908 ecode4 = SWIG_AsVal_int(obj3, &val4);
31909 if (!SWIG_IsOK(ecode4)) {
31910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31911 }
31912 arg4 = static_cast< int >(val4);
31913 {
31914 PyThreadState* __tstate = wxPyBeginAllowThreads();
31915 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31916 wxPyEndAllowThreads(__tstate);
31917 if (PyErr_Occurred()) SWIG_fail;
31918 }
31919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31920 return resultobj;
31921fail:
31922 return NULL;
31923}
31924
31925
50efceee 31926SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31927 PyObject *resultobj = 0;
31928 wxPenList *arg1 = (wxPenList *) 0 ;
31929 wxPen *arg2 = (wxPen *) 0 ;
31930 void *argp1 = 0 ;
31931 int res1 = 0 ;
31932 void *argp2 = 0 ;
31933 int res2 = 0 ;
31934 PyObject * obj0 = 0 ;
31935 PyObject * obj1 = 0 ;
31936 char * kwnames[] = {
31937 (char *) "self",(char *) "pen", NULL
31938 };
31939
50efceee 31940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
31941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31942 if (!SWIG_IsOK(res1)) {
50efceee 31943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31944 }
31945 arg1 = reinterpret_cast< wxPenList * >(argp1);
31946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31947 if (!SWIG_IsOK(res2)) {
50efceee 31948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
31949 }
31950 arg2 = reinterpret_cast< wxPen * >(argp2);
31951 {
31952 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31953 (arg1)->AddPen(arg2);
0085ce49
RD
31954 wxPyEndAllowThreads(__tstate);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 }
31957 resultobj = SWIG_Py_Void();
31958 return resultobj;
31959fail:
31960 return NULL;
31961}
31962
31963
50efceee 31964SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31965 PyObject *resultobj = 0;
31966 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 31967 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
31968 void *argp1 = 0 ;
31969 int res1 = 0 ;
50efceee
RD
31970 void *argp2 = 0 ;
31971 int res2 = 0 ;
31972 PyObject * obj0 = 0 ;
31973 PyObject * obj1 = 0 ;
31974 char * kwnames[] = {
31975 (char *) "self",(char *) "pen", NULL
31976 };
0085ce49 31977
50efceee
RD
31978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 31980 if (!SWIG_IsOK(res1)) {
50efceee 31981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31982 }
31983 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
31984 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31985 if (!SWIG_IsOK(res2)) {
31986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31987 }
31988 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
31989 {
31990 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31991 (arg1)->RemovePen(arg2);
0085ce49
RD
31992 wxPyEndAllowThreads(__tstate);
31993 if (PyErr_Occurred()) SWIG_fail;
31994 }
50efceee 31995 resultobj = SWIG_Py_Void();
0085ce49
RD
31996 return resultobj;
31997fail:
31998 return NULL;
31999}
32000
32001
32002SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32003 PyObject *obj;
32004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32005 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32006 return SWIG_Py_Void();
32007}
32008
50efceee
RD
32009SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32010 PyObject *resultobj = 0;
32011 wxBrushList *arg1 = (wxBrushList *) 0 ;
32012 wxColour *arg2 = 0 ;
32013 int arg3 = (int) wxSOLID ;
32014 wxBrush *result = 0 ;
32015 void *argp1 = 0 ;
32016 int res1 = 0 ;
32017 wxColour temp2 ;
32018 int val3 ;
32019 int ecode3 = 0 ;
32020 PyObject * obj0 = 0 ;
32021 PyObject * obj1 = 0 ;
32022 PyObject * obj2 = 0 ;
32023 char * kwnames[] = {
32024 (char *) "self",(char *) "colour",(char *) "style", NULL
32025 };
32026
32027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32029 if (!SWIG_IsOK(res1)) {
32030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32031 }
32032 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32033 {
32034 arg2 = &temp2;
32035 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32036 }
32037 if (obj2) {
32038 ecode3 = SWIG_AsVal_int(obj2, &val3);
32039 if (!SWIG_IsOK(ecode3)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32041 }
32042 arg3 = static_cast< int >(val3);
32043 }
32044 {
32045 PyThreadState* __tstate = wxPyBeginAllowThreads();
32046 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32047 wxPyEndAllowThreads(__tstate);
32048 if (PyErr_Occurred()) SWIG_fail;
32049 }
32050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32051 return resultobj;
32052fail:
32053 return NULL;
32054}
32055
32056
0085ce49
RD
32057SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32058 PyObject *resultobj = 0;
32059 wxBrushList *arg1 = (wxBrushList *) 0 ;
32060 wxBrush *arg2 = (wxBrush *) 0 ;
32061 void *argp1 = 0 ;
32062 int res1 = 0 ;
32063 void *argp2 = 0 ;
32064 int res2 = 0 ;
32065 PyObject * obj0 = 0 ;
32066 PyObject * obj1 = 0 ;
32067 char * kwnames[] = {
32068 (char *) "self",(char *) "brush", NULL
32069 };
32070
32071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32073 if (!SWIG_IsOK(res1)) {
32074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32075 }
32076 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32077 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32078 if (!SWIG_IsOK(res2)) {
32079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32080 }
32081 arg2 = reinterpret_cast< wxBrush * >(argp2);
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 (arg1)->AddBrush(arg2);
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_Py_Void();
32089 return resultobj;
32090fail:
32091 return NULL;
32092}
32093
32094
50efceee 32095SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
32096 PyObject *resultobj = 0;
32097 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32098 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
32099 void *argp1 = 0 ;
32100 int res1 = 0 ;
50efceee
RD
32101 void *argp2 = 0 ;
32102 int res2 = 0 ;
32103 PyObject * obj0 = 0 ;
32104 PyObject * obj1 = 0 ;
32105 char * kwnames[] = {
32106 (char *) "self",(char *) "brush", NULL
32107 };
32108
32109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32111 if (!SWIG_IsOK(res1)) {
32112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32113 }
32114 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32115 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32116 if (!SWIG_IsOK(res2)) {
32117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32118 }
32119 arg2 = reinterpret_cast< wxBrush * >(argp2);
32120 {
32121 PyThreadState* __tstate = wxPyBeginAllowThreads();
32122 (arg1)->RemoveBrush(arg2);
32123 wxPyEndAllowThreads(__tstate);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
32126 resultobj = SWIG_Py_Void();
32127 return resultobj;
32128fail:
32129 return NULL;
32130}
32131
32132
32133SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32134 PyObject *obj;
32135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32136 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32137 return SWIG_Py_Void();
32138}
32139
32140SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj = 0;
32142 wxFontList *arg1 = (wxFontList *) 0 ;
32143 int arg2 ;
32144 int arg3 ;
32145 int arg4 ;
32146 int arg5 ;
32147 bool arg6 = (bool) false ;
32148 wxString const &arg7_defvalue = wxPyEmptyString ;
32149 wxString *arg7 = (wxString *) &arg7_defvalue ;
32150 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32151 wxFont *result = 0 ;
32152 void *argp1 = 0 ;
32153 int res1 = 0 ;
32154 int val2 ;
32155 int ecode2 = 0 ;
0085ce49
RD
32156 int val3 ;
32157 int ecode3 = 0 ;
50efceee
RD
32158 int val4 ;
32159 int ecode4 = 0 ;
32160 int val5 ;
32161 int ecode5 = 0 ;
32162 bool val6 ;
32163 int ecode6 = 0 ;
32164 bool temp7 = false ;
32165 int val8 ;
32166 int ecode8 = 0 ;
0085ce49
RD
32167 PyObject * obj0 = 0 ;
32168 PyObject * obj1 = 0 ;
32169 PyObject * obj2 = 0 ;
50efceee
RD
32170 PyObject * obj3 = 0 ;
32171 PyObject * obj4 = 0 ;
32172 PyObject * obj5 = 0 ;
32173 PyObject * obj6 = 0 ;
32174 PyObject * obj7 = 0 ;
0085ce49 32175 char * kwnames[] = {
50efceee 32176 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
32177 };
32178
50efceee
RD
32179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32181 if (!SWIG_IsOK(res1)) {
50efceee 32182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32183 }
50efceee
RD
32184 arg1 = reinterpret_cast< wxFontList * >(argp1);
32185 ecode2 = SWIG_AsVal_int(obj1, &val2);
32186 if (!SWIG_IsOK(ecode2)) {
32187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32188 }
32189 arg2 = static_cast< int >(val2);
32190 ecode3 = SWIG_AsVal_int(obj2, &val3);
32191 if (!SWIG_IsOK(ecode3)) {
32192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32193 }
32194 arg3 = static_cast< int >(val3);
32195 ecode4 = SWIG_AsVal_int(obj3, &val4);
32196 if (!SWIG_IsOK(ecode4)) {
32197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32198 }
32199 arg4 = static_cast< int >(val4);
32200 ecode5 = SWIG_AsVal_int(obj4, &val5);
32201 if (!SWIG_IsOK(ecode5)) {
32202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32203 }
32204 arg5 = static_cast< int >(val5);
32205 if (obj5) {
32206 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32207 if (!SWIG_IsOK(ecode6)) {
32208 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32209 }
32210 arg6 = static_cast< bool >(val6);
0085ce49 32211 }
50efceee
RD
32212 if (obj6) {
32213 {
32214 arg7 = wxString_in_helper(obj6);
32215 if (arg7 == NULL) SWIG_fail;
32216 temp7 = true;
32217 }
32218 }
32219 if (obj7) {
32220 ecode8 = SWIG_AsVal_int(obj7, &val8);
32221 if (!SWIG_IsOK(ecode8)) {
32222 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 32223 }
50efceee 32224 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
32225 }
32226 {
32227 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32228 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
32229 wxPyEndAllowThreads(__tstate);
32230 if (PyErr_Occurred()) SWIG_fail;
32231 }
50efceee
RD
32232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32233 {
32234 if (temp7)
32235 delete arg7;
32236 }
0085ce49
RD
32237 return resultobj;
32238fail:
50efceee
RD
32239 {
32240 if (temp7)
32241 delete arg7;
32242 }
0085ce49
RD
32243 return NULL;
32244}
32245
32246
50efceee 32247SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32248 PyObject *resultobj = 0;
50efceee
RD
32249 wxFontList *arg1 = (wxFontList *) 0 ;
32250 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32251 void *argp1 = 0 ;
32252 int res1 = 0 ;
32253 void *argp2 = 0 ;
32254 int res2 = 0 ;
32255 PyObject * obj0 = 0 ;
32256 PyObject * obj1 = 0 ;
32257 char * kwnames[] = {
50efceee 32258 (char *) "self",(char *) "font", NULL
0085ce49
RD
32259 };
32260
50efceee
RD
32261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32263 if (!SWIG_IsOK(res1)) {
50efceee 32264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32265 }
50efceee
RD
32266 arg1 = reinterpret_cast< wxFontList * >(argp1);
32267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 32268 if (!SWIG_IsOK(res2)) {
50efceee 32269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 32270 }
50efceee 32271 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32272 {
32273 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32274 (arg1)->AddFont(arg2);
0085ce49
RD
32275 wxPyEndAllowThreads(__tstate);
32276 if (PyErr_Occurred()) SWIG_fail;
32277 }
32278 resultobj = SWIG_Py_Void();
32279 return resultobj;
32280fail:
32281 return NULL;
32282}
32283
32284
50efceee 32285SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32286 PyObject *resultobj = 0;
50efceee
RD
32287 wxFontList *arg1 = (wxFontList *) 0 ;
32288 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32289 void *argp1 = 0 ;
32290 int res1 = 0 ;
50efceee
RD
32291 void *argp2 = 0 ;
32292 int res2 = 0 ;
32293 PyObject * obj0 = 0 ;
32294 PyObject * obj1 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "self",(char *) "font", NULL
32297 };
0085ce49 32298
50efceee
RD
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32301 if (!SWIG_IsOK(res1)) {
50efceee 32302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32303 }
50efceee
RD
32304 arg1 = reinterpret_cast< wxFontList * >(argp1);
32305 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32306 if (!SWIG_IsOK(res2)) {
32307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32308 }
32309 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32310 {
32311 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32312 (arg1)->RemoveFont(arg2);
0085ce49
RD
32313 wxPyEndAllowThreads(__tstate);
32314 if (PyErr_Occurred()) SWIG_fail;
32315 }
50efceee 32316 resultobj = SWIG_Py_Void();
0085ce49
RD
32317 return resultobj;
32318fail:
32319 return NULL;
32320}
32321
32322
50efceee 32323SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
32324 PyObject *obj;
32325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32326 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
32327 return SWIG_Py_Void();
32328}
32329
32330SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32331 PyObject *resultobj = 0;
32332 wxColourDatabase *result = 0 ;
32333
32334 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32335 {
32336 if (!wxPyCheckForApp()) SWIG_fail;
32337 PyThreadState* __tstate = wxPyBeginAllowThreads();
32338 result = (wxColourDatabase *)new wxColourDatabase();
32339 wxPyEndAllowThreads(__tstate);
32340 if (PyErr_Occurred()) SWIG_fail;
32341 }
32342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32343 return resultobj;
32344fail:
32345 return NULL;
32346}
32347
32348
32349SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32350 PyObject *resultobj = 0;
32351 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32352 void *argp1 = 0 ;
32353 int res1 = 0 ;
32354 PyObject *swig_obj[1] ;
32355
32356 if (!args) SWIG_fail;
32357 swig_obj[0] = args;
32358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32359 if (!SWIG_IsOK(res1)) {
32360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32361 }
32362 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32363 {
32364 PyThreadState* __tstate = wxPyBeginAllowThreads();
32365 delete arg1;
32366
32367 wxPyEndAllowThreads(__tstate);
32368 if (PyErr_Occurred()) SWIG_fail;
32369 }
32370 resultobj = SWIG_Py_Void();
32371 return resultobj;
32372fail:
32373 return NULL;
32374}
32375
32376
32377SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32378 PyObject *resultobj = 0;
32379 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32380 wxString *arg2 = 0 ;
32381 wxColour result;
32382 void *argp1 = 0 ;
32383 int res1 = 0 ;
32384 bool temp2 = false ;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 char * kwnames[] = {
32388 (char *) "self",(char *) "name", NULL
32389 };
32390
32391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32393 if (!SWIG_IsOK(res1)) {
32394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32395 }
32396 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32397 {
32398 arg2 = wxString_in_helper(obj1);
32399 if (arg2 == NULL) SWIG_fail;
32400 temp2 = true;
32401 }
32402 {
32403 PyThreadState* __tstate = wxPyBeginAllowThreads();
32404 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32405 wxPyEndAllowThreads(__tstate);
32406 if (PyErr_Occurred()) SWIG_fail;
32407 }
32408 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32409 {
32410 if (temp2)
32411 delete arg2;
32412 }
32413 return resultobj;
32414fail:
32415 {
32416 if (temp2)
32417 delete arg2;
32418 }
32419 return NULL;
32420}
32421
32422
32423SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32424 PyObject *resultobj = 0;
32425 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32426 wxColour *arg2 = 0 ;
32427 wxString result;
32428 void *argp1 = 0 ;
32429 int res1 = 0 ;
32430 wxColour temp2 ;
32431 PyObject * obj0 = 0 ;
32432 PyObject * obj1 = 0 ;
32433 char * kwnames[] = {
32434 (char *) "self",(char *) "colour", NULL
32435 };
32436
32437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32439 if (!SWIG_IsOK(res1)) {
32440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32441 }
32442 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32443 {
32444 arg2 = &temp2;
32445 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32446 }
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 {
32454#if wxUSE_UNICODE
32455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32456#else
32457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32458#endif
32459 }
32460 return resultobj;
32461fail:
32462 return NULL;
32463}
32464
32465
32466SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32467 PyObject *resultobj = 0;
32468 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32469 wxString *arg2 = 0 ;
32470 wxColour *arg3 = 0 ;
32471 void *argp1 = 0 ;
32472 int res1 = 0 ;
32473 bool temp2 = false ;
32474 wxColour temp3 ;
32475 PyObject * obj0 = 0 ;
32476 PyObject * obj1 = 0 ;
32477 PyObject * obj2 = 0 ;
32478 char * kwnames[] = {
32479 (char *) "self",(char *) "name",(char *) "colour", NULL
32480 };
32481
32482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32484 if (!SWIG_IsOK(res1)) {
32485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32486 }
32487 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32488 {
32489 arg2 = wxString_in_helper(obj1);
32490 if (arg2 == NULL) SWIG_fail;
32491 temp2 = true;
32492 }
32493 {
32494 arg3 = &temp3;
32495 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32496 }
32497 {
32498 PyThreadState* __tstate = wxPyBeginAllowThreads();
32499 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32500 wxPyEndAllowThreads(__tstate);
32501 if (PyErr_Occurred()) SWIG_fail;
32502 }
32503 resultobj = SWIG_Py_Void();
32504 {
32505 if (temp2)
32506 delete arg2;
32507 }
32508 return resultobj;
32509fail:
32510 {
32511 if (temp2)
32512 delete arg2;
32513 }
32514 return NULL;
32515}
32516
32517
32518SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32519 PyObject *resultobj = 0;
32520 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32521 wxString *arg2 = 0 ;
32522 int arg3 ;
32523 int arg4 ;
32524 int arg5 ;
32525 void *argp1 = 0 ;
32526 int res1 = 0 ;
32527 bool temp2 = false ;
32528 int val3 ;
32529 int ecode3 = 0 ;
32530 int val4 ;
32531 int ecode4 = 0 ;
50efceee
RD
32532 int val5 ;
32533 int ecode5 = 0 ;
0085ce49
RD
32534 PyObject * obj0 = 0 ;
32535 PyObject * obj1 = 0 ;
32536 PyObject * obj2 = 0 ;
32537 PyObject * obj3 = 0 ;
32538 PyObject * obj4 = 0 ;
0085ce49 32539 char * kwnames[] = {
50efceee 32540 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
32541 };
32542
50efceee
RD
32543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 32545 if (!SWIG_IsOK(res1)) {
50efceee
RD
32546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32547 }
32548 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32549 {
32550 arg2 = wxString_in_helper(obj1);
32551 if (arg2 == NULL) SWIG_fail;
32552 temp2 = true;
0085ce49 32553 }
0085ce49
RD
32554 ecode3 = SWIG_AsVal_int(obj2, &val3);
32555 if (!SWIG_IsOK(ecode3)) {
50efceee 32556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
32557 }
32558 arg3 = static_cast< int >(val3);
32559 ecode4 = SWIG_AsVal_int(obj3, &val4);
32560 if (!SWIG_IsOK(ecode4)) {
50efceee 32561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
32562 }
32563 arg4 = static_cast< int >(val4);
32564 ecode5 = SWIG_AsVal_int(obj4, &val5);
32565 if (!SWIG_IsOK(ecode5)) {
50efceee 32566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
32567 }
32568 arg5 = static_cast< int >(val5);
0085ce49
RD
32569 {
32570 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32571 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
32572 wxPyEndAllowThreads(__tstate);
32573 if (PyErr_Occurred()) SWIG_fail;
32574 }
50efceee 32575 resultobj = SWIG_Py_Void();
0085ce49 32576 {
50efceee
RD
32577 if (temp2)
32578 delete arg2;
0085ce49
RD
32579 }
32580 return resultobj;
32581fail:
32582 {
50efceee
RD
32583 if (temp2)
32584 delete arg2;
0085ce49
RD
32585 }
32586 return NULL;
32587}
32588
32589
50efceee
RD
32590SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32591 PyObject *obj;
32592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32593 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32594 return SWIG_Py_Void();
32595}
32596
32597SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32598 return SWIG_Python_InitShadowInstance(args);
32599}
32600
32601SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32602 PyObject *resultobj = 0;
50efceee 32603 wxFontList *result = 0 ;
0085ce49 32604
50efceee 32605 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32608 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
32609 wxPyEndAllowThreads(__tstate);
32610 if (PyErr_Occurred()) SWIG_fail;
32611 }
50efceee 32612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
32613 return resultobj;
32614fail:
32615 return NULL;
32616}
32617
32618
50efceee 32619SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32620 PyObject *resultobj = 0;
50efceee 32621 wxPenList *result = 0 ;
0085ce49 32622
50efceee 32623 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
32624 {
32625 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32626 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
32627 wxPyEndAllowThreads(__tstate);
32628 if (PyErr_Occurred()) SWIG_fail;
32629 }
50efceee 32630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
32631 return resultobj;
32632fail:
32633 return NULL;
32634}
32635
32636
50efceee
RD
32637SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32638 PyObject *resultobj = 0;
32639 wxBrushList *result = 0 ;
0085ce49 32640
50efceee
RD
32641 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 result = (wxBrushList *)_wxPyInitTheBrushList();
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32649 return resultobj;
32650fail:
32651 return NULL;
0085ce49
RD
32652}
32653
32654
50efceee
RD
32655SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32656 PyObject *resultobj = 0;
32657 wxColourDatabase *result = 0 ;
0085ce49 32658
50efceee
RD
32659 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32660 {
32661 PyThreadState* __tstate = wxPyBeginAllowThreads();
32662 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32663 wxPyEndAllowThreads(__tstate);
32664 if (PyErr_Occurred()) SWIG_fail;
32665 }
32666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32667 return resultobj;
32668fail:
32669 return NULL;
0085ce49
RD
32670}
32671
32672
32673SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32674 PyObject *resultobj = 0;
32675 wxEffects *result = 0 ;
32676
32677 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32678 {
32679 PyThreadState* __tstate = wxPyBeginAllowThreads();
32680 result = (wxEffects *)new wxEffects();
32681 wxPyEndAllowThreads(__tstate);
32682 if (PyErr_Occurred()) SWIG_fail;
32683 }
32684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32685 return resultobj;
32686fail:
32687 return NULL;
32688}
32689
32690
32691SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32692 PyObject *resultobj = 0;
32693 wxEffects *arg1 = (wxEffects *) 0 ;
32694 wxColour result;
32695 void *argp1 = 0 ;
32696 int res1 = 0 ;
32697 PyObject *swig_obj[1] ;
32698
32699 if (!args) SWIG_fail;
32700 swig_obj[0] = args;
32701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32702 if (!SWIG_IsOK(res1)) {
32703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32704 }
32705 arg1 = reinterpret_cast< wxEffects * >(argp1);
32706 {
32707 PyThreadState* __tstate = wxPyBeginAllowThreads();
32708 result = ((wxEffects const *)arg1)->GetHighlightColour();
32709 wxPyEndAllowThreads(__tstate);
32710 if (PyErr_Occurred()) SWIG_fail;
32711 }
32712 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32713 return resultobj;
32714fail:
32715 return NULL;
32716}
32717
32718
32719SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32720 PyObject *resultobj = 0;
32721 wxEffects *arg1 = (wxEffects *) 0 ;
32722 wxColour result;
32723 void *argp1 = 0 ;
32724 int res1 = 0 ;
32725 PyObject *swig_obj[1] ;
32726
32727 if (!args) SWIG_fail;
32728 swig_obj[0] = args;
32729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32730 if (!SWIG_IsOK(res1)) {
32731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32732 }
32733 arg1 = reinterpret_cast< wxEffects * >(argp1);
32734 {
32735 PyThreadState* __tstate = wxPyBeginAllowThreads();
32736 result = ((wxEffects const *)arg1)->GetLightShadow();
32737 wxPyEndAllowThreads(__tstate);
32738 if (PyErr_Occurred()) SWIG_fail;
32739 }
32740 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32741 return resultobj;
32742fail:
32743 return NULL;
32744}
32745
32746
32747SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32748 PyObject *resultobj = 0;
32749 wxEffects *arg1 = (wxEffects *) 0 ;
32750 wxColour result;
32751 void *argp1 = 0 ;
32752 int res1 = 0 ;
32753 PyObject *swig_obj[1] ;
32754
32755 if (!args) SWIG_fail;
32756 swig_obj[0] = args;
32757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32758 if (!SWIG_IsOK(res1)) {
32759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32760 }
32761 arg1 = reinterpret_cast< wxEffects * >(argp1);
32762 {
32763 PyThreadState* __tstate = wxPyBeginAllowThreads();
32764 result = ((wxEffects const *)arg1)->GetFaceColour();
32765 wxPyEndAllowThreads(__tstate);
32766 if (PyErr_Occurred()) SWIG_fail;
32767 }
32768 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32769 return resultobj;
32770fail:
32771 return NULL;
32772}
32773
32774
32775SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32776 PyObject *resultobj = 0;
32777 wxEffects *arg1 = (wxEffects *) 0 ;
32778 wxColour result;
32779 void *argp1 = 0 ;
32780 int res1 = 0 ;
32781 PyObject *swig_obj[1] ;
32782
32783 if (!args) SWIG_fail;
32784 swig_obj[0] = args;
32785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32786 if (!SWIG_IsOK(res1)) {
32787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32788 }
32789 arg1 = reinterpret_cast< wxEffects * >(argp1);
32790 {
32791 PyThreadState* __tstate = wxPyBeginAllowThreads();
32792 result = ((wxEffects const *)arg1)->GetMediumShadow();
32793 wxPyEndAllowThreads(__tstate);
32794 if (PyErr_Occurred()) SWIG_fail;
32795 }
32796 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32797 return resultobj;
32798fail:
32799 return NULL;
32800}
32801
32802
32803SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32804 PyObject *resultobj = 0;
32805 wxEffects *arg1 = (wxEffects *) 0 ;
32806 wxColour result;
32807 void *argp1 = 0 ;
32808 int res1 = 0 ;
32809 PyObject *swig_obj[1] ;
32810
32811 if (!args) SWIG_fail;
32812 swig_obj[0] = args;
32813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32814 if (!SWIG_IsOK(res1)) {
32815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32816 }
32817 arg1 = reinterpret_cast< wxEffects * >(argp1);
32818 {
32819 PyThreadState* __tstate = wxPyBeginAllowThreads();
32820 result = ((wxEffects const *)arg1)->GetDarkShadow();
32821 wxPyEndAllowThreads(__tstate);
32822 if (PyErr_Occurred()) SWIG_fail;
32823 }
32824 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32825 return resultobj;
32826fail:
32827 return NULL;
32828}
32829
32830
32831SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32832 PyObject *resultobj = 0;
32833 wxEffects *arg1 = (wxEffects *) 0 ;
32834 wxColour *arg2 = 0 ;
32835 void *argp1 = 0 ;
32836 int res1 = 0 ;
32837 wxColour temp2 ;
32838 PyObject * obj0 = 0 ;
32839 PyObject * obj1 = 0 ;
32840 char * kwnames[] = {
32841 (char *) "self",(char *) "c", NULL
32842 };
32843
32844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32846 if (!SWIG_IsOK(res1)) {
32847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32848 }
32849 arg1 = reinterpret_cast< wxEffects * >(argp1);
32850 {
32851 arg2 = &temp2;
32852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32853 }
32854 {
32855 PyThreadState* __tstate = wxPyBeginAllowThreads();
32856 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32857 wxPyEndAllowThreads(__tstate);
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
32860 resultobj = SWIG_Py_Void();
32861 return resultobj;
32862fail:
32863 return NULL;
32864}
32865
32866
32867SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32868 PyObject *resultobj = 0;
32869 wxEffects *arg1 = (wxEffects *) 0 ;
32870 wxColour *arg2 = 0 ;
32871 void *argp1 = 0 ;
32872 int res1 = 0 ;
32873 wxColour temp2 ;
32874 PyObject * obj0 = 0 ;
32875 PyObject * obj1 = 0 ;
32876 char * kwnames[] = {
32877 (char *) "self",(char *) "c", NULL
32878 };
32879
32880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32882 if (!SWIG_IsOK(res1)) {
32883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32884 }
32885 arg1 = reinterpret_cast< wxEffects * >(argp1);
32886 {
32887 arg2 = &temp2;
32888 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32889 }
32890 {
32891 PyThreadState* __tstate = wxPyBeginAllowThreads();
32892 (arg1)->SetLightShadow((wxColour const &)*arg2);
32893 wxPyEndAllowThreads(__tstate);
32894 if (PyErr_Occurred()) SWIG_fail;
32895 }
32896 resultobj = SWIG_Py_Void();
32897 return resultobj;
32898fail:
32899 return NULL;
32900}
32901
32902
32903SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32904 PyObject *resultobj = 0;
32905 wxEffects *arg1 = (wxEffects *) 0 ;
32906 wxColour *arg2 = 0 ;
32907 void *argp1 = 0 ;
32908 int res1 = 0 ;
32909 wxColour temp2 ;
32910 PyObject * obj0 = 0 ;
32911 PyObject * obj1 = 0 ;
32912 char * kwnames[] = {
32913 (char *) "self",(char *) "c", NULL
32914 };
32915
32916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32918 if (!SWIG_IsOK(res1)) {
32919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32920 }
32921 arg1 = reinterpret_cast< wxEffects * >(argp1);
32922 {
32923 arg2 = &temp2;
32924 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32925 }
32926 {
32927 PyThreadState* __tstate = wxPyBeginAllowThreads();
32928 (arg1)->SetFaceColour((wxColour const &)*arg2);
32929 wxPyEndAllowThreads(__tstate);
32930 if (PyErr_Occurred()) SWIG_fail;
32931 }
32932 resultobj = SWIG_Py_Void();
32933 return resultobj;
32934fail:
32935 return NULL;
32936}
32937
32938
32939SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32940 PyObject *resultobj = 0;
32941 wxEffects *arg1 = (wxEffects *) 0 ;
32942 wxColour *arg2 = 0 ;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 wxColour temp2 ;
32946 PyObject * obj0 = 0 ;
32947 PyObject * obj1 = 0 ;
32948 char * kwnames[] = {
32949 (char *) "self",(char *) "c", NULL
32950 };
32951
32952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32954 if (!SWIG_IsOK(res1)) {
32955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32956 }
32957 arg1 = reinterpret_cast< wxEffects * >(argp1);
32958 {
32959 arg2 = &temp2;
32960 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32961 }
32962 {
32963 PyThreadState* __tstate = wxPyBeginAllowThreads();
32964 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32965 wxPyEndAllowThreads(__tstate);
32966 if (PyErr_Occurred()) SWIG_fail;
32967 }
32968 resultobj = SWIG_Py_Void();
32969 return resultobj;
32970fail:
32971 return NULL;
32972}
32973
32974
32975SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32976 PyObject *resultobj = 0;
32977 wxEffects *arg1 = (wxEffects *) 0 ;
32978 wxColour *arg2 = 0 ;
32979 void *argp1 = 0 ;
32980 int res1 = 0 ;
32981 wxColour temp2 ;
32982 PyObject * obj0 = 0 ;
32983 PyObject * obj1 = 0 ;
32984 char * kwnames[] = {
32985 (char *) "self",(char *) "c", NULL
32986 };
32987
32988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32990 if (!SWIG_IsOK(res1)) {
32991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32992 }
32993 arg1 = reinterpret_cast< wxEffects * >(argp1);
32994 {
32995 arg2 = &temp2;
32996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32997 }
32998 {
32999 PyThreadState* __tstate = wxPyBeginAllowThreads();
33000 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33001 wxPyEndAllowThreads(__tstate);
33002 if (PyErr_Occurred()) SWIG_fail;
33003 }
33004 resultobj = SWIG_Py_Void();
33005 return resultobj;
33006fail:
33007 return NULL;
33008}
33009
33010
33011SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33012 PyObject *resultobj = 0;
33013 wxEffects *arg1 = (wxEffects *) 0 ;
33014 wxColour *arg2 = 0 ;
33015 wxColour *arg3 = 0 ;
33016 wxColour *arg4 = 0 ;
33017 wxColour *arg5 = 0 ;
33018 wxColour *arg6 = 0 ;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 wxColour temp2 ;
33022 wxColour temp3 ;
33023 wxColour temp4 ;
33024 wxColour temp5 ;
33025 wxColour temp6 ;
33026 PyObject * obj0 = 0 ;
33027 PyObject * obj1 = 0 ;
33028 PyObject * obj2 = 0 ;
33029 PyObject * obj3 = 0 ;
33030 PyObject * obj4 = 0 ;
33031 PyObject * obj5 = 0 ;
33032 char * kwnames[] = {
33033 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33034 };
33035
33036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33038 if (!SWIG_IsOK(res1)) {
33039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33040 }
33041 arg1 = reinterpret_cast< wxEffects * >(argp1);
33042 {
33043 arg2 = &temp2;
33044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33045 }
33046 {
33047 arg3 = &temp3;
33048 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33049 }
33050 {
33051 arg4 = &temp4;
33052 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33053 }
33054 {
33055 arg5 = &temp5;
33056 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33057 }
33058 {
33059 arg6 = &temp6;
33060 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33061 }
33062 {
33063 PyThreadState* __tstate = wxPyBeginAllowThreads();
33064 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33065 wxPyEndAllowThreads(__tstate);
33066 if (PyErr_Occurred()) SWIG_fail;
33067 }
33068 resultobj = SWIG_Py_Void();
33069 return resultobj;
33070fail:
33071 return NULL;
33072}
33073
33074
33075SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33076 PyObject *resultobj = 0;
33077 wxEffects *arg1 = (wxEffects *) 0 ;
33078 wxDC *arg2 = 0 ;
33079 wxRect *arg3 = 0 ;
33080 int arg4 = (int) 1 ;
33081 void *argp1 = 0 ;
33082 int res1 = 0 ;
33083 void *argp2 = 0 ;
33084 int res2 = 0 ;
33085 wxRect temp3 ;
33086 int val4 ;
33087 int ecode4 = 0 ;
33088 PyObject * obj0 = 0 ;
33089 PyObject * obj1 = 0 ;
33090 PyObject * obj2 = 0 ;
33091 PyObject * obj3 = 0 ;
33092 char * kwnames[] = {
33093 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33094 };
33095
33096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33098 if (!SWIG_IsOK(res1)) {
33099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33100 }
33101 arg1 = reinterpret_cast< wxEffects * >(argp1);
33102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33103 if (!SWIG_IsOK(res2)) {
33104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33105 }
33106 if (!argp2) {
33107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33108 }
33109 arg2 = reinterpret_cast< wxDC * >(argp2);
33110 {
33111 arg3 = &temp3;
33112 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33113 }
33114 if (obj3) {
33115 ecode4 = SWIG_AsVal_int(obj3, &val4);
33116 if (!SWIG_IsOK(ecode4)) {
33117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33118 }
33119 arg4 = static_cast< int >(val4);
33120 }
33121 {
33122 PyThreadState* __tstate = wxPyBeginAllowThreads();
33123 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33124 wxPyEndAllowThreads(__tstate);
33125 if (PyErr_Occurred()) SWIG_fail;
33126 }
33127 resultobj = SWIG_Py_Void();
33128 return resultobj;
33129fail:
33130 return NULL;
33131}
33132
33133
33134SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33135 PyObject *resultobj = 0;
33136 wxEffects *arg1 = (wxEffects *) 0 ;
33137 wxRect *arg2 = 0 ;
33138 wxDC *arg3 = 0 ;
33139 wxBitmap *arg4 = 0 ;
33140 bool result;
33141 void *argp1 = 0 ;
33142 int res1 = 0 ;
33143 wxRect temp2 ;
33144 void *argp3 = 0 ;
33145 int res3 = 0 ;
33146 void *argp4 = 0 ;
33147 int res4 = 0 ;
33148 PyObject * obj0 = 0 ;
33149 PyObject * obj1 = 0 ;
33150 PyObject * obj2 = 0 ;
33151 PyObject * obj3 = 0 ;
33152 char * kwnames[] = {
33153 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33154 };
33155
33156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33158 if (!SWIG_IsOK(res1)) {
33159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33160 }
33161 arg1 = reinterpret_cast< wxEffects * >(argp1);
33162 {
33163 arg2 = &temp2;
33164 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33165 }
33166 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33167 if (!SWIG_IsOK(res3)) {
33168 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33169 }
33170 if (!argp3) {
33171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33172 }
33173 arg3 = reinterpret_cast< wxDC * >(argp3);
33174 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33175 if (!SWIG_IsOK(res4)) {
33176 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33177 }
33178 if (!argp4) {
33179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33180 }
33181 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33182 {
33183 PyThreadState* __tstate = wxPyBeginAllowThreads();
33184 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33185 wxPyEndAllowThreads(__tstate);
33186 if (PyErr_Occurred()) SWIG_fail;
33187 }
33188 {
33189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33190 }
33191 return resultobj;
33192fail:
33193 return NULL;
33194}
33195
33196
33197SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33198 PyObject *obj;
33199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33200 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33201 return SWIG_Py_Void();
33202}
33203
33204SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33205 return SWIG_Python_InitShadowInstance(args);
33206}
33207
33208SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33209 PyObject *resultobj = 0;
33210 int arg1 ;
33211 int arg2 ;
33212 bool arg3 ;
33213 wxSplitterRenderParams *result = 0 ;
33214 int val1 ;
33215 int ecode1 = 0 ;
33216 int val2 ;
33217 int ecode2 = 0 ;
33218 bool val3 ;
33219 int ecode3 = 0 ;
33220 PyObject * obj0 = 0 ;
33221 PyObject * obj1 = 0 ;
33222 PyObject * obj2 = 0 ;
33223 char * kwnames[] = {
33224 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33225 };
33226
33227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33228 ecode1 = SWIG_AsVal_int(obj0, &val1);
33229 if (!SWIG_IsOK(ecode1)) {
33230 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33231 }
33232 arg1 = static_cast< int >(val1);
33233 ecode2 = SWIG_AsVal_int(obj1, &val2);
33234 if (!SWIG_IsOK(ecode2)) {
33235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33236 }
33237 arg2 = static_cast< int >(val2);
33238 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33239 if (!SWIG_IsOK(ecode3)) {
33240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33241 }
33242 arg3 = static_cast< bool >(val3);
33243 {
33244 PyThreadState* __tstate = wxPyBeginAllowThreads();
33245 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33246 wxPyEndAllowThreads(__tstate);
33247 if (PyErr_Occurred()) SWIG_fail;
33248 }
33249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33250 return resultobj;
33251fail:
33252 return NULL;
33253}
33254
33255
33256SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33257 PyObject *resultobj = 0;
33258 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33259 void *argp1 = 0 ;
33260 int res1 = 0 ;
33261 PyObject *swig_obj[1] ;
33262
33263 if (!args) SWIG_fail;
33264 swig_obj[0] = args;
33265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33266 if (!SWIG_IsOK(res1)) {
33267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33268 }
33269 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33270 {
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 delete arg1;
33273
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 resultobj = SWIG_Py_Void();
33278 return resultobj;
33279fail:
33280 return NULL;
33281}
33282
33283
33284SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33285 PyObject *resultobj = 0;
33286 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33287 int result;
33288 void *argp1 = 0 ;
33289 int res1 = 0 ;
33290 PyObject *swig_obj[1] ;
33291
33292 if (!args) SWIG_fail;
33293 swig_obj[0] = args;
33294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33295 if (!SWIG_IsOK(res1)) {
33296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33297 }
33298 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33299 result = (int)(int) ((arg1)->widthSash);
33300 resultobj = SWIG_From_int(static_cast< int >(result));
33301 return resultobj;
33302fail:
33303 return NULL;
33304}
33305
33306
33307SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33308 PyObject *resultobj = 0;
33309 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33310 int result;
33311 void *argp1 = 0 ;
33312 int res1 = 0 ;
33313 PyObject *swig_obj[1] ;
33314
33315 if (!args) SWIG_fail;
33316 swig_obj[0] = args;
33317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33318 if (!SWIG_IsOK(res1)) {
33319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33320 }
33321 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33322 result = (int)(int) ((arg1)->border);
33323 resultobj = SWIG_From_int(static_cast< int >(result));
33324 return resultobj;
33325fail:
33326 return NULL;
33327}
33328
33329
33330SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33331 PyObject *resultobj = 0;
33332 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33333 bool result;
33334 void *argp1 = 0 ;
33335 int res1 = 0 ;
33336 PyObject *swig_obj[1] ;
33337
33338 if (!args) SWIG_fail;
33339 swig_obj[0] = args;
33340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33341 if (!SWIG_IsOK(res1)) {
33342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33343 }
33344 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33345 result = (bool)(bool) ((arg1)->isHotSensitive);
33346 resultobj = SWIG_From_bool(static_cast< bool >(result));
33347 return resultobj;
33348fail:
33349 return NULL;
33350}
33351
33352
33353SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33354 PyObject *obj;
33355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33356 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33357 return SWIG_Py_Void();
33358}
33359
33360SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33361 return SWIG_Python_InitShadowInstance(args);
33362}
33363
33d6fd3b
RD
33364SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33365 PyObject *resultobj = 0;
33366 wxHeaderButtonParams *result = 0 ;
33367
33368 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33369 {
33370 PyThreadState* __tstate = wxPyBeginAllowThreads();
33371 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33372 wxPyEndAllowThreads(__tstate);
33373 if (PyErr_Occurred()) SWIG_fail;
33374 }
33375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33376 return resultobj;
33377fail:
33378 return NULL;
33379}
33380
33381
33382SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33383 PyObject *resultobj = 0;
33384 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33385 void *argp1 = 0 ;
33386 int res1 = 0 ;
33387 PyObject *swig_obj[1] ;
33388
33389 if (!args) SWIG_fail;
33390 swig_obj[0] = args;
33391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33392 if (!SWIG_IsOK(res1)) {
33393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33394 }
33395 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33396 {
33397 PyThreadState* __tstate = wxPyBeginAllowThreads();
33398 delete arg1;
33399
33400 wxPyEndAllowThreads(__tstate);
33401 if (PyErr_Occurred()) SWIG_fail;
33402 }
33403 resultobj = SWIG_Py_Void();
33404 return resultobj;
33405fail:
33406 return NULL;
33407}
33408
33409
33410SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33411 PyObject *resultobj = 0;
33412 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33413 wxColour *arg2 = (wxColour *) 0 ;
33414 void *argp1 = 0 ;
33415 int res1 = 0 ;
33416 wxColour temp2 ;
33417 PyObject *swig_obj[2] ;
33418
33419 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33421 if (!SWIG_IsOK(res1)) {
33422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33423 }
33424 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33425 {
33426 arg2 = &temp2;
33427 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33428 }
33429 if (arg1) (arg1)->m_arrowColour = *arg2;
33430
33431 resultobj = SWIG_Py_Void();
33432 return resultobj;
33433fail:
33434 return NULL;
33435}
33436
33437
33438SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33439 PyObject *resultobj = 0;
33440 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33441 wxColour *result = 0 ;
33442 void *argp1 = 0 ;
33443 int res1 = 0 ;
33444 PyObject *swig_obj[1] ;
33445
33446 if (!args) SWIG_fail;
33447 swig_obj[0] = args;
33448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33449 if (!SWIG_IsOK(res1)) {
33450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33451 }
33452 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33453 result = (wxColour *)& ((arg1)->m_arrowColour);
33454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33455 return resultobj;
33456fail:
33457 return NULL;
33458}
33459
33460
33461SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33462 PyObject *resultobj = 0;
33463 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33464 wxColour *arg2 = (wxColour *) 0 ;
33465 void *argp1 = 0 ;
33466 int res1 = 0 ;
33467 wxColour temp2 ;
33468 PyObject *swig_obj[2] ;
33469
33470 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33472 if (!SWIG_IsOK(res1)) {
33473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33474 }
33475 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33476 {
33477 arg2 = &temp2;
33478 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33479 }
33480 if (arg1) (arg1)->m_selectionColour = *arg2;
33481
33482 resultobj = SWIG_Py_Void();
33483 return resultobj;
33484fail:
33485 return NULL;
33486}
33487
33488
33489SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33490 PyObject *resultobj = 0;
33491 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33492 wxColour *result = 0 ;
33493 void *argp1 = 0 ;
33494 int res1 = 0 ;
33495 PyObject *swig_obj[1] ;
33496
33497 if (!args) SWIG_fail;
33498 swig_obj[0] = args;
33499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33500 if (!SWIG_IsOK(res1)) {
33501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33502 }
33503 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33504 result = (wxColour *)& ((arg1)->m_selectionColour);
33505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33506 return resultobj;
33507fail:
33508 return NULL;
33509}
33510
33511
33512SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33513 PyObject *resultobj = 0;
33514 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33515 wxString *arg2 = (wxString *) 0 ;
33516 void *argp1 = 0 ;
33517 int res1 = 0 ;
33518 bool temp2 = false ;
33519 PyObject *swig_obj[2] ;
33520
33521 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33523 if (!SWIG_IsOK(res1)) {
33524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33525 }
33526 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33527 {
33528 arg2 = wxString_in_helper(swig_obj[1]);
33529 if (arg2 == NULL) SWIG_fail;
33530 temp2 = true;
33531 }
33532 if (arg1) (arg1)->m_labelText = *arg2;
33533
33534 resultobj = SWIG_Py_Void();
33535 {
33536 if (temp2)
33537 delete arg2;
33538 }
33539 return resultobj;
33540fail:
33541 {
33542 if (temp2)
33543 delete arg2;
33544 }
33545 return NULL;
33546}
33547
33548
33549SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33550 PyObject *resultobj = 0;
33551 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33552 wxString *result = 0 ;
33553 void *argp1 = 0 ;
33554 int res1 = 0 ;
33555 PyObject *swig_obj[1] ;
33556
33557 if (!args) SWIG_fail;
33558 swig_obj[0] = args;
33559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33560 if (!SWIG_IsOK(res1)) {
33561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33562 }
33563 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33564 result = (wxString *)& ((arg1)->m_labelText);
33565 {
33566#if wxUSE_UNICODE
33567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33568#else
33569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33570#endif
33571 }
33572 return resultobj;
33573fail:
33574 return NULL;
33575}
33576
33577
33578SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33579 PyObject *resultobj = 0;
33580 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33581 wxFont *arg2 = (wxFont *) 0 ;
33582 void *argp1 = 0 ;
33583 int res1 = 0 ;
33584 void *argp2 = 0 ;
33585 int res2 = 0 ;
33586 PyObject *swig_obj[2] ;
33587
33588 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33590 if (!SWIG_IsOK(res1)) {
33591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33592 }
33593 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33594 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33595 if (!SWIG_IsOK(res2)) {
33596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33597 }
33598 arg2 = reinterpret_cast< wxFont * >(argp2);
33599 if (arg1) (arg1)->m_labelFont = *arg2;
33600
33601 resultobj = SWIG_Py_Void();
33602 return resultobj;
33603fail:
33604 return NULL;
33605}
33606
33607
33608SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33609 PyObject *resultobj = 0;
33610 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33611 wxFont *result = 0 ;
33612 void *argp1 = 0 ;
33613 int res1 = 0 ;
33614 PyObject *swig_obj[1] ;
33615
33616 if (!args) SWIG_fail;
33617 swig_obj[0] = args;
33618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33619 if (!SWIG_IsOK(res1)) {
33620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33621 }
33622 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33623 result = (wxFont *)& ((arg1)->m_labelFont);
33624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33625 return resultobj;
33626fail:
33627 return NULL;
33628}
33629
33630
33631SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33632 PyObject *resultobj = 0;
33633 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33634 wxColour *arg2 = (wxColour *) 0 ;
33635 void *argp1 = 0 ;
33636 int res1 = 0 ;
33637 wxColour temp2 ;
33638 PyObject *swig_obj[2] ;
33639
33640 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33642 if (!SWIG_IsOK(res1)) {
33643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33644 }
33645 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33646 {
33647 arg2 = &temp2;
33648 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33649 }
33650 if (arg1) (arg1)->m_labelColour = *arg2;
33651
33652 resultobj = SWIG_Py_Void();
33653 return resultobj;
33654fail:
33655 return NULL;
33656}
33657
33658
33659SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33660 PyObject *resultobj = 0;
33661 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33662 wxColour *result = 0 ;
33663 void *argp1 = 0 ;
33664 int res1 = 0 ;
33665 PyObject *swig_obj[1] ;
33666
33667 if (!args) SWIG_fail;
33668 swig_obj[0] = args;
33669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33670 if (!SWIG_IsOK(res1)) {
33671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33672 }
33673 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33674 result = (wxColour *)& ((arg1)->m_labelColour);
33675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33676 return resultobj;
33677fail:
33678 return NULL;
33679}
33680
33681
33682SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33683 PyObject *resultobj = 0;
33684 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33685 wxBitmap *arg2 = (wxBitmap *) 0 ;
33686 void *argp1 = 0 ;
33687 int res1 = 0 ;
33688 void *argp2 = 0 ;
33689 int res2 = 0 ;
33690 PyObject *swig_obj[2] ;
33691
33692 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33694 if (!SWIG_IsOK(res1)) {
33695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33696 }
33697 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33698 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33699 if (!SWIG_IsOK(res2)) {
33700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33701 }
33702 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33703 if (arg1) (arg1)->m_labelBitmap = *arg2;
33704
33705 resultobj = SWIG_Py_Void();
33706 return resultobj;
33707fail:
33708 return NULL;
33709}
33710
33711
33712SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33713 PyObject *resultobj = 0;
33714 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33715 wxBitmap *result = 0 ;
33716 void *argp1 = 0 ;
33717 int res1 = 0 ;
33718 PyObject *swig_obj[1] ;
33719
33720 if (!args) SWIG_fail;
33721 swig_obj[0] = args;
33722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33723 if (!SWIG_IsOK(res1)) {
33724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33725 }
33726 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33727 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33729 return resultobj;
33730fail:
33731 return NULL;
33732}
33733
33734
33735SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33736 PyObject *resultobj = 0;
33737 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33738 int arg2 ;
33739 void *argp1 = 0 ;
33740 int res1 = 0 ;
33741 int val2 ;
33742 int ecode2 = 0 ;
33743 PyObject *swig_obj[2] ;
33744
33745 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33747 if (!SWIG_IsOK(res1)) {
33748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33749 }
33750 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33751 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33752 if (!SWIG_IsOK(ecode2)) {
33753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33754 }
33755 arg2 = static_cast< int >(val2);
33756 if (arg1) (arg1)->m_labelAlignment = arg2;
33757
33758 resultobj = SWIG_Py_Void();
33759 return resultobj;
33760fail:
33761 return NULL;
33762}
33763
33764
33765SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33766 PyObject *resultobj = 0;
33767 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33768 int result;
33769 void *argp1 = 0 ;
33770 int res1 = 0 ;
33771 PyObject *swig_obj[1] ;
33772
33773 if (!args) SWIG_fail;
33774 swig_obj[0] = args;
33775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33776 if (!SWIG_IsOK(res1)) {
33777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33778 }
33779 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33780 result = (int) ((arg1)->m_labelAlignment);
33781 resultobj = SWIG_From_int(static_cast< int >(result));
33782 return resultobj;
33783fail:
33784 return NULL;
33785}
33786
33787
33788SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33789 PyObject *obj;
33790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33791 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33792 return SWIG_Py_Void();
33793}
33794
33795SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33796 return SWIG_Python_InitShadowInstance(args);
33797}
33798
0085ce49
RD
33799SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33800 PyObject *resultobj = 0;
33801 int arg1 ;
33802 int arg2 ;
33803 wxRendererVersion *result = 0 ;
33804 int val1 ;
33805 int ecode1 = 0 ;
33806 int val2 ;
33807 int ecode2 = 0 ;
33808 PyObject * obj0 = 0 ;
33809 PyObject * obj1 = 0 ;
33810 char * kwnames[] = {
33811 (char *) "version_",(char *) "age_", NULL
33812 };
33813
33814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33815 ecode1 = SWIG_AsVal_int(obj0, &val1);
33816 if (!SWIG_IsOK(ecode1)) {
33817 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33818 }
33819 arg1 = static_cast< int >(val1);
33820 ecode2 = SWIG_AsVal_int(obj1, &val2);
33821 if (!SWIG_IsOK(ecode2)) {
33822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33823 }
33824 arg2 = static_cast< int >(val2);
33825 {
33826 PyThreadState* __tstate = wxPyBeginAllowThreads();
33827 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33828 wxPyEndAllowThreads(__tstate);
33829 if (PyErr_Occurred()) SWIG_fail;
33830 }
33831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33832 return resultobj;
33833fail:
33834 return NULL;
33835}
33836
33837
33838SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33839 PyObject *resultobj = 0;
33840 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33841 void *argp1 = 0 ;
33842 int res1 = 0 ;
33843 PyObject *swig_obj[1] ;
33844
33845 if (!args) SWIG_fail;
33846 swig_obj[0] = args;
33847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33848 if (!SWIG_IsOK(res1)) {
33849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33850 }
33851 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33852 {
33853 PyThreadState* __tstate = wxPyBeginAllowThreads();
33854 delete arg1;
33855
33856 wxPyEndAllowThreads(__tstate);
33857 if (PyErr_Occurred()) SWIG_fail;
33858 }
33859 resultobj = SWIG_Py_Void();
33860 return resultobj;
33861fail:
33862 return NULL;
33863}
33864
33865
33866SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33867 PyObject *resultobj = 0;
33868 wxRendererVersion *arg1 = 0 ;
33869 bool result;
33870 void *argp1 = 0 ;
33871 int res1 = 0 ;
33872 PyObject * obj0 = 0 ;
33873 char * kwnames[] = {
33874 (char *) "ver", NULL
33875 };
33876
33877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33879 if (!SWIG_IsOK(res1)) {
33880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33881 }
33882 if (!argp1) {
33883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33884 }
33885 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33886 {
33887 PyThreadState* __tstate = wxPyBeginAllowThreads();
33888 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33889 wxPyEndAllowThreads(__tstate);
33890 if (PyErr_Occurred()) SWIG_fail;
33891 }
33892 {
33893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33894 }
33895 return resultobj;
33896fail:
33897 return NULL;
33898}
33899
33900
33901SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33902 PyObject *resultobj = 0;
33903 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33904 int result;
33905 void *argp1 = 0 ;
33906 int res1 = 0 ;
33907 PyObject *swig_obj[1] ;
33908
33909 if (!args) SWIG_fail;
33910 swig_obj[0] = args;
33911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33912 if (!SWIG_IsOK(res1)) {
33913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33914 }
33915 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33916 result = (int)(int) ((arg1)->version);
33917 resultobj = SWIG_From_int(static_cast< int >(result));
33918 return resultobj;
33919fail:
33920 return NULL;
33921}
33922
33923
33924SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33925 PyObject *resultobj = 0;
33926 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33927 int result;
33928 void *argp1 = 0 ;
33929 int res1 = 0 ;
33930 PyObject *swig_obj[1] ;
33931
33932 if (!args) SWIG_fail;
33933 swig_obj[0] = args;
33934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33935 if (!SWIG_IsOK(res1)) {
33936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33937 }
33938 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33939 result = (int)(int) ((arg1)->age);
33940 resultobj = SWIG_From_int(static_cast< int >(result));
33941 return resultobj;
33942fail:
33943 return NULL;
33944}
33945
33946
33947SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33948 PyObject *obj;
33949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33950 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33951 return SWIG_Py_Void();
33952}
33953
33954SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33955 return SWIG_Python_InitShadowInstance(args);
33956}
33957
33958SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33959 PyObject *resultobj = 0;
33960 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33961 wxWindow *arg2 = (wxWindow *) 0 ;
33962 wxDC *arg3 = 0 ;
33963 wxRect *arg4 = 0 ;
33964 int arg5 = (int) 0 ;
33d6fd3b
RD
33965 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33966 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
33967 void *argp1 = 0 ;
33968 int res1 = 0 ;
33969 void *argp2 = 0 ;
33970 int res2 = 0 ;
33971 void *argp3 = 0 ;
33972 int res3 = 0 ;
33973 wxRect temp4 ;
33974 int val5 ;
33975 int ecode5 = 0 ;
33d6fd3b
RD
33976 int val6 ;
33977 int ecode6 = 0 ;
33978 void *argp7 = 0 ;
33979 int res7 = 0 ;
0085ce49
RD
33980 PyObject * obj0 = 0 ;
33981 PyObject * obj1 = 0 ;
33982 PyObject * obj2 = 0 ;
33983 PyObject * obj3 = 0 ;
33984 PyObject * obj4 = 0 ;
33d6fd3b
RD
33985 PyObject * obj5 = 0 ;
33986 PyObject * obj6 = 0 ;
0085ce49 33987 char * kwnames[] = {
33d6fd3b 33988 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
33989 };
33990
33d6fd3b 33991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
33992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33993 if (!SWIG_IsOK(res1)) {
33994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33995 }
33996 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33998 if (!SWIG_IsOK(res2)) {
33999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34000 }
34001 arg2 = reinterpret_cast< wxWindow * >(argp2);
34002 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34003 if (!SWIG_IsOK(res3)) {
34004 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34005 }
34006 if (!argp3) {
34007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34008 }
34009 arg3 = reinterpret_cast< wxDC * >(argp3);
34010 {
34011 arg4 = &temp4;
34012 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34013 }
34014 if (obj4) {
34015 ecode5 = SWIG_AsVal_int(obj4, &val5);
34016 if (!SWIG_IsOK(ecode5)) {
34017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34018 }
34019 arg5 = static_cast< int >(val5);
34020 }
33d6fd3b
RD
34021 if (obj5) {
34022 ecode6 = SWIG_AsVal_int(obj5, &val6);
34023 if (!SWIG_IsOK(ecode6)) {
34024 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34025 }
34026 arg6 = static_cast< wxHeaderSortIconType >(val6);
34027 }
34028 if (obj6) {
34029 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34030 if (!SWIG_IsOK(res7)) {
34031 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34032 }
34033 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34034 }
34035 {
34036 PyThreadState* __tstate = wxPyBeginAllowThreads();
34037 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34038 wxPyEndAllowThreads(__tstate);
34039 if (PyErr_Occurred()) SWIG_fail;
34040 }
34041 resultobj = SWIG_Py_Void();
34042 return resultobj;
34043fail:
34044 return NULL;
34045}
34046
34047
34048SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34049 PyObject *resultobj = 0;
34050 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34051 wxWindow *arg2 = (wxWindow *) 0 ;
34052 wxDC *arg3 = 0 ;
34053 wxRect *arg4 = 0 ;
34054 int arg5 = (int) 0 ;
34055 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34056 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34057 void *argp1 = 0 ;
34058 int res1 = 0 ;
34059 void *argp2 = 0 ;
34060 int res2 = 0 ;
34061 void *argp3 = 0 ;
34062 int res3 = 0 ;
34063 wxRect temp4 ;
34064 int val5 ;
34065 int ecode5 = 0 ;
34066 int val6 ;
34067 int ecode6 = 0 ;
34068 void *argp7 = 0 ;
34069 int res7 = 0 ;
34070 PyObject * obj0 = 0 ;
34071 PyObject * obj1 = 0 ;
34072 PyObject * obj2 = 0 ;
34073 PyObject * obj3 = 0 ;
34074 PyObject * obj4 = 0 ;
34075 PyObject * obj5 = 0 ;
34076 PyObject * obj6 = 0 ;
34077 char * kwnames[] = {
34078 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34079 };
34080
34081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34083 if (!SWIG_IsOK(res1)) {
34084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34085 }
34086 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34088 if (!SWIG_IsOK(res2)) {
34089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34090 }
34091 arg2 = reinterpret_cast< wxWindow * >(argp2);
34092 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34093 if (!SWIG_IsOK(res3)) {
34094 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34095 }
34096 if (!argp3) {
34097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34098 }
34099 arg3 = reinterpret_cast< wxDC * >(argp3);
34100 {
34101 arg4 = &temp4;
34102 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34103 }
34104 if (obj4) {
34105 ecode5 = SWIG_AsVal_int(obj4, &val5);
34106 if (!SWIG_IsOK(ecode5)) {
34107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34108 }
34109 arg5 = static_cast< int >(val5);
34110 }
34111 if (obj5) {
34112 ecode6 = SWIG_AsVal_int(obj5, &val6);
34113 if (!SWIG_IsOK(ecode6)) {
34114 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34115 }
34116 arg6 = static_cast< wxHeaderSortIconType >(val6);
34117 }
34118 if (obj6) {
34119 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34120 if (!SWIG_IsOK(res7)) {
34121 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34122 }
34123 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34124 }
0085ce49
RD
34125 {
34126 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34127 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
34128 wxPyEndAllowThreads(__tstate);
34129 if (PyErr_Occurred()) SWIG_fail;
34130 }
34131 resultobj = SWIG_Py_Void();
34132 return resultobj;
34133fail:
34134 return NULL;
34135}
34136
34137
33d6fd3b
RD
34138SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34139 PyObject *resultobj = 0;
34140 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34141 wxWindow *arg2 = (wxWindow *) 0 ;
34142 int result;
34143 void *argp1 = 0 ;
34144 int res1 = 0 ;
34145 void *argp2 = 0 ;
34146 int res2 = 0 ;
34147 PyObject * obj0 = 0 ;
34148 PyObject * obj1 = 0 ;
34149 char * kwnames[] = {
34150 (char *) "self",(char *) "win", NULL
34151 };
34152
34153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34155 if (!SWIG_IsOK(res1)) {
34156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34157 }
34158 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34159 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34160 if (!SWIG_IsOK(res2)) {
34161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34162 }
34163 arg2 = reinterpret_cast< wxWindow * >(argp2);
34164 {
34165 PyThreadState* __tstate = wxPyBeginAllowThreads();
34166 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34167 wxPyEndAllowThreads(__tstate);
34168 if (PyErr_Occurred()) SWIG_fail;
34169 }
34170 resultobj = SWIG_From_int(static_cast< int >(result));
34171 return resultobj;
34172fail:
34173 return NULL;
34174}
34175
34176
0085ce49
RD
34177SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34178 PyObject *resultobj = 0;
34179 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34180 wxWindow *arg2 = (wxWindow *) 0 ;
34181 wxDC *arg3 = 0 ;
34182 wxRect *arg4 = 0 ;
34183 int arg5 = (int) 0 ;
34184 void *argp1 = 0 ;
34185 int res1 = 0 ;
34186 void *argp2 = 0 ;
34187 int res2 = 0 ;
34188 void *argp3 = 0 ;
34189 int res3 = 0 ;
34190 wxRect temp4 ;
34191 int val5 ;
34192 int ecode5 = 0 ;
34193 PyObject * obj0 = 0 ;
34194 PyObject * obj1 = 0 ;
34195 PyObject * obj2 = 0 ;
34196 PyObject * obj3 = 0 ;
34197 PyObject * obj4 = 0 ;
34198 char * kwnames[] = {
34199 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34200 };
34201
34202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34204 if (!SWIG_IsOK(res1)) {
34205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34206 }
34207 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34209 if (!SWIG_IsOK(res2)) {
34210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34211 }
34212 arg2 = reinterpret_cast< wxWindow * >(argp2);
34213 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34214 if (!SWIG_IsOK(res3)) {
34215 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34216 }
34217 if (!argp3) {
34218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34219 }
34220 arg3 = reinterpret_cast< wxDC * >(argp3);
34221 {
34222 arg4 = &temp4;
34223 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34224 }
34225 if (obj4) {
34226 ecode5 = SWIG_AsVal_int(obj4, &val5);
34227 if (!SWIG_IsOK(ecode5)) {
34228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34229 }
34230 arg5 = static_cast< int >(val5);
34231 }
34232 {
34233 PyThreadState* __tstate = wxPyBeginAllowThreads();
34234 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34235 wxPyEndAllowThreads(__tstate);
34236 if (PyErr_Occurred()) SWIG_fail;
34237 }
34238 resultobj = SWIG_Py_Void();
34239 return resultobj;
34240fail:
34241 return NULL;
34242}
34243
34244
34245SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34246 PyObject *resultobj = 0;
34247 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34248 wxWindow *arg2 = (wxWindow *) 0 ;
34249 wxDC *arg3 = 0 ;
34250 wxRect *arg4 = 0 ;
34251 int arg5 = (int) 0 ;
34252 void *argp1 = 0 ;
34253 int res1 = 0 ;
34254 void *argp2 = 0 ;
34255 int res2 = 0 ;
34256 void *argp3 = 0 ;
34257 int res3 = 0 ;
34258 wxRect temp4 ;
34259 int val5 ;
34260 int ecode5 = 0 ;
34261 PyObject * obj0 = 0 ;
34262 PyObject * obj1 = 0 ;
34263 PyObject * obj2 = 0 ;
34264 PyObject * obj3 = 0 ;
34265 PyObject * obj4 = 0 ;
34266 char * kwnames[] = {
34267 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34268 };
34269
34270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34272 if (!SWIG_IsOK(res1)) {
34273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34274 }
34275 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34276 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34277 if (!SWIG_IsOK(res2)) {
34278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34279 }
34280 arg2 = reinterpret_cast< wxWindow * >(argp2);
34281 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34282 if (!SWIG_IsOK(res3)) {
34283 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34284 }
34285 if (!argp3) {
34286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34287 }
34288 arg3 = reinterpret_cast< wxDC * >(argp3);
34289 {
34290 arg4 = &temp4;
34291 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34292 }
34293 if (obj4) {
34294 ecode5 = SWIG_AsVal_int(obj4, &val5);
34295 if (!SWIG_IsOK(ecode5)) {
34296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34297 }
34298 arg5 = static_cast< int >(val5);
34299 }
34300 {
34301 PyThreadState* __tstate = wxPyBeginAllowThreads();
34302 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34303 wxPyEndAllowThreads(__tstate);
34304 if (PyErr_Occurred()) SWIG_fail;
34305 }
34306 resultobj = SWIG_Py_Void();
34307 return resultobj;
34308fail:
34309 return NULL;
34310}
34311
34312
34313SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34314 PyObject *resultobj = 0;
34315 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34316 wxWindow *arg2 = (wxWindow *) 0 ;
34317 wxDC *arg3 = 0 ;
34318 wxSize *arg4 = 0 ;
34319 int arg5 ;
34320 wxOrientation arg6 ;
34321 int arg7 = (int) 0 ;
34322 void *argp1 = 0 ;
34323 int res1 = 0 ;
34324 void *argp2 = 0 ;
34325 int res2 = 0 ;
34326 void *argp3 = 0 ;
34327 int res3 = 0 ;
34328 wxSize temp4 ;
34329 int val5 ;
34330 int ecode5 = 0 ;
34331 int val6 ;
34332 int ecode6 = 0 ;
34333 int val7 ;
34334 int ecode7 = 0 ;
34335 PyObject * obj0 = 0 ;
34336 PyObject * obj1 = 0 ;
34337 PyObject * obj2 = 0 ;
34338 PyObject * obj3 = 0 ;
34339 PyObject * obj4 = 0 ;
34340 PyObject * obj5 = 0 ;
34341 PyObject * obj6 = 0 ;
34342 char * kwnames[] = {
34343 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34344 };
34345
34346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34348 if (!SWIG_IsOK(res1)) {
34349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34350 }
34351 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34353 if (!SWIG_IsOK(res2)) {
34354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34355 }
34356 arg2 = reinterpret_cast< wxWindow * >(argp2);
34357 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34358 if (!SWIG_IsOK(res3)) {
34359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34360 }
34361 if (!argp3) {
34362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34363 }
34364 arg3 = reinterpret_cast< wxDC * >(argp3);
34365 {
34366 arg4 = &temp4;
34367 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34368 }
34369 ecode5 = SWIG_AsVal_int(obj4, &val5);
34370 if (!SWIG_IsOK(ecode5)) {
34371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34372 }
34373 arg5 = static_cast< int >(val5);
34374 ecode6 = SWIG_AsVal_int(obj5, &val6);
34375 if (!SWIG_IsOK(ecode6)) {
34376 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34377 }
34378 arg6 = static_cast< wxOrientation >(val6);
34379 if (obj6) {
34380 ecode7 = SWIG_AsVal_int(obj6, &val7);
34381 if (!SWIG_IsOK(ecode7)) {
34382 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34383 }
34384 arg7 = static_cast< int >(val7);
34385 }
34386 {
34387 PyThreadState* __tstate = wxPyBeginAllowThreads();
34388 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34389 wxPyEndAllowThreads(__tstate);
34390 if (PyErr_Occurred()) SWIG_fail;
34391 }
34392 resultobj = SWIG_Py_Void();
34393 return resultobj;
34394fail:
34395 return NULL;
34396}
34397
34398
34399SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34400 PyObject *resultobj = 0;
34401 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34402 wxWindow *arg2 = (wxWindow *) 0 ;
34403 wxDC *arg3 = 0 ;
34404 wxRect *arg4 = 0 ;
34405 int arg5 = (int) 0 ;
34406 void *argp1 = 0 ;
34407 int res1 = 0 ;
34408 void *argp2 = 0 ;
34409 int res2 = 0 ;
34410 void *argp3 = 0 ;
34411 int res3 = 0 ;
34412 wxRect temp4 ;
34413 int val5 ;
34414 int ecode5 = 0 ;
34415 PyObject * obj0 = 0 ;
34416 PyObject * obj1 = 0 ;
34417 PyObject * obj2 = 0 ;
34418 PyObject * obj3 = 0 ;
34419 PyObject * obj4 = 0 ;
34420 char * kwnames[] = {
34421 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34422 };
34423
34424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34426 if (!SWIG_IsOK(res1)) {
34427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34428 }
34429 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34431 if (!SWIG_IsOK(res2)) {
34432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34433 }
34434 arg2 = reinterpret_cast< wxWindow * >(argp2);
34435 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34436 if (!SWIG_IsOK(res3)) {
34437 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34438 }
34439 if (!argp3) {
34440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34441 }
34442 arg3 = reinterpret_cast< wxDC * >(argp3);
34443 {
34444 arg4 = &temp4;
34445 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34446 }
34447 if (obj4) {
34448 ecode5 = SWIG_AsVal_int(obj4, &val5);
34449 if (!SWIG_IsOK(ecode5)) {
34450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34451 }
34452 arg5 = static_cast< int >(val5);
34453 }
34454 {
34455 PyThreadState* __tstate = wxPyBeginAllowThreads();
34456 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34457 wxPyEndAllowThreads(__tstate);
34458 if (PyErr_Occurred()) SWIG_fail;
34459 }
34460 resultobj = SWIG_Py_Void();
34461 return resultobj;
34462fail:
34463 return NULL;
34464}
34465
34466
34467SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34468 PyObject *resultobj = 0;
34469 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34470 wxWindow *arg2 = (wxWindow *) 0 ;
34471 wxDC *arg3 = 0 ;
34472 wxRect *arg4 = 0 ;
34473 int arg5 = (int) 0 ;
34474 void *argp1 = 0 ;
34475 int res1 = 0 ;
34476 void *argp2 = 0 ;
34477 int res2 = 0 ;
34478 void *argp3 = 0 ;
34479 int res3 = 0 ;
34480 wxRect temp4 ;
34481 int val5 ;
34482 int ecode5 = 0 ;
34483 PyObject * obj0 = 0 ;
34484 PyObject * obj1 = 0 ;
34485 PyObject * obj2 = 0 ;
34486 PyObject * obj3 = 0 ;
34487 PyObject * obj4 = 0 ;
34488 char * kwnames[] = {
34489 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34490 };
34491
34492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34494 if (!SWIG_IsOK(res1)) {
34495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34496 }
34497 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34499 if (!SWIG_IsOK(res2)) {
34500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34501 }
34502 arg2 = reinterpret_cast< wxWindow * >(argp2);
34503 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34504 if (!SWIG_IsOK(res3)) {
34505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34506 }
34507 if (!argp3) {
34508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34509 }
34510 arg3 = reinterpret_cast< wxDC * >(argp3);
34511 {
34512 arg4 = &temp4;
34513 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34514 }
34515 if (obj4) {
34516 ecode5 = SWIG_AsVal_int(obj4, &val5);
34517 if (!SWIG_IsOK(ecode5)) {
34518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34519 }
34520 arg5 = static_cast< int >(val5);
34521 }
34522 {
34523 PyThreadState* __tstate = wxPyBeginAllowThreads();
34524 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34525 wxPyEndAllowThreads(__tstate);
34526 if (PyErr_Occurred()) SWIG_fail;
34527 }
34528 resultobj = SWIG_Py_Void();
34529 return resultobj;
34530fail:
34531 return NULL;
34532}
34533
34534
01f6b6d3
RD
34535SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34536 PyObject *resultobj = 0;
34537 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34538 wxWindow *arg2 = (wxWindow *) 0 ;
34539 wxDC *arg3 = 0 ;
34540 wxRect *arg4 = 0 ;
34541 int arg5 = (int) 0 ;
34542 void *argp1 = 0 ;
34543 int res1 = 0 ;
34544 void *argp2 = 0 ;
34545 int res2 = 0 ;
34546 void *argp3 = 0 ;
34547 int res3 = 0 ;
34548 wxRect temp4 ;
34549 int val5 ;
34550 int ecode5 = 0 ;
34551 PyObject * obj0 = 0 ;
34552 PyObject * obj1 = 0 ;
34553 PyObject * obj2 = 0 ;
34554 PyObject * obj3 = 0 ;
34555 PyObject * obj4 = 0 ;
34556 char * kwnames[] = {
34557 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34558 };
34559
34560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34562 if (!SWIG_IsOK(res1)) {
34563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34564 }
34565 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34567 if (!SWIG_IsOK(res2)) {
34568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34569 }
34570 arg2 = reinterpret_cast< wxWindow * >(argp2);
34571 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34572 if (!SWIG_IsOK(res3)) {
34573 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34574 }
34575 if (!argp3) {
34576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34577 }
34578 arg3 = reinterpret_cast< wxDC * >(argp3);
34579 {
34580 arg4 = &temp4;
34581 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34582 }
34583 if (obj4) {
34584 ecode5 = SWIG_AsVal_int(obj4, &val5);
34585 if (!SWIG_IsOK(ecode5)) {
34586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34587 }
34588 arg5 = static_cast< int >(val5);
34589 }
34590 {
34591 PyThreadState* __tstate = wxPyBeginAllowThreads();
34592 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34593 wxPyEndAllowThreads(__tstate);
34594 if (PyErr_Occurred()) SWIG_fail;
34595 }
34596 resultobj = SWIG_Py_Void();
34597 return resultobj;
34598fail:
34599 return NULL;
34600}
34601
34602
34603SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34604 PyObject *resultobj = 0;
34605 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34606 wxWindow *arg2 = (wxWindow *) 0 ;
34607 wxDC *arg3 = 0 ;
34608 wxRect *arg4 = 0 ;
34609 int arg5 = (int) 0 ;
34610 void *argp1 = 0 ;
34611 int res1 = 0 ;
34612 void *argp2 = 0 ;
34613 int res2 = 0 ;
34614 void *argp3 = 0 ;
34615 int res3 = 0 ;
34616 wxRect temp4 ;
34617 int val5 ;
34618 int ecode5 = 0 ;
34619 PyObject * obj0 = 0 ;
34620 PyObject * obj1 = 0 ;
34621 PyObject * obj2 = 0 ;
34622 PyObject * obj3 = 0 ;
34623 PyObject * obj4 = 0 ;
34624 char * kwnames[] = {
34625 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34626 };
34627
34628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34630 if (!SWIG_IsOK(res1)) {
34631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34632 }
34633 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34634 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34635 if (!SWIG_IsOK(res2)) {
34636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34637 }
34638 arg2 = reinterpret_cast< wxWindow * >(argp2);
34639 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34640 if (!SWIG_IsOK(res3)) {
34641 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34642 }
34643 if (!argp3) {
34644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34645 }
34646 arg3 = reinterpret_cast< wxDC * >(argp3);
34647 {
34648 arg4 = &temp4;
34649 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34650 }
34651 if (obj4) {
34652 ecode5 = SWIG_AsVal_int(obj4, &val5);
34653 if (!SWIG_IsOK(ecode5)) {
34654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34655 }
34656 arg5 = static_cast< int >(val5);
34657 }
34658 {
34659 PyThreadState* __tstate = wxPyBeginAllowThreads();
34660 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34661 wxPyEndAllowThreads(__tstate);
34662 if (PyErr_Occurred()) SWIG_fail;
34663 }
34664 resultobj = SWIG_Py_Void();
34665 return resultobj;
34666fail:
34667 return NULL;
34668}
34669
34670
34671SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
34672 PyObject *resultobj = 0;
34673 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34674 wxWindow *arg2 = (wxWindow *) 0 ;
34675 wxDC *arg3 = 0 ;
34676 wxRect *arg4 = 0 ;
34677 int arg5 = (int) 0 ;
34678 void *argp1 = 0 ;
34679 int res1 = 0 ;
34680 void *argp2 = 0 ;
34681 int res2 = 0 ;
34682 void *argp3 = 0 ;
34683 int res3 = 0 ;
34684 wxRect temp4 ;
34685 int val5 ;
34686 int ecode5 = 0 ;
34687 PyObject * obj0 = 0 ;
34688 PyObject * obj1 = 0 ;
34689 PyObject * obj2 = 0 ;
34690 PyObject * obj3 = 0 ;
34691 PyObject * obj4 = 0 ;
34692 char * kwnames[] = {
34693 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34694 };
34695
01f6b6d3 34696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
34697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34698 if (!SWIG_IsOK(res1)) {
01f6b6d3 34699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
34700 }
34701 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34703 if (!SWIG_IsOK(res2)) {
01f6b6d3 34704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
34705 }
34706 arg2 = reinterpret_cast< wxWindow * >(argp2);
34707 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34708 if (!SWIG_IsOK(res3)) {
01f6b6d3 34709 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34710 }
34711 if (!argp3) {
01f6b6d3 34712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34713 }
34714 arg3 = reinterpret_cast< wxDC * >(argp3);
34715 {
34716 arg4 = &temp4;
34717 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34718 }
34719 if (obj4) {
34720 ecode5 = SWIG_AsVal_int(obj4, &val5);
34721 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 34722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
34723 }
34724 arg5 = static_cast< int >(val5);
34725 }
34726 {
34727 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 34728 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
34729 wxPyEndAllowThreads(__tstate);
34730 if (PyErr_Occurred()) SWIG_fail;
34731 }
34732 resultobj = SWIG_Py_Void();
34733 return resultobj;
34734fail:
34735 return NULL;
34736}
34737
34738
0085ce49
RD
34739SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34740 PyObject *resultobj = 0;
34741 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34742 wxWindow *arg2 = (wxWindow *) 0 ;
34743 SwigValueWrapper<wxSplitterRenderParams > result;
34744 void *argp1 = 0 ;
34745 int res1 = 0 ;
34746 void *argp2 = 0 ;
34747 int res2 = 0 ;
34748 PyObject * obj0 = 0 ;
34749 PyObject * obj1 = 0 ;
34750 char * kwnames[] = {
34751 (char *) "self",(char *) "win", NULL
34752 };
34753
34754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34756 if (!SWIG_IsOK(res1)) {
34757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34758 }
34759 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34761 if (!SWIG_IsOK(res2)) {
34762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34763 }
34764 arg2 = reinterpret_cast< wxWindow * >(argp2);
34765 {
34766 PyThreadState* __tstate = wxPyBeginAllowThreads();
34767 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34768 wxPyEndAllowThreads(__tstate);
34769 if (PyErr_Occurred()) SWIG_fail;
34770 }
34771 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34772 return resultobj;
34773fail:
34774 return NULL;
34775}
34776
34777
34778SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34779 PyObject *resultobj = 0;
34780 wxRendererNative *result = 0 ;
34781
34782 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34783 {
704eda0c 34784 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34785 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 34786 {
0085ce49
RD
34787 wxRendererNative &_result_ref = wxRendererNative::Get();
34788 result = (wxRendererNative *) &_result_ref;
093d3ff1 34789 }
0085ce49
RD
34790 wxPyEndAllowThreads(__tstate);
34791 if (PyErr_Occurred()) SWIG_fail;
34792 }
34793 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34794 return resultobj;
34795fail:
34796 return NULL;
34797}
34798
34799
34800SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34801 PyObject *resultobj = 0;
34802 wxRendererNative *result = 0 ;
34803
34804 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34805 {
704eda0c 34806 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34808 {
0085ce49
RD
34809 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34810 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34811 }
0085ce49
RD
34812 wxPyEndAllowThreads(__tstate);
34813 if (PyErr_Occurred()) SWIG_fail;
34814 }
34815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34816 return resultobj;
34817fail:
34818 return NULL;
34819}
34820
34821
34822SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34823 PyObject *resultobj = 0;
34824 wxRendererNative *result = 0 ;
34825
34826 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34827 {
704eda0c 34828 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34829 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34830 {
0085ce49
RD
34831 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34832 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34833 }
0085ce49
RD
34834 wxPyEndAllowThreads(__tstate);
34835 if (PyErr_Occurred()) SWIG_fail;
34836 }
34837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34838 return resultobj;
34839fail:
34840 return NULL;
34841}
34842
34843
34844SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34845 PyObject *resultobj = 0;
34846 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34847 wxRendererNative *result = 0 ;
34848 void *argp1 = 0 ;
34849 int res1 = 0 ;
34850 PyObject * obj0 = 0 ;
34851 char * kwnames[] = {
34852 (char *) "renderer", NULL
34853 };
34854
34855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34857 if (!SWIG_IsOK(res1)) {
34858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34859 }
34860 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34861 {
704eda0c 34862 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
34863 PyThreadState* __tstate = wxPyBeginAllowThreads();
34864 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34865 wxPyEndAllowThreads(__tstate);
34866 if (PyErr_Occurred()) SWIG_fail;
34867 }
34868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34869 return resultobj;
34870fail:
34871 return NULL;
34872}
34873
34874
34875SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34876 PyObject *resultobj = 0;
34877 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34878 SwigValueWrapper<wxRendererVersion > result;
34879 void *argp1 = 0 ;
34880 int res1 = 0 ;
34881 PyObject *swig_obj[1] ;
34882
34883 if (!args) SWIG_fail;
34884 swig_obj[0] = args;
34885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34886 if (!SWIG_IsOK(res1)) {
34887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34888 }
34889 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34890 {
34891 PyThreadState* __tstate = wxPyBeginAllowThreads();
34892 result = ((wxRendererNative const *)arg1)->GetVersion();
34893 wxPyEndAllowThreads(__tstate);
34894 if (PyErr_Occurred()) SWIG_fail;
34895 }
34896 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34897 return resultobj;
34898fail:
34899 return NULL;
34900}
34901
34902
34903SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34904 PyObject *obj;
34905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34906 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34907 return SWIG_Py_Void();
34908}
34909
27e45892
RD
34910SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34911 PyObject *resultobj = 0;
34912 wxPseudoDC *result = 0 ;
34913
34914 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34915 {
34916 PyThreadState* __tstate = wxPyBeginAllowThreads();
34917 result = (wxPseudoDC *)new wxPseudoDC();
34918 wxPyEndAllowThreads(__tstate);
34919 if (PyErr_Occurred()) SWIG_fail;
34920 }
34921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34922 return resultobj;
34923fail:
34924 return NULL;
34925}
34926
34927
34928SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34929 PyObject *resultobj = 0;
34930 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34931 void *argp1 = 0 ;
34932 int res1 = 0 ;
34933 PyObject *swig_obj[1] ;
34934
34935 if (!args) SWIG_fail;
34936 swig_obj[0] = args;
34937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34938 if (!SWIG_IsOK(res1)) {
34939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34940 }
34941 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34942 {
34943 PyThreadState* __tstate = wxPyBeginAllowThreads();
34944 (arg1)->BeginDrawing();
34945 wxPyEndAllowThreads(__tstate);
34946 if (PyErr_Occurred()) SWIG_fail;
34947 }
34948 resultobj = SWIG_Py_Void();
34949 return resultobj;
34950fail:
34951 return NULL;
34952}
34953
34954
34955SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34956 PyObject *resultobj = 0;
34957 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34958 void *argp1 = 0 ;
34959 int res1 = 0 ;
34960 PyObject *swig_obj[1] ;
34961
34962 if (!args) SWIG_fail;
34963 swig_obj[0] = args;
34964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34965 if (!SWIG_IsOK(res1)) {
34966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34967 }
34968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34969 {
34970 PyThreadState* __tstate = wxPyBeginAllowThreads();
34971 (arg1)->EndDrawing();
34972 wxPyEndAllowThreads(__tstate);
34973 if (PyErr_Occurred()) SWIG_fail;
34974 }
34975 resultobj = SWIG_Py_Void();
34976 return resultobj;
34977fail:
34978 return NULL;
34979}
34980
34981
34982SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34983 PyObject *resultobj = 0;
34984 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34985 void *argp1 = 0 ;
34986 int res1 = 0 ;
34987 PyObject *swig_obj[1] ;
34988
34989 if (!args) SWIG_fail;
34990 swig_obj[0] = args;
34991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34992 if (!SWIG_IsOK(res1)) {
34993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34994 }
34995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34996 {
34997 PyThreadState* __tstate = wxPyBeginAllowThreads();
34998 delete arg1;
34999
35000 wxPyEndAllowThreads(__tstate);
35001 if (PyErr_Occurred()) SWIG_fail;
35002 }
35003 resultobj = SWIG_Py_Void();
35004 return resultobj;
35005fail:
35006 return NULL;
35007}
35008
35009
35010SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35011 PyObject *resultobj = 0;
35012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35013 void *argp1 = 0 ;
35014 int res1 = 0 ;
35015 PyObject *swig_obj[1] ;
35016
35017 if (!args) SWIG_fail;
35018 swig_obj[0] = args;
35019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35020 if (!SWIG_IsOK(res1)) {
35021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35022 }
35023 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35024 {
35025 PyThreadState* __tstate = wxPyBeginAllowThreads();
35026 (arg1)->RemoveAll();
35027 wxPyEndAllowThreads(__tstate);
35028 if (PyErr_Occurred()) SWIG_fail;
35029 }
35030 resultobj = SWIG_Py_Void();
35031 return resultobj;
35032fail:
35033 return NULL;
35034}
35035
35036
35037SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35038 PyObject *resultobj = 0;
35039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35040 int result;
35041 void *argp1 = 0 ;
35042 int res1 = 0 ;
35043 PyObject *swig_obj[1] ;
35044
35045 if (!args) SWIG_fail;
35046 swig_obj[0] = args;
35047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35048 if (!SWIG_IsOK(res1)) {
35049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35050 }
35051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35052 {
35053 PyThreadState* __tstate = wxPyBeginAllowThreads();
35054 result = (int)(arg1)->GetLen();
35055 wxPyEndAllowThreads(__tstate);
35056 if (PyErr_Occurred()) SWIG_fail;
35057 }
35058 resultobj = SWIG_From_int(static_cast< int >(result));
35059 return resultobj;
35060fail:
35061 return NULL;
35062}
35063
35064
35065SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35066 PyObject *resultobj = 0;
35067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35068 int arg2 ;
35069 void *argp1 = 0 ;
35070 int res1 = 0 ;
35071 int val2 ;
35072 int ecode2 = 0 ;
35073 PyObject * obj0 = 0 ;
35074 PyObject * obj1 = 0 ;
35075 char * kwnames[] = {
35076 (char *) "self",(char *) "id", NULL
35077 };
35078
35079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35081 if (!SWIG_IsOK(res1)) {
35082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35083 }
35084 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35085 ecode2 = SWIG_AsVal_int(obj1, &val2);
35086 if (!SWIG_IsOK(ecode2)) {
35087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35088 }
35089 arg2 = static_cast< int >(val2);
35090 {
35091 PyThreadState* __tstate = wxPyBeginAllowThreads();
35092 (arg1)->SetId(arg2);
35093 wxPyEndAllowThreads(__tstate);
35094 if (PyErr_Occurred()) SWIG_fail;
35095 }
35096 resultobj = SWIG_Py_Void();
35097 return resultobj;
35098fail:
35099 return NULL;
35100}
35101
35102
35103SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35104 PyObject *resultobj = 0;
35105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35106 int arg2 ;
35107 void *argp1 = 0 ;
35108 int res1 = 0 ;
35109 int val2 ;
35110 int ecode2 = 0 ;
35111 PyObject * obj0 = 0 ;
35112 PyObject * obj1 = 0 ;
35113 char * kwnames[] = {
35114 (char *) "self",(char *) "id", NULL
35115 };
35116
35117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35119 if (!SWIG_IsOK(res1)) {
35120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35121 }
35122 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35123 ecode2 = SWIG_AsVal_int(obj1, &val2);
35124 if (!SWIG_IsOK(ecode2)) {
35125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35126 }
35127 arg2 = static_cast< int >(val2);
35128 {
35129 PyThreadState* __tstate = wxPyBeginAllowThreads();
35130 (arg1)->ClearId(arg2);
35131 wxPyEndAllowThreads(__tstate);
35132 if (PyErr_Occurred()) SWIG_fail;
35133 }
35134 resultobj = SWIG_Py_Void();
35135 return resultobj;
35136fail:
35137 return NULL;
35138}
35139
35140
35141SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35142 PyObject *resultobj = 0;
35143 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35144 int arg2 ;
35145 void *argp1 = 0 ;
35146 int res1 = 0 ;
35147 int val2 ;
35148 int ecode2 = 0 ;
35149 PyObject * obj0 = 0 ;
35150 PyObject * obj1 = 0 ;
35151 char * kwnames[] = {
35152 (char *) "self",(char *) "id", NULL
35153 };
35154
35155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35157 if (!SWIG_IsOK(res1)) {
35158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35159 }
35160 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35161 ecode2 = SWIG_AsVal_int(obj1, &val2);
35162 if (!SWIG_IsOK(ecode2)) {
35163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35164 }
35165 arg2 = static_cast< int >(val2);
35166 {
35167 PyThreadState* __tstate = wxPyBeginAllowThreads();
35168 (arg1)->RemoveId(arg2);
35169 wxPyEndAllowThreads(__tstate);
35170 if (PyErr_Occurred()) SWIG_fail;
35171 }
35172 resultobj = SWIG_Py_Void();
35173 return resultobj;
35174fail:
35175 return NULL;
35176}
35177
35178
35179SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35180 PyObject *resultobj = 0;
35181 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35182 int arg2 ;
35183 int arg3 ;
35184 int arg4 ;
35185 void *argp1 = 0 ;
35186 int res1 = 0 ;
35187 int val2 ;
35188 int ecode2 = 0 ;
35189 int val3 ;
35190 int ecode3 = 0 ;
35191 int val4 ;
35192 int ecode4 = 0 ;
35193 PyObject * obj0 = 0 ;
35194 PyObject * obj1 = 0 ;
35195 PyObject * obj2 = 0 ;
35196 PyObject * obj3 = 0 ;
35197 char * kwnames[] = {
35198 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35199 };
35200
35201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35203 if (!SWIG_IsOK(res1)) {
35204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35205 }
35206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35207 ecode2 = SWIG_AsVal_int(obj1, &val2);
35208 if (!SWIG_IsOK(ecode2)) {
35209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35210 }
35211 arg2 = static_cast< int >(val2);
35212 ecode3 = SWIG_AsVal_int(obj2, &val3);
35213 if (!SWIG_IsOK(ecode3)) {
35214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35215 }
35216 arg3 = static_cast< int >(val3);
35217 ecode4 = SWIG_AsVal_int(obj3, &val4);
35218 if (!SWIG_IsOK(ecode4)) {
35219 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35220 }
35221 arg4 = static_cast< int >(val4);
35222 {
35223 PyThreadState* __tstate = wxPyBeginAllowThreads();
35224 (arg1)->TranslateId(arg2,arg3,arg4);
35225 wxPyEndAllowThreads(__tstate);
35226 if (PyErr_Occurred()) SWIG_fail;
35227 }
35228 resultobj = SWIG_Py_Void();
35229 return resultobj;
35230fail:
35231 return NULL;
35232}
35233
35234
72ef6efb
RD
35235SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35236 PyObject *resultobj = 0;
35237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35238 int arg2 ;
35239 bool arg3 = (bool) true ;
35240 void *argp1 = 0 ;
35241 int res1 = 0 ;
35242 int val2 ;
35243 int ecode2 = 0 ;
35244 bool val3 ;
35245 int ecode3 = 0 ;
35246 PyObject * obj0 = 0 ;
35247 PyObject * obj1 = 0 ;
35248 PyObject * obj2 = 0 ;
35249 char * kwnames[] = {
35250 (char *) "self",(char *) "id",(char *) "greyout", NULL
35251 };
35252
35253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35255 if (!SWIG_IsOK(res1)) {
35256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35257 }
35258 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35259 ecode2 = SWIG_AsVal_int(obj1, &val2);
35260 if (!SWIG_IsOK(ecode2)) {
35261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35262 }
35263 arg2 = static_cast< int >(val2);
35264 if (obj2) {
35265 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35266 if (!SWIG_IsOK(ecode3)) {
35267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35268 }
35269 arg3 = static_cast< bool >(val3);
35270 }
35271 {
35272 PyThreadState* __tstate = wxPyBeginAllowThreads();
35273 (arg1)->SetIdGreyedOut(arg2,arg3);
35274 wxPyEndAllowThreads(__tstate);
35275 if (PyErr_Occurred()) SWIG_fail;
35276 }
35277 resultobj = SWIG_Py_Void();
35278 return resultobj;
35279fail:
35280 return NULL;
35281}
35282
35283
35284SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35285 PyObject *resultobj = 0;
35286 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35287 int arg2 ;
35288 bool result;
35289 void *argp1 = 0 ;
35290 int res1 = 0 ;
35291 int val2 ;
35292 int ecode2 = 0 ;
35293 PyObject * obj0 = 0 ;
35294 PyObject * obj1 = 0 ;
35295 char * kwnames[] = {
35296 (char *) "self",(char *) "id", NULL
35297 };
35298
35299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35301 if (!SWIG_IsOK(res1)) {
35302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35303 }
35304 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35305 ecode2 = SWIG_AsVal_int(obj1, &val2);
35306 if (!SWIG_IsOK(ecode2)) {
35307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35308 }
35309 arg2 = static_cast< int >(val2);
35310 {
35311 PyThreadState* __tstate = wxPyBeginAllowThreads();
35312 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35313 wxPyEndAllowThreads(__tstate);
35314 if (PyErr_Occurred()) SWIG_fail;
35315 }
35316 {
35317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35318 }
35319 return resultobj;
35320fail:
35321 return NULL;
35322}
35323
35324
35325SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35326 PyObject *resultobj = 0;
35327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35328 int arg2 ;
35329 int arg3 ;
35330 int arg4 = (int) 1 ;
35331 wxColor const &arg5_defvalue = *wxWHITE ;
35332 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35333 PyObject *result = 0 ;
35334 void *argp1 = 0 ;
35335 int res1 = 0 ;
35336 int val2 ;
35337 int ecode2 = 0 ;
35338 int val3 ;
35339 int ecode3 = 0 ;
35340 int val4 ;
35341 int ecode4 = 0 ;
35342 void *argp5 = 0 ;
35343 int res5 = 0 ;
35344 PyObject * obj0 = 0 ;
35345 PyObject * obj1 = 0 ;
35346 PyObject * obj2 = 0 ;
35347 PyObject * obj3 = 0 ;
35348 PyObject * obj4 = 0 ;
35349 char * kwnames[] = {
35350 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35351 };
35352
35353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35355 if (!SWIG_IsOK(res1)) {
35356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35357 }
35358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35359 ecode2 = SWIG_AsVal_int(obj1, &val2);
35360 if (!SWIG_IsOK(ecode2)) {
35361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35362 }
35363 arg2 = static_cast< int >(val2);
35364 ecode3 = SWIG_AsVal_int(obj2, &val3);
35365 if (!SWIG_IsOK(ecode3)) {
35366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35367 }
35368 arg3 = static_cast< int >(val3);
35369 if (obj3) {
35370 ecode4 = SWIG_AsVal_int(obj3, &val4);
35371 if (!SWIG_IsOK(ecode4)) {
35372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35373 }
35374 arg4 = static_cast< int >(val4);
35375 }
35376 if (obj4) {
35377 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35378 if (!SWIG_IsOK(res5)) {
35379 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35380 }
35381 if (!argp5) {
35382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35383 }
35384 arg5 = reinterpret_cast< wxColor * >(argp5);
35385 }
35386 {
35387 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35388 if (PyErr_Occurred()) SWIG_fail;
35389 }
35390 resultobj = result;
35391 return resultobj;
35392fail:
35393 return NULL;
35394}
35395
35396
35397SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35398 PyObject *resultobj = 0;
35399 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35400 int arg2 ;
35401 int arg3 ;
35402 PyObject *result = 0 ;
35403 void *argp1 = 0 ;
35404 int res1 = 0 ;
35405 int val2 ;
35406 int ecode2 = 0 ;
35407 int val3 ;
35408 int ecode3 = 0 ;
35409 PyObject * obj0 = 0 ;
35410 PyObject * obj1 = 0 ;
35411 PyObject * obj2 = 0 ;
35412 char * kwnames[] = {
35413 (char *) "self",(char *) "x",(char *) "y", NULL
35414 };
35415
35416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35418 if (!SWIG_IsOK(res1)) {
35419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35420 }
35421 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35422 ecode2 = SWIG_AsVal_int(obj1, &val2);
35423 if (!SWIG_IsOK(ecode2)) {
35424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35425 }
35426 arg2 = static_cast< int >(val2);
35427 ecode3 = SWIG_AsVal_int(obj2, &val3);
35428 if (!SWIG_IsOK(ecode3)) {
35429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35430 }
35431 arg3 = static_cast< int >(val3);
35432 {
35433 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35434 if (PyErr_Occurred()) SWIG_fail;
35435 }
35436 resultobj = result;
35437 return resultobj;
35438fail:
35439 return NULL;
35440}
35441
35442
27e45892
RD
35443SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35444 PyObject *resultobj = 0;
35445 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35446 int arg2 ;
35447 wxDC *arg3 = (wxDC *) 0 ;
35448 void *argp1 = 0 ;
35449 int res1 = 0 ;
35450 int val2 ;
35451 int ecode2 = 0 ;
35452 void *argp3 = 0 ;
35453 int res3 = 0 ;
35454 PyObject * obj0 = 0 ;
35455 PyObject * obj1 = 0 ;
35456 PyObject * obj2 = 0 ;
35457 char * kwnames[] = {
35458 (char *) "self",(char *) "id",(char *) "dc", NULL
35459 };
35460
35461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35463 if (!SWIG_IsOK(res1)) {
35464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35465 }
35466 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35467 ecode2 = SWIG_AsVal_int(obj1, &val2);
35468 if (!SWIG_IsOK(ecode2)) {
35469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35470 }
35471 arg2 = static_cast< int >(val2);
35472 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35473 if (!SWIG_IsOK(res3)) {
35474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35475 }
35476 arg3 = reinterpret_cast< wxDC * >(argp3);
35477 {
35478 PyThreadState* __tstate = wxPyBeginAllowThreads();
35479 (arg1)->DrawIdToDC(arg2,arg3);
35480 wxPyEndAllowThreads(__tstate);
35481 if (PyErr_Occurred()) SWIG_fail;
35482 }
35483 resultobj = SWIG_Py_Void();
35484 return resultobj;
35485fail:
35486 return NULL;
35487}
35488
35489
35490SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35491 PyObject *resultobj = 0;
35492 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35493 int arg2 ;
35494 wxRect *arg3 = 0 ;
35495 void *argp1 = 0 ;
35496 int res1 = 0 ;
35497 int val2 ;
35498 int ecode2 = 0 ;
35499 wxRect temp3 ;
35500 PyObject * obj0 = 0 ;
35501 PyObject * obj1 = 0 ;
35502 PyObject * obj2 = 0 ;
35503 char * kwnames[] = {
35504 (char *) "self",(char *) "id",(char *) "rect", NULL
35505 };
35506
35507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35509 if (!SWIG_IsOK(res1)) {
35510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35511 }
35512 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35513 ecode2 = SWIG_AsVal_int(obj1, &val2);
35514 if (!SWIG_IsOK(ecode2)) {
35515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35516 }
35517 arg2 = static_cast< int >(val2);
35518 {
35519 arg3 = &temp3;
35520 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35521 }
35522 {
35523 PyThreadState* __tstate = wxPyBeginAllowThreads();
35524 (arg1)->SetIdBounds(arg2,*arg3);
35525 wxPyEndAllowThreads(__tstate);
35526 if (PyErr_Occurred()) SWIG_fail;
35527 }
35528 resultobj = SWIG_Py_Void();
35529 return resultobj;
35530fail:
35531 return NULL;
35532}
35533
35534
35535SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35536 PyObject *resultobj = 0;
35537 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35538 int arg2 ;
35539 wxRect result;
35540 void *argp1 = 0 ;
35541 int res1 = 0 ;
35542 int val2 ;
35543 int ecode2 = 0 ;
35544 PyObject * obj0 = 0 ;
35545 PyObject * obj1 = 0 ;
35546 char * kwnames[] = {
35547 (char *) "self",(char *) "id", NULL
35548 };
35549
35550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35552 if (!SWIG_IsOK(res1)) {
35553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35554 }
35555 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35556 ecode2 = SWIG_AsVal_int(obj1, &val2);
35557 if (!SWIG_IsOK(ecode2)) {
35558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35559 }
35560 arg2 = static_cast< int >(val2);
35561 {
35562 PyThreadState* __tstate = wxPyBeginAllowThreads();
35563 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35564 wxPyEndAllowThreads(__tstate);
35565 if (PyErr_Occurred()) SWIG_fail;
35566 }
35567 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35568 return resultobj;
35569fail:
35570 return NULL;
35571}
35572
35573
35574SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35575 PyObject *resultobj = 0;
35576 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35577 wxDC *arg2 = (wxDC *) 0 ;
35578 wxRect *arg3 = 0 ;
35579 void *argp1 = 0 ;
35580 int res1 = 0 ;
35581 void *argp2 = 0 ;
35582 int res2 = 0 ;
35583 wxRect temp3 ;
35584 PyObject * obj0 = 0 ;
35585 PyObject * obj1 = 0 ;
35586 PyObject * obj2 = 0 ;
35587 char * kwnames[] = {
35588 (char *) "self",(char *) "dc",(char *) "rect", NULL
35589 };
35590
35591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35593 if (!SWIG_IsOK(res1)) {
35594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35595 }
35596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35597 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35598 if (!SWIG_IsOK(res2)) {
35599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35600 }
35601 arg2 = reinterpret_cast< wxDC * >(argp2);
35602 {
35603 arg3 = &temp3;
35604 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35605 }
35606 {
35607 PyThreadState* __tstate = wxPyBeginAllowThreads();
35608 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35609 wxPyEndAllowThreads(__tstate);
35610 if (PyErr_Occurred()) SWIG_fail;
35611 }
35612 resultobj = SWIG_Py_Void();
35613 return resultobj;
35614fail:
35615 return NULL;
35616}
35617
35618
35619SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35620 PyObject *resultobj = 0;
35621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35622 wxDC *arg2 = (wxDC *) 0 ;
35623 wxRegion *arg3 = 0 ;
35624 void *argp1 = 0 ;
35625 int res1 = 0 ;
35626 void *argp2 = 0 ;
35627 int res2 = 0 ;
35628 void *argp3 = 0 ;
35629 int res3 = 0 ;
35630 PyObject * obj0 = 0 ;
35631 PyObject * obj1 = 0 ;
35632 PyObject * obj2 = 0 ;
35633 char * kwnames[] = {
35634 (char *) "self",(char *) "dc",(char *) "region", NULL
35635 };
35636
35637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35639 if (!SWIG_IsOK(res1)) {
35640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35641 }
35642 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35644 if (!SWIG_IsOK(res2)) {
35645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35646 }
35647 arg2 = reinterpret_cast< wxDC * >(argp2);
35648 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35649 if (!SWIG_IsOK(res3)) {
35650 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35651 }
35652 if (!argp3) {
35653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35654 }
35655 arg3 = reinterpret_cast< wxRegion * >(argp3);
35656 {
35657 PyThreadState* __tstate = wxPyBeginAllowThreads();
35658 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35659 wxPyEndAllowThreads(__tstate);
35660 if (PyErr_Occurred()) SWIG_fail;
35661 }
35662 resultobj = SWIG_Py_Void();
35663 return resultobj;
35664fail:
35665 return NULL;
35666}
35667
35668
35669SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35670 PyObject *resultobj = 0;
35671 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35672 wxDC *arg2 = (wxDC *) 0 ;
35673 void *argp1 = 0 ;
35674 int res1 = 0 ;
35675 void *argp2 = 0 ;
35676 int res2 = 0 ;
35677 PyObject * obj0 = 0 ;
35678 PyObject * obj1 = 0 ;
35679 char * kwnames[] = {
35680 (char *) "self",(char *) "dc", NULL
35681 };
35682
35683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35685 if (!SWIG_IsOK(res1)) {
35686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35687 }
35688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35690 if (!SWIG_IsOK(res2)) {
35691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35692 }
35693 arg2 = reinterpret_cast< wxDC * >(argp2);
35694 {
35695 PyThreadState* __tstate = wxPyBeginAllowThreads();
35696 (arg1)->DrawToDC(arg2);
35697 wxPyEndAllowThreads(__tstate);
35698 if (PyErr_Occurred()) SWIG_fail;
35699 }
35700 resultobj = SWIG_Py_Void();
35701 return resultobj;
35702fail:
35703 return NULL;
35704}
35705
35706
35707SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35708 PyObject *resultobj = 0;
35709 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35710 int arg2 ;
35711 int arg3 ;
35712 wxColour *arg4 = 0 ;
35713 int arg5 = (int) wxFLOOD_SURFACE ;
35714 void *argp1 = 0 ;
35715 int res1 = 0 ;
35716 int val2 ;
35717 int ecode2 = 0 ;
35718 int val3 ;
35719 int ecode3 = 0 ;
35720 wxColour temp4 ;
35721 int val5 ;
35722 int ecode5 = 0 ;
35723 PyObject * obj0 = 0 ;
35724 PyObject * obj1 = 0 ;
35725 PyObject * obj2 = 0 ;
35726 PyObject * obj3 = 0 ;
35727 PyObject * obj4 = 0 ;
35728 char * kwnames[] = {
35729 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35730 };
35731
35732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35734 if (!SWIG_IsOK(res1)) {
35735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35736 }
35737 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35738 ecode2 = SWIG_AsVal_int(obj1, &val2);
35739 if (!SWIG_IsOK(ecode2)) {
35740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35741 }
35742 arg2 = static_cast< int >(val2);
35743 ecode3 = SWIG_AsVal_int(obj2, &val3);
35744 if (!SWIG_IsOK(ecode3)) {
35745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35746 }
35747 arg3 = static_cast< int >(val3);
35748 {
35749 arg4 = &temp4;
35750 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35751 }
35752 if (obj4) {
35753 ecode5 = SWIG_AsVal_int(obj4, &val5);
35754 if (!SWIG_IsOK(ecode5)) {
35755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35756 }
35757 arg5 = static_cast< int >(val5);
35758 }
35759 {
35760 PyThreadState* __tstate = wxPyBeginAllowThreads();
35761 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35762 wxPyEndAllowThreads(__tstate);
35763 if (PyErr_Occurred()) SWIG_fail;
35764 }
35765 resultobj = SWIG_Py_Void();
35766 return resultobj;
35767fail:
35768 return NULL;
35769}
35770
35771
35772SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35773 PyObject *resultobj = 0;
35774 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35775 wxPoint *arg2 = 0 ;
35776 wxColour *arg3 = 0 ;
35777 int arg4 = (int) wxFLOOD_SURFACE ;
35778 void *argp1 = 0 ;
35779 int res1 = 0 ;
35780 wxPoint temp2 ;
35781 wxColour temp3 ;
35782 int val4 ;
35783 int ecode4 = 0 ;
35784 PyObject * obj0 = 0 ;
35785 PyObject * obj1 = 0 ;
35786 PyObject * obj2 = 0 ;
35787 PyObject * obj3 = 0 ;
35788 char * kwnames[] = {
35789 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35790 };
35791
35792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35794 if (!SWIG_IsOK(res1)) {
35795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35796 }
35797 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35798 {
35799 arg2 = &temp2;
35800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35801 }
35802 {
35803 arg3 = &temp3;
35804 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35805 }
35806 if (obj3) {
35807 ecode4 = SWIG_AsVal_int(obj3, &val4);
35808 if (!SWIG_IsOK(ecode4)) {
35809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35810 }
35811 arg4 = static_cast< int >(val4);
35812 }
35813 {
35814 PyThreadState* __tstate = wxPyBeginAllowThreads();
35815 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35816 wxPyEndAllowThreads(__tstate);
35817 if (PyErr_Occurred()) SWIG_fail;
35818 }
35819 resultobj = SWIG_Py_Void();
35820 return resultobj;
35821fail:
35822 return NULL;
35823}
35824
35825
35826SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35827 PyObject *resultobj = 0;
35828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35829 int arg2 ;
35830 int arg3 ;
35831 int arg4 ;
35832 int arg5 ;
35833 void *argp1 = 0 ;
35834 int res1 = 0 ;
35835 int val2 ;
35836 int ecode2 = 0 ;
35837 int val3 ;
35838 int ecode3 = 0 ;
35839 int val4 ;
35840 int ecode4 = 0 ;
35841 int val5 ;
35842 int ecode5 = 0 ;
35843 PyObject * obj0 = 0 ;
35844 PyObject * obj1 = 0 ;
35845 PyObject * obj2 = 0 ;
35846 PyObject * obj3 = 0 ;
35847 PyObject * obj4 = 0 ;
35848 char * kwnames[] = {
35849 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35850 };
35851
35852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35854 if (!SWIG_IsOK(res1)) {
35855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35856 }
35857 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35858 ecode2 = SWIG_AsVal_int(obj1, &val2);
35859 if (!SWIG_IsOK(ecode2)) {
35860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35861 }
35862 arg2 = static_cast< int >(val2);
35863 ecode3 = SWIG_AsVal_int(obj2, &val3);
35864 if (!SWIG_IsOK(ecode3)) {
35865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35866 }
35867 arg3 = static_cast< int >(val3);
35868 ecode4 = SWIG_AsVal_int(obj3, &val4);
35869 if (!SWIG_IsOK(ecode4)) {
35870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35871 }
35872 arg4 = static_cast< int >(val4);
35873 ecode5 = SWIG_AsVal_int(obj4, &val5);
35874 if (!SWIG_IsOK(ecode5)) {
35875 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35876 }
35877 arg5 = static_cast< int >(val5);
35878 {
35879 PyThreadState* __tstate = wxPyBeginAllowThreads();
35880 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35881 wxPyEndAllowThreads(__tstate);
35882 if (PyErr_Occurred()) SWIG_fail;
35883 }
35884 resultobj = SWIG_Py_Void();
35885 return resultobj;
35886fail:
35887 return NULL;
35888}
35889
35890
35891SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35892 PyObject *resultobj = 0;
35893 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35894 wxPoint *arg2 = 0 ;
35895 wxPoint *arg3 = 0 ;
35896 void *argp1 = 0 ;
35897 int res1 = 0 ;
35898 wxPoint temp2 ;
35899 wxPoint temp3 ;
35900 PyObject * obj0 = 0 ;
35901 PyObject * obj1 = 0 ;
35902 PyObject * obj2 = 0 ;
35903 char * kwnames[] = {
35904 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35905 };
35906
35907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35909 if (!SWIG_IsOK(res1)) {
35910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35911 }
35912 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35913 {
35914 arg2 = &temp2;
35915 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35916 }
35917 {
35918 arg3 = &temp3;
35919 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35920 }
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 resultobj = SWIG_Py_Void();
35928 return resultobj;
35929fail:
35930 return NULL;
35931}
35932
35933
35934SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj = 0;
35936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35937 int arg2 ;
35938 int arg3 ;
35939 void *argp1 = 0 ;
35940 int res1 = 0 ;
35941 int val2 ;
35942 int ecode2 = 0 ;
35943 int val3 ;
35944 int ecode3 = 0 ;
35945 PyObject * obj0 = 0 ;
35946 PyObject * obj1 = 0 ;
35947 PyObject * obj2 = 0 ;
35948 char * kwnames[] = {
35949 (char *) "self",(char *) "x",(char *) "y", NULL
35950 };
35951
35952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35954 if (!SWIG_IsOK(res1)) {
35955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35956 }
35957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35958 ecode2 = SWIG_AsVal_int(obj1, &val2);
35959 if (!SWIG_IsOK(ecode2)) {
35960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35961 }
35962 arg2 = static_cast< int >(val2);
35963 ecode3 = SWIG_AsVal_int(obj2, &val3);
35964 if (!SWIG_IsOK(ecode3)) {
35965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35966 }
35967 arg3 = static_cast< int >(val3);
35968 {
35969 PyThreadState* __tstate = wxPyBeginAllowThreads();
35970 (arg1)->CrossHair(arg2,arg3);
35971 wxPyEndAllowThreads(__tstate);
35972 if (PyErr_Occurred()) SWIG_fail;
35973 }
35974 resultobj = SWIG_Py_Void();
35975 return resultobj;
35976fail:
35977 return NULL;
35978}
35979
35980
35981SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35982 PyObject *resultobj = 0;
35983 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35984 wxPoint *arg2 = 0 ;
35985 void *argp1 = 0 ;
35986 int res1 = 0 ;
35987 wxPoint temp2 ;
35988 PyObject * obj0 = 0 ;
35989 PyObject * obj1 = 0 ;
35990 char * kwnames[] = {
35991 (char *) "self",(char *) "pt", NULL
35992 };
35993
35994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35996 if (!SWIG_IsOK(res1)) {
35997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35998 }
35999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36000 {
36001 arg2 = &temp2;
36002 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36003 }
36004 {
36005 PyThreadState* __tstate = wxPyBeginAllowThreads();
36006 (arg1)->CrossHair((wxPoint const &)*arg2);
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_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36020 int arg2 ;
36021 int arg3 ;
36022 int arg4 ;
36023 int arg5 ;
36024 int arg6 ;
36025 int arg7 ;
36026 void *argp1 = 0 ;
36027 int res1 = 0 ;
36028 int val2 ;
36029 int ecode2 = 0 ;
36030 int val3 ;
36031 int ecode3 = 0 ;
36032 int val4 ;
36033 int ecode4 = 0 ;
36034 int val5 ;
36035 int ecode5 = 0 ;
36036 int val6 ;
36037 int ecode6 = 0 ;
36038 int val7 ;
36039 int ecode7 = 0 ;
36040 PyObject * obj0 = 0 ;
36041 PyObject * obj1 = 0 ;
36042 PyObject * obj2 = 0 ;
36043 PyObject * obj3 = 0 ;
36044 PyObject * obj4 = 0 ;
36045 PyObject * obj5 = 0 ;
36046 PyObject * obj6 = 0 ;
36047 char * kwnames[] = {
36048 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36049 };
36050
36051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36053 if (!SWIG_IsOK(res1)) {
36054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36055 }
36056 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36057 ecode2 = SWIG_AsVal_int(obj1, &val2);
36058 if (!SWIG_IsOK(ecode2)) {
36059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36060 }
36061 arg2 = static_cast< int >(val2);
36062 ecode3 = SWIG_AsVal_int(obj2, &val3);
36063 if (!SWIG_IsOK(ecode3)) {
36064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36065 }
36066 arg3 = static_cast< int >(val3);
36067 ecode4 = SWIG_AsVal_int(obj3, &val4);
36068 if (!SWIG_IsOK(ecode4)) {
36069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36070 }
36071 arg4 = static_cast< int >(val4);
36072 ecode5 = SWIG_AsVal_int(obj4, &val5);
36073 if (!SWIG_IsOK(ecode5)) {
36074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36075 }
36076 arg5 = static_cast< int >(val5);
36077 ecode6 = SWIG_AsVal_int(obj5, &val6);
36078 if (!SWIG_IsOK(ecode6)) {
36079 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36080 }
36081 arg6 = static_cast< int >(val6);
36082 ecode7 = SWIG_AsVal_int(obj6, &val7);
36083 if (!SWIG_IsOK(ecode7)) {
36084 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36085 }
36086 arg7 = static_cast< int >(val7);
36087 {
36088 PyThreadState* __tstate = wxPyBeginAllowThreads();
36089 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36090 wxPyEndAllowThreads(__tstate);
36091 if (PyErr_Occurred()) SWIG_fail;
36092 }
36093 resultobj = SWIG_Py_Void();
36094 return resultobj;
36095fail:
36096 return NULL;
36097}
36098
36099
36100SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36101 PyObject *resultobj = 0;
36102 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36103 wxPoint *arg2 = 0 ;
36104 wxPoint *arg3 = 0 ;
36105 wxPoint *arg4 = 0 ;
36106 void *argp1 = 0 ;
36107 int res1 = 0 ;
36108 wxPoint temp2 ;
36109 wxPoint temp3 ;
36110 wxPoint temp4 ;
36111 PyObject * obj0 = 0 ;
36112 PyObject * obj1 = 0 ;
36113 PyObject * obj2 = 0 ;
36114 PyObject * obj3 = 0 ;
36115 char * kwnames[] = {
36116 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36117 };
36118
36119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36121 if (!SWIG_IsOK(res1)) {
36122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36125 {
36126 arg2 = &temp2;
36127 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36128 }
36129 {
36130 arg3 = &temp3;
36131 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36132 }
36133 {
36134 arg4 = &temp4;
36135 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36136 }
36137 {
36138 PyThreadState* __tstate = wxPyBeginAllowThreads();
36139 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36140 wxPyEndAllowThreads(__tstate);
36141 if (PyErr_Occurred()) SWIG_fail;
36142 }
36143 resultobj = SWIG_Py_Void();
36144 return resultobj;
36145fail:
36146 return NULL;
36147}
36148
36149
36150SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36151 PyObject *resultobj = 0;
36152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36153 int arg2 ;
36154 int arg3 ;
36155 int arg4 ;
36156 int arg5 ;
36157 void *argp1 = 0 ;
36158 int res1 = 0 ;
36159 int val2 ;
36160 int ecode2 = 0 ;
36161 int val3 ;
36162 int ecode3 = 0 ;
36163 int val4 ;
36164 int ecode4 = 0 ;
36165 int val5 ;
36166 int ecode5 = 0 ;
36167 PyObject * obj0 = 0 ;
36168 PyObject * obj1 = 0 ;
36169 PyObject * obj2 = 0 ;
36170 PyObject * obj3 = 0 ;
36171 PyObject * obj4 = 0 ;
36172 char * kwnames[] = {
36173 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36174 };
36175
36176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36178 if (!SWIG_IsOK(res1)) {
36179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36180 }
36181 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36182 ecode2 = SWIG_AsVal_int(obj1, &val2);
36183 if (!SWIG_IsOK(ecode2)) {
36184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36185 }
36186 arg2 = static_cast< int >(val2);
36187 ecode3 = SWIG_AsVal_int(obj2, &val3);
36188 if (!SWIG_IsOK(ecode3)) {
36189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36190 }
36191 arg3 = static_cast< int >(val3);
36192 ecode4 = SWIG_AsVal_int(obj3, &val4);
36193 if (!SWIG_IsOK(ecode4)) {
36194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36195 }
36196 arg4 = static_cast< int >(val4);
36197 ecode5 = SWIG_AsVal_int(obj4, &val5);
36198 if (!SWIG_IsOK(ecode5)) {
36199 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36200 }
36201 arg5 = static_cast< int >(val5);
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36205 wxPyEndAllowThreads(__tstate);
36206 if (PyErr_Occurred()) SWIG_fail;
36207 }
36208 resultobj = SWIG_Py_Void();
36209 return resultobj;
36210fail:
36211 return NULL;
36212}
36213
36214
36215SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36216 PyObject *resultobj = 0;
36217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36218 wxRect *arg2 = 0 ;
36219 void *argp1 = 0 ;
36220 int res1 = 0 ;
36221 wxRect temp2 ;
36222 PyObject * obj0 = 0 ;
36223 PyObject * obj1 = 0 ;
36224 char * kwnames[] = {
36225 (char *) "self",(char *) "rect", NULL
36226 };
36227
36228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36230 if (!SWIG_IsOK(res1)) {
36231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36232 }
36233 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36234 {
36235 arg2 = &temp2;
36236 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36237 }
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_Py_Void();
36245 return resultobj;
36246fail:
36247 return NULL;
36248}
36249
36250
36251SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36254 int arg2 ;
36255 int arg3 ;
36256 int arg4 ;
36257 int arg5 ;
36258 double arg6 ;
36259 double arg7 ;
36260 void *argp1 = 0 ;
36261 int res1 = 0 ;
36262 int val2 ;
36263 int ecode2 = 0 ;
36264 int val3 ;
36265 int ecode3 = 0 ;
36266 int val4 ;
36267 int ecode4 = 0 ;
36268 int val5 ;
36269 int ecode5 = 0 ;
36270 double val6 ;
36271 int ecode6 = 0 ;
36272 double val7 ;
36273 int ecode7 = 0 ;
36274 PyObject * obj0 = 0 ;
36275 PyObject * obj1 = 0 ;
36276 PyObject * obj2 = 0 ;
36277 PyObject * obj3 = 0 ;
36278 PyObject * obj4 = 0 ;
36279 PyObject * obj5 = 0 ;
36280 PyObject * obj6 = 0 ;
36281 char * kwnames[] = {
36282 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36283 };
36284
36285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36287 if (!SWIG_IsOK(res1)) {
36288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36289 }
36290 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36291 ecode2 = SWIG_AsVal_int(obj1, &val2);
36292 if (!SWIG_IsOK(ecode2)) {
36293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36294 }
36295 arg2 = static_cast< int >(val2);
36296 ecode3 = SWIG_AsVal_int(obj2, &val3);
36297 if (!SWIG_IsOK(ecode3)) {
36298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36299 }
36300 arg3 = static_cast< int >(val3);
36301 ecode4 = SWIG_AsVal_int(obj3, &val4);
36302 if (!SWIG_IsOK(ecode4)) {
36303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36304 }
36305 arg4 = static_cast< int >(val4);
36306 ecode5 = SWIG_AsVal_int(obj4, &val5);
36307 if (!SWIG_IsOK(ecode5)) {
36308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36309 }
36310 arg5 = static_cast< int >(val5);
36311 ecode6 = SWIG_AsVal_double(obj5, &val6);
36312 if (!SWIG_IsOK(ecode6)) {
36313 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36314 }
36315 arg6 = static_cast< double >(val6);
36316 ecode7 = SWIG_AsVal_double(obj6, &val7);
36317 if (!SWIG_IsOK(ecode7)) {
36318 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36319 }
36320 arg7 = static_cast< double >(val7);
36321 {
36322 PyThreadState* __tstate = wxPyBeginAllowThreads();
36323 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36324 wxPyEndAllowThreads(__tstate);
36325 if (PyErr_Occurred()) SWIG_fail;
36326 }
36327 resultobj = SWIG_Py_Void();
36328 return resultobj;
36329fail:
36330 return NULL;
36331}
36332
36333
36334SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36335 PyObject *resultobj = 0;
36336 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36337 wxPoint *arg2 = 0 ;
36338 wxSize *arg3 = 0 ;
36339 double arg4 ;
36340 double arg5 ;
36341 void *argp1 = 0 ;
36342 int res1 = 0 ;
36343 wxPoint temp2 ;
36344 wxSize temp3 ;
36345 double val4 ;
36346 int ecode4 = 0 ;
36347 double val5 ;
36348 int ecode5 = 0 ;
36349 PyObject * obj0 = 0 ;
36350 PyObject * obj1 = 0 ;
36351 PyObject * obj2 = 0 ;
36352 PyObject * obj3 = 0 ;
36353 PyObject * obj4 = 0 ;
36354 char * kwnames[] = {
36355 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36356 };
36357
36358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36360 if (!SWIG_IsOK(res1)) {
36361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36362 }
36363 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36364 {
36365 arg2 = &temp2;
36366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36367 }
36368 {
36369 arg3 = &temp3;
36370 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36371 }
36372 ecode4 = SWIG_AsVal_double(obj3, &val4);
36373 if (!SWIG_IsOK(ecode4)) {
36374 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36375 }
36376 arg4 = static_cast< double >(val4);
36377 ecode5 = SWIG_AsVal_double(obj4, &val5);
36378 if (!SWIG_IsOK(ecode5)) {
36379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36380 }
36381 arg5 = static_cast< double >(val5);
36382 {
36383 PyThreadState* __tstate = wxPyBeginAllowThreads();
36384 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36385 wxPyEndAllowThreads(__tstate);
36386 if (PyErr_Occurred()) SWIG_fail;
36387 }
36388 resultobj = SWIG_Py_Void();
36389 return resultobj;
36390fail:
36391 return NULL;
36392}
36393
36394
36395SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36396 PyObject *resultobj = 0;
36397 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36398 int arg2 ;
36399 int arg3 ;
36400 void *argp1 = 0 ;
36401 int res1 = 0 ;
36402 int val2 ;
36403 int ecode2 = 0 ;
36404 int val3 ;
36405 int ecode3 = 0 ;
36406 PyObject * obj0 = 0 ;
36407 PyObject * obj1 = 0 ;
36408 PyObject * obj2 = 0 ;
36409 char * kwnames[] = {
36410 (char *) "self",(char *) "x",(char *) "y", NULL
36411 };
36412
36413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36415 if (!SWIG_IsOK(res1)) {
36416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36417 }
36418 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36419 ecode2 = SWIG_AsVal_int(obj1, &val2);
36420 if (!SWIG_IsOK(ecode2)) {
36421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36422 }
36423 arg2 = static_cast< int >(val2);
36424 ecode3 = SWIG_AsVal_int(obj2, &val3);
36425 if (!SWIG_IsOK(ecode3)) {
36426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36427 }
36428 arg3 = static_cast< int >(val3);
36429 {
36430 PyThreadState* __tstate = wxPyBeginAllowThreads();
36431 (arg1)->DrawPoint(arg2,arg3);
36432 wxPyEndAllowThreads(__tstate);
36433 if (PyErr_Occurred()) SWIG_fail;
36434 }
36435 resultobj = SWIG_Py_Void();
36436 return resultobj;
36437fail:
36438 return NULL;
36439}
36440
36441
36442SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36443 PyObject *resultobj = 0;
36444 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36445 wxPoint *arg2 = 0 ;
36446 void *argp1 = 0 ;
36447 int res1 = 0 ;
36448 wxPoint temp2 ;
36449 PyObject * obj0 = 0 ;
36450 PyObject * obj1 = 0 ;
36451 char * kwnames[] = {
36452 (char *) "self",(char *) "pt", NULL
36453 };
36454
36455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36457 if (!SWIG_IsOK(res1)) {
36458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36459 }
36460 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36461 {
36462 arg2 = &temp2;
36463 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36464 }
36465 {
36466 PyThreadState* __tstate = wxPyBeginAllowThreads();
36467 (arg1)->DrawPoint((wxPoint const &)*arg2);
36468 wxPyEndAllowThreads(__tstate);
36469 if (PyErr_Occurred()) SWIG_fail;
36470 }
36471 resultobj = SWIG_Py_Void();
36472 return resultobj;
36473fail:
36474 return NULL;
36475}
36476
36477
36478SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36479 PyObject *resultobj = 0;
36480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36481 int arg2 ;
36482 int arg3 ;
36483 int arg4 ;
36484 int arg5 ;
36485 void *argp1 = 0 ;
36486 int res1 = 0 ;
36487 int val2 ;
36488 int ecode2 = 0 ;
36489 int val3 ;
36490 int ecode3 = 0 ;
36491 int val4 ;
36492 int ecode4 = 0 ;
36493 int val5 ;
36494 int ecode5 = 0 ;
36495 PyObject * obj0 = 0 ;
36496 PyObject * obj1 = 0 ;
36497 PyObject * obj2 = 0 ;
36498 PyObject * obj3 = 0 ;
36499 PyObject * obj4 = 0 ;
36500 char * kwnames[] = {
36501 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36502 };
36503
36504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36506 if (!SWIG_IsOK(res1)) {
36507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36508 }
36509 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36510 ecode2 = SWIG_AsVal_int(obj1, &val2);
36511 if (!SWIG_IsOK(ecode2)) {
36512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36513 }
36514 arg2 = static_cast< int >(val2);
36515 ecode3 = SWIG_AsVal_int(obj2, &val3);
36516 if (!SWIG_IsOK(ecode3)) {
36517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36518 }
36519 arg3 = static_cast< int >(val3);
36520 ecode4 = SWIG_AsVal_int(obj3, &val4);
36521 if (!SWIG_IsOK(ecode4)) {
36522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36523 }
36524 arg4 = static_cast< int >(val4);
36525 ecode5 = SWIG_AsVal_int(obj4, &val5);
36526 if (!SWIG_IsOK(ecode5)) {
36527 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36528 }
36529 arg5 = static_cast< int >(val5);
36530 {
36531 PyThreadState* __tstate = wxPyBeginAllowThreads();
36532 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36533 wxPyEndAllowThreads(__tstate);
36534 if (PyErr_Occurred()) SWIG_fail;
36535 }
36536 resultobj = SWIG_Py_Void();
36537 return resultobj;
36538fail:
36539 return NULL;
36540}
36541
36542
36543SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36544 PyObject *resultobj = 0;
36545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36546 wxRect *arg2 = 0 ;
36547 void *argp1 = 0 ;
36548 int res1 = 0 ;
36549 wxRect temp2 ;
36550 PyObject * obj0 = 0 ;
36551 PyObject * obj1 = 0 ;
36552 char * kwnames[] = {
36553 (char *) "self",(char *) "rect", NULL
36554 };
36555
36556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36558 if (!SWIG_IsOK(res1)) {
36559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36560 }
36561 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36562 {
36563 arg2 = &temp2;
36564 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36565 }
36566 {
36567 PyThreadState* __tstate = wxPyBeginAllowThreads();
36568 (arg1)->DrawRectangle((wxRect const &)*arg2);
36569 wxPyEndAllowThreads(__tstate);
36570 if (PyErr_Occurred()) SWIG_fail;
36571 }
36572 resultobj = SWIG_Py_Void();
36573 return resultobj;
36574fail:
36575 return NULL;
36576}
36577
36578
36579SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36580 PyObject *resultobj = 0;
36581 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36582 wxPoint *arg2 = 0 ;
36583 wxSize *arg3 = 0 ;
36584 void *argp1 = 0 ;
36585 int res1 = 0 ;
36586 wxPoint temp2 ;
36587 wxSize temp3 ;
36588 PyObject * obj0 = 0 ;
36589 PyObject * obj1 = 0 ;
36590 PyObject * obj2 = 0 ;
36591 char * kwnames[] = {
36592 (char *) "self",(char *) "pt",(char *) "sz", NULL
36593 };
36594
36595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36597 if (!SWIG_IsOK(res1)) {
36598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36599 }
36600 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36601 {
36602 arg2 = &temp2;
36603 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36604 }
36605 {
36606 arg3 = &temp3;
36607 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36608 }
36609 {
36610 PyThreadState* __tstate = wxPyBeginAllowThreads();
36611 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36612 wxPyEndAllowThreads(__tstate);
36613 if (PyErr_Occurred()) SWIG_fail;
36614 }
36615 resultobj = SWIG_Py_Void();
36616 return resultobj;
36617fail:
36618 return NULL;
36619}
36620
36621
36622SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36623 PyObject *resultobj = 0;
36624 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36625 int arg2 ;
36626 int arg3 ;
36627 int arg4 ;
36628 int arg5 ;
36629 double arg6 ;
36630 void *argp1 = 0 ;
36631 int res1 = 0 ;
36632 int val2 ;
36633 int ecode2 = 0 ;
36634 int val3 ;
36635 int ecode3 = 0 ;
36636 int val4 ;
36637 int ecode4 = 0 ;
36638 int val5 ;
36639 int ecode5 = 0 ;
36640 double val6 ;
36641 int ecode6 = 0 ;
36642 PyObject * obj0 = 0 ;
36643 PyObject * obj1 = 0 ;
36644 PyObject * obj2 = 0 ;
36645 PyObject * obj3 = 0 ;
36646 PyObject * obj4 = 0 ;
36647 PyObject * obj5 = 0 ;
36648 char * kwnames[] = {
36649 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36650 };
36651
36652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36654 if (!SWIG_IsOK(res1)) {
36655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36656 }
36657 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36658 ecode2 = SWIG_AsVal_int(obj1, &val2);
36659 if (!SWIG_IsOK(ecode2)) {
36660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36661 }
36662 arg2 = static_cast< int >(val2);
36663 ecode3 = SWIG_AsVal_int(obj2, &val3);
36664 if (!SWIG_IsOK(ecode3)) {
36665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36666 }
36667 arg3 = static_cast< int >(val3);
36668 ecode4 = SWIG_AsVal_int(obj3, &val4);
36669 if (!SWIG_IsOK(ecode4)) {
36670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36671 }
36672 arg4 = static_cast< int >(val4);
36673 ecode5 = SWIG_AsVal_int(obj4, &val5);
36674 if (!SWIG_IsOK(ecode5)) {
36675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36676 }
36677 arg5 = static_cast< int >(val5);
36678 ecode6 = SWIG_AsVal_double(obj5, &val6);
36679 if (!SWIG_IsOK(ecode6)) {
36680 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36681 }
36682 arg6 = static_cast< double >(val6);
36683 {
36684 PyThreadState* __tstate = wxPyBeginAllowThreads();
36685 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36686 wxPyEndAllowThreads(__tstate);
36687 if (PyErr_Occurred()) SWIG_fail;
36688 }
36689 resultobj = SWIG_Py_Void();
36690 return resultobj;
36691fail:
36692 return NULL;
36693}
36694
36695
36696SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36697 PyObject *resultobj = 0;
36698 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36699 wxRect *arg2 = 0 ;
36700 double arg3 ;
36701 void *argp1 = 0 ;
36702 int res1 = 0 ;
36703 wxRect temp2 ;
36704 double val3 ;
36705 int ecode3 = 0 ;
36706 PyObject * obj0 = 0 ;
36707 PyObject * obj1 = 0 ;
36708 PyObject * obj2 = 0 ;
36709 char * kwnames[] = {
36710 (char *) "self",(char *) "r",(char *) "radius", NULL
36711 };
36712
36713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36715 if (!SWIG_IsOK(res1)) {
36716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36717 }
36718 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36719 {
36720 arg2 = &temp2;
36721 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36722 }
36723 ecode3 = SWIG_AsVal_double(obj2, &val3);
36724 if (!SWIG_IsOK(ecode3)) {
36725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36726 }
36727 arg3 = static_cast< double >(val3);
36728 {
36729 PyThreadState* __tstate = wxPyBeginAllowThreads();
36730 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36731 wxPyEndAllowThreads(__tstate);
36732 if (PyErr_Occurred()) SWIG_fail;
36733 }
36734 resultobj = SWIG_Py_Void();
36735 return resultobj;
36736fail:
36737 return NULL;
36738}
36739
36740
36741SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36742 PyObject *resultobj = 0;
36743 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36744 wxPoint *arg2 = 0 ;
36745 wxSize *arg3 = 0 ;
36746 double arg4 ;
36747 void *argp1 = 0 ;
36748 int res1 = 0 ;
36749 wxPoint temp2 ;
36750 wxSize temp3 ;
36751 double val4 ;
36752 int ecode4 = 0 ;
36753 PyObject * obj0 = 0 ;
36754 PyObject * obj1 = 0 ;
36755 PyObject * obj2 = 0 ;
36756 PyObject * obj3 = 0 ;
36757 char * kwnames[] = {
36758 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36759 };
36760
36761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36763 if (!SWIG_IsOK(res1)) {
36764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36765 }
36766 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36767 {
36768 arg2 = &temp2;
36769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36770 }
36771 {
36772 arg3 = &temp3;
36773 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36774 }
36775 ecode4 = SWIG_AsVal_double(obj3, &val4);
36776 if (!SWIG_IsOK(ecode4)) {
36777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36778 }
36779 arg4 = static_cast< double >(val4);
36780 {
36781 PyThreadState* __tstate = wxPyBeginAllowThreads();
36782 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
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_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36794 PyObject *resultobj = 0;
36795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36796 int arg2 ;
36797 int arg3 ;
36798 int arg4 ;
36799 void *argp1 = 0 ;
36800 int res1 = 0 ;
36801 int val2 ;
36802 int ecode2 = 0 ;
36803 int val3 ;
36804 int ecode3 = 0 ;
36805 int val4 ;
36806 int ecode4 = 0 ;
36807 PyObject * obj0 = 0 ;
36808 PyObject * obj1 = 0 ;
36809 PyObject * obj2 = 0 ;
36810 PyObject * obj3 = 0 ;
36811 char * kwnames[] = {
36812 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36813 };
36814
36815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36817 if (!SWIG_IsOK(res1)) {
36818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36819 }
36820 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36821 ecode2 = SWIG_AsVal_int(obj1, &val2);
36822 if (!SWIG_IsOK(ecode2)) {
36823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36824 }
36825 arg2 = static_cast< int >(val2);
36826 ecode3 = SWIG_AsVal_int(obj2, &val3);
36827 if (!SWIG_IsOK(ecode3)) {
36828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36829 }
36830 arg3 = static_cast< int >(val3);
36831 ecode4 = SWIG_AsVal_int(obj3, &val4);
36832 if (!SWIG_IsOK(ecode4)) {
36833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36834 }
36835 arg4 = static_cast< int >(val4);
36836 {
36837 PyThreadState* __tstate = wxPyBeginAllowThreads();
36838 (arg1)->DrawCircle(arg2,arg3,arg4);
36839 wxPyEndAllowThreads(__tstate);
36840 if (PyErr_Occurred()) SWIG_fail;
36841 }
36842 resultobj = SWIG_Py_Void();
36843 return resultobj;
36844fail:
36845 return NULL;
36846}
36847
36848
36849SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36850 PyObject *resultobj = 0;
36851 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36852 wxPoint *arg2 = 0 ;
36853 int arg3 ;
36854 void *argp1 = 0 ;
36855 int res1 = 0 ;
36856 wxPoint temp2 ;
36857 int val3 ;
36858 int ecode3 = 0 ;
36859 PyObject * obj0 = 0 ;
36860 PyObject * obj1 = 0 ;
36861 PyObject * obj2 = 0 ;
36862 char * kwnames[] = {
36863 (char *) "self",(char *) "pt",(char *) "radius", NULL
36864 };
36865
36866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36868 if (!SWIG_IsOK(res1)) {
36869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36870 }
36871 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36872 {
36873 arg2 = &temp2;
36874 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36875 }
36876 ecode3 = SWIG_AsVal_int(obj2, &val3);
36877 if (!SWIG_IsOK(ecode3)) {
36878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36879 }
36880 arg3 = static_cast< int >(val3);
36881 {
36882 PyThreadState* __tstate = wxPyBeginAllowThreads();
36883 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36884 wxPyEndAllowThreads(__tstate);
36885 if (PyErr_Occurred()) SWIG_fail;
36886 }
36887 resultobj = SWIG_Py_Void();
36888 return resultobj;
36889fail:
36890 return NULL;
36891}
36892
36893
36894SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36895 PyObject *resultobj = 0;
36896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36897 int arg2 ;
36898 int arg3 ;
36899 int arg4 ;
36900 int arg5 ;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 int val2 ;
36904 int ecode2 = 0 ;
36905 int val3 ;
36906 int ecode3 = 0 ;
36907 int val4 ;
36908 int ecode4 = 0 ;
36909 int val5 ;
36910 int ecode5 = 0 ;
36911 PyObject * obj0 = 0 ;
36912 PyObject * obj1 = 0 ;
36913 PyObject * obj2 = 0 ;
36914 PyObject * obj3 = 0 ;
36915 PyObject * obj4 = 0 ;
36916 char * kwnames[] = {
36917 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36918 };
36919
36920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36922 if (!SWIG_IsOK(res1)) {
36923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36924 }
36925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36926 ecode2 = SWIG_AsVal_int(obj1, &val2);
36927 if (!SWIG_IsOK(ecode2)) {
36928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36929 }
36930 arg2 = static_cast< int >(val2);
36931 ecode3 = SWIG_AsVal_int(obj2, &val3);
36932 if (!SWIG_IsOK(ecode3)) {
36933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36934 }
36935 arg3 = static_cast< int >(val3);
36936 ecode4 = SWIG_AsVal_int(obj3, &val4);
36937 if (!SWIG_IsOK(ecode4)) {
36938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36939 }
36940 arg4 = static_cast< int >(val4);
36941 ecode5 = SWIG_AsVal_int(obj4, &val5);
36942 if (!SWIG_IsOK(ecode5)) {
36943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36944 }
36945 arg5 = static_cast< int >(val5);
36946 {
36947 PyThreadState* __tstate = wxPyBeginAllowThreads();
36948 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36949 wxPyEndAllowThreads(__tstate);
36950 if (PyErr_Occurred()) SWIG_fail;
36951 }
36952 resultobj = SWIG_Py_Void();
36953 return resultobj;
36954fail:
36955 return NULL;
36956}
36957
36958
36959SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36960 PyObject *resultobj = 0;
36961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36962 wxRect *arg2 = 0 ;
36963 void *argp1 = 0 ;
36964 int res1 = 0 ;
36965 wxRect temp2 ;
36966 PyObject * obj0 = 0 ;
36967 PyObject * obj1 = 0 ;
36968 char * kwnames[] = {
36969 (char *) "self",(char *) "rect", NULL
36970 };
36971
36972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36974 if (!SWIG_IsOK(res1)) {
36975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36976 }
36977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36978 {
36979 arg2 = &temp2;
36980 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36981 }
36982 {
36983 PyThreadState* __tstate = wxPyBeginAllowThreads();
36984 (arg1)->DrawEllipse((wxRect const &)*arg2);
36985 wxPyEndAllowThreads(__tstate);
36986 if (PyErr_Occurred()) SWIG_fail;
36987 }
36988 resultobj = SWIG_Py_Void();
36989 return resultobj;
36990fail:
36991 return NULL;
36992}
36993
36994
36995SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36996 PyObject *resultobj = 0;
36997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36998 wxPoint *arg2 = 0 ;
36999 wxSize *arg3 = 0 ;
37000 void *argp1 = 0 ;
37001 int res1 = 0 ;
37002 wxPoint temp2 ;
37003 wxSize temp3 ;
37004 PyObject * obj0 = 0 ;
37005 PyObject * obj1 = 0 ;
37006 PyObject * obj2 = 0 ;
37007 char * kwnames[] = {
37008 (char *) "self",(char *) "pt",(char *) "sz", NULL
37009 };
37010
37011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37013 if (!SWIG_IsOK(res1)) {
37014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37015 }
37016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37017 {
37018 arg2 = &temp2;
37019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37020 }
37021 {
37022 arg3 = &temp3;
37023 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37024 }
37025 {
37026 PyThreadState* __tstate = wxPyBeginAllowThreads();
37027 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37028 wxPyEndAllowThreads(__tstate);
37029 if (PyErr_Occurred()) SWIG_fail;
37030 }
37031 resultobj = SWIG_Py_Void();
37032 return resultobj;
37033fail:
37034 return NULL;
37035}
37036
37037
37038SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37039 PyObject *resultobj = 0;
37040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37041 wxIcon *arg2 = 0 ;
37042 int arg3 ;
37043 int arg4 ;
37044 void *argp1 = 0 ;
37045 int res1 = 0 ;
37046 void *argp2 = 0 ;
37047 int res2 = 0 ;
37048 int val3 ;
37049 int ecode3 = 0 ;
37050 int val4 ;
37051 int ecode4 = 0 ;
37052 PyObject * obj0 = 0 ;
37053 PyObject * obj1 = 0 ;
37054 PyObject * obj2 = 0 ;
37055 PyObject * obj3 = 0 ;
37056 char * kwnames[] = {
37057 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37058 };
37059
37060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37062 if (!SWIG_IsOK(res1)) {
37063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37064 }
37065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37067 if (!SWIG_IsOK(res2)) {
37068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37069 }
37070 if (!argp2) {
37071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37072 }
37073 arg2 = reinterpret_cast< wxIcon * >(argp2);
37074 ecode3 = SWIG_AsVal_int(obj2, &val3);
37075 if (!SWIG_IsOK(ecode3)) {
37076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37077 }
37078 arg3 = static_cast< int >(val3);
37079 ecode4 = SWIG_AsVal_int(obj3, &val4);
37080 if (!SWIG_IsOK(ecode4)) {
37081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37082 }
37083 arg4 = static_cast< int >(val4);
37084 {
37085 PyThreadState* __tstate = wxPyBeginAllowThreads();
37086 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37087 wxPyEndAllowThreads(__tstate);
37088 if (PyErr_Occurred()) SWIG_fail;
37089 }
37090 resultobj = SWIG_Py_Void();
37091 return resultobj;
37092fail:
37093 return NULL;
37094}
37095
37096
37097SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37098 PyObject *resultobj = 0;
37099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37100 wxIcon *arg2 = 0 ;
37101 wxPoint *arg3 = 0 ;
37102 void *argp1 = 0 ;
37103 int res1 = 0 ;
37104 void *argp2 = 0 ;
37105 int res2 = 0 ;
37106 wxPoint temp3 ;
37107 PyObject * obj0 = 0 ;
37108 PyObject * obj1 = 0 ;
37109 PyObject * obj2 = 0 ;
37110 char * kwnames[] = {
37111 (char *) "self",(char *) "icon",(char *) "pt", NULL
37112 };
37113
37114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37116 if (!SWIG_IsOK(res1)) {
37117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37118 }
37119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37121 if (!SWIG_IsOK(res2)) {
37122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37123 }
37124 if (!argp2) {
37125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37126 }
37127 arg2 = reinterpret_cast< wxIcon * >(argp2);
37128 {
37129 arg3 = &temp3;
37130 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37131 }
37132 {
37133 PyThreadState* __tstate = wxPyBeginAllowThreads();
37134 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37135 wxPyEndAllowThreads(__tstate);
37136 if (PyErr_Occurred()) SWIG_fail;
37137 }
37138 resultobj = SWIG_Py_Void();
37139 return resultobj;
37140fail:
37141 return NULL;
37142}
37143
37144
37145SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37146 PyObject *resultobj = 0;
37147 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37148 wxBitmap *arg2 = 0 ;
37149 int arg3 ;
37150 int arg4 ;
37151 bool arg5 = (bool) false ;
37152 void *argp1 = 0 ;
37153 int res1 = 0 ;
37154 void *argp2 = 0 ;
37155 int res2 = 0 ;
37156 int val3 ;
37157 int ecode3 = 0 ;
37158 int val4 ;
37159 int ecode4 = 0 ;
37160 bool val5 ;
37161 int ecode5 = 0 ;
37162 PyObject * obj0 = 0 ;
37163 PyObject * obj1 = 0 ;
37164 PyObject * obj2 = 0 ;
37165 PyObject * obj3 = 0 ;
37166 PyObject * obj4 = 0 ;
37167 char * kwnames[] = {
37168 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37169 };
37170
37171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37173 if (!SWIG_IsOK(res1)) {
37174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37175 }
37176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37178 if (!SWIG_IsOK(res2)) {
37179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37180 }
37181 if (!argp2) {
37182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37183 }
37184 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37185 ecode3 = SWIG_AsVal_int(obj2, &val3);
37186 if (!SWIG_IsOK(ecode3)) {
37187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37188 }
37189 arg3 = static_cast< int >(val3);
37190 ecode4 = SWIG_AsVal_int(obj3, &val4);
37191 if (!SWIG_IsOK(ecode4)) {
37192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37193 }
37194 arg4 = static_cast< int >(val4);
37195 if (obj4) {
37196 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37197 if (!SWIG_IsOK(ecode5)) {
37198 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37199 }
37200 arg5 = static_cast< bool >(val5);
37201 }
37202 {
37203 PyThreadState* __tstate = wxPyBeginAllowThreads();
37204 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37205 wxPyEndAllowThreads(__tstate);
37206 if (PyErr_Occurred()) SWIG_fail;
37207 }
37208 resultobj = SWIG_Py_Void();
37209 return resultobj;
37210fail:
37211 return NULL;
37212}
37213
37214
37215SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37216 PyObject *resultobj = 0;
37217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37218 wxBitmap *arg2 = 0 ;
37219 wxPoint *arg3 = 0 ;
37220 bool arg4 = (bool) false ;
37221 void *argp1 = 0 ;
37222 int res1 = 0 ;
37223 void *argp2 = 0 ;
37224 int res2 = 0 ;
37225 wxPoint temp3 ;
37226 bool val4 ;
37227 int ecode4 = 0 ;
37228 PyObject * obj0 = 0 ;
37229 PyObject * obj1 = 0 ;
37230 PyObject * obj2 = 0 ;
37231 PyObject * obj3 = 0 ;
37232 char * kwnames[] = {
37233 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37234 };
37235
37236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37238 if (!SWIG_IsOK(res1)) {
37239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37240 }
37241 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37243 if (!SWIG_IsOK(res2)) {
37244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37245 }
37246 if (!argp2) {
37247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37248 }
37249 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37250 {
37251 arg3 = &temp3;
37252 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37253 }
37254 if (obj3) {
37255 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37256 if (!SWIG_IsOK(ecode4)) {
37257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37258 }
37259 arg4 = static_cast< bool >(val4);
37260 }
37261 {
37262 PyThreadState* __tstate = wxPyBeginAllowThreads();
37263 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37264 wxPyEndAllowThreads(__tstate);
37265 if (PyErr_Occurred()) SWIG_fail;
37266 }
37267 resultobj = SWIG_Py_Void();
37268 return resultobj;
37269fail:
37270 return NULL;
37271}
37272
37273
37274SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37275 PyObject *resultobj = 0;
37276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37277 wxString *arg2 = 0 ;
37278 int arg3 ;
37279 int arg4 ;
37280 void *argp1 = 0 ;
37281 int res1 = 0 ;
37282 bool temp2 = false ;
37283 int val3 ;
37284 int ecode3 = 0 ;
37285 int val4 ;
37286 int ecode4 = 0 ;
37287 PyObject * obj0 = 0 ;
37288 PyObject * obj1 = 0 ;
37289 PyObject * obj2 = 0 ;
37290 PyObject * obj3 = 0 ;
37291 char * kwnames[] = {
37292 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37293 };
37294
37295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37297 if (!SWIG_IsOK(res1)) {
37298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37299 }
37300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37301 {
37302 arg2 = wxString_in_helper(obj1);
37303 if (arg2 == NULL) SWIG_fail;
37304 temp2 = true;
37305 }
37306 ecode3 = SWIG_AsVal_int(obj2, &val3);
37307 if (!SWIG_IsOK(ecode3)) {
37308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37309 }
37310 arg3 = static_cast< int >(val3);
37311 ecode4 = SWIG_AsVal_int(obj3, &val4);
37312 if (!SWIG_IsOK(ecode4)) {
37313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37314 }
37315 arg4 = static_cast< int >(val4);
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 resultobj = SWIG_Py_Void();
37323 {
37324 if (temp2)
37325 delete arg2;
37326 }
37327 return resultobj;
37328fail:
37329 {
37330 if (temp2)
37331 delete arg2;
37332 }
37333 return NULL;
37334}
37335
37336
37337SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37338 PyObject *resultobj = 0;
37339 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37340 wxString *arg2 = 0 ;
37341 wxPoint *arg3 = 0 ;
37342 void *argp1 = 0 ;
37343 int res1 = 0 ;
37344 bool temp2 = false ;
37345 wxPoint temp3 ;
37346 PyObject * obj0 = 0 ;
37347 PyObject * obj1 = 0 ;
37348 PyObject * obj2 = 0 ;
37349 char * kwnames[] = {
37350 (char *) "self",(char *) "text",(char *) "pt", NULL
37351 };
37352
37353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37355 if (!SWIG_IsOK(res1)) {
37356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37357 }
37358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37359 {
37360 arg2 = wxString_in_helper(obj1);
37361 if (arg2 == NULL) SWIG_fail;
37362 temp2 = true;
37363 }
37364 {
37365 arg3 = &temp3;
37366 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37367 }
37368 {
37369 PyThreadState* __tstate = wxPyBeginAllowThreads();
37370 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37371 wxPyEndAllowThreads(__tstate);
37372 if (PyErr_Occurred()) SWIG_fail;
37373 }
37374 resultobj = SWIG_Py_Void();
37375 {
37376 if (temp2)
37377 delete arg2;
37378 }
37379 return resultobj;
37380fail:
37381 {
37382 if (temp2)
37383 delete arg2;
37384 }
37385 return NULL;
37386}
37387
37388
37389SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37390 PyObject *resultobj = 0;
37391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37392 wxString *arg2 = 0 ;
37393 int arg3 ;
37394 int arg4 ;
37395 double arg5 ;
37396 void *argp1 = 0 ;
37397 int res1 = 0 ;
37398 bool temp2 = false ;
37399 int val3 ;
37400 int ecode3 = 0 ;
37401 int val4 ;
37402 int ecode4 = 0 ;
37403 double val5 ;
37404 int ecode5 = 0 ;
37405 PyObject * obj0 = 0 ;
37406 PyObject * obj1 = 0 ;
37407 PyObject * obj2 = 0 ;
37408 PyObject * obj3 = 0 ;
37409 PyObject * obj4 = 0 ;
37410 char * kwnames[] = {
37411 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37412 };
37413
37414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37416 if (!SWIG_IsOK(res1)) {
37417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37418 }
37419 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37420 {
37421 arg2 = wxString_in_helper(obj1);
37422 if (arg2 == NULL) SWIG_fail;
37423 temp2 = true;
37424 }
37425 ecode3 = SWIG_AsVal_int(obj2, &val3);
37426 if (!SWIG_IsOK(ecode3)) {
37427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37428 }
37429 arg3 = static_cast< int >(val3);
37430 ecode4 = SWIG_AsVal_int(obj3, &val4);
37431 if (!SWIG_IsOK(ecode4)) {
37432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37433 }
37434 arg4 = static_cast< int >(val4);
37435 ecode5 = SWIG_AsVal_double(obj4, &val5);
37436 if (!SWIG_IsOK(ecode5)) {
37437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37438 }
37439 arg5 = static_cast< double >(val5);
37440 {
37441 PyThreadState* __tstate = wxPyBeginAllowThreads();
37442 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37443 wxPyEndAllowThreads(__tstate);
37444 if (PyErr_Occurred()) SWIG_fail;
37445 }
37446 resultobj = SWIG_Py_Void();
37447 {
37448 if (temp2)
37449 delete arg2;
37450 }
37451 return resultobj;
37452fail:
37453 {
37454 if (temp2)
37455 delete arg2;
37456 }
37457 return NULL;
37458}
37459
37460
37461SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37462 PyObject *resultobj = 0;
37463 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37464 wxString *arg2 = 0 ;
37465 wxPoint *arg3 = 0 ;
37466 double arg4 ;
37467 void *argp1 = 0 ;
37468 int res1 = 0 ;
37469 bool temp2 = false ;
37470 wxPoint temp3 ;
37471 double val4 ;
37472 int ecode4 = 0 ;
37473 PyObject * obj0 = 0 ;
37474 PyObject * obj1 = 0 ;
37475 PyObject * obj2 = 0 ;
37476 PyObject * obj3 = 0 ;
37477 char * kwnames[] = {
37478 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37479 };
37480
37481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37483 if (!SWIG_IsOK(res1)) {
37484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37485 }
37486 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37487 {
37488 arg2 = wxString_in_helper(obj1);
37489 if (arg2 == NULL) SWIG_fail;
37490 temp2 = true;
37491 }
37492 {
37493 arg3 = &temp3;
37494 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37495 }
37496 ecode4 = SWIG_AsVal_double(obj3, &val4);
37497 if (!SWIG_IsOK(ecode4)) {
37498 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37499 }
37500 arg4 = static_cast< double >(val4);
37501 {
37502 PyThreadState* __tstate = wxPyBeginAllowThreads();
37503 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37504 wxPyEndAllowThreads(__tstate);
37505 if (PyErr_Occurred()) SWIG_fail;
37506 }
37507 resultobj = SWIG_Py_Void();
37508 {
37509 if (temp2)
37510 delete arg2;
37511 }
37512 return resultobj;
37513fail:
37514 {
37515 if (temp2)
37516 delete arg2;
37517 }
37518 return NULL;
37519}
37520
37521
37522SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37523 PyObject *resultobj = 0;
37524 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37525 int arg2 ;
37526 wxPoint *arg3 = (wxPoint *) 0 ;
37527 int arg4 = (int) 0 ;
37528 int arg5 = (int) 0 ;
37529 void *argp1 = 0 ;
37530 int res1 = 0 ;
37531 int val4 ;
37532 int ecode4 = 0 ;
37533 int val5 ;
37534 int ecode5 = 0 ;
37535 PyObject * obj0 = 0 ;
37536 PyObject * obj1 = 0 ;
37537 PyObject * obj2 = 0 ;
37538 PyObject * obj3 = 0 ;
37539 char * kwnames[] = {
37540 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37541 };
37542
37543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37545 if (!SWIG_IsOK(res1)) {
37546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37547 }
37548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37549 {
37550 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37551 if (arg3 == NULL) SWIG_fail;
37552 }
37553 if (obj2) {
37554 ecode4 = SWIG_AsVal_int(obj2, &val4);
37555 if (!SWIG_IsOK(ecode4)) {
37556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37557 }
37558 arg4 = static_cast< int >(val4);
37559 }
37560 if (obj3) {
37561 ecode5 = SWIG_AsVal_int(obj3, &val5);
37562 if (!SWIG_IsOK(ecode5)) {
37563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37564 }
37565 arg5 = static_cast< int >(val5);
37566 }
37567 {
37568 PyThreadState* __tstate = wxPyBeginAllowThreads();
37569 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37570 wxPyEndAllowThreads(__tstate);
37571 if (PyErr_Occurred()) SWIG_fail;
37572 }
37573 resultobj = SWIG_Py_Void();
37574 {
37575 if (arg3) delete [] arg3;
37576 }
37577 return resultobj;
37578fail:
37579 {
37580 if (arg3) delete [] arg3;
37581 }
37582 return NULL;
37583}
37584
37585
37586SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37587 PyObject *resultobj = 0;
37588 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37589 int arg2 ;
37590 wxPoint *arg3 = (wxPoint *) 0 ;
37591 int arg4 = (int) 0 ;
37592 int arg5 = (int) 0 ;
37593 int arg6 = (int) wxODDEVEN_RULE ;
37594 void *argp1 = 0 ;
37595 int res1 = 0 ;
37596 int val4 ;
37597 int ecode4 = 0 ;
37598 int val5 ;
37599 int ecode5 = 0 ;
37600 int val6 ;
37601 int ecode6 = 0 ;
37602 PyObject * obj0 = 0 ;
37603 PyObject * obj1 = 0 ;
37604 PyObject * obj2 = 0 ;
37605 PyObject * obj3 = 0 ;
37606 PyObject * obj4 = 0 ;
37607 char * kwnames[] = {
37608 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37609 };
37610
37611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37613 if (!SWIG_IsOK(res1)) {
37614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37615 }
37616 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37617 {
37618 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37619 if (arg3 == NULL) SWIG_fail;
37620 }
37621 if (obj2) {
37622 ecode4 = SWIG_AsVal_int(obj2, &val4);
37623 if (!SWIG_IsOK(ecode4)) {
37624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37625 }
37626 arg4 = static_cast< int >(val4);
37627 }
37628 if (obj3) {
37629 ecode5 = SWIG_AsVal_int(obj3, &val5);
37630 if (!SWIG_IsOK(ecode5)) {
37631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37632 }
37633 arg5 = static_cast< int >(val5);
37634 }
37635 if (obj4) {
37636 ecode6 = SWIG_AsVal_int(obj4, &val6);
37637 if (!SWIG_IsOK(ecode6)) {
37638 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37639 }
37640 arg6 = static_cast< int >(val6);
37641 }
37642 {
37643 PyThreadState* __tstate = wxPyBeginAllowThreads();
37644 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37645 wxPyEndAllowThreads(__tstate);
37646 if (PyErr_Occurred()) SWIG_fail;
37647 }
37648 resultobj = SWIG_Py_Void();
37649 {
37650 if (arg3) delete [] arg3;
37651 }
37652 return resultobj;
37653fail:
37654 {
37655 if (arg3) delete [] arg3;
37656 }
37657 return NULL;
37658}
37659
37660
37661SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37662 PyObject *resultobj = 0;
37663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37664 wxString *arg2 = 0 ;
37665 wxRect *arg3 = 0 ;
37666 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37667 int arg5 = (int) -1 ;
37668 void *argp1 = 0 ;
37669 int res1 = 0 ;
37670 bool temp2 = false ;
37671 wxRect temp3 ;
37672 int val4 ;
37673 int ecode4 = 0 ;
37674 int val5 ;
37675 int ecode5 = 0 ;
37676 PyObject * obj0 = 0 ;
37677 PyObject * obj1 = 0 ;
37678 PyObject * obj2 = 0 ;
37679 PyObject * obj3 = 0 ;
37680 PyObject * obj4 = 0 ;
37681 char * kwnames[] = {
37682 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37683 };
37684
37685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37687 if (!SWIG_IsOK(res1)) {
37688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37689 }
37690 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37691 {
37692 arg2 = wxString_in_helper(obj1);
37693 if (arg2 == NULL) SWIG_fail;
37694 temp2 = true;
37695 }
37696 {
37697 arg3 = &temp3;
37698 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37699 }
37700 if (obj3) {
37701 ecode4 = SWIG_AsVal_int(obj3, &val4);
37702 if (!SWIG_IsOK(ecode4)) {
37703 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37704 }
37705 arg4 = static_cast< int >(val4);
37706 }
37707 if (obj4) {
37708 ecode5 = SWIG_AsVal_int(obj4, &val5);
37709 if (!SWIG_IsOK(ecode5)) {
37710 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37711 }
37712 arg5 = static_cast< int >(val5);
37713 }
37714 {
37715 PyThreadState* __tstate = wxPyBeginAllowThreads();
37716 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
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_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37736 PyObject *resultobj = 0;
37737 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37738 wxString *arg2 = 0 ;
37739 wxBitmap *arg3 = 0 ;
37740 wxRect *arg4 = 0 ;
37741 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37742 int arg6 = (int) -1 ;
37743 void *argp1 = 0 ;
37744 int res1 = 0 ;
37745 bool temp2 = false ;
37746 void *argp3 = 0 ;
37747 int res3 = 0 ;
37748 wxRect temp4 ;
37749 int val5 ;
37750 int ecode5 = 0 ;
37751 int val6 ;
37752 int ecode6 = 0 ;
37753 PyObject * obj0 = 0 ;
37754 PyObject * obj1 = 0 ;
37755 PyObject * obj2 = 0 ;
37756 PyObject * obj3 = 0 ;
37757 PyObject * obj4 = 0 ;
37758 PyObject * obj5 = 0 ;
37759 char * kwnames[] = {
37760 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37761 };
37762
37763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37765 if (!SWIG_IsOK(res1)) {
37766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37767 }
37768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37769 {
37770 arg2 = wxString_in_helper(obj1);
37771 if (arg2 == NULL) SWIG_fail;
37772 temp2 = true;
37773 }
37774 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37775 if (!SWIG_IsOK(res3)) {
37776 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37777 }
37778 if (!argp3) {
37779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37780 }
37781 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37782 {
37783 arg4 = &temp4;
37784 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37785 }
37786 if (obj4) {
37787 ecode5 = SWIG_AsVal_int(obj4, &val5);
37788 if (!SWIG_IsOK(ecode5)) {
37789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37790 }
37791 arg5 = static_cast< int >(val5);
37792 }
37793 if (obj5) {
37794 ecode6 = SWIG_AsVal_int(obj5, &val6);
37795 if (!SWIG_IsOK(ecode6)) {
37796 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37797 }
37798 arg6 = static_cast< int >(val6);
37799 }
37800 {
37801 PyThreadState* __tstate = wxPyBeginAllowThreads();
37802 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37803 wxPyEndAllowThreads(__tstate);
37804 if (PyErr_Occurred()) SWIG_fail;
37805 }
37806 resultobj = SWIG_Py_Void();
37807 {
37808 if (temp2)
37809 delete arg2;
37810 }
37811 return resultobj;
37812fail:
37813 {
37814 if (temp2)
37815 delete arg2;
37816 }
37817 return NULL;
37818}
37819
37820
37821SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37822 PyObject *resultobj = 0;
37823 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37824 int arg2 ;
37825 wxPoint *arg3 = (wxPoint *) 0 ;
37826 void *argp1 = 0 ;
37827 int res1 = 0 ;
37828 PyObject * obj0 = 0 ;
37829 PyObject * obj1 = 0 ;
37830 char * kwnames[] = {
37831 (char *) "self",(char *) "points", NULL
37832 };
37833
37834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37836 if (!SWIG_IsOK(res1)) {
37837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37838 }
37839 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37840 {
37841 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37842 if (arg3 == NULL) SWIG_fail;
37843 }
37844 {
37845 PyThreadState* __tstate = wxPyBeginAllowThreads();
37846 (arg1)->DrawSpline(arg2,arg3);
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 resultobj = SWIG_Py_Void();
37851 {
37852 if (arg3) delete [] arg3;
37853 }
37854 return resultobj;
37855fail:
37856 {
37857 if (arg3) delete [] arg3;
37858 }
37859 return NULL;
37860}
37861
37862
37863SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37864 PyObject *resultobj = 0;
37865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37866 void *argp1 = 0 ;
37867 int res1 = 0 ;
37868 PyObject *swig_obj[1] ;
37869
37870 if (!args) SWIG_fail;
37871 swig_obj[0] = args;
37872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37873 if (!SWIG_IsOK(res1)) {
37874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37875 }
37876 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37877 {
37878 PyThreadState* __tstate = wxPyBeginAllowThreads();
37879 (arg1)->Clear();
37880 wxPyEndAllowThreads(__tstate);
37881 if (PyErr_Occurred()) SWIG_fail;
37882 }
37883 resultobj = SWIG_Py_Void();
37884 return resultobj;
37885fail:
37886 return NULL;
37887}
37888
37889
37890SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37891 PyObject *resultobj = 0;
37892 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37893 wxFont *arg2 = 0 ;
37894 void *argp1 = 0 ;
37895 int res1 = 0 ;
37896 void *argp2 = 0 ;
37897 int res2 = 0 ;
37898 PyObject * obj0 = 0 ;
37899 PyObject * obj1 = 0 ;
37900 char * kwnames[] = {
37901 (char *) "self",(char *) "font", NULL
37902 };
37903
37904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37906 if (!SWIG_IsOK(res1)) {
37907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37908 }
37909 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37911 if (!SWIG_IsOK(res2)) {
37912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37913 }
37914 if (!argp2) {
37915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37916 }
37917 arg2 = reinterpret_cast< wxFont * >(argp2);
37918 {
37919 PyThreadState* __tstate = wxPyBeginAllowThreads();
37920 (arg1)->SetFont((wxFont const &)*arg2);
37921 wxPyEndAllowThreads(__tstate);
37922 if (PyErr_Occurred()) SWIG_fail;
37923 }
37924 resultobj = SWIG_Py_Void();
37925 return resultobj;
37926fail:
37927 return NULL;
37928}
37929
37930
37931SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37932 PyObject *resultobj = 0;
37933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37934 wxPen *arg2 = 0 ;
37935 void *argp1 = 0 ;
37936 int res1 = 0 ;
37937 void *argp2 = 0 ;
37938 int res2 = 0 ;
37939 PyObject * obj0 = 0 ;
37940 PyObject * obj1 = 0 ;
37941 char * kwnames[] = {
37942 (char *) "self",(char *) "pen", NULL
37943 };
37944
37945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37947 if (!SWIG_IsOK(res1)) {
37948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37949 }
37950 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37952 if (!SWIG_IsOK(res2)) {
37953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37954 }
37955 if (!argp2) {
37956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37957 }
37958 arg2 = reinterpret_cast< wxPen * >(argp2);
37959 {
37960 PyThreadState* __tstate = wxPyBeginAllowThreads();
37961 (arg1)->SetPen((wxPen const &)*arg2);
37962 wxPyEndAllowThreads(__tstate);
37963 if (PyErr_Occurred()) SWIG_fail;
37964 }
37965 resultobj = SWIG_Py_Void();
37966 return resultobj;
37967fail:
37968 return NULL;
37969}
37970
37971
37972SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37973 PyObject *resultobj = 0;
37974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37975 wxBrush *arg2 = 0 ;
37976 void *argp1 = 0 ;
37977 int res1 = 0 ;
37978 void *argp2 = 0 ;
37979 int res2 = 0 ;
37980 PyObject * obj0 = 0 ;
37981 PyObject * obj1 = 0 ;
37982 char * kwnames[] = {
37983 (char *) "self",(char *) "brush", NULL
37984 };
37985
37986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37988 if (!SWIG_IsOK(res1)) {
37989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37990 }
37991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37993 if (!SWIG_IsOK(res2)) {
37994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37995 }
37996 if (!argp2) {
37997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37998 }
37999 arg2 = reinterpret_cast< wxBrush * >(argp2);
38000 {
38001 PyThreadState* __tstate = wxPyBeginAllowThreads();
38002 (arg1)->SetBrush((wxBrush const &)*arg2);
38003 wxPyEndAllowThreads(__tstate);
38004 if (PyErr_Occurred()) SWIG_fail;
38005 }
38006 resultobj = SWIG_Py_Void();
38007 return resultobj;
38008fail:
38009 return NULL;
38010}
38011
38012
38013SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38014 PyObject *resultobj = 0;
38015 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38016 wxBrush *arg2 = 0 ;
38017 void *argp1 = 0 ;
38018 int res1 = 0 ;
38019 void *argp2 = 0 ;
38020 int res2 = 0 ;
38021 PyObject * obj0 = 0 ;
38022 PyObject * obj1 = 0 ;
38023 char * kwnames[] = {
38024 (char *) "self",(char *) "brush", NULL
38025 };
38026
38027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38029 if (!SWIG_IsOK(res1)) {
38030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38031 }
38032 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38034 if (!SWIG_IsOK(res2)) {
38035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38036 }
38037 if (!argp2) {
38038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38039 }
38040 arg2 = reinterpret_cast< wxBrush * >(argp2);
38041 {
38042 PyThreadState* __tstate = wxPyBeginAllowThreads();
38043 (arg1)->SetBackground((wxBrush const &)*arg2);
38044 wxPyEndAllowThreads(__tstate);
38045 if (PyErr_Occurred()) SWIG_fail;
38046 }
38047 resultobj = SWIG_Py_Void();
38048 return resultobj;
38049fail:
38050 return NULL;
38051}
38052
38053
38054SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38055 PyObject *resultobj = 0;
38056 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38057 int arg2 ;
38058 void *argp1 = 0 ;
38059 int res1 = 0 ;
38060 int val2 ;
38061 int ecode2 = 0 ;
38062 PyObject * obj0 = 0 ;
38063 PyObject * obj1 = 0 ;
38064 char * kwnames[] = {
38065 (char *) "self",(char *) "mode", NULL
38066 };
38067
38068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38072 }
38073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38074 ecode2 = SWIG_AsVal_int(obj1, &val2);
38075 if (!SWIG_IsOK(ecode2)) {
38076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38077 }
38078 arg2 = static_cast< int >(val2);
38079 {
38080 PyThreadState* __tstate = wxPyBeginAllowThreads();
38081 (arg1)->SetBackgroundMode(arg2);
38082 wxPyEndAllowThreads(__tstate);
38083 if (PyErr_Occurred()) SWIG_fail;
38084 }
38085 resultobj = SWIG_Py_Void();
38086 return resultobj;
38087fail:
38088 return NULL;
38089}
38090
38091
38092SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38093 PyObject *resultobj = 0;
38094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38095 wxPalette *arg2 = 0 ;
38096 void *argp1 = 0 ;
38097 int res1 = 0 ;
38098 void *argp2 = 0 ;
38099 int res2 = 0 ;
38100 PyObject * obj0 = 0 ;
38101 PyObject * obj1 = 0 ;
38102 char * kwnames[] = {
38103 (char *) "self",(char *) "palette", NULL
38104 };
38105
38106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38108 if (!SWIG_IsOK(res1)) {
38109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38110 }
38111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38113 if (!SWIG_IsOK(res2)) {
38114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38115 }
38116 if (!argp2) {
38117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38118 }
38119 arg2 = reinterpret_cast< wxPalette * >(argp2);
38120 {
38121 PyThreadState* __tstate = wxPyBeginAllowThreads();
38122 (arg1)->SetPalette((wxPalette const &)*arg2);
38123 wxPyEndAllowThreads(__tstate);
38124 if (PyErr_Occurred()) SWIG_fail;
38125 }
38126 resultobj = SWIG_Py_Void();
38127 return resultobj;
38128fail:
38129 return NULL;
38130}
38131
38132
38133SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38134 PyObject *resultobj = 0;
38135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38136 wxColour *arg2 = 0 ;
38137 void *argp1 = 0 ;
38138 int res1 = 0 ;
38139 wxColour temp2 ;
38140 PyObject * obj0 = 0 ;
38141 PyObject * obj1 = 0 ;
38142 char * kwnames[] = {
38143 (char *) "self",(char *) "colour", NULL
38144 };
38145
38146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38148 if (!SWIG_IsOK(res1)) {
38149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38150 }
38151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38152 {
38153 arg2 = &temp2;
38154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38155 }
38156 {
38157 PyThreadState* __tstate = wxPyBeginAllowThreads();
38158 (arg1)->SetTextForeground((wxColour const &)*arg2);
38159 wxPyEndAllowThreads(__tstate);
38160 if (PyErr_Occurred()) SWIG_fail;
38161 }
38162 resultobj = SWIG_Py_Void();
38163 return resultobj;
38164fail:
38165 return NULL;
38166}
38167
38168
38169SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38170 PyObject *resultobj = 0;
38171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38172 wxColour *arg2 = 0 ;
38173 void *argp1 = 0 ;
38174 int res1 = 0 ;
38175 wxColour temp2 ;
38176 PyObject * obj0 = 0 ;
38177 PyObject * obj1 = 0 ;
38178 char * kwnames[] = {
38179 (char *) "self",(char *) "colour", NULL
38180 };
38181
38182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38184 if (!SWIG_IsOK(res1)) {
38185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38186 }
38187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38188 {
38189 arg2 = &temp2;
38190 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38191 }
38192 {
38193 PyThreadState* __tstate = wxPyBeginAllowThreads();
38194 (arg1)->SetTextBackground((wxColour const &)*arg2);
38195 wxPyEndAllowThreads(__tstate);
38196 if (PyErr_Occurred()) SWIG_fail;
38197 }
38198 resultobj = SWIG_Py_Void();
38199 return resultobj;
38200fail:
38201 return NULL;
38202}
38203
38204
38205SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38206 PyObject *resultobj = 0;
38207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38208 int arg2 ;
38209 void *argp1 = 0 ;
38210 int res1 = 0 ;
38211 int val2 ;
38212 int ecode2 = 0 ;
38213 PyObject * obj0 = 0 ;
38214 PyObject * obj1 = 0 ;
38215 char * kwnames[] = {
38216 (char *) "self",(char *) "function", NULL
38217 };
38218
38219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38221 if (!SWIG_IsOK(res1)) {
38222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38223 }
38224 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38225 ecode2 = SWIG_AsVal_int(obj1, &val2);
38226 if (!SWIG_IsOK(ecode2)) {
38227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38228 }
38229 arg2 = static_cast< int >(val2);
38230 {
38231 PyThreadState* __tstate = wxPyBeginAllowThreads();
38232 (arg1)->SetLogicalFunction(arg2);
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 resultobj = SWIG_Py_Void();
38237 return resultobj;
38238fail:
38239 return NULL;
38240}
38241
38242
38243SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38244 PyObject *obj;
38245 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38246 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38247 return SWIG_Py_Void();
38248}
38249
38250SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38251 return SWIG_Python_InitShadowInstance(args);
38252}
38253
38254static PyMethodDef SwigMethods[] = {
38255 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38256 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38257 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38258 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38259 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38260 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38261 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38262 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38263 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38264 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38265 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38266 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38267 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38268 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38269 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38270 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38271 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38272 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38273 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38274 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38275 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38276 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38277 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38278 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38279 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38280 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38281 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38282 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38283 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38285 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38286 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38287 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38288 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38289 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38290 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38291 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38292 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38293 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38294 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38295 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38296 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38297 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38299 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38300 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38301 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38302 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38303 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38305 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38306 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38307 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38308 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38309 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38310 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38311 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38312 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38313 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38314 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38316 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38317 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38318 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38319 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38320 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38321 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38322 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38323 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38324 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38326 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38328 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38329 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38330 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38331 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38332 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38333 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38334 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38335 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38336 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38337 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38342 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38345 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38347 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38349 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38352 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38353 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38354 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38355 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38357 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38358 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38359 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38360 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38361 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38362 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38363 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38364 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38365 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38366 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38367 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38368 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38369 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38370 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38371 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38373 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38374 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38375 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38376 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38379 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38380 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38381 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38382 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38383 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38384 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38385 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38386 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38387 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38388 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38389 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38390 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38391 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38392 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38393 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38394 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38395 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38396 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38397 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38400 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38401 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38402 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38403 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38404 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38405 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38406 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38408 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38409 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38413 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38414 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38415 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38416 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38417 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38418 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38421 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38422 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38423 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38425 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38426 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38427 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38428 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38429 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38430 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38431 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38432 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38433 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38434 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38436 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38437 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38438 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38440 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38441 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38443 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38445 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38446 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38447 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38448 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38453 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38454 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38460 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38464 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38465 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38468 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38469 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38470 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38474 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38475 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38478 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38479 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38481 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38482 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38483 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38484 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38485 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38486 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38487 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38488 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38489 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38490 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38491 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38492 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38493 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38494 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38495 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38496 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38497 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38499 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38500 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38501 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38502 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38503 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38504 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38505 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38514 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38515 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38517 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38518 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38519 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38520 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38521 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38522 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38523 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38524 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38525 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38526 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38527 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38528 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38529 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38532 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38533 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38534 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38537 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38543 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38548 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38549 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38551 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38556 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38557 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38558 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38560 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38561 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38562 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38563 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38564 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38565 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38566 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38567 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38568 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38569 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38570 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38571 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38572 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38584 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38585 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38586 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38588 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38589 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38591 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38592 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38593 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38594 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38597 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38598 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38599 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38600 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38601 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38602 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38603 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38604 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38605 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38606 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38607 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38608 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38609 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38611 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38614 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38615 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38616 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38617 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38618 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38619 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38620 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38621 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38623 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38624 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38631 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38632 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38633 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38635 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38639 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38640 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38641 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38642 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38643 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38644 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38650 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38651 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38652 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38656 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38657 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38675 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38691 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38692 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38702 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38704 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38705 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38706 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38713 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38714 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38715 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38716 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38717 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38722 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38723 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38724 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38725 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38734 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38735 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38736 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38737 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
38738 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38739 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38740 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38741 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38742 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38743 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38744 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38745 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38748 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38750 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38752 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38754 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38755 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38758 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38759 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38763 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38765 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38768 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38769 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38770 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38771 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38772 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38773 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38774 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38775 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38782 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38784 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38785 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38786 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38788 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38789 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38790 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38792 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38793 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38794 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38795 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38796 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38797 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38798 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38799 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38802 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38803 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38804 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38806 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38807 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38809 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38810 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38812 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
38813 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38818 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38819 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38820 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38821 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
38822 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
38824 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38825 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38826 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38828 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38829 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38831 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38832 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38833 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38835 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38836 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38838 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38841 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38842 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38843 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38845 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38846 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38848 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38849 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38851 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38852 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38854 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38855 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38856 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38857 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38858 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38859 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38860 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38861 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38862 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38863 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38864 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38865 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38866 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38867 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38868 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38869 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38870 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38871 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38872 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38873 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38875 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38877 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38883 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38884 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38885 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38886 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38887 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38888 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38889 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38890 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38891 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38892 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38893 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38894 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38898 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38901 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38904 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38905 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38906 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38907 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 38908 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 38909 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 38910 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38911 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38912 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38913 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38919 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38920 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38921 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38922 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38923 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38924 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38925 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38928 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38931 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38932 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38933 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38934 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38937 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38939 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38940 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38945 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38946 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38947 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38951 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38952 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38953 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38954 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38955 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 38956 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
38957 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38960 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 38967 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 38968 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
38969 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38970 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38971 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38972 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
38973 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38974 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38975 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38976 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38977 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38978 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38979 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38980 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38981 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38982 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38983 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38985 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38993 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38995 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38997 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
38998 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38999 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39000 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39001 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39002 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39003 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39004 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39006 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39008 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39009 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39010 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39011 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39012 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 39013 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39014 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39015 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39016 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 39017 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39018 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39019 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39020 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39021 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
39025 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39026 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39027 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39032 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39033 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39034 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39035 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39036 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
39037 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39038 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39039 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39040 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39041 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39042 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39043 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39052 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39053 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39055 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39056 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39057 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39058 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39059 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39060 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39061 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39062 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39063 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39064 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39065 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39066 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39067 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39068 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39069 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39070 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39071 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39072 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39073 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39074 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39075 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39076 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39077 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39078 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39080 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39082 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39083 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39084 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39085 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39086 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39088 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
39093 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39096 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39098 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39099 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39100 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39102 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39103 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39104 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39105 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39106 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39107 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39108 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39109 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39113 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39117 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39162 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39172 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39173 { NULL, NULL, 0, NULL }
39174};
39175
39176
39177/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39178
72ef6efb
RD
39179static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39180 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39181}
8e99bda9
RD
39182static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39183 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39184}
39185static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39186 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39187}
26c4d26f
RD
39188static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39189 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39190}
39191static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39192 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39193}
72ef6efb
RD
39194static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39195 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39196}
39197static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39198 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39199}
26c4d26f
RD
39200static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39201 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39202}
fc46b7f3
RD
39203static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39204 return (void *)((wxLocale *) ((wxPyLocale *) x));
39205}
70d7cb34
RD
39206static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39207 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39208}
39209static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39210 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39211}
39212static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39213 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39214}
39215static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39216 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39217}
39218static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39219 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39220}
39221static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39222 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39223}
0085ce49
RD
39224static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39225 return (void *)((wxGDIObject *) ((wxIcon *) x));
39226}
39227static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39228 return (void *)((wxGDIObject *) ((wxPalette *) x));
39229}
39230static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39231 return (void *)((wxGDIObject *) ((wxPen *) x));
39232}
39233static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39234 return (void *)((wxGDIObject *) ((wxFont *) x));
39235}
39236static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39237 return (void *)((wxGDIObject *) ((wxCursor *) x));
39238}
39239static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39240 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39241}
39242static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39243 return (void *)((wxGDIObject *) ((wxRegion *) x));
39244}
39245static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39246 return (void *)((wxGDIObject *) ((wxBrush *) x));
39247}
72ef6efb
RD
39248static void *_p_wxGCDCTo_p_wxDC(void *x) {
39249 return (void *)((wxDC *) ((wxGCDC *) x));
39250}
0085ce49
RD
39251static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39252 return (void *)((wxDC *) ((wxScreenDC *) x));
39253}
24f6c4e8 39254static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39255 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39256}
0085ce49
RD
39257static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39258 return (void *)((wxDC *) ((wxMirrorDC *) x));
39259}
0085ce49
RD
39260static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39261 return (void *)((wxDC *) ((wxWindowDC *) x));
39262}
26c4d26f
RD
39263static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39264 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39265}
0085ce49
RD
39266static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39267 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39268}
0085ce49 39269static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39270 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39271}
39272static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39273 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49 39274}
24f6c4e8 39275static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39276 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39277}
39278static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39279 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39280}
0085ce49
RD
39281static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39282 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39283}
39284static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39285 return (void *)((wxDC *) ((wxPrinterDC *) x));
39286}
50efceee
RD
39287static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39288 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39289}
39290static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39291 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39292}
39293static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39294 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39295}
0085ce49
RD
39296static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39297 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39298}
39299static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39300 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39301}
39302static void *_p_wxPenTo_p_wxObject(void *x) {
39303 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39304}
39305static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39306 return (void *)((wxObject *) ((wxRegionIterator *) x));
39307}
0085ce49
RD
39308static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39309 return (void *)((wxObject *) ((wxSizerItem *) x));
39310}
34e0a3bb
RD
39311static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39312 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39313}
0085ce49
RD
39314static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39315 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39316}
39317static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39318 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39319}
39320static void *_p_wxIconTo_p_wxObject(void *x) {
39321 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39322}
39323static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39324 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39325}
39326static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39327 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39328}
39329static void *_p_wxSizerTo_p_wxObject(void *x) {
39330 return (void *)((wxObject *) ((wxSizer *) x));
39331}
39332static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39333 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39334}
39335static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39336 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39337}
0085ce49
RD
39338static void *_p_wxEventTo_p_wxObject(void *x) {
39339 return (void *)((wxObject *) ((wxEvent *) x));
39340}
39341static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39342 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39343}
39344static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39345 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39346}
39347static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39348 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39349}
27e45892
RD
39350static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39351 return (void *)((wxObject *) ((wxPseudoDC *) x));
39352}
2131d850
RD
39353static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39355}
0085ce49
RD
39356static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39357 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39358}
39359static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39360 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39361}
39362static void *_p_wxDCTo_p_wxObject(void *x) {
39363 return (void *)((wxObject *) ((wxDC *) x));
39364}
39365static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39366 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39367}
39368static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39369 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39370}
39371static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39372 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39373}
39374static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39375 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39376}
39377static void *_p_wxControlTo_p_wxObject(void *x) {
39378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39379}
70d7cb34
RD
39380static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39381 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39382}
0085ce49
RD
39383static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39384 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39385}
39386static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39387 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39388}
39389static void *_p_wxFSFileTo_p_wxObject(void *x) {
39390 return (void *)((wxObject *) ((wxFSFile *) x));
39391}
39392static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39393 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
0085ce49
RD
39394}
39395static void *_p_wxRegionTo_p_wxObject(void *x) {
39396 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39397}
39398static void *_p_wxPySizerTo_p_wxObject(void *x) {
39399 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39400}
39401static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39402 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39403}
39404static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39405 return (void *)((wxObject *) ((wxGDIObject *) x));
39406}
70d7cb34
RD
39407static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39408 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39409}
39410static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39411 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39412}
0085ce49
RD
39413static void *_p_wxEffectsTo_p_wxObject(void *x) {
39414 return (void *)((wxObject *) ((wxEffects *) x));
39415}
39416static void *_p_wxPyEventTo_p_wxObject(void *x) {
39417 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39418}
39419static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39420 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39421}
39422static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39423 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39424}
70d7cb34
RD
39425static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39426 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39427}
0085ce49
RD
39428static void *_p_wxShowEventTo_p_wxObject(void *x) {
39429 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39430}
39431static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39432 return (void *)((wxObject *) ((wxMenuItem *) x));
39433}
39434static void *_p_wxDateEventTo_p_wxObject(void *x) {
39435 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39436}
39437static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39438 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39439}
39440static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39441 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39442}
39443static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39444 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39445}
39446static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39447 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39448}
39449static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39450 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39451}
39452static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39453 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39454}
39455static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39456 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39457}
39458static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39459 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39460}
39461static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39462 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39463}
39464static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39465 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39466}
39467static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39468 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39469}
39470static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39471 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39472}
39473static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39474 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39475}
39476static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39477 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39478}
39479static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39480 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39481}
39482static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39483 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39484}
39485static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39486 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39487}
39488static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39489 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39490}
39491static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39492 return (void *)((wxObject *) ((wxImageHandler *) x));
39493}
39494static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39495 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39496}
39497static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39498 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39499}
580080c5
RD
39500static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39501 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39502}
0085ce49
RD
39503static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39504 return (void *)((wxObject *) ((wxEvtHandler *) x));
39505}
34e0a3bb
RD
39506static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39507 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39508}
24f6c4e8
RD
39509static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39510 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39511}
0085ce49 39512static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39513 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49 39514}
24f6c4e8
RD
39515static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39516 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
0085ce49
RD
39517}
39518static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39519 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39520}
39521static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39522 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39523}
0085ce49
RD
39524static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39525 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39526}
580080c5
RD
39527static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39528 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39529}
0085ce49
RD
39530static void *_p_wxImageTo_p_wxObject(void *x) {
39531 return (void *)((wxObject *) ((wxImage *) x));
39532}
39533static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39534 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39535}
70d7cb34
RD
39536static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39538}
39539static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39541}
0085ce49
RD
39542static void *_p_wxPaletteTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39544}
39545static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39546 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
39547}
39548static void *_p_wxImageListTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) ((wxImageList *) x));
39550}
72ef6efb
RD
39551static void *_p_wxGCDCTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39553}
0085ce49
RD
39554static void *_p_wxCursorTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39556}
39557static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39559}
39560static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39562}
70d7cb34
RD
39563static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39564 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39565}
0085ce49
RD
39566static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39567 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39568}
39569static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39570 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39571}
39572static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39574}
39575static void *_p_wxWindowTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39577}
39578static void *_p_wxMenuTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39580}
39581static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39583}
39584static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39586}
0085ce49
RD
39587static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) ((wxFileSystem *) x));
39589}
39590static void *_p_wxBitmapTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39592}
39593static void *_p_wxMaskTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) ((wxMask *) x));
39595}
70d7cb34
RD
39596static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39597 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39598}
0085ce49
RD
39599static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39600 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39601}
39602static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39603 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39604}
39605static void *_p_wxPyAppTo_p_wxObject(void *x) {
39606 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39607}
39608static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39609 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39610}
39611static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39612 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39613}
39614static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39615 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39616}
39617static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39618 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39619}
39620static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39621 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39622}
39623static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39624 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39625}
39626static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39627 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39628}
39629static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39630 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39631}
39632static void *_p_wxFontTo_p_wxObject(void *x) {
39633 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39634}
39635static void *_p_wxBrushTo_p_wxObject(void *x) {
39636 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39637}
39638static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39639 return (void *)((wxObject *) ((wxMetaFile *) x));
39640}
39641static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39642 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39643}
39644static void *_p_wxColourTo_p_wxObject(void *x) {
39645 return (void *)((wxObject *) ((wxColour *) x));
39646}
0085ce49
RD
39647static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39648 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39649}
39650static void *_p_wxValidatorTo_p_wxObject(void *x) {
39651 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39652}
39653static void *_p_wxControlTo_p_wxWindow(void *x) {
39654 return (void *)((wxWindow *) ((wxControl *) x));
39655}
39656static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39657 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39658}
39659static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39660 return (void *)((wxWindow *) ((wxMenuBar *) x));
39661}
fc46b7f3
RD
39662static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39663 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39664}
39665static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39666 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39667}
39668static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 39669static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39670static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39671static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39672static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39673static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39674static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39675static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39676static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39677static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39678static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39679static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
0085ce49
RD
39680static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39681static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39682static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39683static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39684static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39685static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 39686static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39687static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
39688static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39689static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39690static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39691static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39692static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39693static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39694static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39695static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39696static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
0085ce49
RD
39697static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39698static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39699static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39700static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39701static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39702static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39703static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39704static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 39705static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 39706static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39707static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39708static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39709static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39710static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39711static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39712static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39713static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39714static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39715static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
39716static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39717static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39718static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39719static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39720static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39721static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39722static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39723static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39724static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39725static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39726static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39727static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39728static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39729static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39730static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39731static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
39732static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39733static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 39734static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39735static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
39736static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39737static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39738static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39739static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39740static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39741static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39742static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39743static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39744static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39745static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39746static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39747static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39748static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
39749static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39750static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39751static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39752static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39753static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39754static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39755static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39756static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39757static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39758static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39759static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39760static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39761static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39762static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39763static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39764static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39765static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39766static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39767static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39768static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39769static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39770static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39771static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49 39772static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39773static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39774static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39775static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39776static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39777static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39778static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39779static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39780static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39781static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39782static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39783static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
39784static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39785static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39786static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39787static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49 39788static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39789static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
39790static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39791static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39792static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39793static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39794static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39795static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39796static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39797static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39798static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39799static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39800static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39801static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39802static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39803static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39804static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39805static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39806static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39807static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39808static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39809static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39810static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
39811static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39812static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39813static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39814static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39815static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39816static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 39817static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39818static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39819static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39820static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39821static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39822static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39823static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 39824static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39825static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49 39826static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39827static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39828static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39829static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39830static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39831static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39832static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39833static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39834static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 39835static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
39836static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39837static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39838static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39839
39840static swig_type_info *swig_type_initial[] = {
fc46b7f3 39841 &_swigt__p_buffer,
0085ce49
RD
39842 &_swigt__p_char,
39843 &_swigt__p_double,
39844 &_swigt__p_form_ops_t,
39845 &_swigt__p_int,
39846 &_swigt__p_unsigned_char,
39847 &_swigt__p_unsigned_int,
39848 &_swigt__p_unsigned_long,
0a27f394 39849 &_swigt__p_void,
0085ce49
RD
39850 &_swigt__p_wxANIHandler,
39851 &_swigt__p_wxAcceleratorTable,
39852 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39853 &_swigt__p_wxAlphaPixelData,
39854 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39855 &_swigt__p_wxAutoBufferedPaintDC,
0085ce49
RD
39856 &_swigt__p_wxBMPHandler,
39857 &_swigt__p_wxBitmap,
39858 &_swigt__p_wxBoxSizer,
39859 &_swigt__p_wxBrush,
39860 &_swigt__p_wxBrushList,
39861 &_swigt__p_wxBufferedDC,
39862 &_swigt__p_wxBufferedPaintDC,
39863 &_swigt__p_wxCURHandler,
fc46b7f3 39864 &_swigt__p_wxChar,
0085ce49
RD
39865 &_swigt__p_wxChildFocusEvent,
39866 &_swigt__p_wxClientDC,
2131d850 39867 &_swigt__p_wxClipboardTextEvent,
0085ce49 39868 &_swigt__p_wxCloseEvent,
72ef6efb 39869 &_swigt__p_wxColor,
0085ce49
RD
39870 &_swigt__p_wxColour,
39871 &_swigt__p_wxColourDatabase,
39872 &_swigt__p_wxCommandEvent,
39873 &_swigt__p_wxContextMenuEvent,
39874 &_swigt__p_wxControl,
39875 &_swigt__p_wxControlWithItems,
39876 &_swigt__p_wxCursor,
39877 &_swigt__p_wxDC,
70d7cb34
RD
39878 &_swigt__p_wxDCBrushChanger,
39879 &_swigt__p_wxDCClipper,
b39fe951 39880 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39881 &_swigt__p_wxDCPenChanger,
39882 &_swigt__p_wxDCTextColourChanger,
0085ce49
RD
39883 &_swigt__p_wxDash,
39884 &_swigt__p_wxDateEvent,
39885 &_swigt__p_wxDisplayChangedEvent,
39886 &_swigt__p_wxDropFilesEvent,
39887 &_swigt__p_wxDuplexMode,
39888 &_swigt__p_wxEffects,
39889 &_swigt__p_wxEncodingConverter,
39890 &_swigt__p_wxEraseEvent,
39891 &_swigt__p_wxEvent,
39892 &_swigt__p_wxEvtHandler,
39893 &_swigt__p_wxFSFile,
39894 &_swigt__p_wxFileSystem,
39895 &_swigt__p_wxFlexGridSizer,
39896 &_swigt__p_wxFocusEvent,
39897 &_swigt__p_wxFont,
39898 &_swigt__p_wxFontList,
39899 &_swigt__p_wxFontMapper,
39900 &_swigt__p_wxGBSizerItem,
72ef6efb 39901 &_swigt__p_wxGCDC,
50efceee 39902 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
39903 &_swigt__p_wxGDIObject,
39904 &_swigt__p_wxGIFHandler,
70d7cb34 39905 &_swigt__p_wxGraphicsBrush,
72ef6efb 39906 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39907 &_swigt__p_wxGraphicsFont,
39908 &_swigt__p_wxGraphicsMatrix,
39909 &_swigt__p_wxGraphicsObject,
72ef6efb 39910 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39911 &_swigt__p_wxGraphicsPen,
39912 &_swigt__p_wxGraphicsRenderer,
0085ce49
RD
39913 &_swigt__p_wxGridBagSizer,
39914 &_swigt__p_wxGridSizer,
33d6fd3b 39915 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
39916 &_swigt__p_wxICOHandler,
39917 &_swigt__p_wxIcon,
39918 &_swigt__p_wxIconBundle,
39919 &_swigt__p_wxIconLocation,
39920 &_swigt__p_wxIconizeEvent,
39921 &_swigt__p_wxIdleEvent,
39922 &_swigt__p_wxImage,
39923 &_swigt__p_wxImageHandler,
39924 &_swigt__p_wxImageList,
39925 &_swigt__p_wxIndividualLayoutConstraint,
39926 &_swigt__p_wxInitDialogEvent,
39927 &_swigt__p_wxJPEGHandler,
39928 &_swigt__p_wxKeyEvent,
39929 &_swigt__p_wxLanguageInfo,
39930 &_swigt__p_wxLayoutConstraints,
39931 &_swigt__p_wxLocale,
39932 &_swigt__p_wxMask,
39933 &_swigt__p_wxMaximizeEvent,
39934 &_swigt__p_wxMemoryDC,
39935 &_swigt__p_wxMenu,
39936 &_swigt__p_wxMenuBar,
39937 &_swigt__p_wxMenuEvent,
39938 &_swigt__p_wxMenuItem,
39939 &_swigt__p_wxMetaFile,
39940 &_swigt__p_wxMetaFileDC,
39941 &_swigt__p_wxMirrorDC,
39942 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39943 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
39944 &_swigt__p_wxMouseEvent,
39945 &_swigt__p_wxMoveEvent,
39946 &_swigt__p_wxNativeEncodingInfo,
39947 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39948 &_swigt__p_wxNativePixelData,
39949 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
39950 &_swigt__p_wxNavigationKeyEvent,
39951 &_swigt__p_wxNcPaintEvent,
39952 &_swigt__p_wxNotifyEvent,
39953 &_swigt__p_wxObject,
b39fe951 39954 &_swigt__p_wxOverlay,
0085ce49
RD
39955 &_swigt__p_wxPCXHandler,
39956 &_swigt__p_wxPNGHandler,
39957 &_swigt__p_wxPNMHandler,
39958 &_swigt__p_wxPaintDC,
39959 &_swigt__p_wxPaintEvent,
39960 &_swigt__p_wxPalette,
39961 &_swigt__p_wxPaletteChangedEvent,
39962 &_swigt__p_wxPaperSize,
39963 &_swigt__p_wxPen,
39964 &_swigt__p_wxPenList,
fc46b7f3 39965 &_swigt__p_wxPixelDataBase,
0085ce49 39966 &_swigt__p_wxPoint,
72ef6efb 39967 &_swigt__p_wxPoint2D,
70d7cb34 39968 &_swigt__p_wxPoint2DDouble,
0085ce49
RD
39969 &_swigt__p_wxPostScriptDC,
39970 &_swigt__p_wxPrintData,
39971 &_swigt__p_wxPrinterDC,
27e45892 39972 &_swigt__p_wxPseudoDC,
0085ce49
RD
39973 &_swigt__p_wxPyApp,
39974 &_swigt__p_wxPyCommandEvent,
39975 &_swigt__p_wxPyEvent,
39976 &_swigt__p_wxPyFontEnumerator,
39977 &_swigt__p_wxPyImageHandler,
fc46b7f3 39978 &_swigt__p_wxPyLocale,
0085ce49
RD
39979 &_swigt__p_wxPySizer,
39980 &_swigt__p_wxPyValidator,
39981 &_swigt__p_wxQueryNewPaletteEvent,
39982 &_swigt__p_wxRect,
70d7cb34 39983 &_swigt__p_wxRect2DDouble,
0085ce49
RD
39984 &_swigt__p_wxRegion,
39985 &_swigt__p_wxRegionIterator,
39986 &_swigt__p_wxRendererNative,
39987 &_swigt__p_wxRendererVersion,
39988 &_swigt__p_wxScreenDC,
39989 &_swigt__p_wxScrollEvent,
39990 &_swigt__p_wxScrollWinEvent,
39991 &_swigt__p_wxSetCursorEvent,
39992 &_swigt__p_wxShowEvent,
39993 &_swigt__p_wxSize,
39994 &_swigt__p_wxSizeEvent,
39995 &_swigt__p_wxSizer,
39996 &_swigt__p_wxSizerItem,
39997 &_swigt__p_wxSplitterRenderParams,
39998 &_swigt__p_wxStaticBoxSizer,
39999 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40000 &_swigt__p_wxStockGDI,
0085ce49
RD
40001 &_swigt__p_wxString,
40002 &_swigt__p_wxSysColourChangedEvent,
580080c5 40003 &_swigt__p_wxTGAHandler,
0085ce49
RD
40004 &_swigt__p_wxTIFFHandler,
40005 &_swigt__p_wxUpdateUIEvent,
40006 &_swigt__p_wxValidator,
40007 &_swigt__p_wxWindow,
40008 &_swigt__p_wxWindowCreateEvent,
40009 &_swigt__p_wxWindowDC,
40010 &_swigt__p_wxWindowDestroyEvent,
40011 &_swigt__p_wxXPMHandler,
40012};
40013
fc46b7f3 40014static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40015static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40016static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40017static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40018static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40019static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40020static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40021static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40022static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40023static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40024static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40025static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40026static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40027static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40028static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40029static 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}};
40030static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40031static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40032static 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}};
40033static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40034static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40035static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40036static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40037static 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
40038static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40039static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40040static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40041static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40042static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40043static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40044static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40045static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40046static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40047static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40048static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40049static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40050static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40051static 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}};
0085ce49 40052static 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 40053static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40054static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40055static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40056static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40057static 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 40058static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40059static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40060static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40061static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40062static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40063static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40064static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40065static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40066static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40067static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40068static 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}};
0085ce49 40069static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40070static 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}};
0085ce49
RD
40071static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40072static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40073static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40074static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40075static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40076static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40077static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40078static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40079static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40080static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40081static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40082static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40083static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40084static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40085static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40086static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40087static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40088static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40089static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40090static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40091static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40092static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40093static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40094static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40095static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40096static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40097static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40098static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40099static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40100static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40101static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40102static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40103static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40104static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40105static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40106static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40107static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40108static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40109static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40110static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40111static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40112static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40113static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40114static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40115static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40116static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40117static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40118static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40119static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40120static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40121static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40122static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40123static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40124static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40125static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40126static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40127static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40128static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40129static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40130static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40131static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40132static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40133static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40134static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40135static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40136static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40137static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40138static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40139static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40140static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40141static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40142static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40143static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40144static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40145static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40146static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40147static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40148static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40149static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40150static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40151static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40152static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40153static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40154static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40155static 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 40156static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40157static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40158static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40159static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40160static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40161static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40162static 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}};
0085ce49 40163static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40164static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40165static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40166static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40167static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40168static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40169static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40170static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40171static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40172static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40173static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40174static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40175static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40176static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40177static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40178static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40179static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40180static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40181static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40182static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40183static 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 40184static 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}};
0085ce49
RD
40185
40186static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40187 _swigc__p_buffer,
0085ce49
RD
40188 _swigc__p_char,
40189 _swigc__p_double,
40190 _swigc__p_form_ops_t,
40191 _swigc__p_int,
40192 _swigc__p_unsigned_char,
40193 _swigc__p_unsigned_int,
40194 _swigc__p_unsigned_long,
0a27f394 40195 _swigc__p_void,
0085ce49
RD
40196 _swigc__p_wxANIHandler,
40197 _swigc__p_wxAcceleratorTable,
40198 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40199 _swigc__p_wxAlphaPixelData,
40200 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40201 _swigc__p_wxAutoBufferedPaintDC,
0085ce49
RD
40202 _swigc__p_wxBMPHandler,
40203 _swigc__p_wxBitmap,
40204 _swigc__p_wxBoxSizer,
40205 _swigc__p_wxBrush,
40206 _swigc__p_wxBrushList,
40207 _swigc__p_wxBufferedDC,
40208 _swigc__p_wxBufferedPaintDC,
40209 _swigc__p_wxCURHandler,
fc46b7f3 40210 _swigc__p_wxChar,
0085ce49
RD
40211 _swigc__p_wxChildFocusEvent,
40212 _swigc__p_wxClientDC,
2131d850 40213 _swigc__p_wxClipboardTextEvent,
0085ce49 40214 _swigc__p_wxCloseEvent,
72ef6efb 40215 _swigc__p_wxColor,
0085ce49
RD
40216 _swigc__p_wxColour,
40217 _swigc__p_wxColourDatabase,
40218 _swigc__p_wxCommandEvent,
40219 _swigc__p_wxContextMenuEvent,
40220 _swigc__p_wxControl,
40221 _swigc__p_wxControlWithItems,
40222 _swigc__p_wxCursor,
40223 _swigc__p_wxDC,
70d7cb34
RD
40224 _swigc__p_wxDCBrushChanger,
40225 _swigc__p_wxDCClipper,
b39fe951 40226 _swigc__p_wxDCOverlay,
70d7cb34
RD
40227 _swigc__p_wxDCPenChanger,
40228 _swigc__p_wxDCTextColourChanger,
0085ce49
RD
40229 _swigc__p_wxDash,
40230 _swigc__p_wxDateEvent,
40231 _swigc__p_wxDisplayChangedEvent,
40232 _swigc__p_wxDropFilesEvent,
40233 _swigc__p_wxDuplexMode,
40234 _swigc__p_wxEffects,
40235 _swigc__p_wxEncodingConverter,
40236 _swigc__p_wxEraseEvent,
40237 _swigc__p_wxEvent,
40238 _swigc__p_wxEvtHandler,
40239 _swigc__p_wxFSFile,
40240 _swigc__p_wxFileSystem,
40241 _swigc__p_wxFlexGridSizer,
40242 _swigc__p_wxFocusEvent,
40243 _swigc__p_wxFont,
40244 _swigc__p_wxFontList,
40245 _swigc__p_wxFontMapper,
40246 _swigc__p_wxGBSizerItem,
72ef6efb 40247 _swigc__p_wxGCDC,
50efceee 40248 _swigc__p_wxGDIObjListBase,
0085ce49
RD
40249 _swigc__p_wxGDIObject,
40250 _swigc__p_wxGIFHandler,
70d7cb34 40251 _swigc__p_wxGraphicsBrush,
72ef6efb 40252 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40253 _swigc__p_wxGraphicsFont,
40254 _swigc__p_wxGraphicsMatrix,
40255 _swigc__p_wxGraphicsObject,
72ef6efb 40256 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40257 _swigc__p_wxGraphicsPen,
40258 _swigc__p_wxGraphicsRenderer,
0085ce49
RD
40259 _swigc__p_wxGridBagSizer,
40260 _swigc__p_wxGridSizer,
33d6fd3b 40261 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
40262 _swigc__p_wxICOHandler,
40263 _swigc__p_wxIcon,
40264 _swigc__p_wxIconBundle,
40265 _swigc__p_wxIconLocation,
40266 _swigc__p_wxIconizeEvent,
40267 _swigc__p_wxIdleEvent,
40268 _swigc__p_wxImage,
40269 _swigc__p_wxImageHandler,
40270 _swigc__p_wxImageList,
40271 _swigc__p_wxIndividualLayoutConstraint,
40272 _swigc__p_wxInitDialogEvent,
40273 _swigc__p_wxJPEGHandler,
40274 _swigc__p_wxKeyEvent,
40275 _swigc__p_wxLanguageInfo,
40276 _swigc__p_wxLayoutConstraints,
40277 _swigc__p_wxLocale,
40278 _swigc__p_wxMask,
40279 _swigc__p_wxMaximizeEvent,
40280 _swigc__p_wxMemoryDC,
40281 _swigc__p_wxMenu,
40282 _swigc__p_wxMenuBar,
40283 _swigc__p_wxMenuEvent,
40284 _swigc__p_wxMenuItem,
40285 _swigc__p_wxMetaFile,
40286 _swigc__p_wxMetaFileDC,
40287 _swigc__p_wxMirrorDC,
40288 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40289 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
40290 _swigc__p_wxMouseEvent,
40291 _swigc__p_wxMoveEvent,
40292 _swigc__p_wxNativeEncodingInfo,
40293 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40294 _swigc__p_wxNativePixelData,
40295 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
40296 _swigc__p_wxNavigationKeyEvent,
40297 _swigc__p_wxNcPaintEvent,
40298 _swigc__p_wxNotifyEvent,
40299 _swigc__p_wxObject,
b39fe951 40300 _swigc__p_wxOverlay,
0085ce49
RD
40301 _swigc__p_wxPCXHandler,
40302 _swigc__p_wxPNGHandler,
40303 _swigc__p_wxPNMHandler,
40304 _swigc__p_wxPaintDC,
40305 _swigc__p_wxPaintEvent,
40306 _swigc__p_wxPalette,
40307 _swigc__p_wxPaletteChangedEvent,
40308 _swigc__p_wxPaperSize,
40309 _swigc__p_wxPen,
40310 _swigc__p_wxPenList,
fc46b7f3 40311 _swigc__p_wxPixelDataBase,
0085ce49 40312 _swigc__p_wxPoint,
72ef6efb 40313 _swigc__p_wxPoint2D,
70d7cb34 40314 _swigc__p_wxPoint2DDouble,
0085ce49
RD
40315 _swigc__p_wxPostScriptDC,
40316 _swigc__p_wxPrintData,
40317 _swigc__p_wxPrinterDC,
27e45892 40318 _swigc__p_wxPseudoDC,
0085ce49
RD
40319 _swigc__p_wxPyApp,
40320 _swigc__p_wxPyCommandEvent,
40321 _swigc__p_wxPyEvent,
40322 _swigc__p_wxPyFontEnumerator,
40323 _swigc__p_wxPyImageHandler,
fc46b7f3 40324 _swigc__p_wxPyLocale,
0085ce49
RD
40325 _swigc__p_wxPySizer,
40326 _swigc__p_wxPyValidator,
40327 _swigc__p_wxQueryNewPaletteEvent,
40328 _swigc__p_wxRect,
70d7cb34 40329 _swigc__p_wxRect2DDouble,
0085ce49
RD
40330 _swigc__p_wxRegion,
40331 _swigc__p_wxRegionIterator,
40332 _swigc__p_wxRendererNative,
40333 _swigc__p_wxRendererVersion,
40334 _swigc__p_wxScreenDC,
40335 _swigc__p_wxScrollEvent,
40336 _swigc__p_wxScrollWinEvent,
40337 _swigc__p_wxSetCursorEvent,
40338 _swigc__p_wxShowEvent,
40339 _swigc__p_wxSize,
40340 _swigc__p_wxSizeEvent,
40341 _swigc__p_wxSizer,
40342 _swigc__p_wxSizerItem,
40343 _swigc__p_wxSplitterRenderParams,
40344 _swigc__p_wxStaticBoxSizer,
40345 _swigc__p_wxStdDialogButtonSizer,
50efceee 40346 _swigc__p_wxStockGDI,
0085ce49
RD
40347 _swigc__p_wxString,
40348 _swigc__p_wxSysColourChangedEvent,
580080c5 40349 _swigc__p_wxTGAHandler,
0085ce49
RD
40350 _swigc__p_wxTIFFHandler,
40351 _swigc__p_wxUpdateUIEvent,
40352 _swigc__p_wxValidator,
40353 _swigc__p_wxWindow,
40354 _swigc__p_wxWindowCreateEvent,
40355 _swigc__p_wxWindowDC,
40356 _swigc__p_wxWindowDestroyEvent,
40357 _swigc__p_wxXPMHandler,
40358};
40359
40360
40361/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40362
40363static swig_const_info swig_const_table[] = {
40364{0, 0, 0, 0.0, 0, 0}};
40365
40366#ifdef __cplusplus
40367}
40368#endif
40369/* -----------------------------------------------------------------------------
40370 * Type initialization:
40371 * This problem is tough by the requirement that no dynamic
40372 * memory is used. Also, since swig_type_info structures store pointers to
40373 * swig_cast_info structures and swig_cast_info structures store pointers back
40374 * to swig_type_info structures, we need some lookup code at initialization.
40375 * The idea is that swig generates all the structures that are needed.
40376 * The runtime then collects these partially filled structures.
40377 * The SWIG_InitializeModule function takes these initial arrays out of
40378 * swig_module, and does all the lookup, filling in the swig_module.types
40379 * array with the correct data and linking the correct swig_cast_info
40380 * structures together.
40381 *
40382 * The generated swig_type_info structures are assigned staticly to an initial
40383 * array. We just loop though that array, and handle each type individually.
40384 * First we lookup if this type has been already loaded, and if so, use the
40385 * loaded structure instead of the generated one. Then we have to fill in the
40386 * cast linked list. The cast data is initially stored in something like a
40387 * two-dimensional array. Each row corresponds to a type (there are the same
40388 * number of rows as there are in the swig_type_initial array). Each entry in
40389 * a column is one of the swig_cast_info structures for that type.
40390 * The cast_initial array is actually an array of arrays, because each row has
40391 * a variable number of columns. So to actually build the cast linked list,
40392 * we find the array of casts associated with the type, and loop through it
40393 * adding the casts to the list. The one last trick we need to do is making
40394 * sure the type pointer in the swig_cast_info struct is correct.
40395 *
40396 * First off, we lookup the cast->type name to see if it is already loaded.
40397 * There are three cases to handle:
40398 * 1) If the cast->type has already been loaded AND the type we are adding
40399 * casting info to has not been loaded (it is in this module), THEN we
40400 * replace the cast->type pointer with the type pointer that has already
40401 * been loaded.
40402 * 2) If BOTH types (the one we are adding casting info to, and the
40403 * cast->type) are loaded, THEN the cast info has already been loaded by
40404 * the previous module so we just ignore it.
40405 * 3) Finally, if cast->type has not already been loaded, then we add that
40406 * swig_cast_info to the linked list (because the cast->type) pointer will
40407 * be correct.
40408 * ----------------------------------------------------------------------------- */
40409
40410#ifdef __cplusplus
40411extern "C" {
40412#if 0
40413} /* c-mode */
40414#endif
40415#endif
40416
40417#if 0
40418#define SWIGRUNTIME_DEBUG
40419#endif
40420
40421SWIGRUNTIME void
40422SWIG_InitializeModule(void *clientdata) {
40423 size_t i;
40424 swig_module_info *module_head;
40425 static int init_run = 0;
40426
40427 clientdata = clientdata;
40428
40429 if (init_run) return;
40430 init_run = 1;
40431
40432 /* Initialize the swig_module */
40433 swig_module.type_initial = swig_type_initial;
40434 swig_module.cast_initial = swig_cast_initial;
40435
40436 /* Try and load any already created modules */
40437 module_head = SWIG_GetModule(clientdata);
40438 if (module_head) {
40439 swig_module.next = module_head->next;
40440 module_head->next = &swig_module;
40441 } else {
40442 /* This is the first module loaded */
40443 swig_module.next = &swig_module;
40444 SWIG_SetModule(clientdata, &swig_module);
40445 }
40446
40447 /* Now work on filling in swig_module.types */
40448#ifdef SWIGRUNTIME_DEBUG
40449 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40450#endif
40451 for (i = 0; i < swig_module.size; ++i) {
40452 swig_type_info *type = 0;
40453 swig_type_info *ret;
40454 swig_cast_info *cast;
40455
40456#ifdef SWIGRUNTIME_DEBUG
40457 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40458#endif
40459
40460 /* if there is another module already loaded */
40461 if (swig_module.next != &swig_module) {
40462 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 40463 }
0085ce49
RD
40464 if (type) {
40465 /* Overwrite clientdata field */
40466#ifdef SWIGRUNTIME_DEBUG
40467 printf("SWIG_InitializeModule: found type %s\n", type->name);
40468#endif
40469 if (swig_module.type_initial[i]->clientdata) {
40470 type->clientdata = swig_module.type_initial[i]->clientdata;
40471#ifdef SWIGRUNTIME_DEBUG
40472 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40473#endif
40474 }
40475 } else {
40476 type = swig_module.type_initial[i];
8d38bd1d 40477 }
0085ce49
RD
40478
40479 /* Insert casting types */
40480 cast = swig_module.cast_initial[i];
40481 while (cast->type) {
40482 /* Don't need to add information already in the list */
40483 ret = 0;
40484#ifdef SWIGRUNTIME_DEBUG
40485 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40486#endif
40487 if (swig_module.next != &swig_module) {
40488 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40489#ifdef SWIGRUNTIME_DEBUG
40490 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40491#endif
40492 }
40493 if (ret) {
40494 if (type == swig_module.type_initial[i]) {
40495#ifdef SWIGRUNTIME_DEBUG
40496 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40497#endif
40498 cast->type = ret;
40499 ret = 0;
40500 } else {
40501 /* Check for casting already in the list */
40502 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40503#ifdef SWIGRUNTIME_DEBUG
40504 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40505#endif
40506 if (!ocast) ret = 0;
40507 }
40508 }
40509
40510 if (!ret) {
40511#ifdef SWIGRUNTIME_DEBUG
40512 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40513#endif
40514 if (type->cast) {
40515 type->cast->prev = cast;
40516 cast->next = type->cast;
40517 }
40518 type->cast = cast;
40519 }
40520 cast++;
8d38bd1d 40521 }
0085ce49
RD
40522 /* Set entry in modules->types array equal to the type */
40523 swig_module.types[i] = type;
40524 }
40525 swig_module.types[i] = 0;
40526
40527#ifdef SWIGRUNTIME_DEBUG
40528 printf("**** SWIG_InitializeModule: Cast List ******\n");
40529 for (i = 0; i < swig_module.size; ++i) {
40530 int j = 0;
40531 swig_cast_info *cast = swig_module.cast_initial[i];
40532 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40533 while (cast->type) {
40534 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40535 cast++;
40536 ++j;
40537 }
40538 printf("---- Total casts: %d\n",j);
40539 }
40540 printf("**** SWIG_InitializeModule: Cast List ******\n");
40541#endif
40542}
40543
40544/* This function will propagate the clientdata field of type to
40545* any new swig_type_info structures that have been added into the list
40546* of equivalent types. It is like calling
40547* SWIG_TypeClientData(type, clientdata) a second time.
40548*/
40549SWIGRUNTIME void
40550SWIG_PropagateClientData(void) {
40551 size_t i;
40552 swig_cast_info *equiv;
40553 static int init_run = 0;
40554
40555 if (init_run) return;
40556 init_run = 1;
40557
40558 for (i = 0; i < swig_module.size; i++) {
40559 if (swig_module.types[i]->clientdata) {
40560 equiv = swig_module.types[i]->cast;
40561 while (equiv) {
40562 if (!equiv->converter) {
40563 if (equiv->type && !equiv->type->clientdata)
40564 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40565 }
40566 equiv = equiv->next;
40567 }
8d38bd1d 40568 }
0085ce49
RD
40569 }
40570}
40571
40572#ifdef __cplusplus
40573#if 0
40574{
40575 /* c-mode */
40576#endif
40577}
40578#endif
40579
40580
40581
40582#ifdef __cplusplus
40583extern "C" {
40584#endif
40585
40586 /* Python-specific SWIG API */
40587#define SWIG_newvarlink() SWIG_Python_newvarlink()
40588#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40589#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40590
40591 /* -----------------------------------------------------------------------------
40592 * global variable support code.
40593 * ----------------------------------------------------------------------------- */
40594
40595 typedef struct swig_globalvar {
40596 char *name; /* Name of global variable */
40597 PyObject *(*get_attr)(void); /* Return the current value */
40598 int (*set_attr)(PyObject *); /* Set the value */
40599 struct swig_globalvar *next;
40600 } swig_globalvar;
40601
40602 typedef struct swig_varlinkobject {
40603 PyObject_HEAD
40604 swig_globalvar *vars;
40605 } swig_varlinkobject;
40606
40607 SWIGINTERN PyObject *
40608 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40609 return PyString_FromString("<Swig global variables>");
40610 }
40611
40612 SWIGINTERN PyObject *
40613 swig_varlink_str(swig_varlinkobject *v) {
40614 PyObject *str = PyString_FromString("(");
40615 swig_globalvar *var;
40616 for (var = v->vars; var; var=var->next) {
40617 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40618 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40619 }
40620 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40621 return str;
40622 }
40623
40624 SWIGINTERN int
40625 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40626 PyObject *str = swig_varlink_str(v);
40627 fprintf(fp,"Swig global variables ");
40628 fprintf(fp,"%s\n", PyString_AsString(str));
40629 Py_DECREF(str);
40630 return 0;
40631 }
40632
40633 SWIGINTERN void
40634 swig_varlink_dealloc(swig_varlinkobject *v) {
40635 swig_globalvar *var = v->vars;
40636 while (var) {
40637 swig_globalvar *n = var->next;
40638 free(var->name);
40639 free(var);
40640 var = n;
8d38bd1d 40641 }
0085ce49
RD
40642 }
40643
40644 SWIGINTERN PyObject *
40645 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40646 PyObject *res = NULL;
40647 swig_globalvar *var = v->vars;
40648 while (var) {
40649 if (strcmp(var->name,n) == 0) {
40650 res = (*var->get_attr)();
40651 break;
40652 }
40653 var = var->next;
8d38bd1d 40654 }
0085ce49
RD
40655 if (res == NULL && !PyErr_Occurred()) {
40656 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40657 }
0085ce49
RD
40658 return res;
40659 }
40660
40661 SWIGINTERN int
40662 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40663 int res = 1;
40664 swig_globalvar *var = v->vars;
40665 while (var) {
40666 if (strcmp(var->name,n) == 0) {
40667 res = (*var->set_attr)(p);
40668 break;
40669 }
40670 var = var->next;
8d38bd1d 40671 }
0085ce49
RD
40672 if (res == 1 && !PyErr_Occurred()) {
40673 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40674 }
0085ce49
RD
40675 return res;
40676 }
40677
40678 SWIGINTERN PyTypeObject*
40679 swig_varlink_type(void) {
40680 static char varlink__doc__[] = "Swig var link object";
40681 static PyTypeObject varlink_type;
40682 static int type_init = 0;
40683 if (!type_init) {
40684 const PyTypeObject tmp
40685 = {
40686 PyObject_HEAD_INIT(NULL)
40687 0, /* Number of items in variable part (ob_size) */
40688 (char *)"swigvarlink", /* Type name (tp_name) */
40689 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40690 0, /* Itemsize (tp_itemsize) */
40691 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40692 (printfunc) swig_varlink_print, /* Print (tp_print) */
40693 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40694 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40695 0, /* tp_compare */
40696 (reprfunc) swig_varlink_repr, /* tp_repr */
40697 0, /* tp_as_number */
40698 0, /* tp_as_sequence */
40699 0, /* tp_as_mapping */
40700 0, /* tp_hash */
40701 0, /* tp_call */
40702 (reprfunc)swig_varlink_str, /* tp_str */
40703 0, /* tp_getattro */
40704 0, /* tp_setattro */
40705 0, /* tp_as_buffer */
40706 0, /* tp_flags */
40707 varlink__doc__, /* tp_doc */
40708 0, /* tp_traverse */
40709 0, /* tp_clear */
40710 0, /* tp_richcompare */
40711 0, /* tp_weaklistoffset */
40712#if PY_VERSION_HEX >= 0x02020000
40713 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40714#endif
40715#if PY_VERSION_HEX >= 0x02030000
40716 0, /* tp_del */
40717#endif
40718#ifdef COUNT_ALLOCS
40719 0,0,0,0 /* tp_alloc -> tp_next */
40720#endif
40721 };
40722 varlink_type = tmp;
40723 varlink_type.ob_type = &PyType_Type;
40724 type_init = 1;
8d38bd1d 40725 }
0085ce49
RD
40726 return &varlink_type;
40727 }
40728
40729 /* Create a variable linking object for use later */
40730 SWIGINTERN PyObject *
40731 SWIG_Python_newvarlink(void) {
40732 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40733 if (result) {
40734 result->vars = 0;
40735 }
40736 return ((PyObject*) result);
40737 }
40738
40739 SWIGINTERN void
40740 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40741 swig_varlinkobject *v = (swig_varlinkobject *) p;
40742 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40743 if (gv) {
40744 size_t size = strlen(name)+1;
40745 gv->name = (char *)malloc(size);
40746 if (gv->name) {
40747 strncpy(gv->name,name,size);
40748 gv->get_attr = get_attr;
40749 gv->set_attr = set_attr;
40750 gv->next = v->vars;
40751 }
8d38bd1d 40752 }
0085ce49
RD
40753 v->vars = gv;
40754 }
40755
40756 SWIGINTERN PyObject *
40757 SWIG_globals() {
40758 static PyObject *_SWIG_globals = 0;
40759 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40760 return _SWIG_globals;
40761 }
40762
40763 /* -----------------------------------------------------------------------------
40764 * constants/methods manipulation
40765 * ----------------------------------------------------------------------------- */
40766
40767 /* Install Constants */
40768 SWIGINTERN void
40769 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40770 PyObject *obj = 0;
40771 size_t i;
40772 for (i = 0; constants[i].type; ++i) {
40773 switch(constants[i].type) {
40774 case SWIG_PY_POINTER:
40775 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40776 break;
40777 case SWIG_PY_BINARY:
40778 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40779 break;
40780 default:
40781 obj = 0;
40782 break;
40783 }
40784 if (obj) {
40785 PyDict_SetItemString(d, constants[i].name, obj);
40786 Py_DECREF(obj);
40787 }
8d38bd1d 40788 }
0085ce49
RD
40789 }
40790
40791 /* -----------------------------------------------------------------------------*/
40792 /* Fix SwigMethods to carry the callback ptrs when needed */
40793 /* -----------------------------------------------------------------------------*/
40794
40795 SWIGINTERN void
40796 SWIG_Python_FixMethods(PyMethodDef *methods,
40797 swig_const_info *const_table,
40798 swig_type_info **types,
40799 swig_type_info **types_initial) {
40800 size_t i;
40801 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 40802 const char *c = methods[i].ml_doc;
0085ce49
RD
40803 if (c && (c = strstr(c, "swig_ptr: "))) {
40804 int j;
40805 swig_const_info *ci = 0;
453fb36b 40806 const char *name = c + 10;
0085ce49
RD
40807 for (j = 0; const_table[j].type; ++j) {
40808 if (strncmp(const_table[j].name, name,
40809 strlen(const_table[j].name)) == 0) {
40810 ci = &(const_table[j]);
40811 break;
40812 }
40813 }
40814 if (ci) {
40815 size_t shift = (ci->ptype) - types;
40816 swig_type_info *ty = types_initial[shift];
40817 size_t ldoc = (c - methods[i].ml_doc);
40818 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40819 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40820 if (ndoc) {
40821 char *buff = ndoc;
40822 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40823 if (ptr) {
40824 strncpy(buff, methods[i].ml_doc, ldoc);
40825 buff += ldoc;
40826 strncpy(buff, "swig_ptr: ", 10);
40827 buff += 10;
40828 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40829 methods[i].ml_doc = ndoc;
40830 }
40831 }
40832 }
40833 }
8d38bd1d 40834 }
0085ce49
RD
40835 }
40836
40837#ifdef __cplusplus
40838}
40839#endif
40840
40841/* -----------------------------------------------------------------------------*
40842 * Partial Init method
40843 * -----------------------------------------------------------------------------*/
40844
40845#ifdef __cplusplus
40846extern "C"
40847#endif
40848SWIGEXPORT void SWIG_init(void) {
40849 PyObject *m, *d;
40850
40851 /* Fix SwigMethods to carry the callback ptrs when needed */
40852 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40853
40854 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40855 d = PyModule_GetDict(m);
40856
40857 SWIG_InitializeModule(0);
40858 SWIG_InstallConstants(d,swig_const_table);
40859
40860
01f6b6d3
RD
40861 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40862 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40863 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40864 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40865 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
40866 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40867 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40868 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40869 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40870 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40871 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40872 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40873 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40874 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40875 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40876 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40877 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40878 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40879 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40880 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40881 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40882 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40883 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40884 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40885 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40886 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40887 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40888 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40889 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40890 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40891 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40892 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40893 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40894 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40895 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40896 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40897 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40898 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40899 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40900 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40901 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40902 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40903 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40904 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40905 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40906 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40907 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40908 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40909 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40910 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40911 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40912 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40913 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40914 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40915 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40916 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40917 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40918 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40919 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40920 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40921 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40922 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40923 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40924 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40925 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40926 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40927 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40928 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40929 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40930 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40931 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40932 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40933 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40934 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40935 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40936 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40937 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40938 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40939 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40940 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40941 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40942 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40943 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40944 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40945 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40946 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40947 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40948 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40949 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40950 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40951 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40952 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40953 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40954 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40955 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40956 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40957 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40958 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40959 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40960 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40961 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40962 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40963 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40964 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40965 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40966 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40967 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40968 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40969 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40970 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40971 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40972 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40973 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40974 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40975 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40976 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40977 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40978 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40979 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40980 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40981 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40982 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40983 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40984 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40985 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40986 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40987 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40988 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40989 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40990 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40991 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40992 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40993
40994 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40995
40996 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40997 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40998 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40999 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41000 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41001 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41002 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41003 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41004 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41005 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41006 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41007 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41008 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41009 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41010 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41011 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41012 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41013 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41014 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41015 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41016 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41017 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41018 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41019 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41227 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41228 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41229 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41230 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41231 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41232 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41233 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41234 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41235 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41236 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41237 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41238 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41239 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41240 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41241 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41242 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41243 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41244 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41245 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41246 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41247 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41248 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41249 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
0085ce49
RD
41250 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41251 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41252 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41253 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41254 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41255 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41256 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41257 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41258 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41259 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41260 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41261 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41262 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41263 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41264 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41265 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41266 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41267 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41268 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41269 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41270 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41271 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41272 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41273 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41274 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41275 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41276 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41277 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41278 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41279 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41280 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41281 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41282 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41283 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41284 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41285 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41286 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41287 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41288 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41289 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41290 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41291 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49
RD
41292 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41293 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41294 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41295 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41296 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41297 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41298 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41299 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
41300 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41301 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41302 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41303 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
41304 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41305 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41306 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41307 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
41308 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41309 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41310 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41311 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41312 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41313 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41314 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41315 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41316 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41317 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
41318 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41319 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41320
41321 // Work around a chicken/egg problem in drawlist.cpp
41322 wxPyDrawList_SetAPIPtr();
41323
d14a1e28
RD
41324}
41325