]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
Change GetC to return an int so that it can return wxEOF on error.
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d55e5bfc 47
7449af73
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
554f62e9
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
554f62e9
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
7449af73
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
554f62e9
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
554f62e9 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
7449af73
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
554f62e9 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
7449af73
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
7449af73
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
7449af73 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
554f62e9
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
554f62e9
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
554f62e9
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
554f62e9
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
554f62e9
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
554f62e9
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
7449af73 1016
c32bde28 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
7449af73 1023
554f62e9
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
c32bde28 1032
554f62e9 1033/* Error manipulation */
c32bde28 1034
554f62e9
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
d55e5bfc 1042
554f62e9
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
c32bde28 1053
554f62e9
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
554f62e9
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
d55e5bfc 1100 }
554f62e9
RD
1101 return result;
1102#endif
093d3ff1 1103}
d55e5bfc 1104
554f62e9 1105/* Unpack the argument tuple */
d55e5bfc 1106
554f62e9
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
7449af73 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
554f62e9
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
554f62e9
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
7449af73 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1 1698}
c32bde28 1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c32bde28 1713{
093d3ff1
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
c32bde28 1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c32bde28 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
d55e5bfc
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
d55e5bfc 1738{
093d3ff1
RD
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1 1744 }
d55e5bfc
RD
1745}
1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
554f62e9
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
093d3ff1 1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
7e63a440 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1 1867}
d55e5bfc 1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
d55e5bfc 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d55e5bfc 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
d55e5bfc 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
093d3ff1
RD
1947 }
1948}
d55e5bfc 1949
554f62e9
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
d55e5bfc 1961 }
554f62e9 1962 return 0;
c32bde28
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1 2042 }
d55e5bfc
RD
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d55e5bfc 2071
554f62e9 2072/* Convert a packed value value */
d55e5bfc 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
554f62e9
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
554f62e9
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
554f62e9
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
554f62e9
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d55e5bfc 2159
554f62e9
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
554f62e9
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d55e5bfc 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d55e5bfc 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d55e5bfc 2233
7449af73
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d55e5bfc 2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
d55e5bfc 2284
554f62e9
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
7449af73
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
d55e5bfc 2314
554f62e9
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
5e483524 2321
554f62e9
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
7449af73
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
093d3ff1 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
554f62e9
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
093d3ff1
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
093d3ff1 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
554f62e9 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
554f62e9
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
554f62e9
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
093d3ff1 2683 }
554f62e9
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
093d3ff1 2688 }
554f62e9
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
093d3ff1 2718}
d55e5bfc 2719
d55e5bfc 2720
554f62e9
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
554f62e9 2731 };
d55e5bfc
RD
2732}
2733
2734
554f62e9
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
f460c29d
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
554f62e9
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc 2761
c32bde28 2762
50efceee
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
093d3ff1 2774SWIGINTERN int
554f62e9 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2779 return SWIG_TypeError;
093d3ff1
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
554f62e9 2783 return SWIG_OK;
093d3ff1 2784}
c32bde28 2785
d55e5bfc 2786
093d3ff1 2787SWIGINTERN int
554f62e9
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
093d3ff1 2790 unsigned long v;
554f62e9
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
093d3ff1 2795 } else {
554f62e9 2796 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2797 }
554f62e9
RD
2798 }
2799 return res;
093d3ff1 2800}
d55e5bfc
RD
2801
2802
554f62e9
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2805{
554f62e9
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2808}
d55e5bfc
RD
2809
2810
554f62e9
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
093d3ff1
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
093d3ff1
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2870 return rv;
2871 }
554f62e9 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
2875
554f62e9
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2878{
554f62e9
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
554f62e9 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
554f62e9 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
093d3ff1
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
554f62e9
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
fc46b7f3
RD
2926#include <wx/rawbmp.h>
2927
2928
093d3ff1 2929#include <wx/image.h>
d55e5bfc 2930
093d3ff1
RD
2931 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2932 char** cArray = NULL;
2933 int count;
d55e5bfc 2934
093d3ff1
RD
2935 if (!PyList_Check(listOfStrings)) {
2936 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2937 return NULL;
2938 }
2939 count = PyList_Size(listOfStrings);
2940 cArray = new char*[count];
d55e5bfc 2941
093d3ff1
RD
2942 for(int x=0; x<count; x++) {
2943 // TODO: Need some validation and error checking here
2944 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2945 }
2946 return cArray;
d55e5bfc 2947 }
d55e5bfc
RD
2948
2949
554f62e9 2950SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2951 char** cArray = NULL;
2952 wxBitmap* bmp;
2953
2954 cArray = ConvertListOfStrings(listOfStrings);
2955 if (! cArray)
2956 return NULL;
2957 bmp = new wxBitmap(cArray);
2958 delete [] cArray;
2959 return bmp;
2960 }
554f62e9 2961SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2962 char* buf;
2963 Py_ssize_t length;
2964 PyString_AsStringAndSize(bits, &buf, &length);
2965 return new wxBitmap(buf, width, height, depth);
2966 }
554f62e9
RD
2967SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2968SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2969 wxSize size(self->GetWidth(), self->GetHeight());
2970 return size;
2971 }
554f62e9 2972SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2973 wxMask *mask = new wxMask(*self, colour);
2974 self->SetMask(mask);
2975 }
554f62e9 2976SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2977 self->SetWidth(size.x);
2978 self->SetHeight(size.y);
2979 }
554f62e9
RD
2980SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2981SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2982
2983// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2984// appears to me that the other platforms are already doing it, so I'll just
2985// automatically do it for wxMSW here.
2986#ifdef __WXMSW__
195a89b4
RD
2987#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2988#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2989#else
2990#define wxPy_premultiply(p, a) (p)
2991#define wxPy_unpremultiply(p, a) (p)
2992#endif
2993
2994
2995 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2996 buffer data, int DATASIZE,
2997 buffer alpha, int ALPHASIZE)
2998 {
2999 if (DATASIZE != width*height*3) {
3000 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3001 return NULL;
3002 }
3003
3004 if (ALPHASIZE != width*height) {
3005 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3006 return NULL;
3007 }
3008
3009 wxBitmap* bmp = new wxBitmap(width, height, 32);
3010 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3011 if (! pixData) {
3012 // raise an exception...
3013 wxPyErr_SetString(PyExc_RuntimeError,
3014 "Failed to gain raw access to bitmap data.");
3015 return NULL;
3016 }
3017
3018 pixData.UseAlpha();
3019 wxAlphaPixelData::Iterator p(pixData);
3020 for (int y=0; y<height; y++) {
3021 wxAlphaPixelData::Iterator rowStart = p;
3022 for (int x=0; x<width; x++) {
3023 byte a = *(alpha++);
3024 p.Red() = wxPy_premultiply(*(data++), a);
3025 p.Green() = wxPy_premultiply(*(data++), a);
3026 p.Blue() = wxPy_premultiply(*(data++), a);
3027 p.Alpha() = a;
3028 ++p;
3029 }
3030 p = rowStart;
3031 p.OffsetY(pixData, 1);
3032 }
3033 return bmp;
3034 }
3035
3036 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3037 {
3038 if (DATASIZE != width*height*3) {
3039 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3040 return NULL;
3041 }
3042
3043 wxBitmap* bmp = new wxBitmap(width, height, 24);
3044 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3045 if (! pixData) {
3046 // raise an exception...
3047 wxPyErr_SetString(PyExc_RuntimeError,
3048 "Failed to gain raw access to bitmap data.");
3049 return NULL;
3050 }
3051
3052 wxNativePixelData::Iterator p(pixData);
3053 for (int y=0; y<height; y++) {
3054 wxNativePixelData::Iterator rowStart = p;
3055 for (int x=0; x<width; x++) {
3056 p.Red() = *(data++);
3057 p.Green() = *(data++);
3058 p.Blue() = *(data++);
3059 ++p;
3060 }
3061 p = rowStart;
3062 p.OffsetY(pixData, 1);
3063 }
3064 return bmp;
3065 }
3066
3067
3068 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3069 {
3070 if (DATASIZE != width*height*4) {
3071 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3072 return NULL;
3073 }
3074
3075 wxBitmap* bmp = new wxBitmap(width, height, 32);
3076 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3077 if (! pixData) {
3078 // raise an exception...
3079 wxPyErr_SetString(PyExc_RuntimeError,
3080 "Failed to gain raw access to bitmap data.");
3081 return NULL;
3082 }
3083
3084 pixData.UseAlpha();
3085 wxAlphaPixelData::Iterator p(pixData);
3086 for (int y=0; y<height; y++) {
3087 wxAlphaPixelData::Iterator rowStart = p;
3088 for (int x=0; x<width; x++) {
3089 byte a = data[3];
3090 p.Red() = wxPy_premultiply(*(data++), a);
3091 p.Green() = wxPy_premultiply(*(data++), a);
3092 p.Blue() = wxPy_premultiply(*(data++), a);
3093 p.Alpha() = a; data++;
3094 ++p;
3095 }
3096 p = rowStart;
3097 p.OffsetY(pixData, 1);
3098 }
3099 return bmp;
3100 }
3101
3102
3103 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3104
3105SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3106SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3107SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3108 self->Red() = red;
3109 self->Green() = green;
3110 self->Blue() = blue;
3111 }
3112SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3113 PyObject* rv = PyTuple_New(3);
3114 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3115 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3116 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3117 return rv;
3118 }
3119
3120 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3121
3122SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3123SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3124SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3125 self->Red() = wxPy_premultiply(red, alpha);
3126 self->Green() = wxPy_premultiply(green, alpha);
3127 self->Blue() = wxPy_premultiply(blue, alpha);
3128 self->Alpha() = alpha;
3129 }
3130SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3131 PyObject* rv = PyTuple_New(4);
3132 int red = self->Red();
3133 int green = self->Green();
3134 int blue = self->Blue();
3135 int alpha = self->Alpha();
3136
3137 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3138 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3139 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3140 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3141 return rv;
3142 }
554f62e9 3143SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3144 if ( !colour.IsOk() )
093d3ff1
RD
3145 return new wxMask(bitmap, *wxBLACK);
3146 else
3147 return new wxMask(bitmap, colour);
3148 }
d55e5bfc 3149
093d3ff1 3150#include <wx/iconbndl.h>
d55e5bfc 3151
554f62e9 3152SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3153 wxIcon* icon = new wxIcon();
3154 icon->CopyFromBitmap(bmp);
3155 return icon;
3156 }
554f62e9 3157SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3158 char** cArray = NULL;
3159 wxIcon* icon;
d55e5bfc 3160
093d3ff1
RD
3161 cArray = ConvertListOfStrings(listOfStrings);
3162 if (! cArray)
3163 return NULL;
3164 icon = new wxIcon(cArray);
3165 delete [] cArray;
3166 return icon;
3167 }
554f62e9
RD
3168SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3169SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3170
093d3ff1 3171 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3172
3173
d55e5bfc 3174
093d3ff1 3175 }
554f62e9 3176SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3177
093d3ff1 3178 self->SetIndex(num);
d55e5bfc
RD
3179
3180
d55e5bfc 3181
093d3ff1 3182 }
554f62e9 3183SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3184
093d3ff1 3185 return self->GetIndex();
d55e5bfc
RD
3186
3187
d55e5bfc 3188
093d3ff1 3189 }
554f62e9 3190SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3191#ifdef __WXGTK__
fef4c27a
RD
3192 wxImage img(cursorName, type);
3193 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3194 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3195 return new wxCursor(img);
093d3ff1 3196#else
fef4c27a 3197 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3198#endif
3199 }
554f62e9 3200SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3201
093d3ff1 3202
554f62e9 3203SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3204 (*self) ++;
3205 }
554f62e9 3206SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3207 return self->operator bool();
3208 }
3209
3210#include <wx/fontutil.h>
3211#include <wx/fontmap.h>
3212#include <wx/fontenum.h>
3213
554f62e9 3214SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3215 return self->ToString();
3216 }
3217
3218 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3219 { wxPyRaiseNotImplemented(); return NULL; }
3220
3221 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3222 { wxPyRaiseNotImplemented(); return false; }
3223
554f62e9
RD
3224
3225SWIGINTERNINLINE PyObject *
3226SWIG_From_size_t (size_t value)
3227{
3228 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3229}
3230
3231
3232SWIGINTERNINLINE int
3233SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3234{
3235 unsigned long v;
3236 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3237 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3238 return res;
3239}
3240
3241SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3242 wxFontEncoding alt_enc;
3243 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3244 return PyInt_FromLong(alt_enc);
3245 else {
3246 Py_INCREF(Py_None);
3247 return Py_None;
3248 }
3249 }
554f62e9 3250SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3251 wxNativeFontInfo nfi;
3252 nfi.FromString(info);
3253 return new wxFont(nfi);
3254 }
554f62e9 3255SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3256 return wxFont::New(pointSize, family, flags, face, encoding);
3257 }
554f62e9 3258SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3259 return wxFontBase::New(pixelSize, family,
3260 style, weight, underlined,
3261 face, encoding);
3262 }
554f62e9 3263SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3264 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3265 }
554f62e9
RD
3266SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3267SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3268
3269class wxPyFontEnumerator : public wxFontEnumerator {
3270public:
3271 wxPyFontEnumerator() {}
3272 ~wxPyFontEnumerator() {}
3273
3274 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3275 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3276
3277 PYPRIVATE;
3278};
3279
3280IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3281IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3282
3283
704eda0c 3284SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3285 PyObject* ret;
704eda0c 3286 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3287 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3288 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3289 wxPyEndBlockThreads(blocked);
3290 return ret;
093d3ff1 3291 }
704eda0c 3292SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3293 PyObject* ret;
704eda0c 3294 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3295 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3296 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3297 wxPyEndBlockThreads(blocked);
3298 return ret;
093d3ff1
RD
3299 }
3300
3301#include <locale.h>
3302
554f62e9 3303SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3304 wxLocale* loc;
3305 if (language == -1)
3306 loc = new wxLocale();
3307 else
3308 loc = new wxLocale(language, flags);
3309 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3310 // for the floating point conversions and such to work right.
3311#if PY_VERSION_HEX < 0x02040000
3312 setlocale(LC_NUMERIC, "C");
3313#endif
3314 return loc;
3315 }
554f62e9 3316SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3317 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3318 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3319 // for the floating point conversions and such to work right.
3320#if PY_VERSION_HEX < 0x02040000
3321 setlocale(LC_NUMERIC, "C");
3322#endif
3323 return rc;
3324 }
554f62e9 3325SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3326 bool rc = self->Init(language, flags);
3327 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3328 // for the floating point conversions and such to work right.
3329#if PY_VERSION_HEX < 0x02040000
3330 setlocale(LC_NUMERIC, "C");
3331#endif
3332 return rc;
3333 }
3334
fc46b7f3
RD
3335class wxPyLocale : public wxLocale
3336{
3337public:
3338 wxPyLocale();
3339
3340 wxPyLocale(const wxChar *szName, // name (for messages)
3341 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3342 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3343 bool bLoadDefault = true, // preload wxstd.mo?
3344 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3345
3346 wxPyLocale(int language, // wxLanguage id or custom language
3347 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3348
3349 ~wxPyLocale();
3350
3351 virtual const wxChar *GetString(const wxChar *szOrigString,
3352 const wxChar *szDomain = NULL) const;
3353 virtual const wxChar *GetString(const wxChar *szOrigString,
3354 const wxChar *szOrigString2, size_t n,
3355 const wxChar *szDomain = NULL) const;
3356
3357 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3358 const wxChar *szDomain = NULL) const;
3359 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3360 const wxChar *szOrigString2, size_t n,
3361 const wxChar *szDomain = NULL) const;
3362
3363 PYPRIVATE;
3364private:
3365 DECLARE_NO_COPY_CLASS(wxPyLocale)
3366};
3367
3368wxPyLocale::wxPyLocale() : wxLocale()
3369{
3370}
3371
3372wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3373 const wxChar *szShort, // dir prefix (for msg files)
3374 const wxChar *szLocale, // locale (for setlocale)
3375 bool bLoadDefault, // preload wxstd.mo?
3376 bool bConvertEncoding) // convert Win<->Unix if necessary?
3377 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3378{
3379}
3380
3381wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3382 int flags) : wxLocale(language, flags)
3383{
3384}
3385
3386wxPyLocale::~wxPyLocale()
3387{
3388}
3389
3390const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392{
3393 wxChar *str = GetSingularString(szOrigString, szDomain);
3394 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3395}
3396
3397const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3398 const wxChar *szOrigString2, size_t n,
3399 const wxChar *szDomain) const
3400{
3401 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3402 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3403}
3404
3405wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3406 const wxChar *szDomain) const
3407{
3408 bool found;
3409 static wxString str;
3410 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3411 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3412 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3413 PyObject* param1 = wx2PyString(szOrigString);
3414 PyObject* param2 = wx2PyString(szDomain);
3415 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3416 Py_DECREF(param1);
3417 Py_DECREF(param2);
3418 if (ret) {
3419 str = Py2wxString(ret);
3420 Py_DECREF(ret);
3421 }
3422 }
3423 wxPyEndBlockThreads(blocked);
3424 return (found ? (wxChar*)str.c_str() : NULL);
3425}
3426
3427wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3428 const wxChar *szOrigString2, size_t n,
3429 const wxChar *szDomain) const
3430{
3431 bool found;
3432 static wxString str;
3433 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3434 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3435 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3436 PyObject* param1 = wx2PyString(szOrigString);
3437 PyObject* param2 = wx2PyString(szOrigString2);
3438 PyObject* param4 = wx2PyString(szDomain);
3439 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3440 Py_DECREF(param1);
3441 Py_DECREF(param2);
3442 Py_DECREF(param4);
3443 if( ret) {
3444 str = Py2wxString(ret);
3445 Py_DECREF(ret);
3446 }
3447 }
3448 wxPyEndBlockThreads(blocked);
3449 return (found ? (wxChar*)str.c_str() : NULL);
3450}
3451
3452SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3453 wxPyLocale* loc;
3454 if (language == -1)
3455 loc = new wxPyLocale();
3456 else
3457 loc = new wxPyLocale(language, flags);
3458 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3459 // for the floating point conversions and such to work right.
3460#if PY_VERSION_HEX < 0x02040000
3461 setlocale(LC_NUMERIC, "C");
3462#endif
3463 return loc;
3464 }
3465
093d3ff1
RD
3466#include "wx/wxPython/pydrawxxx.h"
3467
554f62e9 3468SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3469 wxColour col;
3470 self->GetPixel(x, y, &col);
3471 return col;
3472 }
554f62e9 3473SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3474 wxColour col;
3475 self->GetPixel(pt, &col);
3476 return col;
3477 }
3478
3479SWIGINTERN int
554f62e9 3480SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3481{
3482 if (PyNumber_Check(obj)) {
3483 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3484 return SWIG_OK;
093d3ff1 3485 }
554f62e9 3486 return SWIG_TypeError;
093d3ff1
RD
3487}
3488
554f62e9 3489SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3490 wxRect rv;
3491 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3492 return rv;
3493 }
554f62e9 3494SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3495 wxRect rect;
3496 self->GetClippingBox(rect);
3497 return rect;
3498 }
554f62e9 3499SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3500 wxArrayInt widths;
3501 self->GetPartialTextExtents(text, widths);
3502 return widths;
3503 }
3504
554f62e9 3505 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3506
554f62e9 3507SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3508 self->SetLogicalOrigin(point.x, point.y);
3509 }
554f62e9 3510SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3511 self->SetDeviceOrigin(point.x, point.y);
3512 }
554f62e9 3513SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3514 self->CalcBoundingBox(point.x, point.y);
3515 }
554f62e9 3516SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3518 }
554f62e9 3519SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3520 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3521 }
554f62e9 3522SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3523 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3524 }
554f62e9 3525SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3526 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3527 }
554f62e9 3528SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3529 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3530 }
554f62e9 3531SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3532 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3533 }
3534
3535static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3536 *x1 = dc->MinX();
3537 *y1 = dc->MinY();
3538 *x2 = dc->MaxX();
3539 *y2 = dc->MaxY();
3540}
3541
3542
3543#include <wx/dcbuffer.h>
3544
3545
3546#include <wx/dcps.h>
3547
3548
3549#include <wx/metafile.h>
3550
3551
72ef6efb
RD
3552#include <wx/graphics.h>
3553
3554
3555#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3556// C++ stub classes for platforms or build configurations that don't have
3557// wxGraphicsContext yet.
72ef6efb 3558
70d7cb34
RD
3559
3560class wxGraphicsObject : public wxObject
72ef6efb
RD
3561{
3562public :
70d7cb34 3563 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3564 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3565 "wx.GraphicsObject is not available on this platform.");
3566 }
3567 wxGraphicsObject( const wxGraphicsObject& ) {}
3568 virtual ~wxGraphicsObject() {}
3569 bool IsNull() const { return false; }
3570 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3571} ;
3572
3573
3574
3575class wxGraphicsPen : public wxGraphicsObject
3576{
3577 wxGraphicsPen() {}
3578 virtual ~wxGraphicsPen() {}
3579} ;
3580wxGraphicsPen wxNullGraphicsPen;
3581
3582
3583
3584class wxGraphicsBrush : public wxGraphicsObject
3585{
3586public :
3587 wxGraphicsBrush() {}
3588 virtual ~wxGraphicsBrush() {}
3589} ;
3590wxGraphicsBrush wxNullGraphicsBrush;
3591
3592
3593
3594class wxGraphicsFont : public wxGraphicsObject
3595{
3596public :
3597 wxGraphicsFont() {}
3598 virtual ~wxGraphicsFont() {}
3599} ;
3600wxGraphicsFont wxNullGraphicsFont;
3601
3602
3603
3604class wxGraphicsPath : public wxGraphicsObject
3605{
3606public :
3607 wxGraphicsPath(wxGraphicsRenderer* ) {
3608 PyErr_SetString(PyExc_NotImplementedError,
3609 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3610 }
3611 virtual ~wxGraphicsPath() {}
70d7cb34 3612
72ef6efb 3613 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3614 void MoveToPoint( const wxPoint2DDouble& ) {}
3615 void AddLineToPoint( wxDouble, wxDouble ) {}
3616 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3617 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3618 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3619 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3620 void CloseSubpath() {}
3621 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3622 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3623 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3624 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3625
3626 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3627 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3628 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3629 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3630
70d7cb34
RD
3631 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3632 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3633 void * GetNativePath() const { return NULL; }
3634 void UnGetNativePath(void *) {}
3635 void Transform( wxGraphicsMatrix* ) {}
3636 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3637 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3638
3639 bool Contains( wxDouble , wxDouble , int ) { return false; }
3640 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3641};
5c8c7dd3 3642wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3643
3644
3645class wxGraphicsMatrix : public wxGraphicsObject
3646{
3647public :
3648 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3649 PyErr_SetString(PyExc_NotImplementedError,
3650 "wx.GraphicsMatrix is not available on this platform.");
3651 }
3652 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3653 virtual void Concat( const wxGraphicsMatrix * ) {}
3654 virtual void Copy( const wxGraphicsMatrix * ) {}
3655 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3656 wxDouble , wxDouble ) {}
3657 virtual void Invert() {}
3658 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3659 virtual bool IsIdentity() { return false; }
3660 virtual void Translate( wxDouble , wxDouble ) {}
3661 virtual void Scale( wxDouble , wxDouble ) {}
3662 virtual void Rotate( wxDouble ) {}
3663 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3664 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3665 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3666};
5c8c7dd3 3667wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3668
70d7cb34
RD
3669
3670class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3671{
3672public:
70d7cb34
RD
3673
3674 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3675 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3676 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3677 }
70d7cb34 3678
72ef6efb 3679 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3680
3681 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3682 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3683 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3684 }
b876c1e4 3685
70d7cb34 3686 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3687 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3688 "wx.GraphicsContext is not available on this platform.");
3689 }
b876c1e4 3690
70d7cb34
RD
3691 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3692 PyErr_SetString(PyExc_NotImplementedError,
3693 "wx.GraphicsContext is not available on this platform.");
3694 }
3695
3696 static wxGraphicsContext* Create( wxWindow* ) {
3697 PyErr_SetString(PyExc_NotImplementedError,
3698 "wx.GraphicsContext is not available on this platform.");
3699 }
3700
3701 wxGraphicsPath * CreatePath() { return NULL; }
3702
3703 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3704
3705 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3706
3707 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3708 const wxColour&, const wxColour&) { return NULL; }
3709
3710 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3711 wxDouble xc, wxDouble yc, wxDouble radius,
3712 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3713
3714 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3715
3716 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3717 wxDouble, wxDouble) { return NULL; }
3718
3719 virtual void PushState() {}
3720 virtual void PopState() {}
3721 virtual void Clip( const wxRegion & ) {}
3722 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3723 virtual void ResetClip() {}
3724 virtual void * GetNativeContext() { return NULL; }
3725 virtual void Translate( wxDouble , wxDouble ) {}
3726 virtual void Scale( wxDouble , wxDouble ) {}
3727 virtual void Rotate( wxDouble ) {}
3728 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3729 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3730 virtual void GetTransform( wxGraphicsMatrix* ) {}
3731
3732 virtual void SetPen( const wxGraphicsPen& ) {}
3733 void SetPen( const wxPen& ) {}
3734
3735 virtual void SetBrush( const wxGraphicsBrush& ) {}
3736 void SetBrush( const wxBrush& ) {}
3737
3738 virtual void SetFont( const wxGraphicsFont& ) {}
3739 void SetFont( const wxFont&, const wxColour& ) {}
3740
3741 virtual void StrokePath( const wxGraphicsPath * ) {}
3742 virtual void FillPath( const wxGraphicsPath *, int ) {}
3743 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3744
3745 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3746 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3747 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3748 wxDouble *, wxDouble * ) const {}
3749 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3750
3751 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3752 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3753
3754 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3755 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3756 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3757 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3758 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3759 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3760 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3761 virtual bool ShouldOffset() const { return false; }
3762};
3763
3764
3765class wxGraphicsRenderer : public wxObject
3766{
3767public :
3768 wxGraphicsRenderer() {
3769 PyErr_SetString(PyExc_NotImplementedError,
3770 "wx.GraphicsRenderer is not available on this platform.");
3771 }
3772
3773 virtual ~wxGraphicsRenderer() {}
3774
3775 static wxGraphicsRenderer* GetDefaultRenderer(
3776 PyErr_SetString(PyExc_NotImplementedError,
3777 "wx.GraphicsRenderer is not available on this platform.");
3778 );
3779
3780 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3781 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3782 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3783 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3784
3785 virtual wxGraphicsPath * CreatePath() { return NULL; }
3786
3787 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3788 wxDouble , wxDouble ) { return NULL; }
3789
3790 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3791 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3792 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3793 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3794 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3795 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3796 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3797};
3798
3799
70d7cb34 3800
72ef6efb
RD
3801class wxGCDC: public wxWindowDC
3802{
3803public:
3804 wxGCDC(const wxWindowDC&) {
3805 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3806 PyErr_SetString(PyExc_NotImplementedError,
3807 "wxGCDC is not available on this platform.");
3808 wxPyEndBlockThreads(blocked);
3809 }
70d7cb34 3810
72ef6efb
RD
3811 wxGCDC() {
3812 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3813 PyErr_SetString(PyExc_NotImplementedError,
3814 "wxGCDC is not available on this platform.");
3815 wxPyEndBlockThreads(blocked);
3816 }
70d7cb34 3817
72ef6efb
RD
3818 virtual ~wxGCDC() {}
3819
b876c1e4
RD
3820 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3821 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3822};
3823
3824#endif
3825
5c8c7dd3
RD
3826SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3827 *self = t;
3828 }
be68621e
RD
3829SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3830 wxDouble width = 0.0,
3831 height = 0.0;
3832 self->GetTextExtent(text, &width, &height, NULL, NULL);
3833 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3834 PyObject* rv = PyTuple_New(2);
3835 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3836 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3837 return rv;
3838 }
b39fe951
RD
3839SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3840 wxArrayDouble widths;
3841 self->GetPartialTextExtents(text, widths);
3842 return widths;
3843 }
f8eb59b9 3844SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3845 size_t c1, c2, count;
3846 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3847 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3848
3849 if ( beginP != NULL && endP != NULL )
3850 {
3851 count = wxMin(c1, c2);
3852 self->StrokeLines(count, beginP, endP);
3853 }
3854 delete [] beginP;
3855 delete [] endP;
3856 }
72ef6efb 3857
0a27f394
RD
3858#include "wx/dcgraph.h"
3859
3860
66493fc7
RD
3861#include <wx/overlay.h>
3862
3863
093d3ff1 3864
554f62e9 3865SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3866 self->AddColour(name, wxColour(red, green, blue));
3867 }
3868
50efceee
RD
3869 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3870 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3871 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3872 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3873
3874
093d3ff1
RD
3875#include <wx/effects.h>
3876
be9b1dca
RD
3877
3878#include "wx/renderer.h"
3879
3880
7449af73 3881SWIGINTERNINLINE PyObject*
554f62e9 3882 SWIG_From_bool (bool value)
be9b1dca 3883{
554f62e9 3884 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3885}
3886
27e45892
RD
3887
3888#include "wx/wxPython/pseudodc.h"
3889
3890SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3891 wxRect rect;
3892 self->GetIdBounds(id, rect);
3893 return rect;
3894 }
093d3ff1
RD
3895#ifdef __cplusplus
3896extern "C" {
3897#endif
554f62e9
RD
3898SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3899 PyObject *resultobj = 0;
3900 wxGDIObject *result = 0 ;
3901
3902 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3903 {
3904 if (!wxPyCheckForApp()) SWIG_fail;
3905 PyThreadState* __tstate = wxPyBeginAllowThreads();
3906 result = (wxGDIObject *)new wxGDIObject();
3907 wxPyEndAllowThreads(__tstate);
3908 if (PyErr_Occurred()) SWIG_fail;
3909 }
3910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3911 return resultobj;
3912fail:
3913 return NULL;
d55e5bfc
RD
3914}
3915
3916
554f62e9
RD
3917SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3918 PyObject *resultobj = 0;
3919 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3920 void *argp1 = 0 ;
3921 int res1 = 0 ;
3922 PyObject *swig_obj[1] ;
3923
3924 if (!args) SWIG_fail;
3925 swig_obj[0] = args;
3926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3927 if (!SWIG_IsOK(res1)) {
3928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3929 }
3930 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 delete arg1;
d55e5bfc 3934
554f62e9
RD
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 resultobj = SWIG_Py_Void();
3939 return resultobj;
3940fail:
3941 return NULL;
d55e5bfc
RD
3942}
3943
3944
554f62e9
RD
3945SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3946 PyObject *resultobj = 0;
3947 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3948 bool result;
3949 void *argp1 = 0 ;
3950 int res1 = 0 ;
3951 PyObject *swig_obj[1] ;
3952
3953 if (!args) SWIG_fail;
3954 swig_obj[0] = args;
3955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3956 if (!SWIG_IsOK(res1)) {
3957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3958 }
3959 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3960 {
3961 PyThreadState* __tstate = wxPyBeginAllowThreads();
3962 result = (bool)(arg1)->IsNull();
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 {
3967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3968 }
3969 return resultobj;
3970fail:
3971 return NULL;
3972}
3973
3974
3975SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3976 PyObject *obj;
3977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3978 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3979 return SWIG_Py_Void();
3980}
3981
3982SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3983 return SWIG_Python_InitShadowInstance(args);
3984}
3985
3986SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3987 PyObject *resultobj = 0;
3988 byte arg1 = (byte) 0 ;
3989 byte arg2 = (byte) 0 ;
3990 byte arg3 = (byte) 0 ;
fc46b7f3 3991 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
3992 wxColour *result = 0 ;
3993 unsigned char val1 ;
3994 int ecode1 = 0 ;
3995 unsigned char val2 ;
3996 int ecode2 = 0 ;
3997 unsigned char val3 ;
3998 int ecode3 = 0 ;
fc46b7f3
RD
3999 unsigned char val4 ;
4000 int ecode4 = 0 ;
554f62e9
RD
4001 PyObject * obj0 = 0 ;
4002 PyObject * obj1 = 0 ;
4003 PyObject * obj2 = 0 ;
fc46b7f3 4004 PyObject * obj3 = 0 ;
554f62e9 4005 char * kwnames[] = {
fc46b7f3 4006 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4007 };
4008
fc46b7f3 4009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
4010 if (obj0) {
4011 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4012 if (!SWIG_IsOK(ecode1)) {
4013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4014 }
4015 arg1 = static_cast< byte >(val1);
4016 }
4017 if (obj1) {
4018 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4019 if (!SWIG_IsOK(ecode2)) {
4020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4021 }
4022 arg2 = static_cast< byte >(val2);
4023 }
4024 if (obj2) {
4025 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4026 if (!SWIG_IsOK(ecode3)) {
4027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4028 }
4029 arg3 = static_cast< byte >(val3);
4030 }
fc46b7f3
RD
4031 if (obj3) {
4032 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4033 if (!SWIG_IsOK(ecode4)) {
4034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4035 }
4036 arg4 = static_cast< byte >(val4);
4037 }
554f62e9
RD
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4040 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
4044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4045 return resultobj;
4046fail:
4047 return NULL;
d55e5bfc
RD
4048}
4049
4050
554f62e9
RD
4051SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4052 PyObject *resultobj = 0;
4053 wxString *arg1 = 0 ;
4054 wxColour *result = 0 ;
4055 bool temp1 = false ;
4056 PyObject * obj0 = 0 ;
4057 char * kwnames[] = {
4058 (char *) "colorName", NULL
4059 };
4060
4061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4062 {
4063 arg1 = wxString_in_helper(obj0);
4064 if (arg1 == NULL) SWIG_fail;
4065 temp1 = true;
4066 }
4067 {
4068 if (!wxPyCheckForApp()) SWIG_fail;
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (wxColour *)new wxColour((wxString const &)*arg1);
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4075 {
4076 if (temp1)
4077 delete arg1;
4078 }
4079 return resultobj;
4080fail:
4081 {
4082 if (temp1)
4083 delete arg1;
4084 }
4085 return NULL;
b519803b
RD
4086}
4087
4088
554f62e9
RD
4089SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4090 PyObject *resultobj = 0;
4091 unsigned long arg1 ;
4092 wxColour *result = 0 ;
4093 unsigned long val1 ;
4094 int ecode1 = 0 ;
4095 PyObject * obj0 = 0 ;
4096 char * kwnames[] = {
4097 (char *) "colRGB", NULL
4098 };
4099
4100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4101 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4102 if (!SWIG_IsOK(ecode1)) {
4103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4104 }
4105 arg1 = static_cast< unsigned long >(val1);
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (wxColour *)new wxColour(arg1);
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4113 return resultobj;
4114fail:
4115 return NULL;
d55e5bfc
RD
4116}
4117
4118
554f62e9
RD
4119SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4120 PyObject *resultobj = 0;
4121 wxColour *arg1 = (wxColour *) 0 ;
4122 void *argp1 = 0 ;
4123 int res1 = 0 ;
4124 PyObject *swig_obj[1] ;
4125
4126 if (!args) SWIG_fail;
4127 swig_obj[0] = args;
4128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4129 if (!SWIG_IsOK(res1)) {
4130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4131 }
4132 arg1 = reinterpret_cast< wxColour * >(argp1);
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 delete arg1;
d55e5bfc 4136
554f62e9
RD
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 resultobj = SWIG_Py_Void();
4141 return resultobj;
4142fail:
4143 return NULL;
d55e5bfc
RD
4144}
4145
4146
554f62e9
RD
4147SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4148 PyObject *resultobj = 0;
4149 wxColour *arg1 = (wxColour *) 0 ;
4150 byte result;
4151 void *argp1 = 0 ;
4152 int res1 = 0 ;
4153 PyObject *swig_obj[1] ;
4154
4155 if (!args) SWIG_fail;
4156 swig_obj[0] = args;
4157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4158 if (!SWIG_IsOK(res1)) {
4159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4160 }
4161 arg1 = reinterpret_cast< wxColour * >(argp1);
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (byte)(arg1)->Red();
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4169 return resultobj;
4170fail:
4171 return NULL;
d55e5bfc
RD
4172}
4173
4174
554f62e9
RD
4175SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176 PyObject *resultobj = 0;
4177 wxColour *arg1 = (wxColour *) 0 ;
4178 byte result;
4179 void *argp1 = 0 ;
4180 int res1 = 0 ;
4181 PyObject *swig_obj[1] ;
4182
4183 if (!args) SWIG_fail;
4184 swig_obj[0] = args;
4185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4186 if (!SWIG_IsOK(res1)) {
4187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4188 }
4189 arg1 = reinterpret_cast< wxColour * >(argp1);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (byte)(arg1)->Green();
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4197 return resultobj;
4198fail:
4199 return NULL;
d55e5bfc
RD
4200}
4201
4202
554f62e9
RD
4203SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4204 PyObject *resultobj = 0;
4205 wxColour *arg1 = (wxColour *) 0 ;
4206 byte result;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 PyObject *swig_obj[1] ;
4210
4211 if (!args) SWIG_fail;
4212 swig_obj[0] = args;
4213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4214 if (!SWIG_IsOK(res1)) {
4215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4216 }
4217 arg1 = reinterpret_cast< wxColour * >(argp1);
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (byte)(arg1)->Blue();
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4225 return resultobj;
4226fail:
4227 return NULL;
d55e5bfc
RD
4228}
4229
4230
fc46b7f3
RD
4231SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4232 PyObject *resultobj = 0;
4233 wxColour *arg1 = (wxColour *) 0 ;
4234 byte result;
4235 void *argp1 = 0 ;
4236 int res1 = 0 ;
4237 PyObject *swig_obj[1] ;
4238
4239 if (!args) SWIG_fail;
4240 swig_obj[0] = args;
4241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4242 if (!SWIG_IsOK(res1)) {
4243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4244 }
4245 arg1 = reinterpret_cast< wxColour * >(argp1);
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 result = (byte)(arg1)->Alpha();
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4253 return resultobj;
4254fail:
4255 return NULL;
4256}
4257
4258
b39fe951 4259SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4260 PyObject *resultobj = 0;
4261 wxColour *arg1 = (wxColour *) 0 ;
4262 bool result;
4263 void *argp1 = 0 ;
4264 int res1 = 0 ;
4265 PyObject *swig_obj[1] ;
4266
4267 if (!args) SWIG_fail;
4268 swig_obj[0] = args;
4269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4270 if (!SWIG_IsOK(res1)) {
b39fe951 4271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4272 }
4273 arg1 = reinterpret_cast< wxColour * >(argp1);
4274 {
4275 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4276 result = (bool)(arg1)->IsOk();
554f62e9
RD
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 {
4281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4282 }
4283 return resultobj;
4284fail:
4285 return NULL;
4286}
4287
4288
4289SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj = 0;
4291 wxColour *arg1 = (wxColour *) 0 ;
4292 byte arg2 ;
4293 byte arg3 ;
4294 byte arg4 ;
fc46b7f3 4295 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4296 void *argp1 = 0 ;
4297 int res1 = 0 ;
4298 unsigned char val2 ;
4299 int ecode2 = 0 ;
4300 unsigned char val3 ;
4301 int ecode3 = 0 ;
4302 unsigned char val4 ;
4303 int ecode4 = 0 ;
fc46b7f3
RD
4304 unsigned char val5 ;
4305 int ecode5 = 0 ;
554f62e9
RD
4306 PyObject * obj0 = 0 ;
4307 PyObject * obj1 = 0 ;
4308 PyObject * obj2 = 0 ;
4309 PyObject * obj3 = 0 ;
fc46b7f3 4310 PyObject * obj4 = 0 ;
554f62e9 4311 char * kwnames[] = {
fc46b7f3 4312 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4313 };
4314
fc46b7f3 4315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4317 if (!SWIG_IsOK(res1)) {
4318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4319 }
4320 arg1 = reinterpret_cast< wxColour * >(argp1);
4321 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4322 if (!SWIG_IsOK(ecode2)) {
4323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4324 }
4325 arg2 = static_cast< byte >(val2);
4326 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4327 if (!SWIG_IsOK(ecode3)) {
4328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4329 }
4330 arg3 = static_cast< byte >(val3);
4331 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4332 if (!SWIG_IsOK(ecode4)) {
4333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4334 }
4335 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4336 if (obj4) {
4337 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4338 if (!SWIG_IsOK(ecode5)) {
4339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4340 }
4341 arg5 = static_cast< byte >(val5);
4342 }
554f62e9
RD
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4345 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_Py_Void();
4350 return resultobj;
4351fail:
4352 return NULL;
4353}
4354
4355
4356SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj = 0;
4358 wxColour *arg1 = (wxColour *) 0 ;
4359 unsigned long arg2 ;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 unsigned long val2 ;
4363 int ecode2 = 0 ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 char * kwnames[] = {
4367 (char *) "self",(char *) "colRGB", NULL
4368 };
4369
4370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4372 if (!SWIG_IsOK(res1)) {
4373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4374 }
4375 arg1 = reinterpret_cast< wxColour * >(argp1);
4376 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4377 if (!SWIG_IsOK(ecode2)) {
4378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4379 }
4380 arg2 = static_cast< unsigned long >(val2);
4381 {
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 (arg1)->Set(arg2);
4384 wxPyEndAllowThreads(__tstate);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 resultobj = SWIG_Py_Void();
4388 return resultobj;
4389fail:
4390 return NULL;
4391}
4392
4393
4394SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj = 0;
4396 wxColour *arg1 = (wxColour *) 0 ;
4397 wxString *arg2 = 0 ;
4398 void *argp1 = 0 ;
4399 int res1 = 0 ;
4400 bool temp2 = false ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 char * kwnames[] = {
4404 (char *) "self",(char *) "colourName", NULL
4405 };
4406
4407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4411 }
4412 arg1 = reinterpret_cast< wxColour * >(argp1);
4413 {
4414 arg2 = wxString_in_helper(obj1);
4415 if (arg2 == NULL) SWIG_fail;
4416 temp2 = true;
4417 }
4418 {
4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4420 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = SWIG_Py_Void();
4425 {
4426 if (temp2)
4427 delete arg2;
4428 }
4429 return resultobj;
4430fail:
4431 {
4432 if (temp2)
4433 delete arg2;
4434 }
4435 return NULL;
d55e5bfc
RD
4436}
4437
4438
f460c29d
RD
4439SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4440 PyObject *resultobj = 0;
4441 wxColour *arg1 = (wxColour *) 0 ;
4442 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4443 wxString result;
4444 void *argp1 = 0 ;
4445 int res1 = 0 ;
4446 long val2 ;
4447 int ecode2 = 0 ;
4448 PyObject * obj0 = 0 ;
4449 PyObject * obj1 = 0 ;
4450 char * kwnames[] = {
4451 (char *) "self",(char *) "flags", NULL
4452 };
4453
4454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4458 }
4459 arg1 = reinterpret_cast< wxColour * >(argp1);
4460 if (obj1) {
4461 ecode2 = SWIG_AsVal_long(obj1, &val2);
4462 if (!SWIG_IsOK(ecode2)) {
4463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4464 }
4465 arg2 = static_cast< long >(val2);
4466 }
4467 {
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = ((wxColour const *)arg1)->GetAsString(arg2);
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 {
4474#if wxUSE_UNICODE
4475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4476#else
4477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4478#endif
4479 }
4480 return resultobj;
4481fail:
4482 return NULL;
4483}
4484
4485
554f62e9
RD
4486SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4487 PyObject *resultobj = 0;
4488 wxColour *arg1 = (wxColour *) 0 ;
4489 long result;
4490 void *argp1 = 0 ;
4491 int res1 = 0 ;
4492 PyObject *swig_obj[1] ;
4493
4494 if (!args) SWIG_fail;
4495 swig_obj[0] = args;
4496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4497 if (!SWIG_IsOK(res1)) {
4498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4499 }
4500 arg1 = reinterpret_cast< wxColour * >(argp1);
4501 {
4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
4503 result = (long)((wxColour const *)arg1)->GetPixel();
4504 wxPyEndAllowThreads(__tstate);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 }
4507 resultobj = SWIG_From_long(static_cast< long >(result));
4508 return resultobj;
4509fail:
4510 return NULL;
4511}
4512
4513
4514SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4515 PyObject *resultobj = 0;
4516 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4517 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4518 bool result;
4519 void *argp1 = 0 ;
4520 int res1 = 0 ;
554f62e9
RD
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 char * kwnames[] = {
e9d6f3a4 4524 (char *) "self",(char *) "other", NULL
554f62e9
RD
4525 };
4526
4527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4529 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4531 }
4532 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4533 arg2 = obj1;
554f62e9 4534 {
e9d6f3a4 4535 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4536 if (PyErr_Occurred()) SWIG_fail;
4537 }
4538 {
4539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4540 }
4541 return resultobj;
4542fail:
4543 return NULL;
4544}
4545
4546
4547SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4548 PyObject *resultobj = 0;
4549 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4550 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4551 bool result;
4552 void *argp1 = 0 ;
4553 int res1 = 0 ;
554f62e9
RD
4554 PyObject * obj0 = 0 ;
4555 PyObject * obj1 = 0 ;
4556 char * kwnames[] = {
e9d6f3a4 4557 (char *) "self",(char *) "other", NULL
554f62e9
RD
4558 };
4559
4560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4562 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4564 }
4565 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4566 arg2 = obj1;
554f62e9 4567 {
e9d6f3a4 4568 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4569 if (PyErr_Occurred()) SWIG_fail;
4570 }
4571 {
4572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4573 }
4574 return resultobj;
4575fail:
4576 return NULL;
d55e5bfc
RD
4577}
4578
4579
fc46b7f3 4580SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4581 PyObject *resultobj = 0;
4582 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4583 bool arg2 = (bool) false ;
554f62e9
RD
4584 PyObject *result = 0 ;
4585 void *argp1 = 0 ;
4586 int res1 = 0 ;
fc46b7f3
RD
4587 bool val2 ;
4588 int ecode2 = 0 ;
4589 PyObject * obj0 = 0 ;
4590 PyObject * obj1 = 0 ;
4591 char * kwnames[] = {
4592 (char *) "self",(char *) "includeAlpha", NULL
4593 };
554f62e9 4594
fc46b7f3
RD
4595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4597 if (!SWIG_IsOK(res1)) {
4598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4599 }
4600 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4601 if (obj1) {
4602 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4603 if (!SWIG_IsOK(ecode2)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4605 }
4606 arg2 = static_cast< bool >(val2);
4607 }
554f62e9 4608 {
fc46b7f3 4609 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4610 if (PyErr_Occurred()) SWIG_fail;
4611 }
4612 resultobj = result;
4613 return resultobj;
4614fail:
4615 return NULL;
d55e5bfc
RD
4616}
4617
4618
554f62e9
RD
4619SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 PyObject *resultobj = 0;
4621 wxColour *arg1 = (wxColour *) 0 ;
4622 unsigned long result;
4623 void *argp1 = 0 ;
4624 int res1 = 0 ;
4625 PyObject *swig_obj[1] ;
4626
4627 if (!args) SWIG_fail;
4628 swig_obj[0] = args;
4629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4630 if (!SWIG_IsOK(res1)) {
4631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4632 }
4633 arg1 = reinterpret_cast< wxColour * >(argp1);
4634 {
554f62e9 4635 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4639 return resultobj;
4640fail:
4641 return NULL;
4642}
4643
4644
4645SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4646 PyObject *obj;
4647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4648 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4649 return SWIG_Py_Void();
4650}
4651
4652SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4653 return SWIG_Python_InitShadowInstance(args);
4654}
4655
4656SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj = 0;
4658 int arg1 ;
4659 unsigned char *arg2 = (unsigned char *) 0 ;
4660 unsigned char *arg3 = (unsigned char *) 0 ;
4661 unsigned char *arg4 = (unsigned char *) 0 ;
4662 wxPalette *result = 0 ;
4663 int val1 ;
4664 int ecode1 = 0 ;
4665 void *argp2 = 0 ;
4666 int res2 = 0 ;
4667 void *argp3 = 0 ;
4668 int res3 = 0 ;
4669 void *argp4 = 0 ;
4670 int res4 = 0 ;
4671 PyObject * obj0 = 0 ;
4672 PyObject * obj1 = 0 ;
4673 PyObject * obj2 = 0 ;
4674 PyObject * obj3 = 0 ;
4675 char * kwnames[] = {
4676 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4677 };
4678
4679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4680 ecode1 = SWIG_AsVal_int(obj0, &val1);
4681 if (!SWIG_IsOK(ecode1)) {
4682 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4683 }
4684 arg1 = static_cast< int >(val1);
4685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4686 if (!SWIG_IsOK(res2)) {
4687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4688 }
4689 arg2 = reinterpret_cast< unsigned char * >(argp2);
4690 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4691 if (!SWIG_IsOK(res3)) {
4692 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4693 }
4694 arg3 = reinterpret_cast< unsigned char * >(argp3);
4695 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4696 if (!SWIG_IsOK(res4)) {
4697 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4698 }
4699 arg4 = reinterpret_cast< unsigned char * >(argp4);
4700 {
4701 if (!wxPyCheckForApp()) SWIG_fail;
4702 PyThreadState* __tstate = wxPyBeginAllowThreads();
4703 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4704 wxPyEndAllowThreads(__tstate);
4705 if (PyErr_Occurred()) SWIG_fail;
4706 }
4707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4708 return resultobj;
4709fail:
4710 return NULL;
093d3ff1
RD
4711}
4712
4713
554f62e9
RD
4714SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4715 PyObject *resultobj = 0;
4716 wxPalette *arg1 = (wxPalette *) 0 ;
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_wxPalette, SWIG_POINTER_DISOWN | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4726 }
4727 arg1 = reinterpret_cast< wxPalette * >(argp1);
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 delete arg1;
093d3ff1 4731
554f62e9
RD
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = SWIG_Py_Void();
4736 return resultobj;
4737fail:
4738 return NULL;
4739}
4740
4741
4742SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj = 0;
4744 wxPalette *arg1 = (wxPalette *) 0 ;
4745 byte arg2 ;
4746 byte arg3 ;
4747 byte arg4 ;
4748 int result;
4749 void *argp1 = 0 ;
4750 int res1 = 0 ;
4751 unsigned char val2 ;
4752 int ecode2 = 0 ;
4753 unsigned char val3 ;
4754 int ecode3 = 0 ;
4755 unsigned char val4 ;
4756 int ecode4 = 0 ;
4757 PyObject * obj0 = 0 ;
4758 PyObject * obj1 = 0 ;
4759 PyObject * obj2 = 0 ;
4760 PyObject * obj3 = 0 ;
4761 char * kwnames[] = {
4762 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4763 };
4764
4765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4767 if (!SWIG_IsOK(res1)) {
4768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4769 }
4770 arg1 = reinterpret_cast< wxPalette * >(argp1);
4771 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4772 if (!SWIG_IsOK(ecode2)) {
4773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4774 }
4775 arg2 = static_cast< byte >(val2);
4776 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4777 if (!SWIG_IsOK(ecode3)) {
4778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4779 }
4780 arg3 = static_cast< byte >(val3);
4781 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4782 if (!SWIG_IsOK(ecode4)) {
4783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4784 }
4785 arg4 = static_cast< byte >(val4);
4786 {
4787 PyThreadState* __tstate = wxPyBeginAllowThreads();
4788 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 resultobj = SWIG_From_int(static_cast< int >(result));
4793 return resultobj;
4794fail:
4795 return NULL;
4796}
4797
4798
4799SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj = 0;
4801 wxPalette *arg1 = (wxPalette *) 0 ;
4802 int arg2 ;
4803 byte *arg3 = (byte *) 0 ;
4804 byte *arg4 = (byte *) 0 ;
4805 byte *arg5 = (byte *) 0 ;
4806 bool result;
4807 void *argp1 = 0 ;
4808 int res1 = 0 ;
4809 int val2 ;
4810 int ecode2 = 0 ;
4811 byte temp3 ;
4812 int res3 = SWIG_TMPOBJ ;
4813 byte temp4 ;
4814 int res4 = SWIG_TMPOBJ ;
4815 byte temp5 ;
4816 int res5 = SWIG_TMPOBJ ;
4817 PyObject * obj0 = 0 ;
4818 PyObject * obj1 = 0 ;
4819 char * kwnames[] = {
4820 (char *) "self",(char *) "pixel", NULL
4821 };
4822
4823 arg3 = &temp3;
4824 arg4 = &temp4;
4825 arg5 = &temp5;
4826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4828 if (!SWIG_IsOK(res1)) {
4829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4830 }
4831 arg1 = reinterpret_cast< wxPalette * >(argp1);
4832 ecode2 = SWIG_AsVal_int(obj1, &val2);
4833 if (!SWIG_IsOK(ecode2)) {
4834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4835 }
4836 arg2 = static_cast< int >(val2);
4837 {
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 {
4844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4845 }
4846 if (SWIG_IsTmpObj(res3)) {
4847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4848 } else {
4849 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4851 }
4852 if (SWIG_IsTmpObj(res4)) {
4853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4854 } else {
4855 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4857 }
4858 if (SWIG_IsTmpObj(res5)) {
4859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4860 } else {
4861 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4862 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4863 }
4864 return resultobj;
4865fail:
4866 return NULL;
d55e5bfc
RD
4867}
4868
4869
554f62e9
RD
4870SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4871 PyObject *resultobj = 0;
4872 wxPalette *arg1 = (wxPalette *) 0 ;
4873 int result;
4874 void *argp1 = 0 ;
4875 int res1 = 0 ;
4876 PyObject *swig_obj[1] ;
4877
4878 if (!args) SWIG_fail;
4879 swig_obj[0] = args;
4880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4881 if (!SWIG_IsOK(res1)) {
4882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4883 }
4884 arg1 = reinterpret_cast< wxPalette * >(argp1);
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_From_int(static_cast< int >(result));
4892 return resultobj;
4893fail:
4894 return NULL;
d55e5bfc
RD
4895}
4896
4897
b39fe951 4898SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4899 PyObject *resultobj = 0;
4900 wxPalette *arg1 = (wxPalette *) 0 ;
4901 bool result;
4902 void *argp1 = 0 ;
4903 int res1 = 0 ;
4904 PyObject *swig_obj[1] ;
4905
4906 if (!args) SWIG_fail;
4907 swig_obj[0] = args;
4908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4909 if (!SWIG_IsOK(res1)) {
b39fe951 4910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
4911 }
4912 arg1 = reinterpret_cast< wxPalette * >(argp1);
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4915 result = (bool)(arg1)->IsOk();
554f62e9
RD
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 {
4920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4921 }
4922 return resultobj;
4923fail:
4924 return NULL;
4925}
4926
4927
4928SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4929 PyObject *obj;
4930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4931 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4932 return SWIG_Py_Void();
4933}
4934
4935SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4936 return SWIG_Python_InitShadowInstance(args);
4937}
4938
4939SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4940 PyObject *resultobj = 0;
4941 wxColour *arg1 = 0 ;
4942 int arg2 = (int) 1 ;
4943 int arg3 = (int) wxSOLID ;
4944 wxPen *result = 0 ;
4945 wxColour temp1 ;
4946 int val2 ;
4947 int ecode2 = 0 ;
4948 int val3 ;
4949 int ecode3 = 0 ;
4950 PyObject * obj0 = 0 ;
4951 PyObject * obj1 = 0 ;
4952 PyObject * obj2 = 0 ;
4953 char * kwnames[] = {
4954 (char *) "colour",(char *) "width",(char *) "style", NULL
4955 };
4956
4957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4958 {
4959 arg1 = &temp1;
4960 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4961 }
4962 if (obj1) {
4963 ecode2 = SWIG_AsVal_int(obj1, &val2);
4964 if (!SWIG_IsOK(ecode2)) {
4965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4966 }
4967 arg2 = static_cast< int >(val2);
4968 }
4969 if (obj2) {
4970 ecode3 = SWIG_AsVal_int(obj2, &val3);
4971 if (!SWIG_IsOK(ecode3)) {
4972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4973 }
4974 arg3 = static_cast< int >(val3);
4975 }
4976 {
4977 if (!wxPyCheckForApp()) SWIG_fail;
4978 PyThreadState* __tstate = wxPyBeginAllowThreads();
4979 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4984 return resultobj;
4985fail:
4986 return NULL;
d55e5bfc
RD
4987}
4988
4989
554f62e9
RD
4990SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4991 PyObject *resultobj = 0;
4992 wxPen *arg1 = (wxPen *) 0 ;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPen * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 delete arg1;
d55e5bfc 5007
554f62e9
RD
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_Py_Void();
5012 return resultobj;
5013fail:
5014 return NULL;
d55e5bfc
RD
5015}
5016
5017
554f62e9
RD
5018SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5019 PyObject *resultobj = 0;
5020 wxPen *arg1 = (wxPen *) 0 ;
5021 int result;
5022 void *argp1 = 0 ;
5023 int res1 = 0 ;
5024 PyObject *swig_obj[1] ;
5025
5026 if (!args) SWIG_fail;
5027 swig_obj[0] = args;
5028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5029 if (!SWIG_IsOK(res1)) {
5030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5031 }
5032 arg1 = reinterpret_cast< wxPen * >(argp1);
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = (int)(arg1)->GetCap();
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 resultobj = SWIG_From_int(static_cast< int >(result));
5040 return resultobj;
5041fail:
5042 return NULL;
d55e5bfc
RD
5043}
5044
5045
554f62e9
RD
5046SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5047 PyObject *resultobj = 0;
5048 wxPen *arg1 = (wxPen *) 0 ;
5049 wxColour result;
5050 void *argp1 = 0 ;
5051 int res1 = 0 ;
5052 PyObject *swig_obj[1] ;
5053
5054 if (!args) SWIG_fail;
5055 swig_obj[0] = args;
5056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5057 if (!SWIG_IsOK(res1)) {
5058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5059 }
5060 arg1 = reinterpret_cast< wxPen * >(argp1);
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
5063 result = (arg1)->GetColour();
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 }
5067 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5068 return resultobj;
5069fail:
5070 return NULL;
d55e5bfc
RD
5071}
5072
5073
554f62e9
RD
5074SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5075 PyObject *resultobj = 0;
5076 wxPen *arg1 = (wxPen *) 0 ;
5077 int result;
5078 void *argp1 = 0 ;
5079 int res1 = 0 ;
5080 PyObject *swig_obj[1] ;
5081
5082 if (!args) SWIG_fail;
5083 swig_obj[0] = args;
5084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5085 if (!SWIG_IsOK(res1)) {
5086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5087 }
5088 arg1 = reinterpret_cast< wxPen * >(argp1);
5089 {
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 result = (int)(arg1)->GetJoin();
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_From_int(static_cast< int >(result));
5096 return resultobj;
5097fail:
5098 return NULL;
d55e5bfc
RD
5099}
5100
5101
554f62e9
RD
5102SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5103 PyObject *resultobj = 0;
5104 wxPen *arg1 = (wxPen *) 0 ;
5105 int result;
5106 void *argp1 = 0 ;
5107 int res1 = 0 ;
5108 PyObject *swig_obj[1] ;
5109
5110 if (!args) SWIG_fail;
5111 swig_obj[0] = args;
5112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5113 if (!SWIG_IsOK(res1)) {
5114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5115 }
5116 arg1 = reinterpret_cast< wxPen * >(argp1);
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 result = (int)(arg1)->GetStyle();
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_From_int(static_cast< int >(result));
5124 return resultobj;
5125fail:
5126 return NULL;
d55e5bfc
RD
5127}
5128
5129
554f62e9
RD
5130SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5131 PyObject *resultobj = 0;
5132 wxPen *arg1 = (wxPen *) 0 ;
5133 int result;
5134 void *argp1 = 0 ;
5135 int res1 = 0 ;
5136 PyObject *swig_obj[1] ;
5137
5138 if (!args) SWIG_fail;
5139 swig_obj[0] = args;
5140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5141 if (!SWIG_IsOK(res1)) {
5142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5143 }
5144 arg1 = reinterpret_cast< wxPen * >(argp1);
5145 {
5146 PyThreadState* __tstate = wxPyBeginAllowThreads();
5147 result = (int)(arg1)->GetWidth();
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
5151 resultobj = SWIG_From_int(static_cast< int >(result));
5152 return resultobj;
5153fail:
5154 return NULL;
d55e5bfc
RD
5155}
5156
5157
b39fe951 5158SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5159 PyObject *resultobj = 0;
5160 wxPen *arg1 = (wxPen *) 0 ;
5161 bool result;
5162 void *argp1 = 0 ;
5163 int res1 = 0 ;
5164 PyObject *swig_obj[1] ;
5165
5166 if (!args) SWIG_fail;
5167 swig_obj[0] = args;
5168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5169 if (!SWIG_IsOK(res1)) {
b39fe951 5170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
5171 }
5172 arg1 = reinterpret_cast< wxPen * >(argp1);
5173 {
5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5175 result = (bool)(arg1)->IsOk();
554f62e9
RD
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
5179 {
5180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5181 }
5182 return resultobj;
5183fail:
5184 return NULL;
5185}
5186
5187
5188SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5189 PyObject *resultobj = 0;
5190 wxPen *arg1 = (wxPen *) 0 ;
5191 int arg2 ;
5192 void *argp1 = 0 ;
5193 int res1 = 0 ;
5194 int val2 ;
5195 int ecode2 = 0 ;
5196 PyObject * obj0 = 0 ;
5197 PyObject * obj1 = 0 ;
5198 char * kwnames[] = {
5199 (char *) "self",(char *) "cap_style", NULL
5200 };
5201
5202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 ecode2 = SWIG_AsVal_int(obj1, &val2);
5209 if (!SWIG_IsOK(ecode2)) {
5210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5211 }
5212 arg2 = static_cast< int >(val2);
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 (arg1)->SetCap(arg2);
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 resultobj = SWIG_Py_Void();
5220 return resultobj;
5221fail:
5222 return NULL;
5223}
5224
5225
5226SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5227 PyObject *resultobj = 0;
5228 wxPen *arg1 = (wxPen *) 0 ;
5229 wxColour *arg2 = 0 ;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 wxColour temp2 ;
5233 PyObject * obj0 = 0 ;
5234 PyObject * obj1 = 0 ;
5235 char * kwnames[] = {
5236 (char *) "self",(char *) "colour", NULL
5237 };
5238
5239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5241 if (!SWIG_IsOK(res1)) {
5242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5243 }
5244 arg1 = reinterpret_cast< wxPen * >(argp1);
5245 {
5246 arg2 = &temp2;
5247 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 (arg1)->SetColour(*arg2);
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 resultobj = SWIG_Py_Void();
5256 return resultobj;
5257fail:
5258 return NULL;
5259}
5260
5261
5262SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj = 0;
5264 wxPen *arg1 = (wxPen *) 0 ;
5265 int arg2 ;
5266 void *argp1 = 0 ;
5267 int res1 = 0 ;
5268 int val2 ;
5269 int ecode2 = 0 ;
5270 PyObject * obj0 = 0 ;
5271 PyObject * obj1 = 0 ;
5272 char * kwnames[] = {
5273 (char *) "self",(char *) "join_style", NULL
5274 };
5275
5276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5278 if (!SWIG_IsOK(res1)) {
5279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5280 }
5281 arg1 = reinterpret_cast< wxPen * >(argp1);
5282 ecode2 = SWIG_AsVal_int(obj1, &val2);
5283 if (!SWIG_IsOK(ecode2)) {
5284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5285 }
5286 arg2 = static_cast< int >(val2);
5287 {
5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
5289 (arg1)->SetJoin(arg2);
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 }
5293 resultobj = SWIG_Py_Void();
5294 return resultobj;
5295fail:
5296 return NULL;
5297}
5298
5299
5300SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5301 PyObject *resultobj = 0;
5302 wxPen *arg1 = (wxPen *) 0 ;
5303 int arg2 ;
5304 void *argp1 = 0 ;
5305 int res1 = 0 ;
5306 int val2 ;
5307 int ecode2 = 0 ;
5308 PyObject * obj0 = 0 ;
5309 PyObject * obj1 = 0 ;
5310 char * kwnames[] = {
5311 (char *) "self",(char *) "style", NULL
5312 };
5313
5314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5316 if (!SWIG_IsOK(res1)) {
5317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5318 }
5319 arg1 = reinterpret_cast< wxPen * >(argp1);
5320 ecode2 = SWIG_AsVal_int(obj1, &val2);
5321 if (!SWIG_IsOK(ecode2)) {
5322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5323 }
5324 arg2 = static_cast< int >(val2);
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 (arg1)->SetStyle(arg2);
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 resultobj = SWIG_Py_Void();
5332 return resultobj;
5333fail:
5334 return NULL;
5335}
5336
5337
5338SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj = 0;
5340 wxPen *arg1 = (wxPen *) 0 ;
5341 int arg2 ;
5342 void *argp1 = 0 ;
5343 int res1 = 0 ;
5344 int val2 ;
5345 int ecode2 = 0 ;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 char * kwnames[] = {
5349 (char *) "self",(char *) "width", NULL
5350 };
5351
5352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5354 if (!SWIG_IsOK(res1)) {
5355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5356 }
5357 arg1 = reinterpret_cast< wxPen * >(argp1);
5358 ecode2 = SWIG_AsVal_int(obj1, &val2);
5359 if (!SWIG_IsOK(ecode2)) {
5360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5361 }
5362 arg2 = static_cast< int >(val2);
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 (arg1)->SetWidth(arg2);
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 resultobj = SWIG_Py_Void();
5370 return resultobj;
5371fail:
5372 return NULL;
5373}
5374
5375
5376SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5377 PyObject *resultobj = 0;
5378 wxPen *arg1 = (wxPen *) 0 ;
5379 int arg2 ;
5380 wxDash *arg3 = (wxDash *) 0 ;
5381 void *argp1 = 0 ;
5382 int res1 = 0 ;
5383 PyObject * obj0 = 0 ;
5384 PyObject * obj1 = 0 ;
5385 char * kwnames[] = {
5386 (char *) "self",(char *) "dashes", NULL
5387 };
5388
5389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5391 if (!SWIG_IsOK(res1)) {
5392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5393 }
5394 arg1 = reinterpret_cast< wxPen * >(argp1);
5395 {
5396 arg2 = PyList_Size(obj1);
5397 arg3 = (wxDash*)byte_LIST_helper(obj1);
5398 if (arg3 == NULL) SWIG_fail;
5399 }
5400 {
5401 PyThreadState* __tstate = wxPyBeginAllowThreads();
5402 (arg1)->SetDashes(arg2,arg3);
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_Py_Void();
5407 {
5408 if (arg3) delete [] arg3;
5409 }
5410 return resultobj;
5411fail:
5412 {
5413 if (arg3) delete [] arg3;
5414 }
5415 return NULL;
d55e5bfc
RD
5416}
5417
5418
554f62e9
RD
5419SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5420 PyObject *resultobj = 0;
5421 wxPen *arg1 = (wxPen *) 0 ;
5422 PyObject *result = 0 ;
5423 void *argp1 = 0 ;
5424 int res1 = 0 ;
5425 PyObject *swig_obj[1] ;
5426
5427 if (!args) SWIG_fail;
5428 swig_obj[0] = args;
5429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5430 if (!SWIG_IsOK(res1)) {
5431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5432 }
5433 arg1 = reinterpret_cast< wxPen * >(argp1);
5434 {
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = (PyObject *)wxPen_GetDashes(arg1);
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = result;
5441 return resultobj;
5442fail:
5443 return NULL;
5444}
5445
5446
5447SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5448 PyObject *resultobj = 0;
5449 wxPen *arg1 = (wxPen *) 0 ;
5450 PyObject *arg2 = (PyObject *) 0 ;
5451 PyObject *arg3 = (PyObject *) 0 ;
5452 void *argp1 = 0 ;
5453 int res1 = 0 ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 PyObject * obj2 = 0 ;
5457 char * kwnames[] = {
5458 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5459 };
5460
5461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5463 if (!SWIG_IsOK(res1)) {
5464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5465 }
5466 arg1 = reinterpret_cast< wxPen * >(argp1);
5467 arg2 = obj1;
5468 arg3 = obj2;
5469 {
5470 PyThreadState* __tstate = wxPyBeginAllowThreads();
5471 wxPen__SetDashes(arg1,arg2,arg3);
5472 wxPyEndAllowThreads(__tstate);
5473 if (PyErr_Occurred()) SWIG_fail;
5474 }
5475 resultobj = SWIG_Py_Void();
5476 return resultobj;
5477fail:
5478 return NULL;
d55e5bfc
RD
5479}
5480
5481
554f62e9
RD
5482SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5483 PyObject *resultobj = 0;
5484 wxPen *arg1 = (wxPen *) 0 ;
5485 int result;
5486 void *argp1 = 0 ;
5487 int res1 = 0 ;
5488 PyObject *swig_obj[1] ;
5489
5490 if (!args) SWIG_fail;
5491 swig_obj[0] = args;
5492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5493 if (!SWIG_IsOK(res1)) {
5494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5495 }
5496 arg1 = reinterpret_cast< wxPen * >(argp1);
5497 {
5498 PyThreadState* __tstate = wxPyBeginAllowThreads();
5499 result = (int)((wxPen const *)arg1)->GetDashCount();
5500 wxPyEndAllowThreads(__tstate);
5501 if (PyErr_Occurred()) SWIG_fail;
5502 }
5503 resultobj = SWIG_From_int(static_cast< int >(result));
5504 return resultobj;
5505fail:
5506 return NULL;
d55e5bfc
RD
5507}
5508
5509
554f62e9
RD
5510SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5511 PyObject *resultobj = 0;
5512 wxPen *arg1 = (wxPen *) 0 ;
5513 wxBitmap *result = 0 ;
5514 void *argp1 = 0 ;
5515 int res1 = 0 ;
5516 PyObject *swig_obj[1] ;
5517
5518 if (!args) SWIG_fail;
5519 swig_obj[0] = args;
5520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5521 if (!SWIG_IsOK(res1)) {
5522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5523 }
5524 arg1 = reinterpret_cast< wxPen * >(argp1);
5525 {
5526 PyThreadState* __tstate = wxPyBeginAllowThreads();
5527 result = (wxBitmap *)(arg1)->GetStipple();
5528 wxPyEndAllowThreads(__tstate);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 }
5531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5532 return resultobj;
5533fail:
5534 return NULL;
5535}
5536
5537
5538SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5539 PyObject *resultobj = 0;
5540 wxPen *arg1 = (wxPen *) 0 ;
5541 wxBitmap *arg2 = 0 ;
5542 void *argp1 = 0 ;
5543 int res1 = 0 ;
5544 void *argp2 = 0 ;
5545 int res2 = 0 ;
5546 PyObject * obj0 = 0 ;
5547 PyObject * obj1 = 0 ;
5548 char * kwnames[] = {
5549 (char *) "self",(char *) "stipple", NULL
5550 };
5551
5552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5554 if (!SWIG_IsOK(res1)) {
5555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5556 }
5557 arg1 = reinterpret_cast< wxPen * >(argp1);
5558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5559 if (!SWIG_IsOK(res2)) {
5560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5561 }
5562 if (!argp2) {
5563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5564 }
5565 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5566 {
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 (arg1)->SetStipple(*arg2);
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = SWIG_Py_Void();
5573 return resultobj;
5574fail:
5575 return NULL;
5576}
5577
5578
5579SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj = 0;
5581 wxPen *arg1 = (wxPen *) 0 ;
5582 wxPen *arg2 = (wxPen *) 0 ;
5583 bool result;
5584 void *argp1 = 0 ;
5585 int res1 = 0 ;
5586 void *argp2 = 0 ;
5587 int res2 = 0 ;
5588 PyObject * obj0 = 0 ;
5589 PyObject * obj1 = 0 ;
5590 char * kwnames[] = {
5591 (char *) "self",(char *) "other", NULL
5592 };
5593
5594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5596 if (!SWIG_IsOK(res1)) {
5597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5598 }
5599 arg1 = reinterpret_cast< wxPen * >(argp1);
5600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5601 if (!SWIG_IsOK(res2)) {
5602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5603 }
5604 arg2 = reinterpret_cast< wxPen * >(argp2);
5605 {
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 {
5612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5613 }
5614 return resultobj;
5615fail:
5616 return NULL;
5617}
5618
5619
5620SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5621 PyObject *resultobj = 0;
5622 wxPen *arg1 = (wxPen *) 0 ;
5623 wxPen *arg2 = (wxPen *) 0 ;
5624 bool result;
5625 void *argp1 = 0 ;
5626 int res1 = 0 ;
5627 void *argp2 = 0 ;
5628 int res2 = 0 ;
5629 PyObject * obj0 = 0 ;
5630 PyObject * obj1 = 0 ;
5631 char * kwnames[] = {
5632 (char *) "self",(char *) "other", NULL
5633 };
5634
5635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5637 if (!SWIG_IsOK(res1)) {
5638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5639 }
5640 arg1 = reinterpret_cast< wxPen * >(argp1);
5641 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5642 if (!SWIG_IsOK(res2)) {
5643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5644 }
5645 arg2 = reinterpret_cast< wxPen * >(argp2);
5646 {
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 {
5653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5654 }
5655 return resultobj;
5656fail:
5657 return NULL;
d55e5bfc
RD
5658}
5659
5660
554f62e9
RD
5661SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5662 PyObject *obj;
5663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5664 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5665 return SWIG_Py_Void();
d55e5bfc
RD
5666}
5667
554f62e9
RD
5668SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5669 return SWIG_Python_InitShadowInstance(args);
5670}
d55e5bfc 5671
554f62e9
RD
5672SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5673 PyObject *resultobj = 0;
5674 wxColour *arg1 = 0 ;
5675 int arg2 = (int) wxSOLID ;
5676 wxBrush *result = 0 ;
5677 wxColour temp1 ;
5678 int val2 ;
5679 int ecode2 = 0 ;
5680 PyObject * obj0 = 0 ;
5681 PyObject * obj1 = 0 ;
5682 char * kwnames[] = {
5683 (char *) "colour",(char *) "style", NULL
5684 };
5685
5686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5687 {
5688 arg1 = &temp1;
5689 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5690 }
5691 if (obj1) {
5692 ecode2 = SWIG_AsVal_int(obj1, &val2);
5693 if (!SWIG_IsOK(ecode2)) {
5694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5695 }
5696 arg2 = static_cast< int >(val2);
5697 }
5698 {
5699 if (!wxPyCheckForApp()) SWIG_fail;
5700 PyThreadState* __tstate = wxPyBeginAllowThreads();
5701 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5706 return resultobj;
5707fail:
5708 return NULL;
5709}
5710
5711
5712SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5713 PyObject *resultobj = 0;
5714 wxBitmap *arg1 = 0 ;
5715 wxBrush *result = 0 ;
5716 void *argp1 = 0 ;
5717 int res1 = 0 ;
5718 PyObject * obj0 = 0 ;
5719 char * kwnames[] = {
5720 (char *) "stippleBitmap", NULL
5721 };
5722
5723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5724 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5725 if (!SWIG_IsOK(res1)) {
5726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5727 }
5728 if (!argp1) {
5729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5730 }
5731 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5732 {
5733 if (!wxPyCheckForApp()) SWIG_fail;
5734 PyThreadState* __tstate = wxPyBeginAllowThreads();
5735 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5736 wxPyEndAllowThreads(__tstate);
5737 if (PyErr_Occurred()) SWIG_fail;
5738 }
5739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5740 return resultobj;
5741fail:
5742 return NULL;
d55e5bfc
RD
5743}
5744
5745
554f62e9
RD
5746SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5747 PyObject *resultobj = 0;
5748 wxBrush *arg1 = (wxBrush *) 0 ;
5749 void *argp1 = 0 ;
5750 int res1 = 0 ;
5751 PyObject *swig_obj[1] ;
5752
5753 if (!args) SWIG_fail;
5754 swig_obj[0] = args;
5755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5756 if (!SWIG_IsOK(res1)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5758 }
5759 arg1 = reinterpret_cast< wxBrush * >(argp1);
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 delete arg1;
d55e5bfc 5763
554f62e9
RD
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 resultobj = SWIG_Py_Void();
5768 return resultobj;
5769fail:
5770 return NULL;
5771}
5772
5773
5774SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5775 PyObject *resultobj = 0;
5776 wxBrush *arg1 = (wxBrush *) 0 ;
5777 wxColour *arg2 = 0 ;
5778 void *argp1 = 0 ;
5779 int res1 = 0 ;
5780 wxColour temp2 ;
5781 PyObject * obj0 = 0 ;
5782 PyObject * obj1 = 0 ;
5783 char * kwnames[] = {
5784 (char *) "self",(char *) "col", NULL
5785 };
5786
5787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5789 if (!SWIG_IsOK(res1)) {
5790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5791 }
5792 arg1 = reinterpret_cast< wxBrush * >(argp1);
5793 {
5794 arg2 = &temp2;
5795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5796 }
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 (arg1)->SetColour((wxColour const &)*arg2);
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 resultobj = SWIG_Py_Void();
5804 return resultobj;
5805fail:
5806 return NULL;
5807}
5808
5809
5810SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj = 0;
5812 wxBrush *arg1 = (wxBrush *) 0 ;
5813 int arg2 ;
5814 void *argp1 = 0 ;
5815 int res1 = 0 ;
5816 int val2 ;
5817 int ecode2 = 0 ;
5818 PyObject * obj0 = 0 ;
5819 PyObject * obj1 = 0 ;
5820 char * kwnames[] = {
5821 (char *) "self",(char *) "style", NULL
5822 };
5823
5824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5826 if (!SWIG_IsOK(res1)) {
5827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5828 }
5829 arg1 = reinterpret_cast< wxBrush * >(argp1);
5830 ecode2 = SWIG_AsVal_int(obj1, &val2);
5831 if (!SWIG_IsOK(ecode2)) {
5832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5833 }
5834 arg2 = static_cast< int >(val2);
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 (arg1)->SetStyle(arg2);
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) SWIG_fail;
5840 }
5841 resultobj = SWIG_Py_Void();
5842 return resultobj;
5843fail:
5844 return NULL;
5845}
5846
5847
5848SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5849 PyObject *resultobj = 0;
5850 wxBrush *arg1 = (wxBrush *) 0 ;
5851 wxBitmap *arg2 = 0 ;
5852 void *argp1 = 0 ;
5853 int res1 = 0 ;
5854 void *argp2 = 0 ;
5855 int res2 = 0 ;
5856 PyObject * obj0 = 0 ;
5857 PyObject * obj1 = 0 ;
5858 char * kwnames[] = {
5859 (char *) "self",(char *) "stipple", NULL
5860 };
5861
5862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5864 if (!SWIG_IsOK(res1)) {
5865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5866 }
5867 arg1 = reinterpret_cast< wxBrush * >(argp1);
5868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5869 if (!SWIG_IsOK(res2)) {
5870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5871 }
5872 if (!argp2) {
5873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5874 }
5875 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5876 {
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 (arg1)->SetStipple((wxBitmap const &)*arg2);
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 resultobj = SWIG_Py_Void();
5883 return resultobj;
5884fail:
5885 return NULL;
d55e5bfc
RD
5886}
5887
5888
554f62e9
RD
5889SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5890 PyObject *resultobj = 0;
5891 wxBrush *arg1 = (wxBrush *) 0 ;
5892 wxColour result;
5893 void *argp1 = 0 ;
5894 int res1 = 0 ;
5895 PyObject *swig_obj[1] ;
5896
5897 if (!args) SWIG_fail;
5898 swig_obj[0] = args;
5899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5900 if (!SWIG_IsOK(res1)) {
5901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5902 }
5903 arg1 = reinterpret_cast< wxBrush * >(argp1);
5904 {
5905 PyThreadState* __tstate = wxPyBeginAllowThreads();
5906 result = ((wxBrush const *)arg1)->GetColour();
5907 wxPyEndAllowThreads(__tstate);
5908 if (PyErr_Occurred()) SWIG_fail;
5909 }
5910 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5911 return resultobj;
5912fail:
5913 return NULL;
d55e5bfc
RD
5914}
5915
5916
554f62e9
RD
5917SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5918 PyObject *resultobj = 0;
5919 wxBrush *arg1 = (wxBrush *) 0 ;
5920 int result;
5921 void *argp1 = 0 ;
5922 int res1 = 0 ;
5923 PyObject *swig_obj[1] ;
5924
5925 if (!args) SWIG_fail;
5926 swig_obj[0] = args;
5927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5928 if (!SWIG_IsOK(res1)) {
5929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5930 }
5931 arg1 = reinterpret_cast< wxBrush * >(argp1);
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 result = (int)((wxBrush const *)arg1)->GetStyle();
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 resultobj = SWIG_From_int(static_cast< int >(result));
5939 return resultobj;
5940fail:
5941 return NULL;
d55e5bfc
RD
5942}
5943
5944
554f62e9
RD
5945SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5946 PyObject *resultobj = 0;
5947 wxBrush *arg1 = (wxBrush *) 0 ;
5948 wxBitmap *result = 0 ;
5949 void *argp1 = 0 ;
5950 int res1 = 0 ;
5951 PyObject *swig_obj[1] ;
5952
5953 if (!args) SWIG_fail;
5954 swig_obj[0] = args;
5955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5956 if (!SWIG_IsOK(res1)) {
5957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5958 }
5959 arg1 = reinterpret_cast< wxBrush * >(argp1);
5960 {
5961 PyThreadState* __tstate = wxPyBeginAllowThreads();
5962 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5963 wxPyEndAllowThreads(__tstate);
5964 if (PyErr_Occurred()) SWIG_fail;
5965 }
5966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5967 return resultobj;
5968fail:
5969 return NULL;
d55e5bfc
RD
5970}
5971
5972
554f62e9
RD
5973SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5974 PyObject *resultobj = 0;
5975 wxBrush *arg1 = (wxBrush *) 0 ;
5976 bool result;
5977 void *argp1 = 0 ;
5978 int res1 = 0 ;
5979 PyObject *swig_obj[1] ;
5980
5981 if (!args) SWIG_fail;
5982 swig_obj[0] = args;
5983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5984 if (!SWIG_IsOK(res1)) {
5985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5986 }
5987 arg1 = reinterpret_cast< wxBrush * >(argp1);
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 result = (bool)((wxBrush const *)arg1)->IsHatch();
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 {
5995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5996 }
5997 return resultobj;
5998fail:
5999 return NULL;
f78cc896
RD
6000}
6001
6002
b39fe951 6003SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6004 PyObject *resultobj = 0;
6005 wxBrush *arg1 = (wxBrush *) 0 ;
6006 bool result;
6007 void *argp1 = 0 ;
6008 int res1 = 0 ;
6009 PyObject *swig_obj[1] ;
6010
6011 if (!args) SWIG_fail;
6012 swig_obj[0] = args;
6013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6014 if (!SWIG_IsOK(res1)) {
b39fe951 6015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
6016 }
6017 arg1 = reinterpret_cast< wxBrush * >(argp1);
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6020 result = (bool)(arg1)->IsOk();
554f62e9
RD
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 {
6025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6026 }
6027 return resultobj;
6028fail:
6029 return NULL;
d55e5bfc
RD
6030}
6031
6032
554f62e9
RD
6033SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6034 PyObject *obj;
6035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6036 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6037 return SWIG_Py_Void();
d55e5bfc
RD
6038}
6039
554f62e9
RD
6040SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6041 return SWIG_Python_InitShadowInstance(args);
6042}
d55e5bfc 6043
554f62e9
RD
6044SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj = 0;
6046 wxString *arg1 = 0 ;
6047 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6048 wxBitmap *result = 0 ;
6049 bool temp1 = false ;
6050 int val2 ;
6051 int ecode2 = 0 ;
6052 PyObject * obj0 = 0 ;
6053 PyObject * obj1 = 0 ;
6054 char * kwnames[] = {
6055 (char *) "name",(char *) "type", NULL
6056 };
6057
6058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6059 {
6060 arg1 = wxString_in_helper(obj0);
6061 if (arg1 == NULL) SWIG_fail;
6062 temp1 = true;
6063 }
6064 if (obj1) {
6065 ecode2 = SWIG_AsVal_int(obj1, &val2);
6066 if (!SWIG_IsOK(ecode2)) {
6067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6068 }
6069 arg2 = static_cast< wxBitmapType >(val2);
6070 }
6071 {
6072 if (!wxPyCheckForApp()) SWIG_fail;
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6079 {
6080 if (temp1)
6081 delete arg1;
6082 }
6083 return resultobj;
6084fail:
6085 {
6086 if (temp1)
6087 delete arg1;
6088 }
6089 return NULL;
d55e5bfc
RD
6090}
6091
6092
554f62e9
RD
6093SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6094 PyObject *resultobj = 0;
6095 wxBitmap *arg1 = (wxBitmap *) 0 ;
6096 void *argp1 = 0 ;
6097 int res1 = 0 ;
6098 PyObject *swig_obj[1] ;
6099
6100 if (!args) SWIG_fail;
6101 swig_obj[0] = args;
6102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6103 if (!SWIG_IsOK(res1)) {
6104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6105 }
6106 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6107 {
554f62e9 6108 delete arg1;
c24da6d6 6109
554f62e9
RD
6110 if (PyErr_Occurred()) SWIG_fail;
6111 }
6112 resultobj = SWIG_Py_Void();
6113 return resultobj;
6114fail:
6115 return NULL;
6116}
6117
6118
6119SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6120 PyObject *resultobj = 0;
6121 int arg1 ;
6122 int arg2 ;
6123 int arg3 = (int) -1 ;
6124 wxBitmap *result = 0 ;
6125 int val1 ;
6126 int ecode1 = 0 ;
6127 int val2 ;
6128 int ecode2 = 0 ;
6129 int val3 ;
6130 int ecode3 = 0 ;
6131 PyObject * obj0 = 0 ;
6132 PyObject * obj1 = 0 ;
6133 PyObject * obj2 = 0 ;
6134 char * kwnames[] = {
6135 (char *) "width",(char *) "height",(char *) "depth", NULL
6136 };
6137
6138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6139 ecode1 = SWIG_AsVal_int(obj0, &val1);
6140 if (!SWIG_IsOK(ecode1)) {
6141 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6142 }
6143 arg1 = static_cast< int >(val1);
6144 ecode2 = SWIG_AsVal_int(obj1, &val2);
6145 if (!SWIG_IsOK(ecode2)) {
6146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6147 }
6148 arg2 = static_cast< int >(val2);
6149 if (obj2) {
6150 ecode3 = SWIG_AsVal_int(obj2, &val3);
6151 if (!SWIG_IsOK(ecode3)) {
6152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6153 }
6154 arg3 = static_cast< int >(val3);
6155 }
6156 {
6157 if (!wxPyCheckForApp()) SWIG_fail;
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6160 wxPyEndAllowThreads(__tstate);
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6164 return resultobj;
6165fail:
6166 return NULL;
6167}
6168
6169
6170SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = 0;
6172 wxIcon *arg1 = 0 ;
6173 wxBitmap *result = 0 ;
6174 void *argp1 = 0 ;
6175 int res1 = 0 ;
6176 PyObject * obj0 = 0 ;
6177 char * kwnames[] = {
6178 (char *) "icon", NULL
6179 };
6180
6181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6182 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6185 }
6186 if (!argp1) {
6187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6188 }
6189 arg1 = reinterpret_cast< wxIcon * >(argp1);
6190 {
6191 if (!wxPyCheckForApp()) SWIG_fail;
6192 PyThreadState* __tstate = wxPyBeginAllowThreads();
6193 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6194 wxPyEndAllowThreads(__tstate);
6195 if (PyErr_Occurred()) SWIG_fail;
6196 }
6197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6198 return resultobj;
6199fail:
6200 return NULL;
6201}
6202
6203
6204SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj = 0;
6206 wxImage *arg1 = 0 ;
6207 int arg2 = (int) -1 ;
6208 wxBitmap *result = 0 ;
6209 void *argp1 = 0 ;
6210 int res1 = 0 ;
6211 int val2 ;
6212 int ecode2 = 0 ;
6213 PyObject * obj0 = 0 ;
6214 PyObject * obj1 = 0 ;
6215 char * kwnames[] = {
6216 (char *) "image",(char *) "depth", NULL
6217 };
6218
6219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6220 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6221 if (!SWIG_IsOK(res1)) {
6222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6223 }
6224 if (!argp1) {
6225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6226 }
6227 arg1 = reinterpret_cast< wxImage * >(argp1);
6228 if (obj1) {
6229 ecode2 = SWIG_AsVal_int(obj1, &val2);
6230 if (!SWIG_IsOK(ecode2)) {
6231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6232 }
6233 arg2 = static_cast< int >(val2);
6234 }
6235 {
6236 if (!wxPyCheckForApp()) SWIG_fail;
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6243 return resultobj;
6244fail:
6245 return NULL;
c24da6d6
RD
6246}
6247
6248
554f62e9
RD
6249SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6250 PyObject *resultobj = 0;
6251 PyObject *arg1 = (PyObject *) 0 ;
6252 wxBitmap *result = 0 ;
6253 PyObject * obj0 = 0 ;
6254 char * kwnames[] = {
6255 (char *) "listOfStrings", NULL
6256 };
6257
6258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6259 arg1 = obj0;
6260 {
6261 if (!wxPyCheckForApp()) SWIG_fail;
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 result = (wxBitmap *)new_wxBitmap(arg1);
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;
6271}
6272
6273
6274SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj = 0;
6276 PyObject *arg1 = (PyObject *) 0 ;
6277 int arg2 ;
6278 int arg3 ;
6279 int arg4 = (int) 1 ;
6280 wxBitmap *result = 0 ;
6281 int val2 ;
6282 int ecode2 = 0 ;
6283 int val3 ;
6284 int ecode3 = 0 ;
6285 int val4 ;
6286 int ecode4 = 0 ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 PyObject * obj3 = 0 ;
6291 char * kwnames[] = {
6292 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6293 };
6294
6295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6296 arg1 = obj0;
6297 ecode2 = SWIG_AsVal_int(obj1, &val2);
6298 if (!SWIG_IsOK(ecode2)) {
6299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6300 }
6301 arg2 = static_cast< int >(val2);
6302 ecode3 = SWIG_AsVal_int(obj2, &val3);
6303 if (!SWIG_IsOK(ecode3)) {
6304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6305 }
6306 arg3 = static_cast< int >(val3);
6307 if (obj3) {
6308 ecode4 = SWIG_AsVal_int(obj3, &val4);
6309 if (!SWIG_IsOK(ecode4)) {
6310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6311 }
6312 arg4 = static_cast< int >(val4);
6313 }
6314 {
6315 if (!wxPyCheckForApp()) SWIG_fail;
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6322 return resultobj;
6323fail:
6324 return NULL;
d55e5bfc
RD
6325}
6326
6327
554f62e9
RD
6328SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6329 PyObject *resultobj = 0;
6330 wxBitmap *arg1 = (wxBitmap *) 0 ;
6331 long result;
6332 void *argp1 = 0 ;
6333 int res1 = 0 ;
6334 PyObject *swig_obj[1] ;
6335
6336 if (!args) SWIG_fail;
6337 swig_obj[0] = args;
6338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6339 if (!SWIG_IsOK(res1)) {
6340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6341 }
6342 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6343 {
554f62e9 6344 result = (long)(arg1)->GetHandle();
554f62e9
RD
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_From_long(static_cast< long >(result));
6348 return resultobj;
6349fail:
6350 return NULL;
6351}
6352
6353
6354SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj = 0;
6356 wxBitmap *arg1 = (wxBitmap *) 0 ;
6357 long arg2 ;
6358 void *argp1 = 0 ;
6359 int res1 = 0 ;
6360 long val2 ;
6361 int ecode2 = 0 ;
6362 PyObject * obj0 = 0 ;
6363 PyObject * obj1 = 0 ;
6364 char * kwnames[] = {
6365 (char *) "self",(char *) "handle", NULL
6366 };
6367
6368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6370 if (!SWIG_IsOK(res1)) {
6371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6372 }
6373 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6374 ecode2 = SWIG_AsVal_long(obj1, &val2);
6375 if (!SWIG_IsOK(ecode2)) {
6376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6377 }
6378 arg2 = static_cast< long >(val2);
6379 {
554f62e9 6380 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6381 if (PyErr_Occurred()) SWIG_fail;
6382 }
6383 resultobj = SWIG_Py_Void();
6384 return resultobj;
6385fail:
6386 return NULL;
d55e5bfc
RD
6387}
6388
6389
b39fe951 6390SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6391 PyObject *resultobj = 0;
6392 wxBitmap *arg1 = (wxBitmap *) 0 ;
6393 bool result;
6394 void *argp1 = 0 ;
6395 int res1 = 0 ;
6396 PyObject *swig_obj[1] ;
6397
6398 if (!args) SWIG_fail;
6399 swig_obj[0] = args;
6400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6401 if (!SWIG_IsOK(res1)) {
b39fe951 6402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6403 }
6404 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6405 {
b39fe951 6406 result = (bool)(arg1)->IsOk();
554f62e9
RD
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 {
6410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6411 }
6412 return resultobj;
6413fail:
6414 return NULL;
d55e5bfc
RD
6415}
6416
6417
554f62e9
RD
6418SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6419 PyObject *resultobj = 0;
6420 wxBitmap *arg1 = (wxBitmap *) 0 ;
6421 int result;
6422 void *argp1 = 0 ;
6423 int res1 = 0 ;
6424 PyObject *swig_obj[1] ;
6425
6426 if (!args) SWIG_fail;
6427 swig_obj[0] = args;
6428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6431 }
6432 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6433 {
554f62e9 6434 result = (int)(arg1)->GetWidth();
554f62e9
RD
6435 if (PyErr_Occurred()) SWIG_fail;
6436 }
6437 resultobj = SWIG_From_int(static_cast< int >(result));
6438 return resultobj;
6439fail:
6440 return NULL;
d55e5bfc
RD
6441}
6442
6443
554f62e9
RD
6444SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6445 PyObject *resultobj = 0;
6446 wxBitmap *arg1 = (wxBitmap *) 0 ;
6447 int result;
6448 void *argp1 = 0 ;
6449 int res1 = 0 ;
6450 PyObject *swig_obj[1] ;
6451
6452 if (!args) SWIG_fail;
6453 swig_obj[0] = args;
6454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6455 if (!SWIG_IsOK(res1)) {
6456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6457 }
6458 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6459 {
554f62e9 6460 result = (int)(arg1)->GetHeight();
554f62e9
RD
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_From_int(static_cast< int >(result));
6464 return resultobj;
6465fail:
6466 return NULL;
c24da6d6
RD
6467}
6468
6469
554f62e9
RD
6470SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxBitmap *arg1 = (wxBitmap *) 0 ;
6473 int result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6483 }
6484 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6485 {
554f62e9 6486 result = (int)(arg1)->GetDepth();
554f62e9
RD
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_From_int(static_cast< int >(result));
6490 return resultobj;
6491fail:
6492 return NULL;
d55e5bfc
RD
6493}
6494
6495
554f62e9
RD
6496SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497 PyObject *resultobj = 0;
6498 wxBitmap *arg1 = (wxBitmap *) 0 ;
6499 wxSize result;
6500 void *argp1 = 0 ;
6501 int res1 = 0 ;
6502 PyObject *swig_obj[1] ;
6503
6504 if (!args) SWIG_fail;
6505 swig_obj[0] = args;
6506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 {
554f62e9 6512 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6516 return resultobj;
6517fail:
6518 return NULL;
d55e5bfc
RD
6519}
6520
6521
554f62e9
RD
6522SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6523 PyObject *resultobj = 0;
6524 wxBitmap *arg1 = (wxBitmap *) 0 ;
6525 SwigValueWrapper<wxImage > result;
6526 void *argp1 = 0 ;
6527 int res1 = 0 ;
6528 PyObject *swig_obj[1] ;
6529
6530 if (!args) SWIG_fail;
6531 swig_obj[0] = args;
6532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6533 if (!SWIG_IsOK(res1)) {
6534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6535 }
6536 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6537 {
554f62e9 6538 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6542 return resultobj;
6543fail:
6544 return NULL;
d55e5bfc
RD
6545}
6546
6547
554f62e9
RD
6548SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6549 PyObject *resultobj = 0;
6550 wxBitmap *arg1 = (wxBitmap *) 0 ;
6551 wxMask *result = 0 ;
6552 void *argp1 = 0 ;
6553 int res1 = 0 ;
6554 PyObject *swig_obj[1] ;
6555
6556 if (!args) SWIG_fail;
6557 swig_obj[0] = args;
6558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6559 if (!SWIG_IsOK(res1)) {
6560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6561 }
6562 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6563 {
554f62e9 6564 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6565 if (PyErr_Occurred()) SWIG_fail;
6566 }
6567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6568 return resultobj;
6569fail:
6570 return NULL;
6571}
6572
6573
6574SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6575 PyObject *resultobj = 0;
6576 wxBitmap *arg1 = (wxBitmap *) 0 ;
6577 wxMask *arg2 = (wxMask *) 0 ;
6578 void *argp1 = 0 ;
6579 int res1 = 0 ;
6580 int res2 = 0 ;
6581 PyObject * obj0 = 0 ;
6582 PyObject * obj1 = 0 ;
6583 char * kwnames[] = {
6584 (char *) "self",(char *) "mask", NULL
6585 };
6586
6587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6589 if (!SWIG_IsOK(res1)) {
6590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6591 }
6592 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6593 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6594 if (!SWIG_IsOK(res2)) {
6595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6596 }
6597 {
554f62e9 6598 (arg1)->SetMask(arg2);
554f62e9
RD
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_Py_Void();
6602 return resultobj;
6603fail:
6604 return NULL;
6605}
6606
6607
6608SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 wxColour *arg2 = 0 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 wxColour temp2 ;
6615 PyObject * obj0 = 0 ;
6616 PyObject * obj1 = 0 ;
6617 char * kwnames[] = {
6618 (char *) "self",(char *) "colour", NULL
6619 };
6620
6621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6623 if (!SWIG_IsOK(res1)) {
6624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6625 }
6626 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6627 {
6628 arg2 = &temp2;
6629 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6630 }
6631 {
554f62e9 6632 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 resultobj = SWIG_Py_Void();
6636 return resultobj;
6637fail:
6638 return NULL;
6639}
6640
6641
6642SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj = 0;
6644 wxBitmap *arg1 = (wxBitmap *) 0 ;
6645 wxRect *arg2 = 0 ;
6646 SwigValueWrapper<wxBitmap > result;
6647 void *argp1 = 0 ;
6648 int res1 = 0 ;
6649 wxRect temp2 ;
6650 PyObject * obj0 = 0 ;
6651 PyObject * obj1 = 0 ;
6652 char * kwnames[] = {
6653 (char *) "self",(char *) "rect", NULL
6654 };
6655
6656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6658 if (!SWIG_IsOK(res1)) {
6659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6660 }
6661 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6662 {
6663 arg2 = &temp2;
6664 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6665 }
6666 {
554f62e9 6667 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6671 return resultobj;
6672fail:
6673 return NULL;
6674}
6675
6676
6677SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj = 0;
6679 wxBitmap *arg1 = (wxBitmap *) 0 ;
6680 wxString *arg2 = 0 ;
6681 wxBitmapType arg3 ;
6682 wxPalette *arg4 = (wxPalette *) NULL ;
6683 bool result;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 bool temp2 = false ;
6687 int val3 ;
6688 int ecode3 = 0 ;
6689 void *argp4 = 0 ;
6690 int res4 = 0 ;
6691 PyObject * obj0 = 0 ;
6692 PyObject * obj1 = 0 ;
6693 PyObject * obj2 = 0 ;
6694 PyObject * obj3 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6701 if (!SWIG_IsOK(res1)) {
6702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6703 }
6704 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6705 {
6706 arg2 = wxString_in_helper(obj1);
6707 if (arg2 == NULL) SWIG_fail;
6708 temp2 = true;
6709 }
6710 ecode3 = SWIG_AsVal_int(obj2, &val3);
6711 if (!SWIG_IsOK(ecode3)) {
6712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6713 }
6714 arg3 = static_cast< wxBitmapType >(val3);
6715 if (obj3) {
6716 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6717 if (!SWIG_IsOK(res4)) {
6718 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6719 }
554f62e9
RD
6720 arg4 = reinterpret_cast< wxPalette * >(argp4);
6721 }
6722 {
554f62e9 6723 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 {
6730 if (temp2)
6731 delete arg2;
6732 }
6733 return resultobj;
6734fail:
6735 {
6736 if (temp2)
6737 delete arg2;
6738 }
6739 return NULL;
6740}
6741
6742
6743SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj = 0;
6745 wxBitmap *arg1 = (wxBitmap *) 0 ;
6746 wxString *arg2 = 0 ;
6747 wxBitmapType arg3 ;
6748 bool result;
6749 void *argp1 = 0 ;
6750 int res1 = 0 ;
6751 bool temp2 = false ;
6752 int val3 ;
6753 int ecode3 = 0 ;
6754 PyObject * obj0 = 0 ;
6755 PyObject * obj1 = 0 ;
6756 PyObject * obj2 = 0 ;
6757 char * kwnames[] = {
6758 (char *) "self",(char *) "name",(char *) "type", NULL
6759 };
6760
6761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6763 if (!SWIG_IsOK(res1)) {
6764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6765 }
6766 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6767 {
6768 arg2 = wxString_in_helper(obj1);
6769 if (arg2 == NULL) SWIG_fail;
6770 temp2 = true;
6771 }
6772 ecode3 = SWIG_AsVal_int(obj2, &val3);
6773 if (!SWIG_IsOK(ecode3)) {
6774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6775 }
6776 arg3 = static_cast< wxBitmapType >(val3);
6777 {
554f62e9 6778 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6779 if (PyErr_Occurred()) SWIG_fail;
6780 }
6781 {
6782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6783 }
6784 {
6785 if (temp2)
6786 delete arg2;
6787 }
6788 return resultobj;
6789fail:
6790 {
6791 if (temp2)
6792 delete arg2;
6793 }
6794 return NULL;
d04418a7
RD
6795}
6796
6797
554f62e9
RD
6798SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6799 PyObject *resultobj = 0;
6800 wxBitmap *arg1 = (wxBitmap *) 0 ;
6801 wxPalette *result = 0 ;
6802 void *argp1 = 0 ;
6803 int res1 = 0 ;
6804 PyObject *swig_obj[1] ;
6805
6806 if (!args) SWIG_fail;
6807 swig_obj[0] = args;
6808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6809 if (!SWIG_IsOK(res1)) {
6810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6811 }
6812 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6813 {
554f62e9 6814 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6818 return resultobj;
6819fail:
6820 return NULL;
6821}
6822
6823
6824SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6825 PyObject *resultobj = 0;
6826 wxBitmap *arg1 = (wxBitmap *) 0 ;
6827 wxPalette *arg2 = 0 ;
6828 void *argp1 = 0 ;
6829 int res1 = 0 ;
6830 void *argp2 = 0 ;
6831 int res2 = 0 ;
6832 PyObject * obj0 = 0 ;
6833 PyObject * obj1 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "self",(char *) "palette", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6842 }
6843 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6845 if (!SWIG_IsOK(res2)) {
6846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6847 }
6848 if (!argp2) {
6849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6850 }
6851 arg2 = reinterpret_cast< wxPalette * >(argp2);
6852 {
554f62e9 6853 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6854 if (PyErr_Occurred()) SWIG_fail;
6855 }
6856 resultobj = SWIG_Py_Void();
6857 return resultobj;
6858fail:
6859 return NULL;
6860}
6861
6862
6863SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6864 PyObject *resultobj = 0;
6865 wxBitmap *arg1 = (wxBitmap *) 0 ;
6866 wxIcon *arg2 = 0 ;
6867 bool result;
6868 void *argp1 = 0 ;
6869 int res1 = 0 ;
6870 void *argp2 = 0 ;
6871 int res2 = 0 ;
6872 PyObject * obj0 = 0 ;
6873 PyObject * obj1 = 0 ;
6874 char * kwnames[] = {
6875 (char *) "self",(char *) "icon", NULL
6876 };
6877
6878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6880 if (!SWIG_IsOK(res1)) {
6881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6882 }
6883 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6885 if (!SWIG_IsOK(res2)) {
6886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6887 }
6888 if (!argp2) {
6889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6890 }
6891 arg2 = reinterpret_cast< wxIcon * >(argp2);
6892 {
554f62e9 6893 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 {
6897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6898 }
6899 return resultobj;
6900fail:
6901 return NULL;
6902}
6903
6904
6905SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj = 0;
6907 wxBitmap *arg1 = (wxBitmap *) 0 ;
6908 int arg2 ;
6909 void *argp1 = 0 ;
6910 int res1 = 0 ;
6911 int val2 ;
6912 int ecode2 = 0 ;
6913 PyObject * obj0 = 0 ;
6914 PyObject * obj1 = 0 ;
6915 char * kwnames[] = {
6916 (char *) "self",(char *) "height", NULL
6917 };
6918
6919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6921 if (!SWIG_IsOK(res1)) {
6922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6923 }
6924 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6925 ecode2 = SWIG_AsVal_int(obj1, &val2);
6926 if (!SWIG_IsOK(ecode2)) {
6927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6928 }
6929 arg2 = static_cast< int >(val2);
6930 {
554f62e9 6931 (arg1)->SetHeight(arg2);
554f62e9
RD
6932 if (PyErr_Occurred()) SWIG_fail;
6933 }
6934 resultobj = SWIG_Py_Void();
6935 return resultobj;
6936fail:
6937 return NULL;
6938}
6939
6940
6941SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj = 0;
6943 wxBitmap *arg1 = (wxBitmap *) 0 ;
6944 int arg2 ;
6945 void *argp1 = 0 ;
6946 int res1 = 0 ;
6947 int val2 ;
6948 int ecode2 = 0 ;
6949 PyObject * obj0 = 0 ;
6950 PyObject * obj1 = 0 ;
6951 char * kwnames[] = {
6952 (char *) "self",(char *) "width", NULL
6953 };
6954
6955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6957 if (!SWIG_IsOK(res1)) {
6958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6959 }
6960 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6961 ecode2 = SWIG_AsVal_int(obj1, &val2);
6962 if (!SWIG_IsOK(ecode2)) {
6963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6964 }
6965 arg2 = static_cast< int >(val2);
6966 {
554f62e9 6967 (arg1)->SetWidth(arg2);
554f62e9
RD
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 resultobj = SWIG_Py_Void();
6971 return resultobj;
6972fail:
6973 return NULL;
6974}
6975
6976
6977SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6978 PyObject *resultobj = 0;
6979 wxBitmap *arg1 = (wxBitmap *) 0 ;
6980 int arg2 ;
6981 void *argp1 = 0 ;
6982 int res1 = 0 ;
6983 int val2 ;
6984 int ecode2 = 0 ;
6985 PyObject * obj0 = 0 ;
6986 PyObject * obj1 = 0 ;
6987 char * kwnames[] = {
6988 (char *) "self",(char *) "depth", NULL
6989 };
6990
6991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6993 if (!SWIG_IsOK(res1)) {
6994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6995 }
6996 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6997 ecode2 = SWIG_AsVal_int(obj1, &val2);
6998 if (!SWIG_IsOK(ecode2)) {
6999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7000 }
7001 arg2 = static_cast< int >(val2);
7002 {
554f62e9 7003 (arg1)->SetDepth(arg2);
554f62e9
RD
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 resultobj = SWIG_Py_Void();
7007 return resultobj;
7008fail:
7009 return NULL;
7010}
7011
7012
7013SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7014 PyObject *resultobj = 0;
7015 wxBitmap *arg1 = (wxBitmap *) 0 ;
7016 wxSize *arg2 = 0 ;
7017 void *argp1 = 0 ;
7018 int res1 = 0 ;
7019 wxSize temp2 ;
7020 PyObject * obj0 = 0 ;
7021 PyObject * obj1 = 0 ;
7022 char * kwnames[] = {
7023 (char *) "self",(char *) "size", NULL
7024 };
7025
7026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7028 if (!SWIG_IsOK(res1)) {
7029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7030 }
7031 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7032 {
7033 arg2 = &temp2;
7034 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7035 }
7036 {
554f62e9 7037 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 resultobj = SWIG_Py_Void();
7041 return resultobj;
7042fail:
7043 return NULL;
7044}
7045
7046
7047SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj = 0;
7049 wxBitmap *arg1 = (wxBitmap *) 0 ;
7050 wxCursor *arg2 = 0 ;
7051 bool result;
7052 void *argp1 = 0 ;
7053 int res1 = 0 ;
7054 void *argp2 = 0 ;
7055 int res2 = 0 ;
7056 PyObject * obj0 = 0 ;
7057 PyObject * obj1 = 0 ;
7058 char * kwnames[] = {
7059 (char *) "self",(char *) "cursor", NULL
7060 };
7061
7062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7066 }
7067 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7069 if (!SWIG_IsOK(res2)) {
7070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7071 }
7072 if (!argp2) {
7073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7074 }
7075 arg2 = reinterpret_cast< wxCursor * >(argp2);
7076 {
554f62e9 7077 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
7078 if (PyErr_Occurred()) SWIG_fail;
7079 }
7080 {
7081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7082 }
7083 return resultobj;
7084fail:
7085 return NULL;
7086}
7087
7088
7089SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7090 PyObject *resultobj = 0;
7091 wxBitmap *arg1 = (wxBitmap *) 0 ;
7092 wxBitmap *arg2 = (wxBitmap *) 0 ;
7093 bool result;
7094 void *argp1 = 0 ;
7095 int res1 = 0 ;
7096 void *argp2 = 0 ;
7097 int res2 = 0 ;
7098 PyObject * obj0 = 0 ;
7099 PyObject * obj1 = 0 ;
7100 char * kwnames[] = {
7101 (char *) "self",(char *) "other", NULL
7102 };
7103
7104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7106 if (!SWIG_IsOK(res1)) {
7107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7108 }
7109 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7110 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7111 if (!SWIG_IsOK(res2)) {
7112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7113 }
7114 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7115 {
554f62e9 7116 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 {
fc46b7f3
RD
7120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7121 }
7122 return resultobj;
7123fail:
7124 return NULL;
7125}
7126
7127
7128SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7129 PyObject *resultobj = 0;
7130 wxBitmap *arg1 = (wxBitmap *) 0 ;
7131 wxBitmap *arg2 = (wxBitmap *) 0 ;
7132 bool result;
7133 void *argp1 = 0 ;
7134 int res1 = 0 ;
7135 void *argp2 = 0 ;
7136 int res2 = 0 ;
7137 PyObject * obj0 = 0 ;
7138 PyObject * obj1 = 0 ;
7139 char * kwnames[] = {
7140 (char *) "self",(char *) "other", NULL
7141 };
7142
7143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7145 if (!SWIG_IsOK(res1)) {
7146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7147 }
7148 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7149 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7150 if (!SWIG_IsOK(res2)) {
7151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7152 }
7153 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7154 {
7155 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7156 if (PyErr_Occurred()) SWIG_fail;
7157 }
7158 {
7159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7160 }
7161 return resultobj;
7162fail:
7163 return NULL;
7164}
7165
7166
7167SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7168 PyObject *obj;
7169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7170 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7171 return SWIG_Py_Void();
7172}
7173
7174SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7175 return SWIG_Python_InitShadowInstance(args);
7176}
7177
7178SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj = 0;
7180 int arg1 ;
7181 int arg2 ;
7182 buffer arg3 ;
7183 int arg4 ;
7184 buffer arg5 ;
7185 int arg6 ;
7186 wxBitmap *result = 0 ;
7187 int val1 ;
7188 int ecode1 = 0 ;
7189 int val2 ;
7190 int ecode2 = 0 ;
e46e7e0d
RD
7191 Py_ssize_t temp3 ;
7192 Py_ssize_t temp5 ;
fc46b7f3
RD
7193 PyObject * obj0 = 0 ;
7194 PyObject * obj1 = 0 ;
7195 PyObject * obj2 = 0 ;
7196 PyObject * obj3 = 0 ;
7197 char * kwnames[] = {
7198 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7199 };
7200
7201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7202 ecode1 = SWIG_AsVal_int(obj0, &val1);
7203 if (!SWIG_IsOK(ecode1)) {
7204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7205 }
7206 arg1 = static_cast< int >(val1);
7207 ecode2 = SWIG_AsVal_int(obj1, &val2);
7208 if (!SWIG_IsOK(ecode2)) {
7209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7210 }
7211 arg2 = static_cast< int >(val2);
7212 {
e46e7e0d
RD
7213 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7214 arg4 = (int)temp3;
fc46b7f3
RD
7215 }
7216 {
7217 if (obj3 != Py_None) {
e46e7e0d
RD
7218 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7219 arg6 = (int)temp5;
fc46b7f3
RD
7220 }
7221 }
7222 {
7223 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7227 return resultobj;
7228fail:
7229 return NULL;
7230}
7231
7232
7233SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7234 PyObject *resultobj = 0;
7235 int arg1 ;
7236 int arg2 ;
7237 buffer arg3 ;
7238 int arg4 ;
7239 wxBitmap *result = 0 ;
7240 int val1 ;
7241 int ecode1 = 0 ;
7242 int val2 ;
7243 int ecode2 = 0 ;
e46e7e0d 7244 Py_ssize_t temp3 ;
fc46b7f3
RD
7245 PyObject * obj0 = 0 ;
7246 PyObject * obj1 = 0 ;
7247 PyObject * obj2 = 0 ;
7248 char * kwnames[] = {
7249 (char *) "width",(char *) "height",(char *) "data", NULL
7250 };
7251
7252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7253 ecode1 = SWIG_AsVal_int(obj0, &val1);
7254 if (!SWIG_IsOK(ecode1)) {
7255 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7256 }
7257 arg1 = static_cast< int >(val1);
7258 ecode2 = SWIG_AsVal_int(obj1, &val2);
7259 if (!SWIG_IsOK(ecode2)) {
7260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7261 }
7262 arg2 = static_cast< int >(val2);
7263 {
e46e7e0d
RD
7264 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7265 arg4 = (int)temp3;
fc46b7f3
RD
7266 }
7267 {
7268 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7269 if (PyErr_Occurred()) SWIG_fail;
7270 }
7271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7272 return resultobj;
7273fail:
7274 return NULL;
7275}
7276
7277
7278SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7279 PyObject *resultobj = 0;
7280 int arg1 ;
7281 int arg2 ;
7282 buffer arg3 ;
7283 int arg4 ;
7284 wxBitmap *result = 0 ;
7285 int val1 ;
7286 int ecode1 = 0 ;
7287 int val2 ;
7288 int ecode2 = 0 ;
e46e7e0d 7289 Py_ssize_t temp3 ;
fc46b7f3
RD
7290 PyObject * obj0 = 0 ;
7291 PyObject * obj1 = 0 ;
7292 PyObject * obj2 = 0 ;
7293 char * kwnames[] = {
7294 (char *) "width",(char *) "height",(char *) "data", NULL
7295 };
7296
7297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7298 ecode1 = SWIG_AsVal_int(obj0, &val1);
7299 if (!SWIG_IsOK(ecode1)) {
7300 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7301 }
7302 arg1 = static_cast< int >(val1);
7303 ecode2 = SWIG_AsVal_int(obj1, &val2);
7304 if (!SWIG_IsOK(ecode2)) {
7305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7306 }
7307 arg2 = static_cast< int >(val2);
7308 {
e46e7e0d
RD
7309 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7310 arg4 = (int)temp3;
fc46b7f3
RD
7311 }
7312 {
7313 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7317 return resultobj;
7318fail:
7319 return NULL;
7320}
7321
7322
7323SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7324 PyObject *resultobj = 0;
7325 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7326 wxPoint result;
7327 void *argp1 = 0 ;
7328 int res1 = 0 ;
7329 PyObject *swig_obj[1] ;
7330
7331 if (!args) SWIG_fail;
7332 swig_obj[0] = args;
7333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7334 if (!SWIG_IsOK(res1)) {
7335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7336 }
7337 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7338 {
7339 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7343 return resultobj;
7344fail:
7345 return NULL;
7346}
7347
7348
7349SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7350 PyObject *resultobj = 0;
7351 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7352 int result;
7353 void *argp1 = 0 ;
7354 int res1 = 0 ;
7355 PyObject *swig_obj[1] ;
7356
7357 if (!args) SWIG_fail;
7358 swig_obj[0] = args;
7359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7360 if (!SWIG_IsOK(res1)) {
7361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7362 }
7363 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7364 {
7365 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 resultobj = SWIG_From_int(static_cast< int >(result));
7369 return resultobj;
7370fail:
7371 return NULL;
7372}
7373
7374
7375SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7376 PyObject *resultobj = 0;
7377 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7378 int result;
7379 void *argp1 = 0 ;
7380 int res1 = 0 ;
7381 PyObject *swig_obj[1] ;
7382
7383 if (!args) SWIG_fail;
7384 swig_obj[0] = args;
7385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7386 if (!SWIG_IsOK(res1)) {
7387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7388 }
7389 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7390 {
7391 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7392 if (PyErr_Occurred()) SWIG_fail;
7393 }
7394 resultobj = SWIG_From_int(static_cast< int >(result));
7395 return resultobj;
7396fail:
7397 return NULL;
7398}
7399
7400
7401SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7402 PyObject *resultobj = 0;
7403 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7404 wxSize result;
7405 void *argp1 = 0 ;
7406 int res1 = 0 ;
7407 PyObject *swig_obj[1] ;
7408
7409 if (!args) SWIG_fail;
7410 swig_obj[0] = args;
7411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7412 if (!SWIG_IsOK(res1)) {
7413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7414 }
7415 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7416 {
7417 result = ((wxPixelDataBase const *)arg1)->GetSize();
7418 if (PyErr_Occurred()) SWIG_fail;
7419 }
7420 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7421 return resultobj;
7422fail:
7423 return NULL;
7424}
7425
7426
7427SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7428 PyObject *resultobj = 0;
7429 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7430 int result;
7431 void *argp1 = 0 ;
7432 int res1 = 0 ;
7433 PyObject *swig_obj[1] ;
7434
7435 if (!args) SWIG_fail;
7436 swig_obj[0] = args;
7437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7438 if (!SWIG_IsOK(res1)) {
7439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7440 }
7441 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7442 {
7443 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = SWIG_From_int(static_cast< int >(result));
7447 return resultobj;
7448fail:
7449 return NULL;
7450}
7451
7452
7453SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7454 PyObject *obj;
7455 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7456 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7457 return SWIG_Py_Void();
7458}
7459
7460SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7461 PyObject *resultobj = 0;
7462 wxBitmap *arg1 = 0 ;
7463 wxNativePixelData *result = 0 ;
7464 void *argp1 = 0 ;
7465 int res1 = 0 ;
7466
7467 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7469 if (!SWIG_IsOK(res1)) {
7470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7471 }
7472 if (!argp1) {
7473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7474 }
7475 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7476 {
7477 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7481 return resultobj;
7482fail:
7483 return NULL;
7484}
7485
7486
7487SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7488 PyObject *resultobj = 0;
7489 wxBitmap *arg1 = 0 ;
7490 wxRect *arg2 = 0 ;
7491 wxNativePixelData *result = 0 ;
7492 void *argp1 = 0 ;
7493 int res1 = 0 ;
7494 wxRect temp2 ;
7495
7496 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7498 if (!SWIG_IsOK(res1)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7500 }
7501 if (!argp1) {
7502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7503 }
7504 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7505 {
7506 arg2 = &temp2;
7507 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7508 }
7509 {
7510 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7511 if (PyErr_Occurred()) SWIG_fail;
7512 }
7513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7514 return resultobj;
7515fail:
7516 return NULL;
7517}
7518
7519
7520SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7521 PyObject *resultobj = 0;
7522 wxBitmap *arg1 = 0 ;
7523 wxPoint *arg2 = 0 ;
7524 wxSize *arg3 = 0 ;
7525 wxNativePixelData *result = 0 ;
7526 void *argp1 = 0 ;
7527 int res1 = 0 ;
7528 wxPoint temp2 ;
7529 wxSize temp3 ;
7530
7531 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7533 if (!SWIG_IsOK(res1)) {
7534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7535 }
7536 if (!argp1) {
7537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7538 }
7539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7540 {
7541 arg2 = &temp2;
7542 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7543 }
7544 {
7545 arg3 = &temp3;
7546 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7547 }
7548 {
7549 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 }
7552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7553 return resultobj;
7554fail:
7555 return NULL;
7556}
7557
7558
7559SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7560 int argc;
7561 PyObject *argv[4];
7562
7563 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7564 --argc;
7565 if (argc == 1) {
7566 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7567 }
7568 if (argc == 2) {
7569 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7570 }
7571 if (argc == 3) {
7572 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7573 }
7574
7575fail:
7576 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7577 return NULL;
7578}
7579
7580
7581SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7582 PyObject *resultobj = 0;
7583 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7584 void *argp1 = 0 ;
7585 int res1 = 0 ;
7586 PyObject *swig_obj[1] ;
7587
7588 if (!args) SWIG_fail;
7589 swig_obj[0] = args;
7590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7591 if (!SWIG_IsOK(res1)) {
7592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7593 }
7594 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7595 {
7596 delete arg1;
7597
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 resultobj = SWIG_Py_Void();
7601 return resultobj;
7602fail:
7603 return NULL;
7604}
7605
7606
7607SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7608 PyObject *resultobj = 0;
7609 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7610 wxNativePixelData_Accessor result;
7611 void *argp1 = 0 ;
7612 int res1 = 0 ;
7613 PyObject *swig_obj[1] ;
7614
7615 if (!args) SWIG_fail;
7616 swig_obj[0] = args;
7617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7618 if (!SWIG_IsOK(res1)) {
7619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7620 }
7621 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7622 {
7623 result = ((wxNativePixelData const *)arg1)->GetPixels();
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7627 return resultobj;
7628fail:
7629 return NULL;
7630}
7631
7632
7633SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7634 PyObject *resultobj = 0;
7635 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7636 void *argp1 = 0 ;
7637 int res1 = 0 ;
7638 PyObject *swig_obj[1] ;
7639
7640 if (!args) SWIG_fail;
7641 swig_obj[0] = args;
7642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7643 if (!SWIG_IsOK(res1)) {
7644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7645 }
7646 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7647 {
7648 (arg1)->UseAlpha();
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 resultobj = SWIG_Py_Void();
7652 return resultobj;
7653fail:
7654 return NULL;
7655}
7656
7657
7658SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7659 PyObject *resultobj = 0;
7660 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7661 bool result;
7662 void *argp1 = 0 ;
7663 int res1 = 0 ;
7664 PyObject *swig_obj[1] ;
7665
7666 if (!args) SWIG_fail;
7667 swig_obj[0] = args;
7668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7669 if (!SWIG_IsOK(res1)) {
7670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7671 }
7672 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7673 {
7674 result = (bool)wxNativePixelData___nonzero__(arg1);
7675 if (PyErr_Occurred()) SWIG_fail;
7676 }
7677 {
7678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7679 }
7680 return resultobj;
7681fail:
7682 return NULL;
7683}
7684
7685
7686SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7687 PyObject *obj;
7688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7689 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7690 return SWIG_Py_Void();
7691}
7692
7693SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7694 return SWIG_Python_InitShadowInstance(args);
7695}
7696
7697SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7698 PyObject *resultobj = 0;
7699 wxNativePixelData *arg1 = 0 ;
7700 wxNativePixelData_Accessor *result = 0 ;
7701 void *argp1 = 0 ;
7702 int res1 = 0 ;
7703
7704 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7706 if (!SWIG_IsOK(res1)) {
7707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7708 }
7709 if (!argp1) {
7710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7711 }
7712 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7713 {
7714 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7715 if (PyErr_Occurred()) SWIG_fail;
7716 }
7717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7718 return resultobj;
7719fail:
7720 return NULL;
7721}
7722
7723
7724SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7725 PyObject *resultobj = 0;
7726 wxBitmap *arg1 = 0 ;
7727 wxNativePixelData *arg2 = 0 ;
7728 wxNativePixelData_Accessor *result = 0 ;
7729 void *argp1 = 0 ;
7730 int res1 = 0 ;
7731 void *argp2 = 0 ;
7732 int res2 = 0 ;
7733
7734 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7736 if (!SWIG_IsOK(res1)) {
7737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7738 }
7739 if (!argp1) {
7740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7741 }
7742 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7743 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7744 if (!SWIG_IsOK(res2)) {
7745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7746 }
7747 if (!argp2) {
7748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7749 }
7750 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7751 {
7752 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
7755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7756 return resultobj;
7757fail:
7758 return NULL;
7759}
7760
7761
7762SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7763 PyObject *resultobj = 0;
7764 wxNativePixelData_Accessor *result = 0 ;
7765
7766 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7767 {
7768 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7772 return resultobj;
7773fail:
7774 return NULL;
7775}
7776
7777
7778SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7779 int argc;
7780 PyObject *argv[3];
7781
7782 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7783 --argc;
7784 if (argc == 0) {
7785 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7786 }
7787 if (argc == 1) {
7788 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7789 }
7790 if (argc == 2) {
7791 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7792 }
7793
7794fail:
7795 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7796 return NULL;
7797}
7798
7799
7800SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7801 PyObject *resultobj = 0;
7802 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7803 void *argp1 = 0 ;
7804 int res1 = 0 ;
7805 PyObject *swig_obj[1] ;
7806
7807 if (!args) SWIG_fail;
7808 swig_obj[0] = args;
7809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7810 if (!SWIG_IsOK(res1)) {
7811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7812 }
7813 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7814 {
7815 delete arg1;
7816
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_Py_Void();
7820 return resultobj;
7821fail:
7822 return NULL;
7823}
7824
7825
7826SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj = 0;
7828 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7829 wxNativePixelData *arg2 = 0 ;
7830 void *argp1 = 0 ;
7831 int res1 = 0 ;
7832 void *argp2 = 0 ;
7833 int res2 = 0 ;
7834 PyObject * obj0 = 0 ;
7835 PyObject * obj1 = 0 ;
7836 char * kwnames[] = {
7837 (char *) "self",(char *) "data", NULL
7838 };
7839
7840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7842 if (!SWIG_IsOK(res1)) {
7843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7844 }
7845 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7846 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7847 if (!SWIG_IsOK(res2)) {
7848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7849 }
7850 if (!argp2) {
7851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7852 }
7853 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7854 {
7855 (arg1)->Reset((wxNativePixelData const &)*arg2);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = SWIG_Py_Void();
7859 return resultobj;
7860fail:
7861 return NULL;
7862}
7863
7864
7865SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7866 PyObject *resultobj = 0;
7867 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7868 bool result;
7869 void *argp1 = 0 ;
7870 int res1 = 0 ;
7871 PyObject *swig_obj[1] ;
7872
7873 if (!args) SWIG_fail;
7874 swig_obj[0] = args;
7875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7876 if (!SWIG_IsOK(res1)) {
7877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7878 }
7879 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7880 {
7881 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 {
7885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7886 }
7887 return resultobj;
7888fail:
7889 return NULL;
7890}
7891
7892
7893SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7894 PyObject *resultobj = 0;
7895 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7896 void *argp1 = 0 ;
7897 int res1 = 0 ;
7898 PyObject *swig_obj[1] ;
7899
7900 if (!args) SWIG_fail;
7901 swig_obj[0] = args;
7902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7905 }
7906 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7907 {
7908 wxNativePixelData_Accessor_nextPixel(arg1);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_Py_Void();
7912 return resultobj;
7913fail:
7914 return NULL;
7915}
7916
7917
7918SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj = 0;
7920 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7921 wxNativePixelData *arg2 = 0 ;
7922 int arg3 ;
7923 int arg4 ;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 void *argp2 = 0 ;
7927 int res2 = 0 ;
7928 int val3 ;
7929 int ecode3 = 0 ;
7930 int val4 ;
7931 int ecode4 = 0 ;
7932 PyObject * obj0 = 0 ;
7933 PyObject * obj1 = 0 ;
7934 PyObject * obj2 = 0 ;
7935 PyObject * obj3 = 0 ;
7936 char * kwnames[] = {
7937 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7938 };
7939
7940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7942 if (!SWIG_IsOK(res1)) {
7943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7944 }
7945 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7947 if (!SWIG_IsOK(res2)) {
7948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7949 }
7950 if (!argp2) {
7951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7952 }
7953 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7954 ecode3 = SWIG_AsVal_int(obj2, &val3);
7955 if (!SWIG_IsOK(ecode3)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7957 }
7958 arg3 = static_cast< int >(val3);
7959 ecode4 = SWIG_AsVal_int(obj3, &val4);
7960 if (!SWIG_IsOK(ecode4)) {
7961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7962 }
7963 arg4 = static_cast< int >(val4);
7964 {
7965 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
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_OffsetX(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 *) "x", NULL
7991 };
7992
7993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",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_OffsetX" "', 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_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8002 }
8003 if (!argp2) {
8004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', 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_OffsetX" "', expected argument " "3"" of type '" "int""'");
8010 }
8011 arg3 = static_cast< int >(val3);
8012 {
8013 (arg1)->OffsetX((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_OffsetY(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 void *argp1 = 0 ;
8029 int res1 = 0 ;
8030 void *argp2 = 0 ;
8031 int res2 = 0 ;
8032 int val3 ;
8033 int ecode3 = 0 ;
8034 PyObject * obj0 = 0 ;
8035 PyObject * obj1 = 0 ;
8036 PyObject * obj2 = 0 ;
8037 char * kwnames[] = {
8038 (char *) "self",(char *) "data",(char *) "y", NULL
8039 };
8040
8041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8043 if (!SWIG_IsOK(res1)) {
8044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8045 }
8046 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8048 if (!SWIG_IsOK(res2)) {
8049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8050 }
8051 if (!argp2) {
8052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8053 }
8054 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8055 ecode3 = SWIG_AsVal_int(obj2, &val3);
8056 if (!SWIG_IsOK(ecode3)) {
8057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8058 }
8059 arg3 = static_cast< int >(val3);
8060 {
8061 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8062 if (PyErr_Occurred()) SWIG_fail;
8063 }
8064 resultobj = SWIG_Py_Void();
8065 return resultobj;
8066fail:
8067 return NULL;
8068}
8069
8070
8071SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8072 PyObject *resultobj = 0;
8073 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8074 wxNativePixelData *arg2 = 0 ;
8075 int arg3 ;
8076 int arg4 ;
8077 void *argp1 = 0 ;
8078 int res1 = 0 ;
8079 void *argp2 = 0 ;
8080 int res2 = 0 ;
8081 int val3 ;
8082 int ecode3 = 0 ;
8083 int val4 ;
8084 int ecode4 = 0 ;
8085 PyObject * obj0 = 0 ;
8086 PyObject * obj1 = 0 ;
8087 PyObject * obj2 = 0 ;
8088 PyObject * obj3 = 0 ;
8089 char * kwnames[] = {
8090 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8091 };
8092
8093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8097 }
8098 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8099 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8100 if (!SWIG_IsOK(res2)) {
8101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8102 }
8103 if (!argp2) {
8104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8105 }
8106 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8107 ecode3 = SWIG_AsVal_int(obj2, &val3);
8108 if (!SWIG_IsOK(ecode3)) {
8109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8110 }
8111 arg3 = static_cast< int >(val3);
8112 ecode4 = SWIG_AsVal_int(obj3, &val4);
8113 if (!SWIG_IsOK(ecode4)) {
8114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8115 }
8116 arg4 = static_cast< int >(val4);
8117 {
8118 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8119 if (PyErr_Occurred()) SWIG_fail;
8120 }
8121 resultobj = SWIG_Py_Void();
8122 return resultobj;
8123fail:
8124 return NULL;
8125}
8126
8127
8128SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8129 PyObject *resultobj = 0;
8130 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8131 byte arg2 ;
8132 byte arg3 ;
8133 byte arg4 ;
8134 void *argp1 = 0 ;
8135 int res1 = 0 ;
8136 unsigned char val2 ;
8137 int ecode2 = 0 ;
8138 unsigned char val3 ;
8139 int ecode3 = 0 ;
8140 unsigned char val4 ;
8141 int ecode4 = 0 ;
8142 PyObject * obj0 = 0 ;
8143 PyObject * obj1 = 0 ;
8144 PyObject * obj2 = 0 ;
8145 PyObject * obj3 = 0 ;
8146 char * kwnames[] = {
8147 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8148 };
8149
8150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8152 if (!SWIG_IsOK(res1)) {
8153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8154 }
8155 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8156 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8157 if (!SWIG_IsOK(ecode2)) {
8158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8159 }
8160 arg2 = static_cast< byte >(val2);
8161 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8162 if (!SWIG_IsOK(ecode3)) {
8163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8164 }
8165 arg3 = static_cast< byte >(val3);
8166 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8167 if (!SWIG_IsOK(ecode4)) {
8168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8169 }
8170 arg4 = static_cast< byte >(val4);
8171 {
8172 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_Py_Void();
8176 return resultobj;
8177fail:
8178 return NULL;
8179}
8180
8181
8182SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8183 PyObject *resultobj = 0;
8184 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8185 PyObject *result = 0 ;
8186 void *argp1 = 0 ;
8187 int res1 = 0 ;
8188 PyObject *swig_obj[1] ;
8189
8190 if (!args) SWIG_fail;
8191 swig_obj[0] = args;
8192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8193 if (!SWIG_IsOK(res1)) {
8194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8195 }
8196 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8197 {
8198 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 resultobj = result;
8202 return resultobj;
8203fail:
8204 return NULL;
8205}
8206
8207
8208SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8209 PyObject *obj;
8210 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8211 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8212 return SWIG_Py_Void();
8213}
8214
8215SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8216 return SWIG_Python_InitShadowInstance(args);
8217}
8218
8219SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8220 PyObject *resultobj = 0;
8221 wxBitmap *arg1 = 0 ;
8222 wxAlphaPixelData *result = 0 ;
8223 void *argp1 = 0 ;
8224 int res1 = 0 ;
8225
8226 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8228 if (!SWIG_IsOK(res1)) {
8229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8230 }
8231 if (!argp1) {
8232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8233 }
8234 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8235 {
8236 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8240 return resultobj;
8241fail:
8242 return NULL;
8243}
8244
8245
8246SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8247 PyObject *resultobj = 0;
8248 wxBitmap *arg1 = 0 ;
8249 wxRect *arg2 = 0 ;
8250 wxAlphaPixelData *result = 0 ;
8251 void *argp1 = 0 ;
8252 int res1 = 0 ;
8253 wxRect temp2 ;
8254
8255 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8257 if (!SWIG_IsOK(res1)) {
8258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8259 }
8260 if (!argp1) {
8261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8262 }
8263 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8264 {
8265 arg2 = &temp2;
8266 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8267 }
8268 {
8269 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8270 if (PyErr_Occurred()) SWIG_fail;
8271 }
8272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8273 return resultobj;
8274fail:
8275 return NULL;
8276}
8277
8278
8279SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8280 PyObject *resultobj = 0;
8281 wxBitmap *arg1 = 0 ;
8282 wxPoint *arg2 = 0 ;
8283 wxSize *arg3 = 0 ;
8284 wxAlphaPixelData *result = 0 ;
8285 void *argp1 = 0 ;
8286 int res1 = 0 ;
8287 wxPoint temp2 ;
8288 wxSize temp3 ;
8289
8290 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8292 if (!SWIG_IsOK(res1)) {
8293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8294 }
8295 if (!argp1) {
8296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8297 }
8298 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8299 {
8300 arg2 = &temp2;
8301 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8302 }
8303 {
8304 arg3 = &temp3;
8305 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8306 }
8307 {
8308 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8312 return resultobj;
8313fail:
8314 return NULL;
8315}
8316
8317
8318SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8319 int argc;
8320 PyObject *argv[4];
8321
8322 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8323 --argc;
8324 if (argc == 1) {
8325 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8326 }
8327 if (argc == 2) {
8328 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8329 }
8330 if (argc == 3) {
8331 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8332 }
8333
8334fail:
8335 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8336 return NULL;
8337}
8338
8339
8340SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8341 PyObject *resultobj = 0;
8342 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8343 void *argp1 = 0 ;
8344 int res1 = 0 ;
8345 PyObject *swig_obj[1] ;
8346
8347 if (!args) SWIG_fail;
8348 swig_obj[0] = args;
8349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8350 if (!SWIG_IsOK(res1)) {
8351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8352 }
8353 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8354 {
8355 delete arg1;
8356
8357 if (PyErr_Occurred()) SWIG_fail;
8358 }
8359 resultobj = SWIG_Py_Void();
8360 return resultobj;
8361fail:
8362 return NULL;
8363}
8364
8365
8366SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8367 PyObject *resultobj = 0;
8368 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8369 wxAlphaPixelData_Accessor result;
8370 void *argp1 = 0 ;
8371 int res1 = 0 ;
8372 PyObject *swig_obj[1] ;
8373
8374 if (!args) SWIG_fail;
8375 swig_obj[0] = args;
8376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8377 if (!SWIG_IsOK(res1)) {
8378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8379 }
8380 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8381 {
8382 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8383 if (PyErr_Occurred()) SWIG_fail;
8384 }
8385 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8386 return resultobj;
8387fail:
8388 return NULL;
8389}
8390
8391
8392SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8393 PyObject *resultobj = 0;
8394 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8395 void *argp1 = 0 ;
8396 int res1 = 0 ;
8397 PyObject *swig_obj[1] ;
8398
8399 if (!args) SWIG_fail;
8400 swig_obj[0] = args;
8401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8402 if (!SWIG_IsOK(res1)) {
8403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8404 }
8405 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8406 {
8407 (arg1)->UseAlpha();
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 resultobj = SWIG_Py_Void();
8411 return resultobj;
8412fail:
8413 return NULL;
8414}
8415
8416
8417SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8418 PyObject *resultobj = 0;
8419 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8420 bool result;
8421 void *argp1 = 0 ;
8422 int res1 = 0 ;
8423 PyObject *swig_obj[1] ;
8424
8425 if (!args) SWIG_fail;
8426 swig_obj[0] = args;
8427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8428 if (!SWIG_IsOK(res1)) {
8429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8430 }
8431 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8432 {
8433 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 {
8437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8438 }
8439 return resultobj;
8440fail:
8441 return NULL;
8442}
8443
8444
8445SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8446 PyObject *obj;
8447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8448 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8449 return SWIG_Py_Void();
8450}
8451
8452SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8453 return SWIG_Python_InitShadowInstance(args);
8454}
8455
8456SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8457 PyObject *resultobj = 0;
8458 wxAlphaPixelData *arg1 = 0 ;
8459 wxAlphaPixelData_Accessor *result = 0 ;
8460 void *argp1 = 0 ;
8461 int res1 = 0 ;
8462
8463 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8465 if (!SWIG_IsOK(res1)) {
8466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8467 }
8468 if (!argp1) {
8469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8470 }
8471 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8472 {
8473 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8474 if (PyErr_Occurred()) SWIG_fail;
8475 }
8476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8477 return resultobj;
8478fail:
8479 return NULL;
8480}
8481
8482
8483SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8484 PyObject *resultobj = 0;
8485 wxBitmap *arg1 = 0 ;
8486 wxAlphaPixelData *arg2 = 0 ;
8487 wxAlphaPixelData_Accessor *result = 0 ;
8488 void *argp1 = 0 ;
8489 int res1 = 0 ;
8490 void *argp2 = 0 ;
8491 int res2 = 0 ;
8492
8493 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8495 if (!SWIG_IsOK(res1)) {
8496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8497 }
8498 if (!argp1) {
8499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8500 }
8501 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8502 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8503 if (!SWIG_IsOK(res2)) {
8504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8505 }
8506 if (!argp2) {
8507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8508 }
8509 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8510 {
8511 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8515 return resultobj;
8516fail:
8517 return NULL;
8518}
8519
8520
8521SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8522 PyObject *resultobj = 0;
8523 wxAlphaPixelData_Accessor *result = 0 ;
8524
8525 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8526 {
8527 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8531 return resultobj;
8532fail:
8533 return NULL;
8534}
8535
8536
8537SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8538 int argc;
8539 PyObject *argv[3];
8540
8541 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8542 --argc;
8543 if (argc == 0) {
8544 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8545 }
8546 if (argc == 1) {
8547 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8548 }
8549 if (argc == 2) {
8550 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8551 }
8552
8553fail:
8554 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8555 return NULL;
8556}
8557
8558
8559SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8560 PyObject *resultobj = 0;
8561 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8562 void *argp1 = 0 ;
8563 int res1 = 0 ;
8564 PyObject *swig_obj[1] ;
8565
8566 if (!args) SWIG_fail;
8567 swig_obj[0] = args;
8568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8569 if (!SWIG_IsOK(res1)) {
8570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8571 }
8572 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8573 {
8574 delete arg1;
8575
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 resultobj = SWIG_Py_Void();
8579 return resultobj;
8580fail:
8581 return NULL;
8582}
8583
8584
8585SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8586 PyObject *resultobj = 0;
8587 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8588 wxAlphaPixelData *arg2 = 0 ;
8589 void *argp1 = 0 ;
8590 int res1 = 0 ;
8591 void *argp2 = 0 ;
8592 int res2 = 0 ;
8593 PyObject * obj0 = 0 ;
8594 PyObject * obj1 = 0 ;
8595 char * kwnames[] = {
8596 (char *) "self",(char *) "data", NULL
8597 };
8598
8599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8601 if (!SWIG_IsOK(res1)) {
8602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8603 }
8604 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8606 if (!SWIG_IsOK(res2)) {
8607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8608 }
8609 if (!argp2) {
8610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8611 }
8612 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8613 {
8614 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 resultobj = SWIG_Py_Void();
8618 return resultobj;
8619fail:
8620 return NULL;
8621}
8622
8623
8624SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8625 PyObject *resultobj = 0;
8626 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8627 bool result;
8628 void *argp1 = 0 ;
8629 int res1 = 0 ;
8630 PyObject *swig_obj[1] ;
8631
8632 if (!args) SWIG_fail;
8633 swig_obj[0] = args;
8634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8637 }
8638 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8639 {
8640 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 {
8644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8645 }
8646 return resultobj;
8647fail:
8648 return NULL;
8649}
8650
8651
8652SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8653 PyObject *resultobj = 0;
8654 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8655 void *argp1 = 0 ;
8656 int res1 = 0 ;
8657 PyObject *swig_obj[1] ;
8658
8659 if (!args) SWIG_fail;
8660 swig_obj[0] = args;
8661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8664 }
8665 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8666 {
8667 wxAlphaPixelData_Accessor_nextPixel(arg1);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_Py_Void();
8671 return resultobj;
8672fail:
8673 return NULL;
8674}
8675
8676
8677SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj = 0;
8679 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8680 wxAlphaPixelData *arg2 = 0 ;
8681 int arg3 ;
8682 int arg4 ;
8683 void *argp1 = 0 ;
8684 int res1 = 0 ;
8685 void *argp2 = 0 ;
8686 int res2 = 0 ;
8687 int val3 ;
8688 int ecode3 = 0 ;
8689 int val4 ;
8690 int ecode4 = 0 ;
8691 PyObject * obj0 = 0 ;
8692 PyObject * obj1 = 0 ;
8693 PyObject * obj2 = 0 ;
8694 PyObject * obj3 = 0 ;
8695 char * kwnames[] = {
8696 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8697 };
8698
8699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8701 if (!SWIG_IsOK(res1)) {
8702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8703 }
8704 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8706 if (!SWIG_IsOK(res2)) {
8707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8708 }
8709 if (!argp2) {
8710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8711 }
8712 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8713 ecode3 = SWIG_AsVal_int(obj2, &val3);
8714 if (!SWIG_IsOK(ecode3)) {
8715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8716 }
8717 arg3 = static_cast< int >(val3);
8718 ecode4 = SWIG_AsVal_int(obj3, &val4);
8719 if (!SWIG_IsOK(ecode4)) {
8720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8721 }
8722 arg4 = static_cast< int >(val4);
8723 {
8724 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
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_OffsetX(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 *) "x", NULL
8750 };
8751
8752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",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_OffsetX" "', 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_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8761 }
8762 if (!argp2) {
8763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', 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_OffsetX" "', expected argument " "3"" of type '" "int""'");
8769 }
8770 arg3 = static_cast< int >(val3);
8771 {
8772 (arg1)->OffsetX((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_OffsetY(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 void *argp1 = 0 ;
8788 int res1 = 0 ;
8789 void *argp2 = 0 ;
8790 int res2 = 0 ;
8791 int val3 ;
8792 int ecode3 = 0 ;
8793 PyObject * obj0 = 0 ;
8794 PyObject * obj1 = 0 ;
8795 PyObject * obj2 = 0 ;
8796 char * kwnames[] = {
8797 (char *) "self",(char *) "data",(char *) "y", NULL
8798 };
8799
8800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8802 if (!SWIG_IsOK(res1)) {
8803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8804 }
8805 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8807 if (!SWIG_IsOK(res2)) {
8808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8809 }
8810 if (!argp2) {
8811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8812 }
8813 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8814 ecode3 = SWIG_AsVal_int(obj2, &val3);
8815 if (!SWIG_IsOK(ecode3)) {
8816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8817 }
8818 arg3 = static_cast< int >(val3);
8819 {
8820 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 resultobj = SWIG_Py_Void();
8824 return resultobj;
8825fail:
8826 return NULL;
8827}
8828
8829
8830SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8831 PyObject *resultobj = 0;
8832 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8833 wxAlphaPixelData *arg2 = 0 ;
8834 int arg3 ;
8835 int arg4 ;
8836 void *argp1 = 0 ;
8837 int res1 = 0 ;
8838 void *argp2 = 0 ;
8839 int res2 = 0 ;
8840 int val3 ;
8841 int ecode3 = 0 ;
8842 int val4 ;
8843 int ecode4 = 0 ;
8844 PyObject * obj0 = 0 ;
8845 PyObject * obj1 = 0 ;
8846 PyObject * obj2 = 0 ;
8847 PyObject * obj3 = 0 ;
8848 char * kwnames[] = {
8849 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8850 };
8851
8852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8856 }
8857 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8859 if (!SWIG_IsOK(res2)) {
8860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8861 }
8862 if (!argp2) {
8863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8864 }
8865 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8866 ecode3 = SWIG_AsVal_int(obj2, &val3);
8867 if (!SWIG_IsOK(ecode3)) {
8868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8869 }
8870 arg3 = static_cast< int >(val3);
8871 ecode4 = SWIG_AsVal_int(obj3, &val4);
8872 if (!SWIG_IsOK(ecode4)) {
8873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8874 }
8875 arg4 = static_cast< int >(val4);
8876 {
8877 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 resultobj = SWIG_Py_Void();
8881 return resultobj;
8882fail:
8883 return NULL;
8884}
8885
8886
8887SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8888 PyObject *resultobj = 0;
8889 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8890 byte arg2 ;
8891 byte arg3 ;
8892 byte arg4 ;
8893 byte arg5 ;
8894 void *argp1 = 0 ;
8895 int res1 = 0 ;
8896 unsigned char val2 ;
8897 int ecode2 = 0 ;
8898 unsigned char val3 ;
8899 int ecode3 = 0 ;
8900 unsigned char val4 ;
8901 int ecode4 = 0 ;
8902 unsigned char val5 ;
8903 int ecode5 = 0 ;
8904 PyObject * obj0 = 0 ;
8905 PyObject * obj1 = 0 ;
8906 PyObject * obj2 = 0 ;
8907 PyObject * obj3 = 0 ;
8908 PyObject * obj4 = 0 ;
8909 char * kwnames[] = {
8910 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8911 };
8912
8913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8915 if (!SWIG_IsOK(res1)) {
8916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8917 }
8918 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8919 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8920 if (!SWIG_IsOK(ecode2)) {
8921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8922 }
8923 arg2 = static_cast< byte >(val2);
8924 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8925 if (!SWIG_IsOK(ecode3)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8927 }
8928 arg3 = static_cast< byte >(val3);
8929 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8930 if (!SWIG_IsOK(ecode4)) {
8931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8932 }
8933 arg4 = static_cast< byte >(val4);
8934 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8935 if (!SWIG_IsOK(ecode5)) {
8936 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8937 }
8938 arg5 = static_cast< byte >(val5);
8939 {
8940 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8941 if (PyErr_Occurred()) SWIG_fail;
554f62e9 8942 }
fc46b7f3 8943 resultobj = SWIG_Py_Void();
554f62e9
RD
8944 return resultobj;
8945fail:
8946 return NULL;
8947}
8948
8949
fc46b7f3 8950SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8951 PyObject *resultobj = 0;
fc46b7f3
RD
8952 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8953 PyObject *result = 0 ;
554f62e9
RD
8954 void *argp1 = 0 ;
8955 int res1 = 0 ;
fc46b7f3 8956 PyObject *swig_obj[1] ;
554f62e9 8957
fc46b7f3
RD
8958 if (!args) SWIG_fail;
8959 swig_obj[0] = args;
8960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 8961 if (!SWIG_IsOK(res1)) {
fc46b7f3 8962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 8963 }
fc46b7f3 8964 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 8965 {
fc46b7f3 8966 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
fc46b7f3 8969 resultobj = result;
554f62e9
RD
8970 return resultobj;
8971fail:
8972 return NULL;
d55e5bfc
RD
8973}
8974
8975
fc46b7f3 8976SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
8977 PyObject *obj;
8978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8979 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 8980 return SWIG_Py_Void();
d55e5bfc
RD
8981}
8982
fc46b7f3 8983SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8984 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
8985}
8986
554f62e9
RD
8987SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj = 0;
8989 wxBitmap *arg1 = 0 ;
8990 wxColour const &arg2_defvalue = wxNullColour ;
8991 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8992 wxMask *result = 0 ;
8993 void *argp1 = 0 ;
8994 int res1 = 0 ;
8995 wxColour temp2 ;
8996 PyObject * obj0 = 0 ;
8997 PyObject * obj1 = 0 ;
8998 char * kwnames[] = {
8999 (char *) "bitmap",(char *) "colour", NULL
9000 };
9001
9002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9003 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9004 if (!SWIG_IsOK(res1)) {
9005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9006 }
9007 if (!argp1) {
9008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9009 }
9010 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9011 if (obj1) {
d55e5bfc 9012 {
554f62e9
RD
9013 arg2 = &temp2;
9014 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9015 }
554f62e9
RD
9016 }
9017 {
9018 if (!wxPyCheckForApp()) SWIG_fail;
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9025 return resultobj;
9026fail:
9027 return NULL;
d55e5bfc
RD
9028}
9029
9030
554f62e9
RD
9031SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9032 PyObject *resultobj = 0;
9033 wxMask *arg1 = (wxMask *) 0 ;
9034 void *argp1 = 0 ;
9035 int res1 = 0 ;
9036 PyObject *swig_obj[1] ;
9037
9038 if (!args) SWIG_fail;
9039 swig_obj[0] = args;
9040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9041 if (!SWIG_IsOK(res1)) {
9042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9043 }
9044 arg1 = reinterpret_cast< wxMask * >(argp1);
9045 {
554f62e9 9046 delete arg1;
d55e5bfc 9047
554f62e9
RD
9048 if (PyErr_Occurred()) SWIG_fail;
9049 }
9050 resultobj = SWIG_Py_Void();
9051 return resultobj;
9052fail:
9053 return NULL;
9054}
9055
9056
9057SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9058 PyObject *obj;
9059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9060 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9061 return SWIG_Py_Void();
9062}
9063
9064SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9065 return SWIG_Python_InitShadowInstance(args);
9066}
9067
9068SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj = 0;
9070 wxString *arg1 = 0 ;
9071 wxBitmapType arg2 ;
9072 int arg3 = (int) -1 ;
9073 int arg4 = (int) -1 ;
9074 wxIcon *result = 0 ;
9075 bool temp1 = false ;
9076 int val2 ;
9077 int ecode2 = 0 ;
9078 int val3 ;
9079 int ecode3 = 0 ;
9080 int val4 ;
9081 int ecode4 = 0 ;
9082 PyObject * obj0 = 0 ;
9083 PyObject * obj1 = 0 ;
9084 PyObject * obj2 = 0 ;
9085 PyObject * obj3 = 0 ;
9086 char * kwnames[] = {
9087 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9088 };
9089
9090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9091 {
9092 arg1 = wxString_in_helper(obj0);
9093 if (arg1 == NULL) SWIG_fail;
9094 temp1 = true;
9095 }
9096 ecode2 = SWIG_AsVal_int(obj1, &val2);
9097 if (!SWIG_IsOK(ecode2)) {
9098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9099 }
9100 arg2 = static_cast< wxBitmapType >(val2);
9101 if (obj2) {
9102 ecode3 = SWIG_AsVal_int(obj2, &val3);
9103 if (!SWIG_IsOK(ecode3)) {
9104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9105 }
9106 arg3 = static_cast< int >(val3);
9107 }
9108 if (obj3) {
9109 ecode4 = SWIG_AsVal_int(obj3, &val4);
9110 if (!SWIG_IsOK(ecode4)) {
9111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9112 }
9113 arg4 = static_cast< int >(val4);
9114 }
9115 {
9116 if (!wxPyCheckForApp()) SWIG_fail;
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9123 {
9124 if (temp1)
9125 delete arg1;
9126 }
9127 return resultobj;
9128fail:
9129 {
9130 if (temp1)
9131 delete arg1;
9132 }
9133 return NULL;
d55e5bfc
RD
9134}
9135
9136
554f62e9
RD
9137SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9138 PyObject *resultobj = 0;
9139 wxIcon *arg1 = (wxIcon *) 0 ;
9140 void *argp1 = 0 ;
9141 int res1 = 0 ;
9142 PyObject *swig_obj[1] ;
9143
9144 if (!args) SWIG_fail;
9145 swig_obj[0] = args;
9146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9147 if (!SWIG_IsOK(res1)) {
9148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9149 }
9150 arg1 = reinterpret_cast< wxIcon * >(argp1);
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 delete arg1;
d55e5bfc 9154
554f62e9
RD
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 resultobj = SWIG_Py_Void();
9159 return resultobj;
9160fail:
9161 return NULL;
d55e5bfc
RD
9162}
9163
9164
554f62e9
RD
9165SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9166 PyObject *resultobj = 0;
9167 wxIcon *result = 0 ;
9168
9169 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9170 {
9171 if (!wxPyCheckForApp()) SWIG_fail;
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (wxIcon *)new wxIcon();
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9178 return resultobj;
9179fail:
9180 return NULL;
9181}
9182
9183
9184SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9185 PyObject *resultobj = 0;
9186 wxIconLocation *arg1 = 0 ;
9187 wxIcon *result = 0 ;
9188 void *argp1 = 0 ;
9189 int res1 = 0 ;
9190 PyObject * obj0 = 0 ;
9191 char * kwnames[] = {
9192 (char *) "loc", NULL
9193 };
9194
9195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9196 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9197 if (!SWIG_IsOK(res1)) {
9198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9199 }
9200 if (!argp1) {
9201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9202 }
9203 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9204 {
9205 if (!wxPyCheckForApp()) SWIG_fail;
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9212 return resultobj;
9213fail:
9214 return NULL;
9215}
9216
9217
9218SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj = 0;
9220 wxBitmap *arg1 = 0 ;
9221 wxIcon *result = 0 ;
9222 void *argp1 = 0 ;
9223 int res1 = 0 ;
9224 PyObject * obj0 = 0 ;
9225 char * kwnames[] = {
9226 (char *) "bmp", NULL
9227 };
9228
9229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9230 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9231 if (!SWIG_IsOK(res1)) {
9232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9233 }
9234 if (!argp1) {
9235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9236 }
9237 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9238 {
9239 if (!wxPyCheckForApp()) SWIG_fail;
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9246 return resultobj;
9247fail:
9248 return NULL;
d55e5bfc
RD
9249}
9250
9251
554f62e9
RD
9252SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9253 PyObject *resultobj = 0;
9254 PyObject *arg1 = (PyObject *) 0 ;
9255 wxIcon *result = 0 ;
9256 PyObject * obj0 = 0 ;
9257 char * kwnames[] = {
9258 (char *) "listOfStrings", NULL
9259 };
9260
9261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9262 arg1 = obj0;
9263 {
9264 if (!wxPyCheckForApp()) SWIG_fail;
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 result = (wxIcon *)new_wxIcon(arg1);
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9271 return resultobj;
9272fail:
9273 return NULL;
9274}
9275
9276
9277SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj = 0;
9279 wxIcon *arg1 = (wxIcon *) 0 ;
9280 wxString *arg2 = 0 ;
9281 wxBitmapType arg3 ;
9282 bool result;
9283 void *argp1 = 0 ;
9284 int res1 = 0 ;
9285 bool temp2 = false ;
9286 int val3 ;
9287 int ecode3 = 0 ;
9288 PyObject * obj0 = 0 ;
9289 PyObject * obj1 = 0 ;
9290 PyObject * obj2 = 0 ;
9291 char * kwnames[] = {
9292 (char *) "self",(char *) "name",(char *) "type", NULL
9293 };
9294
9295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9299 }
9300 arg1 = reinterpret_cast< wxIcon * >(argp1);
9301 {
9302 arg2 = wxString_in_helper(obj1);
9303 if (arg2 == NULL) SWIG_fail;
9304 temp2 = true;
9305 }
9306 ecode3 = SWIG_AsVal_int(obj2, &val3);
9307 if (!SWIG_IsOK(ecode3)) {
9308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9309 }
9310 arg3 = static_cast< wxBitmapType >(val3);
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 {
9318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9319 }
9320 {
9321 if (temp2)
9322 delete arg2;
9323 }
9324 return resultobj;
9325fail:
9326 {
9327 if (temp2)
9328 delete arg2;
9329 }
9330 return NULL;
d55e5bfc
RD
9331}
9332
9333
554f62e9
RD
9334SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9335 PyObject *resultobj = 0;
9336 wxIcon *arg1 = (wxIcon *) 0 ;
9337 long result;
9338 void *argp1 = 0 ;
9339 int res1 = 0 ;
9340 PyObject *swig_obj[1] ;
9341
9342 if (!args) SWIG_fail;
9343 swig_obj[0] = args;
9344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9345 if (!SWIG_IsOK(res1)) {
9346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9347 }
9348 arg1 = reinterpret_cast< wxIcon * >(argp1);
9349 {
9350 PyThreadState* __tstate = wxPyBeginAllowThreads();
9351 result = (long)(arg1)->GetHandle();
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 resultobj = SWIG_From_long(static_cast< long >(result));
9356 return resultobj;
9357fail:
9358 return NULL;
9359}
9360
9361
9362SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9363 PyObject *resultobj = 0;
9364 wxIcon *arg1 = (wxIcon *) 0 ;
9365 long arg2 ;
9366 void *argp1 = 0 ;
9367 int res1 = 0 ;
9368 long val2 ;
9369 int ecode2 = 0 ;
9370 PyObject * obj0 = 0 ;
9371 PyObject * obj1 = 0 ;
9372 char * kwnames[] = {
9373 (char *) "self",(char *) "handle", NULL
9374 };
9375
9376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9378 if (!SWIG_IsOK(res1)) {
9379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9380 }
9381 arg1 = reinterpret_cast< wxIcon * >(argp1);
9382 ecode2 = SWIG_AsVal_long(obj1, &val2);
9383 if (!SWIG_IsOK(ecode2)) {
9384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9385 }
9386 arg2 = static_cast< long >(val2);
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 wxIcon_SetHandle(arg1,arg2);
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 resultobj = SWIG_Py_Void();
9394 return resultobj;
9395fail:
9396 return NULL;
d55e5bfc
RD
9397}
9398
9399
b39fe951 9400SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9401 PyObject *resultobj = 0;
9402 wxIcon *arg1 = (wxIcon *) 0 ;
9403 bool result;
9404 void *argp1 = 0 ;
9405 int res1 = 0 ;
9406 PyObject *swig_obj[1] ;
9407
9408 if (!args) SWIG_fail;
9409 swig_obj[0] = args;
9410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9411 if (!SWIG_IsOK(res1)) {
b39fe951 9412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9413 }
9414 arg1 = reinterpret_cast< wxIcon * >(argp1);
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9417 result = (bool)(arg1)->IsOk();
554f62e9
RD
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 {
9422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9423 }
9424 return resultobj;
9425fail:
9426 return NULL;
d55e5bfc
RD
9427}
9428
9429
554f62e9
RD
9430SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9431 PyObject *resultobj = 0;
9432 wxIcon *arg1 = (wxIcon *) 0 ;
9433 int result;
9434 void *argp1 = 0 ;
9435 int res1 = 0 ;
9436 PyObject *swig_obj[1] ;
9437
9438 if (!args) SWIG_fail;
9439 swig_obj[0] = args;
9440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9441 if (!SWIG_IsOK(res1)) {
9442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9443 }
9444 arg1 = reinterpret_cast< wxIcon * >(argp1);
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = (int)(arg1)->GetWidth();
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_From_int(static_cast< int >(result));
9452 return resultobj;
9453fail:
9454 return NULL;
c1cb24a4
RD
9455}
9456
9457
554f62e9
RD
9458SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9459 PyObject *resultobj = 0;
9460 wxIcon *arg1 = (wxIcon *) 0 ;
9461 int result;
9462 void *argp1 = 0 ;
9463 int res1 = 0 ;
9464 PyObject *swig_obj[1] ;
9465
9466 if (!args) SWIG_fail;
9467 swig_obj[0] = args;
9468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9471 }
9472 arg1 = reinterpret_cast< wxIcon * >(argp1);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 result = (int)(arg1)->GetHeight();
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 resultobj = SWIG_From_int(static_cast< int >(result));
9480 return resultobj;
9481fail:
9482 return NULL;
c1cb24a4
RD
9483}
9484
9485
554f62e9
RD
9486SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9487 PyObject *resultobj = 0;
9488 wxIcon *arg1 = (wxIcon *) 0 ;
9489 int result;
9490 void *argp1 = 0 ;
9491 int res1 = 0 ;
9492 PyObject *swig_obj[1] ;
9493
9494 if (!args) SWIG_fail;
9495 swig_obj[0] = args;
9496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9499 }
9500 arg1 = reinterpret_cast< wxIcon * >(argp1);
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 result = (int)(arg1)->GetDepth();
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_From_int(static_cast< int >(result));
9508 return resultobj;
9509fail:
9510 return NULL;
9511}
9512
9513
9514SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj = 0;
9516 wxIcon *arg1 = (wxIcon *) 0 ;
9517 int arg2 ;
9518 void *argp1 = 0 ;
9519 int res1 = 0 ;
9520 int val2 ;
9521 int ecode2 = 0 ;
9522 PyObject * obj0 = 0 ;
9523 PyObject * obj1 = 0 ;
9524 char * kwnames[] = {
9525 (char *) "self",(char *) "w", NULL
9526 };
9527
9528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",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_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9532 }
9533 arg1 = reinterpret_cast< wxIcon * >(argp1);
9534 ecode2 = SWIG_AsVal_int(obj1, &val2);
9535 if (!SWIG_IsOK(ecode2)) {
9536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9537 }
9538 arg2 = static_cast< int >(val2);
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 (arg1)->SetWidth(arg2);
9542 wxPyEndAllowThreads(__tstate);
9543 if (PyErr_Occurred()) SWIG_fail;
9544 }
9545 resultobj = SWIG_Py_Void();
9546 return resultobj;
9547fail:
9548 return NULL;
9549}
9550
9551
9552SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9553 PyObject *resultobj = 0;
9554 wxIcon *arg1 = (wxIcon *) 0 ;
9555 int arg2 ;
9556 void *argp1 = 0 ;
9557 int res1 = 0 ;
9558 int val2 ;
9559 int ecode2 = 0 ;
9560 PyObject * obj0 = 0 ;
9561 PyObject * obj1 = 0 ;
9562 char * kwnames[] = {
9563 (char *) "self",(char *) "h", NULL
9564 };
9565
9566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9568 if (!SWIG_IsOK(res1)) {
9569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9570 }
9571 arg1 = reinterpret_cast< wxIcon * >(argp1);
9572 ecode2 = SWIG_AsVal_int(obj1, &val2);
9573 if (!SWIG_IsOK(ecode2)) {
9574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9575 }
9576 arg2 = static_cast< int >(val2);
9577 {
9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
9579 (arg1)->SetHeight(arg2);
9580 wxPyEndAllowThreads(__tstate);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 }
9583 resultobj = SWIG_Py_Void();
9584 return resultobj;
9585fail:
9586 return NULL;
9587}
9588
9589
9590SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj = 0;
9592 wxIcon *arg1 = (wxIcon *) 0 ;
9593 int arg2 ;
9594 void *argp1 = 0 ;
9595 int res1 = 0 ;
9596 int val2 ;
9597 int ecode2 = 0 ;
9598 PyObject * obj0 = 0 ;
9599 PyObject * obj1 = 0 ;
9600 char * kwnames[] = {
9601 (char *) "self",(char *) "d", NULL
9602 };
9603
9604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9606 if (!SWIG_IsOK(res1)) {
9607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9608 }
9609 arg1 = reinterpret_cast< wxIcon * >(argp1);
9610 ecode2 = SWIG_AsVal_int(obj1, &val2);
9611 if (!SWIG_IsOK(ecode2)) {
9612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9613 }
9614 arg2 = static_cast< int >(val2);
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 (arg1)->SetDepth(arg2);
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 resultobj = SWIG_Py_Void();
9622 return resultobj;
9623fail:
9624 return NULL;
9625}
9626
9627
9628SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9629 PyObject *resultobj = 0;
9630 wxIcon *arg1 = (wxIcon *) 0 ;
9631 wxSize *arg2 = 0 ;
9632 void *argp1 = 0 ;
9633 int res1 = 0 ;
9634 wxSize temp2 ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 char * kwnames[] = {
9638 (char *) "self",(char *) "size", NULL
9639 };
9640
9641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9645 }
9646 arg1 = reinterpret_cast< wxIcon * >(argp1);
9647 {
9648 arg2 = &temp2;
9649 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9650 }
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 (arg1)->SetSize((wxSize const &)*arg2);
9654 wxPyEndAllowThreads(__tstate);
9655 if (PyErr_Occurred()) SWIG_fail;
9656 }
9657 resultobj = SWIG_Py_Void();
9658 return resultobj;
9659fail:
9660 return NULL;
9661}
9662
9663
9664SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9665 PyObject *resultobj = 0;
9666 wxIcon *arg1 = (wxIcon *) 0 ;
9667 wxBitmap *arg2 = 0 ;
9668 void *argp1 = 0 ;
9669 int res1 = 0 ;
9670 void *argp2 = 0 ;
9671 int res2 = 0 ;
9672 PyObject * obj0 = 0 ;
9673 PyObject * obj1 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "bmp", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9682 }
9683 arg1 = reinterpret_cast< wxIcon * >(argp1);
9684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9685 if (!SWIG_IsOK(res2)) {
9686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9687 }
9688 if (!argp2) {
9689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9690 }
9691 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_Py_Void();
9699 return resultobj;
9700fail:
9701 return NULL;
d55e5bfc
RD
9702}
9703
9704
554f62e9
RD
9705SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9706 PyObject *obj;
9707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9708 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9709 return SWIG_Py_Void();
d55e5bfc
RD
9710}
9711
554f62e9
RD
9712SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9713 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9714}
9715
554f62e9
RD
9716SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj = 0;
9718 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9719 int arg2 = (int) 0 ;
9720 wxIconLocation *result = 0 ;
9721 bool temp1 = false ;
9722 int val2 ;
9723 int ecode2 = 0 ;
9724 PyObject * obj0 = 0 ;
9725 PyObject * obj1 = 0 ;
9726 char * kwnames[] = {
9727 (char *) "filename",(char *) "num", NULL
9728 };
9729
9730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9731 if (obj0) {
d55e5bfc 9732 {
554f62e9
RD
9733 arg1 = wxString_in_helper(obj0);
9734 if (arg1 == NULL) SWIG_fail;
9735 temp1 = true;
d55e5bfc 9736 }
554f62e9
RD
9737 }
9738 if (obj1) {
9739 ecode2 = SWIG_AsVal_int(obj1, &val2);
9740 if (!SWIG_IsOK(ecode2)) {
9741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9742 }
9743 arg2 = static_cast< int >(val2);
9744 }
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9752 {
9753 if (temp1)
9754 delete arg1;
9755 }
9756 return resultobj;
9757fail:
9758 {
9759 if (temp1)
9760 delete arg1;
9761 }
9762 return NULL;
d55e5bfc
RD
9763}
9764
9765
554f62e9
RD
9766SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9767 PyObject *resultobj = 0;
9768 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9769 void *argp1 = 0 ;
9770 int res1 = 0 ;
9771 PyObject *swig_obj[1] ;
9772
9773 if (!args) SWIG_fail;
9774 swig_obj[0] = args;
9775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9778 }
9779 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 delete arg1;
d55e5bfc 9783
554f62e9
RD
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_Py_Void();
9788 return resultobj;
9789fail:
9790 return NULL;
d55e5bfc
RD
9791}
9792
9793
554f62e9
RD
9794SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9795 PyObject *resultobj = 0;
9796 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9797 bool 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_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9807 }
9808 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 {
9816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9817 }
9818 return resultobj;
9819fail:
9820 return NULL;
9821}
9822
9823
9824SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9825 PyObject *resultobj = 0;
9826 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9827 wxString *arg2 = 0 ;
9828 void *argp1 = 0 ;
9829 int res1 = 0 ;
9830 bool temp2 = false ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 char * kwnames[] = {
9834 (char *) "self",(char *) "filename", NULL
9835 };
9836
9837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9839 if (!SWIG_IsOK(res1)) {
9840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9841 }
9842 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9843 {
9844 arg2 = wxString_in_helper(obj1);
9845 if (arg2 == NULL) SWIG_fail;
9846 temp2 = true;
9847 }
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 (arg1)->SetFileName((wxString const &)*arg2);
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_Py_Void();
9855 {
9856 if (temp2)
9857 delete arg2;
9858 }
9859 return resultobj;
9860fail:
9861 {
9862 if (temp2)
9863 delete arg2;
9864 }
9865 return NULL;
d55e5bfc
RD
9866}
9867
9868
554f62e9
RD
9869SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9870 PyObject *resultobj = 0;
9871 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9872 wxString *result = 0 ;
9873 void *argp1 = 0 ;
9874 int res1 = 0 ;
9875 PyObject *swig_obj[1] ;
9876
9877 if (!args) SWIG_fail;
9878 swig_obj[0] = args;
9879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9880 if (!SWIG_IsOK(res1)) {
9881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9882 }
9883 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9884 {
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9886 {
554f62e9
RD
9887 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9888 result = (wxString *) &_result_ref;
093d3ff1 9889 }
554f62e9
RD
9890 wxPyEndAllowThreads(__tstate);
9891 if (PyErr_Occurred()) SWIG_fail;
9892 }
9893 {
9894#if wxUSE_UNICODE
9895 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9896#else
9897 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9898#endif
9899 }
9900 return resultobj;
9901fail:
9902 return NULL;
9903}
9904
9905
9906SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj = 0;
9908 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9909 int arg2 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 int val2 ;
9913 int ecode2 = 0 ;
9914 PyObject * obj0 = 0 ;
9915 PyObject * obj1 = 0 ;
9916 char * kwnames[] = {
9917 (char *) "self",(char *) "num", NULL
9918 };
9919
9920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9922 if (!SWIG_IsOK(res1)) {
9923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9924 }
9925 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9926 ecode2 = SWIG_AsVal_int(obj1, &val2);
9927 if (!SWIG_IsOK(ecode2)) {
9928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9929 }
9930 arg2 = static_cast< int >(val2);
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 wxIconLocation_SetIndex(arg1,arg2);
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 resultobj = SWIG_Py_Void();
9938 return resultobj;
9939fail:
9940 return NULL;
d55e5bfc
RD
9941}
9942
9943
554f62e9
RD
9944SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9945 PyObject *resultobj = 0;
9946 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9947 int result;
9948 void *argp1 = 0 ;
9949 int res1 = 0 ;
9950 PyObject *swig_obj[1] ;
9951
9952 if (!args) SWIG_fail;
9953 swig_obj[0] = args;
9954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9955 if (!SWIG_IsOK(res1)) {
9956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9957 }
9958 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9959 {
9960 PyThreadState* __tstate = wxPyBeginAllowThreads();
9961 result = (int)wxIconLocation_GetIndex(arg1);
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 resultobj = SWIG_From_int(static_cast< int >(result));
9966 return resultobj;
9967fail:
9968 return NULL;
d55e5bfc
RD
9969}
9970
9971
554f62e9
RD
9972SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9973 PyObject *obj;
9974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9975 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9976 return SWIG_Py_Void();
d55e5bfc
RD
9977}
9978
554f62e9
RD
9979SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9980 return SWIG_Python_InitShadowInstance(args);
9981}
d55e5bfc 9982
554f62e9
RD
9983SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9984 PyObject *resultobj = 0;
9985 wxIconBundle *result = 0 ;
9986
9987 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9988 {
9989 PyThreadState* __tstate = wxPyBeginAllowThreads();
9990 result = (wxIconBundle *)new wxIconBundle();
9991 wxPyEndAllowThreads(__tstate);
9992 if (PyErr_Occurred()) SWIG_fail;
9993 }
9994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9995 return resultobj;
9996fail:
9997 return NULL;
9998}
9999
10000
10001SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj = 0;
10003 wxString *arg1 = 0 ;
10004 long arg2 ;
10005 wxIconBundle *result = 0 ;
10006 bool temp1 = false ;
10007 long val2 ;
10008 int ecode2 = 0 ;
10009 PyObject * obj0 = 0 ;
10010 PyObject * obj1 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "file",(char *) "type", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10016 {
10017 arg1 = wxString_in_helper(obj0);
10018 if (arg1 == NULL) SWIG_fail;
10019 temp1 = true;
10020 }
10021 ecode2 = SWIG_AsVal_long(obj1, &val2);
10022 if (!SWIG_IsOK(ecode2)) {
10023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10024 }
10025 arg2 = static_cast< long >(val2);
10026 {
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10033 {
10034 if (temp1)
10035 delete arg1;
10036 }
10037 return resultobj;
10038fail:
10039 {
10040 if (temp1)
10041 delete arg1;
10042 }
10043 return NULL;
d55e5bfc
RD
10044}
10045
10046
554f62e9
RD
10047SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10048 PyObject *resultobj = 0;
10049 wxIcon *arg1 = 0 ;
10050 wxIconBundle *result = 0 ;
10051 void *argp1 = 0 ;
10052 int res1 = 0 ;
10053 PyObject * obj0 = 0 ;
10054 char * kwnames[] = {
10055 (char *) "icon", NULL
10056 };
10057
10058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10059 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10060 if (!SWIG_IsOK(res1)) {
10061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10062 }
10063 if (!argp1) {
10064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10065 }
10066 arg1 = reinterpret_cast< wxIcon * >(argp1);
10067 {
10068 PyThreadState* __tstate = wxPyBeginAllowThreads();
10069 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10070 wxPyEndAllowThreads(__tstate);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
10073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10074 return resultobj;
10075fail:
10076 return NULL;
d55e5bfc
RD
10077}
10078
10079
554f62e9
RD
10080SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10081 PyObject *resultobj = 0;
10082 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10083 void *argp1 = 0 ;
10084 int res1 = 0 ;
10085 PyObject *swig_obj[1] ;
10086
10087 if (!args) SWIG_fail;
10088 swig_obj[0] = args;
10089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10092 }
10093 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 delete arg1;
d55e5bfc 10097
554f62e9
RD
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 resultobj = SWIG_Py_Void();
10102 return resultobj;
10103fail:
10104 return NULL;
10105}
10106
10107
10108SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj = 0;
10110 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10111 wxIcon *arg2 = 0 ;
10112 void *argp1 = 0 ;
10113 int res1 = 0 ;
10114 void *argp2 = 0 ;
10115 int res2 = 0 ;
10116 PyObject * obj0 = 0 ;
10117 PyObject * obj1 = 0 ;
10118 char * kwnames[] = {
10119 (char *) "self",(char *) "icon", NULL
10120 };
10121
10122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10124 if (!SWIG_IsOK(res1)) {
10125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10126 }
10127 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10129 if (!SWIG_IsOK(res2)) {
10130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10131 }
10132 if (!argp2) {
10133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10134 }
10135 arg2 = reinterpret_cast< wxIcon * >(argp2);
10136 {
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 (arg1)->AddIcon((wxIcon const &)*arg2);
10139 wxPyEndAllowThreads(__tstate);
10140 if (PyErr_Occurred()) SWIG_fail;
10141 }
10142 resultobj = SWIG_Py_Void();
10143 return resultobj;
10144fail:
10145 return NULL;
10146}
10147
10148
10149SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10150 PyObject *resultobj = 0;
10151 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10152 wxString *arg2 = 0 ;
10153 long arg3 ;
10154 void *argp1 = 0 ;
10155 int res1 = 0 ;
10156 bool temp2 = false ;
10157 long val3 ;
10158 int ecode3 = 0 ;
10159 PyObject * obj0 = 0 ;
10160 PyObject * obj1 = 0 ;
10161 PyObject * obj2 = 0 ;
10162 char * kwnames[] = {
10163 (char *) "self",(char *) "file",(char *) "type", NULL
10164 };
10165
10166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10168 if (!SWIG_IsOK(res1)) {
10169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10170 }
10171 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10172 {
10173 arg2 = wxString_in_helper(obj1);
10174 if (arg2 == NULL) SWIG_fail;
10175 temp2 = true;
10176 }
10177 ecode3 = SWIG_AsVal_long(obj2, &val3);
10178 if (!SWIG_IsOK(ecode3)) {
10179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10180 }
10181 arg3 = static_cast< long >(val3);
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 resultobj = SWIG_Py_Void();
10189 {
10190 if (temp2)
10191 delete arg2;
10192 }
10193 return resultobj;
10194fail:
10195 {
10196 if (temp2)
10197 delete arg2;
10198 }
10199 return NULL;
10200}
10201
10202
10203SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj = 0;
10205 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10206 wxSize *arg2 = 0 ;
10207 wxIcon *result = 0 ;
10208 void *argp1 = 0 ;
10209 int res1 = 0 ;
10210 wxSize temp2 ;
10211 PyObject * obj0 = 0 ;
10212 PyObject * obj1 = 0 ;
10213 char * kwnames[] = {
10214 (char *) "self",(char *) "size", NULL
10215 };
10216
10217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10219 if (!SWIG_IsOK(res1)) {
10220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10221 }
10222 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10223 {
10224 arg2 = &temp2;
10225 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10226 }
10227 {
10228 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10229 {
554f62e9
RD
10230 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10231 result = (wxIcon *) &_result_ref;
d55e5bfc 10232 }
554f62e9
RD
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 {
10237 wxIcon* resultptr = new wxIcon(*result);
10238 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10239 }
10240 return resultobj;
10241fail:
10242 return NULL;
10243}
10244
10245
10246SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10247 PyObject *obj;
10248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10249 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10250 return SWIG_Py_Void();
10251}
10252
10253SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10254 return SWIG_Python_InitShadowInstance(args);
10255}
10256
10257SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10258 PyObject *resultobj = 0;
10259 wxString *arg1 = 0 ;
10260 long arg2 ;
10261 int arg3 = (int) 0 ;
10262 int arg4 = (int) 0 ;
10263 wxCursor *result = 0 ;
10264 bool temp1 = false ;
10265 long val2 ;
10266 int ecode2 = 0 ;
10267 int val3 ;
10268 int ecode3 = 0 ;
10269 int val4 ;
10270 int ecode4 = 0 ;
10271 PyObject * obj0 = 0 ;
10272 PyObject * obj1 = 0 ;
10273 PyObject * obj2 = 0 ;
10274 PyObject * obj3 = 0 ;
10275 char * kwnames[] = {
10276 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10277 };
10278
10279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10280 {
10281 arg1 = wxString_in_helper(obj0);
10282 if (arg1 == NULL) SWIG_fail;
10283 temp1 = true;
10284 }
10285 ecode2 = SWIG_AsVal_long(obj1, &val2);
10286 if (!SWIG_IsOK(ecode2)) {
10287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10288 }
10289 arg2 = static_cast< long >(val2);
10290 if (obj2) {
10291 ecode3 = SWIG_AsVal_int(obj2, &val3);
10292 if (!SWIG_IsOK(ecode3)) {
10293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10294 }
10295 arg3 = static_cast< int >(val3);
10296 }
10297 if (obj3) {
10298 ecode4 = SWIG_AsVal_int(obj3, &val4);
10299 if (!SWIG_IsOK(ecode4)) {
10300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10301 }
10302 arg4 = static_cast< int >(val4);
10303 }
10304 {
10305 if (!wxPyCheckForApp()) SWIG_fail;
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10312 {
10313 if (temp1)
10314 delete arg1;
10315 }
10316 return resultobj;
10317fail:
10318 {
10319 if (temp1)
10320 delete arg1;
10321 }
10322 return NULL;
d55e5bfc
RD
10323}
10324
10325
554f62e9
RD
10326SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10327 PyObject *resultobj = 0;
10328 wxCursor *arg1 = (wxCursor *) 0 ;
10329 void *argp1 = 0 ;
10330 int res1 = 0 ;
10331 PyObject *swig_obj[1] ;
10332
10333 if (!args) SWIG_fail;
10334 swig_obj[0] = args;
10335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10336 if (!SWIG_IsOK(res1)) {
10337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10338 }
10339 arg1 = reinterpret_cast< wxCursor * >(argp1);
10340 {
10341 PyThreadState* __tstate = wxPyBeginAllowThreads();
10342 delete arg1;
d55e5bfc 10343
554f62e9
RD
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 resultobj = SWIG_Py_Void();
10348 return resultobj;
10349fail:
10350 return NULL;
10351}
10352
10353
10354SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10355 PyObject *resultobj = 0;
10356 int arg1 ;
10357 wxCursor *result = 0 ;
10358 int val1 ;
10359 int ecode1 = 0 ;
10360 PyObject * obj0 = 0 ;
10361 char * kwnames[] = {
10362 (char *) "id", NULL
10363 };
10364
10365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10366 ecode1 = SWIG_AsVal_int(obj0, &val1);
10367 if (!SWIG_IsOK(ecode1)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10369 }
10370 arg1 = static_cast< int >(val1);
10371 {
10372 if (!wxPyCheckForApp()) SWIG_fail;
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (wxCursor *)new wxCursor(arg1);
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10379 return resultobj;
10380fail:
10381 return NULL;
10382}
10383
10384
10385SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10386 PyObject *resultobj = 0;
10387 wxImage *arg1 = 0 ;
10388 wxCursor *result = 0 ;
10389 void *argp1 = 0 ;
10390 int res1 = 0 ;
10391 PyObject * obj0 = 0 ;
10392 char * kwnames[] = {
10393 (char *) "image", NULL
10394 };
10395
10396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10397 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10398 if (!SWIG_IsOK(res1)) {
10399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10400 }
10401 if (!argp1) {
10402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10403 }
10404 arg1 = reinterpret_cast< wxImage * >(argp1);
10405 {
10406 if (!wxPyCheckForApp()) SWIG_fail;
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10413 return resultobj;
10414fail:
10415 return NULL;
d55e5bfc
RD
10416}
10417
10418
554f62e9
RD
10419SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 PyObject *resultobj = 0;
10421 wxCursor *arg1 = (wxCursor *) 0 ;
10422 long result;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 PyObject *swig_obj[1] ;
10426
10427 if (!args) SWIG_fail;
10428 swig_obj[0] = args;
10429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10430 if (!SWIG_IsOK(res1)) {
10431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10432 }
10433 arg1 = reinterpret_cast< wxCursor * >(argp1);
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (long)(arg1)->GetHandle();
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_From_long(static_cast< long >(result));
10441 return resultobj;
10442fail:
10443 return NULL;
10444}
10445
10446
10447SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10448 PyObject *resultobj = 0;
10449 wxCursor *arg1 = (wxCursor *) 0 ;
10450 long arg2 ;
10451 void *argp1 = 0 ;
10452 int res1 = 0 ;
10453 long val2 ;
10454 int ecode2 = 0 ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 char * kwnames[] = {
10458 (char *) "self",(char *) "handle", NULL
10459 };
10460
10461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10463 if (!SWIG_IsOK(res1)) {
10464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10465 }
10466 arg1 = reinterpret_cast< wxCursor * >(argp1);
10467 ecode2 = SWIG_AsVal_long(obj1, &val2);
10468 if (!SWIG_IsOK(ecode2)) {
10469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10470 }
10471 arg2 = static_cast< long >(val2);
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 wxCursor_SetHandle(arg1,arg2);
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 resultobj = SWIG_Py_Void();
10479 return resultobj;
10480fail:
10481 return NULL;
d55e5bfc
RD
10482}
10483
10484
b39fe951 10485SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10486 PyObject *resultobj = 0;
10487 wxCursor *arg1 = (wxCursor *) 0 ;
10488 bool result;
10489 void *argp1 = 0 ;
10490 int res1 = 0 ;
10491 PyObject *swig_obj[1] ;
10492
10493 if (!args) SWIG_fail;
10494 swig_obj[0] = args;
10495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10496 if (!SWIG_IsOK(res1)) {
b39fe951 10497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10498 }
10499 arg1 = reinterpret_cast< wxCursor * >(argp1);
10500 {
10501 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10502 result = (bool)(arg1)->IsOk();
554f62e9
RD
10503 wxPyEndAllowThreads(__tstate);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 }
10506 {
10507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10508 }
10509 return resultobj;
10510fail:
10511 return NULL;
d55e5bfc
RD
10512}
10513
10514
554f62e9
RD
10515SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10516 PyObject *resultobj = 0;
10517 wxCursor *arg1 = (wxCursor *) 0 ;
10518 int result;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject *swig_obj[1] ;
10522
10523 if (!args) SWIG_fail;
10524 swig_obj[0] = args;
10525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10528 }
10529 arg1 = reinterpret_cast< wxCursor * >(argp1);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (int)(arg1)->GetWidth();
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_From_int(static_cast< int >(result));
10537 return resultobj;
10538fail:
10539 return NULL;
d55e5bfc
RD
10540}
10541
10542
554f62e9
RD
10543SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10544 PyObject *resultobj = 0;
10545 wxCursor *arg1 = (wxCursor *) 0 ;
10546 int result;
10547 void *argp1 = 0 ;
10548 int res1 = 0 ;
10549 PyObject *swig_obj[1] ;
10550
10551 if (!args) SWIG_fail;
10552 swig_obj[0] = args;
10553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10554 if (!SWIG_IsOK(res1)) {
10555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10556 }
10557 arg1 = reinterpret_cast< wxCursor * >(argp1);
10558 {
10559 PyThreadState* __tstate = wxPyBeginAllowThreads();
10560 result = (int)(arg1)->GetHeight();
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 resultobj = SWIG_From_int(static_cast< int >(result));
10565 return resultobj;
10566fail:
10567 return NULL;
d55e5bfc
RD
10568}
10569
10570
554f62e9
RD
10571SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10572 PyObject *resultobj = 0;
10573 wxCursor *arg1 = (wxCursor *) 0 ;
10574 int result;
10575 void *argp1 = 0 ;
10576 int res1 = 0 ;
10577 PyObject *swig_obj[1] ;
10578
10579 if (!args) SWIG_fail;
10580 swig_obj[0] = args;
10581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10582 if (!SWIG_IsOK(res1)) {
10583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10584 }
10585 arg1 = reinterpret_cast< wxCursor * >(argp1);
10586 {
10587 PyThreadState* __tstate = wxPyBeginAllowThreads();
10588 result = (int)(arg1)->GetDepth();
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 resultobj = SWIG_From_int(static_cast< int >(result));
10593 return resultobj;
10594fail:
10595 return NULL;
10596}
10597
10598
10599SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj = 0;
10601 wxCursor *arg1 = (wxCursor *) 0 ;
10602 int arg2 ;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 int val2 ;
10606 int ecode2 = 0 ;
10607 PyObject * obj0 = 0 ;
10608 PyObject * obj1 = 0 ;
10609 char * kwnames[] = {
10610 (char *) "self",(char *) "w", NULL
10611 };
10612
10613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10617 }
10618 arg1 = reinterpret_cast< wxCursor * >(argp1);
10619 ecode2 = SWIG_AsVal_int(obj1, &val2);
10620 if (!SWIG_IsOK(ecode2)) {
10621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10622 }
10623 arg2 = static_cast< int >(val2);
10624 {
10625 PyThreadState* __tstate = wxPyBeginAllowThreads();
10626 (arg1)->SetWidth(arg2);
10627 wxPyEndAllowThreads(__tstate);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 }
10630 resultobj = SWIG_Py_Void();
10631 return resultobj;
10632fail:
10633 return NULL;
10634}
10635
10636
10637SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10638 PyObject *resultobj = 0;
10639 wxCursor *arg1 = (wxCursor *) 0 ;
10640 int arg2 ;
10641 void *argp1 = 0 ;
10642 int res1 = 0 ;
10643 int val2 ;
10644 int ecode2 = 0 ;
10645 PyObject * obj0 = 0 ;
10646 PyObject * obj1 = 0 ;
10647 char * kwnames[] = {
10648 (char *) "self",(char *) "h", NULL
10649 };
10650
10651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10653 if (!SWIG_IsOK(res1)) {
10654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10655 }
10656 arg1 = reinterpret_cast< wxCursor * >(argp1);
10657 ecode2 = SWIG_AsVal_int(obj1, &val2);
10658 if (!SWIG_IsOK(ecode2)) {
10659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10660 }
10661 arg2 = static_cast< int >(val2);
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 (arg1)->SetHeight(arg2);
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 resultobj = SWIG_Py_Void();
10669 return resultobj;
10670fail:
10671 return NULL;
10672}
10673
10674
10675SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj = 0;
10677 wxCursor *arg1 = (wxCursor *) 0 ;
10678 int arg2 ;
10679 void *argp1 = 0 ;
10680 int res1 = 0 ;
10681 int val2 ;
10682 int ecode2 = 0 ;
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
10685 char * kwnames[] = {
10686 (char *) "self",(char *) "d", NULL
10687 };
10688
10689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10691 if (!SWIG_IsOK(res1)) {
10692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10693 }
10694 arg1 = reinterpret_cast< wxCursor * >(argp1);
10695 ecode2 = SWIG_AsVal_int(obj1, &val2);
10696 if (!SWIG_IsOK(ecode2)) {
10697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10698 }
10699 arg2 = static_cast< int >(val2);
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 (arg1)->SetDepth(arg2);
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 resultobj = SWIG_Py_Void();
10707 return resultobj;
10708fail:
10709 return NULL;
10710}
10711
10712
10713SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10714 PyObject *resultobj = 0;
10715 wxCursor *arg1 = (wxCursor *) 0 ;
10716 wxSize *arg2 = 0 ;
10717 void *argp1 = 0 ;
10718 int res1 = 0 ;
10719 wxSize temp2 ;
10720 PyObject * obj0 = 0 ;
10721 PyObject * obj1 = 0 ;
10722 char * kwnames[] = {
10723 (char *) "self",(char *) "size", NULL
10724 };
10725
10726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10728 if (!SWIG_IsOK(res1)) {
10729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10730 }
10731 arg1 = reinterpret_cast< wxCursor * >(argp1);
10732 {
10733 arg2 = &temp2;
10734 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10735 }
10736 {
10737 PyThreadState* __tstate = wxPyBeginAllowThreads();
10738 (arg1)->SetSize((wxSize const &)*arg2);
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 resultobj = SWIG_Py_Void();
10743 return resultobj;
10744fail:
10745 return NULL;
10746}
10747
10748
10749SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10750 PyObject *obj;
10751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10752 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10753 return SWIG_Py_Void();
10754}
10755
10756SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10757 return SWIG_Python_InitShadowInstance(args);
10758}
10759
10760SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10761 PyObject *resultobj = 0;
10762 int arg1 = (int) 0 ;
10763 int arg2 = (int) 0 ;
10764 int arg3 = (int) 0 ;
10765 int arg4 = (int) 0 ;
10766 wxRegion *result = 0 ;
10767 int val1 ;
10768 int ecode1 = 0 ;
10769 int val2 ;
10770 int ecode2 = 0 ;
10771 int val3 ;
10772 int ecode3 = 0 ;
10773 int val4 ;
10774 int ecode4 = 0 ;
10775 PyObject * obj0 = 0 ;
10776 PyObject * obj1 = 0 ;
10777 PyObject * obj2 = 0 ;
10778 PyObject * obj3 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10784 if (obj0) {
10785 ecode1 = SWIG_AsVal_int(obj0, &val1);
10786 if (!SWIG_IsOK(ecode1)) {
10787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10788 }
10789 arg1 = static_cast< int >(val1);
10790 }
10791 if (obj1) {
10792 ecode2 = SWIG_AsVal_int(obj1, &val2);
10793 if (!SWIG_IsOK(ecode2)) {
10794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10795 }
10796 arg2 = static_cast< int >(val2);
10797 }
10798 if (obj2) {
10799 ecode3 = SWIG_AsVal_int(obj2, &val3);
10800 if (!SWIG_IsOK(ecode3)) {
10801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10802 }
10803 arg3 = static_cast< int >(val3);
10804 }
10805 if (obj3) {
10806 ecode4 = SWIG_AsVal_int(obj3, &val4);
10807 if (!SWIG_IsOK(ecode4)) {
10808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10809 }
10810 arg4 = static_cast< int >(val4);
10811 }
10812 {
10813 if (!wxPyCheckForApp()) SWIG_fail;
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10820 return resultobj;
10821fail:
10822 return NULL;
10823}
10824
10825
10826SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj = 0;
10828 wxBitmap *arg1 = 0 ;
10829 wxRegion *result = 0 ;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 PyObject * obj0 = 0 ;
10833 char * kwnames[] = {
10834 (char *) "bmp", NULL
10835 };
10836
10837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10838 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10839 if (!SWIG_IsOK(res1)) {
10840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10841 }
10842 if (!argp1) {
10843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10844 }
10845 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10846 {
10847 if (!wxPyCheckForApp()) SWIG_fail;
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10850 wxPyEndAllowThreads(__tstate);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 }
10853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10854 return resultobj;
10855fail:
10856 return NULL;
10857}
10858
10859
10860SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10861 PyObject *resultobj = 0;
10862 wxBitmap *arg1 = 0 ;
10863 wxColour *arg2 = 0 ;
10864 int arg3 = (int) 0 ;
10865 wxRegion *result = 0 ;
10866 void *argp1 = 0 ;
10867 int res1 = 0 ;
10868 wxColour temp2 ;
10869 int val3 ;
10870 int ecode3 = 0 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 PyObject * obj2 = 0 ;
10874 char * kwnames[] = {
10875 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10876 };
10877
10878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10879 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10880 if (!SWIG_IsOK(res1)) {
10881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10882 }
10883 if (!argp1) {
10884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10885 }
10886 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10887 {
10888 arg2 = &temp2;
10889 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10890 }
10891 if (obj2) {
10892 ecode3 = SWIG_AsVal_int(obj2, &val3);
10893 if (!SWIG_IsOK(ecode3)) {
10894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10895 }
10896 arg3 = static_cast< int >(val3);
10897 }
10898 {
10899 if (!wxPyCheckForApp()) SWIG_fail;
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10906 return resultobj;
10907fail:
10908 return NULL;
10909}
10910
10911
10912SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj = 0;
10914 int arg1 ;
10915 wxPoint *arg2 = (wxPoint *) 0 ;
10916 int arg3 = (int) wxWINDING_RULE ;
10917 wxRegion *result = 0 ;
10918 int val3 ;
10919 int ecode3 = 0 ;
10920 PyObject * obj0 = 0 ;
10921 PyObject * obj1 = 0 ;
10922 char * kwnames[] = {
10923 (char *) "points",(char *) "fillStyle", NULL
10924 };
10925
10926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10927 {
10928 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10929 if (arg2 == NULL) SWIG_fail;
10930 }
10931 if (obj1) {
10932 ecode3 = SWIG_AsVal_int(obj1, &val3);
10933 if (!SWIG_IsOK(ecode3)) {
10934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10935 }
10936 arg3 = static_cast< int >(val3);
10937 }
10938 {
10939 if (!wxPyCheckForApp()) SWIG_fail;
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10942 wxPyEndAllowThreads(__tstate);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10946 {
10947 if (arg2) delete [] arg2;
10948 }
10949 return resultobj;
10950fail:
10951 {
10952 if (arg2) delete [] arg2;
10953 }
10954 return NULL;
d55e5bfc
RD
10955}
10956
10957
554f62e9
RD
10958SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10959 PyObject *resultobj = 0;
10960 wxRegion *arg1 = (wxRegion *) 0 ;
10961 void *argp1 = 0 ;
10962 int res1 = 0 ;
10963 PyObject *swig_obj[1] ;
10964
10965 if (!args) SWIG_fail;
10966 swig_obj[0] = args;
10967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10968 if (!SWIG_IsOK(res1)) {
10969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10970 }
10971 arg1 = reinterpret_cast< wxRegion * >(argp1);
10972 {
10973 PyThreadState* __tstate = wxPyBeginAllowThreads();
10974 delete arg1;
d55e5bfc 10975
554f62e9
RD
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 resultobj = SWIG_Py_Void();
10980 return resultobj;
10981fail:
10982 return NULL;
d55e5bfc
RD
10983}
10984
10985
554f62e9
RD
10986SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10987 PyObject *resultobj = 0;
10988 wxRegion *arg1 = (wxRegion *) 0 ;
10989 void *argp1 = 0 ;
10990 int res1 = 0 ;
10991 PyObject *swig_obj[1] ;
10992
10993 if (!args) SWIG_fail;
10994 swig_obj[0] = args;
10995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10998 }
10999 arg1 = reinterpret_cast< wxRegion * >(argp1);
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 (arg1)->Clear();
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 resultobj = SWIG_Py_Void();
11007 return resultobj;
11008fail:
11009 return NULL;
11010}
11011
11012
11013SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj = 0;
11015 wxRegion *arg1 = (wxRegion *) 0 ;
11016 int arg2 ;
11017 int arg3 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 int val2 ;
11022 int ecode2 = 0 ;
11023 int val3 ;
11024 int ecode3 = 0 ;
11025 PyObject * obj0 = 0 ;
11026 PyObject * obj1 = 0 ;
11027 PyObject * obj2 = 0 ;
11028 char * kwnames[] = {
11029 (char *) "self",(char *) "x",(char *) "y", NULL
11030 };
11031
11032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11036 }
11037 arg1 = reinterpret_cast< wxRegion * >(argp1);
11038 ecode2 = SWIG_AsVal_int(obj1, &val2);
11039 if (!SWIG_IsOK(ecode2)) {
11040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11041 }
11042 arg2 = static_cast< int >(val2);
11043 ecode3 = SWIG_AsVal_int(obj2, &val3);
11044 if (!SWIG_IsOK(ecode3)) {
11045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11046 }
11047 arg3 = static_cast< int >(val3);
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 result = (bool)(arg1)->Offset(arg2,arg3);
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058fail:
11059 return NULL;
11060}
11061
11062
11063SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11064 PyObject *resultobj = 0;
11065 wxRegion *arg1 = (wxRegion *) 0 ;
11066 int arg2 ;
11067 int arg3 ;
11068 wxRegionContain result;
11069 void *argp1 = 0 ;
11070 int res1 = 0 ;
11071 int val2 ;
11072 int ecode2 = 0 ;
11073 int val3 ;
11074 int ecode3 = 0 ;
11075 PyObject * obj0 = 0 ;
11076 PyObject * obj1 = 0 ;
11077 PyObject * obj2 = 0 ;
11078 char * kwnames[] = {
11079 (char *) "self",(char *) "x",(char *) "y", NULL
11080 };
11081
11082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11084 if (!SWIG_IsOK(res1)) {
11085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11086 }
11087 arg1 = reinterpret_cast< wxRegion * >(argp1);
11088 ecode2 = SWIG_AsVal_int(obj1, &val2);
11089 if (!SWIG_IsOK(ecode2)) {
11090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11091 }
11092 arg2 = static_cast< int >(val2);
11093 ecode3 = SWIG_AsVal_int(obj2, &val3);
11094 if (!SWIG_IsOK(ecode3)) {
11095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11096 }
11097 arg3 = static_cast< int >(val3);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 resultobj = SWIG_From_int(static_cast< int >(result));
11105 return resultobj;
11106fail:
11107 return NULL;
11108}
11109
11110
11111SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj = 0;
11113 wxRegion *arg1 = (wxRegion *) 0 ;
11114 wxPoint *arg2 = 0 ;
11115 wxRegionContain result;
11116 void *argp1 = 0 ;
11117 int res1 = 0 ;
11118 wxPoint temp2 ;
11119 PyObject * obj0 = 0 ;
11120 PyObject * obj1 = 0 ;
11121 char * kwnames[] = {
11122 (char *) "self",(char *) "pt", NULL
11123 };
11124
11125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11129 }
11130 arg1 = reinterpret_cast< wxRegion * >(argp1);
11131 {
11132 arg2 = &temp2;
11133 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11134 }
11135 {
11136 PyThreadState* __tstate = wxPyBeginAllowThreads();
11137 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 resultobj = SWIG_From_int(static_cast< int >(result));
11142 return resultobj;
11143fail:
11144 return NULL;
11145}
11146
11147
11148SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11149 PyObject *resultobj = 0;
11150 wxRegion *arg1 = (wxRegion *) 0 ;
11151 wxRect *arg2 = 0 ;
11152 wxRegionContain result;
11153 void *argp1 = 0 ;
11154 int res1 = 0 ;
11155 wxRect temp2 ;
11156 PyObject * obj0 = 0 ;
11157 PyObject * obj1 = 0 ;
11158 char * kwnames[] = {
11159 (char *) "self",(char *) "rect", NULL
11160 };
11161
11162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRegion * >(argp1);
11168 {
11169 arg2 = &temp2;
11170 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11171 }
11172 {
11173 PyThreadState* __tstate = wxPyBeginAllowThreads();
11174 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 resultobj = SWIG_From_int(static_cast< int >(result));
11179 return resultobj;
11180fail:
11181 return NULL;
11182}
11183
11184
11185SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj = 0;
11187 wxRegion *arg1 = (wxRegion *) 0 ;
11188 int arg2 ;
11189 int arg3 ;
11190 int arg4 ;
11191 int arg5 ;
11192 wxRegionContain result;
11193 void *argp1 = 0 ;
11194 int res1 = 0 ;
11195 int val2 ;
11196 int ecode2 = 0 ;
11197 int val3 ;
11198 int ecode3 = 0 ;
11199 int val4 ;
11200 int ecode4 = 0 ;
11201 int val5 ;
11202 int ecode5 = 0 ;
11203 PyObject * obj0 = 0 ;
11204 PyObject * obj1 = 0 ;
11205 PyObject * obj2 = 0 ;
11206 PyObject * obj3 = 0 ;
11207 PyObject * obj4 = 0 ;
11208 char * kwnames[] = {
11209 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11210 };
11211
11212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11216 }
11217 arg1 = reinterpret_cast< wxRegion * >(argp1);
11218 ecode2 = SWIG_AsVal_int(obj1, &val2);
11219 if (!SWIG_IsOK(ecode2)) {
11220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11221 }
11222 arg2 = static_cast< int >(val2);
11223 ecode3 = SWIG_AsVal_int(obj2, &val3);
11224 if (!SWIG_IsOK(ecode3)) {
11225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11226 }
11227 arg3 = static_cast< int >(val3);
11228 ecode4 = SWIG_AsVal_int(obj3, &val4);
11229 if (!SWIG_IsOK(ecode4)) {
11230 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11231 }
11232 arg4 = static_cast< int >(val4);
11233 ecode5 = SWIG_AsVal_int(obj4, &val5);
11234 if (!SWIG_IsOK(ecode5)) {
11235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11236 }
11237 arg5 = static_cast< int >(val5);
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11241 wxPyEndAllowThreads(__tstate);
11242 if (PyErr_Occurred()) SWIG_fail;
11243 }
11244 resultobj = SWIG_From_int(static_cast< int >(result));
11245 return resultobj;
11246fail:
11247 return NULL;
d55e5bfc
RD
11248}
11249
11250
554f62e9
RD
11251SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11252 PyObject *resultobj = 0;
11253 wxRegion *arg1 = (wxRegion *) 0 ;
11254 wxRect result;
11255 void *argp1 = 0 ;
11256 int res1 = 0 ;
11257 PyObject *swig_obj[1] ;
11258
11259 if (!args) SWIG_fail;
11260 swig_obj[0] = args;
11261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11262 if (!SWIG_IsOK(res1)) {
11263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11264 }
11265 arg1 = reinterpret_cast< wxRegion * >(argp1);
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (arg1)->GetBox();
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11273 return resultobj;
11274fail:
11275 return NULL;
11276}
11277
11278
11279SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj = 0;
11281 wxRegion *arg1 = (wxRegion *) 0 ;
11282 int arg2 ;
11283 int arg3 ;
11284 int arg4 ;
11285 int arg5 ;
11286 bool result;
11287 void *argp1 = 0 ;
11288 int res1 = 0 ;
11289 int val2 ;
11290 int ecode2 = 0 ;
11291 int val3 ;
11292 int ecode3 = 0 ;
11293 int val4 ;
11294 int ecode4 = 0 ;
11295 int val5 ;
11296 int ecode5 = 0 ;
11297 PyObject * obj0 = 0 ;
11298 PyObject * obj1 = 0 ;
11299 PyObject * obj2 = 0 ;
11300 PyObject * obj3 = 0 ;
11301 PyObject * obj4 = 0 ;
11302 char * kwnames[] = {
11303 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11304 };
11305
11306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11308 if (!SWIG_IsOK(res1)) {
11309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11310 }
11311 arg1 = reinterpret_cast< wxRegion * >(argp1);
11312 ecode2 = SWIG_AsVal_int(obj1, &val2);
11313 if (!SWIG_IsOK(ecode2)) {
11314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11315 }
11316 arg2 = static_cast< int >(val2);
11317 ecode3 = SWIG_AsVal_int(obj2, &val3);
11318 if (!SWIG_IsOK(ecode3)) {
11319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11320 }
11321 arg3 = static_cast< int >(val3);
11322 ecode4 = SWIG_AsVal_int(obj3, &val4);
11323 if (!SWIG_IsOK(ecode4)) {
11324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11325 }
11326 arg4 = static_cast< int >(val4);
11327 ecode5 = SWIG_AsVal_int(obj4, &val5);
11328 if (!SWIG_IsOK(ecode5)) {
11329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11330 }
11331 arg5 = static_cast< int >(val5);
11332 {
11333 PyThreadState* __tstate = wxPyBeginAllowThreads();
11334 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 {
11339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11340 }
11341 return resultobj;
11342fail:
11343 return NULL;
11344}
11345
11346
11347SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11348 PyObject *resultobj = 0;
11349 wxRegion *arg1 = (wxRegion *) 0 ;
11350 wxRect *arg2 = 0 ;
11351 bool result;
11352 void *argp1 = 0 ;
11353 int res1 = 0 ;
11354 wxRect temp2 ;
11355 PyObject * obj0 = 0 ;
11356 PyObject * obj1 = 0 ;
11357 char * kwnames[] = {
11358 (char *) "self",(char *) "rect", NULL
11359 };
11360
11361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11363 if (!SWIG_IsOK(res1)) {
11364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11365 }
11366 arg1 = reinterpret_cast< wxRegion * >(argp1);
11367 {
11368 arg2 = &temp2;
11369 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11370 }
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 {
11378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11379 }
11380 return resultobj;
11381fail:
11382 return NULL;
11383}
11384
11385
11386SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11387 PyObject *resultobj = 0;
11388 wxRegion *arg1 = (wxRegion *) 0 ;
11389 wxRegion *arg2 = 0 ;
11390 bool result;
11391 void *argp1 = 0 ;
11392 int res1 = 0 ;
11393 void *argp2 = 0 ;
11394 int res2 = 0 ;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 char * kwnames[] = {
11398 (char *) "self",(char *) "region", NULL
11399 };
11400
11401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11403 if (!SWIG_IsOK(res1)) {
11404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11405 }
11406 arg1 = reinterpret_cast< wxRegion * >(argp1);
11407 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11408 if (!SWIG_IsOK(res2)) {
11409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11410 }
11411 if (!argp2) {
11412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11413 }
11414 arg2 = reinterpret_cast< wxRegion * >(argp2);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 {
11422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11423 }
11424 return resultobj;
11425fail:
11426 return NULL;
d55e5bfc
RD
11427}
11428
11429
554f62e9
RD
11430SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11431 PyObject *resultobj = 0;
11432 wxRegion *arg1 = (wxRegion *) 0 ;
11433 bool result;
11434 void *argp1 = 0 ;
11435 int res1 = 0 ;
11436 PyObject *swig_obj[1] ;
11437
11438 if (!args) SWIG_fail;
11439 swig_obj[0] = args;
11440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11443 }
11444 arg1 = reinterpret_cast< wxRegion * >(argp1);
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (bool)(arg1)->IsEmpty();
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 {
11452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11453 }
11454 return resultobj;
11455fail:
11456 return NULL;
11457}
11458
11459
f5263701
RD
11460SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj = 0;
11462 wxRegion *arg1 = (wxRegion *) 0 ;
11463 wxRegion *arg2 = 0 ;
11464 bool result;
11465 void *argp1 = 0 ;
11466 int res1 = 0 ;
11467 void *argp2 = 0 ;
11468 int res2 = 0 ;
11469 PyObject * obj0 = 0 ;
11470 PyObject * obj1 = 0 ;
11471 char * kwnames[] = {
11472 (char *) "self",(char *) "region", NULL
11473 };
11474
11475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11477 if (!SWIG_IsOK(res1)) {
11478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11479 }
11480 arg1 = reinterpret_cast< wxRegion * >(argp1);
11481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11482 if (!SWIG_IsOK(res2)) {
11483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11484 }
11485 if (!argp2) {
11486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11487 }
11488 arg2 = reinterpret_cast< wxRegion * >(argp2);
11489 {
11490 PyThreadState* __tstate = wxPyBeginAllowThreads();
11491 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 {
11496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11497 }
11498 return resultobj;
11499fail:
11500 return NULL;
11501}
11502
11503
554f62e9
RD
11504SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj = 0;
11506 wxRegion *arg1 = (wxRegion *) 0 ;
11507 int arg2 ;
11508 int arg3 ;
11509 int arg4 ;
11510 int arg5 ;
11511 bool result;
11512 void *argp1 = 0 ;
11513 int res1 = 0 ;
11514 int val2 ;
11515 int ecode2 = 0 ;
11516 int val3 ;
11517 int ecode3 = 0 ;
11518 int val4 ;
11519 int ecode4 = 0 ;
11520 int val5 ;
11521 int ecode5 = 0 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11524 PyObject * obj2 = 0 ;
11525 PyObject * obj3 = 0 ;
11526 PyObject * obj4 = 0 ;
11527 char * kwnames[] = {
11528 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11529 };
11530
11531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11533 if (!SWIG_IsOK(res1)) {
11534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11535 }
11536 arg1 = reinterpret_cast< wxRegion * >(argp1);
11537 ecode2 = SWIG_AsVal_int(obj1, &val2);
11538 if (!SWIG_IsOK(ecode2)) {
11539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11540 }
11541 arg2 = static_cast< int >(val2);
11542 ecode3 = SWIG_AsVal_int(obj2, &val3);
11543 if (!SWIG_IsOK(ecode3)) {
11544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11545 }
11546 arg3 = static_cast< int >(val3);
11547 ecode4 = SWIG_AsVal_int(obj3, &val4);
11548 if (!SWIG_IsOK(ecode4)) {
11549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11550 }
11551 arg4 = static_cast< int >(val4);
11552 ecode5 = SWIG_AsVal_int(obj4, &val5);
11553 if (!SWIG_IsOK(ecode5)) {
11554 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11555 }
11556 arg5 = static_cast< int >(val5);
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11560 wxPyEndAllowThreads(__tstate);
11561 if (PyErr_Occurred()) SWIG_fail;
11562 }
11563 {
11564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11565 }
11566 return resultobj;
11567fail:
11568 return NULL;
11569}
11570
11571
11572SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj = 0;
11574 wxRegion *arg1 = (wxRegion *) 0 ;
11575 wxRect *arg2 = 0 ;
11576 bool result;
11577 void *argp1 = 0 ;
11578 int res1 = 0 ;
11579 wxRect temp2 ;
11580 PyObject * obj0 = 0 ;
11581 PyObject * obj1 = 0 ;
11582 char * kwnames[] = {
11583 (char *) "self",(char *) "rect", NULL
11584 };
11585
11586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11588 if (!SWIG_IsOK(res1)) {
11589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11590 }
11591 arg1 = reinterpret_cast< wxRegion * >(argp1);
11592 {
11593 arg2 = &temp2;
11594 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11595 }
11596 {
11597 PyThreadState* __tstate = wxPyBeginAllowThreads();
11598 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11599 wxPyEndAllowThreads(__tstate);
11600 if (PyErr_Occurred()) SWIG_fail;
11601 }
11602 {
11603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11604 }
11605 return resultobj;
11606fail:
11607 return NULL;
11608}
11609
11610
11611SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj = 0;
11613 wxRegion *arg1 = (wxRegion *) 0 ;
11614 wxRegion *arg2 = 0 ;
11615 bool result;
11616 void *argp1 = 0 ;
11617 int res1 = 0 ;
11618 void *argp2 = 0 ;
11619 int res2 = 0 ;
11620 PyObject * obj0 = 0 ;
11621 PyObject * obj1 = 0 ;
11622 char * kwnames[] = {
11623 (char *) "self",(char *) "region", NULL
11624 };
11625
11626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11628 if (!SWIG_IsOK(res1)) {
11629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11630 }
11631 arg1 = reinterpret_cast< wxRegion * >(argp1);
11632 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11633 if (!SWIG_IsOK(res2)) {
11634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11635 }
11636 if (!argp2) {
11637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11638 }
11639 arg2 = reinterpret_cast< wxRegion * >(argp2);
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 {
11647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11648 }
11649 return resultobj;
11650fail:
11651 return NULL;
11652}
11653
11654
11655SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj = 0;
11657 wxRegion *arg1 = (wxRegion *) 0 ;
11658 int arg2 ;
11659 int arg3 ;
11660 int arg4 ;
11661 int arg5 ;
11662 bool result;
11663 void *argp1 = 0 ;
11664 int res1 = 0 ;
11665 int val2 ;
11666 int ecode2 = 0 ;
11667 int val3 ;
11668 int ecode3 = 0 ;
11669 int val4 ;
11670 int ecode4 = 0 ;
11671 int val5 ;
11672 int ecode5 = 0 ;
11673 PyObject * obj0 = 0 ;
11674 PyObject * obj1 = 0 ;
11675 PyObject * obj2 = 0 ;
11676 PyObject * obj3 = 0 ;
11677 PyObject * obj4 = 0 ;
11678 char * kwnames[] = {
11679 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11680 };
11681
11682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11684 if (!SWIG_IsOK(res1)) {
11685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11686 }
11687 arg1 = reinterpret_cast< wxRegion * >(argp1);
11688 ecode2 = SWIG_AsVal_int(obj1, &val2);
11689 if (!SWIG_IsOK(ecode2)) {
11690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11691 }
11692 arg2 = static_cast< int >(val2);
11693 ecode3 = SWIG_AsVal_int(obj2, &val3);
11694 if (!SWIG_IsOK(ecode3)) {
11695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11696 }
11697 arg3 = static_cast< int >(val3);
11698 ecode4 = SWIG_AsVal_int(obj3, &val4);
11699 if (!SWIG_IsOK(ecode4)) {
11700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11701 }
11702 arg4 = static_cast< int >(val4);
11703 ecode5 = SWIG_AsVal_int(obj4, &val5);
11704 if (!SWIG_IsOK(ecode5)) {
11705 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11706 }
11707 arg5 = static_cast< int >(val5);
11708 {
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 {
11715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11716 }
11717 return resultobj;
11718fail:
11719 return NULL;
11720}
11721
11722
11723SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11724 PyObject *resultobj = 0;
11725 wxRegion *arg1 = (wxRegion *) 0 ;
11726 wxRect *arg2 = 0 ;
11727 bool result;
11728 void *argp1 = 0 ;
11729 int res1 = 0 ;
11730 wxRect temp2 ;
11731 PyObject * obj0 = 0 ;
11732 PyObject * obj1 = 0 ;
11733 char * kwnames[] = {
11734 (char *) "self",(char *) "rect", NULL
11735 };
11736
11737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11739 if (!SWIG_IsOK(res1)) {
11740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11741 }
11742 arg1 = reinterpret_cast< wxRegion * >(argp1);
11743 {
11744 arg2 = &temp2;
11745 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11746 }
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11750 wxPyEndAllowThreads(__tstate);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 }
11753 {
11754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11755 }
11756 return resultobj;
11757fail:
11758 return NULL;
11759}
11760
11761
11762SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11763 PyObject *resultobj = 0;
11764 wxRegion *arg1 = (wxRegion *) 0 ;
11765 wxRegion *arg2 = 0 ;
11766 bool result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 void *argp2 = 0 ;
11770 int res2 = 0 ;
11771 PyObject * obj0 = 0 ;
11772 PyObject * obj1 = 0 ;
11773 char * kwnames[] = {
11774 (char *) "self",(char *) "region", NULL
11775 };
11776
11777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11779 if (!SWIG_IsOK(res1)) {
11780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11781 }
11782 arg1 = reinterpret_cast< wxRegion * >(argp1);
11783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11784 if (!SWIG_IsOK(res2)) {
11785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11786 }
11787 if (!argp2) {
11788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11789 }
11790 arg2 = reinterpret_cast< wxRegion * >(argp2);
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11794 wxPyEndAllowThreads(__tstate);
11795 if (PyErr_Occurred()) SWIG_fail;
11796 }
11797 {
11798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11799 }
11800 return resultobj;
11801fail:
11802 return NULL;
11803}
11804
11805
11806SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11807 PyObject *resultobj = 0;
11808 wxRegion *arg1 = (wxRegion *) 0 ;
11809 int arg2 ;
11810 int arg3 ;
11811 int arg4 ;
11812 int arg5 ;
11813 bool result;
11814 void *argp1 = 0 ;
11815 int res1 = 0 ;
11816 int val2 ;
11817 int ecode2 = 0 ;
11818 int val3 ;
11819 int ecode3 = 0 ;
11820 int val4 ;
11821 int ecode4 = 0 ;
11822 int val5 ;
11823 int ecode5 = 0 ;
11824 PyObject * obj0 = 0 ;
11825 PyObject * obj1 = 0 ;
11826 PyObject * obj2 = 0 ;
11827 PyObject * obj3 = 0 ;
11828 PyObject * obj4 = 0 ;
11829 char * kwnames[] = {
11830 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11831 };
11832
11833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11835 if (!SWIG_IsOK(res1)) {
11836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11837 }
11838 arg1 = reinterpret_cast< wxRegion * >(argp1);
11839 ecode2 = SWIG_AsVal_int(obj1, &val2);
11840 if (!SWIG_IsOK(ecode2)) {
11841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11842 }
11843 arg2 = static_cast< int >(val2);
11844 ecode3 = SWIG_AsVal_int(obj2, &val3);
11845 if (!SWIG_IsOK(ecode3)) {
11846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11847 }
11848 arg3 = static_cast< int >(val3);
11849 ecode4 = SWIG_AsVal_int(obj3, &val4);
11850 if (!SWIG_IsOK(ecode4)) {
11851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11852 }
11853 arg4 = static_cast< int >(val4);
11854 ecode5 = SWIG_AsVal_int(obj4, &val5);
11855 if (!SWIG_IsOK(ecode5)) {
11856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11857 }
11858 arg5 = static_cast< int >(val5);
11859 {
11860 PyThreadState* __tstate = wxPyBeginAllowThreads();
11861 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11862 wxPyEndAllowThreads(__tstate);
11863 if (PyErr_Occurred()) SWIG_fail;
11864 }
11865 {
11866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11867 }
11868 return resultobj;
11869fail:
11870 return NULL;
11871}
11872
11873
11874SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11875 PyObject *resultobj = 0;
11876 wxRegion *arg1 = (wxRegion *) 0 ;
11877 wxRect *arg2 = 0 ;
11878 bool result;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 wxRect temp2 ;
11882 PyObject * obj0 = 0 ;
11883 PyObject * obj1 = 0 ;
11884 char * kwnames[] = {
11885 (char *) "self",(char *) "rect", NULL
11886 };
11887
11888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11892 }
11893 arg1 = reinterpret_cast< wxRegion * >(argp1);
11894 {
11895 arg2 = &temp2;
11896 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11897 }
11898 {
11899 PyThreadState* __tstate = wxPyBeginAllowThreads();
11900 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11901 wxPyEndAllowThreads(__tstate);
11902 if (PyErr_Occurred()) SWIG_fail;
11903 }
11904 {
11905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11906 }
11907 return resultobj;
11908fail:
11909 return NULL;
11910}
11911
11912
11913SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11914 PyObject *resultobj = 0;
11915 wxRegion *arg1 = (wxRegion *) 0 ;
11916 wxRegion *arg2 = 0 ;
11917 bool result;
11918 void *argp1 = 0 ;
11919 int res1 = 0 ;
11920 void *argp2 = 0 ;
11921 int res2 = 0 ;
11922 PyObject * obj0 = 0 ;
11923 PyObject * obj1 = 0 ;
11924 char * kwnames[] = {
11925 (char *) "self",(char *) "region", NULL
11926 };
11927
11928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11930 if (!SWIG_IsOK(res1)) {
11931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11932 }
11933 arg1 = reinterpret_cast< wxRegion * >(argp1);
11934 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11935 if (!SWIG_IsOK(res2)) {
11936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11937 }
11938 if (!argp2) {
11939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11940 }
11941 arg2 = reinterpret_cast< wxRegion * >(argp2);
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11945 wxPyEndAllowThreads(__tstate);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 }
11948 {
11949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11950 }
11951 return resultobj;
11952fail:
11953 return NULL;
d55e5bfc
RD
11954}
11955
11956
554f62e9
RD
11957SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11958 PyObject *resultobj = 0;
11959 wxRegion *arg1 = (wxRegion *) 0 ;
11960 SwigValueWrapper<wxBitmap > result;
11961 void *argp1 = 0 ;
11962 int res1 = 0 ;
11963 PyObject *swig_obj[1] ;
11964
11965 if (!args) SWIG_fail;
11966 swig_obj[0] = args;
11967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11968 if (!SWIG_IsOK(res1)) {
11969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11970 }
11971 arg1 = reinterpret_cast< wxRegion * >(argp1);
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 result = (arg1)->ConvertToBitmap();
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11979 return resultobj;
11980fail:
11981 return NULL;
11982}
11983
11984
11985SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj = 0;
11987 wxRegion *arg1 = (wxRegion *) 0 ;
11988 wxBitmap *arg2 = 0 ;
11989 bool result;
11990 void *argp1 = 0 ;
11991 int res1 = 0 ;
11992 void *argp2 = 0 ;
11993 int res2 = 0 ;
11994 PyObject * obj0 = 0 ;
11995 PyObject * obj1 = 0 ;
11996 char * kwnames[] = {
11997 (char *) "self",(char *) "bmp", NULL
11998 };
11999
12000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12002 if (!SWIG_IsOK(res1)) {
12003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12004 }
12005 arg1 = reinterpret_cast< wxRegion * >(argp1);
12006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12007 if (!SWIG_IsOK(res2)) {
12008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12009 }
12010 if (!argp2) {
12011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12012 }
12013 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12014 {
12015 PyThreadState* __tstate = wxPyBeginAllowThreads();
12016 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 {
12021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12022 }
12023 return resultobj;
12024fail:
12025 return NULL;
12026}
12027
12028
12029SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj = 0;
12031 wxRegion *arg1 = (wxRegion *) 0 ;
12032 wxBitmap *arg2 = 0 ;
12033 wxColour *arg3 = 0 ;
12034 int arg4 = (int) 0 ;
12035 bool result;
12036 void *argp1 = 0 ;
12037 int res1 = 0 ;
12038 void *argp2 = 0 ;
12039 int res2 = 0 ;
12040 wxColour temp3 ;
12041 int val4 ;
12042 int ecode4 = 0 ;
12043 PyObject * obj0 = 0 ;
12044 PyObject * obj1 = 0 ;
12045 PyObject * obj2 = 0 ;
12046 PyObject * obj3 = 0 ;
12047 char * kwnames[] = {
12048 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12049 };
12050
12051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12053 if (!SWIG_IsOK(res1)) {
12054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12055 }
12056 arg1 = reinterpret_cast< wxRegion * >(argp1);
12057 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12058 if (!SWIG_IsOK(res2)) {
12059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12060 }
12061 if (!argp2) {
12062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12063 }
12064 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12065 {
12066 arg3 = &temp3;
12067 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12068 }
12069 if (obj3) {
12070 ecode4 = SWIG_AsVal_int(obj3, &val4);
12071 if (!SWIG_IsOK(ecode4)) {
12072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12073 }
12074 arg4 = static_cast< int >(val4);
12075 }
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 {
12083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12084 }
12085 return resultobj;
12086fail:
12087 return NULL;
d55e5bfc
RD
12088}
12089
12090
554f62e9
RD
12091SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12092 PyObject *obj;
12093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12094 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12095 return SWIG_Py_Void();
d55e5bfc
RD
12096}
12097
554f62e9
RD
12098SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12099 return SWIG_Python_InitShadowInstance(args);
12100}
d55e5bfc 12101
554f62e9
RD
12102SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12103 PyObject *resultobj = 0;
12104 wxRegion *arg1 = 0 ;
12105 wxRegionIterator *result = 0 ;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 PyObject * obj0 = 0 ;
12109 char * kwnames[] = {
12110 (char *) "region", NULL
12111 };
12112
12113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12114 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12115 if (!SWIG_IsOK(res1)) {
12116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12117 }
12118 if (!argp1) {
12119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12120 }
12121 arg1 = reinterpret_cast< wxRegion * >(argp1);
12122 {
12123 if (!wxPyCheckForApp()) SWIG_fail;
12124 PyThreadState* __tstate = wxPyBeginAllowThreads();
12125 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12130 return resultobj;
12131fail:
12132 return NULL;
d55e5bfc
RD
12133}
12134
12135
554f62e9
RD
12136SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137 PyObject *resultobj = 0;
12138 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12139 void *argp1 = 0 ;
12140 int res1 = 0 ;
12141 PyObject *swig_obj[1] ;
12142
12143 if (!args) SWIG_fail;
12144 swig_obj[0] = args;
12145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12148 }
12149 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 delete arg1;
d55e5bfc 12153
554f62e9
RD
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 resultobj = SWIG_Py_Void();
12158 return resultobj;
12159fail:
12160 return NULL;
d55e5bfc
RD
12161}
12162
12163
554f62e9
RD
12164SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12165 PyObject *resultobj = 0;
12166 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12167 int result;
12168 void *argp1 = 0 ;
12169 int res1 = 0 ;
12170 PyObject *swig_obj[1] ;
12171
12172 if (!args) SWIG_fail;
12173 swig_obj[0] = args;
12174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12175 if (!SWIG_IsOK(res1)) {
12176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12177 }
12178 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 result = (int)(arg1)->GetX();
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 resultobj = SWIG_From_int(static_cast< int >(result));
12186 return resultobj;
12187fail:
12188 return NULL;
d55e5bfc
RD
12189}
12190
12191
554f62e9
RD
12192SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12193 PyObject *resultobj = 0;
12194 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12195 int result;
12196 void *argp1 = 0 ;
12197 int res1 = 0 ;
12198 PyObject *swig_obj[1] ;
12199
12200 if (!args) SWIG_fail;
12201 swig_obj[0] = args;
12202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12203 if (!SWIG_IsOK(res1)) {
12204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12205 }
12206 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 result = (int)(arg1)->GetY();
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 resultobj = SWIG_From_int(static_cast< int >(result));
12214 return resultobj;
12215fail:
12216 return NULL;
d55e5bfc
RD
12217}
12218
12219
554f62e9
RD
12220SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12221 PyObject *resultobj = 0;
12222 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12223 int result;
12224 void *argp1 = 0 ;
12225 int res1 = 0 ;
12226 PyObject *swig_obj[1] ;
12227
12228 if (!args) SWIG_fail;
12229 swig_obj[0] = args;
12230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12231 if (!SWIG_IsOK(res1)) {
12232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12233 }
12234 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12235 {
12236 PyThreadState* __tstate = wxPyBeginAllowThreads();
12237 result = (int)(arg1)->GetW();
12238 wxPyEndAllowThreads(__tstate);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 resultobj = SWIG_From_int(static_cast< int >(result));
12242 return resultobj;
12243fail:
12244 return NULL;
d55e5bfc
RD
12245}
12246
12247
554f62e9
RD
12248SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12249 PyObject *resultobj = 0;
12250 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12251 int result;
12252 void *argp1 = 0 ;
12253 int res1 = 0 ;
12254 PyObject *swig_obj[1] ;
12255
12256 if (!args) SWIG_fail;
12257 swig_obj[0] = args;
12258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12259 if (!SWIG_IsOK(res1)) {
12260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12261 }
12262 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12263 {
12264 PyThreadState* __tstate = wxPyBeginAllowThreads();
12265 result = (int)(arg1)->GetWidth();
12266 wxPyEndAllowThreads(__tstate);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 resultobj = SWIG_From_int(static_cast< int >(result));
12270 return resultobj;
12271fail:
12272 return NULL;
d55e5bfc
RD
12273}
12274
12275
554f62e9
RD
12276SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12277 PyObject *resultobj = 0;
12278 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12279 int result;
12280 void *argp1 = 0 ;
12281 int res1 = 0 ;
12282 PyObject *swig_obj[1] ;
12283
12284 if (!args) SWIG_fail;
12285 swig_obj[0] = args;
12286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12287 if (!SWIG_IsOK(res1)) {
12288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12289 }
12290 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 result = (int)(arg1)->GetH();
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 resultobj = SWIG_From_int(static_cast< int >(result));
12298 return resultobj;
12299fail:
12300 return NULL;
d55e5bfc
RD
12301}
12302
12303
554f62e9
RD
12304SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12305 PyObject *resultobj = 0;
12306 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12307 int result;
12308 void *argp1 = 0 ;
12309 int res1 = 0 ;
12310 PyObject *swig_obj[1] ;
12311
12312 if (!args) SWIG_fail;
12313 swig_obj[0] = args;
12314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12315 if (!SWIG_IsOK(res1)) {
12316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12317 }
12318 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 result = (int)(arg1)->GetHeight();
12322 wxPyEndAllowThreads(__tstate);
12323 if (PyErr_Occurred()) SWIG_fail;
12324 }
12325 resultobj = SWIG_From_int(static_cast< int >(result));
12326 return resultobj;
12327fail:
12328 return NULL;
d55e5bfc
RD
12329}
12330
12331
554f62e9
RD
12332SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12333 PyObject *resultobj = 0;
12334 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12335 wxRect result;
12336 void *argp1 = 0 ;
12337 int res1 = 0 ;
12338 PyObject *swig_obj[1] ;
12339
12340 if (!args) SWIG_fail;
12341 swig_obj[0] = args;
12342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12343 if (!SWIG_IsOK(res1)) {
12344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12345 }
12346 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 result = (arg1)->GetRect();
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12354 return resultobj;
12355fail:
12356 return NULL;
d55e5bfc
RD
12357}
12358
12359
554f62e9
RD
12360SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12361 PyObject *resultobj = 0;
12362 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12363 bool result;
12364 void *argp1 = 0 ;
12365 int res1 = 0 ;
12366 PyObject *swig_obj[1] ;
12367
12368 if (!args) SWIG_fail;
12369 swig_obj[0] = args;
12370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12371 if (!SWIG_IsOK(res1)) {
12372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12373 }
12374 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 result = (bool)(arg1)->HaveRects();
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 {
12382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12383 }
12384 return resultobj;
12385fail:
12386 return NULL;
d55e5bfc
RD
12387}
12388
12389
554f62e9
RD
12390SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12391 PyObject *resultobj = 0;
12392 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12402 }
12403 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 (arg1)->Reset();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_Py_Void();
12411 return resultobj;
12412fail:
12413 return NULL;
d55e5bfc
RD
12414}
12415
12416
554f62e9
RD
12417SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12420 void *argp1 = 0 ;
12421 int res1 = 0 ;
12422 PyObject *swig_obj[1] ;
12423
12424 if (!args) SWIG_fail;
12425 swig_obj[0] = args;
12426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12427 if (!SWIG_IsOK(res1)) {
12428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12429 }
12430 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12431 {
12432 PyThreadState* __tstate = wxPyBeginAllowThreads();
12433 wxRegionIterator_Next(arg1);
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 resultobj = SWIG_Py_Void();
12438 return resultobj;
12439fail:
12440 return NULL;
d55e5bfc
RD
12441}
12442
12443
554f62e9
RD
12444SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12445 PyObject *resultobj = 0;
12446 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12447 bool result;
12448 void *argp1 = 0 ;
12449 int res1 = 0 ;
12450 PyObject *swig_obj[1] ;
12451
12452 if (!args) SWIG_fail;
12453 swig_obj[0] = args;
12454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12457 }
12458 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12459 {
12460 PyThreadState* __tstate = wxPyBeginAllowThreads();
12461 result = (bool)wxRegionIterator___nonzero__(arg1);
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 {
12466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12467 }
12468 return resultobj;
12469fail:
12470 return NULL;
d55e5bfc
RD
12471}
12472
12473
554f62e9
RD
12474SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12475 PyObject *obj;
12476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12477 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12478 return SWIG_Py_Void();
d55e5bfc
RD
12479}
12480
554f62e9
RD
12481SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12482 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12483}
12484
554f62e9
RD
12485SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12486 PyObject *resultobj = 0;
12487 wxNativeFontInfo *result = 0 ;
12488
12489 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12497 return resultobj;
12498fail:
12499 return NULL;
d55e5bfc
RD
12500}
12501
12502
554f62e9
RD
12503SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12506 void *argp1 = 0 ;
12507 int res1 = 0 ;
12508 PyObject *swig_obj[1] ;
12509
12510 if (!args) SWIG_fail;
12511 swig_obj[0] = args;
12512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12513 if (!SWIG_IsOK(res1)) {
12514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12515 }
12516 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 delete arg1;
d55e5bfc 12520
554f62e9
RD
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 resultobj = SWIG_Py_Void();
12525 return resultobj;
12526fail:
12527 return NULL;
d55e5bfc
RD
12528}
12529
12530
554f62e9
RD
12531SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12532 PyObject *resultobj = 0;
12533 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12534 void *argp1 = 0 ;
12535 int res1 = 0 ;
12536 PyObject *swig_obj[1] ;
12537
12538 if (!args) SWIG_fail;
12539 swig_obj[0] = args;
12540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12541 if (!SWIG_IsOK(res1)) {
12542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12543 }
12544 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12545 {
12546 PyThreadState* __tstate = wxPyBeginAllowThreads();
12547 (arg1)->Init();
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 resultobj = SWIG_Py_Void();
12552 return resultobj;
12553fail:
12554 return NULL;
12555}
12556
12557
12558SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12559 PyObject *resultobj = 0;
12560 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12561 wxFont *arg2 = 0 ;
12562 void *argp1 = 0 ;
12563 int res1 = 0 ;
12564 void *argp2 = 0 ;
12565 int res2 = 0 ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 char * kwnames[] = {
12569 (char *) "self",(char *) "font", NULL
12570 };
12571
12572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12574 if (!SWIG_IsOK(res1)) {
12575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12576 }
12577 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12579 if (!SWIG_IsOK(res2)) {
12580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12581 }
12582 if (!argp2) {
12583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12584 }
12585 arg2 = reinterpret_cast< wxFont * >(argp2);
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 (arg1)->InitFromFont((wxFont const &)*arg2);
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 resultobj = SWIG_Py_Void();
12593 return resultobj;
12594fail:
12595 return NULL;
d55e5bfc
RD
12596}
12597
12598
554f62e9
RD
12599SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12600 PyObject *resultobj = 0;
12601 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12602 int result;
12603 void *argp1 = 0 ;
12604 int res1 = 0 ;
12605 PyObject *swig_obj[1] ;
12606
12607 if (!args) SWIG_fail;
12608 swig_obj[0] = args;
12609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12610 if (!SWIG_IsOK(res1)) {
12611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12612 }
12613 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12614 {
12615 PyThreadState* __tstate = wxPyBeginAllowThreads();
12616 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 resultobj = SWIG_From_int(static_cast< int >(result));
12621 return resultobj;
12622fail:
12623 return NULL;
d55e5bfc
RD
12624}
12625
12626
554f62e9
RD
12627SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12628 PyObject *resultobj = 0;
12629 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12630 wxSize result;
12631 void *argp1 = 0 ;
12632 int res1 = 0 ;
12633 PyObject *swig_obj[1] ;
12634
12635 if (!args) SWIG_fail;
12636 swig_obj[0] = args;
12637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12638 if (!SWIG_IsOK(res1)) {
12639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12640 }
12641 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12642 {
12643 PyThreadState* __tstate = wxPyBeginAllowThreads();
12644 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12645 wxPyEndAllowThreads(__tstate);
12646 if (PyErr_Occurred()) SWIG_fail;
12647 }
12648 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12649 return resultobj;
12650fail:
12651 return NULL;
d55e5bfc
RD
12652}
12653
12654
554f62e9
RD
12655SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12656 PyObject *resultobj = 0;
12657 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12658 wxFontStyle result;
12659 void *argp1 = 0 ;
12660 int res1 = 0 ;
12661 PyObject *swig_obj[1] ;
12662
12663 if (!args) SWIG_fail;
12664 swig_obj[0] = args;
12665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12666 if (!SWIG_IsOK(res1)) {
12667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12668 }
12669 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12673 wxPyEndAllowThreads(__tstate);
12674 if (PyErr_Occurred()) SWIG_fail;
12675 }
12676 resultobj = SWIG_From_int(static_cast< int >(result));
12677 return resultobj;
12678fail:
12679 return NULL;
d55e5bfc
RD
12680}
12681
12682
554f62e9
RD
12683SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12684 PyObject *resultobj = 0;
12685 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12686 wxFontWeight result;
12687 void *argp1 = 0 ;
12688 int res1 = 0 ;
12689 PyObject *swig_obj[1] ;
12690
12691 if (!args) SWIG_fail;
12692 swig_obj[0] = args;
12693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12694 if (!SWIG_IsOK(res1)) {
12695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12696 }
12697 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12701 wxPyEndAllowThreads(__tstate);
12702 if (PyErr_Occurred()) SWIG_fail;
12703 }
12704 resultobj = SWIG_From_int(static_cast< int >(result));
12705 return resultobj;
12706fail:
12707 return NULL;
d55e5bfc
RD
12708}
12709
12710
554f62e9
RD
12711SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12712 PyObject *resultobj = 0;
12713 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12714 bool result;
12715 void *argp1 = 0 ;
12716 int res1 = 0 ;
12717 PyObject *swig_obj[1] ;
12718
12719 if (!args) SWIG_fail;
12720 swig_obj[0] = args;
12721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12724 }
12725 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12726 {
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 {
12733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12734 }
12735 return resultobj;
12736fail:
12737 return NULL;
d55e5bfc
RD
12738}
12739
12740
554f62e9
RD
12741SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12742 PyObject *resultobj = 0;
12743 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12744 wxString result;
12745 void *argp1 = 0 ;
12746 int res1 = 0 ;
12747 PyObject *swig_obj[1] ;
12748
12749 if (!args) SWIG_fail;
12750 swig_obj[0] = args;
12751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12752 if (!SWIG_IsOK(res1)) {
12753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12754 }
12755 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12756 {
12757 PyThreadState* __tstate = wxPyBeginAllowThreads();
12758 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12759 wxPyEndAllowThreads(__tstate);
12760 if (PyErr_Occurred()) SWIG_fail;
12761 }
12762 {
093d3ff1 12763#if wxUSE_UNICODE
554f62e9 12764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12765#else
554f62e9 12766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12767#endif
554f62e9
RD
12768 }
12769 return resultobj;
12770fail:
12771 return NULL;
d55e5bfc
RD
12772}
12773
12774
554f62e9
RD
12775SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12776 PyObject *resultobj = 0;
12777 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12778 wxFontFamily result;
12779 void *argp1 = 0 ;
12780 int res1 = 0 ;
12781 PyObject *swig_obj[1] ;
12782
12783 if (!args) SWIG_fail;
12784 swig_obj[0] = args;
12785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12786 if (!SWIG_IsOK(res1)) {
12787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12788 }
12789 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 resultobj = SWIG_From_int(static_cast< int >(result));
12797 return resultobj;
12798fail:
12799 return NULL;
d55e5bfc
RD
12800}
12801
12802
554f62e9
RD
12803SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12804 PyObject *resultobj = 0;
12805 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12806 wxFontEncoding result;
12807 void *argp1 = 0 ;
12808 int res1 = 0 ;
12809 PyObject *swig_obj[1] ;
12810
12811 if (!args) SWIG_fail;
12812 swig_obj[0] = args;
12813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12814 if (!SWIG_IsOK(res1)) {
12815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12816 }
12817 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12818 {
12819 PyThreadState* __tstate = wxPyBeginAllowThreads();
12820 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 resultobj = SWIG_From_int(static_cast< int >(result));
12825 return resultobj;
12826fail:
12827 return NULL;
12828}
12829
12830
12831SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12832 PyObject *resultobj = 0;
12833 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12834 int arg2 ;
12835 void *argp1 = 0 ;
12836 int res1 = 0 ;
12837 int val2 ;
12838 int ecode2 = 0 ;
12839 PyObject * obj0 = 0 ;
12840 PyObject * obj1 = 0 ;
12841 char * kwnames[] = {
12842 (char *) "self",(char *) "pointsize", NULL
12843 };
12844
12845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12851 ecode2 = SWIG_AsVal_int(obj1, &val2);
12852 if (!SWIG_IsOK(ecode2)) {
12853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12854 }
12855 arg2 = static_cast< int >(val2);
12856 {
12857 PyThreadState* __tstate = wxPyBeginAllowThreads();
12858 (arg1)->SetPointSize(arg2);
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 resultobj = SWIG_Py_Void();
12863 return resultobj;
12864fail:
12865 return NULL;
12866}
12867
12868
12869SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj = 0;
12871 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12872 wxSize *arg2 = 0 ;
12873 void *argp1 = 0 ;
12874 int res1 = 0 ;
12875 wxSize temp2 ;
12876 PyObject * obj0 = 0 ;
12877 PyObject * obj1 = 0 ;
12878 char * kwnames[] = {
12879 (char *) "self",(char *) "pixelSize", NULL
12880 };
12881
12882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12884 if (!SWIG_IsOK(res1)) {
12885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12886 }
12887 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12888 {
12889 arg2 = &temp2;
12890 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12891 }
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 (arg1)->SetPixelSize((wxSize const &)*arg2);
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 resultobj = SWIG_Py_Void();
12899 return resultobj;
12900fail:
12901 return NULL;
12902}
12903
12904
12905SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12906 PyObject *resultobj = 0;
12907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12908 wxFontStyle arg2 ;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 int val2 ;
12912 int ecode2 = 0 ;
12913 PyObject * obj0 = 0 ;
12914 PyObject * obj1 = 0 ;
12915 char * kwnames[] = {
12916 (char *) "self",(char *) "style", NULL
12917 };
12918
12919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12923 }
12924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12925 ecode2 = SWIG_AsVal_int(obj1, &val2);
12926 if (!SWIG_IsOK(ecode2)) {
12927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12928 }
12929 arg2 = static_cast< wxFontStyle >(val2);
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 (arg1)->SetStyle(arg2);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 resultobj = SWIG_Py_Void();
12937 return resultobj;
12938fail:
12939 return NULL;
12940}
12941
12942
12943SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj = 0;
12945 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12946 wxFontWeight arg2 ;
12947 void *argp1 = 0 ;
12948 int res1 = 0 ;
12949 int val2 ;
12950 int ecode2 = 0 ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 char * kwnames[] = {
12954 (char *) "self",(char *) "weight", NULL
12955 };
12956
12957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12959 if (!SWIG_IsOK(res1)) {
12960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12961 }
12962 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12963 ecode2 = SWIG_AsVal_int(obj1, &val2);
12964 if (!SWIG_IsOK(ecode2)) {
12965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12966 }
12967 arg2 = static_cast< wxFontWeight >(val2);
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 (arg1)->SetWeight(arg2);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 resultobj = SWIG_Py_Void();
12975 return resultobj;
12976fail:
12977 return NULL;
12978}
12979
12980
12981SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12982 PyObject *resultobj = 0;
12983 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12984 bool arg2 ;
12985 void *argp1 = 0 ;
12986 int res1 = 0 ;
12987 bool val2 ;
12988 int ecode2 = 0 ;
12989 PyObject * obj0 = 0 ;
12990 PyObject * obj1 = 0 ;
12991 char * kwnames[] = {
12992 (char *) "self",(char *) "underlined", NULL
12993 };
12994
12995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12997 if (!SWIG_IsOK(res1)) {
12998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12999 }
13000 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13001 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13002 if (!SWIG_IsOK(ecode2)) {
13003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13004 }
13005 arg2 = static_cast< bool >(val2);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 (arg1)->SetUnderlined(arg2);
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_Py_Void();
13013 return resultobj;
13014fail:
13015 return NULL;
13016}
13017
13018
13019SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj = 0;
13021 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13022 wxString arg2 ;
704eda0c 13023 bool result;
554f62e9
RD
13024 void *argp1 = 0 ;
13025 int res1 = 0 ;
13026 PyObject * obj0 = 0 ;
13027 PyObject * obj1 = 0 ;
13028 char * kwnames[] = {
13029 (char *) "self",(char *) "facename", NULL
13030 };
13031
13032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13034 if (!SWIG_IsOK(res1)) {
13035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13036 }
13037 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13038 {
13039 wxString* sptr = wxString_in_helper(obj1);
13040 if (sptr == NULL) SWIG_fail;
13041 arg2 = *sptr;
13042 delete sptr;
13043 }
13044 {
13045 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13046 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
704eda0c
RD
13050 {
13051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13052 }
554f62e9
RD
13053 return resultobj;
13054fail:
13055 return NULL;
13056}
13057
13058
13059SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj = 0;
13061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13062 wxFontFamily arg2 ;
13063 void *argp1 = 0 ;
13064 int res1 = 0 ;
13065 int val2 ;
13066 int ecode2 = 0 ;
13067 PyObject * obj0 = 0 ;
13068 PyObject * obj1 = 0 ;
13069 char * kwnames[] = {
13070 (char *) "self",(char *) "family", NULL
13071 };
13072
13073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13077 }
13078 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13079 ecode2 = SWIG_AsVal_int(obj1, &val2);
13080 if (!SWIG_IsOK(ecode2)) {
13081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13082 }
13083 arg2 = static_cast< wxFontFamily >(val2);
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 (arg1)->SetFamily(arg2);
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 resultobj = SWIG_Py_Void();
13091 return resultobj;
13092fail:
13093 return NULL;
13094}
13095
13096
13097SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13098 PyObject *resultobj = 0;
13099 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13100 wxFontEncoding arg2 ;
13101 void *argp1 = 0 ;
13102 int res1 = 0 ;
13103 int val2 ;
13104 int ecode2 = 0 ;
13105 PyObject * obj0 = 0 ;
13106 PyObject * obj1 = 0 ;
13107 char * kwnames[] = {
13108 (char *) "self",(char *) "encoding", NULL
13109 };
13110
13111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13113 if (!SWIG_IsOK(res1)) {
13114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13115 }
13116 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13117 ecode2 = SWIG_AsVal_int(obj1, &val2);
13118 if (!SWIG_IsOK(ecode2)) {
13119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13120 }
13121 arg2 = static_cast< wxFontEncoding >(val2);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 (arg1)->SetEncoding(arg2);
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 resultobj = SWIG_Py_Void();
13129 return resultobj;
13130fail:
13131 return NULL;
13132}
13133
13134
13135SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj = 0;
13137 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13138 wxString *arg2 = 0 ;
13139 bool result;
13140 void *argp1 = 0 ;
13141 int res1 = 0 ;
13142 bool temp2 = false ;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char * kwnames[] = {
13146 (char *) "self",(char *) "s", NULL
13147 };
13148
13149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13151 if (!SWIG_IsOK(res1)) {
13152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13153 }
13154 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13155 {
13156 arg2 = wxString_in_helper(obj1);
13157 if (arg2 == NULL) SWIG_fail;
13158 temp2 = true;
13159 }
13160 {
13161 PyThreadState* __tstate = wxPyBeginAllowThreads();
13162 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 {
13167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13168 }
13169 {
13170 if (temp2)
13171 delete arg2;
13172 }
13173 return resultobj;
13174fail:
13175 {
13176 if (temp2)
13177 delete arg2;
13178 }
13179 return NULL;
d55e5bfc
RD
13180}
13181
13182
554f62e9
RD
13183SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13184 PyObject *resultobj = 0;
13185 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13186 wxString result;
13187 void *argp1 = 0 ;
13188 int res1 = 0 ;
13189 PyObject *swig_obj[1] ;
13190
13191 if (!args) SWIG_fail;
13192 swig_obj[0] = args;
13193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13194 if (!SWIG_IsOK(res1)) {
13195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13196 }
13197 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 result = ((wxNativeFontInfo const *)arg1)->ToString();
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 {
13205#if wxUSE_UNICODE
13206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13207#else
13208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13209#endif
13210 }
13211 return resultobj;
13212fail:
13213 return NULL;
d55e5bfc
RD
13214}
13215
13216
554f62e9
RD
13217SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13218 PyObject *resultobj = 0;
13219 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13220 wxString result;
13221 void *argp1 = 0 ;
13222 int res1 = 0 ;
13223 PyObject *swig_obj[1] ;
13224
13225 if (!args) SWIG_fail;
13226 swig_obj[0] = args;
13227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13228 if (!SWIG_IsOK(res1)) {
13229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13230 }
13231 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 result = wxNativeFontInfo___str__(arg1);
13235 wxPyEndAllowThreads(__tstate);
13236 if (PyErr_Occurred()) SWIG_fail;
13237 }
13238 {
13239#if wxUSE_UNICODE
13240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13241#else
13242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13243#endif
13244 }
13245 return resultobj;
13246fail:
13247 return NULL;
13248}
13249
13250
13251SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj = 0;
13253 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13254 wxString *arg2 = 0 ;
13255 bool result;
13256 void *argp1 = 0 ;
13257 int res1 = 0 ;
13258 bool temp2 = false ;
13259 PyObject * obj0 = 0 ;
13260 PyObject * obj1 = 0 ;
13261 char * kwnames[] = {
13262 (char *) "self",(char *) "s", NULL
13263 };
13264
13265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13267 if (!SWIG_IsOK(res1)) {
13268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13269 }
13270 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13271 {
13272 arg2 = wxString_in_helper(obj1);
13273 if (arg2 == NULL) SWIG_fail;
13274 temp2 = true;
13275 }
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 {
13283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13284 }
13285 {
13286 if (temp2)
13287 delete arg2;
13288 }
13289 return resultobj;
13290fail:
13291 {
13292 if (temp2)
13293 delete arg2;
13294 }
13295 return NULL;
a2569024
RD
13296}
13297
13298
554f62e9
RD
13299SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13302 wxString result;
13303 void *argp1 = 0 ;
13304 int res1 = 0 ;
13305 PyObject *swig_obj[1] ;
13306
13307 if (!args) SWIG_fail;
13308 swig_obj[0] = args;
13309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13310 if (!SWIG_IsOK(res1)) {
13311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13312 }
13313 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 {
13321#if wxUSE_UNICODE
13322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13323#else
13324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13325#endif
13326 }
13327 return resultobj;
13328fail:
13329 return NULL;
d55e5bfc
RD
13330}
13331
13332
554f62e9
RD
13333SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13334 PyObject *obj;
13335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13336 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13337 return SWIG_Py_Void();
d55e5bfc
RD
13338}
13339
554f62e9
RD
13340SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13341 return SWIG_Python_InitShadowInstance(args);
13342}
d55e5bfc 13343
554f62e9
RD
13344SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13345 PyObject *resultobj = 0;
13346 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13347 wxString *arg2 = (wxString *) 0 ;
13348 void *argp1 = 0 ;
13349 int res1 = 0 ;
13350 bool temp2 = false ;
13351 PyObject *swig_obj[2] ;
13352
13353 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13357 }
13358 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13359 {
13360 arg2 = wxString_in_helper(swig_obj[1]);
13361 if (arg2 == NULL) SWIG_fail;
13362 temp2 = true;
13363 }
13364 if (arg1) (arg1)->facename = *arg2;
13365
13366 resultobj = SWIG_Py_Void();
13367 {
13368 if (temp2)
13369 delete arg2;
13370 }
13371 return resultobj;
13372fail:
13373 {
13374 if (temp2)
13375 delete arg2;
13376 }
13377 return NULL;
d55e5bfc
RD
13378}
13379
13380
554f62e9
RD
13381SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13382 PyObject *resultobj = 0;
13383 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13384 wxString *result = 0 ;
13385 void *argp1 = 0 ;
13386 int res1 = 0 ;
13387 PyObject *swig_obj[1] ;
13388
13389 if (!args) SWIG_fail;
13390 swig_obj[0] = args;
13391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13392 if (!SWIG_IsOK(res1)) {
13393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13394 }
13395 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13396 result = (wxString *)& ((arg1)->facename);
13397 {
13398#if wxUSE_UNICODE
13399 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13400#else
13401 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13402#endif
13403 }
13404 return resultobj;
13405fail:
13406 return NULL;
d55e5bfc
RD
13407}
13408
13409
554f62e9
RD
13410SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13411 PyObject *resultobj = 0;
13412 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13413 wxFontEncoding arg2 ;
13414 void *argp1 = 0 ;
13415 int res1 = 0 ;
13416 int val2 ;
13417 int ecode2 = 0 ;
13418 PyObject *swig_obj[2] ;
13419
13420 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13424 }
13425 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13426 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13427 if (!SWIG_IsOK(ecode2)) {
13428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13429 }
13430 arg2 = static_cast< wxFontEncoding >(val2);
13431 if (arg1) (arg1)->encoding = arg2;
13432
13433 resultobj = SWIG_Py_Void();
13434 return resultobj;
13435fail:
13436 return NULL;
d55e5bfc
RD
13437}
13438
13439
554f62e9
RD
13440SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13441 PyObject *resultobj = 0;
13442 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13443 wxFontEncoding result;
13444 void *argp1 = 0 ;
13445 int res1 = 0 ;
13446 PyObject *swig_obj[1] ;
13447
13448 if (!args) SWIG_fail;
13449 swig_obj[0] = args;
13450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13451 if (!SWIG_IsOK(res1)) {
13452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13453 }
13454 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13455 result = (wxFontEncoding) ((arg1)->encoding);
13456 resultobj = SWIG_From_int(static_cast< int >(result));
13457 return resultobj;
13458fail:
13459 return NULL;
d55e5bfc
RD
13460}
13461
13462
554f62e9
RD
13463SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *resultobj = 0;
13465 wxNativeEncodingInfo *result = 0 ;
13466
13467 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13475 return resultobj;
13476fail:
13477 return NULL;
d55e5bfc
RD
13478}
13479
13480
554f62e9
RD
13481SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13484 void *argp1 = 0 ;
13485 int res1 = 0 ;
13486 PyObject *swig_obj[1] ;
13487
13488 if (!args) SWIG_fail;
13489 swig_obj[0] = args;
13490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13491 if (!SWIG_IsOK(res1)) {
13492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13493 }
13494 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 delete arg1;
d55e5bfc 13498
554f62e9
RD
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 resultobj = SWIG_Py_Void();
13503 return resultobj;
13504fail:
13505 return NULL;
13506}
13507
13508
13509SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13510 PyObject *resultobj = 0;
13511 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13512 wxString *arg2 = 0 ;
13513 bool result;
13514 void *argp1 = 0 ;
13515 int res1 = 0 ;
13516 bool temp2 = false ;
13517 PyObject * obj0 = 0 ;
13518 PyObject * obj1 = 0 ;
13519 char * kwnames[] = {
13520 (char *) "self",(char *) "s", NULL
13521 };
13522
13523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13525 if (!SWIG_IsOK(res1)) {
13526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13527 }
13528 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13529 {
13530 arg2 = wxString_in_helper(obj1);
13531 if (arg2 == NULL) SWIG_fail;
13532 temp2 = true;
13533 }
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
13536 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13537 wxPyEndAllowThreads(__tstate);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 {
13541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13542 }
13543 {
13544 if (temp2)
13545 delete arg2;
13546 }
13547 return resultobj;
13548fail:
13549 {
13550 if (temp2)
13551 delete arg2;
13552 }
13553 return NULL;
d55e5bfc
RD
13554}
13555
13556
554f62e9
RD
13557SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13558 PyObject *resultobj = 0;
13559 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13560 wxString result;
13561 void *argp1 = 0 ;
13562 int res1 = 0 ;
13563 PyObject *swig_obj[1] ;
13564
13565 if (!args) SWIG_fail;
13566 swig_obj[0] = args;
13567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13568 if (!SWIG_IsOK(res1)) {
13569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13570 }
13571 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13572 {
13573 PyThreadState* __tstate = wxPyBeginAllowThreads();
13574 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13575 wxPyEndAllowThreads(__tstate);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 {
13579#if wxUSE_UNICODE
13580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13581#else
13582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13583#endif
13584 }
13585 return resultobj;
13586fail:
13587 return NULL;
d55e5bfc
RD
13588}
13589
13590
554f62e9
RD
13591SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13592 PyObject *obj;
13593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13594 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13595 return SWIG_Py_Void();
d55e5bfc
RD
13596}
13597
554f62e9
RD
13598SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13599 return SWIG_Python_InitShadowInstance(args);
13600}
d55e5bfc 13601
554f62e9
RD
13602SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13603 PyObject *resultobj = 0;
13604 wxFontEncoding arg1 ;
13605 wxNativeEncodingInfo *result = 0 ;
13606 int val1 ;
13607 int ecode1 = 0 ;
13608 PyObject * obj0 = 0 ;
13609 char * kwnames[] = {
13610 (char *) "encoding", NULL
13611 };
13612
13613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13614 ecode1 = SWIG_AsVal_int(obj0, &val1);
13615 if (!SWIG_IsOK(ecode1)) {
13616 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13617 }
13618 arg1 = static_cast< wxFontEncoding >(val1);
13619 {
13620 PyThreadState* __tstate = wxPyBeginAllowThreads();
13621 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13622 wxPyEndAllowThreads(__tstate);
13623 if (PyErr_Occurred()) SWIG_fail;
13624 }
13625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13626 return resultobj;
13627fail:
13628 return NULL;
13629}
13630
13631
13632SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13633 PyObject *resultobj = 0;
13634 wxNativeEncodingInfo *arg1 = 0 ;
13635 bool result;
13636 void *argp1 = 0 ;
13637 int res1 = 0 ;
13638 PyObject * obj0 = 0 ;
13639 char * kwnames[] = {
13640 (char *) "info", NULL
13641 };
13642
13643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13644 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13645 if (!SWIG_IsOK(res1)) {
13646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13647 }
13648 if (!argp1) {
13649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13650 }
13651 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13652 {
13653 PyThreadState* __tstate = wxPyBeginAllowThreads();
13654 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13655 wxPyEndAllowThreads(__tstate);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 }
13658 {
13659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13660 }
13661 return resultobj;
13662fail:
13663 return NULL;
d55e5bfc
RD
13664}
13665
13666
554f62e9
RD
13667SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13668 PyObject *resultobj = 0;
13669 wxFontMapper *result = 0 ;
13670
13671 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13672 {
13673 PyThreadState* __tstate = wxPyBeginAllowThreads();
13674 result = (wxFontMapper *)new wxFontMapper();
13675 wxPyEndAllowThreads(__tstate);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 }
13678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13679 return resultobj;
13680fail:
13681 return NULL;
d55e5bfc
RD
13682}
13683
13684
554f62e9
RD
13685SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13686 PyObject *resultobj = 0;
13687 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 PyObject *swig_obj[1] ;
13691
13692 if (!args) SWIG_fail;
13693 swig_obj[0] = args;
13694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13695 if (!SWIG_IsOK(res1)) {
13696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13697 }
13698 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13699 {
13700 PyThreadState* __tstate = wxPyBeginAllowThreads();
13701 delete arg1;
d55e5bfc 13702
554f62e9
RD
13703 wxPyEndAllowThreads(__tstate);
13704 if (PyErr_Occurred()) SWIG_fail;
13705 }
13706 resultobj = SWIG_Py_Void();
13707 return resultobj;
13708fail:
13709 return NULL;
d55e5bfc
RD
13710}
13711
13712
554f62e9
RD
13713SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13714 PyObject *resultobj = 0;
13715 wxFontMapper *result = 0 ;
13716
13717 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 result = (wxFontMapper *)wxFontMapper::Get();
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13725 return resultobj;
13726fail:
13727 return NULL;
13728}
13729
13730
13731SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj = 0;
13733 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13734 wxFontMapper *result = 0 ;
13735 void *argp1 = 0 ;
13736 int res1 = 0 ;
13737 PyObject * obj0 = 0 ;
13738 char * kwnames[] = {
13739 (char *) "mapper", NULL
13740 };
13741
13742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13744 if (!SWIG_IsOK(res1)) {
13745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13746 }
13747 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13755 return resultobj;
13756fail:
13757 return NULL;
13758}
13759
13760
13761SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13762 PyObject *resultobj = 0;
13763 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13764 wxString *arg2 = 0 ;
13765 bool arg3 = (bool) true ;
13766 wxFontEncoding result;
13767 void *argp1 = 0 ;
13768 int res1 = 0 ;
13769 bool temp2 = false ;
13770 bool val3 ;
13771 int ecode3 = 0 ;
13772 PyObject * obj0 = 0 ;
13773 PyObject * obj1 = 0 ;
13774 PyObject * obj2 = 0 ;
13775 char * kwnames[] = {
13776 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13777 };
13778
13779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13781 if (!SWIG_IsOK(res1)) {
13782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13783 }
13784 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13785 {
13786 arg2 = wxString_in_helper(obj1);
13787 if (arg2 == NULL) SWIG_fail;
13788 temp2 = true;
13789 }
13790 if (obj2) {
13791 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13792 if (!SWIG_IsOK(ecode3)) {
13793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13794 }
13795 arg3 = static_cast< bool >(val3);
13796 }
13797 {
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = SWIG_From_int(static_cast< int >(result));
13804 {
13805 if (temp2)
13806 delete arg2;
13807 }
13808 return resultobj;
13809fail:
13810 {
13811 if (temp2)
13812 delete arg2;
13813 }
13814 return NULL;
d55e5bfc
RD
13815}
13816
13817
554f62e9
RD
13818SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13819 PyObject *resultobj = 0;
13820 size_t result;
13821
13822 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13830 return resultobj;
13831fail:
13832 return NULL;
13833}
13834
13835
13836SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj = 0;
13838 size_t arg1 ;
13839 wxFontEncoding result;
13840 size_t val1 ;
13841 int ecode1 = 0 ;
13842 PyObject * obj0 = 0 ;
13843 char * kwnames[] = {
13844 (char *) "n", NULL
13845 };
13846
13847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13848 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13849 if (!SWIG_IsOK(ecode1)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13851 }
13852 arg1 = static_cast< size_t >(val1);
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_From_int(static_cast< int >(result));
13860 return resultobj;
13861fail:
13862 return NULL;
13863}
13864
13865
13866SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13867 PyObject *resultobj = 0;
13868 wxFontEncoding arg1 ;
13869 wxString result;
13870 int val1 ;
13871 int ecode1 = 0 ;
13872 PyObject * obj0 = 0 ;
13873 char * kwnames[] = {
13874 (char *) "encoding", NULL
13875 };
13876
13877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13878 ecode1 = SWIG_AsVal_int(obj0, &val1);
13879 if (!SWIG_IsOK(ecode1)) {
13880 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13881 }
13882 arg1 = static_cast< wxFontEncoding >(val1);
13883 {
13884 PyThreadState* __tstate = wxPyBeginAllowThreads();
13885 result = wxFontMapper::GetEncodingName(arg1);
13886 wxPyEndAllowThreads(__tstate);
13887 if (PyErr_Occurred()) SWIG_fail;
13888 }
13889 {
13890#if wxUSE_UNICODE
13891 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13892#else
13893 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13894#endif
13895 }
13896 return resultobj;
13897fail:
13898 return NULL;
d55e5bfc
RD
13899}
13900
13901
554f62e9
RD
13902SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj = 0;
13904 wxFontEncoding arg1 ;
13905 wxString result;
13906 int val1 ;
13907 int ecode1 = 0 ;
13908 PyObject * obj0 = 0 ;
13909 char * kwnames[] = {
13910 (char *) "encoding", NULL
13911 };
13912
13913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13914 ecode1 = SWIG_AsVal_int(obj0, &val1);
13915 if (!SWIG_IsOK(ecode1)) {
13916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13917 }
13918 arg1 = static_cast< wxFontEncoding >(val1);
13919 {
13920 PyThreadState* __tstate = wxPyBeginAllowThreads();
13921 result = wxFontMapper::GetEncodingDescription(arg1);
13922 wxPyEndAllowThreads(__tstate);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 {
13926#if wxUSE_UNICODE
13927 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13928#else
13929 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13930#endif
13931 }
13932 return resultobj;
13933fail:
13934 return NULL;
d55e5bfc
RD
13935}
13936
13937
554f62e9
RD
13938SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj = 0;
13940 wxString *arg1 = 0 ;
13941 wxFontEncoding result;
13942 bool temp1 = false ;
13943 PyObject * obj0 = 0 ;
13944 char * kwnames[] = {
13945 (char *) "name", NULL
13946 };
13947
13948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13949 {
13950 arg1 = wxString_in_helper(obj0);
13951 if (arg1 == NULL) SWIG_fail;
13952 temp1 = true;
13953 }
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_From_int(static_cast< int >(result));
13961 {
13962 if (temp1)
13963 delete arg1;
13964 }
13965 return resultobj;
13966fail:
13967 {
13968 if (temp1)
13969 delete arg1;
13970 }
13971 return NULL;
d55e5bfc
RD
13972}
13973
13974
554f62e9
RD
13975SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj = 0;
13977 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13978 wxString *arg2 = 0 ;
13979 void *argp1 = 0 ;
13980 int res1 = 0 ;
13981 bool temp2 = false ;
13982 PyObject * obj0 = 0 ;
13983 PyObject * obj1 = 0 ;
13984 char * kwnames[] = {
13985 (char *) "self",(char *) "prefix", NULL
13986 };
13987
13988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13990 if (!SWIG_IsOK(res1)) {
13991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13992 }
13993 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13994 {
13995 arg2 = wxString_in_helper(obj1);
13996 if (arg2 == NULL) SWIG_fail;
13997 temp2 = true;
13998 }
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 (arg1)->SetConfigPath((wxString const &)*arg2);
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_Py_Void();
14006 {
14007 if (temp2)
14008 delete arg2;
14009 }
14010 return resultobj;
14011fail:
14012 {
14013 if (temp2)
14014 delete arg2;
14015 }
14016 return NULL;
d55e5bfc
RD
14017}
14018
14019
554f62e9
RD
14020SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14021 PyObject *resultobj = 0;
14022 wxString result;
14023
14024 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14025 {
14026 PyThreadState* __tstate = wxPyBeginAllowThreads();
14027 result = wxFontMapper::GetDefaultConfigPath();
14028 wxPyEndAllowThreads(__tstate);
14029 if (PyErr_Occurred()) SWIG_fail;
14030 }
14031 {
14032#if wxUSE_UNICODE
14033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14034#else
14035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14036#endif
14037 }
14038 return resultobj;
14039fail:
14040 return NULL;
14041}
14042
14043
14044SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14045 PyObject *resultobj = 0;
14046 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14047 wxFontEncoding arg2 ;
14048 wxString const &arg3_defvalue = wxPyEmptyString ;
14049 wxString *arg3 = (wxString *) &arg3_defvalue ;
14050 bool arg4 = (bool) true ;
14051 PyObject *result = 0 ;
14052 void *argp1 = 0 ;
14053 int res1 = 0 ;
14054 int val2 ;
14055 int ecode2 = 0 ;
14056 bool temp3 = false ;
14057 bool val4 ;
14058 int ecode4 = 0 ;
14059 PyObject * obj0 = 0 ;
14060 PyObject * obj1 = 0 ;
14061 PyObject * obj2 = 0 ;
14062 PyObject * obj3 = 0 ;
14063 char * kwnames[] = {
14064 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14065 };
14066
14067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14069 if (!SWIG_IsOK(res1)) {
14070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14071 }
14072 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14073 ecode2 = SWIG_AsVal_int(obj1, &val2);
14074 if (!SWIG_IsOK(ecode2)) {
14075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14076 }
14077 arg2 = static_cast< wxFontEncoding >(val2);
14078 if (obj2) {
d55e5bfc 14079 {
554f62e9
RD
14080 arg3 = wxString_in_helper(obj2);
14081 if (arg3 == NULL) SWIG_fail;
14082 temp3 = true;
d55e5bfc 14083 }
554f62e9
RD
14084 }
14085 if (obj3) {
14086 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14087 if (!SWIG_IsOK(ecode4)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14089 }
14090 arg4 = static_cast< bool >(val4);
14091 }
14092 {
14093 PyThreadState* __tstate = wxPyBeginAllowThreads();
14094 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14095 wxPyEndAllowThreads(__tstate);
14096 if (PyErr_Occurred()) SWIG_fail;
14097 }
14098 resultobj = result;
14099 {
14100 if (temp3)
14101 delete arg3;
14102 }
14103 return resultobj;
14104fail:
14105 {
14106 if (temp3)
14107 delete arg3;
14108 }
14109 return NULL;
14110}
14111
14112
14113SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14114 PyObject *resultobj = 0;
14115 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14116 wxFontEncoding arg2 ;
14117 wxString const &arg3_defvalue = wxPyEmptyString ;
14118 wxString *arg3 = (wxString *) &arg3_defvalue ;
14119 bool result;
14120 void *argp1 = 0 ;
14121 int res1 = 0 ;
14122 int val2 ;
14123 int ecode2 = 0 ;
14124 bool temp3 = false ;
14125 PyObject * obj0 = 0 ;
14126 PyObject * obj1 = 0 ;
14127 PyObject * obj2 = 0 ;
14128 char * kwnames[] = {
14129 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14130 };
14131
14132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14134 if (!SWIG_IsOK(res1)) {
14135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14136 }
14137 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14138 ecode2 = SWIG_AsVal_int(obj1, &val2);
14139 if (!SWIG_IsOK(ecode2)) {
14140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14141 }
14142 arg2 = static_cast< wxFontEncoding >(val2);
14143 if (obj2) {
093d3ff1 14144 {
554f62e9
RD
14145 arg3 = wxString_in_helper(obj2);
14146 if (arg3 == NULL) SWIG_fail;
14147 temp3 = true;
d55e5bfc 14148 }
554f62e9
RD
14149 }
14150 {
14151 PyThreadState* __tstate = wxPyBeginAllowThreads();
14152 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 {
14157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14158 }
14159 {
14160 if (temp3)
14161 delete arg3;
14162 }
14163 return resultobj;
14164fail:
14165 {
14166 if (temp3)
14167 delete arg3;
14168 }
14169 return NULL;
14170}
14171
14172
14173SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14174 PyObject *resultobj = 0;
14175 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14176 wxWindow *arg2 = (wxWindow *) 0 ;
14177 void *argp1 = 0 ;
14178 int res1 = 0 ;
14179 void *argp2 = 0 ;
14180 int res2 = 0 ;
14181 PyObject * obj0 = 0 ;
14182 PyObject * obj1 = 0 ;
14183 char * kwnames[] = {
14184 (char *) "self",(char *) "parent", NULL
14185 };
14186
14187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14189 if (!SWIG_IsOK(res1)) {
14190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14191 }
14192 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14194 if (!SWIG_IsOK(res2)) {
14195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14196 }
14197 arg2 = reinterpret_cast< wxWindow * >(argp2);
14198 {
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 (arg1)->SetDialogParent(arg2);
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 resultobj = SWIG_Py_Void();
14205 return resultobj;
14206fail:
14207 return NULL;
14208}
14209
14210
14211SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14212 PyObject *resultobj = 0;
14213 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14214 wxString *arg2 = 0 ;
14215 void *argp1 = 0 ;
14216 int res1 = 0 ;
14217 bool temp2 = false ;
14218 PyObject * obj0 = 0 ;
14219 PyObject * obj1 = 0 ;
14220 char * kwnames[] = {
14221 (char *) "self",(char *) "title", NULL
14222 };
14223
14224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14226 if (!SWIG_IsOK(res1)) {
14227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14228 }
14229 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14230 {
14231 arg2 = wxString_in_helper(obj1);
14232 if (arg2 == NULL) SWIG_fail;
14233 temp2 = true;
14234 }
14235 {
14236 PyThreadState* __tstate = wxPyBeginAllowThreads();
14237 (arg1)->SetDialogTitle((wxString const &)*arg2);
14238 wxPyEndAllowThreads(__tstate);
14239 if (PyErr_Occurred()) SWIG_fail;
14240 }
14241 resultobj = SWIG_Py_Void();
14242 {
14243 if (temp2)
14244 delete arg2;
14245 }
14246 return resultobj;
14247fail:
14248 {
14249 if (temp2)
14250 delete arg2;
14251 }
14252 return NULL;
14253}
14254
14255
14256SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14257 PyObject *obj;
14258 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14259 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14260 return SWIG_Py_Void();
14261}
14262
14263SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14264 return SWIG_Python_InitShadowInstance(args);
14265}
14266
14267SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14268 PyObject *resultobj = 0;
14269 int arg1 ;
14270 int arg2 ;
14271 int arg3 ;
14272 int arg4 ;
14273 bool arg5 = (bool) false ;
14274 wxString const &arg6_defvalue = wxPyEmptyString ;
14275 wxString *arg6 = (wxString *) &arg6_defvalue ;
14276 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14277 wxFont *result = 0 ;
14278 int val1 ;
14279 int ecode1 = 0 ;
14280 int val2 ;
14281 int ecode2 = 0 ;
14282 int val3 ;
14283 int ecode3 = 0 ;
14284 int val4 ;
14285 int ecode4 = 0 ;
14286 bool val5 ;
14287 int ecode5 = 0 ;
14288 bool temp6 = false ;
14289 int val7 ;
14290 int ecode7 = 0 ;
14291 PyObject * obj0 = 0 ;
14292 PyObject * obj1 = 0 ;
14293 PyObject * obj2 = 0 ;
14294 PyObject * obj3 = 0 ;
14295 PyObject * obj4 = 0 ;
14296 PyObject * obj5 = 0 ;
14297 PyObject * obj6 = 0 ;
14298 char * kwnames[] = {
14299 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14300 };
14301
14302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14303 ecode1 = SWIG_AsVal_int(obj0, &val1);
14304 if (!SWIG_IsOK(ecode1)) {
14305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14306 }
14307 arg1 = static_cast< int >(val1);
14308 ecode2 = SWIG_AsVal_int(obj1, &val2);
14309 if (!SWIG_IsOK(ecode2)) {
14310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14311 }
14312 arg2 = static_cast< int >(val2);
14313 ecode3 = SWIG_AsVal_int(obj2, &val3);
14314 if (!SWIG_IsOK(ecode3)) {
14315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14316 }
14317 arg3 = static_cast< int >(val3);
14318 ecode4 = SWIG_AsVal_int(obj3, &val4);
14319 if (!SWIG_IsOK(ecode4)) {
14320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14321 }
14322 arg4 = static_cast< int >(val4);
14323 if (obj4) {
14324 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14325 if (!SWIG_IsOK(ecode5)) {
14326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14327 }
14328 arg5 = static_cast< bool >(val5);
14329 }
14330 if (obj5) {
d55e5bfc 14331 {
554f62e9
RD
14332 arg6 = wxString_in_helper(obj5);
14333 if (arg6 == NULL) SWIG_fail;
14334 temp6 = true;
d55e5bfc 14335 }
554f62e9
RD
14336 }
14337 if (obj6) {
14338 ecode7 = SWIG_AsVal_int(obj6, &val7);
14339 if (!SWIG_IsOK(ecode7)) {
14340 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14341 }
14342 arg7 = static_cast< wxFontEncoding >(val7);
14343 }
14344 {
14345 if (!wxPyCheckForApp()) SWIG_fail;
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14352 {
14353 if (temp6)
14354 delete arg6;
14355 }
14356 return resultobj;
14357fail:
14358 {
14359 if (temp6)
14360 delete arg6;
14361 }
14362 return NULL;
d55e5bfc
RD
14363}
14364
14365
554f62e9
RD
14366SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14367 PyObject *resultobj = 0;
14368 wxFont *arg1 = (wxFont *) 0 ;
14369 void *argp1 = 0 ;
14370 int res1 = 0 ;
14371 PyObject *swig_obj[1] ;
14372
14373 if (!args) SWIG_fail;
14374 swig_obj[0] = args;
14375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14376 if (!SWIG_IsOK(res1)) {
14377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14378 }
14379 arg1 = reinterpret_cast< wxFont * >(argp1);
14380 {
14381 PyThreadState* __tstate = wxPyBeginAllowThreads();
14382 delete arg1;
d55e5bfc 14383
554f62e9
RD
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 resultobj = SWIG_Py_Void();
14388 return resultobj;
14389fail:
14390 return NULL;
14391}
14392
14393
14394SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = 0;
14396 wxNativeFontInfo *arg1 = 0 ;
14397 wxFont *result = 0 ;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 PyObject * obj0 = 0 ;
14401 char * kwnames[] = {
14402 (char *) "info", NULL
14403 };
14404
14405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14406 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14407 if (!SWIG_IsOK(res1)) {
14408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14409 }
14410 if (!argp1) {
14411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14412 }
14413 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14414 {
14415 if (!wxPyCheckForApp()) SWIG_fail;
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14422 return resultobj;
14423fail:
14424 return NULL;
d55e5bfc
RD
14425}
14426
14427
554f62e9
RD
14428SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj = 0;
14430 wxString *arg1 = 0 ;
14431 wxFont *result = 0 ;
14432 bool temp1 = false ;
14433 PyObject * obj0 = 0 ;
14434 char * kwnames[] = {
14435 (char *) "info", NULL
14436 };
14437
14438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14439 {
14440 arg1 = wxString_in_helper(obj0);
14441 if (arg1 == NULL) SWIG_fail;
14442 temp1 = true;
14443 }
14444 {
14445 if (!wxPyCheckForApp()) SWIG_fail;
14446 PyThreadState* __tstate = wxPyBeginAllowThreads();
14447 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14452 {
14453 if (temp1)
14454 delete arg1;
14455 }
14456 return resultobj;
14457fail:
14458 {
14459 if (temp1)
14460 delete arg1;
14461 }
14462 return NULL;
14463}
14464
14465
14466SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14467 PyObject *resultobj = 0;
14468 int arg1 ;
14469 wxFontFamily arg2 ;
14470 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14471 wxString const &arg4_defvalue = wxPyEmptyString ;
14472 wxString *arg4 = (wxString *) &arg4_defvalue ;
14473 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14474 wxFont *result = 0 ;
14475 int val1 ;
14476 int ecode1 = 0 ;
14477 int val2 ;
14478 int ecode2 = 0 ;
14479 int val3 ;
14480 int ecode3 = 0 ;
14481 bool temp4 = false ;
14482 int val5 ;
14483 int ecode5 = 0 ;
14484 PyObject * obj0 = 0 ;
14485 PyObject * obj1 = 0 ;
14486 PyObject * obj2 = 0 ;
14487 PyObject * obj3 = 0 ;
14488 PyObject * obj4 = 0 ;
14489 char * kwnames[] = {
14490 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14491 };
14492
14493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14494 ecode1 = SWIG_AsVal_int(obj0, &val1);
14495 if (!SWIG_IsOK(ecode1)) {
14496 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14497 }
14498 arg1 = static_cast< int >(val1);
14499 ecode2 = SWIG_AsVal_int(obj1, &val2);
14500 if (!SWIG_IsOK(ecode2)) {
14501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14502 }
14503 arg2 = static_cast< wxFontFamily >(val2);
14504 if (obj2) {
14505 ecode3 = SWIG_AsVal_int(obj2, &val3);
14506 if (!SWIG_IsOK(ecode3)) {
14507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14508 }
14509 arg3 = static_cast< int >(val3);
14510 }
14511 if (obj3) {
d55e5bfc 14512 {
554f62e9
RD
14513 arg4 = wxString_in_helper(obj3);
14514 if (arg4 == NULL) SWIG_fail;
14515 temp4 = true;
d55e5bfc 14516 }
554f62e9
RD
14517 }
14518 if (obj4) {
14519 ecode5 = SWIG_AsVal_int(obj4, &val5);
14520 if (!SWIG_IsOK(ecode5)) {
14521 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14522 }
14523 arg5 = static_cast< wxFontEncoding >(val5);
14524 }
14525 {
14526 if (!wxPyCheckForApp()) SWIG_fail;
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14533 {
14534 if (temp4)
14535 delete arg4;
14536 }
14537 return resultobj;
14538fail:
14539 {
14540 if (temp4)
14541 delete arg4;
14542 }
14543 return NULL;
14544}
14545
14546
14547SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14548 PyObject *resultobj = 0;
14549 wxSize *arg1 = 0 ;
14550 int arg2 ;
14551 int arg3 ;
14552 int arg4 ;
14553 bool arg5 = (bool) false ;
14554 wxString const &arg6_defvalue = wxEmptyString ;
14555 wxString *arg6 = (wxString *) &arg6_defvalue ;
14556 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14557 wxFont *result = 0 ;
14558 wxSize temp1 ;
14559 int val2 ;
14560 int ecode2 = 0 ;
14561 int val3 ;
14562 int ecode3 = 0 ;
14563 int val4 ;
14564 int ecode4 = 0 ;
14565 bool val5 ;
14566 int ecode5 = 0 ;
14567 bool temp6 = false ;
14568 int val7 ;
14569 int ecode7 = 0 ;
14570 PyObject * obj0 = 0 ;
14571 PyObject * obj1 = 0 ;
14572 PyObject * obj2 = 0 ;
14573 PyObject * obj3 = 0 ;
14574 PyObject * obj4 = 0 ;
14575 PyObject * obj5 = 0 ;
14576 PyObject * obj6 = 0 ;
14577 char * kwnames[] = {
14578 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14579 };
14580
14581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14582 {
14583 arg1 = &temp1;
14584 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14585 }
14586 ecode2 = SWIG_AsVal_int(obj1, &val2);
14587 if (!SWIG_IsOK(ecode2)) {
14588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14589 }
14590 arg2 = static_cast< int >(val2);
14591 ecode3 = SWIG_AsVal_int(obj2, &val3);
14592 if (!SWIG_IsOK(ecode3)) {
14593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14594 }
14595 arg3 = static_cast< int >(val3);
14596 ecode4 = SWIG_AsVal_int(obj3, &val4);
14597 if (!SWIG_IsOK(ecode4)) {
14598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14599 }
14600 arg4 = static_cast< int >(val4);
14601 if (obj4) {
14602 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14603 if (!SWIG_IsOK(ecode5)) {
14604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14605 }
14606 arg5 = static_cast< bool >(val5);
14607 }
14608 if (obj5) {
d55e5bfc 14609 {
554f62e9
RD
14610 arg6 = wxString_in_helper(obj5);
14611 if (arg6 == NULL) SWIG_fail;
14612 temp6 = true;
d55e5bfc 14613 }
554f62e9
RD
14614 }
14615 if (obj6) {
14616 ecode7 = SWIG_AsVal_int(obj6, &val7);
14617 if (!SWIG_IsOK(ecode7)) {
14618 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14619 }
14620 arg7 = static_cast< wxFontEncoding >(val7);
14621 }
14622 {
14623 if (!wxPyCheckForApp()) SWIG_fail;
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14630 {
14631 if (temp6)
14632 delete arg6;
14633 }
14634 return resultobj;
14635fail:
14636 {
14637 if (temp6)
14638 delete arg6;
14639 }
14640 return NULL;
14641}
14642
14643
14644SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj = 0;
14646 wxSize *arg1 = 0 ;
14647 wxFontFamily arg2 ;
14648 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14649 wxString const &arg4_defvalue = wxEmptyString ;
14650 wxString *arg4 = (wxString *) &arg4_defvalue ;
14651 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14652 wxFont *result = 0 ;
14653 wxSize temp1 ;
14654 int val2 ;
14655 int ecode2 = 0 ;
14656 int val3 ;
14657 int ecode3 = 0 ;
14658 bool temp4 = false ;
14659 int val5 ;
14660 int ecode5 = 0 ;
14661 PyObject * obj0 = 0 ;
14662 PyObject * obj1 = 0 ;
14663 PyObject * obj2 = 0 ;
14664 PyObject * obj3 = 0 ;
14665 PyObject * obj4 = 0 ;
14666 char * kwnames[] = {
14667 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14668 };
14669
14670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14671 {
14672 arg1 = &temp1;
14673 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14674 }
14675 ecode2 = SWIG_AsVal_int(obj1, &val2);
14676 if (!SWIG_IsOK(ecode2)) {
14677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14678 }
14679 arg2 = static_cast< wxFontFamily >(val2);
14680 if (obj2) {
14681 ecode3 = SWIG_AsVal_int(obj2, &val3);
14682 if (!SWIG_IsOK(ecode3)) {
14683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14684 }
14685 arg3 = static_cast< int >(val3);
14686 }
14687 if (obj3) {
d55e5bfc 14688 {
554f62e9
RD
14689 arg4 = wxString_in_helper(obj3);
14690 if (arg4 == NULL) SWIG_fail;
14691 temp4 = true;
d55e5bfc 14692 }
554f62e9
RD
14693 }
14694 if (obj4) {
14695 ecode5 = SWIG_AsVal_int(obj4, &val5);
14696 if (!SWIG_IsOK(ecode5)) {
14697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14698 }
14699 arg5 = static_cast< wxFontEncoding >(val5);
14700 }
14701 {
14702 if (!wxPyCheckForApp()) SWIG_fail;
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14709 {
14710 if (temp4)
14711 delete arg4;
14712 }
14713 return resultobj;
14714fail:
14715 {
14716 if (temp4)
14717 delete arg4;
14718 }
14719 return NULL;
d55e5bfc
RD
14720}
14721
14722
b39fe951 14723SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14724 PyObject *resultobj = 0;
14725 wxFont *arg1 = (wxFont *) 0 ;
14726 bool result;
14727 void *argp1 = 0 ;
14728 int res1 = 0 ;
14729 PyObject *swig_obj[1] ;
14730
14731 if (!args) SWIG_fail;
14732 swig_obj[0] = args;
14733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14734 if (!SWIG_IsOK(res1)) {
b39fe951 14735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14736 }
14737 arg1 = reinterpret_cast< wxFont * >(argp1);
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14740 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 {
14745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14746 }
14747 return resultobj;
14748fail:
14749 return NULL;
14750}
14751
14752
14753SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14754 PyObject *resultobj = 0;
14755 wxFont *arg1 = (wxFont *) 0 ;
14756 wxFont *arg2 = (wxFont *) 0 ;
14757 bool result;
14758 void *argp1 = 0 ;
14759 int res1 = 0 ;
14760 void *argp2 = 0 ;
14761 int res2 = 0 ;
14762 PyObject * obj0 = 0 ;
14763 PyObject * obj1 = 0 ;
14764 char * kwnames[] = {
14765 (char *) "self",(char *) "other", NULL
14766 };
14767
14768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14770 if (!SWIG_IsOK(res1)) {
14771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14772 }
14773 arg1 = reinterpret_cast< wxFont * >(argp1);
14774 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14775 if (!SWIG_IsOK(res2)) {
14776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14777 }
14778 arg2 = reinterpret_cast< wxFont * >(argp2);
14779 {
14780 PyThreadState* __tstate = wxPyBeginAllowThreads();
14781 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14782 wxPyEndAllowThreads(__tstate);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
14785 {
14786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14787 }
14788 return resultobj;
14789fail:
14790 return NULL;
14791}
14792
14793
14794SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14795 PyObject *resultobj = 0;
14796 wxFont *arg1 = (wxFont *) 0 ;
14797 wxFont *arg2 = (wxFont *) 0 ;
14798 bool result;
14799 void *argp1 = 0 ;
14800 int res1 = 0 ;
14801 void *argp2 = 0 ;
14802 int res2 = 0 ;
14803 PyObject * obj0 = 0 ;
14804 PyObject * obj1 = 0 ;
14805 char * kwnames[] = {
14806 (char *) "self",(char *) "other", NULL
14807 };
14808
14809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14811 if (!SWIG_IsOK(res1)) {
14812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14813 }
14814 arg1 = reinterpret_cast< wxFont * >(argp1);
14815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14816 if (!SWIG_IsOK(res2)) {
14817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14818 }
14819 arg2 = reinterpret_cast< wxFont * >(argp2);
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14828 }
14829 return resultobj;
14830fail:
14831 return NULL;
a2569024
RD
14832}
14833
14834
554f62e9
RD
14835SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14836 PyObject *resultobj = 0;
14837 wxFont *arg1 = (wxFont *) 0 ;
14838 int result;
14839 void *argp1 = 0 ;
14840 int res1 = 0 ;
14841 PyObject *swig_obj[1] ;
14842
14843 if (!args) SWIG_fail;
14844 swig_obj[0] = args;
14845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14846 if (!SWIG_IsOK(res1)) {
14847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14848 }
14849 arg1 = reinterpret_cast< wxFont * >(argp1);
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = (int)((wxFont const *)arg1)->GetPointSize();
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_From_int(static_cast< int >(result));
14857 return resultobj;
14858fail:
14859 return NULL;
d55e5bfc
RD
14860}
14861
14862
554f62e9
RD
14863SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14864 PyObject *resultobj = 0;
14865 wxFont *arg1 = (wxFont *) 0 ;
14866 wxSize result;
14867 void *argp1 = 0 ;
14868 int res1 = 0 ;
14869 PyObject *swig_obj[1] ;
14870
14871 if (!args) SWIG_fail;
14872 swig_obj[0] = args;
14873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14874 if (!SWIG_IsOK(res1)) {
14875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14876 }
14877 arg1 = reinterpret_cast< wxFont * >(argp1);
14878 {
14879 PyThreadState* __tstate = wxPyBeginAllowThreads();
14880 result = ((wxFont const *)arg1)->GetPixelSize();
14881 wxPyEndAllowThreads(__tstate);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
14884 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14885 return resultobj;
14886fail:
14887 return NULL;
d55e5bfc
RD
14888}
14889
14890
554f62e9
RD
14891SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14892 PyObject *resultobj = 0;
14893 wxFont *arg1 = (wxFont *) 0 ;
14894 bool result;
14895 void *argp1 = 0 ;
14896 int res1 = 0 ;
14897 PyObject *swig_obj[1] ;
14898
14899 if (!args) SWIG_fail;
14900 swig_obj[0] = args;
14901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14902 if (!SWIG_IsOK(res1)) {
14903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14904 }
14905 arg1 = reinterpret_cast< wxFont * >(argp1);
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 {
14913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14914 }
14915 return resultobj;
14916fail:
14917 return NULL;
d55e5bfc
RD
14918}
14919
14920
554f62e9
RD
14921SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14922 PyObject *resultobj = 0;
14923 wxFont *arg1 = (wxFont *) 0 ;
14924 int result;
14925 void *argp1 = 0 ;
14926 int res1 = 0 ;
14927 PyObject *swig_obj[1] ;
14928
14929 if (!args) SWIG_fail;
14930 swig_obj[0] = args;
14931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14932 if (!SWIG_IsOK(res1)) {
14933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14934 }
14935 arg1 = reinterpret_cast< wxFont * >(argp1);
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (int)((wxFont const *)arg1)->GetFamily();
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = SWIG_From_int(static_cast< int >(result));
14943 return resultobj;
14944fail:
14945 return NULL;
d55e5bfc
RD
14946}
14947
14948
554f62e9
RD
14949SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14950 PyObject *resultobj = 0;
14951 wxFont *arg1 = (wxFont *) 0 ;
14952 int result;
14953 void *argp1 = 0 ;
14954 int res1 = 0 ;
14955 PyObject *swig_obj[1] ;
14956
14957 if (!args) SWIG_fail;
14958 swig_obj[0] = args;
14959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14960 if (!SWIG_IsOK(res1)) {
14961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14962 }
14963 arg1 = reinterpret_cast< wxFont * >(argp1);
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 result = (int)((wxFont const *)arg1)->GetStyle();
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 resultobj = SWIG_From_int(static_cast< int >(result));
14971 return resultobj;
14972fail:
14973 return NULL;
d55e5bfc
RD
14974}
14975
14976
554f62e9
RD
14977SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14978 PyObject *resultobj = 0;
14979 wxFont *arg1 = (wxFont *) 0 ;
14980 int result;
14981 void *argp1 = 0 ;
14982 int res1 = 0 ;
14983 PyObject *swig_obj[1] ;
14984
14985 if (!args) SWIG_fail;
14986 swig_obj[0] = args;
14987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14988 if (!SWIG_IsOK(res1)) {
14989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14990 }
14991 arg1 = reinterpret_cast< wxFont * >(argp1);
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 result = (int)((wxFont const *)arg1)->GetWeight();
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 resultobj = SWIG_From_int(static_cast< int >(result));
14999 return resultobj;
15000fail:
15001 return NULL;
d55e5bfc
RD
15002}
15003
15004
554f62e9
RD
15005SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15006 PyObject *resultobj = 0;
15007 wxFont *arg1 = (wxFont *) 0 ;
15008 bool result;
15009 void *argp1 = 0 ;
15010 int res1 = 0 ;
15011 PyObject *swig_obj[1] ;
15012
15013 if (!args) SWIG_fail;
15014 swig_obj[0] = args;
15015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15016 if (!SWIG_IsOK(res1)) {
15017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15018 }
15019 arg1 = reinterpret_cast< wxFont * >(argp1);
15020 {
15021 PyThreadState* __tstate = wxPyBeginAllowThreads();
15022 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15023 wxPyEndAllowThreads(__tstate);
15024 if (PyErr_Occurred()) SWIG_fail;
15025 }
15026 {
15027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15028 }
15029 return resultobj;
15030fail:
15031 return NULL;
d55e5bfc
RD
15032}
15033
15034
554f62e9
RD
15035SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15036 PyObject *resultobj = 0;
15037 wxFont *arg1 = (wxFont *) 0 ;
15038 wxString result;
15039 void *argp1 = 0 ;
15040 int res1 = 0 ;
15041 PyObject *swig_obj[1] ;
15042
15043 if (!args) SWIG_fail;
15044 swig_obj[0] = args;
15045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15046 if (!SWIG_IsOK(res1)) {
15047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15048 }
15049 arg1 = reinterpret_cast< wxFont * >(argp1);
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 result = ((wxFont const *)arg1)->GetFaceName();
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 {
15057#if wxUSE_UNICODE
15058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15059#else
15060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15061#endif
15062 }
15063 return resultobj;
15064fail:
15065 return NULL;
d55e5bfc
RD
15066}
15067
15068
554f62e9
RD
15069SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15070 PyObject *resultobj = 0;
15071 wxFont *arg1 = (wxFont *) 0 ;
15072 wxFontEncoding result;
15073 void *argp1 = 0 ;
15074 int res1 = 0 ;
15075 PyObject *swig_obj[1] ;
15076
15077 if (!args) SWIG_fail;
15078 swig_obj[0] = args;
15079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15080 if (!SWIG_IsOK(res1)) {
15081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15082 }
15083 arg1 = reinterpret_cast< wxFont * >(argp1);
15084 {
15085 PyThreadState* __tstate = wxPyBeginAllowThreads();
15086 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 resultobj = SWIG_From_int(static_cast< int >(result));
15091 return resultobj;
15092fail:
15093 return NULL;
d55e5bfc
RD
15094}
15095
15096
554f62e9
RD
15097SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15098 PyObject *resultobj = 0;
15099 wxFont *arg1 = (wxFont *) 0 ;
15100 wxNativeFontInfo *result = 0 ;
15101 void *argp1 = 0 ;
15102 int res1 = 0 ;
15103 PyObject *swig_obj[1] ;
15104
15105 if (!args) SWIG_fail;
15106 swig_obj[0] = args;
15107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15108 if (!SWIG_IsOK(res1)) {
15109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15110 }
15111 arg1 = reinterpret_cast< wxFont * >(argp1);
15112 {
15113 PyThreadState* __tstate = wxPyBeginAllowThreads();
15114 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15119 return resultobj;
15120fail:
15121 return NULL;
d55e5bfc
RD
15122}
15123
15124
554f62e9
RD
15125SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15126 PyObject *resultobj = 0;
15127 wxFont *arg1 = (wxFont *) 0 ;
15128 bool result;
15129 void *argp1 = 0 ;
15130 int res1 = 0 ;
15131 PyObject *swig_obj[1] ;
15132
15133 if (!args) SWIG_fail;
15134 swig_obj[0] = args;
15135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15136 if (!SWIG_IsOK(res1)) {
15137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15138 }
15139 arg1 = reinterpret_cast< wxFont * >(argp1);
15140 {
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15143 wxPyEndAllowThreads(__tstate);
15144 if (PyErr_Occurred()) SWIG_fail;
15145 }
15146 {
15147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15148 }
15149 return resultobj;
15150fail:
15151 return NULL;
d55e5bfc
RD
15152}
15153
15154
554f62e9
RD
15155SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15156 PyObject *resultobj = 0;
15157 wxFont *arg1 = (wxFont *) 0 ;
15158 wxString result;
15159 void *argp1 = 0 ;
15160 int res1 = 0 ;
15161 PyObject *swig_obj[1] ;
15162
15163 if (!args) SWIG_fail;
15164 swig_obj[0] = args;
15165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15166 if (!SWIG_IsOK(res1)) {
15167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15168 }
15169 arg1 = reinterpret_cast< wxFont * >(argp1);
15170 {
15171 PyThreadState* __tstate = wxPyBeginAllowThreads();
15172 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15173 wxPyEndAllowThreads(__tstate);
15174 if (PyErr_Occurred()) SWIG_fail;
15175 }
15176 {
15177#if wxUSE_UNICODE
15178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15179#else
15180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15181#endif
15182 }
15183 return resultobj;
15184fail:
15185 return NULL;
d55e5bfc
RD
15186}
15187
15188
554f62e9
RD
15189SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15190 PyObject *resultobj = 0;
15191 wxFont *arg1 = (wxFont *) 0 ;
15192 wxString result;
15193 void *argp1 = 0 ;
15194 int res1 = 0 ;
15195 PyObject *swig_obj[1] ;
15196
15197 if (!args) SWIG_fail;
15198 swig_obj[0] = args;
15199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15200 if (!SWIG_IsOK(res1)) {
15201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15202 }
15203 arg1 = reinterpret_cast< wxFont * >(argp1);
15204 {
15205 PyThreadState* __tstate = wxPyBeginAllowThreads();
15206 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 {
15211#if wxUSE_UNICODE
15212 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15213#else
15214 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15215#endif
15216 }
15217 return resultobj;
15218fail:
15219 return NULL;
15220}
15221
15222
15223SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15224 PyObject *resultobj = 0;
15225 wxFont *arg1 = (wxFont *) 0 ;
15226 int arg2 ;
15227 void *argp1 = 0 ;
15228 int res1 = 0 ;
15229 int val2 ;
15230 int ecode2 = 0 ;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233 char * kwnames[] = {
15234 (char *) "self",(char *) "pointSize", NULL
15235 };
15236
15237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15239 if (!SWIG_IsOK(res1)) {
15240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15241 }
15242 arg1 = reinterpret_cast< wxFont * >(argp1);
15243 ecode2 = SWIG_AsVal_int(obj1, &val2);
15244 if (!SWIG_IsOK(ecode2)) {
15245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15246 }
15247 arg2 = static_cast< int >(val2);
15248 {
15249 PyThreadState* __tstate = wxPyBeginAllowThreads();
15250 (arg1)->SetPointSize(arg2);
15251 wxPyEndAllowThreads(__tstate);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 resultobj = SWIG_Py_Void();
15255 return resultobj;
15256fail:
15257 return NULL;
15258}
15259
15260
15261SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15262 PyObject *resultobj = 0;
15263 wxFont *arg1 = (wxFont *) 0 ;
15264 wxSize *arg2 = 0 ;
15265 void *argp1 = 0 ;
15266 int res1 = 0 ;
15267 wxSize temp2 ;
15268 PyObject * obj0 = 0 ;
15269 PyObject * obj1 = 0 ;
15270 char * kwnames[] = {
15271 (char *) "self",(char *) "pixelSize", NULL
15272 };
15273
15274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",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_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15278 }
15279 arg1 = reinterpret_cast< wxFont * >(argp1);
15280 {
15281 arg2 = &temp2;
15282 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15283 }
15284 {
15285 PyThreadState* __tstate = wxPyBeginAllowThreads();
15286 (arg1)->SetPixelSize((wxSize const &)*arg2);
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 resultobj = SWIG_Py_Void();
15291 return resultobj;
15292fail:
15293 return NULL;
15294}
15295
15296
15297SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15298 PyObject *resultobj = 0;
15299 wxFont *arg1 = (wxFont *) 0 ;
15300 int arg2 ;
15301 void *argp1 = 0 ;
15302 int res1 = 0 ;
15303 int val2 ;
15304 int ecode2 = 0 ;
15305 PyObject * obj0 = 0 ;
15306 PyObject * obj1 = 0 ;
15307 char * kwnames[] = {
15308 (char *) "self",(char *) "family", NULL
15309 };
15310
15311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15313 if (!SWIG_IsOK(res1)) {
15314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15315 }
15316 arg1 = reinterpret_cast< wxFont * >(argp1);
15317 ecode2 = SWIG_AsVal_int(obj1, &val2);
15318 if (!SWIG_IsOK(ecode2)) {
15319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15320 }
15321 arg2 = static_cast< int >(val2);
15322 {
15323 PyThreadState* __tstate = wxPyBeginAllowThreads();
15324 (arg1)->SetFamily(arg2);
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 resultobj = SWIG_Py_Void();
15329 return resultobj;
15330fail:
15331 return NULL;
15332}
15333
15334
15335SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj = 0;
15337 wxFont *arg1 = (wxFont *) 0 ;
15338 int arg2 ;
15339 void *argp1 = 0 ;
15340 int res1 = 0 ;
15341 int val2 ;
15342 int ecode2 = 0 ;
15343 PyObject * obj0 = 0 ;
15344 PyObject * obj1 = 0 ;
15345 char * kwnames[] = {
15346 (char *) "self",(char *) "style", NULL
15347 };
15348
15349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15351 if (!SWIG_IsOK(res1)) {
15352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15353 }
15354 arg1 = reinterpret_cast< wxFont * >(argp1);
15355 ecode2 = SWIG_AsVal_int(obj1, &val2);
15356 if (!SWIG_IsOK(ecode2)) {
15357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15358 }
15359 arg2 = static_cast< int >(val2);
15360 {
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 (arg1)->SetStyle(arg2);
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 resultobj = SWIG_Py_Void();
15367 return resultobj;
15368fail:
15369 return NULL;
15370}
15371
15372
15373SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxFont *arg1 = (wxFont *) 0 ;
15376 int arg2 ;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 int val2 ;
15380 int ecode2 = 0 ;
15381 PyObject * obj0 = 0 ;
15382 PyObject * obj1 = 0 ;
15383 char * kwnames[] = {
15384 (char *) "self",(char *) "weight", NULL
15385 };
15386
15387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15389 if (!SWIG_IsOK(res1)) {
15390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15391 }
15392 arg1 = reinterpret_cast< wxFont * >(argp1);
15393 ecode2 = SWIG_AsVal_int(obj1, &val2);
15394 if (!SWIG_IsOK(ecode2)) {
15395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15396 }
15397 arg2 = static_cast< int >(val2);
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15400 (arg1)->SetWeight(arg2);
15401 wxPyEndAllowThreads(__tstate);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 resultobj = SWIG_Py_Void();
15405 return resultobj;
15406fail:
15407 return NULL;
15408}
15409
15410
15411SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj = 0;
15413 wxFont *arg1 = (wxFont *) 0 ;
15414 wxString *arg2 = 0 ;
704eda0c 15415 bool result;
554f62e9
RD
15416 void *argp1 = 0 ;
15417 int res1 = 0 ;
15418 bool temp2 = false ;
15419 PyObject * obj0 = 0 ;
15420 PyObject * obj1 = 0 ;
15421 char * kwnames[] = {
15422 (char *) "self",(char *) "faceName", NULL
15423 };
15424
15425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15427 if (!SWIG_IsOK(res1)) {
15428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15429 }
15430 arg1 = reinterpret_cast< wxFont * >(argp1);
15431 {
15432 arg2 = wxString_in_helper(obj1);
15433 if (arg2 == NULL) SWIG_fail;
15434 temp2 = true;
15435 }
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15438 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
704eda0c
RD
15442 {
15443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15444 }
554f62e9
RD
15445 {
15446 if (temp2)
15447 delete arg2;
15448 }
15449 return resultobj;
15450fail:
15451 {
15452 if (temp2)
15453 delete arg2;
15454 }
15455 return NULL;
15456}
15457
15458
15459SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15460 PyObject *resultobj = 0;
15461 wxFont *arg1 = (wxFont *) 0 ;
15462 bool arg2 ;
15463 void *argp1 = 0 ;
15464 int res1 = 0 ;
15465 bool val2 ;
15466 int ecode2 = 0 ;
15467 PyObject * obj0 = 0 ;
15468 PyObject * obj1 = 0 ;
15469 char * kwnames[] = {
15470 (char *) "self",(char *) "underlined", NULL
15471 };
15472
15473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15475 if (!SWIG_IsOK(res1)) {
15476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15477 }
15478 arg1 = reinterpret_cast< wxFont * >(argp1);
15479 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15480 if (!SWIG_IsOK(ecode2)) {
15481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15482 }
15483 arg2 = static_cast< bool >(val2);
15484 {
15485 PyThreadState* __tstate = wxPyBeginAllowThreads();
15486 (arg1)->SetUnderlined(arg2);
15487 wxPyEndAllowThreads(__tstate);
15488 if (PyErr_Occurred()) SWIG_fail;
15489 }
15490 resultobj = SWIG_Py_Void();
15491 return resultobj;
15492fail:
15493 return NULL;
15494}
15495
15496
15497SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15498 PyObject *resultobj = 0;
15499 wxFont *arg1 = (wxFont *) 0 ;
15500 wxFontEncoding arg2 ;
15501 void *argp1 = 0 ;
15502 int res1 = 0 ;
15503 int val2 ;
15504 int ecode2 = 0 ;
15505 PyObject * obj0 = 0 ;
15506 PyObject * obj1 = 0 ;
15507 char * kwnames[] = {
15508 (char *) "self",(char *) "encoding", NULL
15509 };
15510
15511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15513 if (!SWIG_IsOK(res1)) {
15514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15515 }
15516 arg1 = reinterpret_cast< wxFont * >(argp1);
15517 ecode2 = SWIG_AsVal_int(obj1, &val2);
15518 if (!SWIG_IsOK(ecode2)) {
15519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15520 }
15521 arg2 = static_cast< wxFontEncoding >(val2);
15522 {
15523 PyThreadState* __tstate = wxPyBeginAllowThreads();
15524 (arg1)->SetEncoding(arg2);
15525 wxPyEndAllowThreads(__tstate);
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 resultobj = SWIG_Py_Void();
15529 return resultobj;
15530fail:
15531 return NULL;
15532}
15533
15534
15535SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15536 PyObject *resultobj = 0;
15537 wxFont *arg1 = (wxFont *) 0 ;
15538 wxNativeFontInfo *arg2 = 0 ;
15539 void *argp1 = 0 ;
15540 int res1 = 0 ;
15541 void *argp2 = 0 ;
15542 int res2 = 0 ;
15543 PyObject * obj0 = 0 ;
15544 PyObject * obj1 = 0 ;
15545 char * kwnames[] = {
15546 (char *) "self",(char *) "info", NULL
15547 };
15548
15549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15551 if (!SWIG_IsOK(res1)) {
15552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15553 }
15554 arg1 = reinterpret_cast< wxFont * >(argp1);
15555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15556 if (!SWIG_IsOK(res2)) {
15557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15558 }
15559 if (!argp2) {
15560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15561 }
15562 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 resultobj = SWIG_Py_Void();
15570 return resultobj;
15571fail:
15572 return NULL;
15573}
15574
15575
15576SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj = 0;
15578 wxFont *arg1 = (wxFont *) 0 ;
15579 wxString *arg2 = 0 ;
704eda0c 15580 bool result;
554f62e9
RD
15581 void *argp1 = 0 ;
15582 int res1 = 0 ;
15583 bool temp2 = false ;
15584 PyObject * obj0 = 0 ;
15585 PyObject * obj1 = 0 ;
15586 char * kwnames[] = {
15587 (char *) "self",(char *) "info", NULL
15588 };
15589
15590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15592 if (!SWIG_IsOK(res1)) {
15593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15594 }
15595 arg1 = reinterpret_cast< wxFont * >(argp1);
15596 {
15597 arg2 = wxString_in_helper(obj1);
15598 if (arg2 == NULL) SWIG_fail;
15599 temp2 = true;
15600 }
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15603 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
704eda0c
RD
15607 {
15608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15609 }
554f62e9
RD
15610 {
15611 if (temp2)
15612 delete arg2;
15613 }
15614 return resultobj;
15615fail:
15616 {
15617 if (temp2)
15618 delete arg2;
15619 }
15620 return NULL;
d55e5bfc
RD
15621}
15622
15623
554f62e9
RD
15624SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15625 PyObject *resultobj = 0;
15626 wxFont *arg1 = (wxFont *) 0 ;
15627 wxString *arg2 = 0 ;
704eda0c 15628 bool result;
554f62e9
RD
15629 void *argp1 = 0 ;
15630 int res1 = 0 ;
15631 bool temp2 = false ;
15632 PyObject * obj0 = 0 ;
15633 PyObject * obj1 = 0 ;
15634 char * kwnames[] = {
15635 (char *) "self",(char *) "info", NULL
15636 };
15637
15638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15640 if (!SWIG_IsOK(res1)) {
15641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15642 }
15643 arg1 = reinterpret_cast< wxFont * >(argp1);
15644 {
15645 arg2 = wxString_in_helper(obj1);
15646 if (arg2 == NULL) SWIG_fail;
15647 temp2 = true;
15648 }
15649 {
15650 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15651 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
704eda0c
RD
15655 {
15656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15657 }
554f62e9
RD
15658 {
15659 if (temp2)
15660 delete arg2;
15661 }
15662 return resultobj;
15663fail:
15664 {
15665 if (temp2)
15666 delete arg2;
15667 }
15668 return NULL;
d55e5bfc
RD
15669}
15670
15671
554f62e9
RD
15672SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15673 PyObject *resultobj = 0;
15674 wxFont *arg1 = (wxFont *) 0 ;
15675 wxString result;
15676 void *argp1 = 0 ;
15677 int res1 = 0 ;
15678 PyObject *swig_obj[1] ;
15679
15680 if (!args) SWIG_fail;
15681 swig_obj[0] = args;
15682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15683 if (!SWIG_IsOK(res1)) {
15684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15685 }
15686 arg1 = reinterpret_cast< wxFont * >(argp1);
15687 {
15688 PyThreadState* __tstate = wxPyBeginAllowThreads();
15689 result = ((wxFont const *)arg1)->GetFamilyString();
15690 wxPyEndAllowThreads(__tstate);
15691 if (PyErr_Occurred()) SWIG_fail;
15692 }
15693 {
15694#if wxUSE_UNICODE
15695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15696#else
15697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15698#endif
15699 }
15700 return resultobj;
15701fail:
15702 return NULL;
d55e5bfc
RD
15703}
15704
15705
554f62e9
RD
15706SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15707 PyObject *resultobj = 0;
15708 wxFont *arg1 = (wxFont *) 0 ;
15709 wxString result;
15710 void *argp1 = 0 ;
15711 int res1 = 0 ;
15712 PyObject *swig_obj[1] ;
15713
15714 if (!args) SWIG_fail;
15715 swig_obj[0] = args;
15716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15717 if (!SWIG_IsOK(res1)) {
15718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15719 }
15720 arg1 = reinterpret_cast< wxFont * >(argp1);
15721 {
15722 PyThreadState* __tstate = wxPyBeginAllowThreads();
15723 result = ((wxFont const *)arg1)->GetStyleString();
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 {
15728#if wxUSE_UNICODE
15729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15730#else
15731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15732#endif
15733 }
15734 return resultobj;
15735fail:
15736 return NULL;
d55e5bfc
RD
15737}
15738
15739
554f62e9
RD
15740SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *resultobj = 0;
15742 wxFont *arg1 = (wxFont *) 0 ;
15743 wxString result;
15744 void *argp1 = 0 ;
15745 int res1 = 0 ;
15746 PyObject *swig_obj[1] ;
15747
15748 if (!args) SWIG_fail;
15749 swig_obj[0] = args;
15750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15751 if (!SWIG_IsOK(res1)) {
15752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15753 }
15754 arg1 = reinterpret_cast< wxFont * >(argp1);
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = ((wxFont const *)arg1)->GetWeightString();
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 {
15762#if wxUSE_UNICODE
15763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15764#else
15765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15766#endif
15767 }
15768 return resultobj;
15769fail:
15770 return NULL;
15771}
15772
15773
15774SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj = 0;
15776 wxFont *arg1 = (wxFont *) 0 ;
15777 bool arg2 = (bool) true ;
15778 void *argp1 = 0 ;
15779 int res1 = 0 ;
15780 bool val2 ;
15781 int ecode2 = 0 ;
15782 PyObject * obj0 = 0 ;
15783 PyObject * obj1 = 0 ;
15784 char * kwnames[] = {
15785 (char *) "self",(char *) "no", NULL
15786 };
15787
15788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15790 if (!SWIG_IsOK(res1)) {
15791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15792 }
15793 arg1 = reinterpret_cast< wxFont * >(argp1);
15794 if (obj1) {
15795 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15796 if (!SWIG_IsOK(ecode2)) {
15797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15798 }
15799 arg2 = static_cast< bool >(val2);
15800 }
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 (arg1)->SetNoAntiAliasing(arg2);
15804 wxPyEndAllowThreads(__tstate);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 resultobj = SWIG_Py_Void();
15808 return resultobj;
15809fail:
15810 return NULL;
d55e5bfc
RD
15811}
15812
15813
554f62e9
RD
15814SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15815 PyObject *resultobj = 0;
15816 wxFont *arg1 = (wxFont *) 0 ;
15817 bool result;
15818 void *argp1 = 0 ;
15819 int res1 = 0 ;
15820 PyObject *swig_obj[1] ;
15821
15822 if (!args) SWIG_fail;
15823 swig_obj[0] = args;
15824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15825 if (!SWIG_IsOK(res1)) {
15826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15827 }
15828 arg1 = reinterpret_cast< wxFont * >(argp1);
15829 {
15830 PyThreadState* __tstate = wxPyBeginAllowThreads();
15831 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15832 wxPyEndAllowThreads(__tstate);
15833 if (PyErr_Occurred()) SWIG_fail;
15834 }
15835 {
15836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15837 }
15838 return resultobj;
15839fail:
15840 return NULL;
d55e5bfc
RD
15841}
15842
15843
554f62e9
RD
15844SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15845 PyObject *resultobj = 0;
15846 wxFontEncoding result;
15847
15848 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15849 {
15850 if (!wxPyCheckForApp()) SWIG_fail;
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 resultobj = SWIG_From_int(static_cast< int >(result));
15857 return resultobj;
15858fail:
15859 return NULL;
d55e5bfc
RD
15860}
15861
15862
554f62e9
RD
15863SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15864 PyObject *resultobj = 0;
15865 wxFontEncoding arg1 ;
15866 int val1 ;
15867 int ecode1 = 0 ;
15868 PyObject * obj0 = 0 ;
15869 char * kwnames[] = {
15870 (char *) "encoding", NULL
15871 };
15872
15873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15874 ecode1 = SWIG_AsVal_int(obj0, &val1);
15875 if (!SWIG_IsOK(ecode1)) {
15876 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15877 }
15878 arg1 = static_cast< wxFontEncoding >(val1);
15879 {
15880 if (!wxPyCheckForApp()) SWIG_fail;
15881 PyThreadState* __tstate = wxPyBeginAllowThreads();
15882 wxFont::SetDefaultEncoding(arg1);
15883 wxPyEndAllowThreads(__tstate);
15884 if (PyErr_Occurred()) SWIG_fail;
15885 }
15886 resultobj = SWIG_Py_Void();
15887 return resultobj;
15888fail:
15889 return NULL;
5e483524
RD
15890}
15891
15892
554f62e9
RD
15893SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15894 PyObject *obj;
15895 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15896 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15897 return SWIG_Py_Void();
d55e5bfc
RD
15898}
15899
554f62e9
RD
15900SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15901 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15902}
15903
554f62e9
RD
15904SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15905 PyObject *resultobj = 0;
15906 wxPyFontEnumerator *result = 0 ;
15907
15908 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15909 {
15910 if (!wxPyCheckForApp()) SWIG_fail;
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15913 wxPyEndAllowThreads(__tstate);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15917 return resultobj;
15918fail:
15919 return NULL;
d55e5bfc
RD
15920}
15921
15922
554f62e9
RD
15923SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15924 PyObject *resultobj = 0;
15925 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15926 void *argp1 = 0 ;
15927 int res1 = 0 ;
15928 PyObject *swig_obj[1] ;
15929
15930 if (!args) SWIG_fail;
15931 swig_obj[0] = args;
15932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15933 if (!SWIG_IsOK(res1)) {
15934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15935 }
15936 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15937 {
15938 PyThreadState* __tstate = wxPyBeginAllowThreads();
15939 delete arg1;
d55e5bfc 15940
554f62e9
RD
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 resultobj = SWIG_Py_Void();
15945 return resultobj;
15946fail:
15947 return NULL;
15948}
15949
15950
15951SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15952 PyObject *resultobj = 0;
15953 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15954 PyObject *arg2 = (PyObject *) 0 ;
15955 PyObject *arg3 = (PyObject *) 0 ;
15956 bool arg4 ;
15957 void *argp1 = 0 ;
15958 int res1 = 0 ;
15959 bool val4 ;
15960 int ecode4 = 0 ;
15961 PyObject * obj0 = 0 ;
15962 PyObject * obj1 = 0 ;
15963 PyObject * obj2 = 0 ;
15964 PyObject * obj3 = 0 ;
15965 char * kwnames[] = {
15966 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15967 };
15968
15969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15971 if (!SWIG_IsOK(res1)) {
15972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15973 }
15974 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15975 arg2 = obj1;
15976 arg3 = obj2;
15977 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15978 if (!SWIG_IsOK(ecode4)) {
15979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15980 }
15981 arg4 = static_cast< bool >(val4);
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15985 wxPyEndAllowThreads(__tstate);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 resultobj = SWIG_Py_Void();
15989 return resultobj;
15990fail:
15991 return NULL;
15992}
15993
15994
15995SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj = 0;
15997 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15998 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15999 bool arg3 = (bool) false ;
16000 bool result;
16001 void *argp1 = 0 ;
16002 int res1 = 0 ;
16003 int val2 ;
16004 int ecode2 = 0 ;
16005 bool val3 ;
16006 int ecode3 = 0 ;
16007 PyObject * obj0 = 0 ;
16008 PyObject * obj1 = 0 ;
16009 PyObject * obj2 = 0 ;
16010 char * kwnames[] = {
16011 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16012 };
16013
16014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16016 if (!SWIG_IsOK(res1)) {
16017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16018 }
16019 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16020 if (obj1) {
16021 ecode2 = SWIG_AsVal_int(obj1, &val2);
16022 if (!SWIG_IsOK(ecode2)) {
16023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16024 }
16025 arg2 = static_cast< wxFontEncoding >(val2);
16026 }
16027 if (obj2) {
16028 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16029 if (!SWIG_IsOK(ecode3)) {
16030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16031 }
16032 arg3 = static_cast< bool >(val3);
16033 }
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16037 wxPyEndAllowThreads(__tstate);
16038 if (PyErr_Occurred()) SWIG_fail;
16039 }
16040 {
16041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16042 }
16043 return resultobj;
16044fail:
16045 return NULL;
16046}
16047
16048
16049SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16050 PyObject *resultobj = 0;
16051 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16052 wxString const &arg2_defvalue = wxPyEmptyString ;
16053 wxString *arg2 = (wxString *) &arg2_defvalue ;
16054 bool result;
16055 void *argp1 = 0 ;
16056 int res1 = 0 ;
16057 bool temp2 = false ;
16058 PyObject * obj0 = 0 ;
16059 PyObject * obj1 = 0 ;
16060 char * kwnames[] = {
16061 (char *) "self",(char *) "facename", NULL
16062 };
16063
16064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16066 if (!SWIG_IsOK(res1)) {
16067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16068 }
16069 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16070 if (obj1) {
093d3ff1 16071 {
554f62e9
RD
16072 arg2 = wxString_in_helper(obj1);
16073 if (arg2 == NULL) SWIG_fail;
16074 temp2 = true;
093d3ff1 16075 }
554f62e9
RD
16076 }
16077 {
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16080 wxPyEndAllowThreads(__tstate);
16081 if (PyErr_Occurred()) SWIG_fail;
16082 }
16083 {
16084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16085 }
16086 {
16087 if (temp2)
16088 delete arg2;
16089 }
16090 return resultobj;
16091fail:
16092 {
16093 if (temp2)
16094 delete arg2;
16095 }
16096 return NULL;
d55e5bfc
RD
16097}
16098
16099
554f62e9
RD
16100SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16101 PyObject *resultobj = 0;
554f62e9 16102 PyObject *result = 0 ;
554f62e9 16103
704eda0c 16104 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16107 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = result;
16112 return resultobj;
16113fail:
16114 return NULL;
d55e5bfc
RD
16115}
16116
16117
554f62e9
RD
16118SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16119 PyObject *resultobj = 0;
554f62e9 16120 PyObject *result = 0 ;
554f62e9 16121
704eda0c 16122 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16125 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 resultobj = result;
16130 return resultobj;
16131fail:
16132 return NULL;
d55e5bfc
RD
16133}
16134
16135
704eda0c
RD
16136SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj = 0;
16138 wxString *arg1 = 0 ;
16139 bool result;
16140 bool temp1 = false ;
16141 PyObject * obj0 = 0 ;
16142 char * kwnames[] = {
16143 (char *) "str", NULL
16144 };
16145
16146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16147 {
16148 arg1 = wxString_in_helper(obj0);
16149 if (arg1 == NULL) SWIG_fail;
16150 temp1 = true;
16151 }
16152 {
16153 PyThreadState* __tstate = wxPyBeginAllowThreads();
16154 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16155 wxPyEndAllowThreads(__tstate);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 }
16158 {
16159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16160 }
16161 {
16162 if (temp1)
16163 delete arg1;
16164 }
16165 return resultobj;
16166fail:
16167 {
16168 if (temp1)
16169 delete arg1;
16170 }
16171 return NULL;
16172}
16173
16174
554f62e9
RD
16175SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16176 PyObject *obj;
16177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16178 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16179 return SWIG_Py_Void();
5e483524
RD
16180}
16181
554f62e9
RD
16182SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16183 return SWIG_Python_InitShadowInstance(args);
16184}
5e483524 16185
554f62e9
RD
16186SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16187 PyObject *resultobj = 0;
16188 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16189 int arg2 ;
16190 void *argp1 = 0 ;
16191 int res1 = 0 ;
16192 int val2 ;
16193 int ecode2 = 0 ;
16194 PyObject *swig_obj[2] ;
16195
16196 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16198 if (!SWIG_IsOK(res1)) {
16199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16200 }
16201 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16202 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16203 if (!SWIG_IsOK(ecode2)) {
16204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16205 }
16206 arg2 = static_cast< int >(val2);
16207 if (arg1) (arg1)->Language = arg2;
16208
16209 resultobj = SWIG_Py_Void();
16210 return resultobj;
16211fail:
16212 return NULL;
d55e5bfc
RD
16213}
16214
16215
554f62e9
RD
16216SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16217 PyObject *resultobj = 0;
16218 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16219 int result;
16220 void *argp1 = 0 ;
16221 int res1 = 0 ;
16222 PyObject *swig_obj[1] ;
16223
16224 if (!args) SWIG_fail;
16225 swig_obj[0] = args;
16226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16227 if (!SWIG_IsOK(res1)) {
16228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16229 }
16230 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16231 result = (int) ((arg1)->Language);
16232 resultobj = SWIG_From_int(static_cast< int >(result));
16233 return resultobj;
16234fail:
16235 return NULL;
16236}
16237
16238
16239SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16240 PyObject *resultobj = 0;
16241 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16242 wxString *arg2 = (wxString *) 0 ;
16243 void *argp1 = 0 ;
16244 int res1 = 0 ;
16245 bool temp2 = false ;
16246 PyObject *swig_obj[2] ;
16247
16248 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16250 if (!SWIG_IsOK(res1)) {
16251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16252 }
16253 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16254 {
16255 arg2 = wxString_in_helper(swig_obj[1]);
16256 if (arg2 == NULL) SWIG_fail;
16257 temp2 = true;
16258 }
16259 if (arg1) (arg1)->CanonicalName = *arg2;
16260
16261 resultobj = SWIG_Py_Void();
16262 {
16263 if (temp2)
16264 delete arg2;
16265 }
16266 return resultobj;
16267fail:
16268 {
16269 if (temp2)
16270 delete arg2;
16271 }
16272 return NULL;
d55e5bfc
RD
16273}
16274
16275
554f62e9
RD
16276SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16277 PyObject *resultobj = 0;
16278 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16279 wxString *result = 0 ;
16280 void *argp1 = 0 ;
16281 int res1 = 0 ;
16282 PyObject *swig_obj[1] ;
16283
16284 if (!args) SWIG_fail;
16285 swig_obj[0] = args;
16286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16287 if (!SWIG_IsOK(res1)) {
16288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16289 }
16290 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16291 result = (wxString *)& ((arg1)->CanonicalName);
16292 {
16293#if wxUSE_UNICODE
16294 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16295#else
16296 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16297#endif
16298 }
16299 return resultobj;
16300fail:
16301 return NULL;
d55e5bfc
RD
16302}
16303
16304
554f62e9
RD
16305SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16306 PyObject *resultobj = 0;
16307 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16308 wxString *arg2 = (wxString *) 0 ;
16309 void *argp1 = 0 ;
16310 int res1 = 0 ;
16311 bool temp2 = false ;
16312 PyObject *swig_obj[2] ;
16313
16314 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16316 if (!SWIG_IsOK(res1)) {
16317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16318 }
16319 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16320 {
16321 arg2 = wxString_in_helper(swig_obj[1]);
16322 if (arg2 == NULL) SWIG_fail;
16323 temp2 = true;
16324 }
16325 if (arg1) (arg1)->Description = *arg2;
16326
16327 resultobj = SWIG_Py_Void();
16328 {
16329 if (temp2)
16330 delete arg2;
16331 }
16332 return resultobj;
16333fail:
16334 {
16335 if (temp2)
16336 delete arg2;
16337 }
16338 return NULL;
d55e5bfc
RD
16339}
16340
16341
554f62e9
RD
16342SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16343 PyObject *resultobj = 0;
16344 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16345 wxString *result = 0 ;
16346 void *argp1 = 0 ;
16347 int res1 = 0 ;
16348 PyObject *swig_obj[1] ;
16349
16350 if (!args) SWIG_fail;
16351 swig_obj[0] = args;
16352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16353 if (!SWIG_IsOK(res1)) {
16354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16355 }
16356 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16357 result = (wxString *)& ((arg1)->Description);
16358 {
16359#if wxUSE_UNICODE
16360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16361#else
16362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16363#endif
16364 }
16365 return resultobj;
16366fail:
16367 return NULL;
16368}
16369
16370
16371SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16372 PyObject *obj;
16373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16374 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16375 return SWIG_Py_Void();
16376}
16377
16378SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj = 0;
16380 int arg1 = (int) -1 ;
16381 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16382 wxLocale *result = 0 ;
16383 int val1 ;
16384 int ecode1 = 0 ;
16385 int val2 ;
16386 int ecode2 = 0 ;
16387 PyObject * obj0 = 0 ;
16388 PyObject * obj1 = 0 ;
16389 char * kwnames[] = {
16390 (char *) "language",(char *) "flags", NULL
16391 };
16392
16393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16394 if (obj0) {
16395 ecode1 = SWIG_AsVal_int(obj0, &val1);
16396 if (!SWIG_IsOK(ecode1)) {
16397 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16398 }
16399 arg1 = static_cast< int >(val1);
16400 }
16401 if (obj1) {
16402 ecode2 = SWIG_AsVal_int(obj1, &val2);
16403 if (!SWIG_IsOK(ecode2)) {
16404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16405 }
16406 arg2 = static_cast< int >(val2);
16407 }
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (wxLocale *)new_wxLocale(arg1,arg2);
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16415 return resultobj;
16416fail:
16417 return NULL;
d55e5bfc
RD
16418}
16419
16420
554f62e9
RD
16421SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16422 PyObject *resultobj = 0;
16423 wxLocale *arg1 = (wxLocale *) 0 ;
16424 void *argp1 = 0 ;
16425 int res1 = 0 ;
16426 PyObject *swig_obj[1] ;
16427
16428 if (!args) SWIG_fail;
16429 swig_obj[0] = args;
16430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16431 if (!SWIG_IsOK(res1)) {
16432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16433 }
16434 arg1 = reinterpret_cast< wxLocale * >(argp1);
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 delete arg1;
d55e5bfc 16438
554f62e9
RD
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 resultobj = SWIG_Py_Void();
16443 return resultobj;
16444fail:
16445 return NULL;
16446}
16447
16448
16449SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16450 PyObject *resultobj = 0;
16451 wxLocale *arg1 = (wxLocale *) 0 ;
16452 wxString *arg2 = 0 ;
16453 wxString const &arg3_defvalue = wxPyEmptyString ;
16454 wxString *arg3 = (wxString *) &arg3_defvalue ;
16455 wxString const &arg4_defvalue = wxPyEmptyString ;
16456 wxString *arg4 = (wxString *) &arg4_defvalue ;
16457 bool arg5 = (bool) true ;
16458 bool arg6 = (bool) false ;
16459 bool result;
16460 void *argp1 = 0 ;
16461 int res1 = 0 ;
16462 bool temp2 = false ;
16463 bool temp3 = false ;
16464 bool temp4 = false ;
16465 bool val5 ;
16466 int ecode5 = 0 ;
16467 bool val6 ;
16468 int ecode6 = 0 ;
16469 PyObject * obj0 = 0 ;
16470 PyObject * obj1 = 0 ;
16471 PyObject * obj2 = 0 ;
16472 PyObject * obj3 = 0 ;
16473 PyObject * obj4 = 0 ;
16474 PyObject * obj5 = 0 ;
16475 char * kwnames[] = {
16476 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16477 };
16478
16479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16481 if (!SWIG_IsOK(res1)) {
16482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16483 }
16484 arg1 = reinterpret_cast< wxLocale * >(argp1);
16485 {
16486 arg2 = wxString_in_helper(obj1);
16487 if (arg2 == NULL) SWIG_fail;
16488 temp2 = true;
16489 }
16490 if (obj2) {
093d3ff1 16491 {
554f62e9
RD
16492 arg3 = wxString_in_helper(obj2);
16493 if (arg3 == NULL) SWIG_fail;
16494 temp3 = true;
093d3ff1 16495 }
554f62e9
RD
16496 }
16497 if (obj3) {
d55e5bfc 16498 {
554f62e9
RD
16499 arg4 = wxString_in_helper(obj3);
16500 if (arg4 == NULL) SWIG_fail;
16501 temp4 = true;
d55e5bfc 16502 }
554f62e9
RD
16503 }
16504 if (obj4) {
16505 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16506 if (!SWIG_IsOK(ecode5)) {
16507 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16508 }
16509 arg5 = static_cast< bool >(val5);
16510 }
16511 if (obj5) {
16512 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16513 if (!SWIG_IsOK(ecode6)) {
16514 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16515 }
16516 arg6 = static_cast< bool >(val6);
16517 }
16518 {
16519 PyThreadState* __tstate = wxPyBeginAllowThreads();
16520 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16521 wxPyEndAllowThreads(__tstate);
16522 if (PyErr_Occurred()) SWIG_fail;
16523 }
16524 {
16525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16526 }
16527 {
16528 if (temp2)
16529 delete arg2;
16530 }
16531 {
16532 if (temp3)
16533 delete arg3;
16534 }
16535 {
16536 if (temp4)
16537 delete arg4;
16538 }
16539 return resultobj;
16540fail:
16541 {
16542 if (temp2)
16543 delete arg2;
16544 }
16545 {
16546 if (temp3)
16547 delete arg3;
16548 }
16549 {
16550 if (temp4)
16551 delete arg4;
16552 }
16553 return NULL;
16554}
16555
16556
16557SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj = 0;
16559 wxLocale *arg1 = (wxLocale *) 0 ;
16560 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16561 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16562 bool result;
16563 void *argp1 = 0 ;
16564 int res1 = 0 ;
16565 int val2 ;
16566 int ecode2 = 0 ;
16567 int val3 ;
16568 int ecode3 = 0 ;
16569 PyObject * obj0 = 0 ;
16570 PyObject * obj1 = 0 ;
16571 PyObject * obj2 = 0 ;
16572 char * kwnames[] = {
16573 (char *) "self",(char *) "language",(char *) "flags", NULL
16574 };
16575
16576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16578 if (!SWIG_IsOK(res1)) {
16579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16580 }
16581 arg1 = reinterpret_cast< wxLocale * >(argp1);
16582 if (obj1) {
16583 ecode2 = SWIG_AsVal_int(obj1, &val2);
16584 if (!SWIG_IsOK(ecode2)) {
16585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16586 }
16587 arg2 = static_cast< int >(val2);
16588 }
16589 if (obj2) {
16590 ecode3 = SWIG_AsVal_int(obj2, &val3);
16591 if (!SWIG_IsOK(ecode3)) {
16592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16593 }
16594 arg3 = static_cast< int >(val3);
16595 }
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16599 wxPyEndAllowThreads(__tstate);
16600 if (PyErr_Occurred()) SWIG_fail;
16601 }
16602 {
16603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16604 }
16605 return resultobj;
16606fail:
16607 return NULL;
d55e5bfc
RD
16608}
16609
16610
554f62e9
RD
16611SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16612 PyObject *resultobj = 0;
16613 int result;
16614
16615 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (int)wxLocale::GetSystemLanguage();
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 resultobj = SWIG_From_int(static_cast< int >(result));
16623 return resultobj;
16624fail:
16625 return NULL;
d55e5bfc
RD
16626}
16627
16628
554f62e9
RD
16629SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16630 PyObject *resultobj = 0;
16631 wxFontEncoding result;
16632
16633 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16634 {
16635 PyThreadState* __tstate = wxPyBeginAllowThreads();
16636 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16637 wxPyEndAllowThreads(__tstate);
16638 if (PyErr_Occurred()) SWIG_fail;
16639 }
16640 resultobj = SWIG_From_int(static_cast< int >(result));
16641 return resultobj;
16642fail:
16643 return NULL;
d55e5bfc
RD
16644}
16645
16646
554f62e9
RD
16647SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16648 PyObject *resultobj = 0;
16649 wxString result;
16650
16651 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 result = wxLocale::GetSystemEncodingName();
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 return resultobj;
16666fail:
16667 return NULL;
d55e5bfc
RD
16668}
16669
16670
554f62e9
RD
16671SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16672 PyObject *resultobj = 0;
16673 wxLocale *arg1 = (wxLocale *) 0 ;
16674 bool result;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 PyObject *swig_obj[1] ;
16678
16679 if (!args) SWIG_fail;
16680 swig_obj[0] = args;
16681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16682 if (!SWIG_IsOK(res1)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16684 }
16685 arg1 = reinterpret_cast< wxLocale * >(argp1);
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 result = (bool)((wxLocale const *)arg1)->IsOk();
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 {
16693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16694 }
16695 return resultobj;
16696fail:
16697 return NULL;
d55e5bfc
RD
16698}
16699
16700
554f62e9
RD
16701SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16702 PyObject *resultobj = 0;
16703 wxLocale *arg1 = (wxLocale *) 0 ;
16704 wxString result;
16705 void *argp1 = 0 ;
16706 int res1 = 0 ;
16707 PyObject *swig_obj[1] ;
16708
16709 if (!args) SWIG_fail;
16710 swig_obj[0] = args;
16711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16712 if (!SWIG_IsOK(res1)) {
16713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16714 }
16715 arg1 = reinterpret_cast< wxLocale * >(argp1);
16716 {
16717 PyThreadState* __tstate = wxPyBeginAllowThreads();
16718 result = ((wxLocale const *)arg1)->GetLocale();
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 {
16723#if wxUSE_UNICODE
16724 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16725#else
16726 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16727#endif
16728 }
16729 return resultobj;
16730fail:
16731 return NULL;
d55e5bfc
RD
16732}
16733
16734
554f62e9
RD
16735SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16736 PyObject *resultobj = 0;
16737 wxLocale *arg1 = (wxLocale *) 0 ;
16738 int result;
16739 void *argp1 = 0 ;
16740 int res1 = 0 ;
16741 PyObject *swig_obj[1] ;
16742
16743 if (!args) SWIG_fail;
16744 swig_obj[0] = args;
16745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16746 if (!SWIG_IsOK(res1)) {
16747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16748 }
16749 arg1 = reinterpret_cast< wxLocale * >(argp1);
16750 {
16751 PyThreadState* __tstate = wxPyBeginAllowThreads();
16752 result = (int)((wxLocale const *)arg1)->GetLanguage();
16753 wxPyEndAllowThreads(__tstate);
16754 if (PyErr_Occurred()) SWIG_fail;
16755 }
16756 resultobj = SWIG_From_int(static_cast< int >(result));
16757 return resultobj;
16758fail:
16759 return NULL;
d55e5bfc
RD
16760}
16761
16762
554f62e9
RD
16763SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16764 PyObject *resultobj = 0;
16765 wxLocale *arg1 = (wxLocale *) 0 ;
16766 wxString result;
16767 void *argp1 = 0 ;
16768 int res1 = 0 ;
16769 PyObject *swig_obj[1] ;
16770
16771 if (!args) SWIG_fail;
16772 swig_obj[0] = args;
16773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16774 if (!SWIG_IsOK(res1)) {
16775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16776 }
16777 arg1 = reinterpret_cast< wxLocale * >(argp1);
16778 {
16779 PyThreadState* __tstate = wxPyBeginAllowThreads();
16780 result = ((wxLocale const *)arg1)->GetSysName();
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 {
16785#if wxUSE_UNICODE
16786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16787#else
16788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16789#endif
16790 }
16791 return resultobj;
16792fail:
16793 return NULL;
d55e5bfc
RD
16794}
16795
16796
554f62e9
RD
16797SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16798 PyObject *resultobj = 0;
16799 wxLocale *arg1 = (wxLocale *) 0 ;
16800 wxString result;
16801 void *argp1 = 0 ;
16802 int res1 = 0 ;
16803 PyObject *swig_obj[1] ;
16804
16805 if (!args) SWIG_fail;
16806 swig_obj[0] = args;
16807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16808 if (!SWIG_IsOK(res1)) {
16809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16810 }
16811 arg1 = reinterpret_cast< wxLocale * >(argp1);
16812 {
16813 PyThreadState* __tstate = wxPyBeginAllowThreads();
16814 result = ((wxLocale const *)arg1)->GetCanonicalName();
16815 wxPyEndAllowThreads(__tstate);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 {
093d3ff1 16819#if wxUSE_UNICODE
554f62e9 16820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16821#else
554f62e9 16822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16823#endif
554f62e9
RD
16824 }
16825 return resultobj;
16826fail:
16827 return NULL;
d55e5bfc
RD
16828}
16829
16830
554f62e9
RD
16831SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16832 PyObject *resultobj = 0;
16833 wxString *arg1 = 0 ;
16834 bool temp1 = false ;
16835 PyObject * obj0 = 0 ;
16836 char * kwnames[] = {
16837 (char *) "prefix", NULL
16838 };
16839
16840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16841 {
16842 arg1 = wxString_in_helper(obj0);
16843 if (arg1 == NULL) SWIG_fail;
16844 temp1 = true;
16845 }
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 resultobj = SWIG_Py_Void();
16853 {
16854 if (temp1)
16855 delete arg1;
16856 }
16857 return resultobj;
16858fail:
16859 {
16860 if (temp1)
16861 delete arg1;
16862 }
16863 return NULL;
16864}
16865
16866
16867SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16868 PyObject *resultobj = 0;
16869 wxLocale *arg1 = (wxLocale *) 0 ;
16870 wxString *arg2 = 0 ;
16871 bool result;
16872 void *argp1 = 0 ;
16873 int res1 = 0 ;
16874 bool temp2 = false ;
16875 PyObject * obj0 = 0 ;
16876 PyObject * obj1 = 0 ;
16877 char * kwnames[] = {
16878 (char *) "self",(char *) "szDomain", NULL
16879 };
16880
16881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16883 if (!SWIG_IsOK(res1)) {
16884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16885 }
16886 arg1 = reinterpret_cast< wxLocale * >(argp1);
16887 {
16888 arg2 = wxString_in_helper(obj1);
16889 if (arg2 == NULL) SWIG_fail;
16890 temp2 = true;
16891 }
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16895 wxPyEndAllowThreads(__tstate);
16896 if (PyErr_Occurred()) SWIG_fail;
16897 }
16898 {
16899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16900 }
16901 {
16902 if (temp2)
16903 delete arg2;
16904 }
16905 return resultobj;
16906fail:
16907 {
16908 if (temp2)
16909 delete arg2;
16910 }
16911 return NULL;
16912}
16913
16914
33d6fd3b
RD
16915SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj = 0;
16917 int arg1 ;
16918 bool result;
16919 int val1 ;
16920 int ecode1 = 0 ;
16921 PyObject * obj0 = 0 ;
16922 char * kwnames[] = {
16923 (char *) "lang", NULL
16924 };
16925
16926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16927 ecode1 = SWIG_AsVal_int(obj0, &val1);
16928 if (!SWIG_IsOK(ecode1)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16930 }
16931 arg1 = static_cast< int >(val1);
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 result = (bool)wxLocale::IsAvailable(arg1);
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 {
16939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16940 }
16941 return resultobj;
16942fail:
16943 return NULL;
16944}
16945
16946
554f62e9
RD
16947SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16948 PyObject *resultobj = 0;
16949 wxLocale *arg1 = (wxLocale *) 0 ;
16950 wxString *arg2 = 0 ;
16951 bool result;
16952 void *argp1 = 0 ;
16953 int res1 = 0 ;
16954 bool temp2 = false ;
16955 PyObject * obj0 = 0 ;
16956 PyObject * obj1 = 0 ;
16957 char * kwnames[] = {
16958 (char *) "self",(char *) "szDomain", NULL
16959 };
16960
16961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16963 if (!SWIG_IsOK(res1)) {
16964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16965 }
16966 arg1 = reinterpret_cast< wxLocale * >(argp1);
16967 {
16968 arg2 = wxString_in_helper(obj1);
16969 if (arg2 == NULL) SWIG_fail;
16970 temp2 = true;
16971 }
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
16974 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16975 wxPyEndAllowThreads(__tstate);
16976 if (PyErr_Occurred()) SWIG_fail;
16977 }
16978 {
16979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16980 }
16981 {
16982 if (temp2)
16983 delete arg2;
16984 }
16985 return resultobj;
16986fail:
16987 {
16988 if (temp2)
16989 delete arg2;
16990 }
16991 return NULL;
d55e5bfc
RD
16992}
16993
16994
554f62e9
RD
16995SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 int arg1 ;
16998 wxLanguageInfo *result = 0 ;
16999 int val1 ;
17000 int ecode1 = 0 ;
17001 PyObject * obj0 = 0 ;
17002 char * kwnames[] = {
17003 (char *) "lang", NULL
17004 };
17005
17006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17007 ecode1 = SWIG_AsVal_int(obj0, &val1);
17008 if (!SWIG_IsOK(ecode1)) {
17009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17010 }
17011 arg1 = static_cast< int >(val1);
17012 {
17013 PyThreadState* __tstate = wxPyBeginAllowThreads();
17014 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17015 wxPyEndAllowThreads(__tstate);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17019 return resultobj;
17020fail:
17021 return NULL;
17022}
17023
17024
17025SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17026 PyObject *resultobj = 0;
17027 int arg1 ;
17028 wxString result;
17029 int val1 ;
17030 int ecode1 = 0 ;
17031 PyObject * obj0 = 0 ;
17032 char * kwnames[] = {
17033 (char *) "lang", NULL
17034 };
17035
17036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17037 ecode1 = SWIG_AsVal_int(obj0, &val1);
17038 if (!SWIG_IsOK(ecode1)) {
17039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17040 }
17041 arg1 = static_cast< int >(val1);
17042 {
17043 PyThreadState* __tstate = wxPyBeginAllowThreads();
17044 result = wxLocale::GetLanguageName(arg1);
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 {
17049#if wxUSE_UNICODE
17050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17051#else
17052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17053#endif
17054 }
17055 return resultobj;
17056fail:
17057 return NULL;
093d3ff1
RD
17058}
17059
17060
554f62e9
RD
17061SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17062 PyObject *resultobj = 0;
17063 wxString *arg1 = 0 ;
17064 wxLanguageInfo *result = 0 ;
17065 bool temp1 = false ;
17066 PyObject * obj0 = 0 ;
17067 char * kwnames[] = {
17068 (char *) "locale", NULL
17069 };
17070
17071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17072 {
17073 arg1 = wxString_in_helper(obj0);
17074 if (arg1 == NULL) SWIG_fail;
17075 temp1 = true;
17076 }
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
17079 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17084 {
17085 if (temp1)
17086 delete arg1;
17087 }
17088 return resultobj;
17089fail:
17090 {
17091 if (temp1)
17092 delete arg1;
17093 }
17094 return NULL;
17095}
17096
17097
17098SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17099 PyObject *resultobj = 0;
17100 wxLanguageInfo *arg1 = 0 ;
17101 void *argp1 = 0 ;
17102 int res1 = 0 ;
17103 PyObject * obj0 = 0 ;
17104 char * kwnames[] = {
17105 (char *) "info", NULL
17106 };
17107
17108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17109 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17110 if (!SWIG_IsOK(res1)) {
17111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17112 }
17113 if (!argp1) {
17114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17115 }
17116 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17117 {
17118 PyThreadState* __tstate = wxPyBeginAllowThreads();
17119 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 resultobj = SWIG_Py_Void();
17124 return resultobj;
17125fail:
17126 return NULL;
17127}
17128
17129
17130SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj = 0;
17132 wxLocale *arg1 = (wxLocale *) 0 ;
17133 wxString *arg2 = 0 ;
17134 wxString const &arg3_defvalue = wxPyEmptyString ;
17135 wxString *arg3 = (wxString *) &arg3_defvalue ;
17136 wxString result;
17137 void *argp1 = 0 ;
17138 int res1 = 0 ;
17139 bool temp2 = false ;
17140 bool temp3 = false ;
17141 PyObject * obj0 = 0 ;
17142 PyObject * obj1 = 0 ;
17143 PyObject * obj2 = 0 ;
17144 char * kwnames[] = {
17145 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17146 };
17147
17148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17150 if (!SWIG_IsOK(res1)) {
17151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17152 }
17153 arg1 = reinterpret_cast< wxLocale * >(argp1);
17154 {
17155 arg2 = wxString_in_helper(obj1);
17156 if (arg2 == NULL) SWIG_fail;
17157 temp2 = true;
17158 }
17159 if (obj2) {
17160 {
17161 arg3 = wxString_in_helper(obj2);
17162 if (arg3 == NULL) SWIG_fail;
17163 temp3 = true;
17164 }
17165 }
17166 {
17167 PyThreadState* __tstate = wxPyBeginAllowThreads();
17168 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17169 wxPyEndAllowThreads(__tstate);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 }
17172 {
17173#if wxUSE_UNICODE
17174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17175#else
17176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17177#endif
17178 }
17179 {
17180 if (temp2)
17181 delete arg2;
17182 }
17183 {
17184 if (temp3)
17185 delete arg3;
17186 }
17187 return resultobj;
17188fail:
17189 {
17190 if (temp2)
17191 delete arg2;
17192 }
17193 {
17194 if (temp3)
17195 delete arg3;
17196 }
17197 return NULL;
17198}
17199
17200
17201SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17202 PyObject *resultobj = 0;
17203 wxLocale *arg1 = (wxLocale *) 0 ;
17204 wxString *result = 0 ;
17205 void *argp1 = 0 ;
17206 int res1 = 0 ;
17207 PyObject *swig_obj[1] ;
17208
17209 if (!args) SWIG_fail;
17210 swig_obj[0] = args;
17211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17212 if (!SWIG_IsOK(res1)) {
17213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17214 }
17215 arg1 = reinterpret_cast< wxLocale * >(argp1);
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 {
17219 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17220 result = (wxString *) &_result_ref;
17221 }
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 {
17226#if wxUSE_UNICODE
17227 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17228#else
17229 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17230#endif
17231 }
17232 return resultobj;
17233fail:
17234 return NULL;
17235}
17236
17237
17238SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17239 PyObject *obj;
17240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17241 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17242 return SWIG_Py_Void();
17243}
17244
17245SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17246 return SWIG_Python_InitShadowInstance(args);
17247}
17248
17249SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17250 PyObject *resultobj = 0;
17251 int arg1 = (int) -1 ;
17252 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17253 wxPyLocale *result = 0 ;
17254 int val1 ;
17255 int ecode1 = 0 ;
17256 int val2 ;
17257 int ecode2 = 0 ;
17258 PyObject * obj0 = 0 ;
17259 PyObject * obj1 = 0 ;
17260 char * kwnames[] = {
17261 (char *) "language",(char *) "flags", NULL
17262 };
17263
17264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17265 if (obj0) {
17266 ecode1 = SWIG_AsVal_int(obj0, &val1);
17267 if (!SWIG_IsOK(ecode1)) {
17268 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17269 }
17270 arg1 = static_cast< int >(val1);
17271 }
17272 if (obj1) {
17273 ecode2 = SWIG_AsVal_int(obj1, &val2);
17274 if (!SWIG_IsOK(ecode2)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17276 }
17277 arg2 = static_cast< int >(val2);
17278 }
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17282 wxPyEndAllowThreads(__tstate);
17283 if (PyErr_Occurred()) SWIG_fail;
17284 }
17285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17286 return resultobj;
17287fail:
17288 return NULL;
17289}
17290
17291
17292SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17293 PyObject *resultobj = 0;
17294 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17295 void *argp1 = 0 ;
17296 int res1 = 0 ;
17297 PyObject *swig_obj[1] ;
17298
17299 if (!args) SWIG_fail;
17300 swig_obj[0] = args;
17301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17302 if (!SWIG_IsOK(res1)) {
17303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17304 }
17305 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17306 {
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 delete arg1;
17309
554f62e9
RD
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
fc46b7f3 17313 resultobj = SWIG_Py_Void();
554f62e9
RD
17314 return resultobj;
17315fail:
554f62e9 17316 return NULL;
d55e5bfc
RD
17317}
17318
17319
fc46b7f3 17320SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17321 PyObject *resultobj = 0;
fc46b7f3
RD
17322 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17323 PyObject *arg2 = (PyObject *) 0 ;
17324 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17325 void *argp1 = 0 ;
17326 int res1 = 0 ;
17327 PyObject * obj0 = 0 ;
fc46b7f3
RD
17328 PyObject * obj1 = 0 ;
17329 PyObject * obj2 = 0 ;
554f62e9 17330 char * kwnames[] = {
fc46b7f3 17331 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17332 };
17333
fc46b7f3
RD
17334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17336 if (!SWIG_IsOK(res1)) {
fc46b7f3 17337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17338 }
fc46b7f3
RD
17339 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17340 arg2 = obj1;
17341 arg3 = obj2;
554f62e9
RD
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17344 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 resultobj = SWIG_Py_Void();
17349 return resultobj;
17350fail:
17351 return NULL;
17352}
17353
17354
fc46b7f3 17355SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17356 PyObject *resultobj = 0;
fc46b7f3
RD
17357 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17358 wxChar *arg2 = (wxChar *) 0 ;
17359 wxChar *arg3 = (wxChar *) NULL ;
17360 wxChar *result = 0 ;
554f62e9
RD
17361 void *argp1 = 0 ;
17362 int res1 = 0 ;
fc46b7f3
RD
17363 void *argp2 = 0 ;
17364 int res2 = 0 ;
17365 void *argp3 = 0 ;
17366 int res3 = 0 ;
554f62e9
RD
17367 PyObject * obj0 = 0 ;
17368 PyObject * obj1 = 0 ;
17369 PyObject * obj2 = 0 ;
17370 char * kwnames[] = {
17371 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17372 };
17373
fc46b7f3
RD
17374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17376 if (!SWIG_IsOK(res1)) {
fc46b7f3 17377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17378 }
fc46b7f3
RD
17379 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17380 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17381 if (!SWIG_IsOK(res2)) {
17382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17383 }
fc46b7f3 17384 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17385 if (obj2) {
fc46b7f3
RD
17386 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17387 if (!SWIG_IsOK(res3)) {
17388 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17389 }
fc46b7f3 17390 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17391 }
17392 {
17393 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17394 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17395 wxPyEndAllowThreads(__tstate);
17396 if (PyErr_Occurred()) SWIG_fail;
17397 }
fc46b7f3 17398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17399 return resultobj;
17400fail:
554f62e9 17401 return NULL;
d55e5bfc
RD
17402}
17403
17404
fc46b7f3 17405SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17406 PyObject *resultobj = 0;
fc46b7f3
RD
17407 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17408 wxChar *arg2 = (wxChar *) 0 ;
17409 wxChar *arg3 = (wxChar *) 0 ;
17410 size_t arg4 ;
17411 wxChar *arg5 = (wxChar *) NULL ;
17412 wxChar *result = 0 ;
554f62e9
RD
17413 void *argp1 = 0 ;
17414 int res1 = 0 ;
fc46b7f3
RD
17415 void *argp2 = 0 ;
17416 int res2 = 0 ;
17417 void *argp3 = 0 ;
17418 int res3 = 0 ;
17419 size_t val4 ;
17420 int ecode4 = 0 ;
17421 void *argp5 = 0 ;
17422 int res5 = 0 ;
17423 PyObject * obj0 = 0 ;
17424 PyObject * obj1 = 0 ;
17425 PyObject * obj2 = 0 ;
17426 PyObject * obj3 = 0 ;
17427 PyObject * obj4 = 0 ;
17428 char * kwnames[] = {
17429 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17430 };
554f62e9 17431
fc46b7f3
RD
17432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17434 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17436 }
17437 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17439 if (!SWIG_IsOK(res2)) {
17440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17441 }
17442 arg2 = reinterpret_cast< wxChar * >(argp2);
17443 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17444 if (!SWIG_IsOK(res3)) {
17445 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17446 }
17447 arg3 = reinterpret_cast< wxChar * >(argp3);
17448 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17449 if (!SWIG_IsOK(ecode4)) {
17450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17451 }
17452 arg4 = static_cast< size_t >(val4);
17453 if (obj4) {
17454 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17455 if (!SWIG_IsOK(res5)) {
17456 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17457 }
17458 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17459 }
554f62e9
RD
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17462 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17463 wxPyEndAllowThreads(__tstate);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
fc46b7f3 17466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17467 return resultobj;
17468fail:
17469 return NULL;
d55e5bfc
RD
17470}
17471
17472
fc46b7f3 17473SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17474 PyObject *obj;
17475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17476 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17477 return SWIG_Py_Void();
d55e5bfc
RD
17478}
17479
fc46b7f3 17480SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17481 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17482}
17483
554f62e9
RD
17484SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17485 PyObject *resultobj = 0;
17486 wxLocale *result = 0 ;
17487
17488 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17489 {
17490 PyThreadState* __tstate = wxPyBeginAllowThreads();
17491 result = (wxLocale *)wxGetLocale();
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17496 return resultobj;
17497fail:
17498 return NULL;
d55e5bfc
RD
17499}
17500
17501
554f62e9
RD
17502SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17503 PyObject *resultobj = 0;
17504 wxString *arg1 = 0 ;
17505 wxString result;
17506 bool temp1 = false ;
17507
17508 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17509 {
17510 arg1 = wxString_in_helper(swig_obj[0]);
17511 if (arg1 == NULL) SWIG_fail;
17512 temp1 = true;
17513 }
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = wxGetTranslation((wxString const &)*arg1);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 {
093d3ff1 17521#if wxUSE_UNICODE
554f62e9 17522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17523#else
554f62e9 17524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17525#endif
554f62e9
RD
17526 }
17527 {
17528 if (temp1)
17529 delete arg1;
17530 }
17531 return resultobj;
17532fail:
17533 {
17534 if (temp1)
17535 delete arg1;
17536 }
17537 return NULL;
d55e5bfc
RD
17538}
17539
17540
554f62e9 17541SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17542 PyObject *resultobj = 0;
17543 wxString *arg1 = 0 ;
17544 wxString *arg2 = 0 ;
17545 wxString result;
17546 bool temp1 = false ;
17547 bool temp2 = false ;
17548
17549 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17550 {
17551 arg1 = wxString_in_helper(swig_obj[0]);
17552 if (arg1 == NULL) SWIG_fail;
17553 temp1 = true;
17554 }
17555 {
17556 arg2 = wxString_in_helper(swig_obj[1]);
17557 if (arg2 == NULL) SWIG_fail;
17558 temp2 = true;
17559 }
17560 {
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 {
17567#if wxUSE_UNICODE
17568 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17569#else
17570 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17571#endif
17572 }
17573 {
17574 if (temp1)
17575 delete arg1;
17576 }
17577 {
17578 if (temp2)
17579 delete arg2;
17580 }
17581 return resultobj;
17582fail:
17583 {
17584 if (temp1)
17585 delete arg1;
17586 }
17587 {
17588 if (temp2)
17589 delete arg2;
17590 }
17591 return NULL;
17592}
17593
17594
17595SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17596 PyObject *resultobj = 0;
17597 wxString *arg1 = 0 ;
17598 wxString *arg2 = 0 ;
17599 size_t arg3 ;
17600 wxString result;
17601 bool temp1 = false ;
17602 bool temp2 = false ;
17603 size_t val3 ;
17604 int ecode3 = 0 ;
17605
17606 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17607 {
17608 arg1 = wxString_in_helper(swig_obj[0]);
17609 if (arg1 == NULL) SWIG_fail;
17610 temp1 = true;
17611 }
17612 {
17613 arg2 = wxString_in_helper(swig_obj[1]);
17614 if (arg2 == NULL) SWIG_fail;
17615 temp2 = true;
17616 }
17617 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17618 if (!SWIG_IsOK(ecode3)) {
17619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17620 }
17621 arg3 = static_cast< size_t >(val3);
17622 {
17623 PyThreadState* __tstate = wxPyBeginAllowThreads();
17624 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17625 wxPyEndAllowThreads(__tstate);
17626 if (PyErr_Occurred()) SWIG_fail;
17627 }
17628 {
093d3ff1 17629#if wxUSE_UNICODE
554f62e9 17630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17631#else
554f62e9 17632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17633#endif
554f62e9
RD
17634 }
17635 {
17636 if (temp1)
17637 delete arg1;
17638 }
17639 {
17640 if (temp2)
17641 delete arg2;
17642 }
17643 return resultobj;
17644fail:
17645 {
17646 if (temp1)
17647 delete arg1;
17648 }
17649 {
17650 if (temp2)
17651 delete arg2;
17652 }
17653 return NULL;
d55e5bfc
RD
17654}
17655
17656
fc46b7f3
RD
17657SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17658 PyObject *resultobj = 0;
17659 wxString *arg1 = 0 ;
17660 wxString *arg2 = 0 ;
17661 size_t arg3 ;
17662 wxString *arg4 = 0 ;
17663 wxString result;
17664 bool temp1 = false ;
17665 bool temp2 = false ;
17666 size_t val3 ;
17667 int ecode3 = 0 ;
17668 bool temp4 = false ;
17669
17670 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17671 {
17672 arg1 = wxString_in_helper(swig_obj[0]);
17673 if (arg1 == NULL) SWIG_fail;
17674 temp1 = true;
17675 }
17676 {
17677 arg2 = wxString_in_helper(swig_obj[1]);
17678 if (arg2 == NULL) SWIG_fail;
17679 temp2 = true;
17680 }
17681 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17682 if (!SWIG_IsOK(ecode3)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17684 }
17685 arg3 = static_cast< size_t >(val3);
17686 {
17687 arg4 = wxString_in_helper(swig_obj[3]);
17688 if (arg4 == NULL) SWIG_fail;
17689 temp4 = true;
17690 }
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 {
17698#if wxUSE_UNICODE
17699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17700#else
17701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17702#endif
17703 }
17704 {
17705 if (temp1)
17706 delete arg1;
17707 }
17708 {
17709 if (temp2)
17710 delete arg2;
17711 }
17712 {
17713 if (temp4)
17714 delete arg4;
17715 }
17716 return resultobj;
17717fail:
17718 {
17719 if (temp1)
17720 delete arg1;
17721 }
17722 {
17723 if (temp2)
17724 delete arg2;
17725 }
17726 {
17727 if (temp4)
17728 delete arg4;
17729 }
17730 return NULL;
17731}
17732
17733
554f62e9
RD
17734SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17735 int argc;
fc46b7f3 17736 PyObject *argv[5];
554f62e9 17737
fc46b7f3 17738 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17739 --argc;
17740 if (argc == 1) {
17741 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17742 }
fc46b7f3 17743 if (argc == 2) {
554f62e9
RD
17744 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17745 }
fc46b7f3
RD
17746 if (argc == 3) {
17747 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17748 }
17749 if (argc == 4) {
17750 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17751 }
554f62e9
RD
17752
17753fail:
17754 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17755 return NULL;
d55e5bfc
RD
17756}
17757
17758
554f62e9
RD
17759SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17760 PyObject *resultobj = 0;
17761 wxEncodingConverter *result = 0 ;
17762
17763 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (wxEncodingConverter *)new wxEncodingConverter();
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17771 return resultobj;
17772fail:
17773 return NULL;
d55e5bfc
RD
17774}
17775
17776
554f62e9
RD
17777SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17778 PyObject *resultobj = 0;
17779 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17780 void *argp1 = 0 ;
17781 int res1 = 0 ;
17782 PyObject *swig_obj[1] ;
17783
17784 if (!args) SWIG_fail;
17785 swig_obj[0] = args;
17786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17787 if (!SWIG_IsOK(res1)) {
17788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17789 }
17790 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 delete arg1;
d55e5bfc 17794
554f62e9
RD
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 resultobj = SWIG_Py_Void();
17799 return resultobj;
17800fail:
17801 return NULL;
17802}
17803
17804
17805SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj = 0;
17807 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17808 wxFontEncoding arg2 ;
17809 wxFontEncoding arg3 ;
17810 int arg4 = (int) wxCONVERT_STRICT ;
17811 bool result;
17812 void *argp1 = 0 ;
17813 int res1 = 0 ;
17814 int val2 ;
17815 int ecode2 = 0 ;
17816 int val3 ;
17817 int ecode3 = 0 ;
17818 int val4 ;
17819 int ecode4 = 0 ;
17820 PyObject * obj0 = 0 ;
17821 PyObject * obj1 = 0 ;
17822 PyObject * obj2 = 0 ;
17823 PyObject * obj3 = 0 ;
17824 char * kwnames[] = {
17825 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17826 };
17827
17828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17830 if (!SWIG_IsOK(res1)) {
17831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17832 }
17833 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17834 ecode2 = SWIG_AsVal_int(obj1, &val2);
17835 if (!SWIG_IsOK(ecode2)) {
17836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17837 }
17838 arg2 = static_cast< wxFontEncoding >(val2);
17839 ecode3 = SWIG_AsVal_int(obj2, &val3);
17840 if (!SWIG_IsOK(ecode3)) {
17841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17842 }
17843 arg3 = static_cast< wxFontEncoding >(val3);
17844 if (obj3) {
17845 ecode4 = SWIG_AsVal_int(obj3, &val4);
17846 if (!SWIG_IsOK(ecode4)) {
17847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17848 }
17849 arg4 = static_cast< int >(val4);
17850 }
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17854 wxPyEndAllowThreads(__tstate);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 {
17858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17859 }
17860 return resultobj;
17861fail:
17862 return NULL;
17863}
17864
17865
17866SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj = 0;
17868 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17869 wxString *arg2 = 0 ;
17870 wxString result;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 bool temp2 = false ;
17874 PyObject * obj0 = 0 ;
17875 PyObject * obj1 = 0 ;
17876 char * kwnames[] = {
17877 (char *) "self",(char *) "input", NULL
17878 };
17879
17880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17882 if (!SWIG_IsOK(res1)) {
17883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17884 }
17885 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17886 {
17887 arg2 = wxString_in_helper(obj1);
17888 if (arg2 == NULL) SWIG_fail;
17889 temp2 = true;
17890 }
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = (arg1)->Convert((wxString const &)*arg2);
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 {
d55e5bfc 17898#if wxUSE_UNICODE
554f62e9 17899 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17900#else
554f62e9 17901 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17902#endif
554f62e9
RD
17903 }
17904 {
17905 if (temp2)
17906 delete arg2;
17907 }
17908 return resultobj;
17909fail:
17910 {
17911 if (temp2)
17912 delete arg2;
17913 }
17914 return NULL;
17915}
17916
17917
17918SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj = 0;
17920 wxFontEncoding arg1 ;
17921 int arg2 = (int) wxPLATFORM_CURRENT ;
17922 wxFontEncodingArray result;
17923 int val1 ;
17924 int ecode1 = 0 ;
17925 int val2 ;
17926 int ecode2 = 0 ;
17927 PyObject * obj0 = 0 ;
17928 PyObject * obj1 = 0 ;
17929 char * kwnames[] = {
17930 (char *) "enc",(char *) "platform", NULL
17931 };
17932
17933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17934 ecode1 = SWIG_AsVal_int(obj0, &val1);
17935 if (!SWIG_IsOK(ecode1)) {
17936 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17937 }
17938 arg1 = static_cast< wxFontEncoding >(val1);
17939 if (obj1) {
17940 ecode2 = SWIG_AsVal_int(obj1, &val2);
17941 if (!SWIG_IsOK(ecode2)) {
17942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17943 }
17944 arg2 = static_cast< int >(val2);
17945 }
17946 {
17947 PyThreadState* __tstate = wxPyBeginAllowThreads();
17948 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17949 wxPyEndAllowThreads(__tstate);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 }
17952 {
17953 resultobj = PyList_New(0);
17954 for (size_t i=0; i < (&result)->GetCount(); i++) {
17955 PyObject* number = PyInt_FromLong((&result)->Item(i));
17956 PyList_Append(resultobj, number);
17957 Py_DECREF(number);
d55e5bfc 17958 }
554f62e9
RD
17959 }
17960 return resultobj;
17961fail:
17962 return NULL;
d55e5bfc
RD
17963}
17964
17965
554f62e9
RD
17966SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj = 0;
17968 wxFontEncoding arg1 ;
17969 wxFontEncodingArray result;
17970 int val1 ;
17971 int ecode1 = 0 ;
17972 PyObject * obj0 = 0 ;
17973 char * kwnames[] = {
17974 (char *) "enc", NULL
17975 };
17976
17977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17978 ecode1 = SWIG_AsVal_int(obj0, &val1);
17979 if (!SWIG_IsOK(ecode1)) {
17980 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17981 }
17982 arg1 = static_cast< wxFontEncoding >(val1);
17983 {
17984 PyThreadState* __tstate = wxPyBeginAllowThreads();
17985 result = wxEncodingConverter::GetAllEquivalents(arg1);
17986 wxPyEndAllowThreads(__tstate);
17987 if (PyErr_Occurred()) SWIG_fail;
17988 }
17989 {
17990 resultobj = PyList_New(0);
17991 for (size_t i=0; i < (&result)->GetCount(); i++) {
17992 PyObject* number = PyInt_FromLong((&result)->Item(i));
17993 PyList_Append(resultobj, number);
17994 Py_DECREF(number);
d55e5bfc 17995 }
554f62e9
RD
17996 }
17997 return resultobj;
17998fail:
17999 return NULL;
18000}
18001
18002
18003SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18004 PyObject *resultobj = 0;
18005 wxFontEncoding arg1 ;
18006 wxFontEncoding arg2 ;
18007 bool result;
18008 int val1 ;
18009 int ecode1 = 0 ;
18010 int val2 ;
18011 int ecode2 = 0 ;
18012 PyObject * obj0 = 0 ;
18013 PyObject * obj1 = 0 ;
18014 char * kwnames[] = {
18015 (char *) "encIn",(char *) "encOut", NULL
18016 };
18017
18018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18019 ecode1 = SWIG_AsVal_int(obj0, &val1);
18020 if (!SWIG_IsOK(ecode1)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18022 }
18023 arg1 = static_cast< wxFontEncoding >(val1);
18024 ecode2 = SWIG_AsVal_int(obj1, &val2);
18025 if (!SWIG_IsOK(ecode2)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18027 }
18028 arg2 = static_cast< wxFontEncoding >(val2);
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18032 wxPyEndAllowThreads(__tstate);
18033 if (PyErr_Occurred()) SWIG_fail;
18034 }
18035 {
18036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18037 }
18038 return resultobj;
18039fail:
18040 return NULL;
d55e5bfc
RD
18041}
18042
18043
554f62e9
RD
18044SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18045 PyObject *obj;
18046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18047 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18048 return SWIG_Py_Void();
d55e5bfc
RD
18049}
18050
554f62e9
RD
18051SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18052 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
18053}
18054
554f62e9
RD
18055SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18056 PyObject *resultobj = 0;
18057 wxDC *arg1 = (wxDC *) 0 ;
18058 void *argp1 = 0 ;
18059 int res1 = 0 ;
18060 PyObject *swig_obj[1] ;
18061
18062 if (!args) SWIG_fail;
18063 swig_obj[0] = args;
18064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18065 if (!SWIG_IsOK(res1)) {
18066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18067 }
18068 arg1 = reinterpret_cast< wxDC * >(argp1);
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 delete arg1;
d55e5bfc 18072
554f62e9
RD
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 resultobj = SWIG_Py_Void();
18077 return resultobj;
18078fail:
18079 return NULL;
18080}
18081
18082
18083SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18084 PyObject *resultobj = 0;
18085 wxDC *arg1 = (wxDC *) 0 ;
18086 int arg2 ;
18087 int arg3 ;
18088 wxColour *arg4 = 0 ;
18089 int arg5 = (int) wxFLOOD_SURFACE ;
18090 bool result;
18091 void *argp1 = 0 ;
18092 int res1 = 0 ;
18093 int val2 ;
18094 int ecode2 = 0 ;
18095 int val3 ;
18096 int ecode3 = 0 ;
18097 wxColour temp4 ;
18098 int val5 ;
18099 int ecode5 = 0 ;
18100 PyObject * obj0 = 0 ;
18101 PyObject * obj1 = 0 ;
18102 PyObject * obj2 = 0 ;
18103 PyObject * obj3 = 0 ;
18104 PyObject * obj4 = 0 ;
18105 char * kwnames[] = {
18106 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18107 };
18108
18109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18111 if (!SWIG_IsOK(res1)) {
18112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18113 }
18114 arg1 = reinterpret_cast< wxDC * >(argp1);
18115 ecode2 = SWIG_AsVal_int(obj1, &val2);
18116 if (!SWIG_IsOK(ecode2)) {
18117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18118 }
18119 arg2 = static_cast< int >(val2);
18120 ecode3 = SWIG_AsVal_int(obj2, &val3);
18121 if (!SWIG_IsOK(ecode3)) {
18122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18123 }
18124 arg3 = static_cast< int >(val3);
18125 {
18126 arg4 = &temp4;
18127 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18128 }
18129 if (obj4) {
18130 ecode5 = SWIG_AsVal_int(obj4, &val5);
18131 if (!SWIG_IsOK(ecode5)) {
18132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18133 }
18134 arg5 = static_cast< int >(val5);
18135 }
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18139 wxPyEndAllowThreads(__tstate);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 {
18143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18144 }
18145 return resultobj;
18146fail:
18147 return NULL;
18148}
18149
18150
18151SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18152 PyObject *resultobj = 0;
18153 wxDC *arg1 = (wxDC *) 0 ;
18154 wxPoint *arg2 = 0 ;
18155 wxColour *arg3 = 0 ;
18156 int arg4 = (int) wxFLOOD_SURFACE ;
18157 bool result;
18158 void *argp1 = 0 ;
18159 int res1 = 0 ;
18160 wxPoint temp2 ;
18161 wxColour temp3 ;
18162 int val4 ;
18163 int ecode4 = 0 ;
18164 PyObject * obj0 = 0 ;
18165 PyObject * obj1 = 0 ;
18166 PyObject * obj2 = 0 ;
18167 PyObject * obj3 = 0 ;
18168 char * kwnames[] = {
18169 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18170 };
18171
18172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18174 if (!SWIG_IsOK(res1)) {
18175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18176 }
18177 arg1 = reinterpret_cast< wxDC * >(argp1);
18178 {
18179 arg2 = &temp2;
18180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18181 }
18182 {
18183 arg3 = &temp3;
18184 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18185 }
18186 if (obj3) {
18187 ecode4 = SWIG_AsVal_int(obj3, &val4);
18188 if (!SWIG_IsOK(ecode4)) {
18189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18190 }
18191 arg4 = static_cast< int >(val4);
18192 }
18193 {
18194 PyThreadState* __tstate = wxPyBeginAllowThreads();
18195 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 {
18200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18201 }
18202 return resultobj;
18203fail:
18204 return NULL;
18205}
18206
18207
18208SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18209 PyObject *resultobj = 0;
18210 wxDC *arg1 = (wxDC *) 0 ;
18211 wxRect *arg2 = 0 ;
18212 wxColour *arg3 = 0 ;
18213 wxColour *arg4 = 0 ;
18214 wxPoint *arg5 = 0 ;
18215 void *argp1 = 0 ;
18216 int res1 = 0 ;
18217 wxRect temp2 ;
18218 wxColour temp3 ;
18219 wxColour temp4 ;
18220 wxPoint temp5 ;
18221 PyObject * obj0 = 0 ;
18222 PyObject * obj1 = 0 ;
18223 PyObject * obj2 = 0 ;
18224 PyObject * obj3 = 0 ;
18225 PyObject * obj4 = 0 ;
18226 char * kwnames[] = {
18227 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18228 };
18229
18230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18232 if (!SWIG_IsOK(res1)) {
18233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18234 }
18235 arg1 = reinterpret_cast< wxDC * >(argp1);
18236 {
18237 arg2 = &temp2;
18238 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18239 }
18240 {
18241 arg3 = &temp3;
18242 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18243 }
18244 {
18245 arg4 = &temp4;
18246 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18247 }
18248 {
18249 arg5 = &temp5;
18250 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18251 }
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 resultobj = SWIG_Py_Void();
18259 return resultobj;
18260fail:
18261 return NULL;
18262}
18263
18264
18265SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18266 PyObject *resultobj = 0;
18267 wxDC *arg1 = (wxDC *) 0 ;
18268 wxRect *arg2 = 0 ;
18269 wxColour *arg3 = 0 ;
18270 wxColour *arg4 = 0 ;
18271 wxDirection arg5 = (wxDirection) wxEAST ;
18272 void *argp1 = 0 ;
18273 int res1 = 0 ;
18274 wxRect temp2 ;
18275 wxColour temp3 ;
18276 wxColour temp4 ;
18277 int val5 ;
18278 int ecode5 = 0 ;
18279 PyObject * obj0 = 0 ;
18280 PyObject * obj1 = 0 ;
18281 PyObject * obj2 = 0 ;
18282 PyObject * obj3 = 0 ;
18283 PyObject * obj4 = 0 ;
18284 char * kwnames[] = {
18285 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18286 };
18287
18288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18290 if (!SWIG_IsOK(res1)) {
18291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18292 }
18293 arg1 = reinterpret_cast< wxDC * >(argp1);
18294 {
18295 arg2 = &temp2;
18296 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18297 }
18298 {
18299 arg3 = &temp3;
18300 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18301 }
18302 {
18303 arg4 = &temp4;
18304 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18305 }
18306 if (obj4) {
18307 ecode5 = SWIG_AsVal_int(obj4, &val5);
18308 if (!SWIG_IsOK(ecode5)) {
18309 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18310 }
18311 arg5 = static_cast< wxDirection >(val5);
18312 }
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 resultobj = SWIG_Py_Void();
18320 return resultobj;
18321fail:
18322 return NULL;
18323}
18324
18325
18326SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj = 0;
18328 wxDC *arg1 = (wxDC *) 0 ;
18329 int arg2 ;
18330 int arg3 ;
18331 wxColour result;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 int val2 ;
18335 int ecode2 = 0 ;
18336 int val3 ;
18337 int ecode3 = 0 ;
18338 PyObject * obj0 = 0 ;
18339 PyObject * obj1 = 0 ;
18340 PyObject * obj2 = 0 ;
18341 char * kwnames[] = {
18342 (char *) "self",(char *) "x",(char *) "y", NULL
18343 };
18344
18345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18347 if (!SWIG_IsOK(res1)) {
18348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18349 }
18350 arg1 = reinterpret_cast< wxDC * >(argp1);
18351 ecode2 = SWIG_AsVal_int(obj1, &val2);
18352 if (!SWIG_IsOK(ecode2)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18354 }
18355 arg2 = static_cast< int >(val2);
18356 ecode3 = SWIG_AsVal_int(obj2, &val3);
18357 if (!SWIG_IsOK(ecode3)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18359 }
18360 arg3 = static_cast< int >(val3);
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 result = wxDC_GetPixel(arg1,arg2,arg3);
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18368 return resultobj;
18369fail:
18370 return NULL;
18371}
18372
18373
18374SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj = 0;
18376 wxDC *arg1 = (wxDC *) 0 ;
18377 wxPoint *arg2 = 0 ;
18378 wxColour result;
18379 void *argp1 = 0 ;
18380 int res1 = 0 ;
18381 wxPoint temp2 ;
18382 PyObject * obj0 = 0 ;
18383 PyObject * obj1 = 0 ;
18384 char * kwnames[] = {
18385 (char *) "self",(char *) "pt", NULL
18386 };
18387
18388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18390 if (!SWIG_IsOK(res1)) {
18391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18392 }
18393 arg1 = reinterpret_cast< wxDC * >(argp1);
18394 {
18395 arg2 = &temp2;
18396 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18397 }
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18405 return resultobj;
18406fail:
18407 return NULL;
18408}
18409
18410
18411SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18412 PyObject *resultobj = 0;
18413 wxDC *arg1 = (wxDC *) 0 ;
18414 int arg2 ;
18415 int arg3 ;
18416 int arg4 ;
18417 int arg5 ;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 int val2 ;
18421 int ecode2 = 0 ;
18422 int val3 ;
18423 int ecode3 = 0 ;
18424 int val4 ;
18425 int ecode4 = 0 ;
18426 int val5 ;
18427 int ecode5 = 0 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 PyObject * obj2 = 0 ;
18431 PyObject * obj3 = 0 ;
18432 PyObject * obj4 = 0 ;
18433 char * kwnames[] = {
18434 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18435 };
18436
18437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18439 if (!SWIG_IsOK(res1)) {
18440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18441 }
18442 arg1 = reinterpret_cast< wxDC * >(argp1);
18443 ecode2 = SWIG_AsVal_int(obj1, &val2);
18444 if (!SWIG_IsOK(ecode2)) {
18445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18446 }
18447 arg2 = static_cast< int >(val2);
18448 ecode3 = SWIG_AsVal_int(obj2, &val3);
18449 if (!SWIG_IsOK(ecode3)) {
18450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18451 }
18452 arg3 = static_cast< int >(val3);
18453 ecode4 = SWIG_AsVal_int(obj3, &val4);
18454 if (!SWIG_IsOK(ecode4)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18456 }
18457 arg4 = static_cast< int >(val4);
18458 ecode5 = SWIG_AsVal_int(obj4, &val5);
18459 if (!SWIG_IsOK(ecode5)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18461 }
18462 arg5 = static_cast< int >(val5);
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_Py_Void();
18470 return resultobj;
18471fail:
18472 return NULL;
18473}
18474
18475
18476SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj = 0;
18478 wxDC *arg1 = (wxDC *) 0 ;
18479 wxPoint *arg2 = 0 ;
18480 wxPoint *arg3 = 0 ;
18481 void *argp1 = 0 ;
18482 int res1 = 0 ;
18483 wxPoint temp2 ;
18484 wxPoint temp3 ;
18485 PyObject * obj0 = 0 ;
18486 PyObject * obj1 = 0 ;
18487 PyObject * obj2 = 0 ;
18488 char * kwnames[] = {
18489 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18490 };
18491
18492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18494 if (!SWIG_IsOK(res1)) {
18495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18496 }
18497 arg1 = reinterpret_cast< wxDC * >(argp1);
18498 {
18499 arg2 = &temp2;
18500 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18501 }
18502 {
18503 arg3 = &temp3;
18504 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18505 }
18506 {
18507 PyThreadState* __tstate = wxPyBeginAllowThreads();
18508 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18509 wxPyEndAllowThreads(__tstate);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 }
18512 resultobj = SWIG_Py_Void();
18513 return resultobj;
18514fail:
18515 return NULL;
18516}
18517
18518
18519SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18520 PyObject *resultobj = 0;
18521 wxDC *arg1 = (wxDC *) 0 ;
18522 int arg2 ;
18523 int arg3 ;
18524 void *argp1 = 0 ;
18525 int res1 = 0 ;
18526 int val2 ;
18527 int ecode2 = 0 ;
18528 int val3 ;
18529 int ecode3 = 0 ;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 PyObject * obj2 = 0 ;
18533 char * kwnames[] = {
18534 (char *) "self",(char *) "x",(char *) "y", NULL
18535 };
18536
18537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18539 if (!SWIG_IsOK(res1)) {
18540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18541 }
18542 arg1 = reinterpret_cast< wxDC * >(argp1);
18543 ecode2 = SWIG_AsVal_int(obj1, &val2);
18544 if (!SWIG_IsOK(ecode2)) {
18545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18546 }
18547 arg2 = static_cast< int >(val2);
18548 ecode3 = SWIG_AsVal_int(obj2, &val3);
18549 if (!SWIG_IsOK(ecode3)) {
18550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18551 }
18552 arg3 = static_cast< int >(val3);
18553 {
18554 PyThreadState* __tstate = wxPyBeginAllowThreads();
18555 (arg1)->CrossHair(arg2,arg3);
18556 wxPyEndAllowThreads(__tstate);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 }
18559 resultobj = SWIG_Py_Void();
18560 return resultobj;
18561fail:
18562 return NULL;
18563}
18564
18565
18566SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18567 PyObject *resultobj = 0;
18568 wxDC *arg1 = (wxDC *) 0 ;
18569 wxPoint *arg2 = 0 ;
18570 void *argp1 = 0 ;
18571 int res1 = 0 ;
18572 wxPoint temp2 ;
18573 PyObject * obj0 = 0 ;
18574 PyObject * obj1 = 0 ;
18575 char * kwnames[] = {
18576 (char *) "self",(char *) "pt", NULL
18577 };
18578
18579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18581 if (!SWIG_IsOK(res1)) {
18582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18583 }
18584 arg1 = reinterpret_cast< wxDC * >(argp1);
18585 {
18586 arg2 = &temp2;
18587 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18588 }
18589 {
18590 PyThreadState* __tstate = wxPyBeginAllowThreads();
18591 (arg1)->CrossHair((wxPoint const &)*arg2);
18592 wxPyEndAllowThreads(__tstate);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 resultobj = SWIG_Py_Void();
18596 return resultobj;
18597fail:
18598 return NULL;
18599}
18600
18601
18602SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj = 0;
18604 wxDC *arg1 = (wxDC *) 0 ;
18605 int arg2 ;
18606 int arg3 ;
18607 int arg4 ;
18608 int arg5 ;
18609 int arg6 ;
18610 int arg7 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 int val2 ;
18614 int ecode2 = 0 ;
18615 int val3 ;
18616 int ecode3 = 0 ;
18617 int val4 ;
18618 int ecode4 = 0 ;
18619 int val5 ;
18620 int ecode5 = 0 ;
18621 int val6 ;
18622 int ecode6 = 0 ;
18623 int val7 ;
18624 int ecode7 = 0 ;
18625 PyObject * obj0 = 0 ;
18626 PyObject * obj1 = 0 ;
18627 PyObject * obj2 = 0 ;
18628 PyObject * obj3 = 0 ;
18629 PyObject * obj4 = 0 ;
18630 PyObject * obj5 = 0 ;
18631 PyObject * obj6 = 0 ;
18632 char * kwnames[] = {
18633 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18634 };
18635
18636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18638 if (!SWIG_IsOK(res1)) {
18639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18640 }
18641 arg1 = reinterpret_cast< wxDC * >(argp1);
18642 ecode2 = SWIG_AsVal_int(obj1, &val2);
18643 if (!SWIG_IsOK(ecode2)) {
18644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18645 }
18646 arg2 = static_cast< int >(val2);
18647 ecode3 = SWIG_AsVal_int(obj2, &val3);
18648 if (!SWIG_IsOK(ecode3)) {
18649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18650 }
18651 arg3 = static_cast< int >(val3);
18652 ecode4 = SWIG_AsVal_int(obj3, &val4);
18653 if (!SWIG_IsOK(ecode4)) {
18654 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18655 }
18656 arg4 = static_cast< int >(val4);
18657 ecode5 = SWIG_AsVal_int(obj4, &val5);
18658 if (!SWIG_IsOK(ecode5)) {
18659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18660 }
18661 arg5 = static_cast< int >(val5);
18662 ecode6 = SWIG_AsVal_int(obj5, &val6);
18663 if (!SWIG_IsOK(ecode6)) {
18664 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18665 }
18666 arg6 = static_cast< int >(val6);
18667 ecode7 = SWIG_AsVal_int(obj6, &val7);
18668 if (!SWIG_IsOK(ecode7)) {
18669 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18670 }
18671 arg7 = static_cast< int >(val7);
18672 {
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18675 wxPyEndAllowThreads(__tstate);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 }
18678 resultobj = SWIG_Py_Void();
18679 return resultobj;
18680fail:
18681 return NULL;
18682}
18683
18684
18685SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj = 0;
18687 wxDC *arg1 = (wxDC *) 0 ;
18688 wxPoint *arg2 = 0 ;
18689 wxPoint *arg3 = 0 ;
18690 wxPoint *arg4 = 0 ;
18691 void *argp1 = 0 ;
18692 int res1 = 0 ;
18693 wxPoint temp2 ;
18694 wxPoint temp3 ;
18695 wxPoint temp4 ;
18696 PyObject * obj0 = 0 ;
18697 PyObject * obj1 = 0 ;
18698 PyObject * obj2 = 0 ;
18699 PyObject * obj3 = 0 ;
18700 char * kwnames[] = {
18701 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18702 };
18703
18704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18706 if (!SWIG_IsOK(res1)) {
18707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18708 }
18709 arg1 = reinterpret_cast< wxDC * >(argp1);
18710 {
18711 arg2 = &temp2;
18712 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18713 }
18714 {
18715 arg3 = &temp3;
18716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18717 }
18718 {
18719 arg4 = &temp4;
18720 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18721 }
18722 {
18723 PyThreadState* __tstate = wxPyBeginAllowThreads();
18724 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18725 wxPyEndAllowThreads(__tstate);
18726 if (PyErr_Occurred()) SWIG_fail;
18727 }
18728 resultobj = SWIG_Py_Void();
18729 return resultobj;
18730fail:
18731 return NULL;
18732}
18733
18734
18735SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18736 PyObject *resultobj = 0;
18737 wxDC *arg1 = (wxDC *) 0 ;
18738 int arg2 ;
18739 int arg3 ;
18740 int arg4 ;
18741 int arg5 ;
18742 void *argp1 = 0 ;
18743 int res1 = 0 ;
18744 int val2 ;
18745 int ecode2 = 0 ;
18746 int val3 ;
18747 int ecode3 = 0 ;
18748 int val4 ;
18749 int ecode4 = 0 ;
18750 int val5 ;
18751 int ecode5 = 0 ;
18752 PyObject * obj0 = 0 ;
18753 PyObject * obj1 = 0 ;
18754 PyObject * obj2 = 0 ;
18755 PyObject * obj3 = 0 ;
18756 PyObject * obj4 = 0 ;
18757 char * kwnames[] = {
18758 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18759 };
18760
18761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18763 if (!SWIG_IsOK(res1)) {
18764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18765 }
18766 arg1 = reinterpret_cast< wxDC * >(argp1);
18767 ecode2 = SWIG_AsVal_int(obj1, &val2);
18768 if (!SWIG_IsOK(ecode2)) {
18769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18770 }
18771 arg2 = static_cast< int >(val2);
18772 ecode3 = SWIG_AsVal_int(obj2, &val3);
18773 if (!SWIG_IsOK(ecode3)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18775 }
18776 arg3 = static_cast< int >(val3);
18777 ecode4 = SWIG_AsVal_int(obj3, &val4);
18778 if (!SWIG_IsOK(ecode4)) {
18779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18780 }
18781 arg4 = static_cast< int >(val4);
18782 ecode5 = SWIG_AsVal_int(obj4, &val5);
18783 if (!SWIG_IsOK(ecode5)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18785 }
18786 arg5 = static_cast< int >(val5);
18787 {
18788 PyThreadState* __tstate = wxPyBeginAllowThreads();
18789 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18790 wxPyEndAllowThreads(__tstate);
18791 if (PyErr_Occurred()) SWIG_fail;
18792 }
18793 resultobj = SWIG_Py_Void();
18794 return resultobj;
18795fail:
18796 return NULL;
18797}
18798
18799
18800SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18801 PyObject *resultobj = 0;
18802 wxDC *arg1 = (wxDC *) 0 ;
18803 wxRect *arg2 = 0 ;
18804 void *argp1 = 0 ;
18805 int res1 = 0 ;
18806 wxRect temp2 ;
18807 PyObject * obj0 = 0 ;
18808 PyObject * obj1 = 0 ;
18809 char * kwnames[] = {
18810 (char *) "self",(char *) "rect", NULL
18811 };
18812
18813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18815 if (!SWIG_IsOK(res1)) {
18816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18817 }
18818 arg1 = reinterpret_cast< wxDC * >(argp1);
18819 {
18820 arg2 = &temp2;
18821 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18822 }
18823 {
18824 PyThreadState* __tstate = wxPyBeginAllowThreads();
18825 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18826 wxPyEndAllowThreads(__tstate);
18827 if (PyErr_Occurred()) SWIG_fail;
18828 }
18829 resultobj = SWIG_Py_Void();
18830 return resultobj;
18831fail:
18832 return NULL;
18833}
18834
18835
18836SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18837 PyObject *resultobj = 0;
18838 wxDC *arg1 = (wxDC *) 0 ;
18839 int arg2 ;
18840 int arg3 ;
18841 int arg4 ;
18842 int arg5 ;
18843 double arg6 ;
18844 double arg7 ;
18845 void *argp1 = 0 ;
18846 int res1 = 0 ;
18847 int val2 ;
18848 int ecode2 = 0 ;
18849 int val3 ;
18850 int ecode3 = 0 ;
18851 int val4 ;
18852 int ecode4 = 0 ;
18853 int val5 ;
18854 int ecode5 = 0 ;
18855 double val6 ;
18856 int ecode6 = 0 ;
18857 double val7 ;
18858 int ecode7 = 0 ;
18859 PyObject * obj0 = 0 ;
18860 PyObject * obj1 = 0 ;
18861 PyObject * obj2 = 0 ;
18862 PyObject * obj3 = 0 ;
18863 PyObject * obj4 = 0 ;
18864 PyObject * obj5 = 0 ;
18865 PyObject * obj6 = 0 ;
18866 char * kwnames[] = {
18867 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18868 };
18869
18870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18872 if (!SWIG_IsOK(res1)) {
18873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18874 }
18875 arg1 = reinterpret_cast< wxDC * >(argp1);
18876 ecode2 = SWIG_AsVal_int(obj1, &val2);
18877 if (!SWIG_IsOK(ecode2)) {
18878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18879 }
18880 arg2 = static_cast< int >(val2);
18881 ecode3 = SWIG_AsVal_int(obj2, &val3);
18882 if (!SWIG_IsOK(ecode3)) {
18883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18884 }
18885 arg3 = static_cast< int >(val3);
18886 ecode4 = SWIG_AsVal_int(obj3, &val4);
18887 if (!SWIG_IsOK(ecode4)) {
18888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18889 }
18890 arg4 = static_cast< int >(val4);
18891 ecode5 = SWIG_AsVal_int(obj4, &val5);
18892 if (!SWIG_IsOK(ecode5)) {
18893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18894 }
18895 arg5 = static_cast< int >(val5);
18896 ecode6 = SWIG_AsVal_double(obj5, &val6);
18897 if (!SWIG_IsOK(ecode6)) {
18898 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18899 }
18900 arg6 = static_cast< double >(val6);
18901 ecode7 = SWIG_AsVal_double(obj6, &val7);
18902 if (!SWIG_IsOK(ecode7)) {
18903 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18904 }
18905 arg7 = static_cast< double >(val7);
18906 {
18907 PyThreadState* __tstate = wxPyBeginAllowThreads();
18908 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18909 wxPyEndAllowThreads(__tstate);
18910 if (PyErr_Occurred()) SWIG_fail;
18911 }
18912 resultobj = SWIG_Py_Void();
18913 return resultobj;
18914fail:
18915 return NULL;
18916}
18917
18918
18919SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18920 PyObject *resultobj = 0;
18921 wxDC *arg1 = (wxDC *) 0 ;
18922 wxPoint *arg2 = 0 ;
18923 wxSize *arg3 = 0 ;
18924 double arg4 ;
18925 double arg5 ;
18926 void *argp1 = 0 ;
18927 int res1 = 0 ;
18928 wxPoint temp2 ;
18929 wxSize temp3 ;
18930 double val4 ;
18931 int ecode4 = 0 ;
18932 double val5 ;
18933 int ecode5 = 0 ;
18934 PyObject * obj0 = 0 ;
18935 PyObject * obj1 = 0 ;
18936 PyObject * obj2 = 0 ;
18937 PyObject * obj3 = 0 ;
18938 PyObject * obj4 = 0 ;
18939 char * kwnames[] = {
18940 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18941 };
18942
18943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18947 }
18948 arg1 = reinterpret_cast< wxDC * >(argp1);
18949 {
18950 arg2 = &temp2;
18951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18952 }
18953 {
18954 arg3 = &temp3;
18955 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18956 }
18957 ecode4 = SWIG_AsVal_double(obj3, &val4);
18958 if (!SWIG_IsOK(ecode4)) {
18959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18960 }
18961 arg4 = static_cast< double >(val4);
18962 ecode5 = SWIG_AsVal_double(obj4, &val5);
18963 if (!SWIG_IsOK(ecode5)) {
18964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18965 }
18966 arg5 = static_cast< double >(val5);
18967 {
18968 PyThreadState* __tstate = wxPyBeginAllowThreads();
18969 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18970 wxPyEndAllowThreads(__tstate);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
18973 resultobj = SWIG_Py_Void();
18974 return resultobj;
18975fail:
18976 return NULL;
18977}
18978
18979
18980SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj = 0;
18982 wxDC *arg1 = (wxDC *) 0 ;
18983 int arg2 ;
18984 int arg3 ;
18985 void *argp1 = 0 ;
18986 int res1 = 0 ;
18987 int val2 ;
18988 int ecode2 = 0 ;
18989 int val3 ;
18990 int ecode3 = 0 ;
18991 PyObject * obj0 = 0 ;
18992 PyObject * obj1 = 0 ;
18993 PyObject * obj2 = 0 ;
18994 char * kwnames[] = {
18995 (char *) "self",(char *) "x",(char *) "y", NULL
18996 };
18997
18998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19000 if (!SWIG_IsOK(res1)) {
19001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19002 }
19003 arg1 = reinterpret_cast< wxDC * >(argp1);
19004 ecode2 = SWIG_AsVal_int(obj1, &val2);
19005 if (!SWIG_IsOK(ecode2)) {
19006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19007 }
19008 arg2 = static_cast< int >(val2);
19009 ecode3 = SWIG_AsVal_int(obj2, &val3);
19010 if (!SWIG_IsOK(ecode3)) {
19011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19012 }
19013 arg3 = static_cast< int >(val3);
19014 {
19015 PyThreadState* __tstate = wxPyBeginAllowThreads();
19016 (arg1)->DrawPoint(arg2,arg3);
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 resultobj = SWIG_Py_Void();
19021 return resultobj;
19022fail:
19023 return NULL;
19024}
19025
19026
19027SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19028 PyObject *resultobj = 0;
19029 wxDC *arg1 = (wxDC *) 0 ;
19030 wxPoint *arg2 = 0 ;
19031 void *argp1 = 0 ;
19032 int res1 = 0 ;
19033 wxPoint temp2 ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char * kwnames[] = {
19037 (char *) "self",(char *) "pt", NULL
19038 };
19039
19040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19042 if (!SWIG_IsOK(res1)) {
19043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19044 }
19045 arg1 = reinterpret_cast< wxDC * >(argp1);
19046 {
19047 arg2 = &temp2;
19048 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19049 }
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
19052 (arg1)->DrawPoint((wxPoint const &)*arg2);
19053 wxPyEndAllowThreads(__tstate);
19054 if (PyErr_Occurred()) SWIG_fail;
19055 }
19056 resultobj = SWIG_Py_Void();
19057 return resultobj;
19058fail:
19059 return NULL;
19060}
19061
19062
19063SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19064 PyObject *resultobj = 0;
19065 wxDC *arg1 = (wxDC *) 0 ;
19066 int arg2 ;
19067 int arg3 ;
19068 int arg4 ;
19069 int arg5 ;
19070 void *argp1 = 0 ;
19071 int res1 = 0 ;
19072 int val2 ;
19073 int ecode2 = 0 ;
19074 int val3 ;
19075 int ecode3 = 0 ;
19076 int val4 ;
19077 int ecode4 = 0 ;
19078 int val5 ;
19079 int ecode5 = 0 ;
19080 PyObject * obj0 = 0 ;
19081 PyObject * obj1 = 0 ;
19082 PyObject * obj2 = 0 ;
19083 PyObject * obj3 = 0 ;
19084 PyObject * obj4 = 0 ;
19085 char * kwnames[] = {
19086 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19087 };
19088
19089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19091 if (!SWIG_IsOK(res1)) {
19092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19093 }
19094 arg1 = reinterpret_cast< wxDC * >(argp1);
19095 ecode2 = SWIG_AsVal_int(obj1, &val2);
19096 if (!SWIG_IsOK(ecode2)) {
19097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19098 }
19099 arg2 = static_cast< int >(val2);
19100 ecode3 = SWIG_AsVal_int(obj2, &val3);
19101 if (!SWIG_IsOK(ecode3)) {
19102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19103 }
19104 arg3 = static_cast< int >(val3);
19105 ecode4 = SWIG_AsVal_int(obj3, &val4);
19106 if (!SWIG_IsOK(ecode4)) {
19107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19108 }
19109 arg4 = static_cast< int >(val4);
19110 ecode5 = SWIG_AsVal_int(obj4, &val5);
19111 if (!SWIG_IsOK(ecode5)) {
19112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19113 }
19114 arg5 = static_cast< int >(val5);
19115 {
19116 PyThreadState* __tstate = wxPyBeginAllowThreads();
19117 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 resultobj = SWIG_Py_Void();
19122 return resultobj;
19123fail:
19124 return NULL;
19125}
19126
19127
19128SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj = 0;
19130 wxDC *arg1 = (wxDC *) 0 ;
19131 wxRect *arg2 = 0 ;
19132 void *argp1 = 0 ;
19133 int res1 = 0 ;
19134 wxRect temp2 ;
19135 PyObject * obj0 = 0 ;
19136 PyObject * obj1 = 0 ;
19137 char * kwnames[] = {
19138 (char *) "self",(char *) "rect", NULL
19139 };
19140
19141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19143 if (!SWIG_IsOK(res1)) {
19144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19145 }
19146 arg1 = reinterpret_cast< wxDC * >(argp1);
19147 {
19148 arg2 = &temp2;
19149 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19150 }
19151 {
19152 PyThreadState* __tstate = wxPyBeginAllowThreads();
19153 (arg1)->DrawRectangle((wxRect const &)*arg2);
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 resultobj = SWIG_Py_Void();
19158 return resultobj;
19159fail:
19160 return NULL;
19161}
19162
19163
19164SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19165 PyObject *resultobj = 0;
19166 wxDC *arg1 = (wxDC *) 0 ;
19167 wxPoint *arg2 = 0 ;
19168 wxSize *arg3 = 0 ;
19169 void *argp1 = 0 ;
19170 int res1 = 0 ;
19171 wxPoint temp2 ;
19172 wxSize temp3 ;
19173 PyObject * obj0 = 0 ;
19174 PyObject * obj1 = 0 ;
19175 PyObject * obj2 = 0 ;
19176 char * kwnames[] = {
19177 (char *) "self",(char *) "pt",(char *) "sz", NULL
19178 };
19179
19180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19182 if (!SWIG_IsOK(res1)) {
19183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19184 }
19185 arg1 = reinterpret_cast< wxDC * >(argp1);
19186 {
19187 arg2 = &temp2;
19188 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19189 }
19190 {
19191 arg3 = &temp3;
19192 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19193 }
19194 {
19195 PyThreadState* __tstate = wxPyBeginAllowThreads();
19196 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19197 wxPyEndAllowThreads(__tstate);
19198 if (PyErr_Occurred()) SWIG_fail;
19199 }
19200 resultobj = SWIG_Py_Void();
19201 return resultobj;
19202fail:
19203 return NULL;
19204}
19205
19206
19207SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19208 PyObject *resultobj = 0;
19209 wxDC *arg1 = (wxDC *) 0 ;
19210 int arg2 ;
19211 int arg3 ;
19212 int arg4 ;
19213 int arg5 ;
19214 double arg6 ;
19215 void *argp1 = 0 ;
19216 int res1 = 0 ;
19217 int val2 ;
19218 int ecode2 = 0 ;
19219 int val3 ;
19220 int ecode3 = 0 ;
19221 int val4 ;
19222 int ecode4 = 0 ;
19223 int val5 ;
19224 int ecode5 = 0 ;
19225 double val6 ;
19226 int ecode6 = 0 ;
19227 PyObject * obj0 = 0 ;
19228 PyObject * obj1 = 0 ;
19229 PyObject * obj2 = 0 ;
19230 PyObject * obj3 = 0 ;
19231 PyObject * obj4 = 0 ;
19232 PyObject * obj5 = 0 ;
19233 char * kwnames[] = {
19234 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19235 };
19236
19237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19239 if (!SWIG_IsOK(res1)) {
19240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19241 }
19242 arg1 = reinterpret_cast< wxDC * >(argp1);
19243 ecode2 = SWIG_AsVal_int(obj1, &val2);
19244 if (!SWIG_IsOK(ecode2)) {
19245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19246 }
19247 arg2 = static_cast< int >(val2);
19248 ecode3 = SWIG_AsVal_int(obj2, &val3);
19249 if (!SWIG_IsOK(ecode3)) {
19250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19251 }
19252 arg3 = static_cast< int >(val3);
19253 ecode4 = SWIG_AsVal_int(obj3, &val4);
19254 if (!SWIG_IsOK(ecode4)) {
19255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19256 }
19257 arg4 = static_cast< int >(val4);
19258 ecode5 = SWIG_AsVal_int(obj4, &val5);
19259 if (!SWIG_IsOK(ecode5)) {
19260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19261 }
19262 arg5 = static_cast< int >(val5);
19263 ecode6 = SWIG_AsVal_double(obj5, &val6);
19264 if (!SWIG_IsOK(ecode6)) {
19265 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19266 }
19267 arg6 = static_cast< double >(val6);
19268 {
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19271 wxPyEndAllowThreads(__tstate);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 }
19274 resultobj = SWIG_Py_Void();
19275 return resultobj;
19276fail:
19277 return NULL;
19278}
19279
19280
19281SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19282 PyObject *resultobj = 0;
19283 wxDC *arg1 = (wxDC *) 0 ;
19284 wxRect *arg2 = 0 ;
19285 double arg3 ;
19286 void *argp1 = 0 ;
19287 int res1 = 0 ;
19288 wxRect temp2 ;
19289 double val3 ;
19290 int ecode3 = 0 ;
19291 PyObject * obj0 = 0 ;
19292 PyObject * obj1 = 0 ;
19293 PyObject * obj2 = 0 ;
19294 char * kwnames[] = {
19295 (char *) "self",(char *) "r",(char *) "radius", NULL
19296 };
19297
19298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19300 if (!SWIG_IsOK(res1)) {
19301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19302 }
19303 arg1 = reinterpret_cast< wxDC * >(argp1);
19304 {
19305 arg2 = &temp2;
19306 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19307 }
19308 ecode3 = SWIG_AsVal_double(obj2, &val3);
19309 if (!SWIG_IsOK(ecode3)) {
19310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19311 }
19312 arg3 = static_cast< double >(val3);
19313 {
19314 PyThreadState* __tstate = wxPyBeginAllowThreads();
19315 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19316 wxPyEndAllowThreads(__tstate);
19317 if (PyErr_Occurred()) SWIG_fail;
19318 }
19319 resultobj = SWIG_Py_Void();
19320 return resultobj;
19321fail:
19322 return NULL;
19323}
19324
19325
19326SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19327 PyObject *resultobj = 0;
19328 wxDC *arg1 = (wxDC *) 0 ;
19329 wxPoint *arg2 = 0 ;
19330 wxSize *arg3 = 0 ;
19331 double arg4 ;
19332 void *argp1 = 0 ;
19333 int res1 = 0 ;
19334 wxPoint temp2 ;
19335 wxSize temp3 ;
19336 double val4 ;
19337 int ecode4 = 0 ;
19338 PyObject * obj0 = 0 ;
19339 PyObject * obj1 = 0 ;
19340 PyObject * obj2 = 0 ;
19341 PyObject * obj3 = 0 ;
19342 char * kwnames[] = {
19343 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19344 };
19345
19346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19348 if (!SWIG_IsOK(res1)) {
19349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19350 }
19351 arg1 = reinterpret_cast< wxDC * >(argp1);
19352 {
19353 arg2 = &temp2;
19354 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19355 }
19356 {
19357 arg3 = &temp3;
19358 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19359 }
19360 ecode4 = SWIG_AsVal_double(obj3, &val4);
19361 if (!SWIG_IsOK(ecode4)) {
19362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19363 }
19364 arg4 = static_cast< double >(val4);
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 resultobj = SWIG_Py_Void();
19372 return resultobj;
19373fail:
19374 return NULL;
19375}
19376
19377
19378SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj = 0;
19380 wxDC *arg1 = (wxDC *) 0 ;
19381 int arg2 ;
19382 int arg3 ;
19383 int arg4 ;
19384 void *argp1 = 0 ;
19385 int res1 = 0 ;
19386 int val2 ;
19387 int ecode2 = 0 ;
19388 int val3 ;
19389 int ecode3 = 0 ;
19390 int val4 ;
19391 int ecode4 = 0 ;
19392 PyObject * obj0 = 0 ;
19393 PyObject * obj1 = 0 ;
19394 PyObject * obj2 = 0 ;
19395 PyObject * obj3 = 0 ;
19396 char * kwnames[] = {
19397 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19398 };
19399
19400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19402 if (!SWIG_IsOK(res1)) {
19403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19404 }
19405 arg1 = reinterpret_cast< wxDC * >(argp1);
19406 ecode2 = SWIG_AsVal_int(obj1, &val2);
19407 if (!SWIG_IsOK(ecode2)) {
19408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19409 }
19410 arg2 = static_cast< int >(val2);
19411 ecode3 = SWIG_AsVal_int(obj2, &val3);
19412 if (!SWIG_IsOK(ecode3)) {
19413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19414 }
19415 arg3 = static_cast< int >(val3);
19416 ecode4 = SWIG_AsVal_int(obj3, &val4);
19417 if (!SWIG_IsOK(ecode4)) {
19418 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19419 }
19420 arg4 = static_cast< int >(val4);
19421 {
19422 PyThreadState* __tstate = wxPyBeginAllowThreads();
19423 (arg1)->DrawCircle(arg2,arg3,arg4);
19424 wxPyEndAllowThreads(__tstate);
19425 if (PyErr_Occurred()) SWIG_fail;
19426 }
19427 resultobj = SWIG_Py_Void();
19428 return resultobj;
19429fail:
19430 return NULL;
19431}
19432
19433
19434SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj = 0;
19436 wxDC *arg1 = (wxDC *) 0 ;
19437 wxPoint *arg2 = 0 ;
19438 int arg3 ;
19439 void *argp1 = 0 ;
19440 int res1 = 0 ;
19441 wxPoint temp2 ;
19442 int val3 ;
19443 int ecode3 = 0 ;
19444 PyObject * obj0 = 0 ;
19445 PyObject * obj1 = 0 ;
19446 PyObject * obj2 = 0 ;
19447 char * kwnames[] = {
19448 (char *) "self",(char *) "pt",(char *) "radius", NULL
19449 };
19450
19451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19453 if (!SWIG_IsOK(res1)) {
19454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19455 }
19456 arg1 = reinterpret_cast< wxDC * >(argp1);
19457 {
19458 arg2 = &temp2;
19459 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19460 }
19461 ecode3 = SWIG_AsVal_int(obj2, &val3);
19462 if (!SWIG_IsOK(ecode3)) {
19463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19464 }
19465 arg3 = static_cast< int >(val3);
19466 {
19467 PyThreadState* __tstate = wxPyBeginAllowThreads();
19468 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 resultobj = SWIG_Py_Void();
19473 return resultobj;
19474fail:
19475 return NULL;
19476}
19477
19478
19479SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19480 PyObject *resultobj = 0;
19481 wxDC *arg1 = (wxDC *) 0 ;
19482 int arg2 ;
19483 int arg3 ;
19484 int arg4 ;
19485 int arg5 ;
19486 void *argp1 = 0 ;
19487 int res1 = 0 ;
19488 int val2 ;
19489 int ecode2 = 0 ;
19490 int val3 ;
19491 int ecode3 = 0 ;
19492 int val4 ;
19493 int ecode4 = 0 ;
19494 int val5 ;
19495 int ecode5 = 0 ;
19496 PyObject * obj0 = 0 ;
19497 PyObject * obj1 = 0 ;
19498 PyObject * obj2 = 0 ;
19499 PyObject * obj3 = 0 ;
19500 PyObject * obj4 = 0 ;
19501 char * kwnames[] = {
19502 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19503 };
19504
19505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19507 if (!SWIG_IsOK(res1)) {
19508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19509 }
19510 arg1 = reinterpret_cast< wxDC * >(argp1);
19511 ecode2 = SWIG_AsVal_int(obj1, &val2);
19512 if (!SWIG_IsOK(ecode2)) {
19513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19514 }
19515 arg2 = static_cast< int >(val2);
19516 ecode3 = SWIG_AsVal_int(obj2, &val3);
19517 if (!SWIG_IsOK(ecode3)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19519 }
19520 arg3 = static_cast< int >(val3);
19521 ecode4 = SWIG_AsVal_int(obj3, &val4);
19522 if (!SWIG_IsOK(ecode4)) {
19523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19524 }
19525 arg4 = static_cast< int >(val4);
19526 ecode5 = SWIG_AsVal_int(obj4, &val5);
19527 if (!SWIG_IsOK(ecode5)) {
19528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19529 }
19530 arg5 = static_cast< int >(val5);
19531 {
19532 PyThreadState* __tstate = wxPyBeginAllowThreads();
19533 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19534 wxPyEndAllowThreads(__tstate);
19535 if (PyErr_Occurred()) SWIG_fail;
19536 }
19537 resultobj = SWIG_Py_Void();
19538 return resultobj;
19539fail:
19540 return NULL;
19541}
19542
19543
19544SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj = 0;
19546 wxDC *arg1 = (wxDC *) 0 ;
19547 wxRect *arg2 = 0 ;
19548 void *argp1 = 0 ;
19549 int res1 = 0 ;
19550 wxRect temp2 ;
19551 PyObject * obj0 = 0 ;
19552 PyObject * obj1 = 0 ;
19553 char * kwnames[] = {
19554 (char *) "self",(char *) "rect", NULL
19555 };
19556
19557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19559 if (!SWIG_IsOK(res1)) {
19560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19561 }
19562 arg1 = reinterpret_cast< wxDC * >(argp1);
19563 {
19564 arg2 = &temp2;
19565 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19566 }
19567 {
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 (arg1)->DrawEllipse((wxRect const &)*arg2);
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 resultobj = SWIG_Py_Void();
19574 return resultobj;
19575fail:
19576 return NULL;
19577}
19578
19579
19580SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19581 PyObject *resultobj = 0;
19582 wxDC *arg1 = (wxDC *) 0 ;
19583 wxPoint *arg2 = 0 ;
19584 wxSize *arg3 = 0 ;
19585 void *argp1 = 0 ;
19586 int res1 = 0 ;
19587 wxPoint temp2 ;
19588 wxSize temp3 ;
19589 PyObject * obj0 = 0 ;
19590 PyObject * obj1 = 0 ;
19591 PyObject * obj2 = 0 ;
19592 char * kwnames[] = {
19593 (char *) "self",(char *) "pt",(char *) "sz", NULL
19594 };
19595
19596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19598 if (!SWIG_IsOK(res1)) {
19599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19600 }
19601 arg1 = reinterpret_cast< wxDC * >(argp1);
19602 {
19603 arg2 = &temp2;
19604 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19605 }
19606 {
19607 arg3 = &temp3;
19608 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19609 }
19610 {
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
19616 resultobj = SWIG_Py_Void();
19617 return resultobj;
19618fail:
19619 return NULL;
19620}
19621
19622
19623SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxDC *arg1 = (wxDC *) 0 ;
19626 wxIcon *arg2 = 0 ;
19627 int arg3 ;
19628 int arg4 ;
19629 void *argp1 = 0 ;
19630 int res1 = 0 ;
19631 void *argp2 = 0 ;
19632 int res2 = 0 ;
19633 int val3 ;
19634 int ecode3 = 0 ;
19635 int val4 ;
19636 int ecode4 = 0 ;
19637 PyObject * obj0 = 0 ;
19638 PyObject * obj1 = 0 ;
19639 PyObject * obj2 = 0 ;
19640 PyObject * obj3 = 0 ;
19641 char * kwnames[] = {
19642 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19643 };
19644
19645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19647 if (!SWIG_IsOK(res1)) {
19648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19649 }
19650 arg1 = reinterpret_cast< wxDC * >(argp1);
19651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19652 if (!SWIG_IsOK(res2)) {
19653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19654 }
19655 if (!argp2) {
19656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19657 }
19658 arg2 = reinterpret_cast< wxIcon * >(argp2);
19659 ecode3 = SWIG_AsVal_int(obj2, &val3);
19660 if (!SWIG_IsOK(ecode3)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', 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_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19667 }
19668 arg4 = static_cast< int >(val4);
19669 {
19670 PyThreadState* __tstate = wxPyBeginAllowThreads();
19671 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19672 wxPyEndAllowThreads(__tstate);
19673 if (PyErr_Occurred()) SWIG_fail;
19674 }
19675 resultobj = SWIG_Py_Void();
19676 return resultobj;
19677fail:
19678 return NULL;
19679}
19680
19681
19682SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19683 PyObject *resultobj = 0;
19684 wxDC *arg1 = (wxDC *) 0 ;
19685 wxIcon *arg2 = 0 ;
19686 wxPoint *arg3 = 0 ;
19687 void *argp1 = 0 ;
19688 int res1 = 0 ;
19689 void *argp2 = 0 ;
19690 int res2 = 0 ;
19691 wxPoint temp3 ;
19692 PyObject * obj0 = 0 ;
19693 PyObject * obj1 = 0 ;
19694 PyObject * obj2 = 0 ;
19695 char * kwnames[] = {
19696 (char *) "self",(char *) "icon",(char *) "pt", NULL
19697 };
19698
19699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19703 }
19704 arg1 = reinterpret_cast< wxDC * >(argp1);
19705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19706 if (!SWIG_IsOK(res2)) {
19707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19708 }
19709 if (!argp2) {
19710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19711 }
19712 arg2 = reinterpret_cast< wxIcon * >(argp2);
19713 {
19714 arg3 = &temp3;
19715 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_Py_Void();
19724 return resultobj;
19725fail:
19726 return NULL;
19727}
19728
19729
19730SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxDC *arg1 = (wxDC *) 0 ;
19733 wxBitmap *arg2 = 0 ;
19734 int arg3 ;
19735 int arg4 ;
19736 bool arg5 = (bool) false ;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 void *argp2 = 0 ;
19740 int res2 = 0 ;
19741 int val3 ;
19742 int ecode3 = 0 ;
19743 int val4 ;
19744 int ecode4 = 0 ;
19745 bool val5 ;
19746 int ecode5 = 0 ;
19747 PyObject * obj0 = 0 ;
19748 PyObject * obj1 = 0 ;
19749 PyObject * obj2 = 0 ;
19750 PyObject * obj3 = 0 ;
19751 PyObject * obj4 = 0 ;
19752 char * kwnames[] = {
19753 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19754 };
19755
19756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19758 if (!SWIG_IsOK(res1)) {
19759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19760 }
19761 arg1 = reinterpret_cast< wxDC * >(argp1);
19762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19763 if (!SWIG_IsOK(res2)) {
19764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19765 }
19766 if (!argp2) {
19767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19768 }
19769 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19770 ecode3 = SWIG_AsVal_int(obj2, &val3);
19771 if (!SWIG_IsOK(ecode3)) {
19772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19773 }
19774 arg3 = static_cast< int >(val3);
19775 ecode4 = SWIG_AsVal_int(obj3, &val4);
19776 if (!SWIG_IsOK(ecode4)) {
19777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19778 }
19779 arg4 = static_cast< int >(val4);
19780 if (obj4) {
19781 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19782 if (!SWIG_IsOK(ecode5)) {
19783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19784 }
19785 arg5 = static_cast< bool >(val5);
19786 }
19787 {
19788 PyThreadState* __tstate = wxPyBeginAllowThreads();
19789 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19790 wxPyEndAllowThreads(__tstate);
19791 if (PyErr_Occurred()) SWIG_fail;
19792 }
19793 resultobj = SWIG_Py_Void();
19794 return resultobj;
19795fail:
19796 return NULL;
19797}
19798
19799
19800SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19801 PyObject *resultobj = 0;
19802 wxDC *arg1 = (wxDC *) 0 ;
19803 wxBitmap *arg2 = 0 ;
19804 wxPoint *arg3 = 0 ;
19805 bool arg4 = (bool) false ;
19806 void *argp1 = 0 ;
19807 int res1 = 0 ;
19808 void *argp2 = 0 ;
19809 int res2 = 0 ;
19810 wxPoint temp3 ;
19811 bool val4 ;
19812 int ecode4 = 0 ;
19813 PyObject * obj0 = 0 ;
19814 PyObject * obj1 = 0 ;
19815 PyObject * obj2 = 0 ;
19816 PyObject * obj3 = 0 ;
19817 char * kwnames[] = {
19818 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19819 };
19820
19821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19823 if (!SWIG_IsOK(res1)) {
19824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19825 }
19826 arg1 = reinterpret_cast< wxDC * >(argp1);
19827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19828 if (!SWIG_IsOK(res2)) {
19829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19830 }
19831 if (!argp2) {
19832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19833 }
19834 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19835 {
19836 arg3 = &temp3;
19837 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19838 }
19839 if (obj3) {
19840 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19841 if (!SWIG_IsOK(ecode4)) {
19842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19843 }
19844 arg4 = static_cast< bool >(val4);
19845 }
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 resultobj = SWIG_Py_Void();
19853 return resultobj;
19854fail:
19855 return NULL;
19856}
19857
19858
19859SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 wxString *arg2 = 0 ;
19863 int arg3 ;
19864 int arg4 ;
19865 void *argp1 = 0 ;
19866 int res1 = 0 ;
19867 bool temp2 = false ;
19868 int val3 ;
19869 int ecode3 = 0 ;
19870 int val4 ;
19871 int ecode4 = 0 ;
19872 PyObject * obj0 = 0 ;
19873 PyObject * obj1 = 0 ;
19874 PyObject * obj2 = 0 ;
19875 PyObject * obj3 = 0 ;
19876 char * kwnames[] = {
19877 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19878 };
19879
19880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19882 if (!SWIG_IsOK(res1)) {
19883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19884 }
19885 arg1 = reinterpret_cast< wxDC * >(argp1);
19886 {
19887 arg2 = wxString_in_helper(obj1);
19888 if (arg2 == NULL) SWIG_fail;
19889 temp2 = true;
19890 }
19891 ecode3 = SWIG_AsVal_int(obj2, &val3);
19892 if (!SWIG_IsOK(ecode3)) {
19893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19894 }
19895 arg3 = static_cast< int >(val3);
19896 ecode4 = SWIG_AsVal_int(obj3, &val4);
19897 if (!SWIG_IsOK(ecode4)) {
19898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19899 }
19900 arg4 = static_cast< int >(val4);
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19904 wxPyEndAllowThreads(__tstate);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 }
19907 resultobj = SWIG_Py_Void();
19908 {
19909 if (temp2)
19910 delete arg2;
19911 }
19912 return resultobj;
19913fail:
19914 {
19915 if (temp2)
19916 delete arg2;
19917 }
19918 return NULL;
19919}
19920
19921
19922SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19923 PyObject *resultobj = 0;
19924 wxDC *arg1 = (wxDC *) 0 ;
19925 wxString *arg2 = 0 ;
19926 wxPoint *arg3 = 0 ;
19927 void *argp1 = 0 ;
19928 int res1 = 0 ;
19929 bool temp2 = false ;
19930 wxPoint temp3 ;
19931 PyObject * obj0 = 0 ;
19932 PyObject * obj1 = 0 ;
19933 PyObject * obj2 = 0 ;
19934 char * kwnames[] = {
19935 (char *) "self",(char *) "text",(char *) "pt", NULL
19936 };
19937
19938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19940 if (!SWIG_IsOK(res1)) {
19941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19942 }
19943 arg1 = reinterpret_cast< wxDC * >(argp1);
19944 {
19945 arg2 = wxString_in_helper(obj1);
19946 if (arg2 == NULL) SWIG_fail;
19947 temp2 = true;
19948 }
19949 {
19950 arg3 = &temp3;
19951 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19952 }
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 resultobj = SWIG_Py_Void();
19960 {
19961 if (temp2)
19962 delete arg2;
19963 }
19964 return resultobj;
19965fail:
19966 {
19967 if (temp2)
19968 delete arg2;
19969 }
19970 return NULL;
19971}
19972
19973
19974SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19975 PyObject *resultobj = 0;
19976 wxDC *arg1 = (wxDC *) 0 ;
19977 wxString *arg2 = 0 ;
19978 int arg3 ;
19979 int arg4 ;
19980 double arg5 ;
19981 void *argp1 = 0 ;
19982 int res1 = 0 ;
19983 bool temp2 = false ;
19984 int val3 ;
19985 int ecode3 = 0 ;
19986 int val4 ;
19987 int ecode4 = 0 ;
19988 double val5 ;
19989 int ecode5 = 0 ;
19990 PyObject * obj0 = 0 ;
19991 PyObject * obj1 = 0 ;
19992 PyObject * obj2 = 0 ;
19993 PyObject * obj3 = 0 ;
19994 PyObject * obj4 = 0 ;
19995 char * kwnames[] = {
19996 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19997 };
19998
19999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20001 if (!SWIG_IsOK(res1)) {
20002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20003 }
20004 arg1 = reinterpret_cast< wxDC * >(argp1);
20005 {
20006 arg2 = wxString_in_helper(obj1);
20007 if (arg2 == NULL) SWIG_fail;
20008 temp2 = true;
20009 }
20010 ecode3 = SWIG_AsVal_int(obj2, &val3);
20011 if (!SWIG_IsOK(ecode3)) {
20012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20013 }
20014 arg3 = static_cast< int >(val3);
20015 ecode4 = SWIG_AsVal_int(obj3, &val4);
20016 if (!SWIG_IsOK(ecode4)) {
20017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20018 }
20019 arg4 = static_cast< int >(val4);
20020 ecode5 = SWIG_AsVal_double(obj4, &val5);
20021 if (!SWIG_IsOK(ecode5)) {
20022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20023 }
20024 arg5 = static_cast< double >(val5);
20025 {
20026 PyThreadState* __tstate = wxPyBeginAllowThreads();
20027 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20028 wxPyEndAllowThreads(__tstate);
20029 if (PyErr_Occurred()) SWIG_fail;
20030 }
20031 resultobj = SWIG_Py_Void();
20032 {
20033 if (temp2)
20034 delete arg2;
20035 }
20036 return resultobj;
20037fail:
20038 {
20039 if (temp2)
20040 delete arg2;
20041 }
20042 return NULL;
20043}
20044
20045
20046SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20047 PyObject *resultobj = 0;
20048 wxDC *arg1 = (wxDC *) 0 ;
20049 wxString *arg2 = 0 ;
20050 wxPoint *arg3 = 0 ;
20051 double arg4 ;
20052 void *argp1 = 0 ;
20053 int res1 = 0 ;
20054 bool temp2 = false ;
20055 wxPoint temp3 ;
20056 double val4 ;
20057 int ecode4 = 0 ;
20058 PyObject * obj0 = 0 ;
20059 PyObject * obj1 = 0 ;
20060 PyObject * obj2 = 0 ;
20061 PyObject * obj3 = 0 ;
20062 char * kwnames[] = {
20063 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20064 };
20065
20066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20068 if (!SWIG_IsOK(res1)) {
20069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20070 }
20071 arg1 = reinterpret_cast< wxDC * >(argp1);
20072 {
20073 arg2 = wxString_in_helper(obj1);
20074 if (arg2 == NULL) SWIG_fail;
20075 temp2 = true;
20076 }
20077 {
20078 arg3 = &temp3;
20079 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20080 }
20081 ecode4 = SWIG_AsVal_double(obj3, &val4);
20082 if (!SWIG_IsOK(ecode4)) {
20083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20084 }
20085 arg4 = static_cast< double >(val4);
20086 {
20087 PyThreadState* __tstate = wxPyBeginAllowThreads();
20088 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20089 wxPyEndAllowThreads(__tstate);
20090 if (PyErr_Occurred()) SWIG_fail;
20091 }
20092 resultobj = SWIG_Py_Void();
20093 {
20094 if (temp2)
20095 delete arg2;
20096 }
20097 return resultobj;
20098fail:
20099 {
20100 if (temp2)
20101 delete arg2;
20102 }
20103 return NULL;
20104}
20105
20106
20107SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20108 PyObject *resultobj = 0;
20109 wxDC *arg1 = (wxDC *) 0 ;
20110 int arg2 ;
20111 int arg3 ;
20112 int arg4 ;
20113 int arg5 ;
20114 wxDC *arg6 = (wxDC *) 0 ;
20115 int arg7 ;
20116 int arg8 ;
20117 int arg9 = (int) wxCOPY ;
20118 bool arg10 = (bool) false ;
20119 int arg11 = (int) -1 ;
20120 int arg12 = (int) -1 ;
20121 bool result;
20122 void *argp1 = 0 ;
20123 int res1 = 0 ;
20124 int val2 ;
20125 int ecode2 = 0 ;
20126 int val3 ;
20127 int ecode3 = 0 ;
20128 int val4 ;
20129 int ecode4 = 0 ;
20130 int val5 ;
20131 int ecode5 = 0 ;
20132 void *argp6 = 0 ;
20133 int res6 = 0 ;
20134 int val7 ;
20135 int ecode7 = 0 ;
20136 int val8 ;
20137 int ecode8 = 0 ;
20138 int val9 ;
20139 int ecode9 = 0 ;
20140 bool val10 ;
20141 int ecode10 = 0 ;
20142 int val11 ;
20143 int ecode11 = 0 ;
20144 int val12 ;
20145 int ecode12 = 0 ;
20146 PyObject * obj0 = 0 ;
20147 PyObject * obj1 = 0 ;
20148 PyObject * obj2 = 0 ;
20149 PyObject * obj3 = 0 ;
20150 PyObject * obj4 = 0 ;
20151 PyObject * obj5 = 0 ;
20152 PyObject * obj6 = 0 ;
20153 PyObject * obj7 = 0 ;
20154 PyObject * obj8 = 0 ;
20155 PyObject * obj9 = 0 ;
20156 PyObject * obj10 = 0 ;
20157 PyObject * obj11 = 0 ;
20158 char * kwnames[] = {
20159 (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
20160 };
20161
20162 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;
20163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20166 }
20167 arg1 = reinterpret_cast< wxDC * >(argp1);
20168 ecode2 = SWIG_AsVal_int(obj1, &val2);
20169 if (!SWIG_IsOK(ecode2)) {
20170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20171 }
20172 arg2 = static_cast< int >(val2);
20173 ecode3 = SWIG_AsVal_int(obj2, &val3);
20174 if (!SWIG_IsOK(ecode3)) {
20175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20176 }
20177 arg3 = static_cast< int >(val3);
20178 ecode4 = SWIG_AsVal_int(obj3, &val4);
20179 if (!SWIG_IsOK(ecode4)) {
20180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20181 }
20182 arg4 = static_cast< int >(val4);
20183 ecode5 = SWIG_AsVal_int(obj4, &val5);
20184 if (!SWIG_IsOK(ecode5)) {
20185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20186 }
20187 arg5 = static_cast< int >(val5);
20188 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20189 if (!SWIG_IsOK(res6)) {
20190 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20191 }
20192 arg6 = reinterpret_cast< wxDC * >(argp6);
20193 ecode7 = SWIG_AsVal_int(obj6, &val7);
20194 if (!SWIG_IsOK(ecode7)) {
20195 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20196 }
20197 arg7 = static_cast< int >(val7);
20198 ecode8 = SWIG_AsVal_int(obj7, &val8);
20199 if (!SWIG_IsOK(ecode8)) {
20200 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20201 }
20202 arg8 = static_cast< int >(val8);
20203 if (obj8) {
20204 ecode9 = SWIG_AsVal_int(obj8, &val9);
20205 if (!SWIG_IsOK(ecode9)) {
20206 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20207 }
20208 arg9 = static_cast< int >(val9);
20209 }
20210 if (obj9) {
20211 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20212 if (!SWIG_IsOK(ecode10)) {
20213 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20214 }
20215 arg10 = static_cast< bool >(val10);
20216 }
20217 if (obj10) {
20218 ecode11 = SWIG_AsVal_int(obj10, &val11);
20219 if (!SWIG_IsOK(ecode11)) {
20220 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20221 }
20222 arg11 = static_cast< int >(val11);
20223 }
20224 if (obj11) {
20225 ecode12 = SWIG_AsVal_int(obj11, &val12);
20226 if (!SWIG_IsOK(ecode12)) {
20227 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20228 }
20229 arg12 = static_cast< int >(val12);
20230 }
20231 {
20232 PyThreadState* __tstate = wxPyBeginAllowThreads();
20233 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20234 wxPyEndAllowThreads(__tstate);
20235 if (PyErr_Occurred()) SWIG_fail;
20236 }
20237 {
20238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20239 }
20240 return resultobj;
20241fail:
20242 return NULL;
20243}
20244
20245
20246SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20247 PyObject *resultobj = 0;
20248 wxDC *arg1 = (wxDC *) 0 ;
20249 wxPoint *arg2 = 0 ;
20250 wxSize *arg3 = 0 ;
20251 wxDC *arg4 = (wxDC *) 0 ;
20252 wxPoint *arg5 = 0 ;
20253 int arg6 = (int) wxCOPY ;
20254 bool arg7 = (bool) false ;
20255 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20256 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20257 bool result;
20258 void *argp1 = 0 ;
20259 int res1 = 0 ;
20260 wxPoint temp2 ;
20261 wxSize temp3 ;
20262 void *argp4 = 0 ;
20263 int res4 = 0 ;
20264 wxPoint temp5 ;
20265 int val6 ;
20266 int ecode6 = 0 ;
20267 bool val7 ;
20268 int ecode7 = 0 ;
20269 wxPoint temp8 ;
20270 PyObject * obj0 = 0 ;
20271 PyObject * obj1 = 0 ;
20272 PyObject * obj2 = 0 ;
20273 PyObject * obj3 = 0 ;
20274 PyObject * obj4 = 0 ;
20275 PyObject * obj5 = 0 ;
20276 PyObject * obj6 = 0 ;
20277 PyObject * obj7 = 0 ;
20278 char * kwnames[] = {
20279 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20280 };
20281
20282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20284 if (!SWIG_IsOK(res1)) {
20285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20286 }
20287 arg1 = reinterpret_cast< wxDC * >(argp1);
20288 {
20289 arg2 = &temp2;
20290 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20291 }
20292 {
20293 arg3 = &temp3;
20294 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20295 }
20296 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20297 if (!SWIG_IsOK(res4)) {
20298 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20299 }
20300 arg4 = reinterpret_cast< wxDC * >(argp4);
20301 {
20302 arg5 = &temp5;
20303 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20304 }
20305 if (obj5) {
20306 ecode6 = SWIG_AsVal_int(obj5, &val6);
20307 if (!SWIG_IsOK(ecode6)) {
20308 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20309 }
20310 arg6 = static_cast< int >(val6);
20311 }
20312 if (obj6) {
20313 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20314 if (!SWIG_IsOK(ecode7)) {
20315 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20316 }
20317 arg7 = static_cast< bool >(val7);
20318 }
20319 if (obj7) {
093d3ff1 20320 {
554f62e9
RD
20321 arg8 = &temp8;
20322 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20323 }
554f62e9
RD
20324 }
20325 {
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20328 wxPyEndAllowThreads(__tstate);
20329 if (PyErr_Occurred()) SWIG_fail;
20330 }
20331 {
20332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20333 }
20334 return resultobj;
20335fail:
20336 return NULL;
20337}
20338
20339
20340SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20341 PyObject *resultobj = 0;
20342 wxDC *arg1 = (wxDC *) 0 ;
20343 int arg2 ;
20344 int arg3 ;
20345 int arg4 ;
20346 int arg5 ;
20347 void *argp1 = 0 ;
20348 int res1 = 0 ;
20349 int val2 ;
20350 int ecode2 = 0 ;
20351 int val3 ;
20352 int ecode3 = 0 ;
20353 int val4 ;
20354 int ecode4 = 0 ;
20355 int val5 ;
20356 int ecode5 = 0 ;
20357 PyObject * obj0 = 0 ;
20358 PyObject * obj1 = 0 ;
20359 PyObject * obj2 = 0 ;
20360 PyObject * obj3 = 0 ;
20361 PyObject * obj4 = 0 ;
20362 char * kwnames[] = {
20363 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20364 };
20365
20366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20368 if (!SWIG_IsOK(res1)) {
20369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20370 }
20371 arg1 = reinterpret_cast< wxDC * >(argp1);
20372 ecode2 = SWIG_AsVal_int(obj1, &val2);
20373 if (!SWIG_IsOK(ecode2)) {
20374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20375 }
20376 arg2 = static_cast< int >(val2);
20377 ecode3 = SWIG_AsVal_int(obj2, &val3);
20378 if (!SWIG_IsOK(ecode3)) {
20379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20380 }
20381 arg3 = static_cast< int >(val3);
20382 ecode4 = SWIG_AsVal_int(obj3, &val4);
20383 if (!SWIG_IsOK(ecode4)) {
20384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20385 }
20386 arg4 = static_cast< int >(val4);
20387 ecode5 = SWIG_AsVal_int(obj4, &val5);
20388 if (!SWIG_IsOK(ecode5)) {
20389 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20390 }
20391 arg5 = static_cast< int >(val5);
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
20394 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20395 wxPyEndAllowThreads(__tstate);
20396 if (PyErr_Occurred()) SWIG_fail;
20397 }
20398 resultobj = SWIG_Py_Void();
20399 return resultobj;
20400fail:
20401 return NULL;
20402}
20403
20404
20405SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20406 PyObject *resultobj = 0;
20407 wxDC *arg1 = (wxDC *) 0 ;
20408 wxPoint *arg2 = 0 ;
20409 wxSize *arg3 = 0 ;
20410 void *argp1 = 0 ;
20411 int res1 = 0 ;
20412 wxPoint temp2 ;
20413 wxSize temp3 ;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416 PyObject * obj2 = 0 ;
20417 char * kwnames[] = {
20418 (char *) "self",(char *) "pt",(char *) "sz", NULL
20419 };
20420
20421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20423 if (!SWIG_IsOK(res1)) {
20424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20425 }
20426 arg1 = reinterpret_cast< wxDC * >(argp1);
20427 {
20428 arg2 = &temp2;
20429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20430 }
20431 {
20432 arg3 = &temp3;
20433 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20434 }
20435 {
20436 PyThreadState* __tstate = wxPyBeginAllowThreads();
20437 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20438 wxPyEndAllowThreads(__tstate);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 }
20441 resultobj = SWIG_Py_Void();
20442 return resultobj;
20443fail:
20444 return NULL;
20445}
20446
20447
20448SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20449 PyObject *resultobj = 0;
20450 wxDC *arg1 = (wxDC *) 0 ;
20451 wxRegion *arg2 = 0 ;
20452 void *argp1 = 0 ;
20453 int res1 = 0 ;
20454 void *argp2 = 0 ;
20455 int res2 = 0 ;
20456 PyObject * obj0 = 0 ;
20457 PyObject * obj1 = 0 ;
20458 char * kwnames[] = {
20459 (char *) "self",(char *) "region", NULL
20460 };
20461
20462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20464 if (!SWIG_IsOK(res1)) {
20465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20466 }
20467 arg1 = reinterpret_cast< wxDC * >(argp1);
20468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20469 if (!SWIG_IsOK(res2)) {
20470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20471 }
20472 if (!argp2) {
20473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20474 }
20475 arg2 = reinterpret_cast< wxRegion * >(argp2);
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_Py_Void();
20483 return resultobj;
20484fail:
20485 return NULL;
20486}
20487
20488
20489SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj = 0;
20491 wxDC *arg1 = (wxDC *) 0 ;
20492 wxRect *arg2 = 0 ;
20493 void *argp1 = 0 ;
20494 int res1 = 0 ;
20495 wxRect temp2 ;
20496 PyObject * obj0 = 0 ;
20497 PyObject * obj1 = 0 ;
20498 char * kwnames[] = {
20499 (char *) "self",(char *) "rect", NULL
20500 };
20501
20502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20506 }
20507 arg1 = reinterpret_cast< wxDC * >(argp1);
20508 {
20509 arg2 = &temp2;
20510 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20511 }
20512 {
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
20514 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_Py_Void();
20519 return resultobj;
20520fail:
20521 return NULL;
20522}
20523
20524
20525SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20526 PyObject *resultobj = 0;
20527 wxDC *arg1 = (wxDC *) 0 ;
20528 int arg2 ;
20529 wxPoint *arg3 = (wxPoint *) 0 ;
20530 int arg4 = (int) 0 ;
20531 int arg5 = (int) 0 ;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 int val4 ;
20535 int ecode4 = 0 ;
20536 int val5 ;
20537 int ecode5 = 0 ;
20538 PyObject * obj0 = 0 ;
20539 PyObject * obj1 = 0 ;
20540 PyObject * obj2 = 0 ;
20541 PyObject * obj3 = 0 ;
20542 char * kwnames[] = {
20543 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20544 };
20545
20546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20548 if (!SWIG_IsOK(res1)) {
20549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20550 }
20551 arg1 = reinterpret_cast< wxDC * >(argp1);
20552 {
20553 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20554 if (arg3 == NULL) SWIG_fail;
20555 }
20556 if (obj2) {
20557 ecode4 = SWIG_AsVal_int(obj2, &val4);
20558 if (!SWIG_IsOK(ecode4)) {
20559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20560 }
20561 arg4 = static_cast< int >(val4);
20562 }
20563 if (obj3) {
20564 ecode5 = SWIG_AsVal_int(obj3, &val5);
20565 if (!SWIG_IsOK(ecode5)) {
20566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20567 }
20568 arg5 = static_cast< int >(val5);
20569 }
20570 {
20571 PyThreadState* __tstate = wxPyBeginAllowThreads();
20572 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20573 wxPyEndAllowThreads(__tstate);
20574 if (PyErr_Occurred()) SWIG_fail;
20575 }
20576 resultobj = SWIG_Py_Void();
20577 {
20578 if (arg3) delete [] arg3;
20579 }
20580 return resultobj;
20581fail:
20582 {
20583 if (arg3) delete [] arg3;
20584 }
20585 return NULL;
20586}
20587
20588
20589SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20590 PyObject *resultobj = 0;
20591 wxDC *arg1 = (wxDC *) 0 ;
20592 int arg2 ;
20593 wxPoint *arg3 = (wxPoint *) 0 ;
20594 int arg4 = (int) 0 ;
20595 int arg5 = (int) 0 ;
20596 int arg6 = (int) wxODDEVEN_RULE ;
20597 void *argp1 = 0 ;
20598 int res1 = 0 ;
20599 int val4 ;
20600 int ecode4 = 0 ;
20601 int val5 ;
20602 int ecode5 = 0 ;
20603 int val6 ;
20604 int ecode6 = 0 ;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 PyObject * obj2 = 0 ;
20608 PyObject * obj3 = 0 ;
20609 PyObject * obj4 = 0 ;
20610 char * kwnames[] = {
20611 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20612 };
20613
20614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20616 if (!SWIG_IsOK(res1)) {
20617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20618 }
20619 arg1 = reinterpret_cast< wxDC * >(argp1);
20620 {
20621 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20622 if (arg3 == NULL) SWIG_fail;
20623 }
20624 if (obj2) {
20625 ecode4 = SWIG_AsVal_int(obj2, &val4);
20626 if (!SWIG_IsOK(ecode4)) {
20627 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20628 }
20629 arg4 = static_cast< int >(val4);
20630 }
20631 if (obj3) {
20632 ecode5 = SWIG_AsVal_int(obj3, &val5);
20633 if (!SWIG_IsOK(ecode5)) {
20634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20635 }
20636 arg5 = static_cast< int >(val5);
20637 }
20638 if (obj4) {
20639 ecode6 = SWIG_AsVal_int(obj4, &val6);
20640 if (!SWIG_IsOK(ecode6)) {
20641 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20642 }
20643 arg6 = static_cast< int >(val6);
20644 }
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20648 wxPyEndAllowThreads(__tstate);
20649 if (PyErr_Occurred()) SWIG_fail;
20650 }
20651 resultobj = SWIG_Py_Void();
20652 {
20653 if (arg3) delete [] arg3;
20654 }
20655 return resultobj;
20656fail:
20657 {
20658 if (arg3) delete [] arg3;
20659 }
20660 return NULL;
20661}
20662
20663
20664SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20665 PyObject *resultobj = 0;
20666 wxDC *arg1 = (wxDC *) 0 ;
20667 wxString *arg2 = 0 ;
20668 wxRect *arg3 = 0 ;
20669 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20670 int arg5 = (int) -1 ;
20671 void *argp1 = 0 ;
20672 int res1 = 0 ;
20673 bool temp2 = false ;
20674 wxRect temp3 ;
20675 int val4 ;
20676 int ecode4 = 0 ;
20677 int val5 ;
20678 int ecode5 = 0 ;
20679 PyObject * obj0 = 0 ;
20680 PyObject * obj1 = 0 ;
20681 PyObject * obj2 = 0 ;
20682 PyObject * obj3 = 0 ;
20683 PyObject * obj4 = 0 ;
20684 char * kwnames[] = {
20685 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20686 };
20687
20688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20690 if (!SWIG_IsOK(res1)) {
20691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20692 }
20693 arg1 = reinterpret_cast< wxDC * >(argp1);
20694 {
20695 arg2 = wxString_in_helper(obj1);
20696 if (arg2 == NULL) SWIG_fail;
20697 temp2 = true;
20698 }
20699 {
20700 arg3 = &temp3;
20701 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20702 }
20703 if (obj3) {
20704 ecode4 = SWIG_AsVal_int(obj3, &val4);
20705 if (!SWIG_IsOK(ecode4)) {
20706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20707 }
20708 arg4 = static_cast< int >(val4);
20709 }
20710 if (obj4) {
20711 ecode5 = SWIG_AsVal_int(obj4, &val5);
20712 if (!SWIG_IsOK(ecode5)) {
20713 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20714 }
20715 arg5 = static_cast< int >(val5);
20716 }
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_Py_Void();
20724 {
20725 if (temp2)
20726 delete arg2;
20727 }
20728 return resultobj;
20729fail:
20730 {
20731 if (temp2)
20732 delete arg2;
20733 }
20734 return NULL;
20735}
20736
20737
20738SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20739 PyObject *resultobj = 0;
20740 wxDC *arg1 = (wxDC *) 0 ;
20741 wxString *arg2 = 0 ;
20742 wxBitmap *arg3 = 0 ;
20743 wxRect *arg4 = 0 ;
20744 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20745 int arg6 = (int) -1 ;
20746 wxRect result;
20747 void *argp1 = 0 ;
20748 int res1 = 0 ;
20749 bool temp2 = false ;
20750 void *argp3 = 0 ;
20751 int res3 = 0 ;
20752 wxRect temp4 ;
20753 int val5 ;
20754 int ecode5 = 0 ;
20755 int val6 ;
20756 int ecode6 = 0 ;
20757 PyObject * obj0 = 0 ;
20758 PyObject * obj1 = 0 ;
20759 PyObject * obj2 = 0 ;
20760 PyObject * obj3 = 0 ;
20761 PyObject * obj4 = 0 ;
20762 PyObject * obj5 = 0 ;
20763 char * kwnames[] = {
20764 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20765 };
20766
20767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20771 }
20772 arg1 = reinterpret_cast< wxDC * >(argp1);
20773 {
20774 arg2 = wxString_in_helper(obj1);
20775 if (arg2 == NULL) SWIG_fail;
20776 temp2 = true;
20777 }
20778 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20779 if (!SWIG_IsOK(res3)) {
20780 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20781 }
20782 if (!argp3) {
20783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20784 }
20785 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20786 {
20787 arg4 = &temp4;
20788 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20789 }
20790 if (obj4) {
20791 ecode5 = SWIG_AsVal_int(obj4, &val5);
20792 if (!SWIG_IsOK(ecode5)) {
20793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20794 }
20795 arg5 = static_cast< int >(val5);
20796 }
20797 if (obj5) {
20798 ecode6 = SWIG_AsVal_int(obj5, &val6);
20799 if (!SWIG_IsOK(ecode6)) {
20800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20801 }
20802 arg6 = static_cast< int >(val6);
20803 }
20804 {
20805 PyThreadState* __tstate = wxPyBeginAllowThreads();
20806 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20807 wxPyEndAllowThreads(__tstate);
20808 if (PyErr_Occurred()) SWIG_fail;
20809 }
20810 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20811 {
20812 if (temp2)
20813 delete arg2;
20814 }
20815 return resultobj;
20816fail:
20817 {
20818 if (temp2)
20819 delete arg2;
20820 }
20821 return NULL;
20822}
20823
20824
20825SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxDC *arg1 = (wxDC *) 0 ;
20828 int arg2 ;
20829 wxPoint *arg3 = (wxPoint *) 0 ;
20830 void *argp1 = 0 ;
20831 int res1 = 0 ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 char * kwnames[] = {
20835 (char *) "self",(char *) "points", NULL
20836 };
20837
20838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20840 if (!SWIG_IsOK(res1)) {
20841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20842 }
20843 arg1 = reinterpret_cast< wxDC * >(argp1);
20844 {
20845 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20846 if (arg3 == NULL) SWIG_fail;
20847 }
20848 {
20849 PyThreadState* __tstate = wxPyBeginAllowThreads();
20850 (arg1)->DrawSpline(arg2,arg3);
20851 wxPyEndAllowThreads(__tstate);
20852 if (PyErr_Occurred()) SWIG_fail;
20853 }
20854 resultobj = SWIG_Py_Void();
20855 {
20856 if (arg3) delete [] arg3;
20857 }
20858 return resultobj;
20859fail:
20860 {
20861 if (arg3) delete [] arg3;
20862 }
20863 return NULL;
20864}
20865
20866
20867SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20868 PyObject *resultobj = 0;
20869 wxDC *arg1 = (wxDC *) 0 ;
20870 void *argp1 = 0 ;
20871 int res1 = 0 ;
20872 PyObject *swig_obj[1] ;
20873
20874 if (!args) SWIG_fail;
20875 swig_obj[0] = args;
20876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20877 if (!SWIG_IsOK(res1)) {
20878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20879 }
20880 arg1 = reinterpret_cast< wxDC * >(argp1);
20881 {
20882 PyThreadState* __tstate = wxPyBeginAllowThreads();
20883 (arg1)->Clear();
20884 wxPyEndAllowThreads(__tstate);
20885 if (PyErr_Occurred()) SWIG_fail;
20886 }
20887 resultobj = SWIG_Py_Void();
20888 return resultobj;
20889fail:
20890 return NULL;
20891}
20892
20893
20894SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20895 PyObject *resultobj = 0;
20896 wxDC *arg1 = (wxDC *) 0 ;
20897 wxString *arg2 = 0 ;
20898 bool result;
20899 void *argp1 = 0 ;
20900 int res1 = 0 ;
20901 bool temp2 = false ;
20902 PyObject * obj0 = 0 ;
20903 PyObject * obj1 = 0 ;
20904 char * kwnames[] = {
20905 (char *) "self",(char *) "message", NULL
20906 };
20907
20908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20910 if (!SWIG_IsOK(res1)) {
20911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20912 }
20913 arg1 = reinterpret_cast< wxDC * >(argp1);
20914 {
20915 arg2 = wxString_in_helper(obj1);
20916 if (arg2 == NULL) SWIG_fail;
20917 temp2 = true;
20918 }
20919 {
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20922 wxPyEndAllowThreads(__tstate);
20923 if (PyErr_Occurred()) SWIG_fail;
20924 }
20925 {
20926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20927 }
20928 {
20929 if (temp2)
20930 delete arg2;
20931 }
20932 return resultobj;
20933fail:
20934 {
20935 if (temp2)
20936 delete arg2;
20937 }
20938 return NULL;
20939}
20940
20941
20942SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20943 PyObject *resultobj = 0;
20944 wxDC *arg1 = (wxDC *) 0 ;
20945 void *argp1 = 0 ;
20946 int res1 = 0 ;
20947 PyObject *swig_obj[1] ;
20948
20949 if (!args) SWIG_fail;
20950 swig_obj[0] = args;
20951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20952 if (!SWIG_IsOK(res1)) {
20953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20954 }
20955 arg1 = reinterpret_cast< wxDC * >(argp1);
20956 {
20957 PyThreadState* __tstate = wxPyBeginAllowThreads();
20958 (arg1)->EndDoc();
20959 wxPyEndAllowThreads(__tstate);
20960 if (PyErr_Occurred()) SWIG_fail;
20961 }
20962 resultobj = SWIG_Py_Void();
20963 return resultobj;
20964fail:
20965 return NULL;
20966}
20967
20968
20969SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20970 PyObject *resultobj = 0;
20971 wxDC *arg1 = (wxDC *) 0 ;
20972 void *argp1 = 0 ;
20973 int res1 = 0 ;
20974 PyObject *swig_obj[1] ;
20975
20976 if (!args) SWIG_fail;
20977 swig_obj[0] = args;
20978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20979 if (!SWIG_IsOK(res1)) {
20980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20981 }
20982 arg1 = reinterpret_cast< wxDC * >(argp1);
20983 {
20984 PyThreadState* __tstate = wxPyBeginAllowThreads();
20985 (arg1)->StartPage();
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 resultobj = SWIG_Py_Void();
20990 return resultobj;
20991fail:
20992 return NULL;
20993}
20994
20995
20996SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20997 PyObject *resultobj = 0;
20998 wxDC *arg1 = (wxDC *) 0 ;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 PyObject *swig_obj[1] ;
21002
21003 if (!args) SWIG_fail;
21004 swig_obj[0] = args;
21005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21006 if (!SWIG_IsOK(res1)) {
21007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21008 }
21009 arg1 = reinterpret_cast< wxDC * >(argp1);
21010 {
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 (arg1)->EndPage();
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 resultobj = SWIG_Py_Void();
21017 return resultobj;
21018fail:
21019 return NULL;
21020}
21021
21022
21023SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21024 PyObject *resultobj = 0;
21025 wxDC *arg1 = (wxDC *) 0 ;
21026 wxFont *arg2 = 0 ;
21027 void *argp1 = 0 ;
21028 int res1 = 0 ;
21029 void *argp2 = 0 ;
21030 int res2 = 0 ;
21031 PyObject * obj0 = 0 ;
21032 PyObject * obj1 = 0 ;
21033 char * kwnames[] = {
21034 (char *) "self",(char *) "font", NULL
21035 };
21036
21037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21039 if (!SWIG_IsOK(res1)) {
21040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21041 }
21042 arg1 = reinterpret_cast< wxDC * >(argp1);
21043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21044 if (!SWIG_IsOK(res2)) {
21045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21046 }
21047 if (!argp2) {
21048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21049 }
21050 arg2 = reinterpret_cast< wxFont * >(argp2);
21051 {
21052 PyThreadState* __tstate = wxPyBeginAllowThreads();
21053 (arg1)->SetFont((wxFont const &)*arg2);
21054 wxPyEndAllowThreads(__tstate);
21055 if (PyErr_Occurred()) SWIG_fail;
21056 }
21057 resultobj = SWIG_Py_Void();
21058 return resultobj;
21059fail:
21060 return NULL;
21061}
21062
21063
21064SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21065 PyObject *resultobj = 0;
21066 wxDC *arg1 = (wxDC *) 0 ;
21067 wxPen *arg2 = 0 ;
21068 void *argp1 = 0 ;
21069 int res1 = 0 ;
21070 void *argp2 = 0 ;
21071 int res2 = 0 ;
21072 PyObject * obj0 = 0 ;
21073 PyObject * obj1 = 0 ;
21074 char * kwnames[] = {
21075 (char *) "self",(char *) "pen", NULL
21076 };
21077
21078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21080 if (!SWIG_IsOK(res1)) {
21081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21082 }
21083 arg1 = reinterpret_cast< wxDC * >(argp1);
21084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21085 if (!SWIG_IsOK(res2)) {
21086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21087 }
21088 if (!argp2) {
21089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21090 }
21091 arg2 = reinterpret_cast< wxPen * >(argp2);
21092 {
21093 PyThreadState* __tstate = wxPyBeginAllowThreads();
21094 (arg1)->SetPen((wxPen const &)*arg2);
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 resultobj = SWIG_Py_Void();
21099 return resultobj;
21100fail:
21101 return NULL;
21102}
21103
21104
21105SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21106 PyObject *resultobj = 0;
21107 wxDC *arg1 = (wxDC *) 0 ;
21108 wxBrush *arg2 = 0 ;
21109 void *argp1 = 0 ;
21110 int res1 = 0 ;
21111 void *argp2 = 0 ;
21112 int res2 = 0 ;
21113 PyObject * obj0 = 0 ;
21114 PyObject * obj1 = 0 ;
21115 char * kwnames[] = {
21116 (char *) "self",(char *) "brush", NULL
21117 };
21118
21119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21121 if (!SWIG_IsOK(res1)) {
21122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21123 }
21124 arg1 = reinterpret_cast< wxDC * >(argp1);
21125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21126 if (!SWIG_IsOK(res2)) {
21127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21128 }
21129 if (!argp2) {
21130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21131 }
21132 arg2 = reinterpret_cast< wxBrush * >(argp2);
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 (arg1)->SetBrush((wxBrush const &)*arg2);
21136 wxPyEndAllowThreads(__tstate);
21137 if (PyErr_Occurred()) SWIG_fail;
21138 }
21139 resultobj = SWIG_Py_Void();
21140 return resultobj;
21141fail:
21142 return NULL;
21143}
21144
21145
21146SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21147 PyObject *resultobj = 0;
21148 wxDC *arg1 = (wxDC *) 0 ;
21149 wxBrush *arg2 = 0 ;
21150 void *argp1 = 0 ;
21151 int res1 = 0 ;
21152 void *argp2 = 0 ;
21153 int res2 = 0 ;
21154 PyObject * obj0 = 0 ;
21155 PyObject * obj1 = 0 ;
21156 char * kwnames[] = {
21157 (char *) "self",(char *) "brush", NULL
21158 };
21159
21160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21162 if (!SWIG_IsOK(res1)) {
21163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21164 }
21165 arg1 = reinterpret_cast< wxDC * >(argp1);
21166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21167 if (!SWIG_IsOK(res2)) {
21168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21169 }
21170 if (!argp2) {
21171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21172 }
21173 arg2 = reinterpret_cast< wxBrush * >(argp2);
21174 {
21175 PyThreadState* __tstate = wxPyBeginAllowThreads();
21176 (arg1)->SetBackground((wxBrush const &)*arg2);
21177 wxPyEndAllowThreads(__tstate);
21178 if (PyErr_Occurred()) SWIG_fail;
21179 }
21180 resultobj = SWIG_Py_Void();
21181 return resultobj;
21182fail:
21183 return NULL;
21184}
21185
21186
21187SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21188 PyObject *resultobj = 0;
21189 wxDC *arg1 = (wxDC *) 0 ;
21190 int arg2 ;
21191 void *argp1 = 0 ;
21192 int res1 = 0 ;
21193 int val2 ;
21194 int ecode2 = 0 ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 char * kwnames[] = {
21198 (char *) "self",(char *) "mode", NULL
21199 };
21200
21201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21203 if (!SWIG_IsOK(res1)) {
21204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21205 }
21206 arg1 = reinterpret_cast< wxDC * >(argp1);
21207 ecode2 = SWIG_AsVal_int(obj1, &val2);
21208 if (!SWIG_IsOK(ecode2)) {
21209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21210 }
21211 arg2 = static_cast< int >(val2);
21212 {
21213 PyThreadState* __tstate = wxPyBeginAllowThreads();
21214 (arg1)->SetBackgroundMode(arg2);
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 resultobj = SWIG_Py_Void();
21219 return resultobj;
21220fail:
21221 return NULL;
21222}
21223
21224
21225SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj = 0;
21227 wxDC *arg1 = (wxDC *) 0 ;
21228 wxPalette *arg2 = 0 ;
21229 void *argp1 = 0 ;
21230 int res1 = 0 ;
21231 void *argp2 = 0 ;
21232 int res2 = 0 ;
21233 PyObject * obj0 = 0 ;
21234 PyObject * obj1 = 0 ;
21235 char * kwnames[] = {
21236 (char *) "self",(char *) "palette", NULL
21237 };
21238
21239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21241 if (!SWIG_IsOK(res1)) {
21242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21243 }
21244 arg1 = reinterpret_cast< wxDC * >(argp1);
21245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21246 if (!SWIG_IsOK(res2)) {
21247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21248 }
21249 if (!argp2) {
21250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21251 }
21252 arg2 = reinterpret_cast< wxPalette * >(argp2);
21253 {
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 (arg1)->SetPalette((wxPalette const &)*arg2);
21256 wxPyEndAllowThreads(__tstate);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 resultobj = SWIG_Py_Void();
21260 return resultobj;
21261fail:
21262 return NULL;
21263}
21264
21265
21266SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21267 PyObject *resultobj = 0;
21268 wxDC *arg1 = (wxDC *) 0 ;
21269 void *argp1 = 0 ;
21270 int res1 = 0 ;
21271 PyObject *swig_obj[1] ;
21272
21273 if (!args) SWIG_fail;
21274 swig_obj[0] = args;
21275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21276 if (!SWIG_IsOK(res1)) {
21277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21278 }
21279 arg1 = reinterpret_cast< wxDC * >(argp1);
21280 {
21281 PyThreadState* __tstate = wxPyBeginAllowThreads();
21282 (arg1)->DestroyClippingRegion();
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 resultobj = SWIG_Py_Void();
21287 return resultobj;
21288fail:
21289 return NULL;
21290}
21291
21292
21293SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21294 PyObject *resultobj = 0;
21295 wxDC *arg1 = (wxDC *) 0 ;
21296 int *arg2 = (int *) 0 ;
21297 int *arg3 = (int *) 0 ;
21298 int *arg4 = (int *) 0 ;
21299 int *arg5 = (int *) 0 ;
21300 void *argp1 = 0 ;
21301 int res1 = 0 ;
21302 int temp2 ;
21303 int res2 = SWIG_TMPOBJ ;
21304 int temp3 ;
21305 int res3 = SWIG_TMPOBJ ;
21306 int temp4 ;
21307 int res4 = SWIG_TMPOBJ ;
21308 int temp5 ;
21309 int res5 = SWIG_TMPOBJ ;
21310 PyObject *swig_obj[1] ;
21311
21312 arg2 = &temp2;
21313 arg3 = &temp3;
21314 arg4 = &temp4;
21315 arg5 = &temp5;
21316 if (!args) SWIG_fail;
21317 swig_obj[0] = args;
21318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21319 if (!SWIG_IsOK(res1)) {
21320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21321 }
21322 arg1 = reinterpret_cast< wxDC * >(argp1);
21323 {
21324 PyThreadState* __tstate = wxPyBeginAllowThreads();
21325 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21326 wxPyEndAllowThreads(__tstate);
21327 if (PyErr_Occurred()) SWIG_fail;
21328 }
21329 resultobj = SWIG_Py_Void();
21330 if (SWIG_IsTmpObj(res2)) {
21331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21332 } else {
21333 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21335 }
21336 if (SWIG_IsTmpObj(res3)) {
21337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21338 } else {
21339 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21341 }
21342 if (SWIG_IsTmpObj(res4)) {
21343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21344 } else {
21345 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21347 }
21348 if (SWIG_IsTmpObj(res5)) {
21349 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21350 } else {
21351 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21353 }
21354 return resultobj;
21355fail:
21356 return NULL;
21357}
21358
21359
21360SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21361 PyObject *resultobj = 0;
21362 wxDC *arg1 = (wxDC *) 0 ;
21363 wxRect result;
21364 void *argp1 = 0 ;
21365 int res1 = 0 ;
21366 PyObject *swig_obj[1] ;
21367
21368 if (!args) SWIG_fail;
21369 swig_obj[0] = args;
21370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21371 if (!SWIG_IsOK(res1)) {
21372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21373 }
21374 arg1 = reinterpret_cast< wxDC * >(argp1);
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 result = wxDC_GetClippingRect(arg1);
21378 wxPyEndAllowThreads(__tstate);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21382 return resultobj;
21383fail:
21384 return NULL;
21385}
21386
21387
21388SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21389 PyObject *resultobj = 0;
21390 wxDC *arg1 = (wxDC *) 0 ;
21391 int result;
21392 void *argp1 = 0 ;
21393 int res1 = 0 ;
21394 PyObject *swig_obj[1] ;
21395
21396 if (!args) SWIG_fail;
21397 swig_obj[0] = args;
21398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21399 if (!SWIG_IsOK(res1)) {
21400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21401 }
21402 arg1 = reinterpret_cast< wxDC * >(argp1);
21403 {
21404 PyThreadState* __tstate = wxPyBeginAllowThreads();
21405 result = (int)((wxDC const *)arg1)->GetCharHeight();
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 resultobj = SWIG_From_int(static_cast< int >(result));
21410 return resultobj;
21411fail:
21412 return NULL;
21413}
21414
21415
21416SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21417 PyObject *resultobj = 0;
21418 wxDC *arg1 = (wxDC *) 0 ;
21419 int result;
21420 void *argp1 = 0 ;
21421 int res1 = 0 ;
21422 PyObject *swig_obj[1] ;
21423
21424 if (!args) SWIG_fail;
21425 swig_obj[0] = args;
21426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21427 if (!SWIG_IsOK(res1)) {
21428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21429 }
21430 arg1 = reinterpret_cast< wxDC * >(argp1);
21431 {
21432 PyThreadState* __tstate = wxPyBeginAllowThreads();
21433 result = (int)((wxDC const *)arg1)->GetCharWidth();
21434 wxPyEndAllowThreads(__tstate);
21435 if (PyErr_Occurred()) SWIG_fail;
21436 }
21437 resultobj = SWIG_From_int(static_cast< int >(result));
21438 return resultobj;
21439fail:
21440 return NULL;
21441}
21442
21443
21444SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21445 PyObject *resultobj = 0;
21446 wxDC *arg1 = (wxDC *) 0 ;
21447 wxString *arg2 = 0 ;
21448 int *arg3 = (int *) 0 ;
21449 int *arg4 = (int *) 0 ;
21450 void *argp1 = 0 ;
21451 int res1 = 0 ;
21452 bool temp2 = false ;
21453 int temp3 ;
21454 int res3 = SWIG_TMPOBJ ;
21455 int temp4 ;
21456 int res4 = SWIG_TMPOBJ ;
21457 PyObject * obj0 = 0 ;
21458 PyObject * obj1 = 0 ;
21459 char * kwnames[] = {
21460 (char *) "self",(char *) "string", NULL
21461 };
21462
21463 arg3 = &temp3;
21464 arg4 = &temp4;
21465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21467 if (!SWIG_IsOK(res1)) {
21468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21469 }
21470 arg1 = reinterpret_cast< wxDC * >(argp1);
21471 {
21472 arg2 = wxString_in_helper(obj1);
21473 if (arg2 == NULL) SWIG_fail;
21474 temp2 = true;
21475 }
21476 {
21477 PyThreadState* __tstate = wxPyBeginAllowThreads();
21478 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21479 wxPyEndAllowThreads(__tstate);
21480 if (PyErr_Occurred()) SWIG_fail;
21481 }
21482 resultobj = SWIG_Py_Void();
21483 if (SWIG_IsTmpObj(res3)) {
21484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21485 } else {
21486 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21488 }
21489 if (SWIG_IsTmpObj(res4)) {
21490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21491 } else {
21492 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21494 }
21495 {
21496 if (temp2)
21497 delete arg2;
21498 }
21499 return resultobj;
21500fail:
21501 {
21502 if (temp2)
21503 delete arg2;
21504 }
21505 return NULL;
21506}
21507
21508
21509SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21510 PyObject *resultobj = 0;
21511 wxDC *arg1 = (wxDC *) 0 ;
21512 wxString *arg2 = 0 ;
21513 int *arg3 = (int *) 0 ;
21514 int *arg4 = (int *) 0 ;
21515 int *arg5 = (int *) 0 ;
21516 int *arg6 = (int *) 0 ;
21517 wxFont *arg7 = (wxFont *) NULL ;
21518 void *argp1 = 0 ;
21519 int res1 = 0 ;
21520 bool temp2 = false ;
21521 int temp3 ;
21522 int res3 = SWIG_TMPOBJ ;
21523 int temp4 ;
21524 int res4 = SWIG_TMPOBJ ;
21525 int temp5 ;
21526 int res5 = SWIG_TMPOBJ ;
21527 int temp6 ;
21528 int res6 = SWIG_TMPOBJ ;
21529 void *argp7 = 0 ;
21530 int res7 = 0 ;
21531 PyObject * obj0 = 0 ;
21532 PyObject * obj1 = 0 ;
21533 PyObject * obj2 = 0 ;
21534 char * kwnames[] = {
21535 (char *) "self",(char *) "string",(char *) "font", NULL
21536 };
21537
21538 arg3 = &temp3;
21539 arg4 = &temp4;
21540 arg5 = &temp5;
21541 arg6 = &temp6;
21542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21544 if (!SWIG_IsOK(res1)) {
21545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21546 }
21547 arg1 = reinterpret_cast< wxDC * >(argp1);
21548 {
21549 arg2 = wxString_in_helper(obj1);
21550 if (arg2 == NULL) SWIG_fail;
21551 temp2 = true;
21552 }
21553 if (obj2) {
21554 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21555 if (!SWIG_IsOK(res7)) {
21556 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21557 }
554f62e9
RD
21558 arg7 = reinterpret_cast< wxFont * >(argp7);
21559 }
21560 {
21561 PyThreadState* __tstate = wxPyBeginAllowThreads();
21562 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21563 wxPyEndAllowThreads(__tstate);
21564 if (PyErr_Occurred()) SWIG_fail;
21565 }
21566 resultobj = SWIG_Py_Void();
21567 if (SWIG_IsTmpObj(res3)) {
21568 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21569 } else {
21570 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21571 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21572 }
21573 if (SWIG_IsTmpObj(res4)) {
21574 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21575 } else {
21576 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21577 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21578 }
21579 if (SWIG_IsTmpObj(res5)) {
21580 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21581 } else {
21582 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21583 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21584 }
21585 if (SWIG_IsTmpObj(res6)) {
21586 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21587 } else {
21588 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21589 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21590 }
21591 {
21592 if (temp2)
21593 delete arg2;
21594 }
21595 return resultobj;
21596fail:
21597 {
21598 if (temp2)
21599 delete arg2;
21600 }
21601 return NULL;
21602}
21603
21604
21605SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21606 PyObject *resultobj = 0;
21607 wxDC *arg1 = (wxDC *) 0 ;
21608 wxString *arg2 = 0 ;
21609 int *arg3 = (int *) 0 ;
21610 int *arg4 = (int *) 0 ;
21611 int *arg5 = (int *) 0 ;
21612 wxFont *arg6 = (wxFont *) NULL ;
21613 void *argp1 = 0 ;
21614 int res1 = 0 ;
21615 bool temp2 = false ;
21616 int temp3 ;
21617 int res3 = SWIG_TMPOBJ ;
21618 int temp4 ;
21619 int res4 = SWIG_TMPOBJ ;
21620 int temp5 ;
21621 int res5 = SWIG_TMPOBJ ;
21622 void *argp6 = 0 ;
21623 int res6 = 0 ;
21624 PyObject * obj0 = 0 ;
21625 PyObject * obj1 = 0 ;
21626 PyObject * obj2 = 0 ;
21627 char * kwnames[] = {
21628 (char *) "self",(char *) "text",(char *) "font", NULL
21629 };
21630
21631 arg3 = &temp3;
21632 arg4 = &temp4;
21633 arg5 = &temp5;
21634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21636 if (!SWIG_IsOK(res1)) {
21637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21638 }
21639 arg1 = reinterpret_cast< wxDC * >(argp1);
21640 {
21641 arg2 = wxString_in_helper(obj1);
21642 if (arg2 == NULL) SWIG_fail;
21643 temp2 = true;
21644 }
21645 if (obj2) {
21646 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21647 if (!SWIG_IsOK(res6)) {
21648 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21649 }
554f62e9
RD
21650 arg6 = reinterpret_cast< wxFont * >(argp6);
21651 }
21652 {
21653 PyThreadState* __tstate = wxPyBeginAllowThreads();
21654 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21655 wxPyEndAllowThreads(__tstate);
21656 if (PyErr_Occurred()) SWIG_fail;
21657 }
21658 resultobj = SWIG_Py_Void();
21659 if (SWIG_IsTmpObj(res3)) {
21660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21661 } else {
21662 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21664 }
21665 if (SWIG_IsTmpObj(res4)) {
21666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21667 } else {
21668 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21670 }
21671 if (SWIG_IsTmpObj(res5)) {
21672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21673 } else {
21674 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21676 }
21677 {
21678 if (temp2)
21679 delete arg2;
21680 }
21681 return resultobj;
21682fail:
21683 {
21684 if (temp2)
21685 delete arg2;
21686 }
21687 return NULL;
21688}
21689
21690
21691SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21692 PyObject *resultobj = 0;
21693 wxDC *arg1 = (wxDC *) 0 ;
21694 wxString *arg2 = 0 ;
21695 wxArrayInt result;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 bool temp2 = false ;
21699 PyObject * obj0 = 0 ;
21700 PyObject * obj1 = 0 ;
21701 char * kwnames[] = {
21702 (char *) "self",(char *) "text", NULL
21703 };
21704
21705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21707 if (!SWIG_IsOK(res1)) {
21708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21709 }
21710 arg1 = reinterpret_cast< wxDC * >(argp1);
21711 {
21712 arg2 = wxString_in_helper(obj1);
21713 if (arg2 == NULL) SWIG_fail;
21714 temp2 = true;
21715 }
21716 {
21717 PyThreadState* __tstate = wxPyBeginAllowThreads();
21718 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21719 wxPyEndAllowThreads(__tstate);
21720 if (PyErr_Occurred()) SWIG_fail;
21721 }
21722 {
b39fe951 21723 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
21724 }
21725 {
21726 if (temp2)
21727 delete arg2;
21728 }
21729 return resultobj;
21730fail:
21731 {
21732 if (temp2)
21733 delete arg2;
21734 }
21735 return NULL;
21736}
21737
21738
21739SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21740 PyObject *resultobj = 0;
21741 wxDC *arg1 = (wxDC *) 0 ;
21742 wxSize result;
21743 void *argp1 = 0 ;
21744 int res1 = 0 ;
21745 PyObject *swig_obj[1] ;
21746
21747 if (!args) SWIG_fail;
21748 swig_obj[0] = args;
21749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21750 if (!SWIG_IsOK(res1)) {
21751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21752 }
21753 arg1 = reinterpret_cast< wxDC * >(argp1);
21754 {
21755 PyThreadState* __tstate = wxPyBeginAllowThreads();
21756 result = (arg1)->GetSize();
21757 wxPyEndAllowThreads(__tstate);
21758 if (PyErr_Occurred()) SWIG_fail;
21759 }
21760 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21761 return resultobj;
21762fail:
21763 return NULL;
21764}
21765
21766
21767SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21768 PyObject *resultobj = 0;
21769 wxDC *arg1 = (wxDC *) 0 ;
21770 int *arg2 = (int *) 0 ;
21771 int *arg3 = (int *) 0 ;
21772 void *argp1 = 0 ;
21773 int res1 = 0 ;
21774 int temp2 ;
21775 int res2 = SWIG_TMPOBJ ;
21776 int temp3 ;
21777 int res3 = SWIG_TMPOBJ ;
21778 PyObject *swig_obj[1] ;
21779
21780 arg2 = &temp2;
21781 arg3 = &temp3;
21782 if (!args) SWIG_fail;
21783 swig_obj[0] = args;
21784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21785 if (!SWIG_IsOK(res1)) {
21786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21787 }
21788 arg1 = reinterpret_cast< wxDC * >(argp1);
21789 {
21790 PyThreadState* __tstate = wxPyBeginAllowThreads();
21791 (arg1)->GetSize(arg2,arg3);
21792 wxPyEndAllowThreads(__tstate);
21793 if (PyErr_Occurred()) SWIG_fail;
21794 }
21795 resultobj = SWIG_Py_Void();
21796 if (SWIG_IsTmpObj(res2)) {
21797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21798 } else {
21799 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21801 }
21802 if (SWIG_IsTmpObj(res3)) {
21803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21804 } else {
21805 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21807 }
21808 return resultobj;
21809fail:
21810 return NULL;
21811}
21812
21813
21814SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21815 PyObject *resultobj = 0;
21816 wxDC *arg1 = (wxDC *) 0 ;
21817 wxSize result;
21818 void *argp1 = 0 ;
21819 int res1 = 0 ;
21820 PyObject *swig_obj[1] ;
21821
21822 if (!args) SWIG_fail;
21823 swig_obj[0] = args;
21824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21825 if (!SWIG_IsOK(res1)) {
21826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21827 }
21828 arg1 = reinterpret_cast< wxDC * >(argp1);
21829 {
21830 PyThreadState* __tstate = wxPyBeginAllowThreads();
21831 result = ((wxDC const *)arg1)->GetSizeMM();
21832 wxPyEndAllowThreads(__tstate);
21833 if (PyErr_Occurred()) SWIG_fail;
21834 }
21835 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21836 return resultobj;
21837fail:
21838 return NULL;
21839}
21840
21841
21842SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21843 PyObject *resultobj = 0;
21844 wxDC *arg1 = (wxDC *) 0 ;
21845 int *arg2 = (int *) 0 ;
21846 int *arg3 = (int *) 0 ;
21847 void *argp1 = 0 ;
21848 int res1 = 0 ;
21849 int temp2 ;
21850 int res2 = SWIG_TMPOBJ ;
21851 int temp3 ;
21852 int res3 = SWIG_TMPOBJ ;
21853 PyObject *swig_obj[1] ;
21854
21855 arg2 = &temp2;
21856 arg3 = &temp3;
21857 if (!args) SWIG_fail;
21858 swig_obj[0] = args;
21859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21860 if (!SWIG_IsOK(res1)) {
21861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21862 }
21863 arg1 = reinterpret_cast< wxDC * >(argp1);
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 resultobj = SWIG_Py_Void();
21871 if (SWIG_IsTmpObj(res2)) {
21872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21873 } else {
21874 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21876 }
21877 if (SWIG_IsTmpObj(res3)) {
21878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21879 } else {
21880 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21882 }
21883 return resultobj;
21884fail:
21885 return NULL;
21886}
21887
21888
21889SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21890 PyObject *resultobj = 0;
21891 wxDC *arg1 = (wxDC *) 0 ;
21892 int arg2 ;
21893 int result;
21894 void *argp1 = 0 ;
21895 int res1 = 0 ;
21896 int val2 ;
21897 int ecode2 = 0 ;
21898 PyObject * obj0 = 0 ;
21899 PyObject * obj1 = 0 ;
21900 char * kwnames[] = {
21901 (char *) "self",(char *) "x", NULL
21902 };
21903
21904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21906 if (!SWIG_IsOK(res1)) {
21907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21908 }
21909 arg1 = reinterpret_cast< wxDC * >(argp1);
21910 ecode2 = SWIG_AsVal_int(obj1, &val2);
21911 if (!SWIG_IsOK(ecode2)) {
21912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21913 }
21914 arg2 = static_cast< int >(val2);
21915 {
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 resultobj = SWIG_From_int(static_cast< int >(result));
21922 return resultobj;
21923fail:
21924 return NULL;
21925}
21926
21927
21928SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21929 PyObject *resultobj = 0;
21930 wxDC *arg1 = (wxDC *) 0 ;
21931 int arg2 ;
21932 int result;
21933 void *argp1 = 0 ;
21934 int res1 = 0 ;
21935 int val2 ;
21936 int ecode2 = 0 ;
21937 PyObject * obj0 = 0 ;
21938 PyObject * obj1 = 0 ;
21939 char * kwnames[] = {
21940 (char *) "self",(char *) "y", NULL
21941 };
21942
21943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21945 if (!SWIG_IsOK(res1)) {
21946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21947 }
21948 arg1 = reinterpret_cast< wxDC * >(argp1);
21949 ecode2 = SWIG_AsVal_int(obj1, &val2);
21950 if (!SWIG_IsOK(ecode2)) {
21951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21952 }
21953 arg2 = static_cast< int >(val2);
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 resultobj = SWIG_From_int(static_cast< int >(result));
21961 return resultobj;
21962fail:
21963 return NULL;
21964}
21965
21966
21967SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21968 PyObject *resultobj = 0;
21969 wxDC *arg1 = (wxDC *) 0 ;
21970 int arg2 ;
21971 int result;
21972 void *argp1 = 0 ;
21973 int res1 = 0 ;
21974 int val2 ;
21975 int ecode2 = 0 ;
21976 PyObject * obj0 = 0 ;
21977 PyObject * obj1 = 0 ;
21978 char * kwnames[] = {
21979 (char *) "self",(char *) "x", NULL
21980 };
21981
21982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21984 if (!SWIG_IsOK(res1)) {
21985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21986 }
21987 arg1 = reinterpret_cast< wxDC * >(argp1);
21988 ecode2 = SWIG_AsVal_int(obj1, &val2);
21989 if (!SWIG_IsOK(ecode2)) {
21990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21991 }
21992 arg2 = static_cast< int >(val2);
21993 {
21994 PyThreadState* __tstate = wxPyBeginAllowThreads();
21995 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21996 wxPyEndAllowThreads(__tstate);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 }
21999 resultobj = SWIG_From_int(static_cast< int >(result));
22000 return resultobj;
22001fail:
22002 return NULL;
22003}
22004
22005
22006SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22007 PyObject *resultobj = 0;
22008 wxDC *arg1 = (wxDC *) 0 ;
22009 int arg2 ;
22010 int result;
22011 void *argp1 = 0 ;
22012 int res1 = 0 ;
22013 int val2 ;
22014 int ecode2 = 0 ;
22015 PyObject * obj0 = 0 ;
22016 PyObject * obj1 = 0 ;
22017 char * kwnames[] = {
22018 (char *) "self",(char *) "y", NULL
22019 };
22020
22021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22023 if (!SWIG_IsOK(res1)) {
22024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22025 }
22026 arg1 = reinterpret_cast< wxDC * >(argp1);
22027 ecode2 = SWIG_AsVal_int(obj1, &val2);
22028 if (!SWIG_IsOK(ecode2)) {
22029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22030 }
22031 arg2 = static_cast< int >(val2);
22032 {
22033 PyThreadState* __tstate = wxPyBeginAllowThreads();
22034 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22035 wxPyEndAllowThreads(__tstate);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 }
22038 resultobj = SWIG_From_int(static_cast< int >(result));
22039 return resultobj;
22040fail:
22041 return NULL;
22042}
22043
22044
22045SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22046 PyObject *resultobj = 0;
22047 wxDC *arg1 = (wxDC *) 0 ;
22048 int arg2 ;
22049 int result;
22050 void *argp1 = 0 ;
22051 int res1 = 0 ;
22052 int val2 ;
22053 int ecode2 = 0 ;
22054 PyObject * obj0 = 0 ;
22055 PyObject * obj1 = 0 ;
22056 char * kwnames[] = {
22057 (char *) "self",(char *) "x", NULL
22058 };
22059
22060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22062 if (!SWIG_IsOK(res1)) {
22063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22064 }
22065 arg1 = reinterpret_cast< wxDC * >(argp1);
22066 ecode2 = SWIG_AsVal_int(obj1, &val2);
22067 if (!SWIG_IsOK(ecode2)) {
22068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22069 }
22070 arg2 = static_cast< int >(val2);
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 resultobj = SWIG_From_int(static_cast< int >(result));
22078 return resultobj;
22079fail:
22080 return NULL;
22081}
22082
22083
22084SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22085 PyObject *resultobj = 0;
22086 wxDC *arg1 = (wxDC *) 0 ;
22087 int arg2 ;
22088 int result;
22089 void *argp1 = 0 ;
22090 int res1 = 0 ;
22091 int val2 ;
22092 int ecode2 = 0 ;
22093 PyObject * obj0 = 0 ;
22094 PyObject * obj1 = 0 ;
22095 char * kwnames[] = {
22096 (char *) "self",(char *) "y", NULL
22097 };
22098
22099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22101 if (!SWIG_IsOK(res1)) {
22102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22103 }
22104 arg1 = reinterpret_cast< wxDC * >(argp1);
22105 ecode2 = SWIG_AsVal_int(obj1, &val2);
22106 if (!SWIG_IsOK(ecode2)) {
22107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22108 }
22109 arg2 = static_cast< int >(val2);
22110 {
22111 PyThreadState* __tstate = wxPyBeginAllowThreads();
22112 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22113 wxPyEndAllowThreads(__tstate);
22114 if (PyErr_Occurred()) SWIG_fail;
22115 }
22116 resultobj = SWIG_From_int(static_cast< int >(result));
22117 return resultobj;
22118fail:
22119 return NULL;
22120}
22121
22122
22123SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22124 PyObject *resultobj = 0;
22125 wxDC *arg1 = (wxDC *) 0 ;
22126 int arg2 ;
22127 int result;
22128 void *argp1 = 0 ;
22129 int res1 = 0 ;
22130 int val2 ;
22131 int ecode2 = 0 ;
22132 PyObject * obj0 = 0 ;
22133 PyObject * obj1 = 0 ;
22134 char * kwnames[] = {
22135 (char *) "self",(char *) "x", NULL
22136 };
22137
22138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22140 if (!SWIG_IsOK(res1)) {
22141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22142 }
22143 arg1 = reinterpret_cast< wxDC * >(argp1);
22144 ecode2 = SWIG_AsVal_int(obj1, &val2);
22145 if (!SWIG_IsOK(ecode2)) {
22146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22147 }
22148 arg2 = static_cast< int >(val2);
22149 {
22150 PyThreadState* __tstate = wxPyBeginAllowThreads();
22151 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22152 wxPyEndAllowThreads(__tstate);
22153 if (PyErr_Occurred()) SWIG_fail;
22154 }
22155 resultobj = SWIG_From_int(static_cast< int >(result));
22156 return resultobj;
22157fail:
22158 return NULL;
22159}
22160
22161
22162SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22163 PyObject *resultobj = 0;
22164 wxDC *arg1 = (wxDC *) 0 ;
22165 int arg2 ;
22166 int result;
22167 void *argp1 = 0 ;
22168 int res1 = 0 ;
22169 int val2 ;
22170 int ecode2 = 0 ;
22171 PyObject * obj0 = 0 ;
22172 PyObject * obj1 = 0 ;
22173 char * kwnames[] = {
22174 (char *) "self",(char *) "y", NULL
22175 };
22176
22177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22179 if (!SWIG_IsOK(res1)) {
22180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22181 }
22182 arg1 = reinterpret_cast< wxDC * >(argp1);
22183 ecode2 = SWIG_AsVal_int(obj1, &val2);
22184 if (!SWIG_IsOK(ecode2)) {
22185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22186 }
22187 arg2 = static_cast< int >(val2);
22188 {
22189 PyThreadState* __tstate = wxPyBeginAllowThreads();
22190 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22191 wxPyEndAllowThreads(__tstate);
22192 if (PyErr_Occurred()) SWIG_fail;
22193 }
22194 resultobj = SWIG_From_int(static_cast< int >(result));
22195 return resultobj;
22196fail:
22197 return NULL;
22198}
22199
22200
22201SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22202 PyObject *resultobj = 0;
22203 wxDC *arg1 = (wxDC *) 0 ;
22204 bool result;
22205 void *argp1 = 0 ;
22206 int res1 = 0 ;
22207 PyObject *swig_obj[1] ;
22208
22209 if (!args) SWIG_fail;
22210 swig_obj[0] = args;
22211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22212 if (!SWIG_IsOK(res1)) {
22213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22214 }
22215 arg1 = reinterpret_cast< wxDC * >(argp1);
22216 {
22217 PyThreadState* __tstate = wxPyBeginAllowThreads();
22218 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22219 wxPyEndAllowThreads(__tstate);
22220 if (PyErr_Occurred()) SWIG_fail;
22221 }
22222 {
22223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22224 }
22225 return resultobj;
22226fail:
22227 return NULL;
22228}
22229
22230
22231SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22232 PyObject *resultobj = 0;
22233 wxDC *arg1 = (wxDC *) 0 ;
22234 bool result;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 PyObject *swig_obj[1] ;
22238
22239 if (!args) SWIG_fail;
22240 swig_obj[0] = args;
22241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22244 }
22245 arg1 = reinterpret_cast< wxDC * >(argp1);
22246 {
22247 PyThreadState* __tstate = wxPyBeginAllowThreads();
22248 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 {
22253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22254 }
22255 return resultobj;
22256fail:
22257 return NULL;
22258}
22259
22260
22261SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22262 PyObject *resultobj = 0;
22263 wxDC *arg1 = (wxDC *) 0 ;
22264 int result;
22265 void *argp1 = 0 ;
22266 int res1 = 0 ;
22267 PyObject *swig_obj[1] ;
22268
22269 if (!args) SWIG_fail;
22270 swig_obj[0] = args;
22271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22274 }
22275 arg1 = reinterpret_cast< wxDC * >(argp1);
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
22278 result = (int)((wxDC const *)arg1)->GetDepth();
22279 wxPyEndAllowThreads(__tstate);
22280 if (PyErr_Occurred()) SWIG_fail;
22281 }
22282 resultobj = SWIG_From_int(static_cast< int >(result));
22283 return resultobj;
22284fail:
22285 return NULL;
22286}
22287
22288
22289SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22290 PyObject *resultobj = 0;
22291 wxDC *arg1 = (wxDC *) 0 ;
22292 wxSize result;
22293 void *argp1 = 0 ;
22294 int res1 = 0 ;
22295 PyObject *swig_obj[1] ;
22296
22297 if (!args) SWIG_fail;
22298 swig_obj[0] = args;
22299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22302 }
22303 arg1 = reinterpret_cast< wxDC * >(argp1);
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 result = ((wxDC const *)arg1)->GetPPI();
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22311 return resultobj;
22312fail:
22313 return NULL;
22314}
22315
22316
b39fe951 22317SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22318 PyObject *resultobj = 0;
22319 wxDC *arg1 = (wxDC *) 0 ;
22320 bool result;
22321 void *argp1 = 0 ;
22322 int res1 = 0 ;
22323 PyObject *swig_obj[1] ;
22324
22325 if (!args) SWIG_fail;
22326 swig_obj[0] = args;
22327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22328 if (!SWIG_IsOK(res1)) {
b39fe951 22329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22330 }
22331 arg1 = reinterpret_cast< wxDC * >(argp1);
22332 {
22333 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22334 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22335 wxPyEndAllowThreads(__tstate);
22336 if (PyErr_Occurred()) SWIG_fail;
22337 }
22338 {
22339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22340 }
22341 return resultobj;
22342fail:
22343 return NULL;
22344}
22345
22346
22347SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22348 PyObject *resultobj = 0;
22349 wxDC *arg1 = (wxDC *) 0 ;
22350 int result;
22351 void *argp1 = 0 ;
22352 int res1 = 0 ;
22353 PyObject *swig_obj[1] ;
22354
22355 if (!args) SWIG_fail;
22356 swig_obj[0] = args;
22357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22358 if (!SWIG_IsOK(res1)) {
22359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22360 }
22361 arg1 = reinterpret_cast< wxDC * >(argp1);
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22365 wxPyEndAllowThreads(__tstate);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 }
22368 resultobj = SWIG_From_int(static_cast< int >(result));
22369 return resultobj;
22370fail:
22371 return NULL;
22372}
22373
22374
22375SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22376 PyObject *resultobj = 0;
22377 wxDC *arg1 = (wxDC *) 0 ;
22378 wxBrush *result = 0 ;
22379 void *argp1 = 0 ;
22380 int res1 = 0 ;
22381 PyObject *swig_obj[1] ;
22382
22383 if (!args) SWIG_fail;
22384 swig_obj[0] = args;
22385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22386 if (!SWIG_IsOK(res1)) {
22387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22388 }
22389 arg1 = reinterpret_cast< wxDC * >(argp1);
22390 {
22391 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22392 {
554f62e9
RD
22393 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22394 result = (wxBrush *) &_result_ref;
093d3ff1 22395 }
554f62e9
RD
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 {
22400 wxBrush* resultptr = new wxBrush(*result);
22401 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22402 }
22403 return resultobj;
22404fail:
22405 return NULL;
22406}
22407
22408
22409SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22410 PyObject *resultobj = 0;
22411 wxDC *arg1 = (wxDC *) 0 ;
22412 wxBrush *result = 0 ;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 PyObject *swig_obj[1] ;
22416
22417 if (!args) SWIG_fail;
22418 swig_obj[0] = args;
22419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22420 if (!SWIG_IsOK(res1)) {
22421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22422 }
22423 arg1 = reinterpret_cast< wxDC * >(argp1);
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22426 {
554f62e9
RD
22427 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22428 result = (wxBrush *) &_result_ref;
093d3ff1 22429 }
554f62e9
RD
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 {
22434 wxBrush* resultptr = new wxBrush(*result);
22435 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22436 }
22437 return resultobj;
22438fail:
22439 return NULL;
22440}
22441
22442
22443SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22444 PyObject *resultobj = 0;
22445 wxDC *arg1 = (wxDC *) 0 ;
22446 wxFont *result = 0 ;
22447 void *argp1 = 0 ;
22448 int res1 = 0 ;
22449 PyObject *swig_obj[1] ;
22450
22451 if (!args) SWIG_fail;
22452 swig_obj[0] = args;
22453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22454 if (!SWIG_IsOK(res1)) {
22455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22456 }
22457 arg1 = reinterpret_cast< wxDC * >(argp1);
22458 {
22459 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22460 {
554f62e9
RD
22461 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22462 result = (wxFont *) &_result_ref;
093d3ff1 22463 }
554f62e9
RD
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 {
22468 wxFont* resultptr = new wxFont(*result);
22469 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22470 }
22471 return resultobj;
22472fail:
22473 return NULL;
22474}
22475
22476
22477SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *resultobj = 0;
22479 wxDC *arg1 = (wxDC *) 0 ;
22480 wxPen *result = 0 ;
22481 void *argp1 = 0 ;
22482 int res1 = 0 ;
22483 PyObject *swig_obj[1] ;
22484
22485 if (!args) SWIG_fail;
22486 swig_obj[0] = args;
22487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22488 if (!SWIG_IsOK(res1)) {
22489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22490 }
22491 arg1 = reinterpret_cast< wxDC * >(argp1);
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22494 {
554f62e9
RD
22495 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22496 result = (wxPen *) &_result_ref;
093d3ff1 22497 }
554f62e9
RD
22498 wxPyEndAllowThreads(__tstate);
22499 if (PyErr_Occurred()) SWIG_fail;
22500 }
22501 {
22502 wxPen* resultptr = new wxPen(*result);
22503 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22504 }
22505 return resultobj;
22506fail:
22507 return NULL;
22508}
22509
22510
22511SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22512 PyObject *resultobj = 0;
22513 wxDC *arg1 = (wxDC *) 0 ;
22514 wxColour *result = 0 ;
22515 void *argp1 = 0 ;
22516 int res1 = 0 ;
22517 PyObject *swig_obj[1] ;
22518
22519 if (!args) SWIG_fail;
22520 swig_obj[0] = args;
22521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22522 if (!SWIG_IsOK(res1)) {
22523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22524 }
22525 arg1 = reinterpret_cast< wxDC * >(argp1);
22526 {
22527 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22528 {
554f62e9
RD
22529 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22530 result = (wxColour *) &_result_ref;
093d3ff1 22531 }
554f62e9
RD
22532 wxPyEndAllowThreads(__tstate);
22533 if (PyErr_Occurred()) SWIG_fail;
22534 }
22535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22536 return resultobj;
22537fail:
22538 return NULL;
22539}
22540
22541
22542SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22543 PyObject *resultobj = 0;
22544 wxDC *arg1 = (wxDC *) 0 ;
22545 wxColour *result = 0 ;
22546 void *argp1 = 0 ;
22547 int res1 = 0 ;
22548 PyObject *swig_obj[1] ;
22549
22550 if (!args) SWIG_fail;
22551 swig_obj[0] = args;
22552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22553 if (!SWIG_IsOK(res1)) {
22554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22555 }
22556 arg1 = reinterpret_cast< wxDC * >(argp1);
22557 {
22558 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22559 {
554f62e9
RD
22560 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22561 result = (wxColour *) &_result_ref;
093d3ff1 22562 }
554f62e9
RD
22563 wxPyEndAllowThreads(__tstate);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22567 return resultobj;
22568fail:
22569 return NULL;
22570}
22571
22572
22573SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22574 PyObject *resultobj = 0;
22575 wxDC *arg1 = (wxDC *) 0 ;
22576 wxColour *arg2 = 0 ;
22577 void *argp1 = 0 ;
22578 int res1 = 0 ;
22579 wxColour temp2 ;
22580 PyObject * obj0 = 0 ;
22581 PyObject * obj1 = 0 ;
22582 char * kwnames[] = {
22583 (char *) "self",(char *) "colour", NULL
22584 };
22585
22586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22588 if (!SWIG_IsOK(res1)) {
22589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22590 }
22591 arg1 = reinterpret_cast< wxDC * >(argp1);
22592 {
22593 arg2 = &temp2;
22594 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22595 }
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 (arg1)->SetTextForeground((wxColour const &)*arg2);
22599 wxPyEndAllowThreads(__tstate);
22600 if (PyErr_Occurred()) SWIG_fail;
22601 }
22602 resultobj = SWIG_Py_Void();
22603 return resultobj;
22604fail:
22605 return NULL;
22606}
22607
22608
22609SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22610 PyObject *resultobj = 0;
22611 wxDC *arg1 = (wxDC *) 0 ;
22612 wxColour *arg2 = 0 ;
22613 void *argp1 = 0 ;
22614 int res1 = 0 ;
22615 wxColour temp2 ;
22616 PyObject * obj0 = 0 ;
22617 PyObject * obj1 = 0 ;
22618 char * kwnames[] = {
22619 (char *) "self",(char *) "colour", NULL
22620 };
22621
22622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22624 if (!SWIG_IsOK(res1)) {
22625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22626 }
22627 arg1 = reinterpret_cast< wxDC * >(argp1);
22628 {
22629 arg2 = &temp2;
22630 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22631 }
22632 {
22633 PyThreadState* __tstate = wxPyBeginAllowThreads();
22634 (arg1)->SetTextBackground((wxColour const &)*arg2);
22635 wxPyEndAllowThreads(__tstate);
22636 if (PyErr_Occurred()) SWIG_fail;
22637 }
22638 resultobj = SWIG_Py_Void();
22639 return resultobj;
22640fail:
22641 return NULL;
22642}
22643
22644
22645SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22646 PyObject *resultobj = 0;
22647 wxDC *arg1 = (wxDC *) 0 ;
22648 int result;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 PyObject *swig_obj[1] ;
22652
22653 if (!args) SWIG_fail;
22654 swig_obj[0] = args;
22655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22658 }
22659 arg1 = reinterpret_cast< wxDC * >(argp1);
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 result = (int)((wxDC const *)arg1)->GetMapMode();
22663 wxPyEndAllowThreads(__tstate);
22664 if (PyErr_Occurred()) SWIG_fail;
22665 }
22666 resultobj = SWIG_From_int(static_cast< int >(result));
22667 return resultobj;
22668fail:
22669 return NULL;
22670}
22671
22672
22673SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22674 PyObject *resultobj = 0;
22675 wxDC *arg1 = (wxDC *) 0 ;
22676 int arg2 ;
22677 void *argp1 = 0 ;
22678 int res1 = 0 ;
22679 int val2 ;
22680 int ecode2 = 0 ;
22681 PyObject * obj0 = 0 ;
22682 PyObject * obj1 = 0 ;
22683 char * kwnames[] = {
22684 (char *) "self",(char *) "mode", NULL
22685 };
22686
22687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22689 if (!SWIG_IsOK(res1)) {
22690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22691 }
22692 arg1 = reinterpret_cast< wxDC * >(argp1);
22693 ecode2 = SWIG_AsVal_int(obj1, &val2);
22694 if (!SWIG_IsOK(ecode2)) {
22695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22696 }
22697 arg2 = static_cast< int >(val2);
22698 {
22699 PyThreadState* __tstate = wxPyBeginAllowThreads();
22700 (arg1)->SetMapMode(arg2);
22701 wxPyEndAllowThreads(__tstate);
22702 if (PyErr_Occurred()) SWIG_fail;
22703 }
22704 resultobj = SWIG_Py_Void();
22705 return resultobj;
22706fail:
22707 return NULL;
22708}
22709
22710
22711SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22712 PyObject *resultobj = 0;
22713 wxDC *arg1 = (wxDC *) 0 ;
22714 double *arg2 = (double *) 0 ;
22715 double *arg3 = (double *) 0 ;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 double temp2 ;
22719 int res2 = SWIG_TMPOBJ ;
22720 double temp3 ;
22721 int res3 = SWIG_TMPOBJ ;
22722 PyObject *swig_obj[1] ;
22723
22724 arg2 = &temp2;
22725 arg3 = &temp3;
22726 if (!args) SWIG_fail;
22727 swig_obj[0] = args;
22728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22729 if (!SWIG_IsOK(res1)) {
22730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22731 }
22732 arg1 = reinterpret_cast< wxDC * >(argp1);
22733 {
22734 PyThreadState* __tstate = wxPyBeginAllowThreads();
22735 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22736 wxPyEndAllowThreads(__tstate);
22737 if (PyErr_Occurred()) SWIG_fail;
22738 }
22739 resultobj = SWIG_Py_Void();
22740 if (SWIG_IsTmpObj(res2)) {
22741 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22742 } else {
22743 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22745 }
22746 if (SWIG_IsTmpObj(res3)) {
22747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22748 } else {
22749 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22751 }
22752 return resultobj;
22753fail:
22754 return NULL;
22755}
22756
22757
22758SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22759 PyObject *resultobj = 0;
22760 wxDC *arg1 = (wxDC *) 0 ;
22761 double arg2 ;
22762 double arg3 ;
22763 void *argp1 = 0 ;
22764 int res1 = 0 ;
22765 double val2 ;
22766 int ecode2 = 0 ;
22767 double val3 ;
22768 int ecode3 = 0 ;
22769 PyObject * obj0 = 0 ;
22770 PyObject * obj1 = 0 ;
22771 PyObject * obj2 = 0 ;
22772 char * kwnames[] = {
22773 (char *) "self",(char *) "x",(char *) "y", NULL
22774 };
22775
22776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22778 if (!SWIG_IsOK(res1)) {
22779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22780 }
22781 arg1 = reinterpret_cast< wxDC * >(argp1);
22782 ecode2 = SWIG_AsVal_double(obj1, &val2);
22783 if (!SWIG_IsOK(ecode2)) {
22784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22785 }
22786 arg2 = static_cast< double >(val2);
22787 ecode3 = SWIG_AsVal_double(obj2, &val3);
22788 if (!SWIG_IsOK(ecode3)) {
22789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22790 }
22791 arg3 = static_cast< double >(val3);
22792 {
22793 PyThreadState* __tstate = wxPyBeginAllowThreads();
22794 (arg1)->SetUserScale(arg2,arg3);
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 resultobj = SWIG_Py_Void();
22799 return resultobj;
22800fail:
22801 return NULL;
22802}
22803
22804
22805SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22806 PyObject *resultobj = 0;
22807 wxDC *arg1 = (wxDC *) 0 ;
22808 double *arg2 = (double *) 0 ;
22809 double *arg3 = (double *) 0 ;
22810 void *argp1 = 0 ;
22811 int res1 = 0 ;
22812 double temp2 ;
22813 int res2 = SWIG_TMPOBJ ;
22814 double temp3 ;
22815 int res3 = SWIG_TMPOBJ ;
22816 PyObject *swig_obj[1] ;
22817
22818 arg2 = &temp2;
22819 arg3 = &temp3;
22820 if (!args) SWIG_fail;
22821 swig_obj[0] = args;
22822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22825 }
22826 arg1 = reinterpret_cast< wxDC * >(argp1);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 (arg1)->GetLogicalScale(arg2,arg3);
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 resultobj = SWIG_Py_Void();
22834 if (SWIG_IsTmpObj(res2)) {
22835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22836 } else {
22837 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22839 }
22840 if (SWIG_IsTmpObj(res3)) {
22841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22842 } else {
22843 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22845 }
22846 return resultobj;
22847fail:
22848 return NULL;
22849}
22850
22851
22852SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22853 PyObject *resultobj = 0;
22854 wxDC *arg1 = (wxDC *) 0 ;
22855 double arg2 ;
22856 double arg3 ;
22857 void *argp1 = 0 ;
22858 int res1 = 0 ;
22859 double val2 ;
22860 int ecode2 = 0 ;
22861 double val3 ;
22862 int ecode3 = 0 ;
22863 PyObject * obj0 = 0 ;
22864 PyObject * obj1 = 0 ;
22865 PyObject * obj2 = 0 ;
22866 char * kwnames[] = {
22867 (char *) "self",(char *) "x",(char *) "y", NULL
22868 };
22869
22870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22872 if (!SWIG_IsOK(res1)) {
22873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22874 }
22875 arg1 = reinterpret_cast< wxDC * >(argp1);
22876 ecode2 = SWIG_AsVal_double(obj1, &val2);
22877 if (!SWIG_IsOK(ecode2)) {
22878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22879 }
22880 arg2 = static_cast< double >(val2);
22881 ecode3 = SWIG_AsVal_double(obj2, &val3);
22882 if (!SWIG_IsOK(ecode3)) {
22883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22884 }
22885 arg3 = static_cast< double >(val3);
22886 {
22887 PyThreadState* __tstate = wxPyBeginAllowThreads();
22888 (arg1)->SetLogicalScale(arg2,arg3);
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 resultobj = SWIG_Py_Void();
22893 return resultobj;
22894fail:
22895 return NULL;
22896}
22897
22898
22899SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22900 PyObject *resultobj = 0;
22901 wxDC *arg1 = (wxDC *) 0 ;
22902 wxPoint result;
22903 void *argp1 = 0 ;
22904 int res1 = 0 ;
22905 PyObject *swig_obj[1] ;
22906
22907 if (!args) SWIG_fail;
22908 swig_obj[0] = args;
22909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22910 if (!SWIG_IsOK(res1)) {
22911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22912 }
22913 arg1 = reinterpret_cast< wxDC * >(argp1);
22914 {
22915 PyThreadState* __tstate = wxPyBeginAllowThreads();
22916 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22917 wxPyEndAllowThreads(__tstate);
22918 if (PyErr_Occurred()) SWIG_fail;
22919 }
22920 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22921 return resultobj;
22922fail:
22923 return NULL;
22924}
22925
22926
22927SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22928 PyObject *resultobj = 0;
22929 wxDC *arg1 = (wxDC *) 0 ;
22930 int *arg2 = (int *) 0 ;
22931 int *arg3 = (int *) 0 ;
22932 void *argp1 = 0 ;
22933 int res1 = 0 ;
22934 int temp2 ;
22935 int res2 = SWIG_TMPOBJ ;
22936 int temp3 ;
22937 int res3 = SWIG_TMPOBJ ;
22938 PyObject *swig_obj[1] ;
22939
22940 arg2 = &temp2;
22941 arg3 = &temp3;
22942 if (!args) SWIG_fail;
22943 swig_obj[0] = args;
22944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22945 if (!SWIG_IsOK(res1)) {
22946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22947 }
22948 arg1 = reinterpret_cast< wxDC * >(argp1);
22949 {
22950 PyThreadState* __tstate = wxPyBeginAllowThreads();
22951 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22952 wxPyEndAllowThreads(__tstate);
22953 if (PyErr_Occurred()) SWIG_fail;
22954 }
22955 resultobj = SWIG_Py_Void();
22956 if (SWIG_IsTmpObj(res2)) {
22957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22958 } else {
22959 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22961 }
22962 if (SWIG_IsTmpObj(res3)) {
22963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22964 } else {
22965 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22967 }
22968 return resultobj;
22969fail:
22970 return NULL;
22971}
22972
22973
22974SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj = 0;
22976 wxDC *arg1 = (wxDC *) 0 ;
22977 int arg2 ;
22978 int arg3 ;
22979 void *argp1 = 0 ;
22980 int res1 = 0 ;
22981 int val2 ;
22982 int ecode2 = 0 ;
22983 int val3 ;
22984 int ecode3 = 0 ;
22985 PyObject * obj0 = 0 ;
22986 PyObject * obj1 = 0 ;
22987 PyObject * obj2 = 0 ;
22988 char * kwnames[] = {
22989 (char *) "self",(char *) "x",(char *) "y", NULL
22990 };
22991
22992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22996 }
22997 arg1 = reinterpret_cast< wxDC * >(argp1);
22998 ecode2 = SWIG_AsVal_int(obj1, &val2);
22999 if (!SWIG_IsOK(ecode2)) {
23000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23001 }
23002 arg2 = static_cast< int >(val2);
23003 ecode3 = SWIG_AsVal_int(obj2, &val3);
23004 if (!SWIG_IsOK(ecode3)) {
23005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23006 }
23007 arg3 = static_cast< int >(val3);
23008 {
23009 PyThreadState* __tstate = wxPyBeginAllowThreads();
23010 (arg1)->SetLogicalOrigin(arg2,arg3);
23011 wxPyEndAllowThreads(__tstate);
23012 if (PyErr_Occurred()) SWIG_fail;
23013 }
23014 resultobj = SWIG_Py_Void();
23015 return resultobj;
23016fail:
23017 return NULL;
23018}
23019
23020
23021SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj = 0;
23023 wxDC *arg1 = (wxDC *) 0 ;
23024 wxPoint *arg2 = 0 ;
23025 void *argp1 = 0 ;
23026 int res1 = 0 ;
23027 wxPoint temp2 ;
23028 PyObject * obj0 = 0 ;
23029 PyObject * obj1 = 0 ;
23030 char * kwnames[] = {
23031 (char *) "self",(char *) "point", NULL
23032 };
23033
23034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23036 if (!SWIG_IsOK(res1)) {
23037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23038 }
23039 arg1 = reinterpret_cast< wxDC * >(argp1);
23040 {
23041 arg2 = &temp2;
23042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23043 }
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_Py_Void();
23051 return resultobj;
23052fail:
23053 return NULL;
23054}
23055
23056
23057SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxDC *arg1 = (wxDC *) 0 ;
23060 wxPoint result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23070 }
23071 arg1 = reinterpret_cast< wxDC * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23079 return resultobj;
23080fail:
23081 return NULL;
23082}
23083
23084
23085SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxDC *arg1 = (wxDC *) 0 ;
23088 int *arg2 = (int *) 0 ;
23089 int *arg3 = (int *) 0 ;
23090 void *argp1 = 0 ;
23091 int res1 = 0 ;
23092 int temp2 ;
23093 int res2 = SWIG_TMPOBJ ;
23094 int temp3 ;
23095 int res3 = SWIG_TMPOBJ ;
23096 PyObject *swig_obj[1] ;
23097
23098 arg2 = &temp2;
23099 arg3 = &temp3;
23100 if (!args) SWIG_fail;
23101 swig_obj[0] = args;
23102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23103 if (!SWIG_IsOK(res1)) {
23104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23105 }
23106 arg1 = reinterpret_cast< wxDC * >(argp1);
23107 {
23108 PyThreadState* __tstate = wxPyBeginAllowThreads();
23109 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23110 wxPyEndAllowThreads(__tstate);
23111 if (PyErr_Occurred()) SWIG_fail;
23112 }
23113 resultobj = SWIG_Py_Void();
23114 if (SWIG_IsTmpObj(res2)) {
23115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23116 } else {
23117 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23119 }
23120 if (SWIG_IsTmpObj(res3)) {
23121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23122 } else {
23123 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23125 }
23126 return resultobj;
23127fail:
23128 return NULL;
23129}
23130
23131
23132SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23133 PyObject *resultobj = 0;
23134 wxDC *arg1 = (wxDC *) 0 ;
23135 int arg2 ;
23136 int arg3 ;
23137 void *argp1 = 0 ;
23138 int res1 = 0 ;
23139 int val2 ;
23140 int ecode2 = 0 ;
23141 int val3 ;
23142 int ecode3 = 0 ;
23143 PyObject * obj0 = 0 ;
23144 PyObject * obj1 = 0 ;
23145 PyObject * obj2 = 0 ;
23146 char * kwnames[] = {
23147 (char *) "self",(char *) "x",(char *) "y", NULL
23148 };
23149
23150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23152 if (!SWIG_IsOK(res1)) {
23153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23154 }
23155 arg1 = reinterpret_cast< wxDC * >(argp1);
23156 ecode2 = SWIG_AsVal_int(obj1, &val2);
23157 if (!SWIG_IsOK(ecode2)) {
23158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23159 }
23160 arg2 = static_cast< int >(val2);
23161 ecode3 = SWIG_AsVal_int(obj2, &val3);
23162 if (!SWIG_IsOK(ecode3)) {
23163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23164 }
23165 arg3 = static_cast< int >(val3);
23166 {
23167 PyThreadState* __tstate = wxPyBeginAllowThreads();
23168 (arg1)->SetDeviceOrigin(arg2,arg3);
23169 wxPyEndAllowThreads(__tstate);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 resultobj = SWIG_Py_Void();
23173 return resultobj;
23174fail:
23175 return NULL;
23176}
23177
23178
23179SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23180 PyObject *resultobj = 0;
23181 wxDC *arg1 = (wxDC *) 0 ;
23182 wxPoint *arg2 = 0 ;
23183 void *argp1 = 0 ;
23184 int res1 = 0 ;
23185 wxPoint temp2 ;
23186 PyObject * obj0 = 0 ;
23187 PyObject * obj1 = 0 ;
23188 char * kwnames[] = {
23189 (char *) "self",(char *) "point", NULL
23190 };
23191
23192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23194 if (!SWIG_IsOK(res1)) {
23195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23196 }
23197 arg1 = reinterpret_cast< wxDC * >(argp1);
23198 {
23199 arg2 = &temp2;
23200 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23201 }
23202 {
23203 PyThreadState* __tstate = wxPyBeginAllowThreads();
23204 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 resultobj = SWIG_Py_Void();
23209 return resultobj;
23210fail:
23211 return NULL;
23212}
23213
23214
23215SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj = 0;
23217 wxDC *arg1 = (wxDC *) 0 ;
23218 bool arg2 ;
23219 bool arg3 ;
23220 void *argp1 = 0 ;
23221 int res1 = 0 ;
23222 bool val2 ;
23223 int ecode2 = 0 ;
23224 bool val3 ;
23225 int ecode3 = 0 ;
23226 PyObject * obj0 = 0 ;
23227 PyObject * obj1 = 0 ;
23228 PyObject * obj2 = 0 ;
23229 char * kwnames[] = {
23230 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23231 };
23232
23233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23235 if (!SWIG_IsOK(res1)) {
23236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23237 }
23238 arg1 = reinterpret_cast< wxDC * >(argp1);
23239 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23240 if (!SWIG_IsOK(ecode2)) {
23241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23242 }
23243 arg2 = static_cast< bool >(val2);
23244 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23245 if (!SWIG_IsOK(ecode3)) {
23246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23247 }
23248 arg3 = static_cast< bool >(val3);
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 (arg1)->SetAxisOrientation(arg2,arg3);
23252 wxPyEndAllowThreads(__tstate);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 resultobj = SWIG_Py_Void();
23256 return resultobj;
23257fail:
23258 return NULL;
23259}
23260
23261
23262SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23263 PyObject *resultobj = 0;
23264 wxDC *arg1 = (wxDC *) 0 ;
23265 int result;
23266 void *argp1 = 0 ;
23267 int res1 = 0 ;
23268 PyObject *swig_obj[1] ;
23269
23270 if (!args) SWIG_fail;
23271 swig_obj[0] = args;
23272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23273 if (!SWIG_IsOK(res1)) {
23274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23275 }
23276 arg1 = reinterpret_cast< wxDC * >(argp1);
23277 {
23278 PyThreadState* __tstate = wxPyBeginAllowThreads();
23279 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23280 wxPyEndAllowThreads(__tstate);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 }
23283 resultobj = SWIG_From_int(static_cast< int >(result));
23284 return resultobj;
23285fail:
23286 return NULL;
23287}
23288
23289
23290SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23291 PyObject *resultobj = 0;
23292 wxDC *arg1 = (wxDC *) 0 ;
23293 int arg2 ;
23294 void *argp1 = 0 ;
23295 int res1 = 0 ;
23296 int val2 ;
23297 int ecode2 = 0 ;
23298 PyObject * obj0 = 0 ;
23299 PyObject * obj1 = 0 ;
23300 char * kwnames[] = {
23301 (char *) "self",(char *) "function", NULL
23302 };
23303
23304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23306 if (!SWIG_IsOK(res1)) {
23307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23308 }
23309 arg1 = reinterpret_cast< wxDC * >(argp1);
23310 ecode2 = SWIG_AsVal_int(obj1, &val2);
23311 if (!SWIG_IsOK(ecode2)) {
23312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23313 }
23314 arg2 = static_cast< int >(val2);
23315 {
23316 PyThreadState* __tstate = wxPyBeginAllowThreads();
23317 (arg1)->SetLogicalFunction(arg2);
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 resultobj = SWIG_Py_Void();
23322 return resultobj;
23323fail:
23324 return NULL;
23325}
23326
23327
23328SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23329 PyObject *resultobj = 0;
23330 wxDC *arg1 = (wxDC *) 0 ;
23331 void *argp1 = 0 ;
23332 int res1 = 0 ;
23333 PyObject *swig_obj[1] ;
23334
23335 if (!args) SWIG_fail;
23336 swig_obj[0] = args;
23337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23338 if (!SWIG_IsOK(res1)) {
23339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23340 }
23341 arg1 = reinterpret_cast< wxDC * >(argp1);
23342 {
23343 PyThreadState* __tstate = wxPyBeginAllowThreads();
23344 (arg1)->ComputeScaleAndOrigin();
23345 wxPyEndAllowThreads(__tstate);
23346 if (PyErr_Occurred()) SWIG_fail;
23347 }
23348 resultobj = SWIG_Py_Void();
23349 return resultobj;
23350fail:
23351 return NULL;
23352}
23353
23354
23355SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23356 PyObject *resultobj = 0;
23357 wxDC *arg1 = (wxDC *) 0 ;
23358 int arg2 ;
23359 int arg3 ;
23360 void *argp1 = 0 ;
23361 int res1 = 0 ;
23362 int val2 ;
23363 int ecode2 = 0 ;
23364 int val3 ;
23365 int ecode3 = 0 ;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 PyObject * obj2 = 0 ;
23369 char * kwnames[] = {
23370 (char *) "self",(char *) "x",(char *) "y", NULL
23371 };
23372
23373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23375 if (!SWIG_IsOK(res1)) {
23376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23377 }
23378 arg1 = reinterpret_cast< wxDC * >(argp1);
23379 ecode2 = SWIG_AsVal_int(obj1, &val2);
23380 if (!SWIG_IsOK(ecode2)) {
23381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23382 }
23383 arg2 = static_cast< int >(val2);
23384 ecode3 = SWIG_AsVal_int(obj2, &val3);
23385 if (!SWIG_IsOK(ecode3)) {
23386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23387 }
23388 arg3 = static_cast< int >(val3);
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 (arg1)->CalcBoundingBox(arg2,arg3);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_Py_Void();
23396 return resultobj;
23397fail:
23398 return NULL;
23399}
23400
23401
23402SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23403 PyObject *resultobj = 0;
23404 wxDC *arg1 = (wxDC *) 0 ;
23405 wxPoint *arg2 = 0 ;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 wxPoint temp2 ;
23409 PyObject * obj0 = 0 ;
23410 PyObject * obj1 = 0 ;
23411 char * kwnames[] = {
23412 (char *) "self",(char *) "point", NULL
23413 };
23414
23415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23417 if (!SWIG_IsOK(res1)) {
23418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23419 }
23420 arg1 = reinterpret_cast< wxDC * >(argp1);
23421 {
23422 arg2 = &temp2;
23423 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23424 }
23425 {
23426 PyThreadState* __tstate = wxPyBeginAllowThreads();
23427 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23428 wxPyEndAllowThreads(__tstate);
23429 if (PyErr_Occurred()) SWIG_fail;
23430 }
23431 resultobj = SWIG_Py_Void();
23432 return resultobj;
23433fail:
23434 return NULL;
23435}
23436
23437
23438SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23439 PyObject *resultobj = 0;
23440 wxDC *arg1 = (wxDC *) 0 ;
23441 void *argp1 = 0 ;
23442 int res1 = 0 ;
23443 PyObject *swig_obj[1] ;
23444
23445 if (!args) SWIG_fail;
23446 swig_obj[0] = args;
23447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23448 if (!SWIG_IsOK(res1)) {
23449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23450 }
23451 arg1 = reinterpret_cast< wxDC * >(argp1);
23452 {
23453 PyThreadState* __tstate = wxPyBeginAllowThreads();
23454 (arg1)->ResetBoundingBox();
23455 wxPyEndAllowThreads(__tstate);
23456 if (PyErr_Occurred()) SWIG_fail;
23457 }
23458 resultobj = SWIG_Py_Void();
23459 return resultobj;
23460fail:
23461 return NULL;
23462}
23463
23464
23465SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23466 PyObject *resultobj = 0;
23467 wxDC *arg1 = (wxDC *) 0 ;
23468 int result;
23469 void *argp1 = 0 ;
23470 int res1 = 0 ;
23471 PyObject *swig_obj[1] ;
23472
23473 if (!args) SWIG_fail;
23474 swig_obj[0] = args;
23475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23476 if (!SWIG_IsOK(res1)) {
23477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23478 }
23479 arg1 = reinterpret_cast< wxDC * >(argp1);
23480 {
23481 PyThreadState* __tstate = wxPyBeginAllowThreads();
23482 result = (int)((wxDC const *)arg1)->MinX();
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 resultobj = SWIG_From_int(static_cast< int >(result));
23487 return resultobj;
23488fail:
23489 return NULL;
23490}
23491
23492
23493SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23494 PyObject *resultobj = 0;
23495 wxDC *arg1 = (wxDC *) 0 ;
23496 int result;
23497 void *argp1 = 0 ;
23498 int res1 = 0 ;
23499 PyObject *swig_obj[1] ;
23500
23501 if (!args) SWIG_fail;
23502 swig_obj[0] = args;
23503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23504 if (!SWIG_IsOK(res1)) {
23505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23506 }
23507 arg1 = reinterpret_cast< wxDC * >(argp1);
23508 {
23509 PyThreadState* __tstate = wxPyBeginAllowThreads();
23510 result = (int)((wxDC const *)arg1)->MaxX();
23511 wxPyEndAllowThreads(__tstate);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 }
23514 resultobj = SWIG_From_int(static_cast< int >(result));
23515 return resultobj;
23516fail:
23517 return NULL;
23518}
23519
23520
23521SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23522 PyObject *resultobj = 0;
23523 wxDC *arg1 = (wxDC *) 0 ;
23524 int result;
23525 void *argp1 = 0 ;
23526 int res1 = 0 ;
23527 PyObject *swig_obj[1] ;
23528
23529 if (!args) SWIG_fail;
23530 swig_obj[0] = args;
23531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23532 if (!SWIG_IsOK(res1)) {
23533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23534 }
23535 arg1 = reinterpret_cast< wxDC * >(argp1);
23536 {
23537 PyThreadState* __tstate = wxPyBeginAllowThreads();
23538 result = (int)((wxDC const *)arg1)->MinY();
23539 wxPyEndAllowThreads(__tstate);
23540 if (PyErr_Occurred()) SWIG_fail;
23541 }
23542 resultobj = SWIG_From_int(static_cast< int >(result));
23543 return resultobj;
23544fail:
23545 return NULL;
23546}
23547
23548
23549SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23550 PyObject *resultobj = 0;
23551 wxDC *arg1 = (wxDC *) 0 ;
23552 int result;
23553 void *argp1 = 0 ;
23554 int res1 = 0 ;
23555 PyObject *swig_obj[1] ;
23556
23557 if (!args) SWIG_fail;
23558 swig_obj[0] = args;
23559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23560 if (!SWIG_IsOK(res1)) {
23561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23562 }
23563 arg1 = reinterpret_cast< wxDC * >(argp1);
23564 {
23565 PyThreadState* __tstate = wxPyBeginAllowThreads();
23566 result = (int)((wxDC const *)arg1)->MaxY();
23567 wxPyEndAllowThreads(__tstate);
23568 if (PyErr_Occurred()) SWIG_fail;
23569 }
23570 resultobj = SWIG_From_int(static_cast< int >(result));
23571 return resultobj;
23572fail:
23573 return NULL;
23574}
23575
23576
23577SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23578 PyObject *resultobj = 0;
23579 wxDC *arg1 = (wxDC *) 0 ;
23580 int *arg2 = (int *) 0 ;
23581 int *arg3 = (int *) 0 ;
23582 int *arg4 = (int *) 0 ;
23583 int *arg5 = (int *) 0 ;
23584 void *argp1 = 0 ;
23585 int res1 = 0 ;
23586 int temp2 ;
23587 int res2 = SWIG_TMPOBJ ;
23588 int temp3 ;
23589 int res3 = SWIG_TMPOBJ ;
23590 int temp4 ;
23591 int res4 = SWIG_TMPOBJ ;
23592 int temp5 ;
23593 int res5 = SWIG_TMPOBJ ;
23594 PyObject *swig_obj[1] ;
23595
23596 arg2 = &temp2;
23597 arg3 = &temp3;
23598 arg4 = &temp4;
23599 arg5 = &temp5;
23600 if (!args) SWIG_fail;
23601 swig_obj[0] = args;
23602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23603 if (!SWIG_IsOK(res1)) {
23604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23605 }
23606 arg1 = reinterpret_cast< wxDC * >(argp1);
23607 {
23608 PyThreadState* __tstate = wxPyBeginAllowThreads();
23609 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23610 wxPyEndAllowThreads(__tstate);
23611 if (PyErr_Occurred()) SWIG_fail;
23612 }
23613 resultobj = SWIG_Py_Void();
23614 if (SWIG_IsTmpObj(res2)) {
23615 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23616 } else {
23617 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23618 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23619 }
23620 if (SWIG_IsTmpObj(res3)) {
23621 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23622 } else {
23623 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23624 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23625 }
23626 if (SWIG_IsTmpObj(res4)) {
23627 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23628 } else {
23629 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23630 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23631 }
23632 if (SWIG_IsTmpObj(res5)) {
23633 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23634 } else {
23635 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23636 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23637 }
23638 return resultobj;
23639fail:
23640 return NULL;
23641}
23642
23643
b39fe951
RD
23644SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23645 PyObject *resultobj = 0;
23646 wxDC *arg1 = (wxDC *) 0 ;
23647 wxLayoutDirection result;
23648 void *argp1 = 0 ;
23649 int res1 = 0 ;
23650 PyObject *swig_obj[1] ;
23651
23652 if (!args) SWIG_fail;
23653 swig_obj[0] = args;
23654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23657 }
23658 arg1 = reinterpret_cast< wxDC * >(argp1);
23659 {
23660 PyThreadState* __tstate = wxPyBeginAllowThreads();
23661 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23662 wxPyEndAllowThreads(__tstate);
23663 if (PyErr_Occurred()) SWIG_fail;
23664 }
23665 resultobj = SWIG_From_int(static_cast< int >(result));
23666 return resultobj;
23667fail:
23668 return NULL;
23669}
23670
23671
23672SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23673 PyObject *resultobj = 0;
23674 wxDC *arg1 = (wxDC *) 0 ;
23675 wxLayoutDirection arg2 ;
23676 void *argp1 = 0 ;
23677 int res1 = 0 ;
23678 int val2 ;
23679 int ecode2 = 0 ;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 char * kwnames[] = {
23683 (char *) "self",(char *) "dir", NULL
23684 };
23685
23686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23688 if (!SWIG_IsOK(res1)) {
23689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23690 }
23691 arg1 = reinterpret_cast< wxDC * >(argp1);
23692 ecode2 = SWIG_AsVal_int(obj1, &val2);
23693 if (!SWIG_IsOK(ecode2)) {
23694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23695 }
23696 arg2 = static_cast< wxLayoutDirection >(val2);
23697 {
23698 PyThreadState* __tstate = wxPyBeginAllowThreads();
23699 (arg1)->SetLayoutDirection(arg2);
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 resultobj = SWIG_Py_Void();
23704 return resultobj;
23705fail:
23706 return NULL;
23707}
23708
23709
554f62e9
RD
23710SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23711 PyObject *resultobj = 0;
23712 wxDC *arg1 = (wxDC *) 0 ;
23713 long result;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 PyObject *swig_obj[1] ;
23717
23718 if (!args) SWIG_fail;
23719 swig_obj[0] = args;
23720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23723 }
23724 arg1 = reinterpret_cast< wxDC * >(argp1);
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 result = (long)(arg1)->GetHDC();
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 resultobj = SWIG_From_long(static_cast< long >(result));
23732 return resultobj;
23733fail:
23734 return NULL;
23735}
23736
23737
23738SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23739 PyObject *resultobj = 0;
23740 wxDC *arg1 = (wxDC *) 0 ;
23741 PyObject *arg2 = (PyObject *) 0 ;
23742 PyObject *arg3 = (PyObject *) 0 ;
23743 PyObject *arg4 = (PyObject *) 0 ;
23744 PyObject *result = 0 ;
23745 void *argp1 = 0 ;
23746 int res1 = 0 ;
23747 PyObject * obj0 = 0 ;
23748 PyObject * obj1 = 0 ;
23749 PyObject * obj2 = 0 ;
23750 PyObject * obj3 = 0 ;
23751 char * kwnames[] = {
23752 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23753 };
23754
23755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23757 if (!SWIG_IsOK(res1)) {
23758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23759 }
23760 arg1 = reinterpret_cast< wxDC * >(argp1);
23761 arg2 = obj1;
23762 arg3 = obj2;
23763 arg4 = obj3;
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = result;
23771 return resultobj;
23772fail:
23773 return NULL;
23774}
23775
23776
23777SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 wxDC *arg1 = (wxDC *) 0 ;
23780 PyObject *arg2 = (PyObject *) 0 ;
23781 PyObject *arg3 = (PyObject *) 0 ;
23782 PyObject *arg4 = (PyObject *) 0 ;
23783 PyObject *result = 0 ;
23784 void *argp1 = 0 ;
23785 int res1 = 0 ;
23786 PyObject * obj0 = 0 ;
23787 PyObject * obj1 = 0 ;
23788 PyObject * obj2 = 0 ;
23789 PyObject * obj3 = 0 ;
23790 char * kwnames[] = {
23791 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23792 };
23793
23794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23796 if (!SWIG_IsOK(res1)) {
23797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23798 }
23799 arg1 = reinterpret_cast< wxDC * >(argp1);
23800 arg2 = obj1;
23801 arg3 = obj2;
23802 arg4 = obj3;
23803 {
23804 PyThreadState* __tstate = wxPyBeginAllowThreads();
23805 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23806 wxPyEndAllowThreads(__tstate);
23807 if (PyErr_Occurred()) SWIG_fail;
23808 }
23809 resultobj = result;
23810 return resultobj;
23811fail:
23812 return NULL;
23813}
23814
23815
23816SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj = 0;
23818 wxDC *arg1 = (wxDC *) 0 ;
23819 PyObject *arg2 = (PyObject *) 0 ;
23820 PyObject *arg3 = (PyObject *) 0 ;
23821 PyObject *arg4 = (PyObject *) 0 ;
23822 PyObject *result = 0 ;
23823 void *argp1 = 0 ;
23824 int res1 = 0 ;
23825 PyObject * obj0 = 0 ;
23826 PyObject * obj1 = 0 ;
23827 PyObject * obj2 = 0 ;
23828 PyObject * obj3 = 0 ;
23829 char * kwnames[] = {
23830 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23831 };
23832
23833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23835 if (!SWIG_IsOK(res1)) {
23836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23837 }
23838 arg1 = reinterpret_cast< wxDC * >(argp1);
23839 arg2 = obj1;
23840 arg3 = obj2;
23841 arg4 = obj3;
23842 {
23843 PyThreadState* __tstate = wxPyBeginAllowThreads();
23844 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23845 wxPyEndAllowThreads(__tstate);
23846 if (PyErr_Occurred()) SWIG_fail;
23847 }
23848 resultobj = result;
23849 return resultobj;
23850fail:
23851 return NULL;
23852}
23853
23854
23855SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23856 PyObject *resultobj = 0;
23857 wxDC *arg1 = (wxDC *) 0 ;
23858 PyObject *arg2 = (PyObject *) 0 ;
23859 PyObject *arg3 = (PyObject *) 0 ;
23860 PyObject *arg4 = (PyObject *) 0 ;
23861 PyObject *result = 0 ;
23862 void *argp1 = 0 ;
23863 int res1 = 0 ;
23864 PyObject * obj0 = 0 ;
23865 PyObject * obj1 = 0 ;
23866 PyObject * obj2 = 0 ;
23867 PyObject * obj3 = 0 ;
23868 char * kwnames[] = {
23869 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23870 };
23871
23872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23874 if (!SWIG_IsOK(res1)) {
23875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23876 }
23877 arg1 = reinterpret_cast< wxDC * >(argp1);
23878 arg2 = obj1;
23879 arg3 = obj2;
23880 arg4 = obj3;
23881 {
23882 PyThreadState* __tstate = wxPyBeginAllowThreads();
23883 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 resultobj = result;
23888 return resultobj;
23889fail:
23890 return NULL;
23891}
23892
23893
23894SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23895 PyObject *resultobj = 0;
23896 wxDC *arg1 = (wxDC *) 0 ;
23897 PyObject *arg2 = (PyObject *) 0 ;
23898 PyObject *arg3 = (PyObject *) 0 ;
23899 PyObject *arg4 = (PyObject *) 0 ;
23900 PyObject *result = 0 ;
23901 void *argp1 = 0 ;
23902 int res1 = 0 ;
23903 PyObject * obj0 = 0 ;
23904 PyObject * obj1 = 0 ;
23905 PyObject * obj2 = 0 ;
23906 PyObject * obj3 = 0 ;
23907 char * kwnames[] = {
23908 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23909 };
23910
23911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23915 }
23916 arg1 = reinterpret_cast< wxDC * >(argp1);
23917 arg2 = obj1;
23918 arg3 = obj2;
23919 arg4 = obj3;
23920 {
23921 PyThreadState* __tstate = wxPyBeginAllowThreads();
23922 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23923 wxPyEndAllowThreads(__tstate);
23924 if (PyErr_Occurred()) SWIG_fail;
23925 }
23926 resultobj = result;
23927 return resultobj;
23928fail:
23929 return NULL;
23930}
23931
23932
23933SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23934 PyObject *resultobj = 0;
23935 wxDC *arg1 = (wxDC *) 0 ;
23936 PyObject *arg2 = (PyObject *) 0 ;
23937 PyObject *arg3 = (PyObject *) 0 ;
23938 PyObject *arg4 = (PyObject *) 0 ;
23939 PyObject *arg5 = (PyObject *) 0 ;
23940 PyObject *result = 0 ;
23941 void *argp1 = 0 ;
23942 int res1 = 0 ;
23943 PyObject * obj0 = 0 ;
23944 PyObject * obj1 = 0 ;
23945 PyObject * obj2 = 0 ;
23946 PyObject * obj3 = 0 ;
23947 PyObject * obj4 = 0 ;
23948 char * kwnames[] = {
23949 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23950 };
23951
23952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23954 if (!SWIG_IsOK(res1)) {
23955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23956 }
23957 arg1 = reinterpret_cast< wxDC * >(argp1);
23958 arg2 = obj1;
23959 arg3 = obj2;
23960 arg4 = obj3;
23961 arg5 = obj4;
23962 {
23963 PyThreadState* __tstate = wxPyBeginAllowThreads();
23964 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23965 wxPyEndAllowThreads(__tstate);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 resultobj = result;
23969 return resultobj;
23970fail:
23971 return NULL;
23972}
23973
23974
23975SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23976 PyObject *obj;
23977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23978 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23979 return SWIG_Py_Void();
23980}
23981
70d7cb34
RD
23982SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23983 PyObject *resultobj = 0;
23984 wxDC *arg1 = 0 ;
23985 wxColour *arg2 = 0 ;
23986 wxDCTextColourChanger *result = 0 ;
23987 void *argp1 = 0 ;
23988 int res1 = 0 ;
23989 wxColour temp2 ;
23990 PyObject * obj0 = 0 ;
23991 PyObject * obj1 = 0 ;
23992 char * kwnames[] = {
23993 (char *) "dc",(char *) "col", NULL
23994 };
23995
23996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23997 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23998 if (!SWIG_IsOK(res1)) {
23999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24000 }
24001 if (!argp1) {
24002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24003 }
24004 arg1 = reinterpret_cast< wxDC * >(argp1);
24005 {
24006 arg2 = &temp2;
24007 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24008 }
24009 {
24010 PyThreadState* __tstate = wxPyBeginAllowThreads();
24011 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24012 wxPyEndAllowThreads(__tstate);
24013 if (PyErr_Occurred()) SWIG_fail;
24014 }
24015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24016 return resultobj;
24017fail:
24018 return NULL;
24019}
24020
24021
24022SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24023 PyObject *resultobj = 0;
24024 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24025 void *argp1 = 0 ;
24026 int res1 = 0 ;
24027 PyObject *swig_obj[1] ;
24028
24029 if (!args) SWIG_fail;
24030 swig_obj[0] = args;
24031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24032 if (!SWIG_IsOK(res1)) {
24033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24034 }
24035 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24036 {
24037 PyThreadState* __tstate = wxPyBeginAllowThreads();
24038 delete arg1;
24039
24040 wxPyEndAllowThreads(__tstate);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 resultobj = SWIG_Py_Void();
24044 return resultobj;
24045fail:
24046 return NULL;
24047}
24048
24049
24050SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24051 PyObject *obj;
24052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24053 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24054 return SWIG_Py_Void();
24055}
24056
24057SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24058 return SWIG_Python_InitShadowInstance(args);
24059}
24060
24061SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24062 PyObject *resultobj = 0;
24063 wxDC *arg1 = 0 ;
24064 wxPen *arg2 = 0 ;
24065 wxDCPenChanger *result = 0 ;
24066 void *argp1 = 0 ;
24067 int res1 = 0 ;
24068 void *argp2 = 0 ;
24069 int res2 = 0 ;
24070 PyObject * obj0 = 0 ;
24071 PyObject * obj1 = 0 ;
24072 char * kwnames[] = {
24073 (char *) "dc",(char *) "pen", NULL
24074 };
24075
24076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24077 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24078 if (!SWIG_IsOK(res1)) {
24079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24080 }
24081 if (!argp1) {
24082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24083 }
24084 arg1 = reinterpret_cast< wxDC * >(argp1);
24085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24086 if (!SWIG_IsOK(res2)) {
24087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24088 }
24089 if (!argp2) {
24090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24091 }
24092 arg2 = reinterpret_cast< wxPen * >(argp2);
24093 {
24094 PyThreadState* __tstate = wxPyBeginAllowThreads();
24095 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24096 wxPyEndAllowThreads(__tstate);
24097 if (PyErr_Occurred()) SWIG_fail;
24098 }
24099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24100 return resultobj;
24101fail:
24102 return NULL;
24103}
24104
24105
24106SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24107 PyObject *resultobj = 0;
24108 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24109 void *argp1 = 0 ;
24110 int res1 = 0 ;
24111 PyObject *swig_obj[1] ;
24112
24113 if (!args) SWIG_fail;
24114 swig_obj[0] = args;
24115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24116 if (!SWIG_IsOK(res1)) {
24117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24118 }
24119 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 delete arg1;
24123
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 resultobj = SWIG_Py_Void();
24128 return resultobj;
24129fail:
24130 return NULL;
24131}
24132
24133
24134SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24135 PyObject *obj;
24136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24137 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24138 return SWIG_Py_Void();
24139}
24140
24141SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24142 return SWIG_Python_InitShadowInstance(args);
24143}
24144
24145SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24146 PyObject *resultobj = 0;
24147 wxDC *arg1 = 0 ;
24148 wxBrush *arg2 = 0 ;
24149 wxDCBrushChanger *result = 0 ;
24150 void *argp1 = 0 ;
24151 int res1 = 0 ;
24152 void *argp2 = 0 ;
24153 int res2 = 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 char * kwnames[] = {
24157 (char *) "dc",(char *) "brush", NULL
24158 };
24159
24160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24161 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24162 if (!SWIG_IsOK(res1)) {
24163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24164 }
24165 if (!argp1) {
24166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24167 }
24168 arg1 = reinterpret_cast< wxDC * >(argp1);
24169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24170 if (!SWIG_IsOK(res2)) {
24171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24172 }
24173 if (!argp2) {
24174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24175 }
24176 arg2 = reinterpret_cast< wxBrush * >(argp2);
24177 {
24178 PyThreadState* __tstate = wxPyBeginAllowThreads();
24179 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24184 return resultobj;
24185fail:
24186 return NULL;
24187}
24188
24189
24190SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24191 PyObject *resultobj = 0;
24192 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24193 void *argp1 = 0 ;
24194 int res1 = 0 ;
24195 PyObject *swig_obj[1] ;
24196
24197 if (!args) SWIG_fail;
24198 swig_obj[0] = args;
24199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24202 }
24203 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 delete arg1;
24207
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 resultobj = SWIG_Py_Void();
24212 return resultobj;
24213fail:
24214 return NULL;
24215}
24216
24217
24218SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24219 PyObject *obj;
24220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24221 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24222 return SWIG_Py_Void();
24223}
24224
24225SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24226 return SWIG_Python_InitShadowInstance(args);
24227}
24228
24229SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24230 PyObject *resultobj = 0;
24231 wxDC *arg1 = 0 ;
24232 wxRegion *arg2 = 0 ;
24233 wxDCClipper *result = 0 ;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 void *argp2 = 0 ;
24237 int res2 = 0 ;
24238
24239 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24241 if (!SWIG_IsOK(res1)) {
24242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24243 }
24244 if (!argp1) {
24245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24246 }
24247 arg1 = reinterpret_cast< wxDC * >(argp1);
24248 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24249 if (!SWIG_IsOK(res2)) {
24250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24251 }
24252 if (!argp2) {
24253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24254 }
24255 arg2 = reinterpret_cast< wxRegion * >(argp2);
24256 {
24257 PyThreadState* __tstate = wxPyBeginAllowThreads();
24258 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24259 wxPyEndAllowThreads(__tstate);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 }
24262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24263 return resultobj;
24264fail:
24265 return NULL;
24266}
24267
24268
24269SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24270 PyObject *resultobj = 0;
24271 wxDC *arg1 = 0 ;
24272 wxRect *arg2 = 0 ;
24273 wxDCClipper *result = 0 ;
24274 void *argp1 = 0 ;
24275 int res1 = 0 ;
24276 wxRect temp2 ;
24277
24278 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24280 if (!SWIG_IsOK(res1)) {
24281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24282 }
24283 if (!argp1) {
24284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24285 }
24286 arg1 = reinterpret_cast< wxDC * >(argp1);
24287 {
24288 arg2 = &temp2;
24289 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24290 }
24291 {
24292 PyThreadState* __tstate = wxPyBeginAllowThreads();
24293 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24294 wxPyEndAllowThreads(__tstate);
24295 if (PyErr_Occurred()) SWIG_fail;
24296 }
24297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24298 return resultobj;
24299fail:
24300 return NULL;
24301}
24302
24303
24304SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24305 PyObject *resultobj = 0;
24306 wxDC *arg1 = 0 ;
24307 int arg2 ;
24308 int arg3 ;
24309 int arg4 ;
24310 int arg5 ;
24311 wxDCClipper *result = 0 ;
24312 void *argp1 = 0 ;
24313 int res1 = 0 ;
24314 int val2 ;
24315 int ecode2 = 0 ;
24316 int val3 ;
24317 int ecode3 = 0 ;
24318 int val4 ;
24319 int ecode4 = 0 ;
24320 int val5 ;
24321 int ecode5 = 0 ;
24322
24323 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24325 if (!SWIG_IsOK(res1)) {
24326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24327 }
24328 if (!argp1) {
24329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24330 }
24331 arg1 = reinterpret_cast< wxDC * >(argp1);
24332 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24333 if (!SWIG_IsOK(ecode2)) {
24334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24335 }
24336 arg2 = static_cast< int >(val2);
24337 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24338 if (!SWIG_IsOK(ecode3)) {
24339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24340 }
24341 arg3 = static_cast< int >(val3);
24342 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24343 if (!SWIG_IsOK(ecode4)) {
24344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24345 }
24346 arg4 = static_cast< int >(val4);
24347 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24348 if (!SWIG_IsOK(ecode5)) {
24349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24350 }
24351 arg5 = static_cast< int >(val5);
24352 {
24353 PyThreadState* __tstate = wxPyBeginAllowThreads();
24354 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24355 wxPyEndAllowThreads(__tstate);
24356 if (PyErr_Occurred()) SWIG_fail;
24357 }
24358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24359 return resultobj;
24360fail:
24361 return NULL;
24362}
24363
24364
24365SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24366 int argc;
24367 PyObject *argv[6];
24368
24369 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24370 --argc;
24371 if (argc == 2) {
24372 int _v = 0;
24373 {
24374 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24375 _v = SWIG_CheckState(res);
24376 }
24377 if (!_v) goto check_1;
24378 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24379 }
24380check_1:
24381
24382 if (argc == 2) {
24383 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24384 }
24385 if (argc == 5) {
24386 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24387 }
24388
24389fail:
24390 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24391 return NULL;
24392}
24393
24394
24395SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24396 PyObject *resultobj = 0;
24397 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24398 void *argp1 = 0 ;
24399 int res1 = 0 ;
24400 PyObject *swig_obj[1] ;
24401
24402 if (!args) SWIG_fail;
24403 swig_obj[0] = args;
24404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24405 if (!SWIG_IsOK(res1)) {
24406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24407 }
24408 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24409 {
24410 PyThreadState* __tstate = wxPyBeginAllowThreads();
24411 delete arg1;
24412
24413 wxPyEndAllowThreads(__tstate);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 }
24416 resultobj = SWIG_Py_Void();
24417 return resultobj;
24418fail:
24419 return NULL;
24420}
24421
24422
24423SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24424 PyObject *obj;
24425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24426 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24427 return SWIG_Py_Void();
24428}
24429
24430SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24431 return SWIG_Python_InitShadowInstance(args);
24432}
24433
8e99bda9 24434SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 24435 PyObject *resultobj = 0;
8e99bda9
RD
24436 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24437 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
554f62e9 24438 wxMemoryDC *result = 0 ;
8e99bda9
RD
24439 void *argp1 = 0 ;
24440 int res1 = 0 ;
24441 PyObject * obj0 = 0 ;
24442 char * kwnames[] = {
24443 (char *) "bitmap", NULL
24444 };
554f62e9 24445
8e99bda9
RD
24446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24447 if (obj0) {
24448 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
24449 if (!SWIG_IsOK(res1)) {
24450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
24451 }
24452 if (!argp1) {
24453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
24454 }
24455 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24456 }
554f62e9
RD
24457 {
24458 if (!wxPyCheckForApp()) SWIG_fail;
24459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 24460 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
554f62e9
RD
24461 wxPyEndAllowThreads(__tstate);
24462 if (PyErr_Occurred()) SWIG_fail;
24463 }
24464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24465 return resultobj;
24466fail:
24467 return NULL;
24468}
24469
24470
24471SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24472 PyObject *resultobj = 0;
24473 wxDC *arg1 = (wxDC *) 0 ;
24474 wxMemoryDC *result = 0 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 PyObject * obj0 = 0 ;
24478 char * kwnames[] = {
24479 (char *) "oldDC", NULL
24480 };
24481
24482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24484 if (!SWIG_IsOK(res1)) {
24485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24486 }
24487 arg1 = reinterpret_cast< wxDC * >(argp1);
24488 {
24489 if (!wxPyCheckForApp()) SWIG_fail;
24490 PyThreadState* __tstate = wxPyBeginAllowThreads();
24491 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24492 wxPyEndAllowThreads(__tstate);
24493 if (PyErr_Occurred()) SWIG_fail;
24494 }
24495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24496 return resultobj;
24497fail:
24498 return NULL;
24499}
24500
24501
24502SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24503 PyObject *resultobj = 0;
24504 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24505 wxBitmap *arg2 = 0 ;
24506 void *argp1 = 0 ;
24507 int res1 = 0 ;
24508 void *argp2 = 0 ;
24509 int res2 = 0 ;
24510 PyObject * obj0 = 0 ;
24511 PyObject * obj1 = 0 ;
24512 char * kwnames[] = {
24513 (char *) "self",(char *) "bitmap", NULL
24514 };
24515
24516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24518 if (!SWIG_IsOK(res1)) {
24519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24520 }
24521 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24523 if (!SWIG_IsOK(res2)) {
24524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24525 }
24526 if (!argp2) {
24527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24528 }
24529 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 (arg1)->SelectObject((wxBitmap const &)*arg2);
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
24543SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24544 PyObject *obj;
24545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24546 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24547 return SWIG_Py_Void();
24548}
24549
24550SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24551 return SWIG_Python_InitShadowInstance(args);
24552}
24553
24f6c4e8
RD
24554SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24555 PyObject *resultobj = 0;
24556 wxScreenDC *result = 0 ;
24557
24558 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24559 {
24560 if (!wxPyCheckForApp()) SWIG_fail;
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (wxScreenDC *)new wxScreenDC();
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24567 return resultobj;
24568fail:
24569 return NULL;
24570}
24571
24572
24573SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24574 PyObject *resultobj = 0;
24575 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24576 wxWindow *arg2 = (wxWindow *) 0 ;
24577 bool result;
24578 void *argp1 = 0 ;
24579 int res1 = 0 ;
24580 void *argp2 = 0 ;
24581 int res2 = 0 ;
24582 PyObject * obj0 = 0 ;
24583 PyObject * obj1 = 0 ;
24584 char * kwnames[] = {
24585 (char *) "self",(char *) "window", NULL
24586 };
24587
24588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24590 if (!SWIG_IsOK(res1)) {
24591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24592 }
24593 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24595 if (!SWIG_IsOK(res2)) {
24596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24597 }
24598 arg2 = reinterpret_cast< wxWindow * >(argp2);
24599 {
24600 PyThreadState* __tstate = wxPyBeginAllowThreads();
24601 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24602 wxPyEndAllowThreads(__tstate);
24603 if (PyErr_Occurred()) SWIG_fail;
24604 }
24605 {
24606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24607 }
24608 return resultobj;
24609fail:
24610 return NULL;
24611}
24612
24613
24614SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24615 PyObject *resultobj = 0;
24616 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24617 wxRect *arg2 = (wxRect *) NULL ;
24618 bool result;
24619 void *argp1 = 0 ;
24620 int res1 = 0 ;
24621 void *argp2 = 0 ;
24622 int res2 = 0 ;
24623 PyObject * obj0 = 0 ;
24624 PyObject * obj1 = 0 ;
24625 char * kwnames[] = {
24626 (char *) "self",(char *) "rect", NULL
24627 };
24628
24629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24631 if (!SWIG_IsOK(res1)) {
24632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24633 }
24634 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24635 if (obj1) {
24636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24637 if (!SWIG_IsOK(res2)) {
24638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24639 }
24640 arg2 = reinterpret_cast< wxRect * >(argp2);
24641 }
24642 {
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
24644 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 {
24649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24650 }
24651 return resultobj;
24652fail:
24653 return NULL;
24654}
24655
24656
24657SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24658 PyObject *resultobj = 0;
24659 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24660 bool result;
24661 void *argp1 = 0 ;
24662 int res1 = 0 ;
24663 PyObject *swig_obj[1] ;
24664
24665 if (!args) SWIG_fail;
24666 swig_obj[0] = args;
24667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24670 }
24671 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 result = (bool)(arg1)->EndDrawingOnTop();
24675 wxPyEndAllowThreads(__tstate);
24676 if (PyErr_Occurred()) SWIG_fail;
24677 }
24678 {
24679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24680 }
24681 return resultobj;
24682fail:
24683 return NULL;
24684}
24685
24686
24687SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24688 PyObject *obj;
24689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24690 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24691 return SWIG_Py_Void();
24692}
24693
24694SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24695 return SWIG_Python_InitShadowInstance(args);
24696}
24697
24698SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24699 PyObject *resultobj = 0;
24700 wxWindow *arg1 = (wxWindow *) 0 ;
24701 wxWindowDC *result = 0 ;
24702 void *argp1 = 0 ;
24703 int res1 = 0 ;
24704 PyObject * obj0 = 0 ;
24705 char * kwnames[] = {
24706 (char *) "win", NULL
24707 };
24708
24709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24711 if (!SWIG_IsOK(res1)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24713 }
24714 arg1 = reinterpret_cast< wxWindow * >(argp1);
24715 {
24716 if (!wxPyCheckForApp()) SWIG_fail;
24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24718 result = (wxWindowDC *)new wxWindowDC(arg1);
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24723 return resultobj;
24724fail:
24725 return NULL;
24726}
24727
24728
24729SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24730 PyObject *obj;
24731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24732 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24733 return SWIG_Py_Void();
24734}
24735
24736SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24737 return SWIG_Python_InitShadowInstance(args);
24738}
24739
24740SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj = 0;
24742 wxWindow *arg1 = (wxWindow *) 0 ;
24743 wxClientDC *result = 0 ;
24744 void *argp1 = 0 ;
24745 int res1 = 0 ;
24746 PyObject * obj0 = 0 ;
24747 char * kwnames[] = {
24748 (char *) "win", NULL
24749 };
24750
24751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24753 if (!SWIG_IsOK(res1)) {
24754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24755 }
24756 arg1 = reinterpret_cast< wxWindow * >(argp1);
24757 {
24758 if (!wxPyCheckForApp()) SWIG_fail;
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 result = (wxClientDC *)new wxClientDC(arg1);
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24765 return resultobj;
24766fail:
24767 return NULL;
24768}
24769
24770
24771SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24772 PyObject *obj;
24773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24774 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24775 return SWIG_Py_Void();
24776}
24777
24778SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24779 return SWIG_Python_InitShadowInstance(args);
24780}
24781
24782SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24783 PyObject *resultobj = 0;
24784 wxWindow *arg1 = (wxWindow *) 0 ;
24785 wxPaintDC *result = 0 ;
24786 void *argp1 = 0 ;
24787 int res1 = 0 ;
24788 PyObject * obj0 = 0 ;
24789 char * kwnames[] = {
24790 (char *) "win", NULL
24791 };
24792
24793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24795 if (!SWIG_IsOK(res1)) {
24796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24797 }
24798 arg1 = reinterpret_cast< wxWindow * >(argp1);
24799 {
24800 if (!wxPyCheckForApp()) SWIG_fail;
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 result = (wxPaintDC *)new wxPaintDC(arg1);
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24807 return resultobj;
24808fail:
24809 return NULL;
24810}
24811
24812
24813SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24814 PyObject *obj;
24815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24816 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24817 return SWIG_Py_Void();
24818}
24819
24820SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24821 return SWIG_Python_InitShadowInstance(args);
24822}
24823
554f62e9
RD
24824SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24825 PyObject *resultobj = 0;
24826 wxDC *arg1 = (wxDC *) 0 ;
24827 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24828 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24829 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24830 wxBufferedDC *result = 0 ;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 void *argp2 = 0 ;
24834 int res2 = 0 ;
24835 int val3 ;
24836 int ecode3 = 0 ;
24837
24838 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24840 if (!SWIG_IsOK(res1)) {
24841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24842 }
24843 arg1 = reinterpret_cast< wxDC * >(argp1);
24844 if (swig_obj[1]) {
24845 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24846 if (!SWIG_IsOK(res2)) {
24847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24848 }
554f62e9
RD
24849 if (!argp2) {
24850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24851 }
554f62e9
RD
24852 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24853 }
24854 if (swig_obj[2]) {
24855 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24856 if (!SWIG_IsOK(ecode3)) {
24857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24858 }
24859 arg3 = static_cast< int >(val3);
24860 }
24861 {
24862 if (!wxPyCheckForApp()) SWIG_fail;
24863 PyThreadState* __tstate = wxPyBeginAllowThreads();
24864 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24865 wxPyEndAllowThreads(__tstate);
24866 if (PyErr_Occurred()) SWIG_fail;
24867 }
24868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24869 return resultobj;
24870fail:
24871 return NULL;
24872}
24873
24874
24875SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24876 PyObject *resultobj = 0;
24877 wxDC *arg1 = (wxDC *) 0 ;
24878 wxSize *arg2 = 0 ;
24879 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24880 wxBufferedDC *result = 0 ;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 wxSize temp2 ;
24884 int val3 ;
24885 int ecode3 = 0 ;
24886
24887 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24891 }
24892 arg1 = reinterpret_cast< wxDC * >(argp1);
24893 {
24894 arg2 = &temp2;
24895 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24896 }
24897 if (swig_obj[2]) {
24898 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24899 if (!SWIG_IsOK(ecode3)) {
24900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24901 }
24902 arg3 = static_cast< int >(val3);
24903 }
24904 {
24905 if (!wxPyCheckForApp()) SWIG_fail;
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24908 wxPyEndAllowThreads(__tstate);
24909 if (PyErr_Occurred()) SWIG_fail;
24910 }
24911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24912 return resultobj;
24913fail:
24914 return NULL;
24915}
24916
24917
24918SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24919 int argc;
8e99bda9 24920 PyObject *argv[4];
554f62e9 24921
8e99bda9 24922 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
24923 --argc;
24924 if ((argc >= 1) && (argc <= 3)) {
24925 int _v = 0;
24926 if (argc > 1) {
24927 {
24928 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24929 _v = SWIG_CheckState(res);
24930 }
24931 if (!_v) goto check_1;
093d3ff1 24932 }
554f62e9
RD
24933 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24934 }
24935check_1:
24936
24937 if ((argc >= 2) && (argc <= 3)) {
24938 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24939 }
24940
24941fail:
24942 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24943 return NULL;
24944}
24945
24946
24947SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24948 PyObject *resultobj = 0;
24949 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24950 void *argp1 = 0 ;
24951 int res1 = 0 ;
24952 PyObject *swig_obj[1] ;
24953
24954 if (!args) SWIG_fail;
24955 swig_obj[0] = args;
24956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24957 if (!SWIG_IsOK(res1)) {
24958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24959 }
24960 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24961 {
24962 PyThreadState* __tstate = wxPyBeginAllowThreads();
24963 delete arg1;
24964
24965 wxPyEndAllowThreads(__tstate);
24966 if (PyErr_Occurred()) SWIG_fail;
24967 }
24968 resultobj = SWIG_Py_Void();
24969 return resultobj;
24970fail:
24971 return NULL;
24972}
24973
24974
24975SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24976 PyObject *resultobj = 0;
24977 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24978 void *argp1 = 0 ;
24979 int res1 = 0 ;
24980 PyObject *swig_obj[1] ;
24981
24982 if (!args) SWIG_fail;
24983 swig_obj[0] = args;
24984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24985 if (!SWIG_IsOK(res1)) {
24986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24987 }
24988 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24989 {
24990 PyThreadState* __tstate = wxPyBeginAllowThreads();
24991 (arg1)->UnMask();
24992 wxPyEndAllowThreads(__tstate);
24993 if (PyErr_Occurred()) SWIG_fail;
24994 }
24995 resultobj = SWIG_Py_Void();
24996 return resultobj;
24997fail:
24998 return NULL;
24999}
25000
25001
25002SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25003 PyObject *obj;
25004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25005 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25006 return SWIG_Py_Void();
25007}
25008
25009SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25010 return SWIG_Python_InitShadowInstance(args);
25011}
25012
25013SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25014 PyObject *resultobj = 0;
25015 wxWindow *arg1 = (wxWindow *) 0 ;
25016 wxBitmap const &arg2_defvalue = wxNullBitmap ;
25017 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25018 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25019 wxBufferedPaintDC *result = 0 ;
25020 void *argp1 = 0 ;
25021 int res1 = 0 ;
25022 void *argp2 = 0 ;
25023 int res2 = 0 ;
25024 int val3 ;
25025 int ecode3 = 0 ;
25026 PyObject * obj0 = 0 ;
25027 PyObject * obj1 = 0 ;
25028 PyObject * obj2 = 0 ;
25029 char * kwnames[] = {
25030 (char *) "window",(char *) "buffer",(char *) "style", NULL
25031 };
25032
25033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25035 if (!SWIG_IsOK(res1)) {
25036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25037 }
25038 arg1 = reinterpret_cast< wxWindow * >(argp1);
25039 if (obj1) {
25040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25041 if (!SWIG_IsOK(res2)) {
25042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25043 }
554f62e9
RD
25044 if (!argp2) {
25045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25046 }
554f62e9
RD
25047 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25048 }
25049 if (obj2) {
25050 ecode3 = SWIG_AsVal_int(obj2, &val3);
25051 if (!SWIG_IsOK(ecode3)) {
25052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25053 }
25054 arg3 = static_cast< int >(val3);
25055 }
25056 {
25057 if (!wxPyCheckForApp()) SWIG_fail;
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
25060 wxPyEndAllowThreads(__tstate);
25061 if (PyErr_Occurred()) SWIG_fail;
25062 }
25063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25064 return resultobj;
25065fail:
25066 return NULL;
25067}
25068
25069
25070SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25071 PyObject *obj;
25072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25073 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25074 return SWIG_Py_Void();
25075}
25076
25077SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25078 return SWIG_Python_InitShadowInstance(args);
25079}
25080
24f6c4e8 25081SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25082 PyObject *resultobj = 0;
25083 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25084 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
25085 void *argp1 = 0 ;
25086 int res1 = 0 ;
25087 PyObject * obj0 = 0 ;
25088 char * kwnames[] = {
25089 (char *) "win", NULL
25090 };
25091
24f6c4e8 25092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
25093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25094 if (!SWIG_IsOK(res1)) {
24f6c4e8 25095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
25096 }
25097 arg1 = reinterpret_cast< wxWindow * >(argp1);
25098 {
554f62e9 25099 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25100 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
25101 wxPyEndAllowThreads(__tstate);
25102 if (PyErr_Occurred()) SWIG_fail;
25103 }
24f6c4e8 25104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
25105 return resultobj;
25106fail:
25107 return NULL;
25108}
25109
25110
24f6c4e8 25111SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25112 PyObject *obj;
25113 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25114 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
25115 return SWIG_Py_Void();
25116}
25117
24f6c4e8 25118SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25119 return SWIG_Python_InitShadowInstance(args);
25120}
25121
8e99bda9
RD
25122SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25123 PyObject *resultobj = 0;
25124 wxWindow *arg1 = (wxWindow *) 0 ;
25125 wxDC *result = 0 ;
25126 void *argp1 = 0 ;
25127 int res1 = 0 ;
25128 PyObject * obj0 = 0 ;
25129 char * kwnames[] = {
25130 (char *) "window", NULL
25131 };
25132
25133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25135 if (!SWIG_IsOK(res1)) {
25136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25137 }
25138 arg1 = reinterpret_cast< wxWindow * >(argp1);
25139 {
25140 PyThreadState* __tstate = wxPyBeginAllowThreads();
25141 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25142 wxPyEndAllowThreads(__tstate);
25143 if (PyErr_Occurred()) SWIG_fail;
25144 }
25145 {
25146 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25147 }
25148 return resultobj;
25149fail:
25150 return NULL;
25151}
25152
25153
554f62e9
RD
25154SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25155 PyObject *resultobj = 0;
25156 wxDC *arg1 = 0 ;
25157 bool arg2 ;
25158 wxMirrorDC *result = 0 ;
25159 void *argp1 = 0 ;
25160 int res1 = 0 ;
25161 bool val2 ;
25162 int ecode2 = 0 ;
25163 PyObject * obj0 = 0 ;
25164 PyObject * obj1 = 0 ;
25165 char * kwnames[] = {
25166 (char *) "dc",(char *) "mirror", NULL
25167 };
25168
25169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25170 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25171 if (!SWIG_IsOK(res1)) {
25172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25173 }
25174 if (!argp1) {
25175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25176 }
25177 arg1 = reinterpret_cast< wxDC * >(argp1);
25178 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25179 if (!SWIG_IsOK(ecode2)) {
25180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25181 }
25182 arg2 = static_cast< bool >(val2);
25183 {
25184 if (!wxPyCheckForApp()) SWIG_fail;
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25187 wxPyEndAllowThreads(__tstate);
25188 if (PyErr_Occurred()) SWIG_fail;
25189 }
25190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25191 return resultobj;
25192fail:
25193 return NULL;
25194}
25195
25196
25197SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25198 PyObject *obj;
25199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25200 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25201 return SWIG_Py_Void();
25202}
25203
25204SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25205 return SWIG_Python_InitShadowInstance(args);
25206}
25207
25208SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25209 PyObject *resultobj = 0;
25210 wxPrintData *arg1 = 0 ;
25211 wxPostScriptDC *result = 0 ;
25212 void *argp1 = 0 ;
25213 int res1 = 0 ;
25214 PyObject * obj0 = 0 ;
25215 char * kwnames[] = {
25216 (char *) "printData", NULL
25217 };
25218
25219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25220 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25221 if (!SWIG_IsOK(res1)) {
25222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25223 }
25224 if (!argp1) {
25225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25226 }
25227 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25228 {
25229 if (!wxPyCheckForApp()) SWIG_fail;
25230 PyThreadState* __tstate = wxPyBeginAllowThreads();
25231 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25232 wxPyEndAllowThreads(__tstate);
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25236 return resultobj;
25237fail:
25238 return NULL;
25239}
25240
25241
25242SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25243 PyObject *resultobj = 0;
25244 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25245 wxPrintData *result = 0 ;
25246 void *argp1 = 0 ;
25247 int res1 = 0 ;
25248 PyObject *swig_obj[1] ;
25249
25250 if (!args) SWIG_fail;
25251 swig_obj[0] = args;
25252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25253 if (!SWIG_IsOK(res1)) {
25254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25255 }
25256 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25257 {
25258 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25259 {
554f62e9
RD
25260 wxPrintData &_result_ref = (arg1)->GetPrintData();
25261 result = (wxPrintData *) &_result_ref;
093d3ff1 25262 }
554f62e9
RD
25263 wxPyEndAllowThreads(__tstate);
25264 if (PyErr_Occurred()) SWIG_fail;
25265 }
25266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25267 return resultobj;
25268fail:
25269 return NULL;
25270}
25271
25272
25273SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25274 PyObject *resultobj = 0;
25275 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25276 wxPrintData *arg2 = 0 ;
25277 void *argp1 = 0 ;
25278 int res1 = 0 ;
25279 void *argp2 = 0 ;
25280 int res2 = 0 ;
25281 PyObject * obj0 = 0 ;
25282 PyObject * obj1 = 0 ;
25283 char * kwnames[] = {
25284 (char *) "self",(char *) "data", NULL
25285 };
25286
25287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25289 if (!SWIG_IsOK(res1)) {
25290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25291 }
25292 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25294 if (!SWIG_IsOK(res2)) {
25295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25296 }
25297 if (!argp2) {
25298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25299 }
25300 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25301 {
25302 PyThreadState* __tstate = wxPyBeginAllowThreads();
25303 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25304 wxPyEndAllowThreads(__tstate);
25305 if (PyErr_Occurred()) SWIG_fail;
25306 }
25307 resultobj = SWIG_Py_Void();
25308 return resultobj;
25309fail:
25310 return NULL;
25311}
25312
25313
25314SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25315 PyObject *resultobj = 0;
25316 int arg1 ;
25317 int val1 ;
25318 int ecode1 = 0 ;
25319 PyObject * obj0 = 0 ;
25320 char * kwnames[] = {
25321 (char *) "ppi", NULL
25322 };
25323
25324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25325 ecode1 = SWIG_AsVal_int(obj0, &val1);
25326 if (!SWIG_IsOK(ecode1)) {
25327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25328 }
25329 arg1 = static_cast< int >(val1);
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 wxPostScriptDC::SetResolution(arg1);
25333 wxPyEndAllowThreads(__tstate);
25334 if (PyErr_Occurred()) SWIG_fail;
25335 }
25336 resultobj = SWIG_Py_Void();
25337 return resultobj;
25338fail:
25339 return NULL;
25340}
25341
25342
25343SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25344 PyObject *resultobj = 0;
25345 int result;
25346
25347 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25348 {
25349 PyThreadState* __tstate = wxPyBeginAllowThreads();
25350 result = (int)wxPostScriptDC::GetResolution();
25351 wxPyEndAllowThreads(__tstate);
25352 if (PyErr_Occurred()) SWIG_fail;
25353 }
25354 resultobj = SWIG_From_int(static_cast< int >(result));
25355 return resultobj;
25356fail:
25357 return NULL;
25358}
25359
25360
25361SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25362 PyObject *obj;
25363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25364 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25365 return SWIG_Py_Void();
25366}
25367
25368SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25369 return SWIG_Python_InitShadowInstance(args);
25370}
25371
25372SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25373 PyObject *resultobj = 0;
25374 wxString const &arg1_defvalue = wxPyEmptyString ;
25375 wxString *arg1 = (wxString *) &arg1_defvalue ;
25376 wxMetaFile *result = 0 ;
25377 bool temp1 = false ;
25378 PyObject * obj0 = 0 ;
25379 char * kwnames[] = {
25380 (char *) "filename", NULL
25381 };
25382
25383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25384 if (obj0) {
093d3ff1 25385 {
554f62e9
RD
25386 arg1 = wxString_in_helper(obj0);
25387 if (arg1 == NULL) SWIG_fail;
25388 temp1 = true;
093d3ff1 25389 }
554f62e9
RD
25390 }
25391 {
25392 if (!wxPyCheckForApp()) SWIG_fail;
25393 PyThreadState* __tstate = wxPyBeginAllowThreads();
25394 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25395 wxPyEndAllowThreads(__tstate);
25396 if (PyErr_Occurred()) SWIG_fail;
25397 }
25398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25399 {
25400 if (temp1)
25401 delete arg1;
25402 }
25403 return resultobj;
25404fail:
25405 {
25406 if (temp1)
25407 delete arg1;
25408 }
25409 return NULL;
25410}
25411
25412
25413SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25414 PyObject *resultobj = 0;
25415 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25416 void *argp1 = 0 ;
25417 int res1 = 0 ;
25418 PyObject *swig_obj[1] ;
25419
25420 if (!args) SWIG_fail;
25421 swig_obj[0] = args;
25422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25423 if (!SWIG_IsOK(res1)) {
25424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25425 }
25426 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25427 {
25428 PyThreadState* __tstate = wxPyBeginAllowThreads();
25429 delete arg1;
25430
25431 wxPyEndAllowThreads(__tstate);
25432 if (PyErr_Occurred()) SWIG_fail;
25433 }
25434 resultobj = SWIG_Py_Void();
25435 return resultobj;
25436fail:
25437 return NULL;
25438}
25439
25440
b39fe951 25441SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25442 PyObject *resultobj = 0;
25443 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25444 bool result;
25445 void *argp1 = 0 ;
25446 int res1 = 0 ;
25447 PyObject *swig_obj[1] ;
25448
25449 if (!args) SWIG_fail;
25450 swig_obj[0] = args;
25451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25452 if (!SWIG_IsOK(res1)) {
b39fe951 25453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
25454 }
25455 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25456 {
25457 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25458 result = (bool)(arg1)->IsOk();
554f62e9
RD
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 {
25463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25464 }
25465 return resultobj;
25466fail:
25467 return NULL;
25468}
25469
25470
25471SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25472 PyObject *resultobj = 0;
25473 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25474 int arg2 = (int) 0 ;
25475 int arg3 = (int) 0 ;
25476 bool result;
25477 void *argp1 = 0 ;
25478 int res1 = 0 ;
25479 int val2 ;
25480 int ecode2 = 0 ;
25481 int val3 ;
25482 int ecode3 = 0 ;
25483 PyObject * obj0 = 0 ;
25484 PyObject * obj1 = 0 ;
25485 PyObject * obj2 = 0 ;
25486 char * kwnames[] = {
25487 (char *) "self",(char *) "width",(char *) "height", NULL
25488 };
25489
25490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25492 if (!SWIG_IsOK(res1)) {
25493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25494 }
25495 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25496 if (obj1) {
25497 ecode2 = SWIG_AsVal_int(obj1, &val2);
25498 if (!SWIG_IsOK(ecode2)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25500 }
25501 arg2 = static_cast< int >(val2);
25502 }
25503 if (obj2) {
25504 ecode3 = SWIG_AsVal_int(obj2, &val3);
25505 if (!SWIG_IsOK(ecode3)) {
25506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25507 }
25508 arg3 = static_cast< int >(val3);
25509 }
25510 {
25511 PyThreadState* __tstate = wxPyBeginAllowThreads();
25512 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25513 wxPyEndAllowThreads(__tstate);
25514 if (PyErr_Occurred()) SWIG_fail;
25515 }
25516 {
25517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25518 }
25519 return resultobj;
25520fail:
25521 return NULL;
25522}
25523
25524
25525SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 PyObject *resultobj = 0;
25527 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25528 wxSize result;
25529 void *argp1 = 0 ;
25530 int res1 = 0 ;
25531 PyObject *swig_obj[1] ;
25532
25533 if (!args) SWIG_fail;
25534 swig_obj[0] = args;
25535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25536 if (!SWIG_IsOK(res1)) {
25537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25538 }
25539 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25540 {
25541 PyThreadState* __tstate = wxPyBeginAllowThreads();
25542 result = (arg1)->GetSize();
25543 wxPyEndAllowThreads(__tstate);
25544 if (PyErr_Occurred()) SWIG_fail;
25545 }
25546 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25547 return resultobj;
25548fail:
25549 return NULL;
25550}
25551
25552
25553SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25554 PyObject *resultobj = 0;
25555 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25556 int result;
25557 void *argp1 = 0 ;
25558 int res1 = 0 ;
25559 PyObject *swig_obj[1] ;
25560
25561 if (!args) SWIG_fail;
25562 swig_obj[0] = args;
25563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25564 if (!SWIG_IsOK(res1)) {
25565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25566 }
25567 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25568 {
25569 PyThreadState* __tstate = wxPyBeginAllowThreads();
25570 result = (int)(arg1)->GetWidth();
25571 wxPyEndAllowThreads(__tstate);
25572 if (PyErr_Occurred()) SWIG_fail;
25573 }
25574 resultobj = SWIG_From_int(static_cast< int >(result));
25575 return resultobj;
25576fail:
25577 return NULL;
25578}
25579
25580
25581SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25582 PyObject *resultobj = 0;
25583 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25584 int result;
25585 void *argp1 = 0 ;
25586 int res1 = 0 ;
25587 PyObject *swig_obj[1] ;
25588
25589 if (!args) SWIG_fail;
25590 swig_obj[0] = args;
25591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25592 if (!SWIG_IsOK(res1)) {
25593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25594 }
25595 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25596 {
25597 PyThreadState* __tstate = wxPyBeginAllowThreads();
25598 result = (int)(arg1)->GetHeight();
25599 wxPyEndAllowThreads(__tstate);
25600 if (PyErr_Occurred()) SWIG_fail;
25601 }
25602 resultobj = SWIG_From_int(static_cast< int >(result));
25603 return resultobj;
25604fail:
25605 return NULL;
25606}
25607
25608
25609SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25610 PyObject *resultobj = 0;
25611 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25612 wxString *result = 0 ;
25613 void *argp1 = 0 ;
25614 int res1 = 0 ;
25615 PyObject *swig_obj[1] ;
25616
25617 if (!args) SWIG_fail;
25618 swig_obj[0] = args;
25619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25620 if (!SWIG_IsOK(res1)) {
25621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25622 }
25623 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25626 {
554f62e9
RD
25627 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25628 result = (wxString *) &_result_ref;
e2950dbb 25629 }
554f62e9
RD
25630 wxPyEndAllowThreads(__tstate);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 {
25634#if wxUSE_UNICODE
25635 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25636#else
25637 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25638#endif
25639 }
25640 return resultobj;
25641fail:
25642 return NULL;
25643}
25644
25645
25646SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25647 PyObject *obj;
25648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25649 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25650 return SWIG_Py_Void();
25651}
25652
25653SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25654 return SWIG_Python_InitShadowInstance(args);
25655}
25656
25657SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25658 PyObject *resultobj = 0;
25659 wxString const &arg1_defvalue = wxPyEmptyString ;
25660 wxString *arg1 = (wxString *) &arg1_defvalue ;
25661 int arg2 = (int) 0 ;
25662 int arg3 = (int) 0 ;
25663 wxString const &arg4_defvalue = wxPyEmptyString ;
25664 wxString *arg4 = (wxString *) &arg4_defvalue ;
25665 wxMetaFileDC *result = 0 ;
25666 bool temp1 = false ;
25667 int val2 ;
25668 int ecode2 = 0 ;
25669 int val3 ;
25670 int ecode3 = 0 ;
25671 bool temp4 = false ;
25672 PyObject * obj0 = 0 ;
25673 PyObject * obj1 = 0 ;
25674 PyObject * obj2 = 0 ;
25675 PyObject * obj3 = 0 ;
25676 char * kwnames[] = {
25677 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25678 };
25679
25680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25681 if (obj0) {
e2950dbb 25682 {
554f62e9
RD
25683 arg1 = wxString_in_helper(obj0);
25684 if (arg1 == NULL) SWIG_fail;
25685 temp1 = true;
e2950dbb 25686 }
554f62e9
RD
25687 }
25688 if (obj1) {
25689 ecode2 = SWIG_AsVal_int(obj1, &val2);
25690 if (!SWIG_IsOK(ecode2)) {
25691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25692 }
25693 arg2 = static_cast< int >(val2);
25694 }
25695 if (obj2) {
25696 ecode3 = SWIG_AsVal_int(obj2, &val3);
25697 if (!SWIG_IsOK(ecode3)) {
25698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25699 }
25700 arg3 = static_cast< int >(val3);
25701 }
25702 if (obj3) {
093d3ff1 25703 {
554f62e9
RD
25704 arg4 = wxString_in_helper(obj3);
25705 if (arg4 == NULL) SWIG_fail;
25706 temp4 = true;
093d3ff1 25707 }
554f62e9
RD
25708 }
25709 {
25710 if (!wxPyCheckForApp()) SWIG_fail;
25711 PyThreadState* __tstate = wxPyBeginAllowThreads();
25712 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25717 {
25718 if (temp1)
25719 delete arg1;
25720 }
25721 {
25722 if (temp4)
25723 delete arg4;
25724 }
25725 return resultobj;
25726fail:
25727 {
25728 if (temp1)
25729 delete arg1;
25730 }
25731 {
25732 if (temp4)
25733 delete arg4;
25734 }
25735 return NULL;
25736}
25737
25738
25739SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25740 PyObject *resultobj = 0;
25741 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25742 wxMetaFile *result = 0 ;
25743 void *argp1 = 0 ;
25744 int res1 = 0 ;
25745 PyObject *swig_obj[1] ;
25746
25747 if (!args) SWIG_fail;
25748 swig_obj[0] = args;
25749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25750 if (!SWIG_IsOK(res1)) {
25751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25752 }
25753 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25754 {
25755 PyThreadState* __tstate = wxPyBeginAllowThreads();
25756 result = (wxMetaFile *)(arg1)->Close();
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25761 return resultobj;
25762fail:
25763 return NULL;
25764}
25765
25766
25767SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25768 PyObject *obj;
25769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25770 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25771 return SWIG_Py_Void();
25772}
25773
25774SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25775 return SWIG_Python_InitShadowInstance(args);
25776}
25777
25778SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25779 PyObject *resultobj = 0;
25780 wxPrintData *arg1 = 0 ;
25781 wxPrinterDC *result = 0 ;
25782 void *argp1 = 0 ;
25783 int res1 = 0 ;
25784 PyObject * obj0 = 0 ;
25785 char * kwnames[] = {
25786 (char *) "printData", NULL
25787 };
25788
25789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25790 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25791 if (!SWIG_IsOK(res1)) {
25792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25793 }
25794 if (!argp1) {
25795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25796 }
25797 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25798 {
25799 if (!wxPyCheckForApp()) SWIG_fail;
25800 PyThreadState* __tstate = wxPyBeginAllowThreads();
25801 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25806 return resultobj;
25807fail:
25808 return NULL;
25809}
25810
25811
25812SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25813 PyObject *obj;
25814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25815 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25816 return SWIG_Py_Void();
25817}
25818
25819SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25820 return SWIG_Python_InitShadowInstance(args);
25821}
25822
70d7cb34
RD
25823SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25824 PyObject *resultobj = 0;
25825 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25826 wxGraphicsObject *result = 0 ;
25827 void *argp1 = 0 ;
25828 int res1 = 0 ;
25829 PyObject * obj0 = 0 ;
25830 char * kwnames[] = {
25831 (char *) "renderer", NULL
25832 };
25833
25834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25835 if (obj0) {
25836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25837 if (!SWIG_IsOK(res1)) {
25838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25839 }
25840 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25841 }
25842 {
25843 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25844 if (PyErr_Occurred()) SWIG_fail;
25845 }
25846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25847 return resultobj;
25848fail:
25849 return NULL;
25850}
25851
25852
25853SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25854 PyObject *resultobj = 0;
25855 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25856 void *argp1 = 0 ;
25857 int res1 = 0 ;
25858 PyObject *swig_obj[1] ;
25859
25860 if (!args) SWIG_fail;
25861 swig_obj[0] = args;
25862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25863 if (!SWIG_IsOK(res1)) {
25864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25865 }
25866 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25867 {
25868 delete arg1;
25869
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 resultobj = SWIG_Py_Void();
25873 return resultobj;
25874fail:
25875 return NULL;
25876}
25877
25878
25879SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25880 PyObject *resultobj = 0;
25881 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25882 bool result;
25883 void *argp1 = 0 ;
25884 int res1 = 0 ;
25885 PyObject *swig_obj[1] ;
25886
25887 if (!args) SWIG_fail;
25888 swig_obj[0] = args;
25889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25890 if (!SWIG_IsOK(res1)) {
25891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25892 }
25893 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25894 {
25895 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 {
25899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25900 }
25901 return resultobj;
25902fail:
25903 return NULL;
25904}
25905
25906
25907SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25908 PyObject *resultobj = 0;
25909 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25910 wxGraphicsRenderer *result = 0 ;
25911 void *argp1 = 0 ;
25912 int res1 = 0 ;
25913 PyObject *swig_obj[1] ;
25914
25915 if (!args) SWIG_fail;
25916 swig_obj[0] = args;
25917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25918 if (!SWIG_IsOK(res1)) {
25919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25920 }
25921 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25922 {
25923 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25924 if (PyErr_Occurred()) SWIG_fail;
25925 }
25926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25927 return resultobj;
25928fail:
25929 return NULL;
25930}
25931
25932
25933SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25934 PyObject *obj;
25935 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25936 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25937 return SWIG_Py_Void();
25938}
25939
25940SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25941 return SWIG_Python_InitShadowInstance(args);
25942}
25943
25944SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25945 PyObject *resultobj = 0;
25946 wxGraphicsPen *result = 0 ;
25947
25948 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25949 {
25950 result = (wxGraphicsPen *)new wxGraphicsPen();
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25954 return resultobj;
25955fail:
25956 return NULL;
25957}
25958
25959
25960SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25961 PyObject *resultobj = 0;
25962 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25963 void *argp1 = 0 ;
25964 int res1 = 0 ;
25965 PyObject *swig_obj[1] ;
25966
25967 if (!args) SWIG_fail;
25968 swig_obj[0] = args;
25969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25972 }
25973 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25974 {
25975 delete arg1;
25976
25977 if (PyErr_Occurred()) SWIG_fail;
25978 }
25979 resultobj = SWIG_Py_Void();
25980 return resultobj;
25981fail:
25982 return NULL;
25983}
25984
25985
25986SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25987 PyObject *obj;
25988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25989 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25990 return SWIG_Py_Void();
25991}
25992
25993SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25994 return SWIG_Python_InitShadowInstance(args);
25995}
25996
25997SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25998 PyObject *resultobj = 0;
25999 wxGraphicsBrush *result = 0 ;
26000
26001 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26002 {
26003 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26004 if (PyErr_Occurred()) SWIG_fail;
26005 }
26006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26007 return resultobj;
26008fail:
26009 return NULL;
26010}
26011
26012
26013SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26014 PyObject *resultobj = 0;
26015 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26016 void *argp1 = 0 ;
26017 int res1 = 0 ;
26018 PyObject *swig_obj[1] ;
26019
26020 if (!args) SWIG_fail;
26021 swig_obj[0] = args;
26022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26023 if (!SWIG_IsOK(res1)) {
26024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26025 }
26026 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26027 {
26028 delete arg1;
26029
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 resultobj = SWIG_Py_Void();
26033 return resultobj;
26034fail:
26035 return NULL;
26036}
26037
26038
26039SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26040 PyObject *obj;
26041 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26042 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26043 return SWIG_Py_Void();
26044}
26045
26046SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26047 return SWIG_Python_InitShadowInstance(args);
26048}
26049
26050SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26051 PyObject *resultobj = 0;
26052 wxGraphicsFont *result = 0 ;
26053
26054 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26055 {
26056 result = (wxGraphicsFont *)new wxGraphicsFont();
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26060 return resultobj;
26061fail:
26062 return NULL;
26063}
26064
26065
26066SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26067 PyObject *resultobj = 0;
26068 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26069 void *argp1 = 0 ;
26070 int res1 = 0 ;
26071 PyObject *swig_obj[1] ;
26072
26073 if (!args) SWIG_fail;
26074 swig_obj[0] = args;
26075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26076 if (!SWIG_IsOK(res1)) {
26077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26078 }
26079 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26080 {
26081 delete arg1;
26082
26083 if (PyErr_Occurred()) SWIG_fail;
26084 }
26085 resultobj = SWIG_Py_Void();
26086 return resultobj;
26087fail:
26088 return NULL;
26089}
26090
26091
26092SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26093 PyObject *obj;
26094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26095 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26096 return SWIG_Py_Void();
26097}
26098
26099SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26100 return SWIG_Python_InitShadowInstance(args);
26101}
26102
5c8c7dd3 26103SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26104 PyObject *resultobj = 0;
5c8c7dd3 26105 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26106 void *argp1 = 0 ;
26107 int res1 = 0 ;
26108 PyObject *swig_obj[1] ;
26109
26110 if (!args) SWIG_fail;
26111 swig_obj[0] = args;
5c8c7dd3 26112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
554f62e9 26113 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26115 }
5c8c7dd3 26116 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26117 {
554f62e9
RD
26118 delete arg1;
26119
554f62e9
RD
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_Py_Void();
26123 return resultobj;
26124fail:
26125 return NULL;
26126}
26127
26128
5c8c7dd3 26129SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26130 PyObject *resultobj = 0;
5c8c7dd3
RD
26131 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26132 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
5c8c7dd3
RD
26135 void *argp2 = 0 ;
26136 int res2 = 0 ;
26137 PyObject * obj0 = 0 ;
26138 PyObject * obj1 = 0 ;
26139 char * kwnames[] = {
26140 (char *) "self",(char *) "t", NULL
26141 };
70d7cb34 26142
5c8c7dd3
RD
26143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26145 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26147 }
5c8c7dd3
RD
26148 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26150 if (!SWIG_IsOK(res2)) {
26151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26152 }
26153 if (!argp2) {
26154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26155 }
26156 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26157 {
5c8c7dd3 26158 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
5c8c7dd3 26161 resultobj = SWIG_Py_Void();
70d7cb34
RD
26162 return resultobj;
26163fail:
26164 return NULL;
26165}
26166
26167
5c8c7dd3 26168SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26169 PyObject *resultobj = 0;
5c8c7dd3
RD
26170 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26171 wxGraphicsMatrix *arg2 = 0 ;
554f62e9
RD
26172 void *argp1 = 0 ;
26173 int res1 = 0 ;
5c8c7dd3
RD
26174 void *argp2 = 0 ;
26175 int res2 = 0 ;
26176 PyObject * obj0 = 0 ;
26177 PyObject * obj1 = 0 ;
26178 char * kwnames[] = {
26179 (char *) "self",(char *) "t", NULL
26180 };
554f62e9 26181
5c8c7dd3
RD
26182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
26183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26184 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26186 }
5c8c7dd3
RD
26187 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26189 if (!SWIG_IsOK(res2)) {
26190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26191 }
26192 if (!argp2) {
26193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26194 }
26195 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
554f62e9 26196 {
5c8c7dd3 26197 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
554f62e9
RD
26198 if (PyErr_Occurred()) SWIG_fail;
26199 }
72ef6efb 26200 resultobj = SWIG_Py_Void();
554f62e9
RD
26201 return resultobj;
26202fail:
26203 return NULL;
26204}
26205
26206
5c8c7dd3 26207SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26208 PyObject *resultobj = 0;
5c8c7dd3
RD
26209 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26210 wxDouble arg2 = (wxDouble) 1.0 ;
26211 wxDouble arg3 = (wxDouble) 0.0 ;
26212 wxDouble arg4 = (wxDouble) 0.0 ;
26213 wxDouble arg5 = (wxDouble) 1.0 ;
26214 wxDouble arg6 = (wxDouble) 0.0 ;
26215 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26216 void *argp1 = 0 ;
26217 int res1 = 0 ;
5c8c7dd3
RD
26218 double val2 ;
26219 int ecode2 = 0 ;
26220 double val3 ;
26221 int ecode3 = 0 ;
26222 double val4 ;
26223 int ecode4 = 0 ;
26224 double val5 ;
26225 int ecode5 = 0 ;
26226 double val6 ;
26227 int ecode6 = 0 ;
26228 double val7 ;
26229 int ecode7 = 0 ;
26230 PyObject * obj0 = 0 ;
26231 PyObject * obj1 = 0 ;
26232 PyObject * obj2 = 0 ;
26233 PyObject * obj3 = 0 ;
26234 PyObject * obj4 = 0 ;
26235 PyObject * obj5 = 0 ;
26236 PyObject * obj6 = 0 ;
26237 char * kwnames[] = {
26238 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26239 };
70d7cb34 26240
5c8c7dd3
RD
26241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26243 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26245 }
5c8c7dd3
RD
26246 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26247 if (obj1) {
26248 ecode2 = SWIG_AsVal_double(obj1, &val2);
26249 if (!SWIG_IsOK(ecode2)) {
26250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26251 }
26252 arg2 = static_cast< wxDouble >(val2);
26253 }
26254 if (obj2) {
26255 ecode3 = SWIG_AsVal_double(obj2, &val3);
26256 if (!SWIG_IsOK(ecode3)) {
26257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26258 }
26259 arg3 = static_cast< wxDouble >(val3);
26260 }
26261 if (obj3) {
26262 ecode4 = SWIG_AsVal_double(obj3, &val4);
26263 if (!SWIG_IsOK(ecode4)) {
26264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26265 }
26266 arg4 = static_cast< wxDouble >(val4);
26267 }
26268 if (obj4) {
26269 ecode5 = SWIG_AsVal_double(obj4, &val5);
26270 if (!SWIG_IsOK(ecode5)) {
26271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26272 }
26273 arg5 = static_cast< wxDouble >(val5);
26274 }
26275 if (obj5) {
26276 ecode6 = SWIG_AsVal_double(obj5, &val6);
26277 if (!SWIG_IsOK(ecode6)) {
26278 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26279 }
26280 arg6 = static_cast< wxDouble >(val6);
26281 }
26282 if (obj6) {
26283 ecode7 = SWIG_AsVal_double(obj6, &val7);
26284 if (!SWIG_IsOK(ecode7)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26286 }
26287 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26288 }
26289 {
5c8c7dd3 26290 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 resultobj = SWIG_Py_Void();
26294 return resultobj;
26295fail:
26296 return NULL;
26297}
26298
26299
5c8c7dd3 26300SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26301 PyObject *resultobj = 0;
5c8c7dd3 26302 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26303 void *argp1 = 0 ;
26304 int res1 = 0 ;
5c8c7dd3 26305 PyObject *swig_obj[1] ;
554f62e9 26306
5c8c7dd3
RD
26307 if (!args) SWIG_fail;
26308 swig_obj[0] = args;
26309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26310 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26312 }
5c8c7dd3 26313 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26314 {
5c8c7dd3 26315 (arg1)->Invert();
554f62e9
RD
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
72ef6efb 26318 resultobj = SWIG_Py_Void();
554f62e9
RD
26319 return resultobj;
26320fail:
26321 return NULL;
26322}
26323
26324
5c8c7dd3 26325SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26326 PyObject *resultobj = 0;
5c8c7dd3
RD
26327 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26328 wxGraphicsMatrix *arg2 = 0 ;
26329 bool result;
70d7cb34
RD
26330 void *argp1 = 0 ;
26331 int res1 = 0 ;
5c8c7dd3
RD
26332 void *argp2 = 0 ;
26333 int res2 = 0 ;
26334 PyObject * obj0 = 0 ;
26335 PyObject * obj1 = 0 ;
26336 char * kwnames[] = {
26337 (char *) "self",(char *) "t", NULL
26338 };
70d7cb34 26339
5c8c7dd3
RD
26340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26342 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26344 }
5c8c7dd3
RD
26345 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26347 if (!SWIG_IsOK(res2)) {
26348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26349 }
26350 if (!argp2) {
26351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 26352 }
5c8c7dd3 26353 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26354 {
5c8c7dd3 26355 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
5c8c7dd3
RD
26358 {
26359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26360 }
70d7cb34
RD
26361 return resultobj;
26362fail:
26363 return NULL;
26364}
26365
26366
5c8c7dd3
RD
26367SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26368 PyObject *resultobj = 0;
26369 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26370 bool result;
26371 void *argp1 = 0 ;
26372 int res1 = 0 ;
26373 PyObject *swig_obj[1] ;
70d7cb34 26374
5c8c7dd3
RD
26375 if (!args) SWIG_fail;
26376 swig_obj[0] = args;
26377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26378 if (!SWIG_IsOK(res1)) {
26379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26380 }
5c8c7dd3
RD
26381 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26382 {
26383 result = (bool)(arg1)->IsIdentity();
26384 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26385 }
5c8c7dd3
RD
26386 {
26387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26388 }
26389 return resultobj;
70d7cb34 26390fail:
70d7cb34
RD
26391 return NULL;
26392}
26393
26394
5c8c7dd3 26395SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26396 PyObject *resultobj = 0;
5c8c7dd3 26397 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26398 wxDouble arg2 ;
26399 wxDouble arg3 ;
554f62e9
RD
26400 void *argp1 = 0 ;
26401 int res1 = 0 ;
72ef6efb
RD
26402 double val2 ;
26403 int ecode2 = 0 ;
26404 double val3 ;
26405 int ecode3 = 0 ;
5c8c7dd3
RD
26406 PyObject * obj0 = 0 ;
26407 PyObject * obj1 = 0 ;
26408 PyObject * obj2 = 0 ;
26409 char * kwnames[] = {
26410 (char *) "self",(char *) "dx",(char *) "dy", NULL
26411 };
72ef6efb 26412
5c8c7dd3
RD
26413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26415 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26417 }
5c8c7dd3
RD
26418 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26419 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26420 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26422 }
26423 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26424 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26425 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26427 }
26428 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26429 {
5c8c7dd3 26430 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26431 if (PyErr_Occurred()) SWIG_fail;
26432 }
26433 resultobj = SWIG_Py_Void();
26434 return resultobj;
26435fail:
26436 return NULL;
26437}
26438
26439
5c8c7dd3 26440SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26441 PyObject *resultobj = 0;
5c8c7dd3
RD
26442 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26443 wxDouble arg2 ;
26444 wxDouble arg3 ;
70d7cb34
RD
26445 void *argp1 = 0 ;
26446 int res1 = 0 ;
5c8c7dd3
RD
26447 double val2 ;
26448 int ecode2 = 0 ;
26449 double val3 ;
26450 int ecode3 = 0 ;
26451 PyObject * obj0 = 0 ;
26452 PyObject * obj1 = 0 ;
26453 PyObject * obj2 = 0 ;
26454 char * kwnames[] = {
26455 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26456 };
70d7cb34 26457
5c8c7dd3
RD
26458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26460 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26462 }
5c8c7dd3
RD
26463 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26464 ecode2 = SWIG_AsVal_double(obj1, &val2);
26465 if (!SWIG_IsOK(ecode2)) {
26466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26467 }
26468 arg2 = static_cast< wxDouble >(val2);
26469 ecode3 = SWIG_AsVal_double(obj2, &val3);
26470 if (!SWIG_IsOK(ecode3)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26472 }
26473 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26474 {
5c8c7dd3 26475 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 resultobj = SWIG_Py_Void();
26479 return resultobj;
26480fail:
26481 return NULL;
26482}
26483
26484
5c8c7dd3 26485SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26486 PyObject *resultobj = 0;
5c8c7dd3
RD
26487 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26488 wxDouble arg2 ;
70d7cb34
RD
26489 void *argp1 = 0 ;
26490 int res1 = 0 ;
5c8c7dd3
RD
26491 double val2 ;
26492 int ecode2 = 0 ;
70d7cb34
RD
26493 PyObject * obj0 = 0 ;
26494 PyObject * obj1 = 0 ;
26495 char * kwnames[] = {
5c8c7dd3 26496 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26497 };
26498
5c8c7dd3
RD
26499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26501 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26503 }
5c8c7dd3
RD
26504 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26505 ecode2 = SWIG_AsVal_double(obj1, &val2);
26506 if (!SWIG_IsOK(ecode2)) {
26507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26508 }
26509 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26510 {
5c8c7dd3 26511 (arg1)->Rotate(arg2);
70d7cb34
RD
26512 if (PyErr_Occurred()) SWIG_fail;
26513 }
26514 resultobj = SWIG_Py_Void();
26515 return resultobj;
26516fail:
26517 return NULL;
26518}
26519
26520
5c8c7dd3 26521SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26522 PyObject *resultobj = 0;
5c8c7dd3
RD
26523 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26524 wxDouble *arg2 = (wxDouble *) 0 ;
26525 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
5c8c7dd3
RD
26528 wxDouble temp2 ;
26529 int res2 = 0 ;
26530 wxDouble temp3 ;
26531 int res3 = 0 ;
26532 PyObject * obj0 = 0 ;
26533 PyObject * obj1 = 0 ;
26534 PyObject * obj2 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26537 };
72ef6efb 26538
5c8c7dd3
RD
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26541 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26543 }
5c8c7dd3
RD
26544 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26545 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26546 double val;
26547 int ecode = SWIG_AsVal_double(obj1, &val);
26548 if (!SWIG_IsOK(ecode)) {
26549 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26550 }
26551 temp2 = static_cast< wxDouble >(val);
26552 arg2 = &temp2;
26553 res2 = SWIG_AddTmpMask(ecode);
26554 }
26555 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26556 double val;
26557 int ecode = SWIG_AsVal_double(obj2, &val);
26558 if (!SWIG_IsOK(ecode)) {
26559 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26560 }
26561 temp3 = static_cast< wxDouble >(val);
26562 arg3 = &temp3;
26563 res3 = SWIG_AddTmpMask(ecode);
26564 }
26565 {
26566 (arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26570 if (SWIG_IsTmpObj(res2)) {
26571 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26572 } else {
26573 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26574 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26575 }
26576 if (SWIG_IsTmpObj(res3)) {
26577 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26578 } else {
26579 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26580 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26581 }
72ef6efb
RD
26582 return resultobj;
26583fail:
26584 return NULL;
26585}
26586
26587
5c8c7dd3
RD
26588SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26589 PyObject *resultobj = 0;
26590 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26591 wxDouble *arg2 = (wxDouble *) 0 ;
26592 wxDouble *arg3 = (wxDouble *) 0 ;
26593 void *argp1 = 0 ;
26594 int res1 = 0 ;
26595 wxDouble temp2 ;
26596 int res2 = 0 ;
26597 wxDouble temp3 ;
26598 int res3 = 0 ;
26599 PyObject * obj0 = 0 ;
26600 PyObject * obj1 = 0 ;
26601 PyObject * obj2 = 0 ;
26602 char * kwnames[] = {
26603 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26604 };
26605
26606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26608 if (!SWIG_IsOK(res1)) {
26609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26610 }
26611 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26612 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26613 double val;
26614 int ecode = SWIG_AsVal_double(obj1, &val);
26615 if (!SWIG_IsOK(ecode)) {
26616 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26617 }
26618 temp2 = static_cast< wxDouble >(val);
26619 arg2 = &temp2;
26620 res2 = SWIG_AddTmpMask(ecode);
26621 }
26622 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26623 double val;
26624 int ecode = SWIG_AsVal_double(obj2, &val);
26625 if (!SWIG_IsOK(ecode)) {
26626 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26627 }
26628 temp3 = static_cast< wxDouble >(val);
26629 arg3 = &temp3;
26630 res3 = SWIG_AddTmpMask(ecode);
26631 }
26632 {
26633 (arg1)->TransformDistance(arg2,arg3);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
26636 resultobj = SWIG_Py_Void();
26637 if (SWIG_IsTmpObj(res2)) {
26638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26639 } else {
26640 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26642 }
26643 if (SWIG_IsTmpObj(res3)) {
26644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26645 } else {
26646 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26648 }
26649 return resultobj;
26650fail:
26651 return NULL;
26652}
26653
26654
26655SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26656 PyObject *resultobj = 0;
26657 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26658 void *result = 0 ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 PyObject *swig_obj[1] ;
26662
26663 if (!args) SWIG_fail;
26664 swig_obj[0] = args;
26665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26666 if (!SWIG_IsOK(res1)) {
26667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26668 }
26669 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26670 {
26671 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26672 if (PyErr_Occurred()) SWIG_fail;
26673 }
26674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26675 return resultobj;
26676fail:
26677 return NULL;
26678}
26679
26680
26681SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26682 PyObject *obj;
26683 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26684 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26685 return SWIG_Py_Void();
26686}
26687
26688SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26689 PyObject *resultobj = 0;
26690 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26691 void *argp1 = 0 ;
26692 int res1 = 0 ;
26693 PyObject *swig_obj[1] ;
26694
26695 if (!args) SWIG_fail;
26696 swig_obj[0] = args;
5c8c7dd3 26697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26698 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26700 }
26701 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26702 {
5c8c7dd3
RD
26703 delete arg1;
26704
72ef6efb
RD
26705 if (PyErr_Occurred()) SWIG_fail;
26706 }
5c8c7dd3 26707 resultobj = SWIG_Py_Void();
70d7cb34
RD
26708 return resultobj;
26709fail:
26710 return NULL;
26711}
26712
26713
5c8c7dd3 26714SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26715 PyObject *resultobj = 0;
26716 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26717 wxDouble arg2 ;
26718 wxDouble arg3 ;
70d7cb34
RD
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 double val2 ;
26722 int ecode2 = 0 ;
26723 double val3 ;
26724 int ecode3 = 0 ;
70d7cb34 26725
5c8c7dd3 26726 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26728 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26730 }
26731 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26732 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26733 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26735 }
26736 arg2 = static_cast< wxDouble >(val2);
26737 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26738 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26740 }
26741 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26742 {
5c8c7dd3 26743 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 resultobj = SWIG_Py_Void();
26747 return resultobj;
26748fail:
26749 return NULL;
26750}
26751
26752
5c8c7dd3 26753SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26754 PyObject *resultobj = 0;
26755 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26756 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26757 void *argp1 = 0 ;
26758 int res1 = 0 ;
26759 wxPoint2D temp2 ;
70d7cb34 26760
5c8c7dd3 26761 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26763 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26765 }
26766 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26767 {
26768 arg2 = &temp2;
26769 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26770 }
70d7cb34 26771 {
5c8c7dd3 26772 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 resultobj = SWIG_Py_Void();
26776 return resultobj;
26777fail:
26778 return NULL;
26779}
26780
26781
5c8c7dd3 26782SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26783 int argc;
5c8c7dd3 26784 PyObject *argv[4];
70d7cb34 26785
5c8c7dd3 26786 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26787 --argc;
5c8c7dd3
RD
26788 if (argc == 2) {
26789 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26790 }
5c8c7dd3
RD
26791 if (argc == 3) {
26792 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26793 }
26794
26795fail:
5c8c7dd3 26796 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26797 return NULL;
26798}
26799
26800
5c8c7dd3 26801SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26802 PyObject *resultobj = 0;
26803 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26804 wxDouble arg2 ;
26805 wxDouble arg3 ;
70d7cb34
RD
26806 void *argp1 = 0 ;
26807 int res1 = 0 ;
26808 double val2 ;
26809 int ecode2 = 0 ;
26810 double val3 ;
26811 int ecode3 = 0 ;
70d7cb34 26812
5c8c7dd3
RD
26813 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26815 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26817 }
26818 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26819 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26820 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26822 }
26823 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26824 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26825 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26827 }
26828 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26829 {
5c8c7dd3 26830 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 resultobj = SWIG_Py_Void();
26834 return resultobj;
26835fail:
26836 return NULL;
26837}
26838
26839
5c8c7dd3 26840SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26841 PyObject *resultobj = 0;
26842 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26843 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26844 void *argp1 = 0 ;
26845 int res1 = 0 ;
5c8c7dd3 26846 wxPoint2D temp2 ;
70d7cb34 26847
5c8c7dd3
RD
26848 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26850 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26852 }
26853 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26854 {
5c8c7dd3
RD
26855 arg2 = &temp2;
26856 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26857 }
26858 {
26859 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_Py_Void();
26863 return resultobj;
26864fail:
26865 return NULL;
26866}
26867
26868
5c8c7dd3
RD
26869SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26870 int argc;
26871 PyObject *argv[4];
70d7cb34 26872
5c8c7dd3
RD
26873 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26874 --argc;
26875 if (argc == 2) {
26876 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26877 }
5c8c7dd3
RD
26878 if (argc == 3) {
26879 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26880 }
5c8c7dd3 26881
70d7cb34 26882fail:
5c8c7dd3 26883 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26884 return NULL;
26885}
26886
26887
5c8c7dd3 26888SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26889 PyObject *resultobj = 0;
26890 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26891 wxDouble arg2 ;
26892 wxDouble arg3 ;
26893 wxDouble arg4 ;
26894 wxDouble arg5 ;
26895 wxDouble arg6 ;
5c8c7dd3 26896 wxDouble arg7 ;
70d7cb34
RD
26897 void *argp1 = 0 ;
26898 int res1 = 0 ;
26899 double val2 ;
26900 int ecode2 = 0 ;
26901 double val3 ;
26902 int ecode3 = 0 ;
26903 double val4 ;
26904 int ecode4 = 0 ;
26905 double val5 ;
26906 int ecode5 = 0 ;
26907 double val6 ;
26908 int ecode6 = 0 ;
5c8c7dd3
RD
26909 double val7 ;
26910 int ecode7 = 0 ;
70d7cb34 26911
5c8c7dd3
RD
26912 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26914 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26916 }
26917 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26918 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26919 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26921 }
26922 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26923 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26924 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26926 }
26927 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26928 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26929 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26931 }
26932 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26933 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26934 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26936 }
26937 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26938 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26939 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26940 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26941 }
26942 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26943 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26944 if (!SWIG_IsOK(ecode7)) {
26945 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26946 }
26947 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26948 {
5c8c7dd3 26949 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26950 if (PyErr_Occurred()) SWIG_fail;
26951 }
26952 resultobj = SWIG_Py_Void();
26953 return resultobj;
26954fail:
26955 return NULL;
26956}
26957
26958
5c8c7dd3 26959SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26960 PyObject *resultobj = 0;
26961 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26962 wxPoint2D *arg2 = 0 ;
26963 wxPoint2D *arg3 = 0 ;
26964 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26965 void *argp1 = 0 ;
26966 int res1 = 0 ;
5c8c7dd3
RD
26967 wxPoint2D temp2 ;
26968 wxPoint2D temp3 ;
26969 wxPoint2D temp4 ;
70d7cb34 26970
5c8c7dd3
RD
26971 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26973 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26975 }
26976 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26977 {
5c8c7dd3
RD
26978 arg2 = &temp2;
26979 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26980 }
5c8c7dd3
RD
26981 {
26982 arg3 = &temp3;
26983 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26984 }
70d7cb34 26985 {
5c8c7dd3
RD
26986 arg4 = &temp4;
26987 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26988 }
26989 {
26990 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26991 if (PyErr_Occurred()) SWIG_fail;
26992 }
26993 resultobj = SWIG_Py_Void();
26994 return resultobj;
26995fail:
26996 return NULL;
26997}
26998
26999
5c8c7dd3
RD
27000SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27001 int argc;
27002 PyObject *argv[8];
70d7cb34 27003
5c8c7dd3
RD
27004 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27005 --argc;
27006 if (argc == 4) {
27007 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27008 }
5c8c7dd3
RD
27009 if (argc == 7) {
27010 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 27011 }
5c8c7dd3 27012
70d7cb34 27013fail:
5c8c7dd3 27014 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
27015 return NULL;
27016}
27017
27018
5c8c7dd3 27019SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
27020 PyObject *resultobj = 0;
27021 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27022 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
27023 void *argp1 = 0 ;
27024 int res1 = 0 ;
5c8c7dd3
RD
27025 void *argp2 = 0 ;
27026 int res2 = 0 ;
70d7cb34
RD
27027 PyObject * obj0 = 0 ;
27028 PyObject * obj1 = 0 ;
27029 char * kwnames[] = {
5c8c7dd3 27030 (char *) "self",(char *) "path", NULL
70d7cb34
RD
27031 };
27032
5c8c7dd3 27033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
27034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27035 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27037 }
27038 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 27040 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
27041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27042 }
27043 if (!argp2) {
27044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 27045 }
5c8c7dd3 27046 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 27047 {
5c8c7dd3 27048 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
27049 if (PyErr_Occurred()) SWIG_fail;
27050 }
27051 resultobj = SWIG_Py_Void();
27052 return resultobj;
27053fail:
27054 return NULL;
27055}
27056
27057
5c8c7dd3 27058SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27059 PyObject *resultobj = 0;
27060 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27061 void *argp1 = 0 ;
27062 int res1 = 0 ;
5c8c7dd3 27063 PyObject *swig_obj[1] ;
70d7cb34 27064
5c8c7dd3
RD
27065 if (!args) SWIG_fail;
27066 swig_obj[0] = args;
27067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27068 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27070 }
27071 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27072 {
5c8c7dd3 27073 (arg1)->CloseSubpath();
70d7cb34
RD
27074 if (PyErr_Occurred()) SWIG_fail;
27075 }
27076 resultobj = SWIG_Py_Void();
27077 return resultobj;
27078fail:
27079 return NULL;
27080}
27081
27082
5c8c7dd3 27083SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27084 PyObject *resultobj = 0;
27085 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27086 wxPoint2D result;
70d7cb34
RD
27087 void *argp1 = 0 ;
27088 int res1 = 0 ;
27089 PyObject *swig_obj[1] ;
27090
27091 if (!args) SWIG_fail;
27092 swig_obj[0] = args;
27093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27094 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27096 }
27097 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27098 {
5c8c7dd3 27099 result = (arg1)->GetCurrentPoint();
70d7cb34
RD
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
5c8c7dd3 27102 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27103 return resultobj;
27104fail:
27105 return NULL;
27106}
27107
27108
5c8c7dd3 27109SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27110 PyObject *resultobj = 0;
27111 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27112 wxDouble arg2 ;
27113 wxDouble arg3 ;
5c8c7dd3
RD
27114 wxDouble arg4 ;
27115 wxDouble arg5 ;
27116 wxDouble arg6 ;
27117 bool arg7 ;
70d7cb34
RD
27118 void *argp1 = 0 ;
27119 int res1 = 0 ;
27120 double val2 ;
27121 int ecode2 = 0 ;
27122 double val3 ;
27123 int ecode3 = 0 ;
5c8c7dd3 27124 double val4 ;
70d7cb34 27125 int ecode4 = 0 ;
5c8c7dd3
RD
27126 double val5 ;
27127 int ecode5 = 0 ;
27128 double val6 ;
27129 int ecode6 = 0 ;
27130 bool val7 ;
27131 int ecode7 = 0 ;
70d7cb34 27132
5c8c7dd3 27133 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27135 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27137 }
27138 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27139 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27140 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27142 }
27143 arg2 = static_cast< wxDouble >(val2);
27144 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27145 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27147 }
27148 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27149 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27150 if (!SWIG_IsOK(ecode4)) {
27151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27152 }
27153 arg4 = static_cast< wxDouble >(val4);
27154 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27155 if (!SWIG_IsOK(ecode5)) {
27156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27157 }
27158 arg5 = static_cast< wxDouble >(val5);
27159 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27160 if (!SWIG_IsOK(ecode6)) {
27161 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27162 }
27163 arg6 = static_cast< wxDouble >(val6);
27164 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27165 if (!SWIG_IsOK(ecode7)) {
27166 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27167 }
27168 arg7 = static_cast< bool >(val7);
70d7cb34 27169 {
5c8c7dd3 27170 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27171 if (PyErr_Occurred()) SWIG_fail;
27172 }
5c8c7dd3 27173 resultobj = SWIG_Py_Void();
70d7cb34
RD
27174 return resultobj;
27175fail:
27176 return NULL;
27177}
27178
27179
5c8c7dd3 27180SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27181 PyObject *resultobj = 0;
27182 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27183 wxPoint2D *arg2 = 0 ;
27184 wxDouble arg3 ;
27185 wxDouble arg4 ;
27186 wxDouble arg5 ;
27187 bool arg6 ;
70d7cb34
RD
27188 void *argp1 = 0 ;
27189 int res1 = 0 ;
5c8c7dd3
RD
27190 wxPoint2D temp2 ;
27191 double val3 ;
70d7cb34 27192 int ecode3 = 0 ;
5c8c7dd3
RD
27193 double val4 ;
27194 int ecode4 = 0 ;
27195 double val5 ;
27196 int ecode5 = 0 ;
27197 bool val6 ;
27198 int ecode6 = 0 ;
70d7cb34 27199
5c8c7dd3 27200 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27202 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27204 }
27205 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27206 {
5c8c7dd3
RD
27207 arg2 = &temp2;
27208 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27209 }
5c8c7dd3
RD
27210 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27211 if (!SWIG_IsOK(ecode3)) {
27212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27213 }
27214 arg3 = static_cast< wxDouble >(val3);
27215 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27216 if (!SWIG_IsOK(ecode4)) {
27217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27218 }
27219 arg4 = static_cast< wxDouble >(val4);
27220 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27221 if (!SWIG_IsOK(ecode5)) {
27222 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27223 }
27224 arg5 = static_cast< wxDouble >(val5);
27225 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27226 if (!SWIG_IsOK(ecode6)) {
27227 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27228 }
27229 arg6 = static_cast< bool >(val6);
70d7cb34 27230 {
5c8c7dd3
RD
27231 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27232 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27233 }
5c8c7dd3 27234 resultobj = SWIG_Py_Void();
70d7cb34
RD
27235 return resultobj;
27236fail:
27237 return NULL;
27238}
27239
27240
5c8c7dd3 27241SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27242 int argc;
5c8c7dd3 27243 PyObject *argv[8];
70d7cb34 27244
5c8c7dd3 27245 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27246 --argc;
5c8c7dd3
RD
27247 if (argc == 6) {
27248 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27249 }
5c8c7dd3
RD
27250 if (argc == 7) {
27251 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27252 }
27253
27254fail:
5c8c7dd3 27255 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27256 return NULL;
27257}
27258
27259
5c8c7dd3 27260SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27261 PyObject *resultobj = 0;
5c8c7dd3
RD
27262 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27263 wxDouble arg2 ;
27264 wxDouble arg3 ;
27265 wxDouble arg4 ;
27266 wxDouble arg5 ;
70d7cb34
RD
27267 void *argp1 = 0 ;
27268 int res1 = 0 ;
5c8c7dd3
RD
27269 double val2 ;
27270 int ecode2 = 0 ;
27271 double val3 ;
27272 int ecode3 = 0 ;
27273 double val4 ;
27274 int ecode4 = 0 ;
27275 double val5 ;
27276 int ecode5 = 0 ;
27277 PyObject * obj0 = 0 ;
27278 PyObject * obj1 = 0 ;
27279 PyObject * obj2 = 0 ;
27280 PyObject * obj3 = 0 ;
27281 PyObject * obj4 = 0 ;
27282 char * kwnames[] = {
27283 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27284 };
70d7cb34 27285
5c8c7dd3
RD
27286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27288 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27290 }
5c8c7dd3
RD
27291 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27292 ecode2 = SWIG_AsVal_double(obj1, &val2);
27293 if (!SWIG_IsOK(ecode2)) {
27294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27295 }
27296 arg2 = static_cast< wxDouble >(val2);
27297 ecode3 = SWIG_AsVal_double(obj2, &val3);
27298 if (!SWIG_IsOK(ecode3)) {
27299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27300 }
27301 arg3 = static_cast< wxDouble >(val3);
27302 ecode4 = SWIG_AsVal_double(obj3, &val4);
27303 if (!SWIG_IsOK(ecode4)) {
27304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27305 }
27306 arg4 = static_cast< wxDouble >(val4);
27307 ecode5 = SWIG_AsVal_double(obj4, &val5);
27308 if (!SWIG_IsOK(ecode5)) {
27309 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27310 }
27311 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27312 {
5c8c7dd3 27313 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27314 if (PyErr_Occurred()) SWIG_fail;
27315 }
27316 resultobj = SWIG_Py_Void();
27317 return resultobj;
27318fail:
27319 return NULL;
27320}
27321
27322
5c8c7dd3 27323SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27324 PyObject *resultobj = 0;
5c8c7dd3
RD
27325 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27326 wxDouble arg2 ;
27327 wxDouble arg3 ;
27328 wxDouble arg4 ;
27329 wxDouble arg5 ;
70d7cb34
RD
27330 void *argp1 = 0 ;
27331 int res1 = 0 ;
5c8c7dd3
RD
27332 double val2 ;
27333 int ecode2 = 0 ;
27334 double val3 ;
27335 int ecode3 = 0 ;
27336 double val4 ;
27337 int ecode4 = 0 ;
27338 double val5 ;
27339 int ecode5 = 0 ;
70d7cb34
RD
27340 PyObject * obj0 = 0 ;
27341 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27342 PyObject * obj2 = 0 ;
27343 PyObject * obj3 = 0 ;
27344 PyObject * obj4 = 0 ;
70d7cb34 27345 char * kwnames[] = {
5c8c7dd3 27346 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27347 };
27348
5c8c7dd3
RD
27349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27351 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27353 }
5c8c7dd3
RD
27354 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27355 ecode2 = SWIG_AsVal_double(obj1, &val2);
27356 if (!SWIG_IsOK(ecode2)) {
27357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27358 }
27359 arg2 = static_cast< wxDouble >(val2);
27360 ecode3 = SWIG_AsVal_double(obj2, &val3);
27361 if (!SWIG_IsOK(ecode3)) {
27362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27363 }
27364 arg3 = static_cast< wxDouble >(val3);
27365 ecode4 = SWIG_AsVal_double(obj3, &val4);
27366 if (!SWIG_IsOK(ecode4)) {
27367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27368 }
27369 arg4 = static_cast< wxDouble >(val4);
27370 ecode5 = SWIG_AsVal_double(obj4, &val5);
27371 if (!SWIG_IsOK(ecode5)) {
27372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27373 }
27374 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27375 {
5c8c7dd3 27376 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 resultobj = SWIG_Py_Void();
27380 return resultobj;
27381fail:
27382 return NULL;
27383}
27384
27385
5c8c7dd3 27386SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27387 PyObject *resultobj = 0;
5c8c7dd3
RD
27388 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27389 wxDouble arg2 ;
27390 wxDouble arg3 ;
27391 wxDouble arg4 ;
70d7cb34
RD
27392 void *argp1 = 0 ;
27393 int res1 = 0 ;
5c8c7dd3
RD
27394 double val2 ;
27395 int ecode2 = 0 ;
27396 double val3 ;
27397 int ecode3 = 0 ;
27398 double val4 ;
27399 int ecode4 = 0 ;
70d7cb34
RD
27400 PyObject * obj0 = 0 ;
27401 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27402 PyObject * obj2 = 0 ;
27403 PyObject * obj3 = 0 ;
70d7cb34 27404 char * kwnames[] = {
5c8c7dd3 27405 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27406 };
27407
5c8c7dd3
RD
27408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27410 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27412 }
5c8c7dd3
RD
27413 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27414 ecode2 = SWIG_AsVal_double(obj1, &val2);
27415 if (!SWIG_IsOK(ecode2)) {
27416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27417 }
27418 arg2 = static_cast< wxDouble >(val2);
27419 ecode3 = SWIG_AsVal_double(obj2, &val3);
27420 if (!SWIG_IsOK(ecode3)) {
27421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27422 }
27423 arg3 = static_cast< wxDouble >(val3);
27424 ecode4 = SWIG_AsVal_double(obj3, &val4);
27425 if (!SWIG_IsOK(ecode4)) {
27426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27427 }
27428 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27429 {
5c8c7dd3 27430 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27431 if (PyErr_Occurred()) SWIG_fail;
27432 }
27433 resultobj = SWIG_Py_Void();
27434 return resultobj;
27435fail:
27436 return NULL;
27437}
27438
27439
5c8c7dd3 27440SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27441 PyObject *resultobj = 0;
5c8c7dd3
RD
27442 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27443 wxDouble arg2 ;
27444 wxDouble arg3 ;
27445 wxDouble arg4 ;
27446 wxDouble arg5 ;
27447 wxDouble arg6 ;
70d7cb34
RD
27448 void *argp1 = 0 ;
27449 int res1 = 0 ;
27450 double val2 ;
27451 int ecode2 = 0 ;
27452 double val3 ;
27453 int ecode3 = 0 ;
27454 double val4 ;
27455 int ecode4 = 0 ;
27456 double val5 ;
27457 int ecode5 = 0 ;
27458 double val6 ;
27459 int ecode6 = 0 ;
70d7cb34
RD
27460 PyObject * obj0 = 0 ;
27461 PyObject * obj1 = 0 ;
27462 PyObject * obj2 = 0 ;
27463 PyObject * obj3 = 0 ;
27464 PyObject * obj4 = 0 ;
27465 PyObject * obj5 = 0 ;
70d7cb34 27466 char * kwnames[] = {
5c8c7dd3 27467 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27468 };
27469
5c8c7dd3
RD
27470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27472 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27474 }
5c8c7dd3
RD
27475 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27476 ecode2 = SWIG_AsVal_double(obj1, &val2);
27477 if (!SWIG_IsOK(ecode2)) {
27478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27479 }
27480 arg2 = static_cast< wxDouble >(val2);
27481 ecode3 = SWIG_AsVal_double(obj2, &val3);
27482 if (!SWIG_IsOK(ecode3)) {
27483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27484 }
27485 arg3 = static_cast< wxDouble >(val3);
27486 ecode4 = SWIG_AsVal_double(obj3, &val4);
27487 if (!SWIG_IsOK(ecode4)) {
27488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27489 }
27490 arg4 = static_cast< wxDouble >(val4);
27491 ecode5 = SWIG_AsVal_double(obj4, &val5);
27492 if (!SWIG_IsOK(ecode5)) {
27493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27494 }
27495 arg5 = static_cast< wxDouble >(val5);
27496 ecode6 = SWIG_AsVal_double(obj5, &val6);
27497 if (!SWIG_IsOK(ecode6)) {
27498 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27499 }
27500 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27501 {
5c8c7dd3 27502 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 resultobj = SWIG_Py_Void();
27506 return resultobj;
27507fail:
27508 return NULL;
27509}
27510
27511
5c8c7dd3 27512SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27513 PyObject *resultobj = 0;
5c8c7dd3
RD
27514 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27515 wxDouble arg2 ;
27516 wxDouble arg3 ;
27517 wxDouble arg4 ;
27518 wxDouble arg5 ;
70d7cb34
RD
27519 void *argp1 = 0 ;
27520 int res1 = 0 ;
5c8c7dd3
RD
27521 double val2 ;
27522 int ecode2 = 0 ;
27523 double val3 ;
27524 int ecode3 = 0 ;
27525 double val4 ;
27526 int ecode4 = 0 ;
27527 double val5 ;
27528 int ecode5 = 0 ;
27529 PyObject * obj0 = 0 ;
27530 PyObject * obj1 = 0 ;
27531 PyObject * obj2 = 0 ;
27532 PyObject * obj3 = 0 ;
27533 PyObject * obj4 = 0 ;
27534 char * kwnames[] = {
27535 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27536 };
70d7cb34 27537
5c8c7dd3
RD
27538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27540 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27542 }
5c8c7dd3
RD
27543 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27544 ecode2 = SWIG_AsVal_double(obj1, &val2);
27545 if (!SWIG_IsOK(ecode2)) {
27546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27547 }
27548 arg2 = static_cast< wxDouble >(val2);
27549 ecode3 = SWIG_AsVal_double(obj2, &val3);
27550 if (!SWIG_IsOK(ecode3)) {
27551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27552 }
27553 arg3 = static_cast< wxDouble >(val3);
27554 ecode4 = SWIG_AsVal_double(obj3, &val4);
27555 if (!SWIG_IsOK(ecode4)) {
27556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27557 }
27558 arg4 = static_cast< wxDouble >(val4);
27559 ecode5 = SWIG_AsVal_double(obj4, &val5);
27560 if (!SWIG_IsOK(ecode5)) {
27561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27562 }
27563 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27564 {
5c8c7dd3 27565 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27566 if (PyErr_Occurred()) SWIG_fail;
27567 }
27568 resultobj = SWIG_Py_Void();
27569 return resultobj;
27570fail:
27571 return NULL;
27572}
27573
27574
5c8c7dd3 27575SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27576 PyObject *resultobj = 0;
5c8c7dd3
RD
27577 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27578 wxDouble arg2 ;
27579 wxDouble arg3 ;
27580 wxDouble arg4 ;
27581 wxDouble arg5 ;
27582 wxDouble arg6 ;
70d7cb34
RD
27583 void *argp1 = 0 ;
27584 int res1 = 0 ;
5c8c7dd3
RD
27585 double val2 ;
27586 int ecode2 = 0 ;
27587 double val3 ;
27588 int ecode3 = 0 ;
27589 double val4 ;
27590 int ecode4 = 0 ;
27591 double val5 ;
27592 int ecode5 = 0 ;
27593 double val6 ;
27594 int ecode6 = 0 ;
70d7cb34
RD
27595 PyObject * obj0 = 0 ;
27596 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27597 PyObject * obj2 = 0 ;
27598 PyObject * obj3 = 0 ;
27599 PyObject * obj4 = 0 ;
27600 PyObject * obj5 = 0 ;
70d7cb34 27601 char * kwnames[] = {
5c8c7dd3 27602 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27603 };
27604
5c8c7dd3
RD
27605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27607 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27609 }
5c8c7dd3
RD
27610 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27611 ecode2 = SWIG_AsVal_double(obj1, &val2);
27612 if (!SWIG_IsOK(ecode2)) {
27613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27614 }
27615 arg2 = static_cast< wxDouble >(val2);
27616 ecode3 = SWIG_AsVal_double(obj2, &val3);
27617 if (!SWIG_IsOK(ecode3)) {
27618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27619 }
27620 arg3 = static_cast< wxDouble >(val3);
27621 ecode4 = SWIG_AsVal_double(obj3, &val4);
27622 if (!SWIG_IsOK(ecode4)) {
27623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27624 }
27625 arg4 = static_cast< wxDouble >(val4);
27626 ecode5 = SWIG_AsVal_double(obj4, &val5);
27627 if (!SWIG_IsOK(ecode5)) {
27628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27629 }
27630 arg5 = static_cast< wxDouble >(val5);
27631 ecode6 = SWIG_AsVal_double(obj5, &val6);
27632 if (!SWIG_IsOK(ecode6)) {
27633 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27634 }
27635 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27636 {
5c8c7dd3 27637 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27638 if (PyErr_Occurred()) SWIG_fail;
27639 }
5c8c7dd3 27640 resultobj = SWIG_Py_Void();
70d7cb34
RD
27641 return resultobj;
27642fail:
27643 return NULL;
27644}
27645
27646
5c8c7dd3 27647SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27648 PyObject *resultobj = 0;
5c8c7dd3
RD
27649 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27650 void *result = 0 ;
70d7cb34
RD
27651 void *argp1 = 0 ;
27652 int res1 = 0 ;
27653 PyObject *swig_obj[1] ;
27654
27655 if (!args) SWIG_fail;
27656 swig_obj[0] = args;
5c8c7dd3 27657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27658 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27660 }
5c8c7dd3 27661 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27662 {
5c8c7dd3 27663 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27664 if (PyErr_Occurred()) SWIG_fail;
27665 }
5c8c7dd3 27666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27667 return resultobj;
27668fail:
27669 return NULL;
27670}
27671
27672
5c8c7dd3 27673SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27674 PyObject *resultobj = 0;
5c8c7dd3
RD
27675 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27676 void *arg2 = (void *) 0 ;
70d7cb34
RD
27677 void *argp1 = 0 ;
27678 int res1 = 0 ;
5c8c7dd3 27679 int res2 ;
70d7cb34
RD
27680 PyObject * obj0 = 0 ;
27681 PyObject * obj1 = 0 ;
70d7cb34 27682 char * kwnames[] = {
5c8c7dd3 27683 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27684 };
27685
5c8c7dd3
RD
27686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27688 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
27689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27690 }
27691 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27692 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27693 if (!SWIG_IsOK(res2)) {
27694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27695 }
70d7cb34 27696 {
5c8c7dd3 27697 (arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27698 if (PyErr_Occurred()) SWIG_fail;
27699 }
27700 resultobj = SWIG_Py_Void();
27701 return resultobj;
27702fail:
27703 return NULL;
27704}
27705
27706
5c8c7dd3 27707SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27708 PyObject *resultobj = 0;
5c8c7dd3
RD
27709 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27710 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27711 void *argp1 = 0 ;
27712 int res1 = 0 ;
5c8c7dd3
RD
27713 void *argp2 = 0 ;
27714 int res2 = 0 ;
70d7cb34
RD
27715 PyObject * obj0 = 0 ;
27716 PyObject * obj1 = 0 ;
70d7cb34 27717 char * kwnames[] = {
5c8c7dd3 27718 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27719 };
27720
5c8c7dd3
RD
27721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27723 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27725 }
5c8c7dd3
RD
27726 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27728 if (!SWIG_IsOK(res2)) {
27729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27730 }
27731 if (!argp2) {
27732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27733 }
27734 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27735 {
5c8c7dd3 27736 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 resultobj = SWIG_Py_Void();
27740 return resultobj;
27741fail:
27742 return NULL;
27743}
27744
27745
5c8c7dd3 27746SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27747 PyObject *resultobj = 0;
5c8c7dd3
RD
27748 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27749 wxRect2DDouble result;
70d7cb34
RD
27750 void *argp1 = 0 ;
27751 int res1 = 0 ;
5c8c7dd3 27752 PyObject *swig_obj[1] ;
70d7cb34 27753
5c8c7dd3
RD
27754 if (!args) SWIG_fail;
27755 swig_obj[0] = args;
27756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27757 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27759 }
5c8c7dd3 27760 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27761 {
5c8c7dd3 27762 result = (arg1)->GetBox();
70d7cb34
RD
27763 if (PyErr_Occurred()) SWIG_fail;
27764 }
5c8c7dd3 27765 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27766 return resultobj;
27767fail:
27768 return NULL;
27769}
27770
27771
5c8c7dd3 27772SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27773 PyObject *resultobj = 0;
5c8c7dd3
RD
27774 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27775 wxDouble arg2 ;
27776 wxDouble arg3 ;
27777 int arg4 = (int) wxWINDING_RULE ;
27778 bool result;
70d7cb34
RD
27779 void *argp1 = 0 ;
27780 int res1 = 0 ;
5c8c7dd3
RD
27781 double val2 ;
27782 int ecode2 = 0 ;
27783 double val3 ;
27784 int ecode3 = 0 ;
27785 int val4 ;
27786 int ecode4 = 0 ;
70d7cb34 27787
5c8c7dd3
RD
27788 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27790 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27792 }
5c8c7dd3
RD
27793 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27794 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27795 if (!SWIG_IsOK(ecode2)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27797 }
27798 arg2 = static_cast< wxDouble >(val2);
27799 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27800 if (!SWIG_IsOK(ecode3)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27802 }
27803 arg3 = static_cast< wxDouble >(val3);
27804 if (swig_obj[3]) {
27805 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27806 if (!SWIG_IsOK(ecode4)) {
27807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27808 }
27809 arg4 = static_cast< int >(val4);
70d7cb34
RD
27810 }
27811 {
5c8c7dd3 27812 result = (bool)(arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27813 if (PyErr_Occurred()) SWIG_fail;
27814 }
5c8c7dd3
RD
27815 {
27816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27817 }
27818 return resultobj;
27819fail:
27820 return NULL;
27821}
27822
27823
5c8c7dd3 27824SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27825 PyObject *resultobj = 0;
5c8c7dd3
RD
27826 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27827 wxPoint2DDouble *arg2 = 0 ;
27828 int arg3 = (int) wxWINDING_RULE ;
27829 bool result;
70d7cb34
RD
27830 void *argp1 = 0 ;
27831 int res1 = 0 ;
5c8c7dd3 27832 void *argp2 = 0 ;
70d7cb34 27833 int res2 = 0 ;
5c8c7dd3
RD
27834 int val3 ;
27835 int ecode3 = 0 ;
70d7cb34 27836
5c8c7dd3
RD
27837 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27839 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27841 }
5c8c7dd3
RD
27842 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27843 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27844 if (!SWIG_IsOK(res2)) {
27845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27846 }
5c8c7dd3
RD
27847 if (!argp2) {
27848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27849 }
27850 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27851 if (swig_obj[2]) {
27852 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27853 if (!SWIG_IsOK(ecode3)) {
27854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27855 }
27856 arg3 = static_cast< int >(val3);
70d7cb34
RD
27857 }
27858 {
5c8c7dd3 27859 result = (bool)(arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27860 if (PyErr_Occurred()) SWIG_fail;
27861 }
5c8c7dd3
RD
27862 {
27863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27864 }
27865 return resultobj;
27866fail:
27867 return NULL;
27868}
27869
27870
5c8c7dd3
RD
27871SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27872 int argc;
27873 PyObject *argv[5];
70d7cb34 27874
5c8c7dd3
RD
27875 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27876 --argc;
27877 if ((argc >= 2) && (argc <= 3)) {
27878 int _v = 0;
27879 {
27880 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27881 _v = SWIG_CheckState(res);
27882 }
27883 if (!_v) goto check_1;
27884 if (argc > 2) {
27885 {
27886 {
27887 int res = SWIG_AsVal_int(argv[2], NULL);
27888 _v = SWIG_CheckState(res);
27889 }
27890 }
27891 if (!_v) goto check_1;
27892 }
27893 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27894 }
5c8c7dd3
RD
27895check_1:
27896
27897 if ((argc >= 3) && (argc <= 4)) {
27898 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27899 }
5c8c7dd3 27900
70d7cb34 27901fail:
5c8c7dd3 27902 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27903 return NULL;
27904}
27905
27906
5c8c7dd3 27907SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27908 PyObject *obj;
27909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27910 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27911 return SWIG_Py_Void();
27912}
27913
5c8c7dd3
RD
27914SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27915 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27916 return 1;
27917}
27918
27919
27920SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27921 PyObject *pyobj = 0;
27922
27923 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27924 return pyobj;
27925}
27926
27927
27928SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27929 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27930 return 1;
27931}
27932
27933
27934SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27935 PyObject *pyobj = 0;
27936
27937 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27938 return pyobj;
27939}
27940
27941
27942SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27943 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27944 return 1;
27945}
27946
27947
27948SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27949 PyObject *pyobj = 0;
27950
27951 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27952 return pyobj;
27953}
27954
27955
27956SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27957 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27958 return 1;
27959}
27960
27961
27962SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27963 PyObject *pyobj = 0;
27964
27965 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27966 return pyobj;
27967}
27968
27969
27970SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27971 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27972 return 1;
27973}
27974
27975
27976SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27977 PyObject *pyobj = 0;
27978
27979 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27980 return pyobj;
27981}
27982
27983
70d7cb34
RD
27984SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27985 PyObject *resultobj = 0;
27986 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27987 void *argp1 = 0 ;
27988 int res1 = 0 ;
27989 PyObject *swig_obj[1] ;
27990
27991 if (!args) SWIG_fail;
27992 swig_obj[0] = args;
27993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27994 if (!SWIG_IsOK(res1)) {
27995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27996 }
27997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27998 {
27999 delete arg1;
28000
28001 if (PyErr_Occurred()) SWIG_fail;
28002 }
28003 resultobj = SWIG_Py_Void();
28004 return resultobj;
28005fail:
28006 return NULL;
28007}
28008
28009
28010SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28011 PyObject *resultobj = 0;
28012 wxWindowDC *arg1 = 0 ;
28013 wxGraphicsContext *result = 0 ;
28014 void *argp1 = 0 ;
28015 int res1 = 0 ;
28016
28017 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28019 if (!SWIG_IsOK(res1)) {
28020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28021 }
28022 if (!argp1) {
28023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28024 }
28025 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28026 {
28027 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28031 return resultobj;
28032fail:
28033 return NULL;
28034}
28035
28036
28037SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28038 PyObject *resultobj = 0;
28039 wxWindow *arg1 = (wxWindow *) 0 ;
28040 wxGraphicsContext *result = 0 ;
28041 void *argp1 = 0 ;
28042 int res1 = 0 ;
28043
28044 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28046 if (!SWIG_IsOK(res1)) {
28047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28048 }
28049 arg1 = reinterpret_cast< wxWindow * >(argp1);
28050 {
28051 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
28054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28055 return resultobj;
28056fail:
28057 return NULL;
28058}
28059
28060
28061SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28062 int argc;
28063 PyObject *argv[2];
28064
28065 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28066 --argc;
28067 if (argc == 1) {
28068 int _v = 0;
28069 {
28070 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28071 _v = SWIG_CheckState(res);
28072 }
28073 if (!_v) goto check_1;
28074 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28075 }
28076check_1:
28077
28078 if (argc == 1) {
28079 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28080 }
28081
28082fail:
28083 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28084 return NULL;
28085}
28086
28087
28088SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28089 PyObject *resultobj = 0;
28090 void *arg1 = (void *) 0 ;
28091 wxGraphicsContext *result = 0 ;
28092 int res1 ;
28093 PyObject * obj0 = 0 ;
28094 char * kwnames[] = {
28095 (char *) "context", NULL
28096 };
28097
28098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28099 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28100 if (!SWIG_IsOK(res1)) {
28101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28102 }
28103 {
28104 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28105 if (PyErr_Occurred()) SWIG_fail;
28106 }
28107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28108 return resultobj;
28109fail:
28110 return NULL;
28111}
28112
28113
28114SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28115 PyObject *resultobj = 0;
28116 void *arg1 = (void *) 0 ;
28117 wxGraphicsContext *result = 0 ;
28118 int res1 ;
28119 PyObject * obj0 = 0 ;
28120 char * kwnames[] = {
28121 (char *) "window", NULL
28122 };
28123
28124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28125 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28126 if (!SWIG_IsOK(res1)) {
28127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28128 }
28129 {
28130 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28131 if (PyErr_Occurred()) SWIG_fail;
28132 }
28133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28134 return resultobj;
28135fail:
28136 return NULL;
28137}
28138
28139
28140SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28141 PyObject *resultobj = 0;
28142 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28143 wxGraphicsPath result;
70d7cb34
RD
28144 void *argp1 = 0 ;
28145 int res1 = 0 ;
28146 PyObject *swig_obj[1] ;
28147
28148 if (!args) SWIG_fail;
28149 swig_obj[0] = args;
28150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28151 if (!SWIG_IsOK(res1)) {
28152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28153 }
28154 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28155 {
5c8c7dd3 28156 result = (arg1)->CreatePath();
70d7cb34
RD
28157 if (PyErr_Occurred()) SWIG_fail;
28158 }
5c8c7dd3 28159 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28160 return resultobj;
28161fail:
28162 return NULL;
28163}
28164
28165
70d7cb34 28166SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28167 PyObject *resultobj = 0;
70d7cb34
RD
28168 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28169 wxPen *arg2 = 0 ;
28170 wxGraphicsPen result;
72ef6efb
RD
28171 void *argp1 = 0 ;
28172 int res1 = 0 ;
70d7cb34
RD
28173 void *argp2 = 0 ;
28174 int res2 = 0 ;
72ef6efb
RD
28175 PyObject * obj0 = 0 ;
28176 PyObject * obj1 = 0 ;
72ef6efb 28177 char * kwnames[] = {
70d7cb34 28178 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28179 };
28180
70d7cb34
RD
28181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28183 if (!SWIG_IsOK(res1)) {
70d7cb34 28184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28185 }
70d7cb34
RD
28186 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28188 if (!SWIG_IsOK(res2)) {
28189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28190 }
28191 if (!argp2) {
28192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28193 }
28194 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28195 {
70d7cb34 28196 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28197 if (PyErr_Occurred()) SWIG_fail;
28198 }
70d7cb34 28199 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28200 return resultobj;
28201fail:
28202 return NULL;
28203}
28204
28205
70d7cb34 28206SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28207 PyObject *resultobj = 0;
70d7cb34
RD
28208 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28209 wxBrush *arg2 = 0 ;
28210 wxGraphicsBrush result;
72ef6efb
RD
28211 void *argp1 = 0 ;
28212 int res1 = 0 ;
70d7cb34
RD
28213 void *argp2 = 0 ;
28214 int res2 = 0 ;
72ef6efb
RD
28215 PyObject * obj0 = 0 ;
28216 PyObject * obj1 = 0 ;
72ef6efb 28217 char * kwnames[] = {
70d7cb34 28218 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28219 };
28220
70d7cb34
RD
28221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28223 if (!SWIG_IsOK(res1)) {
70d7cb34 28224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28225 }
70d7cb34
RD
28226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28227 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28228 if (!SWIG_IsOK(res2)) {
28229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28230 }
28231 if (!argp2) {
28232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28233 }
28234 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28235 {
70d7cb34 28236 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28237 if (PyErr_Occurred()) SWIG_fail;
28238 }
70d7cb34 28239 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28240 return resultobj;
28241fail:
28242 return NULL;
28243}
28244
28245
70d7cb34 28246SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28247 PyObject *resultobj = 0;
70d7cb34 28248 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28249 wxDouble arg2 ;
28250 wxDouble arg3 ;
28251 wxDouble arg4 ;
28252 wxDouble arg5 ;
70d7cb34
RD
28253 wxColour *arg6 = 0 ;
28254 wxColour *arg7 = 0 ;
28255 wxGraphicsBrush result;
72ef6efb
RD
28256 void *argp1 = 0 ;
28257 int res1 = 0 ;
28258 double val2 ;
28259 int ecode2 = 0 ;
28260 double val3 ;
28261 int ecode3 = 0 ;
28262 double val4 ;
28263 int ecode4 = 0 ;
28264 double val5 ;
28265 int ecode5 = 0 ;
70d7cb34
RD
28266 wxColour temp6 ;
28267 wxColour temp7 ;
72ef6efb
RD
28268 PyObject * obj0 = 0 ;
28269 PyObject * obj1 = 0 ;
28270 PyObject * obj2 = 0 ;
28271 PyObject * obj3 = 0 ;
28272 PyObject * obj4 = 0 ;
70d7cb34
RD
28273 PyObject * obj5 = 0 ;
28274 PyObject * obj6 = 0 ;
72ef6efb 28275 char * kwnames[] = {
70d7cb34 28276 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28277 };
28278
70d7cb34
RD
28279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28281 if (!SWIG_IsOK(res1)) {
70d7cb34 28282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28283 }
70d7cb34 28284 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28285 ecode2 = SWIG_AsVal_double(obj1, &val2);
28286 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28288 }
28289 arg2 = static_cast< wxDouble >(val2);
28290 ecode3 = SWIG_AsVal_double(obj2, &val3);
28291 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28293 }
28294 arg3 = static_cast< wxDouble >(val3);
28295 ecode4 = SWIG_AsVal_double(obj3, &val4);
28296 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28298 }
28299 arg4 = static_cast< wxDouble >(val4);
28300 ecode5 = SWIG_AsVal_double(obj4, &val5);
28301 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28302 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28303 }
28304 arg5 = static_cast< wxDouble >(val5);
28305 {
70d7cb34
RD
28306 arg6 = &temp6;
28307 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28308 }
70d7cb34
RD
28309 {
28310 arg7 = &temp7;
28311 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28312 }
72ef6efb 28313 {
70d7cb34 28314 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28315 if (PyErr_Occurred()) SWIG_fail;
28316 }
70d7cb34 28317 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28318 return resultobj;
28319fail:
28320 return NULL;
28321}
28322
28323
70d7cb34 28324SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28325 PyObject *resultobj = 0;
70d7cb34 28326 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28327 wxDouble arg2 ;
28328 wxDouble arg3 ;
28329 wxDouble arg4 ;
28330 wxDouble arg5 ;
28331 wxDouble arg6 ;
70d7cb34
RD
28332 wxColour *arg7 = 0 ;
28333 wxColour *arg8 = 0 ;
28334 wxGraphicsBrush result;
72ef6efb
RD
28335 void *argp1 = 0 ;
28336 int res1 = 0 ;
28337 double val2 ;
28338 int ecode2 = 0 ;
28339 double val3 ;
28340 int ecode3 = 0 ;
28341 double val4 ;
28342 int ecode4 = 0 ;
28343 double val5 ;
28344 int ecode5 = 0 ;
28345 double val6 ;
28346 int ecode6 = 0 ;
70d7cb34
RD
28347 wxColour temp7 ;
28348 wxColour temp8 ;
72ef6efb
RD
28349 PyObject * obj0 = 0 ;
28350 PyObject * obj1 = 0 ;
28351 PyObject * obj2 = 0 ;
28352 PyObject * obj3 = 0 ;
28353 PyObject * obj4 = 0 ;
28354 PyObject * obj5 = 0 ;
70d7cb34
RD
28355 PyObject * obj6 = 0 ;
28356 PyObject * obj7 = 0 ;
72ef6efb 28357 char * kwnames[] = {
70d7cb34 28358 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28359 };
28360
70d7cb34
RD
28361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28363 if (!SWIG_IsOK(res1)) {
70d7cb34 28364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28365 }
70d7cb34 28366 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28367 ecode2 = SWIG_AsVal_double(obj1, &val2);
28368 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28370 }
28371 arg2 = static_cast< wxDouble >(val2);
28372 ecode3 = SWIG_AsVal_double(obj2, &val3);
28373 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28375 }
28376 arg3 = static_cast< wxDouble >(val3);
28377 ecode4 = SWIG_AsVal_double(obj3, &val4);
28378 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28380 }
28381 arg4 = static_cast< wxDouble >(val4);
28382 ecode5 = SWIG_AsVal_double(obj4, &val5);
28383 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28384 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28385 }
28386 arg5 = static_cast< wxDouble >(val5);
28387 ecode6 = SWIG_AsVal_double(obj5, &val6);
28388 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28389 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28390 }
28391 arg6 = static_cast< wxDouble >(val6);
28392 {
70d7cb34
RD
28393 arg7 = &temp7;
28394 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28395 }
28396 {
28397 arg8 = &temp8;
28398 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28399 }
28400 {
28401 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28402 if (PyErr_Occurred()) SWIG_fail;
28403 }
70d7cb34 28404 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28405 return resultobj;
28406fail:
28407 return NULL;
28408}
28409
28410
70d7cb34 28411SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28412 PyObject *resultobj = 0;
28413 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28414 wxFont *arg2 = 0 ;
28415 wxColour const &arg3_defvalue = *wxBLACK ;
28416 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28417 wxGraphicsFont result;
72ef6efb
RD
28418 void *argp1 = 0 ;
28419 int res1 = 0 ;
70d7cb34
RD
28420 void *argp2 = 0 ;
28421 int res2 = 0 ;
28422 wxColour temp3 ;
28423 PyObject * obj0 = 0 ;
28424 PyObject * obj1 = 0 ;
28425 PyObject * obj2 = 0 ;
28426 char * kwnames[] = {
28427 (char *) "self",(char *) "font",(char *) "col", NULL
28428 };
72ef6efb 28429
70d7cb34
RD
28430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28432 if (!SWIG_IsOK(res1)) {
70d7cb34 28433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28434 }
28435 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28437 if (!SWIG_IsOK(res2)) {
28438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28439 }
70d7cb34
RD
28440 if (!argp2) {
28441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28442 }
70d7cb34
RD
28443 arg2 = reinterpret_cast< wxFont * >(argp2);
28444 if (obj2) {
28445 {
28446 arg3 = &temp3;
28447 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28448 }
72ef6efb 28449 }
72ef6efb 28450 {
70d7cb34 28451 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
70d7cb34 28454 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28455 return resultobj;
28456fail:
28457 return NULL;
28458}
28459
28460
70d7cb34 28461SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28462 PyObject *resultobj = 0;
70d7cb34
RD
28463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28464 wxDouble arg2 = (wxDouble) 1.0 ;
28465 wxDouble arg3 = (wxDouble) 0.0 ;
28466 wxDouble arg4 = (wxDouble) 0.0 ;
28467 wxDouble arg5 = (wxDouble) 1.0 ;
28468 wxDouble arg6 = (wxDouble) 0.0 ;
28469 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28470 wxGraphicsMatrix result;
0a27f394
RD
28471 void *argp1 = 0 ;
28472 int res1 = 0 ;
70d7cb34
RD
28473 double val2 ;
28474 int ecode2 = 0 ;
28475 double val3 ;
28476 int ecode3 = 0 ;
28477 double val4 ;
28478 int ecode4 = 0 ;
28479 double val5 ;
28480 int ecode5 = 0 ;
28481 double val6 ;
28482 int ecode6 = 0 ;
28483 double val7 ;
28484 int ecode7 = 0 ;
28485 PyObject * obj0 = 0 ;
28486 PyObject * obj1 = 0 ;
28487 PyObject * obj2 = 0 ;
28488 PyObject * obj3 = 0 ;
28489 PyObject * obj4 = 0 ;
28490 PyObject * obj5 = 0 ;
28491 PyObject * obj6 = 0 ;
28492 char * kwnames[] = {
28493 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28494 };
0a27f394 28495
70d7cb34
RD
28496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28498 if (!SWIG_IsOK(res1)) {
70d7cb34 28499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28500 }
70d7cb34
RD
28501 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28502 if (obj1) {
28503 ecode2 = SWIG_AsVal_double(obj1, &val2);
28504 if (!SWIG_IsOK(ecode2)) {
28505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28506 }
28507 arg2 = static_cast< wxDouble >(val2);
0a27f394 28508 }
70d7cb34
RD
28509 if (obj2) {
28510 ecode3 = SWIG_AsVal_double(obj2, &val3);
28511 if (!SWIG_IsOK(ecode3)) {
28512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28513 }
28514 arg3 = static_cast< wxDouble >(val3);
0a27f394 28515 }
70d7cb34
RD
28516 if (obj3) {
28517 ecode4 = SWIG_AsVal_double(obj3, &val4);
28518 if (!SWIG_IsOK(ecode4)) {
28519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28520 }
28521 arg4 = static_cast< wxDouble >(val4);
0a27f394 28522 }
70d7cb34
RD
28523 if (obj4) {
28524 ecode5 = SWIG_AsVal_double(obj4, &val5);
28525 if (!SWIG_IsOK(ecode5)) {
28526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28527 }
28528 arg5 = static_cast< wxDouble >(val5);
0a27f394 28529 }
70d7cb34
RD
28530 if (obj5) {
28531 ecode6 = SWIG_AsVal_double(obj5, &val6);
28532 if (!SWIG_IsOK(ecode6)) {
28533 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28534 }
28535 arg6 = static_cast< wxDouble >(val6);
0a27f394 28536 }
70d7cb34
RD
28537 if (obj6) {
28538 ecode7 = SWIG_AsVal_double(obj6, &val7);
28539 if (!SWIG_IsOK(ecode7)) {
28540 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28541 }
28542 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28543 }
72ef6efb 28544 {
5c8c7dd3 28545 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28546 if (PyErr_Occurred()) SWIG_fail;
28547 }
5c8c7dd3 28548 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28549 return resultobj;
28550fail:
28551 return NULL;
28552}
28553
28554
28555SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28556 PyObject *resultobj = 0;
28557 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28558 void *argp1 = 0 ;
28559 int res1 = 0 ;
28560 PyObject *swig_obj[1] ;
28561
28562 if (!args) SWIG_fail;
28563 swig_obj[0] = args;
28564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28565 if (!SWIG_IsOK(res1)) {
28566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28567 }
28568 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28569 {
72ef6efb 28570 (arg1)->PushState();
72ef6efb
RD
28571 if (PyErr_Occurred()) SWIG_fail;
28572 }
28573 resultobj = SWIG_Py_Void();
28574 return resultobj;
28575fail:
28576 return NULL;
28577}
28578
28579
28580SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28581 PyObject *resultobj = 0;
28582 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28583 void *argp1 = 0 ;
28584 int res1 = 0 ;
28585 PyObject *swig_obj[1] ;
28586
28587 if (!args) SWIG_fail;
28588 swig_obj[0] = args;
28589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28590 if (!SWIG_IsOK(res1)) {
28591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28592 }
28593 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28594 {
72ef6efb 28595 (arg1)->PopState();
72ef6efb
RD
28596 if (PyErr_Occurred()) SWIG_fail;
28597 }
28598 resultobj = SWIG_Py_Void();
28599 return resultobj;
28600fail:
28601 return NULL;
28602}
28603
28604
0a27f394 28605SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28606 PyObject *resultobj = 0;
28607 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28608 wxRegion *arg2 = 0 ;
28609 void *argp1 = 0 ;
28610 int res1 = 0 ;
28611 void *argp2 = 0 ;
28612 int res2 = 0 ;
28613 PyObject * obj0 = 0 ;
28614 PyObject * obj1 = 0 ;
28615 char * kwnames[] = {
28616 (char *) "self",(char *) "region", NULL
28617 };
28618
0a27f394 28619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28621 if (!SWIG_IsOK(res1)) {
0a27f394 28622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28623 }
28624 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28626 if (!SWIG_IsOK(res2)) {
0a27f394 28627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28628 }
28629 if (!argp2) {
0a27f394 28630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28631 }
28632 arg2 = reinterpret_cast< wxRegion * >(argp2);
28633 {
72ef6efb 28634 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28635 if (PyErr_Occurred()) SWIG_fail;
28636 }
28637 resultobj = SWIG_Py_Void();
28638 return resultobj;
28639fail:
28640 return NULL;
28641}
28642
28643
0a27f394
RD
28644SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28645 PyObject *resultobj = 0;
28646 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28647 wxDouble arg2 ;
28648 wxDouble arg3 ;
28649 wxDouble arg4 ;
28650 wxDouble arg5 ;
28651 void *argp1 = 0 ;
28652 int res1 = 0 ;
28653 double val2 ;
28654 int ecode2 = 0 ;
28655 double val3 ;
28656 int ecode3 = 0 ;
28657 double val4 ;
28658 int ecode4 = 0 ;
28659 double val5 ;
28660 int ecode5 = 0 ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 PyObject * obj2 = 0 ;
28664 PyObject * obj3 = 0 ;
28665 PyObject * obj4 = 0 ;
28666 char * kwnames[] = {
28667 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28668 };
28669
28670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28672 if (!SWIG_IsOK(res1)) {
28673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28674 }
28675 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28676 ecode2 = SWIG_AsVal_double(obj1, &val2);
28677 if (!SWIG_IsOK(ecode2)) {
28678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28679 }
28680 arg2 = static_cast< wxDouble >(val2);
28681 ecode3 = SWIG_AsVal_double(obj2, &val3);
28682 if (!SWIG_IsOK(ecode3)) {
28683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28684 }
28685 arg3 = static_cast< wxDouble >(val3);
28686 ecode4 = SWIG_AsVal_double(obj3, &val4);
28687 if (!SWIG_IsOK(ecode4)) {
28688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28689 }
28690 arg4 = static_cast< wxDouble >(val4);
28691 ecode5 = SWIG_AsVal_double(obj4, &val5);
28692 if (!SWIG_IsOK(ecode5)) {
28693 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28694 }
28695 arg5 = static_cast< wxDouble >(val5);
28696 {
28697 (arg1)->Clip(arg2,arg3,arg4,arg5);
28698 if (PyErr_Occurred()) SWIG_fail;
28699 }
28700 resultobj = SWIG_Py_Void();
28701 return resultobj;
28702fail:
28703 return NULL;
28704}
28705
28706
28707SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28708 PyObject *resultobj = 0;
28709 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28710 void *argp1 = 0 ;
28711 int res1 = 0 ;
28712 PyObject *swig_obj[1] ;
28713
28714 if (!args) SWIG_fail;
28715 swig_obj[0] = args;
28716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28717 if (!SWIG_IsOK(res1)) {
28718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28719 }
28720 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28721 {
28722 (arg1)->ResetClip();
28723 if (PyErr_Occurred()) SWIG_fail;
28724 }
28725 resultobj = SWIG_Py_Void();
28726 return resultobj;
28727fail:
28728 return NULL;
28729}
28730
28731
28732SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28733 PyObject *resultobj = 0;
28734 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28735 void *result = 0 ;
28736 void *argp1 = 0 ;
28737 int res1 = 0 ;
28738 PyObject *swig_obj[1] ;
28739
28740 if (!args) SWIG_fail;
28741 swig_obj[0] = args;
28742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28743 if (!SWIG_IsOK(res1)) {
28744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28745 }
28746 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28747 {
28748 result = (void *)(arg1)->GetNativeContext();
28749 if (PyErr_Occurred()) SWIG_fail;
28750 }
28751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28752 return resultobj;
28753fail:
28754 return NULL;
28755}
28756
28757
72ef6efb
RD
28758SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28759 PyObject *resultobj = 0;
28760 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28761 wxDouble arg2 ;
28762 wxDouble arg3 ;
28763 void *argp1 = 0 ;
28764 int res1 = 0 ;
28765 double val2 ;
28766 int ecode2 = 0 ;
28767 double val3 ;
28768 int ecode3 = 0 ;
28769 PyObject * obj0 = 0 ;
28770 PyObject * obj1 = 0 ;
28771 PyObject * obj2 = 0 ;
28772 char * kwnames[] = {
28773 (char *) "self",(char *) "dx",(char *) "dy", NULL
28774 };
28775
28776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28778 if (!SWIG_IsOK(res1)) {
28779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28780 }
28781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28782 ecode2 = SWIG_AsVal_double(obj1, &val2);
28783 if (!SWIG_IsOK(ecode2)) {
28784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28785 }
28786 arg2 = static_cast< wxDouble >(val2);
28787 ecode3 = SWIG_AsVal_double(obj2, &val3);
28788 if (!SWIG_IsOK(ecode3)) {
28789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28790 }
28791 arg3 = static_cast< wxDouble >(val3);
28792 {
72ef6efb 28793 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28794 if (PyErr_Occurred()) SWIG_fail;
28795 }
28796 resultobj = SWIG_Py_Void();
28797 return resultobj;
28798fail:
28799 return NULL;
28800}
28801
28802
28803SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28804 PyObject *resultobj = 0;
28805 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28806 wxDouble arg2 ;
28807 wxDouble arg3 ;
28808 void *argp1 = 0 ;
28809 int res1 = 0 ;
28810 double val2 ;
28811 int ecode2 = 0 ;
28812 double val3 ;
28813 int ecode3 = 0 ;
28814 PyObject * obj0 = 0 ;
28815 PyObject * obj1 = 0 ;
28816 PyObject * obj2 = 0 ;
28817 char * kwnames[] = {
28818 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28819 };
28820
28821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28823 if (!SWIG_IsOK(res1)) {
28824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28825 }
28826 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28827 ecode2 = SWIG_AsVal_double(obj1, &val2);
28828 if (!SWIG_IsOK(ecode2)) {
28829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28830 }
28831 arg2 = static_cast< wxDouble >(val2);
28832 ecode3 = SWIG_AsVal_double(obj2, &val3);
28833 if (!SWIG_IsOK(ecode3)) {
28834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28835 }
28836 arg3 = static_cast< wxDouble >(val3);
28837 {
72ef6efb 28838 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 resultobj = SWIG_Py_Void();
28842 return resultobj;
28843fail:
28844 return NULL;
28845}
28846
28847
28848SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28849 PyObject *resultobj = 0;
28850 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28851 wxDouble arg2 ;
28852 void *argp1 = 0 ;
28853 int res1 = 0 ;
28854 double val2 ;
28855 int ecode2 = 0 ;
28856 PyObject * obj0 = 0 ;
28857 PyObject * obj1 = 0 ;
28858 char * kwnames[] = {
28859 (char *) "self",(char *) "angle", NULL
28860 };
28861
28862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28864 if (!SWIG_IsOK(res1)) {
28865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28866 }
28867 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28868 ecode2 = SWIG_AsVal_double(obj1, &val2);
28869 if (!SWIG_IsOK(ecode2)) {
28870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28871 }
28872 arg2 = static_cast< wxDouble >(val2);
28873 {
72ef6efb 28874 (arg1)->Rotate(arg2);
72ef6efb
RD
28875 if (PyErr_Occurred()) SWIG_fail;
28876 }
28877 resultobj = SWIG_Py_Void();
28878 return resultobj;
28879fail:
28880 return NULL;
28881}
28882
28883
5c8c7dd3
RD
28884SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28885 PyObject *resultobj = 0;
28886 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28887 wxGraphicsMatrix *arg2 = 0 ;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890 void *argp2 = 0 ;
28891 int res2 = 0 ;
28892 PyObject * obj0 = 0 ;
28893 PyObject * obj1 = 0 ;
28894 char * kwnames[] = {
28895 (char *) "self",(char *) "matrix", NULL
28896 };
28897
28898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28900 if (!SWIG_IsOK(res1)) {
28901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28902 }
28903 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28905 if (!SWIG_IsOK(res2)) {
28906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28907 }
28908 if (!argp2) {
28909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28910 }
28911 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28912 {
28913 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28914 if (PyErr_Occurred()) SWIG_fail;
28915 }
28916 resultobj = SWIG_Py_Void();
28917 return resultobj;
28918fail:
28919 return NULL;
28920}
28921
28922
28923SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28924 PyObject *resultobj = 0;
28925 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28926 wxGraphicsMatrix *arg2 = 0 ;
28927 void *argp1 = 0 ;
28928 int res1 = 0 ;
28929 void *argp2 = 0 ;
28930 int res2 = 0 ;
28931 PyObject * obj0 = 0 ;
28932 PyObject * obj1 = 0 ;
28933 char * kwnames[] = {
28934 (char *) "self",(char *) "matrix", NULL
28935 };
28936
28937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28939 if (!SWIG_IsOK(res1)) {
28940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28941 }
28942 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28944 if (!SWIG_IsOK(res2)) {
28945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28946 }
28947 if (!argp2) {
28948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28949 }
28950 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28951 {
28952 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 resultobj = SWIG_Py_Void();
28956 return resultobj;
28957fail:
28958 return NULL;
28959}
28960
28961
28962SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28963 PyObject *resultobj = 0;
28964 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28965 wxGraphicsMatrix result;
28966 void *argp1 = 0 ;
28967 int res1 = 0 ;
28968 PyObject *swig_obj[1] ;
28969
28970 if (!args) SWIG_fail;
28971 swig_obj[0] = args;
28972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28975 }
28976 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28977 {
28978 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28979 if (PyErr_Occurred()) SWIG_fail;
28980 }
28981 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28982 return resultobj;
28983fail:
28984 return NULL;
28985}
28986
28987
70d7cb34
RD
28988SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28989 PyObject *resultobj = 0;
28990 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28991 wxGraphicsPen *arg2 = 0 ;
28992 void *argp1 = 0 ;
28993 int res1 = 0 ;
28994 void *argp2 = 0 ;
28995 int res2 = 0 ;
28996
28997 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28999 if (!SWIG_IsOK(res1)) {
29000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29001 }
29002 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29003 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29004 if (!SWIG_IsOK(res2)) {
29005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29006 }
29007 if (!argp2) {
29008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29009 }
29010 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29011 {
29012 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29013 if (PyErr_Occurred()) SWIG_fail;
29014 }
29015 resultobj = SWIG_Py_Void();
29016 return resultobj;
29017fail:
29018 return NULL;
29019}
29020
29021
29022SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29023 PyObject *resultobj = 0;
29024 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29025 wxPen *arg2 = 0 ;
29026 void *argp1 = 0 ;
29027 int res1 = 0 ;
29028 void *argp2 = 0 ;
29029 int res2 = 0 ;
72ef6efb 29030
70d7cb34
RD
29031 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29033 if (!SWIG_IsOK(res1)) {
29034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29035 }
29036 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29037 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29038 if (!SWIG_IsOK(res2)) {
29039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29040 }
29041 if (!argp2) {
29042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29043 }
29044 arg2 = reinterpret_cast< wxPen * >(argp2);
29045 {
72ef6efb 29046 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29047 if (PyErr_Occurred()) SWIG_fail;
29048 }
29049 resultobj = SWIG_Py_Void();
29050 return resultobj;
29051fail:
29052 return NULL;
29053}
29054
29055
70d7cb34
RD
29056SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29057 int argc;
29058 PyObject *argv[3];
29059
29060 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29061 --argc;
29062 if (argc == 2) {
29063 int _v = 0;
29064 {
29065 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29066 _v = SWIG_CheckState(res);
29067 }
29068 if (!_v) goto check_1;
29069 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29070 }
29071check_1:
29072
29073 if (argc == 2) {
29074 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29075 }
29076
29077fail:
29078 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29079 return NULL;
29080}
29081
29082
29083SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29084 PyObject *resultobj = 0;
29085 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29086 wxGraphicsBrush *arg2 = 0 ;
29087 void *argp1 = 0 ;
29088 int res1 = 0 ;
29089 void *argp2 = 0 ;
29090 int res2 = 0 ;
29091
29092 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29094 if (!SWIG_IsOK(res1)) {
29095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29096 }
29097 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29098 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29099 if (!SWIG_IsOK(res2)) {
29100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29101 }
29102 if (!argp2) {
29103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29104 }
29105 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29106 {
29107 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29108 if (PyErr_Occurred()) SWIG_fail;
29109 }
29110 resultobj = SWIG_Py_Void();
29111 return resultobj;
29112fail:
29113 return NULL;
29114}
29115
29116
29117SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29118 PyObject *resultobj = 0;
29119 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29120 wxBrush *arg2 = 0 ;
29121 void *argp1 = 0 ;
29122 int res1 = 0 ;
29123 void *argp2 = 0 ;
29124 int res2 = 0 ;
72ef6efb 29125
70d7cb34
RD
29126 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29128 if (!SWIG_IsOK(res1)) {
29129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29130 }
29131 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29132 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29133 if (!SWIG_IsOK(res2)) {
29134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29135 }
29136 if (!argp2) {
29137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29138 }
29139 arg2 = reinterpret_cast< wxBrush * >(argp2);
29140 {
72ef6efb 29141 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29142 if (PyErr_Occurred()) SWIG_fail;
29143 }
29144 resultobj = SWIG_Py_Void();
29145 return resultobj;
29146fail:
29147 return NULL;
29148}
29149
29150
70d7cb34
RD
29151SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29152 int argc;
29153 PyObject *argv[3];
72ef6efb 29154
70d7cb34
RD
29155 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29156 --argc;
29157 if (argc == 2) {
29158 int _v = 0;
29159 {
29160 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29161 _v = SWIG_CheckState(res);
29162 }
29163 if (!_v) goto check_1;
29164 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29165 }
70d7cb34
RD
29166check_1:
29167
29168 if (argc == 2) {
29169 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29170 }
70d7cb34 29171
72ef6efb 29172fail:
70d7cb34 29173 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29174 return NULL;
29175}
29176
29177
70d7cb34 29178SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29179 PyObject *resultobj = 0;
29180 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29181 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29182 void *argp1 = 0 ;
29183 int res1 = 0 ;
70d7cb34
RD
29184 void *argp2 = 0 ;
29185 int res2 = 0 ;
72ef6efb 29186
70d7cb34
RD
29187 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29189 if (!SWIG_IsOK(res1)) {
70d7cb34 29190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29191 }
29192 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29193 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29194 if (!SWIG_IsOK(res2)) {
29195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29196 }
70d7cb34
RD
29197 if (!argp2) {
29198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29199 }
70d7cb34 29200 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29201 {
70d7cb34 29202 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29203 if (PyErr_Occurred()) SWIG_fail;
29204 }
29205 resultobj = SWIG_Py_Void();
29206 return resultobj;
29207fail:
29208 return NULL;
29209}
29210
29211
70d7cb34 29212SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29213 PyObject *resultobj = 0;
29214 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29215 wxFont *arg2 = 0 ;
70d7cb34
RD
29216 wxColour const &arg3_defvalue = *wxBLACK ;
29217 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29218 void *argp1 = 0 ;
29219 int res1 = 0 ;
29220 void *argp2 = 0 ;
29221 int res2 = 0 ;
70d7cb34 29222 wxColour temp3 ;
72ef6efb 29223
70d7cb34
RD
29224 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29226 if (!SWIG_IsOK(res1)) {
29227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29228 }
29229 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29230 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29231 if (!SWIG_IsOK(res2)) {
29232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29233 }
29234 if (!argp2) {
29235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29236 }
29237 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29238 if (swig_obj[2]) {
29239 {
29240 arg3 = &temp3;
29241 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29242 }
29243 }
72ef6efb 29244 {
70d7cb34 29245 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29246 if (PyErr_Occurred()) SWIG_fail;
29247 }
29248 resultobj = SWIG_Py_Void();
29249 return resultobj;
29250fail:
29251 return NULL;
29252}
29253
29254
70d7cb34
RD
29255SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29256 int argc;
29257 PyObject *argv[4];
72ef6efb 29258
70d7cb34
RD
29259 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29260 --argc;
29261 if (argc == 2) {
29262 int _v = 0;
29263 {
29264 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29265 _v = SWIG_CheckState(res);
29266 }
29267 if (!_v) goto check_1;
29268 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29269 }
70d7cb34
RD
29270check_1:
29271
29272 if ((argc >= 2) && (argc <= 3)) {
29273 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29274 }
70d7cb34 29275
72ef6efb 29276fail:
70d7cb34 29277 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29278 return NULL;
29279}
29280
29281
29282SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29283 PyObject *resultobj = 0;
29284 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29285 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29286 void *argp1 = 0 ;
29287 int res1 = 0 ;
29288 void *argp2 = 0 ;
29289 int res2 = 0 ;
29290 PyObject * obj0 = 0 ;
29291 PyObject * obj1 = 0 ;
29292 char * kwnames[] = {
29293 (char *) "self",(char *) "path", NULL
29294 };
29295
29296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29298 if (!SWIG_IsOK(res1)) {
29299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29300 }
29301 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29303 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29305 }
29306 if (!argp2) {
29307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29308 }
29309 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29310 {
5c8c7dd3 29311 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29312 if (PyErr_Occurred()) SWIG_fail;
29313 }
29314 resultobj = SWIG_Py_Void();
29315 return resultobj;
29316fail:
29317 return NULL;
29318}
29319
29320
29321SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29322 PyObject *resultobj = 0;
29323 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29324 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29325 int arg3 = (int) wxWINDING_RULE ;
29326 void *argp1 = 0 ;
29327 int res1 = 0 ;
29328 void *argp2 = 0 ;
29329 int res2 = 0 ;
29330 int val3 ;
29331 int ecode3 = 0 ;
29332 PyObject * obj0 = 0 ;
29333 PyObject * obj1 = 0 ;
29334 PyObject * obj2 = 0 ;
29335 char * kwnames[] = {
29336 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29337 };
29338
29339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29341 if (!SWIG_IsOK(res1)) {
29342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29343 }
29344 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29345 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29346 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29348 }
29349 if (!argp2) {
29350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29351 }
29352 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29353 if (obj2) {
29354 ecode3 = SWIG_AsVal_int(obj2, &val3);
29355 if (!SWIG_IsOK(ecode3)) {
29356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29357 }
29358 arg3 = static_cast< int >(val3);
29359 }
29360 {
5c8c7dd3 29361 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 resultobj = SWIG_Py_Void();
29365 return resultobj;
29366fail:
29367 return NULL;
29368}
29369
29370
29371SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29372 PyObject *resultobj = 0;
29373 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29374 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29375 int arg3 = (int) wxWINDING_RULE ;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 void *argp2 = 0 ;
29379 int res2 = 0 ;
29380 int val3 ;
29381 int ecode3 = 0 ;
29382 PyObject * obj0 = 0 ;
29383 PyObject * obj1 = 0 ;
29384 PyObject * obj2 = 0 ;
29385 char * kwnames[] = {
29386 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29387 };
29388
29389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29391 if (!SWIG_IsOK(res1)) {
29392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29393 }
29394 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29396 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29398 }
29399 if (!argp2) {
29400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29401 }
29402 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29403 if (obj2) {
29404 ecode3 = SWIG_AsVal_int(obj2, &val3);
29405 if (!SWIG_IsOK(ecode3)) {
29406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29407 }
29408 arg3 = static_cast< int >(val3);
29409 }
29410 {
5c8c7dd3 29411 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29412 if (PyErr_Occurred()) SWIG_fail;
29413 }
29414 resultobj = SWIG_Py_Void();
29415 return resultobj;
29416fail:
29417 return NULL;
29418}
29419
29420
b39fe951 29421SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29422 PyObject *resultobj = 0;
29423 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29424 wxString *arg2 = 0 ;
29425 wxDouble arg3 ;
29426 wxDouble arg4 ;
29427 void *argp1 = 0 ;
29428 int res1 = 0 ;
29429 bool temp2 = false ;
29430 double val3 ;
29431 int ecode3 = 0 ;
29432 double val4 ;
29433 int ecode4 = 0 ;
b39fe951
RD
29434 PyObject * obj0 = 0 ;
29435 PyObject * obj1 = 0 ;
29436 PyObject * obj2 = 0 ;
29437 PyObject * obj3 = 0 ;
29438 char * kwnames[] = {
29439 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29440 };
72ef6efb 29441
b39fe951
RD
29442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29444 if (!SWIG_IsOK(res1)) {
29445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29446 }
29447 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29448 {
b39fe951 29449 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29450 if (arg2 == NULL) SWIG_fail;
29451 temp2 = true;
29452 }
b39fe951 29453 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29454 if (!SWIG_IsOK(ecode3)) {
29455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29456 }
29457 arg3 = static_cast< wxDouble >(val3);
b39fe951 29458 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29459 if (!SWIG_IsOK(ecode4)) {
29460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29461 }
29462 arg4 = static_cast< wxDouble >(val4);
29463 {
72ef6efb 29464 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
29465 if (PyErr_Occurred()) SWIG_fail;
29466 }
29467 resultobj = SWIG_Py_Void();
29468 {
29469 if (temp2)
29470 delete arg2;
29471 }
29472 return resultobj;
29473fail:
29474 {
29475 if (temp2)
29476 delete arg2;
29477 }
29478 return NULL;
29479}
29480
29481
b39fe951 29482SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29483 PyObject *resultobj = 0;
29484 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29485 wxString *arg2 = 0 ;
29486 wxDouble arg3 ;
29487 wxDouble arg4 ;
29488 wxDouble arg5 ;
29489 void *argp1 = 0 ;
29490 int res1 = 0 ;
29491 bool temp2 = false ;
29492 double val3 ;
29493 int ecode3 = 0 ;
29494 double val4 ;
29495 int ecode4 = 0 ;
29496 double val5 ;
29497 int ecode5 = 0 ;
b39fe951
RD
29498 PyObject * obj0 = 0 ;
29499 PyObject * obj1 = 0 ;
29500 PyObject * obj2 = 0 ;
29501 PyObject * obj3 = 0 ;
29502 PyObject * obj4 = 0 ;
29503 char * kwnames[] = {
29504 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29505 };
72ef6efb 29506
b39fe951
RD
29507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29509 if (!SWIG_IsOK(res1)) {
b39fe951 29510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29511 }
29512 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29513 {
b39fe951 29514 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29515 if (arg2 == NULL) SWIG_fail;
29516 temp2 = true;
29517 }
b39fe951 29518 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29519 if (!SWIG_IsOK(ecode3)) {
b39fe951 29520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29521 }
29522 arg3 = static_cast< wxDouble >(val3);
b39fe951 29523 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29524 if (!SWIG_IsOK(ecode4)) {
b39fe951 29525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29526 }
29527 arg4 = static_cast< wxDouble >(val4);
b39fe951 29528 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29529 if (!SWIG_IsOK(ecode5)) {
b39fe951 29530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29531 }
29532 arg5 = static_cast< wxDouble >(val5);
29533 {
72ef6efb 29534 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29535 if (PyErr_Occurred()) SWIG_fail;
29536 }
29537 resultobj = SWIG_Py_Void();
29538 {
29539 if (temp2)
29540 delete arg2;
29541 }
29542 return resultobj;
29543fail:
29544 {
29545 if (temp2)
29546 delete arg2;
29547 }
29548 return NULL;
29549}
29550
29551
be68621e 29552SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29553 PyObject *resultobj = 0;
29554 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29555 wxString *arg2 = 0 ;
29556 wxDouble *arg3 = (wxDouble *) 0 ;
29557 wxDouble *arg4 = (wxDouble *) 0 ;
29558 wxDouble *arg5 = (wxDouble *) 0 ;
29559 wxDouble *arg6 = (wxDouble *) 0 ;
29560 void *argp1 = 0 ;
29561 int res1 = 0 ;
29562 bool temp2 = false ;
29563 wxDouble temp3 ;
29564 int res3 = SWIG_TMPOBJ ;
29565 wxDouble temp4 ;
29566 int res4 = SWIG_TMPOBJ ;
29567 wxDouble temp5 ;
29568 int res5 = SWIG_TMPOBJ ;
29569 wxDouble temp6 ;
29570 int res6 = SWIG_TMPOBJ ;
29571 PyObject * obj0 = 0 ;
29572 PyObject * obj1 = 0 ;
29573 char * kwnames[] = {
29574 (char *) "self",(char *) "text", NULL
29575 };
29576
29577 arg3 = &temp3;
29578 arg4 = &temp4;
29579 arg5 = &temp5;
29580 arg6 = &temp6;
be68621e 29581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29583 if (!SWIG_IsOK(res1)) {
be68621e 29584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29585 }
29586 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29587 {
29588 arg2 = wxString_in_helper(obj1);
29589 if (arg2 == NULL) SWIG_fail;
29590 temp2 = true;
29591 }
29592 {
72ef6efb 29593 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29594 if (PyErr_Occurred()) SWIG_fail;
29595 }
29596 resultobj = SWIG_Py_Void();
29597 if (SWIG_IsTmpObj(res3)) {
29598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29599 } else {
29600 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29602 }
29603 if (SWIG_IsTmpObj(res4)) {
29604 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29605 } else {
29606 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29607 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29608 }
29609 if (SWIG_IsTmpObj(res5)) {
29610 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29611 } else {
29612 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29614 }
29615 if (SWIG_IsTmpObj(res6)) {
29616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29617 } else {
29618 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29620 }
29621 {
29622 if (temp2)
29623 delete arg2;
29624 }
29625 return resultobj;
29626fail:
29627 {
29628 if (temp2)
29629 delete arg2;
29630 }
29631 return NULL;
29632}
29633
29634
be68621e
RD
29635SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29636 PyObject *resultobj = 0;
29637 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29638 wxString *arg2 = 0 ;
29639 PyObject *result = 0 ;
29640 void *argp1 = 0 ;
29641 int res1 = 0 ;
29642 bool temp2 = false ;
29643 PyObject * obj0 = 0 ;
29644 PyObject * obj1 = 0 ;
29645 char * kwnames[] = {
29646 (char *) "self",(char *) "text", NULL
29647 };
29648
29649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29651 if (!SWIG_IsOK(res1)) {
29652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29653 }
29654 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29655 {
29656 arg2 = wxString_in_helper(obj1);
29657 if (arg2 == NULL) SWIG_fail;
29658 temp2 = true;
29659 }
29660 {
29661 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29662 if (PyErr_Occurred()) SWIG_fail;
29663 }
29664 resultobj = result;
29665 {
29666 if (temp2)
29667 delete arg2;
29668 }
29669 return resultobj;
29670fail:
29671 {
29672 if (temp2)
29673 delete arg2;
29674 }
29675 return NULL;
29676}
29677
29678
72ef6efb
RD
29679SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29680 PyObject *resultobj = 0;
29681 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29682 wxString *arg2 = 0 ;
b39fe951 29683 wxArrayDouble result;
72ef6efb
RD
29684 void *argp1 = 0 ;
29685 int res1 = 0 ;
29686 bool temp2 = false ;
72ef6efb
RD
29687 PyObject * obj0 = 0 ;
29688 PyObject * obj1 = 0 ;
72ef6efb 29689 char * kwnames[] = {
b39fe951 29690 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29691 };
29692
b39fe951 29693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29695 if (!SWIG_IsOK(res1)) {
b39fe951 29696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29697 }
29698 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29699 {
29700 arg2 = wxString_in_helper(obj1);
29701 if (arg2 == NULL) SWIG_fail;
29702 temp2 = true;
29703 }
72ef6efb 29704 {
b39fe951 29705 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29706 if (PyErr_Occurred()) SWIG_fail;
29707 }
b39fe951
RD
29708 {
29709 resultobj = wxArrayDouble2PyList_helper(result);
29710 }
72ef6efb
RD
29711 {
29712 if (temp2)
29713 delete arg2;
29714 }
29715 return resultobj;
29716fail:
29717 {
29718 if (temp2)
29719 delete arg2;
29720 }
29721 return NULL;
29722}
29723
29724
29725SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj = 0;
29727 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29728 wxBitmap *arg2 = 0 ;
29729 wxDouble arg3 ;
29730 wxDouble arg4 ;
29731 wxDouble arg5 ;
29732 wxDouble arg6 ;
29733 void *argp1 = 0 ;
29734 int res1 = 0 ;
29735 void *argp2 = 0 ;
29736 int res2 = 0 ;
29737 double val3 ;
29738 int ecode3 = 0 ;
29739 double val4 ;
29740 int ecode4 = 0 ;
29741 double val5 ;
29742 int ecode5 = 0 ;
29743 double val6 ;
29744 int ecode6 = 0 ;
29745 PyObject * obj0 = 0 ;
29746 PyObject * obj1 = 0 ;
29747 PyObject * obj2 = 0 ;
29748 PyObject * obj3 = 0 ;
29749 PyObject * obj4 = 0 ;
29750 PyObject * obj5 = 0 ;
29751 char * kwnames[] = {
29752 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29753 };
29754
29755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29757 if (!SWIG_IsOK(res1)) {
29758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29759 }
29760 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29762 if (!SWIG_IsOK(res2)) {
29763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29764 }
29765 if (!argp2) {
29766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29767 }
29768 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29769 ecode3 = SWIG_AsVal_double(obj2, &val3);
29770 if (!SWIG_IsOK(ecode3)) {
29771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29772 }
29773 arg3 = static_cast< wxDouble >(val3);
29774 ecode4 = SWIG_AsVal_double(obj3, &val4);
29775 if (!SWIG_IsOK(ecode4)) {
29776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29777 }
29778 arg4 = static_cast< wxDouble >(val4);
29779 ecode5 = SWIG_AsVal_double(obj4, &val5);
29780 if (!SWIG_IsOK(ecode5)) {
29781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29782 }
29783 arg5 = static_cast< wxDouble >(val5);
29784 ecode6 = SWIG_AsVal_double(obj5, &val6);
29785 if (!SWIG_IsOK(ecode6)) {
29786 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29787 }
29788 arg6 = static_cast< wxDouble >(val6);
29789 {
72ef6efb 29790 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29791 if (PyErr_Occurred()) SWIG_fail;
29792 }
29793 resultobj = SWIG_Py_Void();
29794 return resultobj;
29795fail:
29796 return NULL;
29797}
29798
29799
29800SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29801 PyObject *resultobj = 0;
29802 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29803 wxIcon *arg2 = 0 ;
29804 wxDouble arg3 ;
29805 wxDouble arg4 ;
29806 wxDouble arg5 ;
29807 wxDouble arg6 ;
29808 void *argp1 = 0 ;
29809 int res1 = 0 ;
29810 void *argp2 = 0 ;
29811 int res2 = 0 ;
29812 double val3 ;
29813 int ecode3 = 0 ;
29814 double val4 ;
29815 int ecode4 = 0 ;
29816 double val5 ;
29817 int ecode5 = 0 ;
70d7cb34
RD
29818 double val6 ;
29819 int ecode6 = 0 ;
29820 PyObject * obj0 = 0 ;
29821 PyObject * obj1 = 0 ;
29822 PyObject * obj2 = 0 ;
29823 PyObject * obj3 = 0 ;
29824 PyObject * obj4 = 0 ;
29825 PyObject * obj5 = 0 ;
29826 char * kwnames[] = {
29827 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29828 };
29829
29830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29832 if (!SWIG_IsOK(res1)) {
29833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29834 }
29835 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29837 if (!SWIG_IsOK(res2)) {
29838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29839 }
29840 if (!argp2) {
29841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29842 }
29843 arg2 = reinterpret_cast< wxIcon * >(argp2);
29844 ecode3 = SWIG_AsVal_double(obj2, &val3);
29845 if (!SWIG_IsOK(ecode3)) {
29846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29847 }
29848 arg3 = static_cast< wxDouble >(val3);
29849 ecode4 = SWIG_AsVal_double(obj3, &val4);
29850 if (!SWIG_IsOK(ecode4)) {
29851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29852 }
29853 arg4 = static_cast< wxDouble >(val4);
29854 ecode5 = SWIG_AsVal_double(obj4, &val5);
29855 if (!SWIG_IsOK(ecode5)) {
29856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29857 }
29858 arg5 = static_cast< wxDouble >(val5);
29859 ecode6 = SWIG_AsVal_double(obj5, &val6);
29860 if (!SWIG_IsOK(ecode6)) {
29861 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29862 }
29863 arg6 = static_cast< wxDouble >(val6);
29864 {
29865 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29866 if (PyErr_Occurred()) SWIG_fail;
29867 }
29868 resultobj = SWIG_Py_Void();
29869 return resultobj;
29870fail:
29871 return NULL;
29872}
29873
29874
29875SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29876 PyObject *resultobj = 0;
29877 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29878 wxDouble arg2 ;
29879 wxDouble arg3 ;
29880 wxDouble arg4 ;
29881 wxDouble arg5 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 double val2 ;
29885 int ecode2 = 0 ;
29886 double val3 ;
29887 int ecode3 = 0 ;
29888 double val4 ;
29889 int ecode4 = 0 ;
29890 double val5 ;
29891 int ecode5 = 0 ;
29892 PyObject * obj0 = 0 ;
29893 PyObject * obj1 = 0 ;
29894 PyObject * obj2 = 0 ;
29895 PyObject * obj3 = 0 ;
29896 PyObject * obj4 = 0 ;
29897 char * kwnames[] = {
29898 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29899 };
29900
29901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29905 }
29906 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29907 ecode2 = SWIG_AsVal_double(obj1, &val2);
29908 if (!SWIG_IsOK(ecode2)) {
29909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29910 }
29911 arg2 = static_cast< wxDouble >(val2);
29912 ecode3 = SWIG_AsVal_double(obj2, &val3);
29913 if (!SWIG_IsOK(ecode3)) {
29914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29915 }
29916 arg3 = static_cast< wxDouble >(val3);
29917 ecode4 = SWIG_AsVal_double(obj3, &val4);
29918 if (!SWIG_IsOK(ecode4)) {
29919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29920 }
29921 arg4 = static_cast< wxDouble >(val4);
29922 ecode5 = SWIG_AsVal_double(obj4, &val5);
29923 if (!SWIG_IsOK(ecode5)) {
29924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29925 }
29926 arg5 = static_cast< wxDouble >(val5);
29927 {
29928 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29929 if (PyErr_Occurred()) SWIG_fail;
29930 }
29931 resultobj = SWIG_Py_Void();
29932 return resultobj;
29933fail:
29934 return NULL;
29935}
29936
29937
29938SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29939 PyObject *resultobj = 0;
29940 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29941 size_t arg2 ;
29942 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 char * kwnames[] = {
29948 (char *) "self",(char *) "points", NULL
29949 };
29950
29951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29953 if (!SWIG_IsOK(res1)) {
29954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29955 }
29956 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29957 {
29958 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29959 if (arg3 == NULL) SWIG_fail;
29960 }
29961 {
29962 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29963 if (PyErr_Occurred()) SWIG_fail;
29964 }
29965 resultobj = SWIG_Py_Void();
29966 {
29967 if (arg3) delete [] arg3;
29968 }
29969 return resultobj;
29970fail:
29971 {
29972 if (arg3) delete [] arg3;
29973 }
29974 return NULL;
29975}
29976
29977
29978SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29979 PyObject *resultobj = 0;
29980 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29981 PyObject *arg2 = (PyObject *) 0 ;
29982 PyObject *arg3 = (PyObject *) 0 ;
29983 void *argp1 = 0 ;
29984 int res1 = 0 ;
29985 PyObject * obj0 = 0 ;
29986 PyObject * obj1 = 0 ;
29987 PyObject * obj2 = 0 ;
29988 char * kwnames[] = {
29989 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29990 };
29991
29992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29994 if (!SWIG_IsOK(res1)) {
29995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29996 }
29997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29998 arg2 = obj1;
29999 arg3 = obj2;
30000 {
30001 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_Py_Void();
30005 return resultobj;
30006fail:
30007 return NULL;
30008}
30009
30010
30011SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30012 PyObject *resultobj = 0;
30013 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30014 size_t arg2 ;
30015 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30016 int arg4 = (int) wxWINDING_RULE ;
30017 void *argp1 = 0 ;
30018 int res1 = 0 ;
30019 int val4 ;
30020 int ecode4 = 0 ;
30021 PyObject * obj0 = 0 ;
30022 PyObject * obj1 = 0 ;
30023 PyObject * obj2 = 0 ;
30024 char * kwnames[] = {
30025 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30026 };
30027
30028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30030 if (!SWIG_IsOK(res1)) {
30031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30032 }
30033 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30034 {
30035 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30036 if (arg3 == NULL) SWIG_fail;
30037 }
30038 if (obj2) {
30039 ecode4 = SWIG_AsVal_int(obj2, &val4);
30040 if (!SWIG_IsOK(ecode4)) {
30041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30042 }
30043 arg4 = static_cast< int >(val4);
30044 }
30045 {
30046 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30047 if (PyErr_Occurred()) SWIG_fail;
30048 }
30049 resultobj = SWIG_Py_Void();
30050 {
30051 if (arg3) delete [] arg3;
30052 }
30053 return resultobj;
30054fail:
30055 {
30056 if (arg3) delete [] arg3;
30057 }
30058 return NULL;
30059}
30060
30061
30062SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30063 PyObject *resultobj = 0;
30064 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30065 wxDouble arg2 ;
30066 wxDouble arg3 ;
30067 wxDouble arg4 ;
30068 wxDouble arg5 ;
30069 void *argp1 = 0 ;
30070 int res1 = 0 ;
30071 double val2 ;
30072 int ecode2 = 0 ;
30073 double val3 ;
30074 int ecode3 = 0 ;
30075 double val4 ;
30076 int ecode4 = 0 ;
30077 double val5 ;
30078 int ecode5 = 0 ;
30079 PyObject * obj0 = 0 ;
30080 PyObject * obj1 = 0 ;
30081 PyObject * obj2 = 0 ;
30082 PyObject * obj3 = 0 ;
30083 PyObject * obj4 = 0 ;
30084 char * kwnames[] = {
30085 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30086 };
30087
30088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30090 if (!SWIG_IsOK(res1)) {
30091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30092 }
30093 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30094 ecode2 = SWIG_AsVal_double(obj1, &val2);
30095 if (!SWIG_IsOK(ecode2)) {
30096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30097 }
30098 arg2 = static_cast< wxDouble >(val2);
30099 ecode3 = SWIG_AsVal_double(obj2, &val3);
30100 if (!SWIG_IsOK(ecode3)) {
30101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30102 }
30103 arg3 = static_cast< wxDouble >(val3);
30104 ecode4 = SWIG_AsVal_double(obj3, &val4);
30105 if (!SWIG_IsOK(ecode4)) {
30106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30107 }
30108 arg4 = static_cast< wxDouble >(val4);
30109 ecode5 = SWIG_AsVal_double(obj4, &val5);
30110 if (!SWIG_IsOK(ecode5)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30112 }
30113 arg5 = static_cast< wxDouble >(val5);
30114 {
30115 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30116 if (PyErr_Occurred()) SWIG_fail;
30117 }
30118 resultobj = SWIG_Py_Void();
30119 return resultobj;
30120fail:
30121 return NULL;
30122}
30123
30124
30125SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30126 PyObject *resultobj = 0;
30127 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30128 wxDouble arg2 ;
30129 wxDouble arg3 ;
30130 wxDouble arg4 ;
30131 wxDouble arg5 ;
30132 void *argp1 = 0 ;
30133 int res1 = 0 ;
30134 double val2 ;
30135 int ecode2 = 0 ;
30136 double val3 ;
30137 int ecode3 = 0 ;
30138 double val4 ;
30139 int ecode4 = 0 ;
30140 double val5 ;
30141 int ecode5 = 0 ;
72ef6efb
RD
30142 PyObject * obj0 = 0 ;
30143 PyObject * obj1 = 0 ;
30144 PyObject * obj2 = 0 ;
30145 PyObject * obj3 = 0 ;
30146 PyObject * obj4 = 0 ;
72ef6efb 30147 char * kwnames[] = {
70d7cb34 30148 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30149 };
30150
70d7cb34 30151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30153 if (!SWIG_IsOK(res1)) {
70d7cb34 30154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30155 }
30156 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30157 ecode2 = SWIG_AsVal_double(obj1, &val2);
30158 if (!SWIG_IsOK(ecode2)) {
30159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30160 }
30161 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30162 ecode3 = SWIG_AsVal_double(obj2, &val3);
30163 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30165 }
30166 arg3 = static_cast< wxDouble >(val3);
30167 ecode4 = SWIG_AsVal_double(obj3, &val4);
30168 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30169 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30170 }
30171 arg4 = static_cast< wxDouble >(val4);
30172 ecode5 = SWIG_AsVal_double(obj4, &val5);
30173 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30174 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30175 }
30176 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30177 {
70d7cb34 30178 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 resultobj = SWIG_Py_Void();
30182 return resultobj;
30183fail:
30184 return NULL;
30185}
30186
30187
70d7cb34 30188SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30189 PyObject *resultobj = 0;
30190 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30191 wxDouble arg2 ;
30192 wxDouble arg3 ;
30193 wxDouble arg4 ;
30194 wxDouble arg5 ;
70d7cb34 30195 wxDouble arg6 ;
72ef6efb
RD
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 double val2 ;
30199 int ecode2 = 0 ;
30200 double val3 ;
30201 int ecode3 = 0 ;
30202 double val4 ;
30203 int ecode4 = 0 ;
30204 double val5 ;
30205 int ecode5 = 0 ;
70d7cb34
RD
30206 double val6 ;
30207 int ecode6 = 0 ;
72ef6efb
RD
30208 PyObject * obj0 = 0 ;
30209 PyObject * obj1 = 0 ;
30210 PyObject * obj2 = 0 ;
30211 PyObject * obj3 = 0 ;
30212 PyObject * obj4 = 0 ;
70d7cb34 30213 PyObject * obj5 = 0 ;
72ef6efb 30214 char * kwnames[] = {
70d7cb34 30215 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30216 };
30217
70d7cb34 30218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30220 if (!SWIG_IsOK(res1)) {
70d7cb34 30221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30222 }
30223 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30224 ecode2 = SWIG_AsVal_double(obj1, &val2);
30225 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30227 }
30228 arg2 = static_cast< wxDouble >(val2);
30229 ecode3 = SWIG_AsVal_double(obj2, &val3);
30230 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30232 }
30233 arg3 = static_cast< wxDouble >(val3);
30234 ecode4 = SWIG_AsVal_double(obj3, &val4);
30235 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30237 }
30238 arg4 = static_cast< wxDouble >(val4);
30239 ecode5 = SWIG_AsVal_double(obj4, &val5);
30240 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30242 }
30243 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30244 ecode6 = SWIG_AsVal_double(obj5, &val6);
30245 if (!SWIG_IsOK(ecode6)) {
30246 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30247 }
30248 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30249 {
70d7cb34 30250 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30251 if (PyErr_Occurred()) SWIG_fail;
30252 }
30253 resultobj = SWIG_Py_Void();
30254 return resultobj;
30255fail:
30256 return NULL;
30257}
30258
30259
70d7cb34 30260SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30261 PyObject *resultobj = 0;
30262 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30263 bool result;
72ef6efb
RD
30264 void *argp1 = 0 ;
30265 int res1 = 0 ;
70d7cb34 30266 PyObject *swig_obj[1] ;
72ef6efb 30267
70d7cb34
RD
30268 if (!args) SWIG_fail;
30269 swig_obj[0] = args;
30270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30271 if (!SWIG_IsOK(res1)) {
70d7cb34 30272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30273 }
30274 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30275 {
70d7cb34
RD
30276 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30277 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30278 }
72ef6efb 30279 {
70d7cb34
RD
30280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30281 }
30282 return resultobj;
30283fail:
30284 return NULL;
30285}
30286
30287
30288SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30289 PyObject *obj;
30290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30291 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30292 return SWIG_Py_Void();
30293}
30294
30295SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30296 PyObject *resultobj = 0;
30297 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30298 void *argp1 = 0 ;
30299 int res1 = 0 ;
30300 PyObject *swig_obj[1] ;
30301
30302 if (!args) SWIG_fail;
30303 swig_obj[0] = args;
30304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30305 if (!SWIG_IsOK(res1)) {
30306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30307 }
30308 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30309 {
30310 delete arg1;
30311
72ef6efb
RD
30312 if (PyErr_Occurred()) SWIG_fail;
30313 }
30314 resultobj = SWIG_Py_Void();
70d7cb34
RD
30315 return resultobj;
30316fail:
30317 return NULL;
30318}
30319
30320
30321SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30322 PyObject *resultobj = 0;
30323 wxGraphicsRenderer *result = 0 ;
30324
30325 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30326 {
70d7cb34
RD
30327 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30328 if (PyErr_Occurred()) SWIG_fail;
30329 }
30330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30331 return resultobj;
30332fail:
30333 return NULL;
30334}
30335
30336
30337SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30338 PyObject *resultobj = 0;
30339 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30340 wxWindowDC *arg2 = 0 ;
30341 wxGraphicsContext *result = 0 ;
30342 void *argp1 = 0 ;
30343 int res1 = 0 ;
30344 void *argp2 = 0 ;
30345 int res2 = 0 ;
30346
30347 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30349 if (!SWIG_IsOK(res1)) {
30350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30351 }
30352 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30353 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30354 if (!SWIG_IsOK(res2)) {
30355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30356 }
30357 if (!argp2) {
30358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30359 }
30360 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30361 {
30362 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30363 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30364 }
70d7cb34 30365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30366 return resultobj;
30367fail:
70d7cb34
RD
30368 return NULL;
30369}
30370
30371
30372SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30373 PyObject *resultobj = 0;
30374 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30375 wxWindow *arg2 = (wxWindow *) 0 ;
30376 wxGraphicsContext *result = 0 ;
30377 void *argp1 = 0 ;
30378 int res1 = 0 ;
30379 void *argp2 = 0 ;
30380 int res2 = 0 ;
30381
30382 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30384 if (!SWIG_IsOK(res1)) {
30385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30386 }
30387 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30388 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30389 if (!SWIG_IsOK(res2)) {
30390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30391 }
30392 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30393 {
70d7cb34
RD
30394 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30395 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30396 }
70d7cb34
RD
30397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30398 return resultobj;
30399fail:
72ef6efb
RD
30400 return NULL;
30401}
30402
30403
70d7cb34
RD
30404SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30405 int argc;
30406 PyObject *argv[3];
30407
30408 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30409 --argc;
30410 if (argc == 2) {
30411 int _v = 0;
30412 {
30413 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30414 _v = SWIG_CheckState(res);
30415 }
30416 if (!_v) goto check_1;
30417 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30418 }
30419check_1:
30420
30421 if (argc == 2) {
30422 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30423 }
30424
30425fail:
30426 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30427 return NULL;
30428}
30429
30430
30431SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30432 PyObject *resultobj = 0;
70d7cb34
RD
30433 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30434 void *arg2 = (void *) 0 ;
30435 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30436 void *argp1 = 0 ;
30437 int res1 = 0 ;
70d7cb34 30438 int res2 ;
b39fe951
RD
30439 PyObject * obj0 = 0 ;
30440 PyObject * obj1 = 0 ;
b39fe951 30441 char * kwnames[] = {
70d7cb34 30442 (char *) "self",(char *) "context", NULL
b39fe951 30443 };
72ef6efb 30444
70d7cb34
RD
30445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30447 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30449 }
30450 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30451 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30452 if (!SWIG_IsOK(res2)) {
30453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30454 }
72ef6efb 30455 {
70d7cb34 30456 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30457 if (PyErr_Occurred()) SWIG_fail;
30458 }
70d7cb34 30459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30460 return resultobj;
30461fail:
30462 return NULL;
30463}
30464
30465
70d7cb34 30466SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30467 PyObject *resultobj = 0;
70d7cb34
RD
30468 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30469 void *arg2 = (void *) 0 ;
30470 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30471 void *argp1 = 0 ;
30472 int res1 = 0 ;
70d7cb34 30473 int res2 ;
72ef6efb
RD
30474 PyObject * obj0 = 0 ;
30475 PyObject * obj1 = 0 ;
72ef6efb 30476 char * kwnames[] = {
70d7cb34 30477 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30478 };
30479
70d7cb34
RD
30480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30482 if (!SWIG_IsOK(res1)) {
70d7cb34 30483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30484 }
70d7cb34
RD
30485 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30486 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30487 if (!SWIG_IsOK(res2)) {
30488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30489 }
30490 {
70d7cb34 30491 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30492 if (PyErr_Occurred()) SWIG_fail;
30493 }
70d7cb34 30494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30495 return resultobj;
30496fail:
70d7cb34
RD
30497 return NULL;
30498}
30499
30500
30501SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30502 PyObject *resultobj = 0;
30503 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30504 wxGraphicsPath result;
70d7cb34
RD
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 PyObject *swig_obj[1] ;
30508
30509 if (!args) SWIG_fail;
30510 swig_obj[0] = args;
30511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30512 if (!SWIG_IsOK(res1)) {
30513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30514 }
30515 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30516 {
5c8c7dd3 30517 result = (arg1)->CreatePath();
70d7cb34 30518 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30519 }
5c8c7dd3 30520 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30521 return resultobj;
30522fail:
72ef6efb
RD
30523 return NULL;
30524}
30525
30526
70d7cb34 30527SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30528 PyObject *resultobj = 0;
70d7cb34
RD
30529 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30530 wxDouble arg2 = (wxDouble) 1.0 ;
30531 wxDouble arg3 = (wxDouble) 0.0 ;
30532 wxDouble arg4 = (wxDouble) 0.0 ;
30533 wxDouble arg5 = (wxDouble) 1.0 ;
30534 wxDouble arg6 = (wxDouble) 0.0 ;
30535 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30536 wxGraphicsMatrix result;
72ef6efb
RD
30537 void *argp1 = 0 ;
30538 int res1 = 0 ;
30539 double val2 ;
30540 int ecode2 = 0 ;
30541 double val3 ;
30542 int ecode3 = 0 ;
30543 double val4 ;
30544 int ecode4 = 0 ;
30545 double val5 ;
30546 int ecode5 = 0 ;
70d7cb34
RD
30547 double val6 ;
30548 int ecode6 = 0 ;
30549 double val7 ;
30550 int ecode7 = 0 ;
72ef6efb
RD
30551 PyObject * obj0 = 0 ;
30552 PyObject * obj1 = 0 ;
30553 PyObject * obj2 = 0 ;
30554 PyObject * obj3 = 0 ;
30555 PyObject * obj4 = 0 ;
70d7cb34
RD
30556 PyObject * obj5 = 0 ;
30557 PyObject * obj6 = 0 ;
72ef6efb 30558 char * kwnames[] = {
70d7cb34 30559 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30560 };
30561
70d7cb34
RD
30562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30564 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30566 }
30567 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30568 if (obj1) {
30569 ecode2 = SWIG_AsVal_double(obj1, &val2);
30570 if (!SWIG_IsOK(ecode2)) {
30571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30572 }
30573 arg2 = static_cast< wxDouble >(val2);
30574 }
30575 if (obj2) {
30576 ecode3 = SWIG_AsVal_double(obj2, &val3);
30577 if (!SWIG_IsOK(ecode3)) {
30578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30579 }
30580 arg3 = static_cast< wxDouble >(val3);
30581 }
30582 if (obj3) {
30583 ecode4 = SWIG_AsVal_double(obj3, &val4);
30584 if (!SWIG_IsOK(ecode4)) {
30585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30586 }
30587 arg4 = static_cast< wxDouble >(val4);
30588 }
30589 if (obj4) {
30590 ecode5 = SWIG_AsVal_double(obj4, &val5);
30591 if (!SWIG_IsOK(ecode5)) {
30592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30593 }
30594 arg5 = static_cast< wxDouble >(val5);
30595 }
30596 if (obj5) {
30597 ecode6 = SWIG_AsVal_double(obj5, &val6);
30598 if (!SWIG_IsOK(ecode6)) {
30599 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30600 }
30601 arg6 = static_cast< wxDouble >(val6);
30602 }
30603 if (obj6) {
30604 ecode7 = SWIG_AsVal_double(obj6, &val7);
30605 if (!SWIG_IsOK(ecode7)) {
30606 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30607 }
30608 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30609 }
72ef6efb 30610 {
5c8c7dd3 30611 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30612 if (PyErr_Occurred()) SWIG_fail;
30613 }
5c8c7dd3 30614 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30615 return resultobj;
30616fail:
30617 return NULL;
30618}
30619
30620
70d7cb34 30621SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30622 PyObject *resultobj = 0;
70d7cb34
RD
30623 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30624 wxPen *arg2 = 0 ;
30625 wxGraphicsPen result;
30626 void *argp1 = 0 ;
30627 int res1 = 0 ;
30628 void *argp2 = 0 ;
30629 int res2 = 0 ;
30630 PyObject * obj0 = 0 ;
30631 PyObject * obj1 = 0 ;
30632 char * kwnames[] = {
30633 (char *) "self",(char *) "pen", NULL
30634 };
30635
30636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30638 if (!SWIG_IsOK(res1)) {
30639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30640 }
30641 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30643 if (!SWIG_IsOK(res2)) {
30644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30645 }
30646 if (!argp2) {
30647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30648 }
30649 arg2 = reinterpret_cast< wxPen * >(argp2);
30650 {
30651 result = (arg1)->CreatePen((wxPen const &)*arg2);
30652 if (PyErr_Occurred()) SWIG_fail;
30653 }
30654 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30655 return resultobj;
30656fail:
30657 return NULL;
30658}
30659
30660
30661SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30662 PyObject *resultobj = 0;
30663 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30664 wxBrush *arg2 = 0 ;
30665 wxGraphicsBrush result;
30666 void *argp1 = 0 ;
30667 int res1 = 0 ;
30668 void *argp2 = 0 ;
30669 int res2 = 0 ;
30670 PyObject * obj0 = 0 ;
30671 PyObject * obj1 = 0 ;
30672 char * kwnames[] = {
30673 (char *) "self",(char *) "brush", NULL
30674 };
30675
30676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30678 if (!SWIG_IsOK(res1)) {
30679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30680 }
30681 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30683 if (!SWIG_IsOK(res2)) {
30684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30685 }
30686 if (!argp2) {
30687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30688 }
30689 arg2 = reinterpret_cast< wxBrush * >(argp2);
30690 {
30691 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30692 if (PyErr_Occurred()) SWIG_fail;
30693 }
30694 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30695 return resultobj;
30696fail:
30697 return NULL;
30698}
30699
30700
30701SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30702 PyObject *resultobj = 0;
30703 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30704 wxDouble arg2 ;
30705 wxDouble arg3 ;
30706 wxDouble arg4 ;
30707 wxDouble arg5 ;
70d7cb34
RD
30708 wxColour *arg6 = 0 ;
30709 wxColour *arg7 = 0 ;
30710 wxGraphicsBrush result;
72ef6efb
RD
30711 void *argp1 = 0 ;
30712 int res1 = 0 ;
30713 double val2 ;
30714 int ecode2 = 0 ;
30715 double val3 ;
30716 int ecode3 = 0 ;
30717 double val4 ;
30718 int ecode4 = 0 ;
30719 double val5 ;
30720 int ecode5 = 0 ;
70d7cb34
RD
30721 wxColour temp6 ;
30722 wxColour temp7 ;
72ef6efb
RD
30723 PyObject * obj0 = 0 ;
30724 PyObject * obj1 = 0 ;
30725 PyObject * obj2 = 0 ;
30726 PyObject * obj3 = 0 ;
30727 PyObject * obj4 = 0 ;
70d7cb34
RD
30728 PyObject * obj5 = 0 ;
30729 PyObject * obj6 = 0 ;
72ef6efb 30730 char * kwnames[] = {
70d7cb34 30731 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30732 };
30733
70d7cb34
RD
30734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30736 if (!SWIG_IsOK(res1)) {
70d7cb34 30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30738 }
70d7cb34 30739 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30740 ecode2 = SWIG_AsVal_double(obj1, &val2);
30741 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30743 }
30744 arg2 = static_cast< wxDouble >(val2);
30745 ecode3 = SWIG_AsVal_double(obj2, &val3);
30746 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30748 }
30749 arg3 = static_cast< wxDouble >(val3);
30750 ecode4 = SWIG_AsVal_double(obj3, &val4);
30751 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30753 }
30754 arg4 = static_cast< wxDouble >(val4);
30755 ecode5 = SWIG_AsVal_double(obj4, &val5);
30756 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30758 }
30759 arg5 = static_cast< wxDouble >(val5);
30760 {
70d7cb34
RD
30761 arg6 = &temp6;
30762 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30763 }
30764 {
30765 arg7 = &temp7;
30766 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30767 }
30768 {
30769 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30770 if (PyErr_Occurred()) SWIG_fail;
30771 }
70d7cb34 30772 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30773 return resultobj;
30774fail:
30775 return NULL;
30776}
30777
30778
70d7cb34 30779SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30780 PyObject *resultobj = 0;
70d7cb34 30781 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30782 wxDouble arg2 ;
30783 wxDouble arg3 ;
30784 wxDouble arg4 ;
30785 wxDouble arg5 ;
30786 wxDouble arg6 ;
70d7cb34
RD
30787 wxColour *arg7 = 0 ;
30788 wxColour *arg8 = 0 ;
30789 wxGraphicsBrush result;
72ef6efb
RD
30790 void *argp1 = 0 ;
30791 int res1 = 0 ;
30792 double val2 ;
30793 int ecode2 = 0 ;
30794 double val3 ;
30795 int ecode3 = 0 ;
30796 double val4 ;
30797 int ecode4 = 0 ;
30798 double val5 ;
30799 int ecode5 = 0 ;
30800 double val6 ;
30801 int ecode6 = 0 ;
70d7cb34
RD
30802 wxColour temp7 ;
30803 wxColour temp8 ;
72ef6efb
RD
30804 PyObject * obj0 = 0 ;
30805 PyObject * obj1 = 0 ;
30806 PyObject * obj2 = 0 ;
30807 PyObject * obj3 = 0 ;
30808 PyObject * obj4 = 0 ;
30809 PyObject * obj5 = 0 ;
70d7cb34
RD
30810 PyObject * obj6 = 0 ;
30811 PyObject * obj7 = 0 ;
72ef6efb 30812 char * kwnames[] = {
70d7cb34 30813 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30814 };
30815
70d7cb34
RD
30816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30818 if (!SWIG_IsOK(res1)) {
70d7cb34 30819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30820 }
70d7cb34 30821 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30822 ecode2 = SWIG_AsVal_double(obj1, &val2);
30823 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30825 }
30826 arg2 = static_cast< wxDouble >(val2);
30827 ecode3 = SWIG_AsVal_double(obj2, &val3);
30828 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30830 }
30831 arg3 = static_cast< wxDouble >(val3);
30832 ecode4 = SWIG_AsVal_double(obj3, &val4);
30833 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30835 }
30836 arg4 = static_cast< wxDouble >(val4);
30837 ecode5 = SWIG_AsVal_double(obj4, &val5);
30838 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30840 }
30841 arg5 = static_cast< wxDouble >(val5);
30842 ecode6 = SWIG_AsVal_double(obj5, &val6);
30843 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30845 }
30846 arg6 = static_cast< wxDouble >(val6);
30847 {
70d7cb34
RD
30848 arg7 = &temp7;
30849 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30850 }
30851 {
30852 arg8 = &temp8;
30853 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30854 }
30855 {
30856 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30857 if (PyErr_Occurred()) SWIG_fail;
30858 }
70d7cb34 30859 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30860 return resultobj;
30861fail:
30862 return NULL;
30863}
30864
30865
70d7cb34
RD
30866SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30867 PyObject *resultobj = 0;
30868 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30869 wxFont *arg2 = 0 ;
30870 wxColour const &arg3_defvalue = *wxBLACK ;
30871 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30872 wxGraphicsFont result;
30873 void *argp1 = 0 ;
30874 int res1 = 0 ;
30875 void *argp2 = 0 ;
30876 int res2 = 0 ;
30877 wxColour temp3 ;
30878 PyObject * obj0 = 0 ;
30879 PyObject * obj1 = 0 ;
30880 PyObject * obj2 = 0 ;
30881 char * kwnames[] = {
30882 (char *) "self",(char *) "font",(char *) "col", NULL
30883 };
30884
30885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30887 if (!SWIG_IsOK(res1)) {
30888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30889 }
30890 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30892 if (!SWIG_IsOK(res2)) {
30893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30894 }
30895 if (!argp2) {
30896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30897 }
30898 arg2 = reinterpret_cast< wxFont * >(argp2);
30899 if (obj2) {
30900 {
30901 arg3 = &temp3;
30902 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30903 }
30904 }
30905 {
30906 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30907 if (PyErr_Occurred()) SWIG_fail;
30908 }
30909 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30910 return resultobj;
30911fail:
30912 return NULL;
30913}
30914
30915
30916SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30917 PyObject *obj;
30918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30919 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30920 return SWIG_Py_Void();
30921}
30922
30923SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30924 PyObject *resultobj = 0;
30925 wxWindowDC *arg1 = 0 ;
30926 wxGCDC *result = 0 ;
30927 void *argp1 = 0 ;
30928 int res1 = 0 ;
30929 PyObject * obj0 = 0 ;
30930 char * kwnames[] = {
30931 (char *) "dc", NULL
30932 };
30933
30934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30935 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30936 if (!SWIG_IsOK(res1)) {
30937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30938 }
30939 if (!argp1) {
30940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30941 }
30942 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30943 {
30944 if (!wxPyCheckForApp()) SWIG_fail;
30945 PyThreadState* __tstate = wxPyBeginAllowThreads();
30946 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30947 wxPyEndAllowThreads(__tstate);
30948 if (PyErr_Occurred()) SWIG_fail;
30949 }
30950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30951 return resultobj;
30952fail:
30953 return NULL;
30954}
30955
30956
30957SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30958 PyObject *resultobj = 0;
30959 wxGCDC *arg1 = (wxGCDC *) 0 ;
30960 void *argp1 = 0 ;
30961 int res1 = 0 ;
30962 PyObject *swig_obj[1] ;
30963
30964 if (!args) SWIG_fail;
30965 swig_obj[0] = args;
30966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30967 if (!SWIG_IsOK(res1)) {
30968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30969 }
30970 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30971 {
72ef6efb
RD
30972 delete arg1;
30973
72ef6efb
RD
30974 if (PyErr_Occurred()) SWIG_fail;
30975 }
30976 resultobj = SWIG_Py_Void();
30977 return resultobj;
30978fail:
30979 return NULL;
30980}
30981
30982
0a27f394 30983SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30984 PyObject *resultobj = 0;
30985 wxGCDC *arg1 = (wxGCDC *) 0 ;
30986 wxGraphicsContext *result = 0 ;
30987 void *argp1 = 0 ;
30988 int res1 = 0 ;
30989 PyObject *swig_obj[1] ;
30990
30991 if (!args) SWIG_fail;
30992 swig_obj[0] = args;
30993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30994 if (!SWIG_IsOK(res1)) {
0a27f394 30995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30996 }
30997 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30998 {
0a27f394 30999 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31000 if (PyErr_Occurred()) SWIG_fail;
31001 }
31002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31003 return resultobj;
31004fail:
31005 return NULL;
31006}
31007
31008
0a27f394
RD
31009SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31010 PyObject *resultobj = 0;
31011 wxGCDC *arg1 = (wxGCDC *) 0 ;
31012 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31013 void *argp1 = 0 ;
31014 int res1 = 0 ;
31015 void *argp2 = 0 ;
31016 int res2 = 0 ;
31017 PyObject * obj0 = 0 ;
31018 PyObject * obj1 = 0 ;
31019 char * kwnames[] = {
31020 (char *) "self",(char *) "ctx", NULL
31021 };
31022
31023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31025 if (!SWIG_IsOK(res1)) {
31026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31027 }
31028 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31029 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31030 if (!SWIG_IsOK(res2)) {
31031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31032 }
31033 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31034 {
31035 (arg1)->SetGraphicsContext(arg2);
31036 if (PyErr_Occurred()) SWIG_fail;
31037 }
31038 resultobj = SWIG_Py_Void();
31039 return resultobj;
31040fail:
31041 return NULL;
31042}
31043
31044
72ef6efb
RD
31045SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31046 PyObject *obj;
31047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31048 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31049 return SWIG_Py_Void();
31050}
31051
31052SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31053 return SWIG_Python_InitShadowInstance(args);
31054}
31055
b39fe951
RD
31056SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31057 PyObject *resultobj = 0;
31058 wxOverlay *result = 0 ;
31059
31060 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31061 {
31062 PyThreadState* __tstate = wxPyBeginAllowThreads();
31063 result = (wxOverlay *)new wxOverlay();
31064 wxPyEndAllowThreads(__tstate);
31065 if (PyErr_Occurred()) SWIG_fail;
31066 }
31067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31068 return resultobj;
31069fail:
31070 return NULL;
31071}
31072
31073
31074SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31075 PyObject *resultobj = 0;
31076 wxOverlay *arg1 = (wxOverlay *) 0 ;
31077 void *argp1 = 0 ;
31078 int res1 = 0 ;
31079 PyObject *swig_obj[1] ;
31080
31081 if (!args) SWIG_fail;
31082 swig_obj[0] = args;
31083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31084 if (!SWIG_IsOK(res1)) {
31085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31086 }
31087 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31088 {
31089 PyThreadState* __tstate = wxPyBeginAllowThreads();
31090 delete arg1;
31091
31092 wxPyEndAllowThreads(__tstate);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 resultobj = SWIG_Py_Void();
31096 return resultobj;
31097fail:
31098 return NULL;
31099}
31100
31101
31102SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31103 PyObject *resultobj = 0;
31104 wxOverlay *arg1 = (wxOverlay *) 0 ;
31105 void *argp1 = 0 ;
31106 int res1 = 0 ;
31107 PyObject *swig_obj[1] ;
31108
31109 if (!args) SWIG_fail;
31110 swig_obj[0] = args;
31111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31112 if (!SWIG_IsOK(res1)) {
31113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31114 }
31115 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31116 {
31117 PyThreadState* __tstate = wxPyBeginAllowThreads();
31118 (arg1)->Reset();
31119 wxPyEndAllowThreads(__tstate);
31120 if (PyErr_Occurred()) SWIG_fail;
31121 }
31122 resultobj = SWIG_Py_Void();
31123 return resultobj;
31124fail:
31125 return NULL;
31126}
31127
31128
31129SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31130 PyObject *obj;
31131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31132 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31133 return SWIG_Py_Void();
31134}
31135
31136SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31137 return SWIG_Python_InitShadowInstance(args);
31138}
31139
31140SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31141 PyObject *resultobj = 0;
31142 wxOverlay *arg1 = 0 ;
31143 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31144 int arg3 ;
31145 int arg4 ;
31146 int arg5 ;
31147 int arg6 ;
31148 wxDCOverlay *result = 0 ;
31149 void *argp1 = 0 ;
31150 int res1 = 0 ;
31151 void *argp2 = 0 ;
31152 int res2 = 0 ;
31153 int val3 ;
31154 int ecode3 = 0 ;
31155 int val4 ;
31156 int ecode4 = 0 ;
31157 int val5 ;
31158 int ecode5 = 0 ;
31159 int val6 ;
31160 int ecode6 = 0 ;
31161
31162 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31164 if (!SWIG_IsOK(res1)) {
31165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31166 }
31167 if (!argp1) {
31168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31169 }
31170 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31171 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31172 if (!SWIG_IsOK(res2)) {
31173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31174 }
31175 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31176 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31177 if (!SWIG_IsOK(ecode3)) {
31178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31179 }
31180 arg3 = static_cast< int >(val3);
31181 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31182 if (!SWIG_IsOK(ecode4)) {
31183 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31184 }
31185 arg4 = static_cast< int >(val4);
31186 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31187 if (!SWIG_IsOK(ecode5)) {
31188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31189 }
31190 arg5 = static_cast< int >(val5);
31191 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31192 if (!SWIG_IsOK(ecode6)) {
31193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31194 }
31195 arg6 = static_cast< int >(val6);
31196 {
31197 PyThreadState* __tstate = wxPyBeginAllowThreads();
31198 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31199 wxPyEndAllowThreads(__tstate);
31200 if (PyErr_Occurred()) SWIG_fail;
31201 }
31202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31203 return resultobj;
31204fail:
31205 return NULL;
31206}
31207
31208
31209SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31210 PyObject *resultobj = 0;
31211 wxOverlay *arg1 = 0 ;
31212 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31213 wxDCOverlay *result = 0 ;
31214 void *argp1 = 0 ;
31215 int res1 = 0 ;
31216 void *argp2 = 0 ;
31217 int res2 = 0 ;
31218
31219 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31221 if (!SWIG_IsOK(res1)) {
31222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31223 }
31224 if (!argp1) {
31225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31226 }
31227 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31228 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31229 if (!SWIG_IsOK(res2)) {
31230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31231 }
31232 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31233 {
31234 PyThreadState* __tstate = wxPyBeginAllowThreads();
31235 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31236 wxPyEndAllowThreads(__tstate);
31237 if (PyErr_Occurred()) SWIG_fail;
31238 }
31239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31240 return resultobj;
31241fail:
31242 return NULL;
31243}
31244
31245
31246SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31247 int argc;
31248 PyObject *argv[7];
31249
31250 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31251 --argc;
31252 if (argc == 2) {
31253 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31254 }
31255 if (argc == 6) {
31256 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31257 }
31258
31259fail:
31260 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31261 return NULL;
31262}
31263
31264
31265SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31266 PyObject *resultobj = 0;
31267 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31268 void *argp1 = 0 ;
31269 int res1 = 0 ;
31270 PyObject *swig_obj[1] ;
31271
31272 if (!args) SWIG_fail;
31273 swig_obj[0] = args;
31274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31275 if (!SWIG_IsOK(res1)) {
31276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31277 }
31278 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31279 {
31280 PyThreadState* __tstate = wxPyBeginAllowThreads();
31281 delete arg1;
31282
31283 wxPyEndAllowThreads(__tstate);
31284 if (PyErr_Occurred()) SWIG_fail;
31285 }
31286 resultobj = SWIG_Py_Void();
31287 return resultobj;
31288fail:
31289 return NULL;
31290}
31291
31292
31293SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31294 PyObject *resultobj = 0;
31295 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31296 void *argp1 = 0 ;
31297 int res1 = 0 ;
31298 PyObject *swig_obj[1] ;
31299
31300 if (!args) SWIG_fail;
31301 swig_obj[0] = args;
31302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31303 if (!SWIG_IsOK(res1)) {
31304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31305 }
31306 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31307 {
31308 PyThreadState* __tstate = wxPyBeginAllowThreads();
31309 (arg1)->Clear();
31310 wxPyEndAllowThreads(__tstate);
31311 if (PyErr_Occurred()) SWIG_fail;
31312 }
31313 resultobj = SWIG_Py_Void();
31314 return resultobj;
31315fail:
31316 return NULL;
31317}
31318
31319
31320SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31321 PyObject *obj;
31322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31323 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31324 return SWIG_Py_Void();
31325}
31326
31327SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31328 return SWIG_Python_InitShadowInstance(args);
31329}
31330
72ef6efb
RD
31331SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31332 PyObject *resultobj = 0;
31333 int arg1 ;
31334 int arg2 ;
31335 int arg3 = (int) true ;
31336 int arg4 = (int) 1 ;
31337 wxImageList *result = 0 ;
31338 int val1 ;
31339 int ecode1 = 0 ;
31340 int val2 ;
31341 int ecode2 = 0 ;
31342 int val3 ;
31343 int ecode3 = 0 ;
31344 int val4 ;
31345 int ecode4 = 0 ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 PyObject * obj2 = 0 ;
31349 PyObject * obj3 = 0 ;
31350 char * kwnames[] = {
31351 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31352 };
31353
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31355 ecode1 = SWIG_AsVal_int(obj0, &val1);
31356 if (!SWIG_IsOK(ecode1)) {
31357 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31358 }
31359 arg1 = static_cast< int >(val1);
31360 ecode2 = SWIG_AsVal_int(obj1, &val2);
31361 if (!SWIG_IsOK(ecode2)) {
31362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31363 }
31364 arg2 = static_cast< int >(val2);
31365 if (obj2) {
31366 ecode3 = SWIG_AsVal_int(obj2, &val3);
31367 if (!SWIG_IsOK(ecode3)) {
31368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31369 }
31370 arg3 = static_cast< int >(val3);
31371 }
31372 if (obj3) {
31373 ecode4 = SWIG_AsVal_int(obj3, &val4);
31374 if (!SWIG_IsOK(ecode4)) {
31375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31376 }
31377 arg4 = static_cast< int >(val4);
31378 }
31379 {
31380 if (!wxPyCheckForApp()) SWIG_fail;
31381 PyThreadState* __tstate = wxPyBeginAllowThreads();
31382 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31383 wxPyEndAllowThreads(__tstate);
31384 if (PyErr_Occurred()) SWIG_fail;
31385 }
e02c0a13 31386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31387 return resultobj;
31388fail:
31389 return NULL;
31390}
31391
31392
31393SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31394 PyObject *resultobj = 0;
31395 wxImageList *arg1 = (wxImageList *) 0 ;
31396 void *argp1 = 0 ;
31397 int res1 = 0 ;
31398 PyObject *swig_obj[1] ;
31399
31400 if (!args) SWIG_fail;
31401 swig_obj[0] = args;
31402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31405 }
31406 arg1 = reinterpret_cast< wxImageList * >(argp1);
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 delete arg1;
31410
31411 wxPyEndAllowThreads(__tstate);
31412 if (PyErr_Occurred()) SWIG_fail;
31413 }
31414 resultobj = SWIG_Py_Void();
31415 return resultobj;
31416fail:
31417 return NULL;
31418}
31419
31420
31421SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj = 0;
31423 wxImageList *arg1 = (wxImageList *) 0 ;
31424 wxBitmap *arg2 = 0 ;
31425 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31426 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31427 int result;
31428 void *argp1 = 0 ;
31429 int res1 = 0 ;
31430 void *argp2 = 0 ;
31431 int res2 = 0 ;
31432 void *argp3 = 0 ;
31433 int res3 = 0 ;
31434 PyObject * obj0 = 0 ;
31435 PyObject * obj1 = 0 ;
31436 PyObject * obj2 = 0 ;
31437 char * kwnames[] = {
31438 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31439 };
31440
31441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31443 if (!SWIG_IsOK(res1)) {
31444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31445 }
31446 arg1 = reinterpret_cast< wxImageList * >(argp1);
31447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31448 if (!SWIG_IsOK(res2)) {
31449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31450 }
31451 if (!argp2) {
31452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31453 }
31454 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31455 if (obj2) {
31456 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31457 if (!SWIG_IsOK(res3)) {
31458 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31459 }
31460 if (!argp3) {
31461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31462 }
31463 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31464 }
31465 {
31466 PyThreadState* __tstate = wxPyBeginAllowThreads();
31467 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31468 wxPyEndAllowThreads(__tstate);
31469 if (PyErr_Occurred()) SWIG_fail;
31470 }
31471 resultobj = SWIG_From_int(static_cast< int >(result));
31472 return resultobj;
31473fail:
31474 return NULL;
31475}
31476
31477
31478SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31479 PyObject *resultobj = 0;
31480 wxImageList *arg1 = (wxImageList *) 0 ;
31481 wxBitmap *arg2 = 0 ;
31482 wxColour *arg3 = 0 ;
31483 int result;
31484 void *argp1 = 0 ;
31485 int res1 = 0 ;
31486 void *argp2 = 0 ;
31487 int res2 = 0 ;
31488 wxColour temp3 ;
31489 PyObject * obj0 = 0 ;
31490 PyObject * obj1 = 0 ;
31491 PyObject * obj2 = 0 ;
31492 char * kwnames[] = {
31493 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31494 };
31495
31496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31498 if (!SWIG_IsOK(res1)) {
31499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31500 }
31501 arg1 = reinterpret_cast< wxImageList * >(argp1);
31502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31503 if (!SWIG_IsOK(res2)) {
31504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31505 }
31506 if (!argp2) {
31507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31508 }
31509 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31510 {
31511 arg3 = &temp3;
31512 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31513 }
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31517 wxPyEndAllowThreads(__tstate);
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 resultobj = SWIG_From_int(static_cast< int >(result));
31521 return resultobj;
31522fail:
31523 return NULL;
31524}
31525
31526
31527SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31528 PyObject *resultobj = 0;
31529 wxImageList *arg1 = (wxImageList *) 0 ;
31530 wxIcon *arg2 = 0 ;
31531 int result;
31532 void *argp1 = 0 ;
31533 int res1 = 0 ;
31534 void *argp2 = 0 ;
31535 int res2 = 0 ;
31536 PyObject * obj0 = 0 ;
31537 PyObject * obj1 = 0 ;
31538 char * kwnames[] = {
31539 (char *) "self",(char *) "icon", NULL
31540 };
31541
31542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31544 if (!SWIG_IsOK(res1)) {
31545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31546 }
554f62e9
RD
31547 arg1 = reinterpret_cast< wxImageList * >(argp1);
31548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31549 if (!SWIG_IsOK(res2)) {
31550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31551 }
31552 if (!argp2) {
31553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31554 }
31555 arg2 = reinterpret_cast< wxIcon * >(argp2);
31556 {
31557 PyThreadState* __tstate = wxPyBeginAllowThreads();
31558 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31559 wxPyEndAllowThreads(__tstate);
31560 if (PyErr_Occurred()) SWIG_fail;
31561 }
31562 resultobj = SWIG_From_int(static_cast< int >(result));
31563 return resultobj;
31564fail:
31565 return NULL;
31566}
31567
31568
31569SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31570 PyObject *resultobj = 0;
31571 wxImageList *arg1 = (wxImageList *) 0 ;
31572 int arg2 ;
31573 SwigValueWrapper<wxBitmap > result;
31574 void *argp1 = 0 ;
31575 int res1 = 0 ;
31576 int val2 ;
31577 int ecode2 = 0 ;
31578 PyObject * obj0 = 0 ;
31579 PyObject * obj1 = 0 ;
31580 char * kwnames[] = {
31581 (char *) "self",(char *) "index", NULL
31582 };
31583
31584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31586 if (!SWIG_IsOK(res1)) {
31587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31588 }
31589 arg1 = reinterpret_cast< wxImageList * >(argp1);
31590 ecode2 = SWIG_AsVal_int(obj1, &val2);
31591 if (!SWIG_IsOK(ecode2)) {
31592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31593 }
31594 arg2 = static_cast< int >(val2);
31595 {
31596 PyThreadState* __tstate = wxPyBeginAllowThreads();
31597 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31598 wxPyEndAllowThreads(__tstate);
31599 if (PyErr_Occurred()) SWIG_fail;
31600 }
31601 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31602 return resultobj;
31603fail:
31604 return NULL;
31605}
31606
31607
31608SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31609 PyObject *resultobj = 0;
31610 wxImageList *arg1 = (wxImageList *) 0 ;
31611 int arg2 ;
31612 wxIcon result;
31613 void *argp1 = 0 ;
31614 int res1 = 0 ;
31615 int val2 ;
31616 int ecode2 = 0 ;
31617 PyObject * obj0 = 0 ;
31618 PyObject * obj1 = 0 ;
31619 char * kwnames[] = {
31620 (char *) "self",(char *) "index", NULL
31621 };
31622
31623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31625 if (!SWIG_IsOK(res1)) {
31626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31627 }
31628 arg1 = reinterpret_cast< wxImageList * >(argp1);
31629 ecode2 = SWIG_AsVal_int(obj1, &val2);
31630 if (!SWIG_IsOK(ecode2)) {
31631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31632 }
31633 arg2 = static_cast< int >(val2);
31634 {
31635 PyThreadState* __tstate = wxPyBeginAllowThreads();
31636 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31637 wxPyEndAllowThreads(__tstate);
31638 if (PyErr_Occurred()) SWIG_fail;
31639 }
31640 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31641 return resultobj;
31642fail:
31643 return NULL;
31644}
31645
31646
31647SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31648 PyObject *resultobj = 0;
31649 wxImageList *arg1 = (wxImageList *) 0 ;
31650 int arg2 ;
31651 wxBitmap *arg3 = 0 ;
31652 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31653 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31654 bool result;
31655 void *argp1 = 0 ;
31656 int res1 = 0 ;
31657 int val2 ;
31658 int ecode2 = 0 ;
31659 void *argp3 = 0 ;
31660 int res3 = 0 ;
31661 void *argp4 = 0 ;
31662 int res4 = 0 ;
31663 PyObject * obj0 = 0 ;
31664 PyObject * obj1 = 0 ;
31665 PyObject * obj2 = 0 ;
31666 PyObject * obj3 = 0 ;
31667 char * kwnames[] = {
31668 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31669 };
31670
31671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31673 if (!SWIG_IsOK(res1)) {
31674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31675 }
31676 arg1 = reinterpret_cast< wxImageList * >(argp1);
31677 ecode2 = SWIG_AsVal_int(obj1, &val2);
31678 if (!SWIG_IsOK(ecode2)) {
31679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31680 }
31681 arg2 = static_cast< int >(val2);
31682 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31683 if (!SWIG_IsOK(res3)) {
31684 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31685 }
31686 if (!argp3) {
31687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31688 }
31689 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31690 if (obj3) {
31691 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31692 if (!SWIG_IsOK(res4)) {
31693 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 31694 }
554f62e9
RD
31695 if (!argp4) {
31696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 31697 }
554f62e9
RD
31698 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31699 }
31700 {
31701 PyThreadState* __tstate = wxPyBeginAllowThreads();
31702 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31703 wxPyEndAllowThreads(__tstate);
31704 if (PyErr_Occurred()) SWIG_fail;
31705 }
31706 {
31707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31708 }
31709 return resultobj;
31710fail:
31711 return NULL;
31712}
31713
31714
31715SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31716 PyObject *resultobj = 0;
31717 wxImageList *arg1 = (wxImageList *) 0 ;
31718 int arg2 ;
31719 wxDC *arg3 = 0 ;
31720 int arg4 ;
31721 int arg5 ;
31722 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31723 bool arg7 = (bool) (bool)false ;
31724 bool result;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 int val2 ;
31728 int ecode2 = 0 ;
31729 void *argp3 = 0 ;
31730 int res3 = 0 ;
31731 int val4 ;
31732 int ecode4 = 0 ;
31733 int val5 ;
31734 int ecode5 = 0 ;
31735 int val6 ;
31736 int ecode6 = 0 ;
31737 bool val7 ;
31738 int ecode7 = 0 ;
31739 PyObject * obj0 = 0 ;
31740 PyObject * obj1 = 0 ;
31741 PyObject * obj2 = 0 ;
31742 PyObject * obj3 = 0 ;
31743 PyObject * obj4 = 0 ;
31744 PyObject * obj5 = 0 ;
31745 PyObject * obj6 = 0 ;
31746 char * kwnames[] = {
31747 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31748 };
31749
31750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31752 if (!SWIG_IsOK(res1)) {
31753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31754 }
31755 arg1 = reinterpret_cast< wxImageList * >(argp1);
31756 ecode2 = SWIG_AsVal_int(obj1, &val2);
31757 if (!SWIG_IsOK(ecode2)) {
31758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31759 }
31760 arg2 = static_cast< int >(val2);
31761 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31762 if (!SWIG_IsOK(res3)) {
31763 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31764 }
31765 if (!argp3) {
31766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31767 }
31768 arg3 = reinterpret_cast< wxDC * >(argp3);
31769 ecode4 = SWIG_AsVal_int(obj3, &val4);
31770 if (!SWIG_IsOK(ecode4)) {
31771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31772 }
31773 arg4 = static_cast< int >(val4);
31774 ecode5 = SWIG_AsVal_int(obj4, &val5);
31775 if (!SWIG_IsOK(ecode5)) {
31776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31777 }
31778 arg5 = static_cast< int >(val5);
31779 if (obj5) {
31780 ecode6 = SWIG_AsVal_int(obj5, &val6);
31781 if (!SWIG_IsOK(ecode6)) {
31782 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31783 }
31784 arg6 = static_cast< int >(val6);
31785 }
31786 if (obj6) {
31787 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31788 if (!SWIG_IsOK(ecode7)) {
31789 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31790 }
31791 arg7 = static_cast< bool >(val7);
31792 }
31793 {
31794 PyThreadState* __tstate = wxPyBeginAllowThreads();
31795 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31796 wxPyEndAllowThreads(__tstate);
31797 if (PyErr_Occurred()) SWIG_fail;
31798 }
31799 {
31800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31801 }
31802 return resultobj;
31803fail:
31804 return NULL;
31805}
31806
31807
31808SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31809 PyObject *resultobj = 0;
31810 wxImageList *arg1 = (wxImageList *) 0 ;
31811 int result;
31812 void *argp1 = 0 ;
31813 int res1 = 0 ;
31814 PyObject *swig_obj[1] ;
31815
31816 if (!args) SWIG_fail;
31817 swig_obj[0] = args;
31818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31819 if (!SWIG_IsOK(res1)) {
31820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31821 }
31822 arg1 = reinterpret_cast< wxImageList * >(argp1);
31823 {
31824 PyThreadState* __tstate = wxPyBeginAllowThreads();
31825 result = (int)(arg1)->GetImageCount();
31826 wxPyEndAllowThreads(__tstate);
31827 if (PyErr_Occurred()) SWIG_fail;
31828 }
31829 resultobj = SWIG_From_int(static_cast< int >(result));
31830 return resultobj;
31831fail:
31832 return NULL;
31833}
31834
31835
31836SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31837 PyObject *resultobj = 0;
31838 wxImageList *arg1 = (wxImageList *) 0 ;
31839 int arg2 ;
31840 bool result;
31841 void *argp1 = 0 ;
31842 int res1 = 0 ;
31843 int val2 ;
31844 int ecode2 = 0 ;
31845 PyObject * obj0 = 0 ;
31846 PyObject * obj1 = 0 ;
31847 char * kwnames[] = {
31848 (char *) "self",(char *) "index", NULL
31849 };
31850
31851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31853 if (!SWIG_IsOK(res1)) {
31854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31855 }
31856 arg1 = reinterpret_cast< wxImageList * >(argp1);
31857 ecode2 = SWIG_AsVal_int(obj1, &val2);
31858 if (!SWIG_IsOK(ecode2)) {
31859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31860 }
31861 arg2 = static_cast< int >(val2);
31862 {
31863 PyThreadState* __tstate = wxPyBeginAllowThreads();
31864 result = (bool)(arg1)->Remove(arg2);
31865 wxPyEndAllowThreads(__tstate);
31866 if (PyErr_Occurred()) SWIG_fail;
31867 }
31868 {
31869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31870 }
31871 return resultobj;
31872fail:
31873 return NULL;
31874}
31875
31876
31877SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31878 PyObject *resultobj = 0;
31879 wxImageList *arg1 = (wxImageList *) 0 ;
31880 bool result;
31881 void *argp1 = 0 ;
31882 int res1 = 0 ;
31883 PyObject *swig_obj[1] ;
31884
31885 if (!args) SWIG_fail;
31886 swig_obj[0] = args;
31887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31890 }
31891 arg1 = reinterpret_cast< wxImageList * >(argp1);
31892 {
31893 PyThreadState* __tstate = wxPyBeginAllowThreads();
31894 result = (bool)(arg1)->RemoveAll();
31895 wxPyEndAllowThreads(__tstate);
31896 if (PyErr_Occurred()) SWIG_fail;
31897 }
31898 {
31899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31900 }
31901 return resultobj;
31902fail:
31903 return NULL;
31904}
31905
31906
31907SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31908 PyObject *resultobj = 0;
31909 wxImageList *arg1 = (wxImageList *) 0 ;
31910 int arg2 ;
31911 int *arg3 = 0 ;
31912 int *arg4 = 0 ;
31913 void *argp1 = 0 ;
31914 int res1 = 0 ;
31915 int val2 ;
31916 int ecode2 = 0 ;
31917 int temp3 ;
31918 int res3 = SWIG_TMPOBJ ;
31919 int temp4 ;
31920 int res4 = SWIG_TMPOBJ ;
31921 PyObject * obj0 = 0 ;
31922 PyObject * obj1 = 0 ;
31923 char * kwnames[] = {
31924 (char *) "self",(char *) "index", NULL
31925 };
31926
31927 arg3 = &temp3;
31928 arg4 = &temp4;
31929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31931 if (!SWIG_IsOK(res1)) {
31932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31933 }
31934 arg1 = reinterpret_cast< wxImageList * >(argp1);
31935 ecode2 = SWIG_AsVal_int(obj1, &val2);
31936 if (!SWIG_IsOK(ecode2)) {
31937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31938 }
31939 arg2 = static_cast< int >(val2);
31940 {
31941 PyThreadState* __tstate = wxPyBeginAllowThreads();
31942 (arg1)->GetSize(arg2,*arg3,*arg4);
31943 wxPyEndAllowThreads(__tstate);
31944 if (PyErr_Occurred()) SWIG_fail;
31945 }
31946 resultobj = SWIG_Py_Void();
31947 if (SWIG_IsTmpObj(res3)) {
31948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31949 } else {
31950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31952 }
31953 if (SWIG_IsTmpObj(res4)) {
31954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31955 } else {
31956 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31958 }
31959 return resultobj;
31960fail:
31961 return NULL;
31962}
31963
31964
31965SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31966 PyObject *obj;
31967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31968 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31969 return SWIG_Py_Void();
31970}
31971
31972SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31973 return SWIG_Python_InitShadowInstance(args);
31974}
31975
50efceee
RD
31976SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31977 PyObject *resultobj = 0;
31978 wxStockGDI *result = 0 ;
554f62e9 31979
50efceee
RD
31980 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31981 {
31982 PyThreadState* __tstate = wxPyBeginAllowThreads();
31983 result = (wxStockGDI *)new wxStockGDI();
31984 wxPyEndAllowThreads(__tstate);
31985 if (PyErr_Occurred()) SWIG_fail;
31986 }
31987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31988 return resultobj;
31989fail:
31990 return NULL;
554f62e9
RD
31991}
31992
31993
50efceee
RD
31994SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31995 PyObject *resultobj = 0;
31996 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31997 void *argp1 = 0 ;
31998 int res1 = 0 ;
31999 PyObject *swig_obj[1] ;
554f62e9 32000
50efceee
RD
32001 if (!args) SWIG_fail;
32002 swig_obj[0] = args;
32003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32004 if (!SWIG_IsOK(res1)) {
32005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32006 }
32007 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32008 {
32009 PyThreadState* __tstate = wxPyBeginAllowThreads();
32010 delete arg1;
32011
32012 wxPyEndAllowThreads(__tstate);
32013 if (PyErr_Occurred()) SWIG_fail;
32014 }
32015 resultobj = SWIG_Py_Void();
32016 return resultobj;
32017fail:
32018 return NULL;
554f62e9
RD
32019}
32020
32021
50efceee
RD
32022SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32023 PyObject *resultobj = 0;
554f62e9 32024
50efceee
RD
32025 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32026 {
32027 PyThreadState* __tstate = wxPyBeginAllowThreads();
32028 wxStockGDI::DeleteAll();
32029 wxPyEndAllowThreads(__tstate);
32030 if (PyErr_Occurred()) SWIG_fail;
32031 }
32032 resultobj = SWIG_Py_Void();
32033 return resultobj;
32034fail:
32035 return NULL;
554f62e9
RD
32036}
32037
32038
50efceee
RD
32039SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32040 PyObject *resultobj = 0;
32041 wxStockGDI *result = 0 ;
554f62e9 32042
50efceee
RD
32043 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32044 {
32045 PyThreadState* __tstate = wxPyBeginAllowThreads();
32046 {
32047 wxStockGDI &_result_ref = wxStockGDI::instance();
32048 result = (wxStockGDI *) &_result_ref;
32049 }
32050 wxPyEndAllowThreads(__tstate);
32051 if (PyErr_Occurred()) SWIG_fail;
32052 }
32053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32054 return resultobj;
32055fail:
32056 return NULL;
554f62e9
RD
32057}
32058
32059
50efceee
RD
32060SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32061 PyObject *resultobj = 0;
32062 wxStockGDI::Item arg1 ;
32063 wxBrush *result = 0 ;
32064 int val1 ;
32065 int ecode1 = 0 ;
32066 PyObject * obj0 = 0 ;
32067 char * kwnames[] = {
32068 (char *) "item", NULL
32069 };
32070
32071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32072 ecode1 = SWIG_AsVal_int(obj0, &val1);
32073 if (!SWIG_IsOK(ecode1)) {
32074 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32075 }
32076 arg1 = static_cast< wxStockGDI::Item >(val1);
32077 {
32078 PyThreadState* __tstate = wxPyBeginAllowThreads();
32079 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32080 wxPyEndAllowThreads(__tstate);
32081 if (PyErr_Occurred()) SWIG_fail;
32082 }
32083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32084 return resultobj;
32085fail:
32086 return NULL;
554f62e9
RD
32087}
32088
32089
50efceee
RD
32090SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32091 PyObject *resultobj = 0;
32092 wxStockGDI::Item arg1 ;
32093 wxColour *result = 0 ;
32094 int val1 ;
32095 int ecode1 = 0 ;
32096 PyObject * obj0 = 0 ;
32097 char * kwnames[] = {
32098 (char *) "item", NULL
32099 };
554f62e9 32100
50efceee
RD
32101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32102 ecode1 = SWIG_AsVal_int(obj0, &val1);
32103 if (!SWIG_IsOK(ecode1)) {
32104 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32105 }
32106 arg1 = static_cast< wxStockGDI::Item >(val1);
32107 {
32108 PyThreadState* __tstate = wxPyBeginAllowThreads();
32109 result = (wxColour *)wxStockGDI::GetColour(arg1);
32110 wxPyEndAllowThreads(__tstate);
32111 if (PyErr_Occurred()) SWIG_fail;
32112 }
32113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32114 return resultobj;
32115fail:
32116 return NULL;
554f62e9
RD
32117}
32118
32119
50efceee
RD
32120SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32121 PyObject *resultobj = 0;
32122 wxStockGDI::Item arg1 ;
32123 wxCursor *result = 0 ;
32124 int val1 ;
32125 int ecode1 = 0 ;
32126 PyObject * obj0 = 0 ;
32127 char * kwnames[] = {
32128 (char *) "item", NULL
32129 };
32130
32131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32132 ecode1 = SWIG_AsVal_int(obj0, &val1);
32133 if (!SWIG_IsOK(ecode1)) {
32134 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32135 }
32136 arg1 = static_cast< wxStockGDI::Item >(val1);
32137 {
32138 PyThreadState* __tstate = wxPyBeginAllowThreads();
32139 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32140 wxPyEndAllowThreads(__tstate);
32141 if (PyErr_Occurred()) SWIG_fail;
32142 }
32143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32144 return resultobj;
32145fail:
32146 return NULL;
554f62e9
RD
32147}
32148
32149
50efceee
RD
32150SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32151 PyObject *resultobj = 0;
32152 wxStockGDI::Item arg1 ;
32153 wxPen *result = 0 ;
32154 int val1 ;
32155 int ecode1 = 0 ;
32156 PyObject * obj0 = 0 ;
32157 char * kwnames[] = {
32158 (char *) "item", NULL
32159 };
32160
32161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32162 ecode1 = SWIG_AsVal_int(obj0, &val1);
32163 if (!SWIG_IsOK(ecode1)) {
32164 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32165 }
32166 arg1 = static_cast< wxStockGDI::Item >(val1);
32167 {
32168 PyThreadState* __tstate = wxPyBeginAllowThreads();
32169 result = (wxPen *)wxStockGDI::GetPen(arg1);
32170 wxPyEndAllowThreads(__tstate);
32171 if (PyErr_Occurred()) SWIG_fail;
32172 }
32173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32174 return resultobj;
32175fail:
32176 return NULL;
554f62e9
RD
32177}
32178
32179
50efceee
RD
32180SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32181 PyObject *resultobj = 0;
32182 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32183 wxStockGDI::Item arg2 ;
32184 wxFont *result = 0 ;
32185 void *argp1 = 0 ;
32186 int res1 = 0 ;
32187 int val2 ;
32188 int ecode2 = 0 ;
32189 PyObject * obj0 = 0 ;
32190 PyObject * obj1 = 0 ;
32191 char * kwnames[] = {
32192 (char *) "self",(char *) "item", NULL
32193 };
554f62e9 32194
50efceee
RD
32195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32197 if (!SWIG_IsOK(res1)) {
32198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32199 }
32200 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32201 ecode2 = SWIG_AsVal_int(obj1, &val2);
32202 if (!SWIG_IsOK(ecode2)) {
32203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32204 }
32205 arg2 = static_cast< wxStockGDI::Item >(val2);
32206 {
32207 PyThreadState* __tstate = wxPyBeginAllowThreads();
32208 result = (wxFont *)(arg1)->GetFont(arg2);
32209 wxPyEndAllowThreads(__tstate);
32210 if (PyErr_Occurred()) SWIG_fail;
32211 }
32212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32213 return resultobj;
32214fail:
32215 return NULL;
554f62e9
RD
32216}
32217
32218
50efceee
RD
32219SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32220 PyObject *obj;
32221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32222 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32223 return SWIG_Py_Void();
554f62e9
RD
32224}
32225
50efceee
RD
32226SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32227 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
32228}
32229
554f62e9
RD
32230SWIGINTERN int NullBitmap_set(PyObject *) {
32231 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32232 return 1;
32233}
32234
32235
32236SWIGINTERN PyObject *NullBitmap_get(void) {
32237 PyObject *pyobj = 0;
32238
32239 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32240 return pyobj;
32241}
32242
32243
32244SWIGINTERN int NullIcon_set(PyObject *) {
32245 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32246 return 1;
32247}
32248
32249
32250SWIGINTERN PyObject *NullIcon_get(void) {
32251 PyObject *pyobj = 0;
32252
32253 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32254 return pyobj;
32255}
32256
32257
32258SWIGINTERN int NullCursor_set(PyObject *) {
32259 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32260 return 1;
32261}
32262
32263
32264SWIGINTERN PyObject *NullCursor_get(void) {
32265 PyObject *pyobj = 0;
32266
32267 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32268 return pyobj;
32269}
32270
32271
32272SWIGINTERN int NullPen_set(PyObject *) {
32273 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32274 return 1;
32275}
32276
32277
32278SWIGINTERN PyObject *NullPen_get(void) {
32279 PyObject *pyobj = 0;
32280
32281 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32282 return pyobj;
32283}
32284
32285
32286SWIGINTERN int NullBrush_set(PyObject *) {
32287 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32288 return 1;
32289}
32290
32291
32292SWIGINTERN PyObject *NullBrush_get(void) {
32293 PyObject *pyobj = 0;
32294
32295 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32296 return pyobj;
32297}
32298
32299
32300SWIGINTERN int NullPalette_set(PyObject *) {
32301 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32302 return 1;
32303}
32304
32305
32306SWIGINTERN PyObject *NullPalette_get(void) {
32307 PyObject *pyobj = 0;
32308
32309 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32310 return pyobj;
32311}
32312
32313
32314SWIGINTERN int NullFont_set(PyObject *) {
32315 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32316 return 1;
32317}
32318
32319
32320SWIGINTERN PyObject *NullFont_get(void) {
32321 PyObject *pyobj = 0;
32322
32323 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32324 return pyobj;
32325}
32326
32327
32328SWIGINTERN int NullColour_set(PyObject *) {
32329 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32330 return 1;
32331}
32332
32333
32334SWIGINTERN PyObject *NullColour_get(void) {
32335 PyObject *pyobj = 0;
32336
32337 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32338 return pyobj;
32339}
32340
32341
50efceee 32342SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 32343 PyObject *resultobj = 0;
50efceee
RD
32344 wxGDIObjListBase *result = 0 ;
32345
32346 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32347 {
32348 PyThreadState* __tstate = wxPyBeginAllowThreads();
32349 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32350 wxPyEndAllowThreads(__tstate);
32351 if (PyErr_Occurred()) SWIG_fail;
32352 }
32353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32354 return resultobj;
32355fail:
32356 return NULL;
32357}
32358
32359
32360SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32361 PyObject *resultobj = 0;
32362 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
32363 void *argp1 = 0 ;
32364 int res1 = 0 ;
50efceee 32365 PyObject *swig_obj[1] ;
554f62e9 32366
50efceee
RD
32367 if (!args) SWIG_fail;
32368 swig_obj[0] = args;
32369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 32370 if (!SWIG_IsOK(res1)) {
50efceee 32371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 32372 }
50efceee 32373 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
32374 {
32375 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
32376 delete arg1;
32377
554f62e9
RD
32378 wxPyEndAllowThreads(__tstate);
32379 if (PyErr_Occurred()) SWIG_fail;
32380 }
32381 resultobj = SWIG_Py_Void();
32382 return resultobj;
32383fail:
32384 return NULL;
32385}
32386
32387
50efceee
RD
32388SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32389 PyObject *obj;
32390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32391 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32392 return SWIG_Py_Void();
32393}
32394
32395SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32396 return SWIG_Python_InitShadowInstance(args);
32397}
32398
554f62e9
RD
32399SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32400 PyObject *resultobj = 0;
32401 wxPenList *arg1 = (wxPenList *) 0 ;
32402 wxColour *arg2 = 0 ;
32403 int arg3 ;
32404 int arg4 ;
32405 wxPen *result = 0 ;
32406 void *argp1 = 0 ;
32407 int res1 = 0 ;
32408 wxColour temp2 ;
32409 int val3 ;
32410 int ecode3 = 0 ;
32411 int val4 ;
32412 int ecode4 = 0 ;
32413 PyObject * obj0 = 0 ;
32414 PyObject * obj1 = 0 ;
32415 PyObject * obj2 = 0 ;
32416 PyObject * obj3 = 0 ;
32417 char * kwnames[] = {
32418 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32419 };
32420
32421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32423 if (!SWIG_IsOK(res1)) {
32424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32425 }
32426 arg1 = reinterpret_cast< wxPenList * >(argp1);
32427 {
32428 arg2 = &temp2;
32429 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32430 }
32431 ecode3 = SWIG_AsVal_int(obj2, &val3);
32432 if (!SWIG_IsOK(ecode3)) {
32433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32434 }
32435 arg3 = static_cast< int >(val3);
32436 ecode4 = SWIG_AsVal_int(obj3, &val4);
32437 if (!SWIG_IsOK(ecode4)) {
32438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32439 }
32440 arg4 = static_cast< int >(val4);
32441 {
32442 PyThreadState* __tstate = wxPyBeginAllowThreads();
32443 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32444 wxPyEndAllowThreads(__tstate);
32445 if (PyErr_Occurred()) SWIG_fail;
32446 }
32447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32448 return resultobj;
32449fail:
32450 return NULL;
32451}
32452
32453
50efceee 32454SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32455 PyObject *resultobj = 0;
32456 wxPenList *arg1 = (wxPenList *) 0 ;
32457 wxPen *arg2 = (wxPen *) 0 ;
32458 void *argp1 = 0 ;
32459 int res1 = 0 ;
32460 void *argp2 = 0 ;
32461 int res2 = 0 ;
32462 PyObject * obj0 = 0 ;
32463 PyObject * obj1 = 0 ;
32464 char * kwnames[] = {
32465 (char *) "self",(char *) "pen", NULL
32466 };
32467
50efceee 32468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
32469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32470 if (!SWIG_IsOK(res1)) {
50efceee 32471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32472 }
32473 arg1 = reinterpret_cast< wxPenList * >(argp1);
32474 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32475 if (!SWIG_IsOK(res2)) {
50efceee 32476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
32477 }
32478 arg2 = reinterpret_cast< wxPen * >(argp2);
32479 {
32480 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32481 (arg1)->AddPen(arg2);
554f62e9
RD
32482 wxPyEndAllowThreads(__tstate);
32483 if (PyErr_Occurred()) SWIG_fail;
32484 }
32485 resultobj = SWIG_Py_Void();
32486 return resultobj;
32487fail:
32488 return NULL;
32489}
32490
32491
50efceee 32492SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32493 PyObject *resultobj = 0;
32494 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 32495 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
32496 void *argp1 = 0 ;
32497 int res1 = 0 ;
50efceee
RD
32498 void *argp2 = 0 ;
32499 int res2 = 0 ;
32500 PyObject * obj0 = 0 ;
32501 PyObject * obj1 = 0 ;
32502 char * kwnames[] = {
32503 (char *) "self",(char *) "pen", NULL
32504 };
554f62e9 32505
50efceee
RD
32506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 32508 if (!SWIG_IsOK(res1)) {
50efceee 32509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32510 }
32511 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
32512 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32513 if (!SWIG_IsOK(res2)) {
32514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32515 }
32516 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
32517 {
32518 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32519 (arg1)->RemovePen(arg2);
554f62e9
RD
32520 wxPyEndAllowThreads(__tstate);
32521 if (PyErr_Occurred()) SWIG_fail;
32522 }
50efceee 32523 resultobj = SWIG_Py_Void();
554f62e9
RD
32524 return resultobj;
32525fail:
32526 return NULL;
32527}
32528
32529
32530SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32531 PyObject *obj;
32532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32533 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32534 return SWIG_Py_Void();
32535}
32536
50efceee
RD
32537SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32538 PyObject *resultobj = 0;
32539 wxBrushList *arg1 = (wxBrushList *) 0 ;
32540 wxColour *arg2 = 0 ;
32541 int arg3 = (int) wxSOLID ;
32542 wxBrush *result = 0 ;
32543 void *argp1 = 0 ;
32544 int res1 = 0 ;
32545 wxColour temp2 ;
32546 int val3 ;
32547 int ecode3 = 0 ;
32548 PyObject * obj0 = 0 ;
32549 PyObject * obj1 = 0 ;
32550 PyObject * obj2 = 0 ;
32551 char * kwnames[] = {
32552 (char *) "self",(char *) "colour",(char *) "style", NULL
32553 };
32554
32555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32557 if (!SWIG_IsOK(res1)) {
32558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32559 }
32560 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32561 {
32562 arg2 = &temp2;
32563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32564 }
32565 if (obj2) {
32566 ecode3 = SWIG_AsVal_int(obj2, &val3);
32567 if (!SWIG_IsOK(ecode3)) {
32568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32569 }
32570 arg3 = static_cast< int >(val3);
32571 }
32572 {
32573 PyThreadState* __tstate = wxPyBeginAllowThreads();
32574 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32575 wxPyEndAllowThreads(__tstate);
32576 if (PyErr_Occurred()) SWIG_fail;
32577 }
32578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32579 return resultobj;
32580fail:
32581 return NULL;
32582}
32583
32584
554f62e9
RD
32585SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32586 PyObject *resultobj = 0;
32587 wxBrushList *arg1 = (wxBrushList *) 0 ;
32588 wxBrush *arg2 = (wxBrush *) 0 ;
32589 void *argp1 = 0 ;
32590 int res1 = 0 ;
32591 void *argp2 = 0 ;
32592 int res2 = 0 ;
32593 PyObject * obj0 = 0 ;
32594 PyObject * obj1 = 0 ;
32595 char * kwnames[] = {
32596 (char *) "self",(char *) "brush", NULL
32597 };
32598
32599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32601 if (!SWIG_IsOK(res1)) {
32602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32603 }
32604 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32605 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32606 if (!SWIG_IsOK(res2)) {
32607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32608 }
32609 arg2 = reinterpret_cast< wxBrush * >(argp2);
32610 {
32611 PyThreadState* __tstate = wxPyBeginAllowThreads();
32612 (arg1)->AddBrush(arg2);
32613 wxPyEndAllowThreads(__tstate);
32614 if (PyErr_Occurred()) SWIG_fail;
32615 }
32616 resultobj = SWIG_Py_Void();
32617 return resultobj;
32618fail:
32619 return NULL;
32620}
32621
32622
50efceee 32623SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32624 PyObject *resultobj = 0;
32625 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32626 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
32627 void *argp1 = 0 ;
32628 int res1 = 0 ;
50efceee
RD
32629 void *argp2 = 0 ;
32630 int res2 = 0 ;
32631 PyObject * obj0 = 0 ;
32632 PyObject * obj1 = 0 ;
32633 char * kwnames[] = {
32634 (char *) "self",(char *) "brush", NULL
32635 };
32636
32637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32639 if (!SWIG_IsOK(res1)) {
32640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32641 }
32642 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32644 if (!SWIG_IsOK(res2)) {
32645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32646 }
32647 arg2 = reinterpret_cast< wxBrush * >(argp2);
32648 {
32649 PyThreadState* __tstate = wxPyBeginAllowThreads();
32650 (arg1)->RemoveBrush(arg2);
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
32654 resultobj = SWIG_Py_Void();
32655 return resultobj;
32656fail:
32657 return NULL;
32658}
32659
32660
32661SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32662 PyObject *obj;
32663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32664 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32665 return SWIG_Py_Void();
32666}
32667
32668SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32669 PyObject *resultobj = 0;
32670 wxFontList *arg1 = (wxFontList *) 0 ;
32671 int arg2 ;
32672 int arg3 ;
32673 int arg4 ;
32674 int arg5 ;
32675 bool arg6 = (bool) false ;
32676 wxString const &arg7_defvalue = wxPyEmptyString ;
32677 wxString *arg7 = (wxString *) &arg7_defvalue ;
32678 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32679 wxFont *result = 0 ;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 int val2 ;
32683 int ecode2 = 0 ;
554f62e9
RD
32684 int val3 ;
32685 int ecode3 = 0 ;
50efceee
RD
32686 int val4 ;
32687 int ecode4 = 0 ;
32688 int val5 ;
32689 int ecode5 = 0 ;
32690 bool val6 ;
32691 int ecode6 = 0 ;
32692 bool temp7 = false ;
32693 int val8 ;
32694 int ecode8 = 0 ;
554f62e9
RD
32695 PyObject * obj0 = 0 ;
32696 PyObject * obj1 = 0 ;
32697 PyObject * obj2 = 0 ;
50efceee
RD
32698 PyObject * obj3 = 0 ;
32699 PyObject * obj4 = 0 ;
32700 PyObject * obj5 = 0 ;
32701 PyObject * obj6 = 0 ;
32702 PyObject * obj7 = 0 ;
554f62e9 32703 char * kwnames[] = {
50efceee 32704 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
32705 };
32706
50efceee
RD
32707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32709 if (!SWIG_IsOK(res1)) {
50efceee 32710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32711 }
50efceee
RD
32712 arg1 = reinterpret_cast< wxFontList * >(argp1);
32713 ecode2 = SWIG_AsVal_int(obj1, &val2);
32714 if (!SWIG_IsOK(ecode2)) {
32715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32716 }
32717 arg2 = static_cast< int >(val2);
32718 ecode3 = SWIG_AsVal_int(obj2, &val3);
32719 if (!SWIG_IsOK(ecode3)) {
32720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32721 }
32722 arg3 = static_cast< int >(val3);
32723 ecode4 = SWIG_AsVal_int(obj3, &val4);
32724 if (!SWIG_IsOK(ecode4)) {
32725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32726 }
32727 arg4 = static_cast< int >(val4);
32728 ecode5 = SWIG_AsVal_int(obj4, &val5);
32729 if (!SWIG_IsOK(ecode5)) {
32730 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32731 }
32732 arg5 = static_cast< int >(val5);
32733 if (obj5) {
32734 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32735 if (!SWIG_IsOK(ecode6)) {
32736 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32737 }
32738 arg6 = static_cast< bool >(val6);
554f62e9 32739 }
50efceee
RD
32740 if (obj6) {
32741 {
32742 arg7 = wxString_in_helper(obj6);
32743 if (arg7 == NULL) SWIG_fail;
32744 temp7 = true;
32745 }
32746 }
32747 if (obj7) {
32748 ecode8 = SWIG_AsVal_int(obj7, &val8);
32749 if (!SWIG_IsOK(ecode8)) {
32750 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 32751 }
50efceee 32752 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
32753 }
32754 {
32755 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32756 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
32757 wxPyEndAllowThreads(__tstate);
32758 if (PyErr_Occurred()) SWIG_fail;
32759 }
50efceee
RD
32760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32761 {
32762 if (temp7)
32763 delete arg7;
32764 }
554f62e9
RD
32765 return resultobj;
32766fail:
50efceee
RD
32767 {
32768 if (temp7)
32769 delete arg7;
32770 }
554f62e9
RD
32771 return NULL;
32772}
32773
32774
50efceee 32775SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 32776 PyObject *resultobj = 0;
50efceee
RD
32777 wxFontList *arg1 = (wxFontList *) 0 ;
32778 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
32779 void *argp1 = 0 ;
32780 int res1 = 0 ;
32781 void *argp2 = 0 ;
32782 int res2 = 0 ;
32783 PyObject * obj0 = 0 ;
32784 PyObject * obj1 = 0 ;
32785 char * kwnames[] = {
50efceee 32786 (char *) "self",(char *) "font", NULL
554f62e9
RD
32787 };
32788
50efceee
RD
32789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32791 if (!SWIG_IsOK(res1)) {
50efceee 32792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32793 }
50efceee
RD
32794 arg1 = reinterpret_cast< wxFontList * >(argp1);
32795 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 32796 if (!SWIG_IsOK(res2)) {
50efceee 32797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 32798 }
50efceee 32799 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
32800 {
32801 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32802 (arg1)->AddFont(arg2);
554f62e9
RD
32803 wxPyEndAllowThreads(__tstate);
32804 if (PyErr_Occurred()) SWIG_fail;
32805 }
32806 resultobj = SWIG_Py_Void();
32807 return resultobj;
32808fail:
32809 return NULL;
32810}
32811
32812
50efceee 32813SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 32814 PyObject *resultobj = 0;
50efceee
RD
32815 wxFontList *arg1 = (wxFontList *) 0 ;
32816 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
32817 void *argp1 = 0 ;
32818 int res1 = 0 ;
50efceee
RD
32819 void *argp2 = 0 ;
32820 int res2 = 0 ;
32821 PyObject * obj0 = 0 ;
32822 PyObject * obj1 = 0 ;
32823 char * kwnames[] = {
32824 (char *) "self",(char *) "font", NULL
32825 };
554f62e9 32826
50efceee
RD
32827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32829 if (!SWIG_IsOK(res1)) {
50efceee 32830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32831 }
50efceee
RD
32832 arg1 = reinterpret_cast< wxFontList * >(argp1);
32833 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32834 if (!SWIG_IsOK(res2)) {
32835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32836 }
32837 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
32838 {
32839 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32840 (arg1)->RemoveFont(arg2);
554f62e9
RD
32841 wxPyEndAllowThreads(__tstate);
32842 if (PyErr_Occurred()) SWIG_fail;
32843 }
50efceee 32844 resultobj = SWIG_Py_Void();
554f62e9
RD
32845 return resultobj;
32846fail:
32847 return NULL;
32848}
32849
32850
50efceee 32851SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
32852 PyObject *obj;
32853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32854 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
32855 return SWIG_Py_Void();
32856}
32857
32858SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32859 PyObject *resultobj = 0;
32860 wxColourDatabase *result = 0 ;
32861
32862 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32863 {
32864 if (!wxPyCheckForApp()) SWIG_fail;
32865 PyThreadState* __tstate = wxPyBeginAllowThreads();
32866 result = (wxColourDatabase *)new wxColourDatabase();
32867 wxPyEndAllowThreads(__tstate);
32868 if (PyErr_Occurred()) SWIG_fail;
32869 }
32870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32871 return resultobj;
32872fail:
32873 return NULL;
32874}
32875
32876
32877SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32878 PyObject *resultobj = 0;
32879 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32880 void *argp1 = 0 ;
32881 int res1 = 0 ;
32882 PyObject *swig_obj[1] ;
32883
32884 if (!args) SWIG_fail;
32885 swig_obj[0] = args;
32886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32887 if (!SWIG_IsOK(res1)) {
32888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32889 }
32890 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32891 {
32892 PyThreadState* __tstate = wxPyBeginAllowThreads();
32893 delete arg1;
32894
32895 wxPyEndAllowThreads(__tstate);
32896 if (PyErr_Occurred()) SWIG_fail;
32897 }
32898 resultobj = SWIG_Py_Void();
32899 return resultobj;
32900fail:
32901 return NULL;
32902}
32903
32904
32905SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32906 PyObject *resultobj = 0;
32907 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32908 wxString *arg2 = 0 ;
32909 wxColour result;
32910 void *argp1 = 0 ;
32911 int res1 = 0 ;
32912 bool temp2 = false ;
32913 PyObject * obj0 = 0 ;
32914 PyObject * obj1 = 0 ;
32915 char * kwnames[] = {
32916 (char *) "self",(char *) "name", NULL
32917 };
32918
32919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32921 if (!SWIG_IsOK(res1)) {
32922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32923 }
32924 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32925 {
32926 arg2 = wxString_in_helper(obj1);
32927 if (arg2 == NULL) SWIG_fail;
32928 temp2 = true;
32929 }
32930 {
32931 PyThreadState* __tstate = wxPyBeginAllowThreads();
32932 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32933 wxPyEndAllowThreads(__tstate);
32934 if (PyErr_Occurred()) SWIG_fail;
32935 }
32936 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32937 {
32938 if (temp2)
32939 delete arg2;
32940 }
32941 return resultobj;
32942fail:
32943 {
32944 if (temp2)
32945 delete arg2;
32946 }
32947 return NULL;
32948}
32949
32950
32951SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32952 PyObject *resultobj = 0;
32953 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32954 wxColour *arg2 = 0 ;
32955 wxString result;
32956 void *argp1 = 0 ;
32957 int res1 = 0 ;
32958 wxColour temp2 ;
32959 PyObject * obj0 = 0 ;
32960 PyObject * obj1 = 0 ;
32961 char * kwnames[] = {
32962 (char *) "self",(char *) "colour", NULL
32963 };
32964
32965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32967 if (!SWIG_IsOK(res1)) {
32968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32969 }
32970 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32971 {
32972 arg2 = &temp2;
32973 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32974 }
32975 {
32976 PyThreadState* __tstate = wxPyBeginAllowThreads();
32977 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32978 wxPyEndAllowThreads(__tstate);
32979 if (PyErr_Occurred()) SWIG_fail;
32980 }
32981 {
32982#if wxUSE_UNICODE
32983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32984#else
32985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32986#endif
32987 }
32988 return resultobj;
32989fail:
32990 return NULL;
32991}
32992
32993
32994SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32995 PyObject *resultobj = 0;
32996 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32997 wxString *arg2 = 0 ;
32998 wxColour *arg3 = 0 ;
32999 void *argp1 = 0 ;
33000 int res1 = 0 ;
33001 bool temp2 = false ;
33002 wxColour temp3 ;
33003 PyObject * obj0 = 0 ;
33004 PyObject * obj1 = 0 ;
33005 PyObject * obj2 = 0 ;
33006 char * kwnames[] = {
33007 (char *) "self",(char *) "name",(char *) "colour", NULL
33008 };
33009
33010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33012 if (!SWIG_IsOK(res1)) {
33013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33014 }
33015 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33016 {
33017 arg2 = wxString_in_helper(obj1);
33018 if (arg2 == NULL) SWIG_fail;
33019 temp2 = true;
33020 }
33021 {
33022 arg3 = &temp3;
33023 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33024 }
33025 {
33026 PyThreadState* __tstate = wxPyBeginAllowThreads();
33027 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33028 wxPyEndAllowThreads(__tstate);
33029 if (PyErr_Occurred()) SWIG_fail;
33030 }
33031 resultobj = SWIG_Py_Void();
33032 {
33033 if (temp2)
33034 delete arg2;
33035 }
33036 return resultobj;
33037fail:
33038 {
33039 if (temp2)
33040 delete arg2;
33041 }
33042 return NULL;
33043}
33044
33045
33046SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33047 PyObject *resultobj = 0;
33048 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33049 wxString *arg2 = 0 ;
33050 int arg3 ;
33051 int arg4 ;
33052 int arg5 ;
33053 void *argp1 = 0 ;
33054 int res1 = 0 ;
33055 bool temp2 = false ;
33056 int val3 ;
33057 int ecode3 = 0 ;
33058 int val4 ;
33059 int ecode4 = 0 ;
50efceee
RD
33060 int val5 ;
33061 int ecode5 = 0 ;
554f62e9
RD
33062 PyObject * obj0 = 0 ;
33063 PyObject * obj1 = 0 ;
33064 PyObject * obj2 = 0 ;
33065 PyObject * obj3 = 0 ;
33066 PyObject * obj4 = 0 ;
554f62e9 33067 char * kwnames[] = {
50efceee 33068 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
33069 };
33070
50efceee
RD
33071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 33073 if (!SWIG_IsOK(res1)) {
50efceee
RD
33074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33075 }
33076 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33077 {
33078 arg2 = wxString_in_helper(obj1);
33079 if (arg2 == NULL) SWIG_fail;
33080 temp2 = true;
554f62e9 33081 }
554f62e9
RD
33082 ecode3 = SWIG_AsVal_int(obj2, &val3);
33083 if (!SWIG_IsOK(ecode3)) {
50efceee 33084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
33085 }
33086 arg3 = static_cast< int >(val3);
33087 ecode4 = SWIG_AsVal_int(obj3, &val4);
33088 if (!SWIG_IsOK(ecode4)) {
50efceee 33089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
33090 }
33091 arg4 = static_cast< int >(val4);
33092 ecode5 = SWIG_AsVal_int(obj4, &val5);
33093 if (!SWIG_IsOK(ecode5)) {
50efceee 33094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
33095 }
33096 arg5 = static_cast< int >(val5);
554f62e9
RD
33097 {
33098 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33099 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
33100 wxPyEndAllowThreads(__tstate);
33101 if (PyErr_Occurred()) SWIG_fail;
33102 }
50efceee 33103 resultobj = SWIG_Py_Void();
554f62e9 33104 {
50efceee
RD
33105 if (temp2)
33106 delete arg2;
554f62e9
RD
33107 }
33108 return resultobj;
33109fail:
33110 {
50efceee
RD
33111 if (temp2)
33112 delete arg2;
554f62e9
RD
33113 }
33114 return NULL;
33115}
33116
33117
50efceee
RD
33118SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33119 PyObject *obj;
33120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33121 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33122 return SWIG_Py_Void();
33123}
33124
33125SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33126 return SWIG_Python_InitShadowInstance(args);
33127}
33128
33129SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33130 PyObject *resultobj = 0;
50efceee 33131 wxFontList *result = 0 ;
554f62e9 33132
50efceee 33133 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
33134 {
33135 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33136 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
33137 wxPyEndAllowThreads(__tstate);
33138 if (PyErr_Occurred()) SWIG_fail;
33139 }
50efceee 33140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
33141 return resultobj;
33142fail:
33143 return NULL;
33144}
33145
33146
50efceee 33147SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33148 PyObject *resultobj = 0;
50efceee 33149 wxPenList *result = 0 ;
554f62e9 33150
50efceee 33151 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
33152 {
33153 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33154 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
33155 wxPyEndAllowThreads(__tstate);
33156 if (PyErr_Occurred()) SWIG_fail;
33157 }
50efceee 33158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
33159 return resultobj;
33160fail:
33161 return NULL;
33162}
33163
33164
50efceee
RD
33165SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33166 PyObject *resultobj = 0;
33167 wxBrushList *result = 0 ;
554f62e9 33168
50efceee
RD
33169 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33170 {
33171 PyThreadState* __tstate = wxPyBeginAllowThreads();
33172 result = (wxBrushList *)_wxPyInitTheBrushList();
33173 wxPyEndAllowThreads(__tstate);
33174 if (PyErr_Occurred()) SWIG_fail;
33175 }
33176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33177 return resultobj;
33178fail:
33179 return NULL;
554f62e9
RD
33180}
33181
33182
50efceee
RD
33183SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33184 PyObject *resultobj = 0;
33185 wxColourDatabase *result = 0 ;
554f62e9 33186
50efceee
RD
33187 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33188 {
33189 PyThreadState* __tstate = wxPyBeginAllowThreads();
33190 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33191 wxPyEndAllowThreads(__tstate);
33192 if (PyErr_Occurred()) SWIG_fail;
33193 }
33194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33195 return resultobj;
33196fail:
33197 return NULL;
554f62e9
RD
33198}
33199
33200
33201SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33202 PyObject *resultobj = 0;
33203 wxEffects *result = 0 ;
33204
33205 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33206 {
33207 PyThreadState* __tstate = wxPyBeginAllowThreads();
33208 result = (wxEffects *)new wxEffects();
33209 wxPyEndAllowThreads(__tstate);
33210 if (PyErr_Occurred()) SWIG_fail;
33211 }
33212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33213 return resultobj;
33214fail:
33215 return NULL;
33216}
33217
33218
33219SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33220 PyObject *resultobj = 0;
33221 wxEffects *arg1 = (wxEffects *) 0 ;
33222 wxColour result;
33223 void *argp1 = 0 ;
33224 int res1 = 0 ;
33225 PyObject *swig_obj[1] ;
33226
33227 if (!args) SWIG_fail;
33228 swig_obj[0] = args;
33229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33230 if (!SWIG_IsOK(res1)) {
33231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33232 }
33233 arg1 = reinterpret_cast< wxEffects * >(argp1);
33234 {
33235 PyThreadState* __tstate = wxPyBeginAllowThreads();
33236 result = ((wxEffects const *)arg1)->GetHighlightColour();
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33241 return resultobj;
33242fail:
33243 return NULL;
33244}
33245
33246
33247SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33248 PyObject *resultobj = 0;
33249 wxEffects *arg1 = (wxEffects *) 0 ;
33250 wxColour result;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 PyObject *swig_obj[1] ;
33254
33255 if (!args) SWIG_fail;
33256 swig_obj[0] = args;
33257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33258 if (!SWIG_IsOK(res1)) {
33259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33260 }
33261 arg1 = reinterpret_cast< wxEffects * >(argp1);
33262 {
33263 PyThreadState* __tstate = wxPyBeginAllowThreads();
33264 result = ((wxEffects const *)arg1)->GetLightShadow();
33265 wxPyEndAllowThreads(__tstate);
33266 if (PyErr_Occurred()) SWIG_fail;
33267 }
33268 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33269 return resultobj;
33270fail:
33271 return NULL;
33272}
33273
33274
33275SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33276 PyObject *resultobj = 0;
33277 wxEffects *arg1 = (wxEffects *) 0 ;
33278 wxColour result;
33279 void *argp1 = 0 ;
33280 int res1 = 0 ;
33281 PyObject *swig_obj[1] ;
33282
33283 if (!args) SWIG_fail;
33284 swig_obj[0] = args;
33285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33286 if (!SWIG_IsOK(res1)) {
33287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33288 }
33289 arg1 = reinterpret_cast< wxEffects * >(argp1);
33290 {
33291 PyThreadState* __tstate = wxPyBeginAllowThreads();
33292 result = ((wxEffects const *)arg1)->GetFaceColour();
33293 wxPyEndAllowThreads(__tstate);
33294 if (PyErr_Occurred()) SWIG_fail;
33295 }
33296 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33297 return resultobj;
33298fail:
33299 return NULL;
33300}
33301
33302
33303SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33304 PyObject *resultobj = 0;
33305 wxEffects *arg1 = (wxEffects *) 0 ;
33306 wxColour result;
33307 void *argp1 = 0 ;
33308 int res1 = 0 ;
33309 PyObject *swig_obj[1] ;
33310
33311 if (!args) SWIG_fail;
33312 swig_obj[0] = args;
33313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33314 if (!SWIG_IsOK(res1)) {
33315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33316 }
33317 arg1 = reinterpret_cast< wxEffects * >(argp1);
33318 {
33319 PyThreadState* __tstate = wxPyBeginAllowThreads();
33320 result = ((wxEffects const *)arg1)->GetMediumShadow();
33321 wxPyEndAllowThreads(__tstate);
33322 if (PyErr_Occurred()) SWIG_fail;
33323 }
33324 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33325 return resultobj;
33326fail:
33327 return NULL;
33328}
33329
33330
33331SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33332 PyObject *resultobj = 0;
33333 wxEffects *arg1 = (wxEffects *) 0 ;
33334 wxColour result;
33335 void *argp1 = 0 ;
33336 int res1 = 0 ;
33337 PyObject *swig_obj[1] ;
33338
33339 if (!args) SWIG_fail;
33340 swig_obj[0] = args;
33341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33342 if (!SWIG_IsOK(res1)) {
33343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33344 }
33345 arg1 = reinterpret_cast< wxEffects * >(argp1);
33346 {
33347 PyThreadState* __tstate = wxPyBeginAllowThreads();
33348 result = ((wxEffects const *)arg1)->GetDarkShadow();
33349 wxPyEndAllowThreads(__tstate);
33350 if (PyErr_Occurred()) SWIG_fail;
33351 }
33352 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33353 return resultobj;
33354fail:
33355 return NULL;
33356}
33357
33358
33359SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33360 PyObject *resultobj = 0;
33361 wxEffects *arg1 = (wxEffects *) 0 ;
33362 wxColour *arg2 = 0 ;
33363 void *argp1 = 0 ;
33364 int res1 = 0 ;
33365 wxColour temp2 ;
33366 PyObject * obj0 = 0 ;
33367 PyObject * obj1 = 0 ;
33368 char * kwnames[] = {
33369 (char *) "self",(char *) "c", NULL
33370 };
33371
33372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33374 if (!SWIG_IsOK(res1)) {
33375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33376 }
33377 arg1 = reinterpret_cast< wxEffects * >(argp1);
33378 {
33379 arg2 = &temp2;
33380 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33381 }
33382 {
33383 PyThreadState* __tstate = wxPyBeginAllowThreads();
33384 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33385 wxPyEndAllowThreads(__tstate);
33386 if (PyErr_Occurred()) SWIG_fail;
33387 }
33388 resultobj = SWIG_Py_Void();
33389 return resultobj;
33390fail:
33391 return NULL;
33392}
33393
33394
33395SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33396 PyObject *resultobj = 0;
33397 wxEffects *arg1 = (wxEffects *) 0 ;
33398 wxColour *arg2 = 0 ;
33399 void *argp1 = 0 ;
33400 int res1 = 0 ;
33401 wxColour temp2 ;
33402 PyObject * obj0 = 0 ;
33403 PyObject * obj1 = 0 ;
33404 char * kwnames[] = {
33405 (char *) "self",(char *) "c", NULL
33406 };
33407
33408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33410 if (!SWIG_IsOK(res1)) {
33411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33412 }
33413 arg1 = reinterpret_cast< wxEffects * >(argp1);
33414 {
33415 arg2 = &temp2;
33416 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33417 }
33418 {
33419 PyThreadState* __tstate = wxPyBeginAllowThreads();
33420 (arg1)->SetLightShadow((wxColour const &)*arg2);
33421 wxPyEndAllowThreads(__tstate);
33422 if (PyErr_Occurred()) SWIG_fail;
33423 }
33424 resultobj = SWIG_Py_Void();
33425 return resultobj;
33426fail:
33427 return NULL;
33428}
33429
33430
33431SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33432 PyObject *resultobj = 0;
33433 wxEffects *arg1 = (wxEffects *) 0 ;
33434 wxColour *arg2 = 0 ;
33435 void *argp1 = 0 ;
33436 int res1 = 0 ;
33437 wxColour temp2 ;
33438 PyObject * obj0 = 0 ;
33439 PyObject * obj1 = 0 ;
33440 char * kwnames[] = {
33441 (char *) "self",(char *) "c", NULL
33442 };
33443
33444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33446 if (!SWIG_IsOK(res1)) {
33447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33448 }
33449 arg1 = reinterpret_cast< wxEffects * >(argp1);
33450 {
33451 arg2 = &temp2;
33452 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33453 }
33454 {
33455 PyThreadState* __tstate = wxPyBeginAllowThreads();
33456 (arg1)->SetFaceColour((wxColour const &)*arg2);
33457 wxPyEndAllowThreads(__tstate);
33458 if (PyErr_Occurred()) SWIG_fail;
33459 }
33460 resultobj = SWIG_Py_Void();
33461 return resultobj;
33462fail:
33463 return NULL;
33464}
33465
33466
33467SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33468 PyObject *resultobj = 0;
33469 wxEffects *arg1 = (wxEffects *) 0 ;
33470 wxColour *arg2 = 0 ;
33471 void *argp1 = 0 ;
33472 int res1 = 0 ;
33473 wxColour temp2 ;
33474 PyObject * obj0 = 0 ;
33475 PyObject * obj1 = 0 ;
33476 char * kwnames[] = {
33477 (char *) "self",(char *) "c", NULL
33478 };
33479
33480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33482 if (!SWIG_IsOK(res1)) {
33483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33484 }
33485 arg1 = reinterpret_cast< wxEffects * >(argp1);
33486 {
33487 arg2 = &temp2;
33488 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33489 }
33490 {
33491 PyThreadState* __tstate = wxPyBeginAllowThreads();
33492 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33493 wxPyEndAllowThreads(__tstate);
33494 if (PyErr_Occurred()) SWIG_fail;
33495 }
33496 resultobj = SWIG_Py_Void();
33497 return resultobj;
33498fail:
33499 return NULL;
33500}
33501
33502
33503SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33504 PyObject *resultobj = 0;
33505 wxEffects *arg1 = (wxEffects *) 0 ;
33506 wxColour *arg2 = 0 ;
33507 void *argp1 = 0 ;
33508 int res1 = 0 ;
33509 wxColour temp2 ;
33510 PyObject * obj0 = 0 ;
33511 PyObject * obj1 = 0 ;
33512 char * kwnames[] = {
33513 (char *) "self",(char *) "c", NULL
33514 };
33515
33516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33518 if (!SWIG_IsOK(res1)) {
33519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33520 }
33521 arg1 = reinterpret_cast< wxEffects * >(argp1);
33522 {
33523 arg2 = &temp2;
33524 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33525 }
33526 {
33527 PyThreadState* __tstate = wxPyBeginAllowThreads();
33528 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33529 wxPyEndAllowThreads(__tstate);
33530 if (PyErr_Occurred()) SWIG_fail;
33531 }
33532 resultobj = SWIG_Py_Void();
33533 return resultobj;
33534fail:
33535 return NULL;
33536}
33537
33538
33539SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33540 PyObject *resultobj = 0;
33541 wxEffects *arg1 = (wxEffects *) 0 ;
33542 wxColour *arg2 = 0 ;
33543 wxColour *arg3 = 0 ;
33544 wxColour *arg4 = 0 ;
33545 wxColour *arg5 = 0 ;
33546 wxColour *arg6 = 0 ;
33547 void *argp1 = 0 ;
33548 int res1 = 0 ;
33549 wxColour temp2 ;
33550 wxColour temp3 ;
33551 wxColour temp4 ;
33552 wxColour temp5 ;
33553 wxColour temp6 ;
33554 PyObject * obj0 = 0 ;
33555 PyObject * obj1 = 0 ;
33556 PyObject * obj2 = 0 ;
33557 PyObject * obj3 = 0 ;
33558 PyObject * obj4 = 0 ;
33559 PyObject * obj5 = 0 ;
33560 char * kwnames[] = {
33561 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33562 };
33563
33564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33566 if (!SWIG_IsOK(res1)) {
33567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33568 }
33569 arg1 = reinterpret_cast< wxEffects * >(argp1);
33570 {
33571 arg2 = &temp2;
33572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33573 }
33574 {
33575 arg3 = &temp3;
33576 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33577 }
33578 {
33579 arg4 = &temp4;
33580 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33581 }
33582 {
33583 arg5 = &temp5;
33584 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33585 }
33586 {
33587 arg6 = &temp6;
33588 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33589 }
33590 {
33591 PyThreadState* __tstate = wxPyBeginAllowThreads();
33592 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33593 wxPyEndAllowThreads(__tstate);
33594 if (PyErr_Occurred()) SWIG_fail;
33595 }
33596 resultobj = SWIG_Py_Void();
33597 return resultobj;
33598fail:
33599 return NULL;
33600}
33601
33602
33603SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33604 PyObject *resultobj = 0;
33605 wxEffects *arg1 = (wxEffects *) 0 ;
33606 wxDC *arg2 = 0 ;
33607 wxRect *arg3 = 0 ;
33608 int arg4 = (int) 1 ;
33609 void *argp1 = 0 ;
33610 int res1 = 0 ;
33611 void *argp2 = 0 ;
33612 int res2 = 0 ;
33613 wxRect temp3 ;
33614 int val4 ;
33615 int ecode4 = 0 ;
33616 PyObject * obj0 = 0 ;
33617 PyObject * obj1 = 0 ;
33618 PyObject * obj2 = 0 ;
33619 PyObject * obj3 = 0 ;
33620 char * kwnames[] = {
33621 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33622 };
33623
33624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33626 if (!SWIG_IsOK(res1)) {
33627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33628 }
33629 arg1 = reinterpret_cast< wxEffects * >(argp1);
33630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33631 if (!SWIG_IsOK(res2)) {
33632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33633 }
33634 if (!argp2) {
33635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33636 }
33637 arg2 = reinterpret_cast< wxDC * >(argp2);
33638 {
33639 arg3 = &temp3;
33640 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33641 }
33642 if (obj3) {
33643 ecode4 = SWIG_AsVal_int(obj3, &val4);
33644 if (!SWIG_IsOK(ecode4)) {
33645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33646 }
33647 arg4 = static_cast< int >(val4);
33648 }
33649 {
33650 PyThreadState* __tstate = wxPyBeginAllowThreads();
33651 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33652 wxPyEndAllowThreads(__tstate);
33653 if (PyErr_Occurred()) SWIG_fail;
33654 }
33655 resultobj = SWIG_Py_Void();
33656 return resultobj;
33657fail:
33658 return NULL;
33659}
33660
33661
33662SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33663 PyObject *resultobj = 0;
33664 wxEffects *arg1 = (wxEffects *) 0 ;
33665 wxRect *arg2 = 0 ;
33666 wxDC *arg3 = 0 ;
33667 wxBitmap *arg4 = 0 ;
33668 bool result;
33669 void *argp1 = 0 ;
33670 int res1 = 0 ;
33671 wxRect temp2 ;
33672 void *argp3 = 0 ;
33673 int res3 = 0 ;
33674 void *argp4 = 0 ;
33675 int res4 = 0 ;
33676 PyObject * obj0 = 0 ;
33677 PyObject * obj1 = 0 ;
33678 PyObject * obj2 = 0 ;
33679 PyObject * obj3 = 0 ;
33680 char * kwnames[] = {
33681 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33682 };
33683
33684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33686 if (!SWIG_IsOK(res1)) {
33687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33688 }
33689 arg1 = reinterpret_cast< wxEffects * >(argp1);
33690 {
33691 arg2 = &temp2;
33692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33693 }
33694 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33695 if (!SWIG_IsOK(res3)) {
33696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33697 }
33698 if (!argp3) {
33699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33700 }
33701 arg3 = reinterpret_cast< wxDC * >(argp3);
33702 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33703 if (!SWIG_IsOK(res4)) {
33704 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33705 }
33706 if (!argp4) {
33707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33708 }
33709 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33710 {
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 {
33717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33718 }
33719 return resultobj;
33720fail:
33721 return NULL;
33722}
33723
33724
33725SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33726 PyObject *obj;
33727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33728 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33729 return SWIG_Py_Void();
33730}
33731
33732SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33733 return SWIG_Python_InitShadowInstance(args);
33734}
33735
33736SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33737 PyObject *resultobj = 0;
33738 int arg1 ;
33739 int arg2 ;
33740 bool arg3 ;
33741 wxSplitterRenderParams *result = 0 ;
33742 int val1 ;
33743 int ecode1 = 0 ;
33744 int val2 ;
33745 int ecode2 = 0 ;
33746 bool val3 ;
33747 int ecode3 = 0 ;
33748 PyObject * obj0 = 0 ;
33749 PyObject * obj1 = 0 ;
33750 PyObject * obj2 = 0 ;
33751 char * kwnames[] = {
33752 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33753 };
33754
33755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33756 ecode1 = SWIG_AsVal_int(obj0, &val1);
33757 if (!SWIG_IsOK(ecode1)) {
33758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33759 }
33760 arg1 = static_cast< int >(val1);
33761 ecode2 = SWIG_AsVal_int(obj1, &val2);
33762 if (!SWIG_IsOK(ecode2)) {
33763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33764 }
33765 arg2 = static_cast< int >(val2);
33766 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33767 if (!SWIG_IsOK(ecode3)) {
33768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33769 }
33770 arg3 = static_cast< bool >(val3);
33771 {
33772 PyThreadState* __tstate = wxPyBeginAllowThreads();
33773 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33774 wxPyEndAllowThreads(__tstate);
33775 if (PyErr_Occurred()) SWIG_fail;
33776 }
33777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33778 return resultobj;
33779fail:
33780 return NULL;
33781}
33782
33783
33784SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33785 PyObject *resultobj = 0;
33786 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33787 void *argp1 = 0 ;
33788 int res1 = 0 ;
33789 PyObject *swig_obj[1] ;
33790
33791 if (!args) SWIG_fail;
33792 swig_obj[0] = args;
33793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33794 if (!SWIG_IsOK(res1)) {
33795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33796 }
33797 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33798 {
33799 PyThreadState* __tstate = wxPyBeginAllowThreads();
33800 delete arg1;
33801
33802 wxPyEndAllowThreads(__tstate);
33803 if (PyErr_Occurred()) SWIG_fail;
33804 }
33805 resultobj = SWIG_Py_Void();
33806 return resultobj;
33807fail:
33808 return NULL;
33809}
33810
33811
33812SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33813 PyObject *resultobj = 0;
33814 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33815 int result;
33816 void *argp1 = 0 ;
33817 int res1 = 0 ;
33818 PyObject *swig_obj[1] ;
33819
33820 if (!args) SWIG_fail;
33821 swig_obj[0] = args;
33822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33823 if (!SWIG_IsOK(res1)) {
33824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33825 }
33826 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33827 result = (int)(int) ((arg1)->widthSash);
33828 resultobj = SWIG_From_int(static_cast< int >(result));
33829 return resultobj;
33830fail:
33831 return NULL;
33832}
33833
33834
33835SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33836 PyObject *resultobj = 0;
33837 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33838 int result;
33839 void *argp1 = 0 ;
33840 int res1 = 0 ;
33841 PyObject *swig_obj[1] ;
33842
33843 if (!args) SWIG_fail;
33844 swig_obj[0] = args;
33845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33846 if (!SWIG_IsOK(res1)) {
33847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33848 }
33849 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33850 result = (int)(int) ((arg1)->border);
33851 resultobj = SWIG_From_int(static_cast< int >(result));
33852 return resultobj;
33853fail:
33854 return NULL;
33855}
33856
33857
33858SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33859 PyObject *resultobj = 0;
33860 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33861 bool result;
33862 void *argp1 = 0 ;
33863 int res1 = 0 ;
33864 PyObject *swig_obj[1] ;
33865
33866 if (!args) SWIG_fail;
33867 swig_obj[0] = args;
33868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33869 if (!SWIG_IsOK(res1)) {
33870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33871 }
33872 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33873 result = (bool)(bool) ((arg1)->isHotSensitive);
33874 resultobj = SWIG_From_bool(static_cast< bool >(result));
33875 return resultobj;
33876fail:
33877 return NULL;
33878}
33879
33880
33881SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33882 PyObject *obj;
33883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33884 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33885 return SWIG_Py_Void();
33886}
33887
33888SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33889 return SWIG_Python_InitShadowInstance(args);
33890}
33891
33d6fd3b
RD
33892SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33893 PyObject *resultobj = 0;
33894 wxHeaderButtonParams *result = 0 ;
33895
33896 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33897 {
33898 PyThreadState* __tstate = wxPyBeginAllowThreads();
33899 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33900 wxPyEndAllowThreads(__tstate);
33901 if (PyErr_Occurred()) SWIG_fail;
33902 }
33903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33904 return resultobj;
33905fail:
33906 return NULL;
33907}
33908
33909
33910SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33911 PyObject *resultobj = 0;
33912 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33913 void *argp1 = 0 ;
33914 int res1 = 0 ;
33915 PyObject *swig_obj[1] ;
33916
33917 if (!args) SWIG_fail;
33918 swig_obj[0] = args;
33919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33920 if (!SWIG_IsOK(res1)) {
33921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33922 }
33923 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33924 {
33925 PyThreadState* __tstate = wxPyBeginAllowThreads();
33926 delete arg1;
33927
33928 wxPyEndAllowThreads(__tstate);
33929 if (PyErr_Occurred()) SWIG_fail;
33930 }
33931 resultobj = SWIG_Py_Void();
33932 return resultobj;
33933fail:
33934 return NULL;
33935}
33936
33937
33938SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33939 PyObject *resultobj = 0;
33940 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33941 wxColour *arg2 = (wxColour *) 0 ;
33942 void *argp1 = 0 ;
33943 int res1 = 0 ;
33944 wxColour temp2 ;
33945 PyObject *swig_obj[2] ;
33946
33947 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33949 if (!SWIG_IsOK(res1)) {
33950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33951 }
33952 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33953 {
33954 arg2 = &temp2;
33955 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33956 }
33957 if (arg1) (arg1)->m_arrowColour = *arg2;
33958
33959 resultobj = SWIG_Py_Void();
33960 return resultobj;
33961fail:
33962 return NULL;
33963}
33964
33965
33966SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33967 PyObject *resultobj = 0;
33968 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33969 wxColour *result = 0 ;
33970 void *argp1 = 0 ;
33971 int res1 = 0 ;
33972 PyObject *swig_obj[1] ;
33973
33974 if (!args) SWIG_fail;
33975 swig_obj[0] = args;
33976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33977 if (!SWIG_IsOK(res1)) {
33978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33979 }
33980 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33981 result = (wxColour *)& ((arg1)->m_arrowColour);
33982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33983 return resultobj;
33984fail:
33985 return NULL;
33986}
33987
33988
33989SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33990 PyObject *resultobj = 0;
33991 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33992 wxColour *arg2 = (wxColour *) 0 ;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 wxColour temp2 ;
33996 PyObject *swig_obj[2] ;
33997
33998 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34002 }
34003 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34004 {
34005 arg2 = &temp2;
34006 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34007 }
34008 if (arg1) (arg1)->m_selectionColour = *arg2;
34009
34010 resultobj = SWIG_Py_Void();
34011 return resultobj;
34012fail:
34013 return NULL;
34014}
34015
34016
34017SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34018 PyObject *resultobj = 0;
34019 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34020 wxColour *result = 0 ;
34021 void *argp1 = 0 ;
34022 int res1 = 0 ;
34023 PyObject *swig_obj[1] ;
34024
34025 if (!args) SWIG_fail;
34026 swig_obj[0] = args;
34027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34028 if (!SWIG_IsOK(res1)) {
34029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34030 }
34031 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34032 result = (wxColour *)& ((arg1)->m_selectionColour);
34033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34034 return resultobj;
34035fail:
34036 return NULL;
34037}
34038
34039
34040SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34041 PyObject *resultobj = 0;
34042 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34043 wxString *arg2 = (wxString *) 0 ;
34044 void *argp1 = 0 ;
34045 int res1 = 0 ;
34046 bool temp2 = false ;
34047 PyObject *swig_obj[2] ;
34048
34049 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34051 if (!SWIG_IsOK(res1)) {
34052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34053 }
34054 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34055 {
34056 arg2 = wxString_in_helper(swig_obj[1]);
34057 if (arg2 == NULL) SWIG_fail;
34058 temp2 = true;
34059 }
34060 if (arg1) (arg1)->m_labelText = *arg2;
34061
34062 resultobj = SWIG_Py_Void();
34063 {
34064 if (temp2)
34065 delete arg2;
34066 }
34067 return resultobj;
34068fail:
34069 {
34070 if (temp2)
34071 delete arg2;
34072 }
34073 return NULL;
34074}
34075
34076
34077SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34078 PyObject *resultobj = 0;
34079 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34080 wxString *result = 0 ;
34081 void *argp1 = 0 ;
34082 int res1 = 0 ;
34083 PyObject *swig_obj[1] ;
34084
34085 if (!args) SWIG_fail;
34086 swig_obj[0] = args;
34087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34088 if (!SWIG_IsOK(res1)) {
34089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34090 }
34091 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34092 result = (wxString *)& ((arg1)->m_labelText);
34093 {
34094#if wxUSE_UNICODE
34095 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34096#else
34097 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34098#endif
34099 }
34100 return resultobj;
34101fail:
34102 return NULL;
34103}
34104
34105
34106SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34107 PyObject *resultobj = 0;
34108 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34109 wxFont *arg2 = (wxFont *) 0 ;
34110 void *argp1 = 0 ;
34111 int res1 = 0 ;
34112 void *argp2 = 0 ;
34113 int res2 = 0 ;
34114 PyObject *swig_obj[2] ;
34115
34116 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34118 if (!SWIG_IsOK(res1)) {
34119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34120 }
34121 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34122 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34123 if (!SWIG_IsOK(res2)) {
34124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34125 }
34126 arg2 = reinterpret_cast< wxFont * >(argp2);
34127 if (arg1) (arg1)->m_labelFont = *arg2;
34128
34129 resultobj = SWIG_Py_Void();
34130 return resultobj;
34131fail:
34132 return NULL;
34133}
34134
34135
34136SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34137 PyObject *resultobj = 0;
34138 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34139 wxFont *result = 0 ;
34140 void *argp1 = 0 ;
34141 int res1 = 0 ;
34142 PyObject *swig_obj[1] ;
34143
34144 if (!args) SWIG_fail;
34145 swig_obj[0] = args;
34146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34147 if (!SWIG_IsOK(res1)) {
34148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34149 }
34150 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34151 result = (wxFont *)& ((arg1)->m_labelFont);
34152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34153 return resultobj;
34154fail:
34155 return NULL;
34156}
34157
34158
34159SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34160 PyObject *resultobj = 0;
34161 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34162 wxColour *arg2 = (wxColour *) 0 ;
34163 void *argp1 = 0 ;
34164 int res1 = 0 ;
34165 wxColour temp2 ;
34166 PyObject *swig_obj[2] ;
34167
34168 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34170 if (!SWIG_IsOK(res1)) {
34171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34172 }
34173 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34174 {
34175 arg2 = &temp2;
34176 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34177 }
34178 if (arg1) (arg1)->m_labelColour = *arg2;
34179
34180 resultobj = SWIG_Py_Void();
34181 return resultobj;
34182fail:
34183 return NULL;
34184}
34185
34186
34187SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34188 PyObject *resultobj = 0;
34189 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34190 wxColour *result = 0 ;
34191 void *argp1 = 0 ;
34192 int res1 = 0 ;
34193 PyObject *swig_obj[1] ;
34194
34195 if (!args) SWIG_fail;
34196 swig_obj[0] = args;
34197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34198 if (!SWIG_IsOK(res1)) {
34199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34200 }
34201 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34202 result = (wxColour *)& ((arg1)->m_labelColour);
34203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34204 return resultobj;
34205fail:
34206 return NULL;
34207}
34208
34209
34210SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34211 PyObject *resultobj = 0;
34212 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34213 wxBitmap *arg2 = (wxBitmap *) 0 ;
34214 void *argp1 = 0 ;
34215 int res1 = 0 ;
34216 void *argp2 = 0 ;
34217 int res2 = 0 ;
34218 PyObject *swig_obj[2] ;
34219
34220 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34222 if (!SWIG_IsOK(res1)) {
34223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34224 }
34225 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34226 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34227 if (!SWIG_IsOK(res2)) {
34228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34229 }
34230 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34231 if (arg1) (arg1)->m_labelBitmap = *arg2;
34232
34233 resultobj = SWIG_Py_Void();
34234 return resultobj;
34235fail:
34236 return NULL;
34237}
34238
34239
34240SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34241 PyObject *resultobj = 0;
34242 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34243 wxBitmap *result = 0 ;
34244 void *argp1 = 0 ;
34245 int res1 = 0 ;
34246 PyObject *swig_obj[1] ;
34247
34248 if (!args) SWIG_fail;
34249 swig_obj[0] = args;
34250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34251 if (!SWIG_IsOK(res1)) {
34252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34253 }
34254 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34255 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34257 return resultobj;
34258fail:
34259 return NULL;
34260}
34261
34262
34263SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34264 PyObject *resultobj = 0;
34265 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34266 int arg2 ;
34267 void *argp1 = 0 ;
34268 int res1 = 0 ;
34269 int val2 ;
34270 int ecode2 = 0 ;
34271 PyObject *swig_obj[2] ;
34272
34273 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34275 if (!SWIG_IsOK(res1)) {
34276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34277 }
34278 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34279 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34280 if (!SWIG_IsOK(ecode2)) {
34281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34282 }
34283 arg2 = static_cast< int >(val2);
34284 if (arg1) (arg1)->m_labelAlignment = arg2;
34285
34286 resultobj = SWIG_Py_Void();
34287 return resultobj;
34288fail:
34289 return NULL;
34290}
34291
34292
34293SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34294 PyObject *resultobj = 0;
34295 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34296 int result;
34297 void *argp1 = 0 ;
34298 int res1 = 0 ;
34299 PyObject *swig_obj[1] ;
34300
34301 if (!args) SWIG_fail;
34302 swig_obj[0] = args;
34303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34304 if (!SWIG_IsOK(res1)) {
34305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34306 }
34307 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34308 result = (int) ((arg1)->m_labelAlignment);
34309 resultobj = SWIG_From_int(static_cast< int >(result));
34310 return resultobj;
34311fail:
34312 return NULL;
34313}
34314
34315
34316SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34317 PyObject *obj;
34318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34319 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34320 return SWIG_Py_Void();
34321}
34322
34323SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34324 return SWIG_Python_InitShadowInstance(args);
34325}
34326
554f62e9
RD
34327SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34328 PyObject *resultobj = 0;
34329 int arg1 ;
34330 int arg2 ;
34331 wxRendererVersion *result = 0 ;
34332 int val1 ;
34333 int ecode1 = 0 ;
34334 int val2 ;
34335 int ecode2 = 0 ;
34336 PyObject * obj0 = 0 ;
34337 PyObject * obj1 = 0 ;
34338 char * kwnames[] = {
34339 (char *) "version_",(char *) "age_", NULL
34340 };
34341
34342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34343 ecode1 = SWIG_AsVal_int(obj0, &val1);
34344 if (!SWIG_IsOK(ecode1)) {
34345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34346 }
34347 arg1 = static_cast< int >(val1);
34348 ecode2 = SWIG_AsVal_int(obj1, &val2);
34349 if (!SWIG_IsOK(ecode2)) {
34350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34351 }
34352 arg2 = static_cast< int >(val2);
34353 {
34354 PyThreadState* __tstate = wxPyBeginAllowThreads();
34355 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34356 wxPyEndAllowThreads(__tstate);
34357 if (PyErr_Occurred()) SWIG_fail;
34358 }
34359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34360 return resultobj;
34361fail:
34362 return NULL;
34363}
34364
34365
34366SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34367 PyObject *resultobj = 0;
34368 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34369 void *argp1 = 0 ;
34370 int res1 = 0 ;
34371 PyObject *swig_obj[1] ;
34372
34373 if (!args) SWIG_fail;
34374 swig_obj[0] = args;
34375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34376 if (!SWIG_IsOK(res1)) {
34377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34378 }
34379 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34380 {
34381 PyThreadState* __tstate = wxPyBeginAllowThreads();
34382 delete arg1;
34383
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_Py_Void();
34388 return resultobj;
34389fail:
34390 return NULL;
34391}
34392
34393
34394SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 wxRendererVersion *arg1 = 0 ;
34397 bool result;
34398 void *argp1 = 0 ;
34399 int res1 = 0 ;
34400 PyObject * obj0 = 0 ;
34401 char * kwnames[] = {
34402 (char *) "ver", NULL
34403 };
34404
34405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34406 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34407 if (!SWIG_IsOK(res1)) {
34408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34409 }
34410 if (!argp1) {
34411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34412 }
34413 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34414 {
34415 PyThreadState* __tstate = wxPyBeginAllowThreads();
34416 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34417 wxPyEndAllowThreads(__tstate);
34418 if (PyErr_Occurred()) SWIG_fail;
34419 }
34420 {
34421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34422 }
34423 return resultobj;
34424fail:
34425 return NULL;
34426}
34427
34428
34429SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34430 PyObject *resultobj = 0;
34431 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34432 int result;
34433 void *argp1 = 0 ;
34434 int res1 = 0 ;
34435 PyObject *swig_obj[1] ;
34436
34437 if (!args) SWIG_fail;
34438 swig_obj[0] = args;
34439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34440 if (!SWIG_IsOK(res1)) {
34441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34442 }
34443 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34444 result = (int)(int) ((arg1)->version);
34445 resultobj = SWIG_From_int(static_cast< int >(result));
34446 return resultobj;
34447fail:
34448 return NULL;
34449}
34450
34451
34452SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34453 PyObject *resultobj = 0;
34454 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34455 int result;
34456 void *argp1 = 0 ;
34457 int res1 = 0 ;
34458 PyObject *swig_obj[1] ;
34459
34460 if (!args) SWIG_fail;
34461 swig_obj[0] = args;
34462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34463 if (!SWIG_IsOK(res1)) {
34464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34465 }
34466 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34467 result = (int)(int) ((arg1)->age);
34468 resultobj = SWIG_From_int(static_cast< int >(result));
34469 return resultobj;
34470fail:
34471 return NULL;
34472}
34473
34474
34475SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34476 PyObject *obj;
34477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34478 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34479 return SWIG_Py_Void();
34480}
34481
34482SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34483 return SWIG_Python_InitShadowInstance(args);
34484}
34485
34486SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34487 PyObject *resultobj = 0;
34488 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34489 wxWindow *arg2 = (wxWindow *) 0 ;
34490 wxDC *arg3 = 0 ;
34491 wxRect *arg4 = 0 ;
34492 int arg5 = (int) 0 ;
33d6fd3b
RD
34493 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34494 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
554f62e9
RD
34495 void *argp1 = 0 ;
34496 int res1 = 0 ;
34497 void *argp2 = 0 ;
34498 int res2 = 0 ;
34499 void *argp3 = 0 ;
34500 int res3 = 0 ;
34501 wxRect temp4 ;
34502 int val5 ;
34503 int ecode5 = 0 ;
33d6fd3b
RD
34504 int val6 ;
34505 int ecode6 = 0 ;
34506 void *argp7 = 0 ;
34507 int res7 = 0 ;
554f62e9
RD
34508 PyObject * obj0 = 0 ;
34509 PyObject * obj1 = 0 ;
34510 PyObject * obj2 = 0 ;
34511 PyObject * obj3 = 0 ;
34512 PyObject * obj4 = 0 ;
33d6fd3b
RD
34513 PyObject * obj5 = 0 ;
34514 PyObject * obj6 = 0 ;
554f62e9 34515 char * kwnames[] = {
33d6fd3b 34516 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
34517 };
34518
33d6fd3b 34519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
34520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34521 if (!SWIG_IsOK(res1)) {
34522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34523 }
34524 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34525 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34526 if (!SWIG_IsOK(res2)) {
34527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34528 }
34529 arg2 = reinterpret_cast< wxWindow * >(argp2);
34530 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34531 if (!SWIG_IsOK(res3)) {
34532 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34533 }
34534 if (!argp3) {
34535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34536 }
34537 arg3 = reinterpret_cast< wxDC * >(argp3);
34538 {
34539 arg4 = &temp4;
34540 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34541 }
34542 if (obj4) {
34543 ecode5 = SWIG_AsVal_int(obj4, &val5);
34544 if (!SWIG_IsOK(ecode5)) {
34545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34546 }
34547 arg5 = static_cast< int >(val5);
34548 }
33d6fd3b
RD
34549 if (obj5) {
34550 ecode6 = SWIG_AsVal_int(obj5, &val6);
34551 if (!SWIG_IsOK(ecode6)) {
34552 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34553 }
34554 arg6 = static_cast< wxHeaderSortIconType >(val6);
34555 }
34556 if (obj6) {
34557 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34558 if (!SWIG_IsOK(res7)) {
34559 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34560 }
34561 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34562 }
34563 {
34564 PyThreadState* __tstate = wxPyBeginAllowThreads();
34565 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34566 wxPyEndAllowThreads(__tstate);
34567 if (PyErr_Occurred()) SWIG_fail;
34568 }
34569 resultobj = SWIG_Py_Void();
34570 return resultobj;
34571fail:
34572 return NULL;
34573}
34574
34575
34576SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34577 PyObject *resultobj = 0;
34578 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34579 wxWindow *arg2 = (wxWindow *) 0 ;
34580 wxDC *arg3 = 0 ;
34581 wxRect *arg4 = 0 ;
34582 int arg5 = (int) 0 ;
34583 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34584 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34585 void *argp1 = 0 ;
34586 int res1 = 0 ;
34587 void *argp2 = 0 ;
34588 int res2 = 0 ;
34589 void *argp3 = 0 ;
34590 int res3 = 0 ;
34591 wxRect temp4 ;
34592 int val5 ;
34593 int ecode5 = 0 ;
34594 int val6 ;
34595 int ecode6 = 0 ;
34596 void *argp7 = 0 ;
34597 int res7 = 0 ;
34598 PyObject * obj0 = 0 ;
34599 PyObject * obj1 = 0 ;
34600 PyObject * obj2 = 0 ;
34601 PyObject * obj3 = 0 ;
34602 PyObject * obj4 = 0 ;
34603 PyObject * obj5 = 0 ;
34604 PyObject * obj6 = 0 ;
34605 char * kwnames[] = {
34606 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34607 };
34608
34609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34611 if (!SWIG_IsOK(res1)) {
34612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34613 }
34614 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34615 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34616 if (!SWIG_IsOK(res2)) {
34617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34618 }
34619 arg2 = reinterpret_cast< wxWindow * >(argp2);
34620 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34621 if (!SWIG_IsOK(res3)) {
34622 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34623 }
34624 if (!argp3) {
34625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34626 }
34627 arg3 = reinterpret_cast< wxDC * >(argp3);
34628 {
34629 arg4 = &temp4;
34630 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34631 }
34632 if (obj4) {
34633 ecode5 = SWIG_AsVal_int(obj4, &val5);
34634 if (!SWIG_IsOK(ecode5)) {
34635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34636 }
34637 arg5 = static_cast< int >(val5);
34638 }
34639 if (obj5) {
34640 ecode6 = SWIG_AsVal_int(obj5, &val6);
34641 if (!SWIG_IsOK(ecode6)) {
34642 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34643 }
34644 arg6 = static_cast< wxHeaderSortIconType >(val6);
34645 }
34646 if (obj6) {
34647 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34648 if (!SWIG_IsOK(res7)) {
34649 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34650 }
34651 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34652 }
554f62e9
RD
34653 {
34654 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34655 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
34656 wxPyEndAllowThreads(__tstate);
34657 if (PyErr_Occurred()) SWIG_fail;
34658 }
34659 resultobj = SWIG_Py_Void();
34660 return resultobj;
34661fail:
34662 return NULL;
34663}
34664
34665
33d6fd3b
RD
34666SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34667 PyObject *resultobj = 0;
34668 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34669 wxWindow *arg2 = (wxWindow *) 0 ;
34670 int result;
34671 void *argp1 = 0 ;
34672 int res1 = 0 ;
34673 void *argp2 = 0 ;
34674 int res2 = 0 ;
34675 PyObject * obj0 = 0 ;
34676 PyObject * obj1 = 0 ;
34677 char * kwnames[] = {
34678 (char *) "self",(char *) "win", NULL
34679 };
34680
34681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34683 if (!SWIG_IsOK(res1)) {
34684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34685 }
34686 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34688 if (!SWIG_IsOK(res2)) {
34689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34690 }
34691 arg2 = reinterpret_cast< wxWindow * >(argp2);
34692 {
34693 PyThreadState* __tstate = wxPyBeginAllowThreads();
34694 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34695 wxPyEndAllowThreads(__tstate);
34696 if (PyErr_Occurred()) SWIG_fail;
34697 }
34698 resultobj = SWIG_From_int(static_cast< int >(result));
34699 return resultobj;
34700fail:
34701 return NULL;
34702}
34703
34704
554f62e9
RD
34705SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34706 PyObject *resultobj = 0;
34707 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34708 wxWindow *arg2 = (wxWindow *) 0 ;
34709 wxDC *arg3 = 0 ;
34710 wxRect *arg4 = 0 ;
34711 int arg5 = (int) 0 ;
34712 void *argp1 = 0 ;
34713 int res1 = 0 ;
34714 void *argp2 = 0 ;
34715 int res2 = 0 ;
34716 void *argp3 = 0 ;
34717 int res3 = 0 ;
34718 wxRect temp4 ;
34719 int val5 ;
34720 int ecode5 = 0 ;
34721 PyObject * obj0 = 0 ;
34722 PyObject * obj1 = 0 ;
34723 PyObject * obj2 = 0 ;
34724 PyObject * obj3 = 0 ;
34725 PyObject * obj4 = 0 ;
34726 char * kwnames[] = {
34727 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34728 };
34729
34730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34732 if (!SWIG_IsOK(res1)) {
34733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34734 }
34735 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34737 if (!SWIG_IsOK(res2)) {
34738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34739 }
34740 arg2 = reinterpret_cast< wxWindow * >(argp2);
34741 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34742 if (!SWIG_IsOK(res3)) {
34743 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34744 }
34745 if (!argp3) {
34746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34747 }
34748 arg3 = reinterpret_cast< wxDC * >(argp3);
34749 {
34750 arg4 = &temp4;
34751 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34752 }
34753 if (obj4) {
34754 ecode5 = SWIG_AsVal_int(obj4, &val5);
34755 if (!SWIG_IsOK(ecode5)) {
34756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34757 }
34758 arg5 = static_cast< int >(val5);
34759 }
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34763 wxPyEndAllowThreads(__tstate);
34764 if (PyErr_Occurred()) SWIG_fail;
34765 }
34766 resultobj = SWIG_Py_Void();
34767 return resultobj;
34768fail:
34769 return NULL;
34770}
34771
34772
34773SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34774 PyObject *resultobj = 0;
34775 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34776 wxWindow *arg2 = (wxWindow *) 0 ;
34777 wxDC *arg3 = 0 ;
34778 wxRect *arg4 = 0 ;
34779 int arg5 = (int) 0 ;
34780 void *argp1 = 0 ;
34781 int res1 = 0 ;
34782 void *argp2 = 0 ;
34783 int res2 = 0 ;
34784 void *argp3 = 0 ;
34785 int res3 = 0 ;
34786 wxRect temp4 ;
34787 int val5 ;
34788 int ecode5 = 0 ;
34789 PyObject * obj0 = 0 ;
34790 PyObject * obj1 = 0 ;
34791 PyObject * obj2 = 0 ;
34792 PyObject * obj3 = 0 ;
34793 PyObject * obj4 = 0 ;
34794 char * kwnames[] = {
34795 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34796 };
34797
34798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34800 if (!SWIG_IsOK(res1)) {
34801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34802 }
34803 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34805 if (!SWIG_IsOK(res2)) {
34806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34807 }
34808 arg2 = reinterpret_cast< wxWindow * >(argp2);
34809 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34810 if (!SWIG_IsOK(res3)) {
34811 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34812 }
34813 if (!argp3) {
34814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34815 }
34816 arg3 = reinterpret_cast< wxDC * >(argp3);
34817 {
34818 arg4 = &temp4;
34819 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34820 }
34821 if (obj4) {
34822 ecode5 = SWIG_AsVal_int(obj4, &val5);
34823 if (!SWIG_IsOK(ecode5)) {
34824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34825 }
34826 arg5 = static_cast< int >(val5);
34827 }
34828 {
34829 PyThreadState* __tstate = wxPyBeginAllowThreads();
34830 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34831 wxPyEndAllowThreads(__tstate);
34832 if (PyErr_Occurred()) SWIG_fail;
34833 }
34834 resultobj = SWIG_Py_Void();
34835 return resultobj;
34836fail:
34837 return NULL;
34838}
34839
34840
34841SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34842 PyObject *resultobj = 0;
34843 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34844 wxWindow *arg2 = (wxWindow *) 0 ;
34845 wxDC *arg3 = 0 ;
34846 wxSize *arg4 = 0 ;
34847 int arg5 ;
34848 wxOrientation arg6 ;
34849 int arg7 = (int) 0 ;
34850 void *argp1 = 0 ;
34851 int res1 = 0 ;
34852 void *argp2 = 0 ;
34853 int res2 = 0 ;
34854 void *argp3 = 0 ;
34855 int res3 = 0 ;
34856 wxSize temp4 ;
34857 int val5 ;
34858 int ecode5 = 0 ;
34859 int val6 ;
34860 int ecode6 = 0 ;
34861 int val7 ;
34862 int ecode7 = 0 ;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 PyObject * obj2 = 0 ;
34866 PyObject * obj3 = 0 ;
34867 PyObject * obj4 = 0 ;
34868 PyObject * obj5 = 0 ;
34869 PyObject * obj6 = 0 ;
34870 char * kwnames[] = {
34871 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34872 };
34873
34874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34876 if (!SWIG_IsOK(res1)) {
34877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34878 }
34879 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34881 if (!SWIG_IsOK(res2)) {
34882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34883 }
34884 arg2 = reinterpret_cast< wxWindow * >(argp2);
34885 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34886 if (!SWIG_IsOK(res3)) {
34887 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34888 }
34889 if (!argp3) {
34890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34891 }
34892 arg3 = reinterpret_cast< wxDC * >(argp3);
34893 {
34894 arg4 = &temp4;
34895 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34896 }
34897 ecode5 = SWIG_AsVal_int(obj4, &val5);
34898 if (!SWIG_IsOK(ecode5)) {
34899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34900 }
34901 arg5 = static_cast< int >(val5);
34902 ecode6 = SWIG_AsVal_int(obj5, &val6);
34903 if (!SWIG_IsOK(ecode6)) {
34904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34905 }
34906 arg6 = static_cast< wxOrientation >(val6);
34907 if (obj6) {
34908 ecode7 = SWIG_AsVal_int(obj6, &val7);
34909 if (!SWIG_IsOK(ecode7)) {
34910 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34911 }
34912 arg7 = static_cast< int >(val7);
34913 }
34914 {
34915 PyThreadState* __tstate = wxPyBeginAllowThreads();
34916 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34917 wxPyEndAllowThreads(__tstate);
34918 if (PyErr_Occurred()) SWIG_fail;
34919 }
34920 resultobj = SWIG_Py_Void();
34921 return resultobj;
34922fail:
34923 return NULL;
34924}
34925
34926
34927SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34928 PyObject *resultobj = 0;
34929 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34930 wxWindow *arg2 = (wxWindow *) 0 ;
34931 wxDC *arg3 = 0 ;
34932 wxRect *arg4 = 0 ;
34933 int arg5 = (int) 0 ;
34934 void *argp1 = 0 ;
34935 int res1 = 0 ;
34936 void *argp2 = 0 ;
34937 int res2 = 0 ;
34938 void *argp3 = 0 ;
34939 int res3 = 0 ;
34940 wxRect temp4 ;
34941 int val5 ;
34942 int ecode5 = 0 ;
34943 PyObject * obj0 = 0 ;
34944 PyObject * obj1 = 0 ;
34945 PyObject * obj2 = 0 ;
34946 PyObject * obj3 = 0 ;
34947 PyObject * obj4 = 0 ;
34948 char * kwnames[] = {
34949 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34950 };
34951
34952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34954 if (!SWIG_IsOK(res1)) {
34955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34956 }
34957 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34958 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34959 if (!SWIG_IsOK(res2)) {
34960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34961 }
34962 arg2 = reinterpret_cast< wxWindow * >(argp2);
34963 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34964 if (!SWIG_IsOK(res3)) {
34965 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34966 }
34967 if (!argp3) {
34968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34969 }
34970 arg3 = reinterpret_cast< wxDC * >(argp3);
34971 {
34972 arg4 = &temp4;
34973 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34974 }
34975 if (obj4) {
34976 ecode5 = SWIG_AsVal_int(obj4, &val5);
34977 if (!SWIG_IsOK(ecode5)) {
34978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34979 }
34980 arg5 = static_cast< int >(val5);
34981 }
34982 {
34983 PyThreadState* __tstate = wxPyBeginAllowThreads();
34984 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34985 wxPyEndAllowThreads(__tstate);
34986 if (PyErr_Occurred()) SWIG_fail;
34987 }
34988 resultobj = SWIG_Py_Void();
34989 return resultobj;
34990fail:
34991 return NULL;
34992}
34993
34994
34995SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34996 PyObject *resultobj = 0;
34997 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34998 wxWindow *arg2 = (wxWindow *) 0 ;
34999 wxDC *arg3 = 0 ;
35000 wxRect *arg4 = 0 ;
35001 int arg5 = (int) 0 ;
35002 void *argp1 = 0 ;
35003 int res1 = 0 ;
35004 void *argp2 = 0 ;
35005 int res2 = 0 ;
35006 void *argp3 = 0 ;
35007 int res3 = 0 ;
35008 wxRect temp4 ;
35009 int val5 ;
35010 int ecode5 = 0 ;
35011 PyObject * obj0 = 0 ;
35012 PyObject * obj1 = 0 ;
35013 PyObject * obj2 = 0 ;
35014 PyObject * obj3 = 0 ;
35015 PyObject * obj4 = 0 ;
35016 char * kwnames[] = {
35017 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35018 };
35019
35020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35022 if (!SWIG_IsOK(res1)) {
35023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35024 }
35025 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35027 if (!SWIG_IsOK(res2)) {
35028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35029 }
35030 arg2 = reinterpret_cast< wxWindow * >(argp2);
35031 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35032 if (!SWIG_IsOK(res3)) {
35033 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35034 }
35035 if (!argp3) {
35036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35037 }
35038 arg3 = reinterpret_cast< wxDC * >(argp3);
35039 {
35040 arg4 = &temp4;
35041 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35042 }
35043 if (obj4) {
35044 ecode5 = SWIG_AsVal_int(obj4, &val5);
35045 if (!SWIG_IsOK(ecode5)) {
35046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35047 }
35048 arg5 = static_cast< int >(val5);
35049 }
35050 {
35051 PyThreadState* __tstate = wxPyBeginAllowThreads();
35052 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35053 wxPyEndAllowThreads(__tstate);
35054 if (PyErr_Occurred()) SWIG_fail;
35055 }
35056 resultobj = SWIG_Py_Void();
35057 return resultobj;
35058fail:
35059 return NULL;
35060}
35061
35062
f460c29d
RD
35063SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35064 PyObject *resultobj = 0;
35065 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35066 wxWindow *arg2 = (wxWindow *) 0 ;
35067 wxDC *arg3 = 0 ;
35068 wxRect *arg4 = 0 ;
35069 int arg5 = (int) 0 ;
35070 void *argp1 = 0 ;
35071 int res1 = 0 ;
35072 void *argp2 = 0 ;
35073 int res2 = 0 ;
35074 void *argp3 = 0 ;
35075 int res3 = 0 ;
35076 wxRect temp4 ;
35077 int val5 ;
35078 int ecode5 = 0 ;
35079 PyObject * obj0 = 0 ;
35080 PyObject * obj1 = 0 ;
35081 PyObject * obj2 = 0 ;
35082 PyObject * obj3 = 0 ;
35083 PyObject * obj4 = 0 ;
35084 char * kwnames[] = {
35085 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35086 };
35087
35088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35090 if (!SWIG_IsOK(res1)) {
35091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35092 }
35093 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35095 if (!SWIG_IsOK(res2)) {
35096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35097 }
35098 arg2 = reinterpret_cast< wxWindow * >(argp2);
35099 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35100 if (!SWIG_IsOK(res3)) {
35101 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35102 }
35103 if (!argp3) {
35104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35105 }
35106 arg3 = reinterpret_cast< wxDC * >(argp3);
35107 {
35108 arg4 = &temp4;
35109 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35110 }
35111 if (obj4) {
35112 ecode5 = SWIG_AsVal_int(obj4, &val5);
35113 if (!SWIG_IsOK(ecode5)) {
35114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35115 }
35116 arg5 = static_cast< int >(val5);
35117 }
35118 {
35119 PyThreadState* __tstate = wxPyBeginAllowThreads();
35120 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35121 wxPyEndAllowThreads(__tstate);
35122 if (PyErr_Occurred()) SWIG_fail;
35123 }
35124 resultobj = SWIG_Py_Void();
35125 return resultobj;
35126fail:
35127 return NULL;
35128}
35129
35130
35131SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35132 PyObject *resultobj = 0;
35133 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35134 wxWindow *arg2 = (wxWindow *) 0 ;
35135 wxDC *arg3 = 0 ;
35136 wxRect *arg4 = 0 ;
35137 int arg5 = (int) 0 ;
35138 void *argp1 = 0 ;
35139 int res1 = 0 ;
35140 void *argp2 = 0 ;
35141 int res2 = 0 ;
35142 void *argp3 = 0 ;
35143 int res3 = 0 ;
35144 wxRect temp4 ;
35145 int val5 ;
35146 int ecode5 = 0 ;
35147 PyObject * obj0 = 0 ;
35148 PyObject * obj1 = 0 ;
35149 PyObject * obj2 = 0 ;
35150 PyObject * obj3 = 0 ;
35151 PyObject * obj4 = 0 ;
35152 char * kwnames[] = {
35153 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35154 };
35155
35156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35158 if (!SWIG_IsOK(res1)) {
35159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35160 }
35161 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35162 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35163 if (!SWIG_IsOK(res2)) {
35164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35165 }
35166 arg2 = reinterpret_cast< wxWindow * >(argp2);
35167 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35168 if (!SWIG_IsOK(res3)) {
35169 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35170 }
35171 if (!argp3) {
35172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35173 }
35174 arg3 = reinterpret_cast< wxDC * >(argp3);
35175 {
35176 arg4 = &temp4;
35177 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35178 }
35179 if (obj4) {
35180 ecode5 = SWIG_AsVal_int(obj4, &val5);
35181 if (!SWIG_IsOK(ecode5)) {
35182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35183 }
35184 arg5 = static_cast< int >(val5);
35185 }
35186 {
35187 PyThreadState* __tstate = wxPyBeginAllowThreads();
35188 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35189 wxPyEndAllowThreads(__tstate);
35190 if (PyErr_Occurred()) SWIG_fail;
35191 }
35192 resultobj = SWIG_Py_Void();
35193 return resultobj;
35194fail:
35195 return NULL;
35196}
35197
35198
35199SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
35200 PyObject *resultobj = 0;
35201 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35202 wxWindow *arg2 = (wxWindow *) 0 ;
35203 wxDC *arg3 = 0 ;
35204 wxRect *arg4 = 0 ;
35205 int arg5 = (int) 0 ;
35206 void *argp1 = 0 ;
35207 int res1 = 0 ;
35208 void *argp2 = 0 ;
35209 int res2 = 0 ;
35210 void *argp3 = 0 ;
35211 int res3 = 0 ;
35212 wxRect temp4 ;
35213 int val5 ;
35214 int ecode5 = 0 ;
35215 PyObject * obj0 = 0 ;
35216 PyObject * obj1 = 0 ;
35217 PyObject * obj2 = 0 ;
35218 PyObject * obj3 = 0 ;
35219 PyObject * obj4 = 0 ;
35220 char * kwnames[] = {
35221 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35222 };
35223
f460c29d 35224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
35225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35226 if (!SWIG_IsOK(res1)) {
f460c29d 35227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
35228 }
35229 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35231 if (!SWIG_IsOK(res2)) {
f460c29d 35232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
35233 }
35234 arg2 = reinterpret_cast< wxWindow * >(argp2);
35235 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35236 if (!SWIG_IsOK(res3)) {
f460c29d 35237 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35238 }
35239 if (!argp3) {
f460c29d 35240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35241 }
35242 arg3 = reinterpret_cast< wxDC * >(argp3);
35243 {
35244 arg4 = &temp4;
35245 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35246 }
35247 if (obj4) {
35248 ecode5 = SWIG_AsVal_int(obj4, &val5);
35249 if (!SWIG_IsOK(ecode5)) {
f460c29d 35250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
35251 }
35252 arg5 = static_cast< int >(val5);
35253 }
35254 {
35255 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 35256 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
35257 wxPyEndAllowThreads(__tstate);
35258 if (PyErr_Occurred()) SWIG_fail;
35259 }
35260 resultobj = SWIG_Py_Void();
35261 return resultobj;
35262fail:
35263 return NULL;
35264}
35265
35266
554f62e9
RD
35267SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35268 PyObject *resultobj = 0;
35269 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35270 wxWindow *arg2 = (wxWindow *) 0 ;
35271 SwigValueWrapper<wxSplitterRenderParams > result;
35272 void *argp1 = 0 ;
35273 int res1 = 0 ;
35274 void *argp2 = 0 ;
35275 int res2 = 0 ;
35276 PyObject * obj0 = 0 ;
35277 PyObject * obj1 = 0 ;
35278 char * kwnames[] = {
35279 (char *) "self",(char *) "win", NULL
35280 };
35281
35282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35284 if (!SWIG_IsOK(res1)) {
35285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35286 }
35287 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35289 if (!SWIG_IsOK(res2)) {
35290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35291 }
35292 arg2 = reinterpret_cast< wxWindow * >(argp2);
35293 {
35294 PyThreadState* __tstate = wxPyBeginAllowThreads();
35295 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35296 wxPyEndAllowThreads(__tstate);
35297 if (PyErr_Occurred()) SWIG_fail;
35298 }
35299 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35300 return resultobj;
35301fail:
35302 return NULL;
35303}
35304
35305
35306SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35307 PyObject *resultobj = 0;
35308 wxRendererNative *result = 0 ;
35309
35310 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35311 {
704eda0c 35312 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35313 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 35314 {
554f62e9
RD
35315 wxRendererNative &_result_ref = wxRendererNative::Get();
35316 result = (wxRendererNative *) &_result_ref;
093d3ff1 35317 }
554f62e9
RD
35318 wxPyEndAllowThreads(__tstate);
35319 if (PyErr_Occurred()) SWIG_fail;
35320 }
35321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35322 return resultobj;
35323fail:
35324 return NULL;
35325}
35326
35327
35328SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35329 PyObject *resultobj = 0;
35330 wxRendererNative *result = 0 ;
35331
35332 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35333 {
704eda0c 35334 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35335 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35336 {
554f62e9
RD
35337 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35338 result = (wxRendererNative *) &_result_ref;
be9b1dca 35339 }
554f62e9
RD
35340 wxPyEndAllowThreads(__tstate);
35341 if (PyErr_Occurred()) SWIG_fail;
35342 }
35343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35344 return resultobj;
35345fail:
35346 return NULL;
35347}
35348
35349
35350SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35351 PyObject *resultobj = 0;
35352 wxRendererNative *result = 0 ;
35353
35354 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35355 {
704eda0c 35356 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35357 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35358 {
554f62e9
RD
35359 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35360 result = (wxRendererNative *) &_result_ref;
be9b1dca 35361 }
554f62e9
RD
35362 wxPyEndAllowThreads(__tstate);
35363 if (PyErr_Occurred()) SWIG_fail;
35364 }
35365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35366 return resultobj;
35367fail:
35368 return NULL;
35369}
35370
35371
35372SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35373 PyObject *resultobj = 0;
35374 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35375 wxRendererNative *result = 0 ;
35376 void *argp1 = 0 ;
35377 int res1 = 0 ;
35378 PyObject * obj0 = 0 ;
35379 char * kwnames[] = {
35380 (char *) "renderer", NULL
35381 };
35382
35383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35385 if (!SWIG_IsOK(res1)) {
35386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35387 }
35388 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35389 {
704eda0c 35390 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
35391 PyThreadState* __tstate = wxPyBeginAllowThreads();
35392 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35393 wxPyEndAllowThreads(__tstate);
35394 if (PyErr_Occurred()) SWIG_fail;
35395 }
35396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35397 return resultobj;
35398fail:
35399 return NULL;
35400}
35401
35402
35403SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35404 PyObject *resultobj = 0;
35405 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35406 SwigValueWrapper<wxRendererVersion > result;
35407 void *argp1 = 0 ;
35408 int res1 = 0 ;
35409 PyObject *swig_obj[1] ;
35410
35411 if (!args) SWIG_fail;
35412 swig_obj[0] = args;
35413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35414 if (!SWIG_IsOK(res1)) {
35415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35416 }
35417 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35418 {
35419 PyThreadState* __tstate = wxPyBeginAllowThreads();
35420 result = ((wxRendererNative const *)arg1)->GetVersion();
35421 wxPyEndAllowThreads(__tstate);
35422 if (PyErr_Occurred()) SWIG_fail;
35423 }
35424 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35425 return resultobj;
35426fail:
35427 return NULL;
35428}
35429
35430
35431SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35432 PyObject *obj;
35433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35434 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35435 return SWIG_Py_Void();
35436}
35437
27e45892
RD
35438SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35439 PyObject *resultobj = 0;
35440 wxPseudoDC *result = 0 ;
35441
35442 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35443 {
35444 PyThreadState* __tstate = wxPyBeginAllowThreads();
35445 result = (wxPseudoDC *)new wxPseudoDC();
35446 wxPyEndAllowThreads(__tstate);
35447 if (PyErr_Occurred()) SWIG_fail;
35448 }
35449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35450 return resultobj;
35451fail:
35452 return NULL;
35453}
35454
35455
35456SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35457 PyObject *resultobj = 0;
35458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35459 void *argp1 = 0 ;
35460 int res1 = 0 ;
35461 PyObject *swig_obj[1] ;
35462
35463 if (!args) SWIG_fail;
35464 swig_obj[0] = args;
35465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35466 if (!SWIG_IsOK(res1)) {
35467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35468 }
35469 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35470 {
35471 PyThreadState* __tstate = wxPyBeginAllowThreads();
35472 (arg1)->BeginDrawing();
35473 wxPyEndAllowThreads(__tstate);
35474 if (PyErr_Occurred()) SWIG_fail;
35475 }
35476 resultobj = SWIG_Py_Void();
35477 return resultobj;
35478fail:
35479 return NULL;
35480}
35481
35482
35483SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35484 PyObject *resultobj = 0;
35485 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35486 void *argp1 = 0 ;
35487 int res1 = 0 ;
35488 PyObject *swig_obj[1] ;
35489
35490 if (!args) SWIG_fail;
35491 swig_obj[0] = args;
35492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35493 if (!SWIG_IsOK(res1)) {
35494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35495 }
35496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35497 {
35498 PyThreadState* __tstate = wxPyBeginAllowThreads();
35499 (arg1)->EndDrawing();
35500 wxPyEndAllowThreads(__tstate);
35501 if (PyErr_Occurred()) SWIG_fail;
35502 }
35503 resultobj = SWIG_Py_Void();
35504 return resultobj;
35505fail:
35506 return NULL;
35507}
35508
35509
35510SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35511 PyObject *resultobj = 0;
35512 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35513 void *argp1 = 0 ;
35514 int res1 = 0 ;
35515 PyObject *swig_obj[1] ;
35516
35517 if (!args) SWIG_fail;
35518 swig_obj[0] = args;
35519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35520 if (!SWIG_IsOK(res1)) {
35521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35522 }
35523 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35524 {
35525 PyThreadState* __tstate = wxPyBeginAllowThreads();
35526 delete arg1;
35527
35528 wxPyEndAllowThreads(__tstate);
35529 if (PyErr_Occurred()) SWIG_fail;
35530 }
35531 resultobj = SWIG_Py_Void();
35532 return resultobj;
35533fail:
35534 return NULL;
35535}
35536
35537
35538SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35539 PyObject *resultobj = 0;
35540 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35541 void *argp1 = 0 ;
35542 int res1 = 0 ;
35543 PyObject *swig_obj[1] ;
35544
35545 if (!args) SWIG_fail;
35546 swig_obj[0] = args;
35547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35548 if (!SWIG_IsOK(res1)) {
35549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35550 }
35551 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35552 {
35553 PyThreadState* __tstate = wxPyBeginAllowThreads();
35554 (arg1)->RemoveAll();
35555 wxPyEndAllowThreads(__tstate);
35556 if (PyErr_Occurred()) SWIG_fail;
35557 }
35558 resultobj = SWIG_Py_Void();
35559 return resultobj;
35560fail:
35561 return NULL;
35562}
35563
35564
35565SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35566 PyObject *resultobj = 0;
35567 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35568 int result;
35569 void *argp1 = 0 ;
35570 int res1 = 0 ;
35571 PyObject *swig_obj[1] ;
35572
35573 if (!args) SWIG_fail;
35574 swig_obj[0] = args;
35575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35576 if (!SWIG_IsOK(res1)) {
35577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35578 }
35579 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35580 {
35581 PyThreadState* __tstate = wxPyBeginAllowThreads();
35582 result = (int)(arg1)->GetLen();
35583 wxPyEndAllowThreads(__tstate);
35584 if (PyErr_Occurred()) SWIG_fail;
35585 }
35586 resultobj = SWIG_From_int(static_cast< int >(result));
35587 return resultobj;
35588fail:
35589 return NULL;
35590}
35591
35592
35593SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35594 PyObject *resultobj = 0;
35595 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35596 int arg2 ;
35597 void *argp1 = 0 ;
35598 int res1 = 0 ;
35599 int val2 ;
35600 int ecode2 = 0 ;
35601 PyObject * obj0 = 0 ;
35602 PyObject * obj1 = 0 ;
35603 char * kwnames[] = {
35604 (char *) "self",(char *) "id", NULL
35605 };
35606
35607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35609 if (!SWIG_IsOK(res1)) {
35610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35611 }
35612 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35613 ecode2 = SWIG_AsVal_int(obj1, &val2);
35614 if (!SWIG_IsOK(ecode2)) {
35615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35616 }
35617 arg2 = static_cast< int >(val2);
35618 {
35619 PyThreadState* __tstate = wxPyBeginAllowThreads();
35620 (arg1)->SetId(arg2);
35621 wxPyEndAllowThreads(__tstate);
35622 if (PyErr_Occurred()) SWIG_fail;
35623 }
35624 resultobj = SWIG_Py_Void();
35625 return resultobj;
35626fail:
35627 return NULL;
35628}
35629
35630
35631SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35632 PyObject *resultobj = 0;
35633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35634 int arg2 ;
35635 void *argp1 = 0 ;
35636 int res1 = 0 ;
35637 int val2 ;
35638 int ecode2 = 0 ;
35639 PyObject * obj0 = 0 ;
35640 PyObject * obj1 = 0 ;
35641 char * kwnames[] = {
35642 (char *) "self",(char *) "id", NULL
35643 };
35644
35645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35647 if (!SWIG_IsOK(res1)) {
35648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35649 }
35650 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35651 ecode2 = SWIG_AsVal_int(obj1, &val2);
35652 if (!SWIG_IsOK(ecode2)) {
35653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35654 }
35655 arg2 = static_cast< int >(val2);
35656 {
35657 PyThreadState* __tstate = wxPyBeginAllowThreads();
35658 (arg1)->ClearId(arg2);
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_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35670 PyObject *resultobj = 0;
35671 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35672 int arg2 ;
35673 void *argp1 = 0 ;
35674 int res1 = 0 ;
35675 int val2 ;
35676 int ecode2 = 0 ;
35677 PyObject * obj0 = 0 ;
35678 PyObject * obj1 = 0 ;
35679 char * kwnames[] = {
35680 (char *) "self",(char *) "id", NULL
35681 };
35682
35683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",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_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35687 }
35688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35689 ecode2 = SWIG_AsVal_int(obj1, &val2);
35690 if (!SWIG_IsOK(ecode2)) {
35691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35692 }
35693 arg2 = static_cast< int >(val2);
35694 {
35695 PyThreadState* __tstate = wxPyBeginAllowThreads();
35696 (arg1)->RemoveId(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_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35708 PyObject *resultobj = 0;
35709 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35710 int arg2 ;
35711 int arg3 ;
35712 int arg4 ;
35713 void *argp1 = 0 ;
35714 int res1 = 0 ;
35715 int val2 ;
35716 int ecode2 = 0 ;
35717 int val3 ;
35718 int ecode3 = 0 ;
35719 int val4 ;
35720 int ecode4 = 0 ;
35721 PyObject * obj0 = 0 ;
35722 PyObject * obj1 = 0 ;
35723 PyObject * obj2 = 0 ;
35724 PyObject * obj3 = 0 ;
35725 char * kwnames[] = {
35726 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35727 };
35728
35729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35731 if (!SWIG_IsOK(res1)) {
35732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35733 }
35734 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35735 ecode2 = SWIG_AsVal_int(obj1, &val2);
35736 if (!SWIG_IsOK(ecode2)) {
35737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35738 }
35739 arg2 = static_cast< int >(val2);
35740 ecode3 = SWIG_AsVal_int(obj2, &val3);
35741 if (!SWIG_IsOK(ecode3)) {
35742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35743 }
35744 arg3 = static_cast< int >(val3);
35745 ecode4 = SWIG_AsVal_int(obj3, &val4);
35746 if (!SWIG_IsOK(ecode4)) {
35747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35748 }
35749 arg4 = static_cast< int >(val4);
35750 {
35751 PyThreadState* __tstate = wxPyBeginAllowThreads();
35752 (arg1)->TranslateId(arg2,arg3,arg4);
35753 wxPyEndAllowThreads(__tstate);
35754 if (PyErr_Occurred()) SWIG_fail;
35755 }
35756 resultobj = SWIG_Py_Void();
35757 return resultobj;
35758fail:
35759 return NULL;
35760}
35761
35762
72ef6efb
RD
35763SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35764 PyObject *resultobj = 0;
35765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35766 int arg2 ;
35767 bool arg3 = (bool) true ;
35768 void *argp1 = 0 ;
35769 int res1 = 0 ;
35770 int val2 ;
35771 int ecode2 = 0 ;
35772 bool val3 ;
35773 int ecode3 = 0 ;
35774 PyObject * obj0 = 0 ;
35775 PyObject * obj1 = 0 ;
35776 PyObject * obj2 = 0 ;
35777 char * kwnames[] = {
35778 (char *) "self",(char *) "id",(char *) "greyout", NULL
35779 };
35780
35781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35783 if (!SWIG_IsOK(res1)) {
35784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35785 }
35786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35787 ecode2 = SWIG_AsVal_int(obj1, &val2);
35788 if (!SWIG_IsOK(ecode2)) {
35789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35790 }
35791 arg2 = static_cast< int >(val2);
35792 if (obj2) {
35793 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35794 if (!SWIG_IsOK(ecode3)) {
35795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35796 }
35797 arg3 = static_cast< bool >(val3);
35798 }
35799 {
35800 PyThreadState* __tstate = wxPyBeginAllowThreads();
35801 (arg1)->SetIdGreyedOut(arg2,arg3);
35802 wxPyEndAllowThreads(__tstate);
35803 if (PyErr_Occurred()) SWIG_fail;
35804 }
35805 resultobj = SWIG_Py_Void();
35806 return resultobj;
35807fail:
35808 return NULL;
35809}
35810
35811
35812SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35813 PyObject *resultobj = 0;
35814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35815 int arg2 ;
35816 bool result;
35817 void *argp1 = 0 ;
35818 int res1 = 0 ;
35819 int val2 ;
35820 int ecode2 = 0 ;
35821 PyObject * obj0 = 0 ;
35822 PyObject * obj1 = 0 ;
35823 char * kwnames[] = {
35824 (char *) "self",(char *) "id", NULL
35825 };
35826
35827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35829 if (!SWIG_IsOK(res1)) {
35830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35831 }
35832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35833 ecode2 = SWIG_AsVal_int(obj1, &val2);
35834 if (!SWIG_IsOK(ecode2)) {
35835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35836 }
35837 arg2 = static_cast< int >(val2);
35838 {
35839 PyThreadState* __tstate = wxPyBeginAllowThreads();
35840 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35841 wxPyEndAllowThreads(__tstate);
35842 if (PyErr_Occurred()) SWIG_fail;
35843 }
35844 {
35845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35846 }
35847 return resultobj;
35848fail:
35849 return NULL;
35850}
35851
35852
35853SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35854 PyObject *resultobj = 0;
35855 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35856 int arg2 ;
35857 int arg3 ;
35858 int arg4 = (int) 1 ;
35859 wxColor const &arg5_defvalue = *wxWHITE ;
35860 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35861 PyObject *result = 0 ;
35862 void *argp1 = 0 ;
35863 int res1 = 0 ;
35864 int val2 ;
35865 int ecode2 = 0 ;
35866 int val3 ;
35867 int ecode3 = 0 ;
35868 int val4 ;
35869 int ecode4 = 0 ;
35870 void *argp5 = 0 ;
35871 int res5 = 0 ;
35872 PyObject * obj0 = 0 ;
35873 PyObject * obj1 = 0 ;
35874 PyObject * obj2 = 0 ;
35875 PyObject * obj3 = 0 ;
35876 PyObject * obj4 = 0 ;
35877 char * kwnames[] = {
35878 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35879 };
35880
35881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35883 if (!SWIG_IsOK(res1)) {
35884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35885 }
35886 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35887 ecode2 = SWIG_AsVal_int(obj1, &val2);
35888 if (!SWIG_IsOK(ecode2)) {
35889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35890 }
35891 arg2 = static_cast< int >(val2);
35892 ecode3 = SWIG_AsVal_int(obj2, &val3);
35893 if (!SWIG_IsOK(ecode3)) {
35894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35895 }
35896 arg3 = static_cast< int >(val3);
35897 if (obj3) {
35898 ecode4 = SWIG_AsVal_int(obj3, &val4);
35899 if (!SWIG_IsOK(ecode4)) {
35900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35901 }
35902 arg4 = static_cast< int >(val4);
35903 }
35904 if (obj4) {
35905 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35906 if (!SWIG_IsOK(res5)) {
35907 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35908 }
35909 if (!argp5) {
35910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35911 }
35912 arg5 = reinterpret_cast< wxColor * >(argp5);
35913 }
35914 {
35915 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35916 if (PyErr_Occurred()) SWIG_fail;
35917 }
35918 resultobj = result;
35919 return resultobj;
35920fail:
35921 return NULL;
35922}
35923
35924
35925SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35926 PyObject *resultobj = 0;
35927 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35928 int arg2 ;
35929 int arg3 ;
35930 PyObject *result = 0 ;
35931 void *argp1 = 0 ;
35932 int res1 = 0 ;
35933 int val2 ;
35934 int ecode2 = 0 ;
35935 int val3 ;
35936 int ecode3 = 0 ;
35937 PyObject * obj0 = 0 ;
35938 PyObject * obj1 = 0 ;
35939 PyObject * obj2 = 0 ;
35940 char * kwnames[] = {
35941 (char *) "self",(char *) "x",(char *) "y", NULL
35942 };
35943
35944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35946 if (!SWIG_IsOK(res1)) {
35947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35948 }
35949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35950 ecode2 = SWIG_AsVal_int(obj1, &val2);
35951 if (!SWIG_IsOK(ecode2)) {
35952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35953 }
35954 arg2 = static_cast< int >(val2);
35955 ecode3 = SWIG_AsVal_int(obj2, &val3);
35956 if (!SWIG_IsOK(ecode3)) {
35957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35958 }
35959 arg3 = static_cast< int >(val3);
35960 {
35961 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35962 if (PyErr_Occurred()) SWIG_fail;
35963 }
35964 resultobj = result;
35965 return resultobj;
35966fail:
35967 return NULL;
35968}
35969
35970
27e45892
RD
35971SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35972 PyObject *resultobj = 0;
35973 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35974 int arg2 ;
35975 wxDC *arg3 = (wxDC *) 0 ;
35976 void *argp1 = 0 ;
35977 int res1 = 0 ;
35978 int val2 ;
35979 int ecode2 = 0 ;
35980 void *argp3 = 0 ;
35981 int res3 = 0 ;
35982 PyObject * obj0 = 0 ;
35983 PyObject * obj1 = 0 ;
35984 PyObject * obj2 = 0 ;
35985 char * kwnames[] = {
35986 (char *) "self",(char *) "id",(char *) "dc", NULL
35987 };
35988
35989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35991 if (!SWIG_IsOK(res1)) {
35992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35993 }
35994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35995 ecode2 = SWIG_AsVal_int(obj1, &val2);
35996 if (!SWIG_IsOK(ecode2)) {
35997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35998 }
35999 arg2 = static_cast< int >(val2);
36000 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36001 if (!SWIG_IsOK(res3)) {
36002 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36003 }
36004 arg3 = reinterpret_cast< wxDC * >(argp3);
36005 {
36006 PyThreadState* __tstate = wxPyBeginAllowThreads();
36007 (arg1)->DrawIdToDC(arg2,arg3);
36008 wxPyEndAllowThreads(__tstate);
36009 if (PyErr_Occurred()) SWIG_fail;
36010 }
36011 resultobj = SWIG_Py_Void();
36012 return resultobj;
36013fail:
36014 return NULL;
36015}
36016
36017
36018SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36019 PyObject *resultobj = 0;
36020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36021 int arg2 ;
36022 wxRect *arg3 = 0 ;
36023 void *argp1 = 0 ;
36024 int res1 = 0 ;
36025 int val2 ;
36026 int ecode2 = 0 ;
36027 wxRect temp3 ;
36028 PyObject * obj0 = 0 ;
36029 PyObject * obj1 = 0 ;
36030 PyObject * obj2 = 0 ;
36031 char * kwnames[] = {
36032 (char *) "self",(char *) "id",(char *) "rect", NULL
36033 };
36034
36035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36037 if (!SWIG_IsOK(res1)) {
36038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36039 }
36040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36041 ecode2 = SWIG_AsVal_int(obj1, &val2);
36042 if (!SWIG_IsOK(ecode2)) {
36043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36044 }
36045 arg2 = static_cast< int >(val2);
36046 {
36047 arg3 = &temp3;
36048 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36049 }
36050 {
36051 PyThreadState* __tstate = wxPyBeginAllowThreads();
36052 (arg1)->SetIdBounds(arg2,*arg3);
36053 wxPyEndAllowThreads(__tstate);
36054 if (PyErr_Occurred()) SWIG_fail;
36055 }
36056 resultobj = SWIG_Py_Void();
36057 return resultobj;
36058fail:
36059 return NULL;
36060}
36061
36062
36063SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36064 PyObject *resultobj = 0;
36065 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36066 int arg2 ;
36067 wxRect result;
36068 void *argp1 = 0 ;
36069 int res1 = 0 ;
36070 int val2 ;
36071 int ecode2 = 0 ;
36072 PyObject * obj0 = 0 ;
36073 PyObject * obj1 = 0 ;
36074 char * kwnames[] = {
36075 (char *) "self",(char *) "id", NULL
36076 };
36077
36078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36080 if (!SWIG_IsOK(res1)) {
36081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36082 }
36083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36084 ecode2 = SWIG_AsVal_int(obj1, &val2);
36085 if (!SWIG_IsOK(ecode2)) {
36086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36087 }
36088 arg2 = static_cast< int >(val2);
36089 {
36090 PyThreadState* __tstate = wxPyBeginAllowThreads();
36091 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36092 wxPyEndAllowThreads(__tstate);
36093 if (PyErr_Occurred()) SWIG_fail;
36094 }
36095 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36096 return resultobj;
36097fail:
36098 return NULL;
36099}
36100
36101
36102SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36103 PyObject *resultobj = 0;
36104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36105 wxDC *arg2 = (wxDC *) 0 ;
36106 wxRect *arg3 = 0 ;
36107 void *argp1 = 0 ;
36108 int res1 = 0 ;
36109 void *argp2 = 0 ;
36110 int res2 = 0 ;
36111 wxRect temp3 ;
36112 PyObject * obj0 = 0 ;
36113 PyObject * obj1 = 0 ;
36114 PyObject * obj2 = 0 ;
36115 char * kwnames[] = {
36116 (char *) "self",(char *) "dc",(char *) "rect", NULL
36117 };
36118
36119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) 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_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36126 if (!SWIG_IsOK(res2)) {
36127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36128 }
36129 arg2 = reinterpret_cast< wxDC * >(argp2);
36130 {
36131 arg3 = &temp3;
36132 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36133 }
36134 {
36135 PyThreadState* __tstate = wxPyBeginAllowThreads();
36136 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36137 wxPyEndAllowThreads(__tstate);
36138 if (PyErr_Occurred()) SWIG_fail;
36139 }
36140 resultobj = SWIG_Py_Void();
36141 return resultobj;
36142fail:
36143 return NULL;
36144}
36145
36146
36147SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36148 PyObject *resultobj = 0;
36149 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36150 wxDC *arg2 = (wxDC *) 0 ;
36151 wxRegion *arg3 = 0 ;
36152 void *argp1 = 0 ;
36153 int res1 = 0 ;
36154 void *argp2 = 0 ;
36155 int res2 = 0 ;
36156 void *argp3 = 0 ;
36157 int res3 = 0 ;
36158 PyObject * obj0 = 0 ;
36159 PyObject * obj1 = 0 ;
36160 PyObject * obj2 = 0 ;
36161 char * kwnames[] = {
36162 (char *) "self",(char *) "dc",(char *) "region", NULL
36163 };
36164
36165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36167 if (!SWIG_IsOK(res1)) {
36168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36169 }
36170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36171 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36172 if (!SWIG_IsOK(res2)) {
36173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36174 }
36175 arg2 = reinterpret_cast< wxDC * >(argp2);
36176 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36177 if (!SWIG_IsOK(res3)) {
36178 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36179 }
36180 if (!argp3) {
36181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36182 }
36183 arg3 = reinterpret_cast< wxRegion * >(argp3);
36184 {
36185 PyThreadState* __tstate = wxPyBeginAllowThreads();
36186 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36187 wxPyEndAllowThreads(__tstate);
36188 if (PyErr_Occurred()) SWIG_fail;
36189 }
36190 resultobj = SWIG_Py_Void();
36191 return resultobj;
36192fail:
36193 return NULL;
36194}
36195
36196
36197SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36198 PyObject *resultobj = 0;
36199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36200 wxDC *arg2 = (wxDC *) 0 ;
36201 void *argp1 = 0 ;
36202 int res1 = 0 ;
36203 void *argp2 = 0 ;
36204 int res2 = 0 ;
36205 PyObject * obj0 = 0 ;
36206 PyObject * obj1 = 0 ;
36207 char * kwnames[] = {
36208 (char *) "self",(char *) "dc", NULL
36209 };
36210
36211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36213 if (!SWIG_IsOK(res1)) {
36214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36215 }
36216 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36218 if (!SWIG_IsOK(res2)) {
36219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36220 }
36221 arg2 = reinterpret_cast< wxDC * >(argp2);
36222 {
36223 PyThreadState* __tstate = wxPyBeginAllowThreads();
36224 (arg1)->DrawToDC(arg2);
36225 wxPyEndAllowThreads(__tstate);
36226 if (PyErr_Occurred()) SWIG_fail;
36227 }
36228 resultobj = SWIG_Py_Void();
36229 return resultobj;
36230fail:
36231 return NULL;
36232}
36233
36234
36235SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36236 PyObject *resultobj = 0;
36237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36238 int arg2 ;
36239 int arg3 ;
36240 wxColour *arg4 = 0 ;
36241 int arg5 = (int) wxFLOOD_SURFACE ;
36242 void *argp1 = 0 ;
36243 int res1 = 0 ;
36244 int val2 ;
36245 int ecode2 = 0 ;
36246 int val3 ;
36247 int ecode3 = 0 ;
36248 wxColour temp4 ;
36249 int val5 ;
36250 int ecode5 = 0 ;
36251 PyObject * obj0 = 0 ;
36252 PyObject * obj1 = 0 ;
36253 PyObject * obj2 = 0 ;
36254 PyObject * obj3 = 0 ;
36255 PyObject * obj4 = 0 ;
36256 char * kwnames[] = {
36257 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36258 };
36259
36260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36262 if (!SWIG_IsOK(res1)) {
36263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36264 }
36265 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36266 ecode2 = SWIG_AsVal_int(obj1, &val2);
36267 if (!SWIG_IsOK(ecode2)) {
36268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36269 }
36270 arg2 = static_cast< int >(val2);
36271 ecode3 = SWIG_AsVal_int(obj2, &val3);
36272 if (!SWIG_IsOK(ecode3)) {
36273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36274 }
36275 arg3 = static_cast< int >(val3);
36276 {
36277 arg4 = &temp4;
36278 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36279 }
36280 if (obj4) {
36281 ecode5 = SWIG_AsVal_int(obj4, &val5);
36282 if (!SWIG_IsOK(ecode5)) {
36283 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36284 }
36285 arg5 = static_cast< int >(val5);
36286 }
36287 {
36288 PyThreadState* __tstate = wxPyBeginAllowThreads();
36289 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36290 wxPyEndAllowThreads(__tstate);
36291 if (PyErr_Occurred()) SWIG_fail;
36292 }
36293 resultobj = SWIG_Py_Void();
36294 return resultobj;
36295fail:
36296 return NULL;
36297}
36298
36299
36300SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36301 PyObject *resultobj = 0;
36302 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36303 wxPoint *arg2 = 0 ;
36304 wxColour *arg3 = 0 ;
36305 int arg4 = (int) wxFLOOD_SURFACE ;
36306 void *argp1 = 0 ;
36307 int res1 = 0 ;
36308 wxPoint temp2 ;
36309 wxColour temp3 ;
36310 int val4 ;
36311 int ecode4 = 0 ;
36312 PyObject * obj0 = 0 ;
36313 PyObject * obj1 = 0 ;
36314 PyObject * obj2 = 0 ;
36315 PyObject * obj3 = 0 ;
36316 char * kwnames[] = {
36317 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36318 };
36319
36320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36322 if (!SWIG_IsOK(res1)) {
36323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36324 }
36325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36326 {
36327 arg2 = &temp2;
36328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36329 }
36330 {
36331 arg3 = &temp3;
36332 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36333 }
36334 if (obj3) {
36335 ecode4 = SWIG_AsVal_int(obj3, &val4);
36336 if (!SWIG_IsOK(ecode4)) {
36337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36338 }
36339 arg4 = static_cast< int >(val4);
36340 }
36341 {
36342 PyThreadState* __tstate = wxPyBeginAllowThreads();
36343 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36344 wxPyEndAllowThreads(__tstate);
36345 if (PyErr_Occurred()) SWIG_fail;
36346 }
36347 resultobj = SWIG_Py_Void();
36348 return resultobj;
36349fail:
36350 return NULL;
36351}
36352
36353
36354SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36355 PyObject *resultobj = 0;
36356 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36357 int arg2 ;
36358 int arg3 ;
36359 int arg4 ;
36360 int arg5 ;
36361 void *argp1 = 0 ;
36362 int res1 = 0 ;
36363 int val2 ;
36364 int ecode2 = 0 ;
36365 int val3 ;
36366 int ecode3 = 0 ;
36367 int val4 ;
36368 int ecode4 = 0 ;
36369 int val5 ;
36370 int ecode5 = 0 ;
36371 PyObject * obj0 = 0 ;
36372 PyObject * obj1 = 0 ;
36373 PyObject * obj2 = 0 ;
36374 PyObject * obj3 = 0 ;
36375 PyObject * obj4 = 0 ;
36376 char * kwnames[] = {
36377 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36378 };
36379
36380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36382 if (!SWIG_IsOK(res1)) {
36383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36384 }
36385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36386 ecode2 = SWIG_AsVal_int(obj1, &val2);
36387 if (!SWIG_IsOK(ecode2)) {
36388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36389 }
36390 arg2 = static_cast< int >(val2);
36391 ecode3 = SWIG_AsVal_int(obj2, &val3);
36392 if (!SWIG_IsOK(ecode3)) {
36393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36394 }
36395 arg3 = static_cast< int >(val3);
36396 ecode4 = SWIG_AsVal_int(obj3, &val4);
36397 if (!SWIG_IsOK(ecode4)) {
36398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36399 }
36400 arg4 = static_cast< int >(val4);
36401 ecode5 = SWIG_AsVal_int(obj4, &val5);
36402 if (!SWIG_IsOK(ecode5)) {
36403 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36404 }
36405 arg5 = static_cast< int >(val5);
36406 {
36407 PyThreadState* __tstate = wxPyBeginAllowThreads();
36408 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36409 wxPyEndAllowThreads(__tstate);
36410 if (PyErr_Occurred()) SWIG_fail;
36411 }
36412 resultobj = SWIG_Py_Void();
36413 return resultobj;
36414fail:
36415 return NULL;
36416}
36417
36418
36419SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36420 PyObject *resultobj = 0;
36421 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36422 wxPoint *arg2 = 0 ;
36423 wxPoint *arg3 = 0 ;
36424 void *argp1 = 0 ;
36425 int res1 = 0 ;
36426 wxPoint temp2 ;
36427 wxPoint temp3 ;
36428 PyObject * obj0 = 0 ;
36429 PyObject * obj1 = 0 ;
36430 PyObject * obj2 = 0 ;
36431 char * kwnames[] = {
36432 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36433 };
36434
36435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36437 if (!SWIG_IsOK(res1)) {
36438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36439 }
36440 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36441 {
36442 arg2 = &temp2;
36443 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36444 }
36445 {
36446 arg3 = &temp3;
36447 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36448 }
36449 {
36450 PyThreadState* __tstate = wxPyBeginAllowThreads();
36451 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36452 wxPyEndAllowThreads(__tstate);
36453 if (PyErr_Occurred()) SWIG_fail;
36454 }
36455 resultobj = SWIG_Py_Void();
36456 return resultobj;
36457fail:
36458 return NULL;
36459}
36460
36461
36462SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36463 PyObject *resultobj = 0;
36464 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36465 int arg2 ;
36466 int arg3 ;
36467 void *argp1 = 0 ;
36468 int res1 = 0 ;
36469 int val2 ;
36470 int ecode2 = 0 ;
36471 int val3 ;
36472 int ecode3 = 0 ;
36473 PyObject * obj0 = 0 ;
36474 PyObject * obj1 = 0 ;
36475 PyObject * obj2 = 0 ;
36476 char * kwnames[] = {
36477 (char *) "self",(char *) "x",(char *) "y", NULL
36478 };
36479
36480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36482 if (!SWIG_IsOK(res1)) {
36483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36484 }
36485 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36486 ecode2 = SWIG_AsVal_int(obj1, &val2);
36487 if (!SWIG_IsOK(ecode2)) {
36488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36489 }
36490 arg2 = static_cast< int >(val2);
36491 ecode3 = SWIG_AsVal_int(obj2, &val3);
36492 if (!SWIG_IsOK(ecode3)) {
36493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36494 }
36495 arg3 = static_cast< int >(val3);
36496 {
36497 PyThreadState* __tstate = wxPyBeginAllowThreads();
36498 (arg1)->CrossHair(arg2,arg3);
36499 wxPyEndAllowThreads(__tstate);
36500 if (PyErr_Occurred()) SWIG_fail;
36501 }
36502 resultobj = SWIG_Py_Void();
36503 return resultobj;
36504fail:
36505 return NULL;
36506}
36507
36508
36509SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36510 PyObject *resultobj = 0;
36511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36512 wxPoint *arg2 = 0 ;
36513 void *argp1 = 0 ;
36514 int res1 = 0 ;
36515 wxPoint temp2 ;
36516 PyObject * obj0 = 0 ;
36517 PyObject * obj1 = 0 ;
36518 char * kwnames[] = {
36519 (char *) "self",(char *) "pt", NULL
36520 };
36521
36522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36524 if (!SWIG_IsOK(res1)) {
36525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36526 }
36527 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36528 {
36529 arg2 = &temp2;
36530 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36531 }
36532 {
36533 PyThreadState* __tstate = wxPyBeginAllowThreads();
36534 (arg1)->CrossHair((wxPoint const &)*arg2);
36535 wxPyEndAllowThreads(__tstate);
36536 if (PyErr_Occurred()) SWIG_fail;
36537 }
36538 resultobj = SWIG_Py_Void();
36539 return resultobj;
36540fail:
36541 return NULL;
36542}
36543
36544
36545SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36546 PyObject *resultobj = 0;
36547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36548 int arg2 ;
36549 int arg3 ;
36550 int arg4 ;
36551 int arg5 ;
36552 int arg6 ;
36553 int arg7 ;
36554 void *argp1 = 0 ;
36555 int res1 = 0 ;
36556 int val2 ;
36557 int ecode2 = 0 ;
36558 int val3 ;
36559 int ecode3 = 0 ;
36560 int val4 ;
36561 int ecode4 = 0 ;
36562 int val5 ;
36563 int ecode5 = 0 ;
36564 int val6 ;
36565 int ecode6 = 0 ;
36566 int val7 ;
36567 int ecode7 = 0 ;
36568 PyObject * obj0 = 0 ;
36569 PyObject * obj1 = 0 ;
36570 PyObject * obj2 = 0 ;
36571 PyObject * obj3 = 0 ;
36572 PyObject * obj4 = 0 ;
36573 PyObject * obj5 = 0 ;
36574 PyObject * obj6 = 0 ;
36575 char * kwnames[] = {
36576 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36577 };
36578
36579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36581 if (!SWIG_IsOK(res1)) {
36582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36583 }
36584 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36585 ecode2 = SWIG_AsVal_int(obj1, &val2);
36586 if (!SWIG_IsOK(ecode2)) {
36587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36588 }
36589 arg2 = static_cast< int >(val2);
36590 ecode3 = SWIG_AsVal_int(obj2, &val3);
36591 if (!SWIG_IsOK(ecode3)) {
36592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36593 }
36594 arg3 = static_cast< int >(val3);
36595 ecode4 = SWIG_AsVal_int(obj3, &val4);
36596 if (!SWIG_IsOK(ecode4)) {
36597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36598 }
36599 arg4 = static_cast< int >(val4);
36600 ecode5 = SWIG_AsVal_int(obj4, &val5);
36601 if (!SWIG_IsOK(ecode5)) {
36602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36603 }
36604 arg5 = static_cast< int >(val5);
36605 ecode6 = SWIG_AsVal_int(obj5, &val6);
36606 if (!SWIG_IsOK(ecode6)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36608 }
36609 arg6 = static_cast< int >(val6);
36610 ecode7 = SWIG_AsVal_int(obj6, &val7);
36611 if (!SWIG_IsOK(ecode7)) {
36612 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36613 }
36614 arg7 = static_cast< int >(val7);
36615 {
36616 PyThreadState* __tstate = wxPyBeginAllowThreads();
36617 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36618 wxPyEndAllowThreads(__tstate);
36619 if (PyErr_Occurred()) SWIG_fail;
36620 }
36621 resultobj = SWIG_Py_Void();
36622 return resultobj;
36623fail:
36624 return NULL;
36625}
36626
36627
36628SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36629 PyObject *resultobj = 0;
36630 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36631 wxPoint *arg2 = 0 ;
36632 wxPoint *arg3 = 0 ;
36633 wxPoint *arg4 = 0 ;
36634 void *argp1 = 0 ;
36635 int res1 = 0 ;
36636 wxPoint temp2 ;
36637 wxPoint temp3 ;
36638 wxPoint temp4 ;
36639 PyObject * obj0 = 0 ;
36640 PyObject * obj1 = 0 ;
36641 PyObject * obj2 = 0 ;
36642 PyObject * obj3 = 0 ;
36643 char * kwnames[] = {
36644 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36645 };
36646
36647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36649 if (!SWIG_IsOK(res1)) {
36650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36651 }
36652 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36653 {
36654 arg2 = &temp2;
36655 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36656 }
36657 {
36658 arg3 = &temp3;
36659 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36660 }
36661 {
36662 arg4 = &temp4;
36663 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36664 }
36665 {
36666 PyThreadState* __tstate = wxPyBeginAllowThreads();
36667 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36668 wxPyEndAllowThreads(__tstate);
36669 if (PyErr_Occurred()) SWIG_fail;
36670 }
36671 resultobj = SWIG_Py_Void();
36672 return resultobj;
36673fail:
36674 return NULL;
36675}
36676
36677
36678SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36679 PyObject *resultobj = 0;
36680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36681 int arg2 ;
36682 int arg3 ;
36683 int arg4 ;
36684 int arg5 ;
36685 void *argp1 = 0 ;
36686 int res1 = 0 ;
36687 int val2 ;
36688 int ecode2 = 0 ;
36689 int val3 ;
36690 int ecode3 = 0 ;
36691 int val4 ;
36692 int ecode4 = 0 ;
36693 int val5 ;
36694 int ecode5 = 0 ;
36695 PyObject * obj0 = 0 ;
36696 PyObject * obj1 = 0 ;
36697 PyObject * obj2 = 0 ;
36698 PyObject * obj3 = 0 ;
36699 PyObject * obj4 = 0 ;
36700 char * kwnames[] = {
36701 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36702 };
36703
36704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36706 if (!SWIG_IsOK(res1)) {
36707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36708 }
36709 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36710 ecode2 = SWIG_AsVal_int(obj1, &val2);
36711 if (!SWIG_IsOK(ecode2)) {
36712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36713 }
36714 arg2 = static_cast< int >(val2);
36715 ecode3 = SWIG_AsVal_int(obj2, &val3);
36716 if (!SWIG_IsOK(ecode3)) {
36717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36718 }
36719 arg3 = static_cast< int >(val3);
36720 ecode4 = SWIG_AsVal_int(obj3, &val4);
36721 if (!SWIG_IsOK(ecode4)) {
36722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36723 }
36724 arg4 = static_cast< int >(val4);
36725 ecode5 = SWIG_AsVal_int(obj4, &val5);
36726 if (!SWIG_IsOK(ecode5)) {
36727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36728 }
36729 arg5 = static_cast< int >(val5);
36730 {
36731 PyThreadState* __tstate = wxPyBeginAllowThreads();
36732 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36733 wxPyEndAllowThreads(__tstate);
36734 if (PyErr_Occurred()) SWIG_fail;
36735 }
36736 resultobj = SWIG_Py_Void();
36737 return resultobj;
36738fail:
36739 return NULL;
36740}
36741
36742
36743SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36744 PyObject *resultobj = 0;
36745 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36746 wxRect *arg2 = 0 ;
36747 void *argp1 = 0 ;
36748 int res1 = 0 ;
36749 wxRect temp2 ;
36750 PyObject * obj0 = 0 ;
36751 PyObject * obj1 = 0 ;
36752 char * kwnames[] = {
36753 (char *) "self",(char *) "rect", NULL
36754 };
36755
36756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36758 if (!SWIG_IsOK(res1)) {
36759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36760 }
36761 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36762 {
36763 arg2 = &temp2;
36764 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36765 }
36766 {
36767 PyThreadState* __tstate = wxPyBeginAllowThreads();
36768 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36769 wxPyEndAllowThreads(__tstate);
36770 if (PyErr_Occurred()) SWIG_fail;
36771 }
36772 resultobj = SWIG_Py_Void();
36773 return resultobj;
36774fail:
36775 return NULL;
36776}
36777
36778
36779SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36780 PyObject *resultobj = 0;
36781 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36782 int arg2 ;
36783 int arg3 ;
36784 int arg4 ;
36785 int arg5 ;
36786 double arg6 ;
36787 double arg7 ;
36788 void *argp1 = 0 ;
36789 int res1 = 0 ;
36790 int val2 ;
36791 int ecode2 = 0 ;
36792 int val3 ;
36793 int ecode3 = 0 ;
36794 int val4 ;
36795 int ecode4 = 0 ;
36796 int val5 ;
36797 int ecode5 = 0 ;
36798 double val6 ;
36799 int ecode6 = 0 ;
36800 double val7 ;
36801 int ecode7 = 0 ;
36802 PyObject * obj0 = 0 ;
36803 PyObject * obj1 = 0 ;
36804 PyObject * obj2 = 0 ;
36805 PyObject * obj3 = 0 ;
36806 PyObject * obj4 = 0 ;
36807 PyObject * obj5 = 0 ;
36808 PyObject * obj6 = 0 ;
36809 char * kwnames[] = {
36810 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36811 };
36812
36813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36815 if (!SWIG_IsOK(res1)) {
36816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36817 }
36818 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36819 ecode2 = SWIG_AsVal_int(obj1, &val2);
36820 if (!SWIG_IsOK(ecode2)) {
36821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36822 }
36823 arg2 = static_cast< int >(val2);
36824 ecode3 = SWIG_AsVal_int(obj2, &val3);
36825 if (!SWIG_IsOK(ecode3)) {
36826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36827 }
36828 arg3 = static_cast< int >(val3);
36829 ecode4 = SWIG_AsVal_int(obj3, &val4);
36830 if (!SWIG_IsOK(ecode4)) {
36831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36832 }
36833 arg4 = static_cast< int >(val4);
36834 ecode5 = SWIG_AsVal_int(obj4, &val5);
36835 if (!SWIG_IsOK(ecode5)) {
36836 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36837 }
36838 arg5 = static_cast< int >(val5);
36839 ecode6 = SWIG_AsVal_double(obj5, &val6);
36840 if (!SWIG_IsOK(ecode6)) {
36841 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36842 }
36843 arg6 = static_cast< double >(val6);
36844 ecode7 = SWIG_AsVal_double(obj6, &val7);
36845 if (!SWIG_IsOK(ecode7)) {
36846 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36847 }
36848 arg7 = static_cast< double >(val7);
36849 {
36850 PyThreadState* __tstate = wxPyBeginAllowThreads();
36851 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36852 wxPyEndAllowThreads(__tstate);
36853 if (PyErr_Occurred()) SWIG_fail;
36854 }
36855 resultobj = SWIG_Py_Void();
36856 return resultobj;
36857fail:
36858 return NULL;
36859}
36860
36861
36862SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36863 PyObject *resultobj = 0;
36864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36865 wxPoint *arg2 = 0 ;
36866 wxSize *arg3 = 0 ;
36867 double arg4 ;
36868 double arg5 ;
36869 void *argp1 = 0 ;
36870 int res1 = 0 ;
36871 wxPoint temp2 ;
36872 wxSize temp3 ;
36873 double val4 ;
36874 int ecode4 = 0 ;
36875 double val5 ;
36876 int ecode5 = 0 ;
36877 PyObject * obj0 = 0 ;
36878 PyObject * obj1 = 0 ;
36879 PyObject * obj2 = 0 ;
36880 PyObject * obj3 = 0 ;
36881 PyObject * obj4 = 0 ;
36882 char * kwnames[] = {
36883 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36884 };
36885
36886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36888 if (!SWIG_IsOK(res1)) {
36889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36890 }
36891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36892 {
36893 arg2 = &temp2;
36894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36895 }
36896 {
36897 arg3 = &temp3;
36898 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36899 }
36900 ecode4 = SWIG_AsVal_double(obj3, &val4);
36901 if (!SWIG_IsOK(ecode4)) {
36902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36903 }
36904 arg4 = static_cast< double >(val4);
36905 ecode5 = SWIG_AsVal_double(obj4, &val5);
36906 if (!SWIG_IsOK(ecode5)) {
36907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36908 }
36909 arg5 = static_cast< double >(val5);
36910 {
36911 PyThreadState* __tstate = wxPyBeginAllowThreads();
36912 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36913 wxPyEndAllowThreads(__tstate);
36914 if (PyErr_Occurred()) SWIG_fail;
36915 }
36916 resultobj = SWIG_Py_Void();
36917 return resultobj;
36918fail:
36919 return NULL;
36920}
36921
36922
36923SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36924 PyObject *resultobj = 0;
36925 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36926 int arg2 ;
36927 int arg3 ;
36928 void *argp1 = 0 ;
36929 int res1 = 0 ;
36930 int val2 ;
36931 int ecode2 = 0 ;
36932 int val3 ;
36933 int ecode3 = 0 ;
36934 PyObject * obj0 = 0 ;
36935 PyObject * obj1 = 0 ;
36936 PyObject * obj2 = 0 ;
36937 char * kwnames[] = {
36938 (char *) "self",(char *) "x",(char *) "y", NULL
36939 };
36940
36941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36943 if (!SWIG_IsOK(res1)) {
36944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36945 }
36946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36947 ecode2 = SWIG_AsVal_int(obj1, &val2);
36948 if (!SWIG_IsOK(ecode2)) {
36949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36950 }
36951 arg2 = static_cast< int >(val2);
36952 ecode3 = SWIG_AsVal_int(obj2, &val3);
36953 if (!SWIG_IsOK(ecode3)) {
36954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36955 }
36956 arg3 = static_cast< int >(val3);
36957 {
36958 PyThreadState* __tstate = wxPyBeginAllowThreads();
36959 (arg1)->DrawPoint(arg2,arg3);
36960 wxPyEndAllowThreads(__tstate);
36961 if (PyErr_Occurred()) SWIG_fail;
36962 }
36963 resultobj = SWIG_Py_Void();
36964 return resultobj;
36965fail:
36966 return NULL;
36967}
36968
36969
36970SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36971 PyObject *resultobj = 0;
36972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36973 wxPoint *arg2 = 0 ;
36974 void *argp1 = 0 ;
36975 int res1 = 0 ;
36976 wxPoint temp2 ;
36977 PyObject * obj0 = 0 ;
36978 PyObject * obj1 = 0 ;
36979 char * kwnames[] = {
36980 (char *) "self",(char *) "pt", NULL
36981 };
36982
36983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36985 if (!SWIG_IsOK(res1)) {
36986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36987 }
36988 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36989 {
36990 arg2 = &temp2;
36991 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36992 }
36993 {
36994 PyThreadState* __tstate = wxPyBeginAllowThreads();
36995 (arg1)->DrawPoint((wxPoint const &)*arg2);
36996 wxPyEndAllowThreads(__tstate);
36997 if (PyErr_Occurred()) SWIG_fail;
36998 }
36999 resultobj = SWIG_Py_Void();
37000 return resultobj;
37001fail:
37002 return NULL;
37003}
37004
37005
37006SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37007 PyObject *resultobj = 0;
37008 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37009 int arg2 ;
37010 int arg3 ;
37011 int arg4 ;
37012 int arg5 ;
37013 void *argp1 = 0 ;
37014 int res1 = 0 ;
37015 int val2 ;
37016 int ecode2 = 0 ;
37017 int val3 ;
37018 int ecode3 = 0 ;
37019 int val4 ;
37020 int ecode4 = 0 ;
37021 int val5 ;
37022 int ecode5 = 0 ;
37023 PyObject * obj0 = 0 ;
37024 PyObject * obj1 = 0 ;
37025 PyObject * obj2 = 0 ;
37026 PyObject * obj3 = 0 ;
37027 PyObject * obj4 = 0 ;
37028 char * kwnames[] = {
37029 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37030 };
37031
37032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37034 if (!SWIG_IsOK(res1)) {
37035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37036 }
37037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37038 ecode2 = SWIG_AsVal_int(obj1, &val2);
37039 if (!SWIG_IsOK(ecode2)) {
37040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37041 }
37042 arg2 = static_cast< int >(val2);
37043 ecode3 = SWIG_AsVal_int(obj2, &val3);
37044 if (!SWIG_IsOK(ecode3)) {
37045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37046 }
37047 arg3 = static_cast< int >(val3);
37048 ecode4 = SWIG_AsVal_int(obj3, &val4);
37049 if (!SWIG_IsOK(ecode4)) {
37050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37051 }
37052 arg4 = static_cast< int >(val4);
37053 ecode5 = SWIG_AsVal_int(obj4, &val5);
37054 if (!SWIG_IsOK(ecode5)) {
37055 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37056 }
37057 arg5 = static_cast< int >(val5);
37058 {
37059 PyThreadState* __tstate = wxPyBeginAllowThreads();
37060 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37061 wxPyEndAllowThreads(__tstate);
37062 if (PyErr_Occurred()) SWIG_fail;
37063 }
37064 resultobj = SWIG_Py_Void();
37065 return resultobj;
37066fail:
37067 return NULL;
37068}
37069
37070
37071SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37072 PyObject *resultobj = 0;
37073 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37074 wxRect *arg2 = 0 ;
37075 void *argp1 = 0 ;
37076 int res1 = 0 ;
37077 wxRect temp2 ;
37078 PyObject * obj0 = 0 ;
37079 PyObject * obj1 = 0 ;
37080 char * kwnames[] = {
37081 (char *) "self",(char *) "rect", NULL
37082 };
37083
37084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37086 if (!SWIG_IsOK(res1)) {
37087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37088 }
37089 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37090 {
37091 arg2 = &temp2;
37092 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37093 }
37094 {
37095 PyThreadState* __tstate = wxPyBeginAllowThreads();
37096 (arg1)->DrawRectangle((wxRect const &)*arg2);
37097 wxPyEndAllowThreads(__tstate);
37098 if (PyErr_Occurred()) SWIG_fail;
37099 }
37100 resultobj = SWIG_Py_Void();
37101 return resultobj;
37102fail:
37103 return NULL;
37104}
37105
37106
37107SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37108 PyObject *resultobj = 0;
37109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37110 wxPoint *arg2 = 0 ;
37111 wxSize *arg3 = 0 ;
37112 void *argp1 = 0 ;
37113 int res1 = 0 ;
37114 wxPoint temp2 ;
37115 wxSize temp3 ;
37116 PyObject * obj0 = 0 ;
37117 PyObject * obj1 = 0 ;
37118 PyObject * obj2 = 0 ;
37119 char * kwnames[] = {
37120 (char *) "self",(char *) "pt",(char *) "sz", NULL
37121 };
37122
37123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37125 if (!SWIG_IsOK(res1)) {
37126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37127 }
37128 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37129 {
37130 arg2 = &temp2;
37131 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37132 }
37133 {
37134 arg3 = &temp3;
37135 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37136 }
37137 {
37138 PyThreadState* __tstate = wxPyBeginAllowThreads();
37139 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37140 wxPyEndAllowThreads(__tstate);
37141 if (PyErr_Occurred()) SWIG_fail;
37142 }
37143 resultobj = SWIG_Py_Void();
37144 return resultobj;
37145fail:
37146 return NULL;
37147}
37148
37149
37150SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37151 PyObject *resultobj = 0;
37152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37153 int arg2 ;
37154 int arg3 ;
37155 int arg4 ;
37156 int arg5 ;
37157 double arg6 ;
37158 void *argp1 = 0 ;
37159 int res1 = 0 ;
37160 int val2 ;
37161 int ecode2 = 0 ;
37162 int val3 ;
37163 int ecode3 = 0 ;
37164 int val4 ;
37165 int ecode4 = 0 ;
37166 int val5 ;
37167 int ecode5 = 0 ;
37168 double val6 ;
37169 int ecode6 = 0 ;
37170 PyObject * obj0 = 0 ;
37171 PyObject * obj1 = 0 ;
37172 PyObject * obj2 = 0 ;
37173 PyObject * obj3 = 0 ;
37174 PyObject * obj4 = 0 ;
37175 PyObject * obj5 = 0 ;
37176 char * kwnames[] = {
37177 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37178 };
37179
37180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37182 if (!SWIG_IsOK(res1)) {
37183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37184 }
37185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37186 ecode2 = SWIG_AsVal_int(obj1, &val2);
37187 if (!SWIG_IsOK(ecode2)) {
37188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37189 }
37190 arg2 = static_cast< int >(val2);
37191 ecode3 = SWIG_AsVal_int(obj2, &val3);
37192 if (!SWIG_IsOK(ecode3)) {
37193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37194 }
37195 arg3 = static_cast< int >(val3);
37196 ecode4 = SWIG_AsVal_int(obj3, &val4);
37197 if (!SWIG_IsOK(ecode4)) {
37198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37199 }
37200 arg4 = static_cast< int >(val4);
37201 ecode5 = SWIG_AsVal_int(obj4, &val5);
37202 if (!SWIG_IsOK(ecode5)) {
37203 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37204 }
37205 arg5 = static_cast< int >(val5);
37206 ecode6 = SWIG_AsVal_double(obj5, &val6);
37207 if (!SWIG_IsOK(ecode6)) {
37208 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37209 }
37210 arg6 = static_cast< double >(val6);
37211 {
37212 PyThreadState* __tstate = wxPyBeginAllowThreads();
37213 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37214 wxPyEndAllowThreads(__tstate);
37215 if (PyErr_Occurred()) SWIG_fail;
37216 }
37217 resultobj = SWIG_Py_Void();
37218 return resultobj;
37219fail:
37220 return NULL;
37221}
37222
37223
37224SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37225 PyObject *resultobj = 0;
37226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37227 wxRect *arg2 = 0 ;
37228 double arg3 ;
37229 void *argp1 = 0 ;
37230 int res1 = 0 ;
37231 wxRect temp2 ;
37232 double val3 ;
37233 int ecode3 = 0 ;
37234 PyObject * obj0 = 0 ;
37235 PyObject * obj1 = 0 ;
37236 PyObject * obj2 = 0 ;
37237 char * kwnames[] = {
37238 (char *) "self",(char *) "r",(char *) "radius", NULL
37239 };
37240
37241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37243 if (!SWIG_IsOK(res1)) {
37244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37245 }
37246 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37247 {
37248 arg2 = &temp2;
37249 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37250 }
37251 ecode3 = SWIG_AsVal_double(obj2, &val3);
37252 if (!SWIG_IsOK(ecode3)) {
37253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37254 }
37255 arg3 = static_cast< double >(val3);
37256 {
37257 PyThreadState* __tstate = wxPyBeginAllowThreads();
37258 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37259 wxPyEndAllowThreads(__tstate);
37260 if (PyErr_Occurred()) SWIG_fail;
37261 }
37262 resultobj = SWIG_Py_Void();
37263 return resultobj;
37264fail:
37265 return NULL;
37266}
37267
37268
37269SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37270 PyObject *resultobj = 0;
37271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37272 wxPoint *arg2 = 0 ;
37273 wxSize *arg3 = 0 ;
37274 double arg4 ;
37275 void *argp1 = 0 ;
37276 int res1 = 0 ;
37277 wxPoint temp2 ;
37278 wxSize temp3 ;
37279 double val4 ;
37280 int ecode4 = 0 ;
37281 PyObject * obj0 = 0 ;
37282 PyObject * obj1 = 0 ;
37283 PyObject * obj2 = 0 ;
37284 PyObject * obj3 = 0 ;
37285 char * kwnames[] = {
37286 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37287 };
37288
37289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37291 if (!SWIG_IsOK(res1)) {
37292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37293 }
37294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37295 {
37296 arg2 = &temp2;
37297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37298 }
37299 {
37300 arg3 = &temp3;
37301 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37302 }
37303 ecode4 = SWIG_AsVal_double(obj3, &val4);
37304 if (!SWIG_IsOK(ecode4)) {
37305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37306 }
37307 arg4 = static_cast< double >(val4);
37308 {
37309 PyThreadState* __tstate = wxPyBeginAllowThreads();
37310 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37311 wxPyEndAllowThreads(__tstate);
37312 if (PyErr_Occurred()) SWIG_fail;
37313 }
37314 resultobj = SWIG_Py_Void();
37315 return resultobj;
37316fail:
37317 return NULL;
37318}
37319
37320
37321SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37322 PyObject *resultobj = 0;
37323 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37324 int arg2 ;
37325 int arg3 ;
37326 int arg4 ;
37327 void *argp1 = 0 ;
37328 int res1 = 0 ;
37329 int val2 ;
37330 int ecode2 = 0 ;
37331 int val3 ;
37332 int ecode3 = 0 ;
37333 int val4 ;
37334 int ecode4 = 0 ;
37335 PyObject * obj0 = 0 ;
37336 PyObject * obj1 = 0 ;
37337 PyObject * obj2 = 0 ;
37338 PyObject * obj3 = 0 ;
37339 char * kwnames[] = {
37340 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37341 };
37342
37343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37345 if (!SWIG_IsOK(res1)) {
37346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37347 }
37348 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37349 ecode2 = SWIG_AsVal_int(obj1, &val2);
37350 if (!SWIG_IsOK(ecode2)) {
37351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37352 }
37353 arg2 = static_cast< int >(val2);
37354 ecode3 = SWIG_AsVal_int(obj2, &val3);
37355 if (!SWIG_IsOK(ecode3)) {
37356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37357 }
37358 arg3 = static_cast< int >(val3);
37359 ecode4 = SWIG_AsVal_int(obj3, &val4);
37360 if (!SWIG_IsOK(ecode4)) {
37361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37362 }
37363 arg4 = static_cast< int >(val4);
37364 {
37365 PyThreadState* __tstate = wxPyBeginAllowThreads();
37366 (arg1)->DrawCircle(arg2,arg3,arg4);
37367 wxPyEndAllowThreads(__tstate);
37368 if (PyErr_Occurred()) SWIG_fail;
37369 }
37370 resultobj = SWIG_Py_Void();
37371 return resultobj;
37372fail:
37373 return NULL;
37374}
37375
37376
37377SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37378 PyObject *resultobj = 0;
37379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37380 wxPoint *arg2 = 0 ;
37381 int arg3 ;
37382 void *argp1 = 0 ;
37383 int res1 = 0 ;
37384 wxPoint temp2 ;
37385 int val3 ;
37386 int ecode3 = 0 ;
37387 PyObject * obj0 = 0 ;
37388 PyObject * obj1 = 0 ;
37389 PyObject * obj2 = 0 ;
37390 char * kwnames[] = {
37391 (char *) "self",(char *) "pt",(char *) "radius", NULL
37392 };
37393
37394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37396 if (!SWIG_IsOK(res1)) {
37397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37398 }
37399 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37400 {
37401 arg2 = &temp2;
37402 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37403 }
37404 ecode3 = SWIG_AsVal_int(obj2, &val3);
37405 if (!SWIG_IsOK(ecode3)) {
37406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37407 }
37408 arg3 = static_cast< int >(val3);
37409 {
37410 PyThreadState* __tstate = wxPyBeginAllowThreads();
37411 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37412 wxPyEndAllowThreads(__tstate);
37413 if (PyErr_Occurred()) SWIG_fail;
37414 }
37415 resultobj = SWIG_Py_Void();
37416 return resultobj;
37417fail:
37418 return NULL;
37419}
37420
37421
37422SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37423 PyObject *resultobj = 0;
37424 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37425 int arg2 ;
37426 int arg3 ;
37427 int arg4 ;
37428 int arg5 ;
37429 void *argp1 = 0 ;
37430 int res1 = 0 ;
37431 int val2 ;
37432 int ecode2 = 0 ;
37433 int val3 ;
37434 int ecode3 = 0 ;
37435 int val4 ;
37436 int ecode4 = 0 ;
37437 int val5 ;
37438 int ecode5 = 0 ;
37439 PyObject * obj0 = 0 ;
37440 PyObject * obj1 = 0 ;
37441 PyObject * obj2 = 0 ;
37442 PyObject * obj3 = 0 ;
37443 PyObject * obj4 = 0 ;
37444 char * kwnames[] = {
37445 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37446 };
37447
37448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37450 if (!SWIG_IsOK(res1)) {
37451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37452 }
37453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37454 ecode2 = SWIG_AsVal_int(obj1, &val2);
37455 if (!SWIG_IsOK(ecode2)) {
37456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37457 }
37458 arg2 = static_cast< int >(val2);
37459 ecode3 = SWIG_AsVal_int(obj2, &val3);
37460 if (!SWIG_IsOK(ecode3)) {
37461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37462 }
37463 arg3 = static_cast< int >(val3);
37464 ecode4 = SWIG_AsVal_int(obj3, &val4);
37465 if (!SWIG_IsOK(ecode4)) {
37466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37467 }
37468 arg4 = static_cast< int >(val4);
37469 ecode5 = SWIG_AsVal_int(obj4, &val5);
37470 if (!SWIG_IsOK(ecode5)) {
37471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37472 }
37473 arg5 = static_cast< int >(val5);
37474 {
37475 PyThreadState* __tstate = wxPyBeginAllowThreads();
37476 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37477 wxPyEndAllowThreads(__tstate);
37478 if (PyErr_Occurred()) SWIG_fail;
37479 }
37480 resultobj = SWIG_Py_Void();
37481 return resultobj;
37482fail:
37483 return NULL;
37484}
37485
37486
37487SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37488 PyObject *resultobj = 0;
37489 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37490 wxRect *arg2 = 0 ;
37491 void *argp1 = 0 ;
37492 int res1 = 0 ;
37493 wxRect temp2 ;
37494 PyObject * obj0 = 0 ;
37495 PyObject * obj1 = 0 ;
37496 char * kwnames[] = {
37497 (char *) "self",(char *) "rect", NULL
37498 };
37499
37500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37502 if (!SWIG_IsOK(res1)) {
37503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37504 }
37505 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37506 {
37507 arg2 = &temp2;
37508 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37509 }
37510 {
37511 PyThreadState* __tstate = wxPyBeginAllowThreads();
37512 (arg1)->DrawEllipse((wxRect const &)*arg2);
37513 wxPyEndAllowThreads(__tstate);
37514 if (PyErr_Occurred()) SWIG_fail;
37515 }
37516 resultobj = SWIG_Py_Void();
37517 return resultobj;
37518fail:
37519 return NULL;
37520}
37521
37522
37523SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37524 PyObject *resultobj = 0;
37525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37526 wxPoint *arg2 = 0 ;
37527 wxSize *arg3 = 0 ;
37528 void *argp1 = 0 ;
37529 int res1 = 0 ;
37530 wxPoint temp2 ;
37531 wxSize temp3 ;
37532 PyObject * obj0 = 0 ;
37533 PyObject * obj1 = 0 ;
37534 PyObject * obj2 = 0 ;
37535 char * kwnames[] = {
37536 (char *) "self",(char *) "pt",(char *) "sz", NULL
37537 };
37538
37539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37541 if (!SWIG_IsOK(res1)) {
37542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37543 }
37544 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37545 {
37546 arg2 = &temp2;
37547 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37548 }
37549 {
37550 arg3 = &temp3;
37551 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37552 }
37553 {
37554 PyThreadState* __tstate = wxPyBeginAllowThreads();
37555 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37556 wxPyEndAllowThreads(__tstate);
37557 if (PyErr_Occurred()) SWIG_fail;
37558 }
37559 resultobj = SWIG_Py_Void();
37560 return resultobj;
37561fail:
37562 return NULL;
37563}
37564
37565
37566SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37567 PyObject *resultobj = 0;
37568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37569 wxIcon *arg2 = 0 ;
37570 int arg3 ;
37571 int arg4 ;
37572 void *argp1 = 0 ;
37573 int res1 = 0 ;
37574 void *argp2 = 0 ;
37575 int res2 = 0 ;
37576 int val3 ;
37577 int ecode3 = 0 ;
37578 int val4 ;
37579 int ecode4 = 0 ;
37580 PyObject * obj0 = 0 ;
37581 PyObject * obj1 = 0 ;
37582 PyObject * obj2 = 0 ;
37583 PyObject * obj3 = 0 ;
37584 char * kwnames[] = {
37585 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37586 };
37587
37588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37590 if (!SWIG_IsOK(res1)) {
37591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37592 }
37593 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37595 if (!SWIG_IsOK(res2)) {
37596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37597 }
37598 if (!argp2) {
37599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37600 }
37601 arg2 = reinterpret_cast< wxIcon * >(argp2);
37602 ecode3 = SWIG_AsVal_int(obj2, &val3);
37603 if (!SWIG_IsOK(ecode3)) {
37604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37605 }
37606 arg3 = static_cast< int >(val3);
37607 ecode4 = SWIG_AsVal_int(obj3, &val4);
37608 if (!SWIG_IsOK(ecode4)) {
37609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37610 }
37611 arg4 = static_cast< int >(val4);
37612 {
37613 PyThreadState* __tstate = wxPyBeginAllowThreads();
37614 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37615 wxPyEndAllowThreads(__tstate);
37616 if (PyErr_Occurred()) SWIG_fail;
37617 }
37618 resultobj = SWIG_Py_Void();
37619 return resultobj;
37620fail:
37621 return NULL;
37622}
37623
37624
37625SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37626 PyObject *resultobj = 0;
37627 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37628 wxIcon *arg2 = 0 ;
37629 wxPoint *arg3 = 0 ;
37630 void *argp1 = 0 ;
37631 int res1 = 0 ;
37632 void *argp2 = 0 ;
37633 int res2 = 0 ;
37634 wxPoint temp3 ;
37635 PyObject * obj0 = 0 ;
37636 PyObject * obj1 = 0 ;
37637 PyObject * obj2 = 0 ;
37638 char * kwnames[] = {
37639 (char *) "self",(char *) "icon",(char *) "pt", NULL
37640 };
37641
37642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37644 if (!SWIG_IsOK(res1)) {
37645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37646 }
37647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37649 if (!SWIG_IsOK(res2)) {
37650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37651 }
37652 if (!argp2) {
37653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37654 }
37655 arg2 = reinterpret_cast< wxIcon * >(argp2);
37656 {
37657 arg3 = &temp3;
37658 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37659 }
37660 {
37661 PyThreadState* __tstate = wxPyBeginAllowThreads();
37662 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37663 wxPyEndAllowThreads(__tstate);
37664 if (PyErr_Occurred()) SWIG_fail;
37665 }
37666 resultobj = SWIG_Py_Void();
37667 return resultobj;
37668fail:
37669 return NULL;
37670}
37671
37672
37673SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37674 PyObject *resultobj = 0;
37675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37676 wxBitmap *arg2 = 0 ;
37677 int arg3 ;
37678 int arg4 ;
37679 bool arg5 = (bool) false ;
37680 void *argp1 = 0 ;
37681 int res1 = 0 ;
37682 void *argp2 = 0 ;
37683 int res2 = 0 ;
37684 int val3 ;
37685 int ecode3 = 0 ;
37686 int val4 ;
37687 int ecode4 = 0 ;
37688 bool val5 ;
37689 int ecode5 = 0 ;
37690 PyObject * obj0 = 0 ;
37691 PyObject * obj1 = 0 ;
37692 PyObject * obj2 = 0 ;
37693 PyObject * obj3 = 0 ;
37694 PyObject * obj4 = 0 ;
37695 char * kwnames[] = {
37696 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37697 };
37698
37699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37701 if (!SWIG_IsOK(res1)) {
37702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37703 }
37704 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37706 if (!SWIG_IsOK(res2)) {
37707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37708 }
37709 if (!argp2) {
37710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37711 }
37712 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37713 ecode3 = SWIG_AsVal_int(obj2, &val3);
37714 if (!SWIG_IsOK(ecode3)) {
37715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37716 }
37717 arg3 = static_cast< int >(val3);
37718 ecode4 = SWIG_AsVal_int(obj3, &val4);
37719 if (!SWIG_IsOK(ecode4)) {
37720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37721 }
37722 arg4 = static_cast< int >(val4);
37723 if (obj4) {
37724 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37725 if (!SWIG_IsOK(ecode5)) {
37726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37727 }
37728 arg5 = static_cast< bool >(val5);
37729 }
37730 {
37731 PyThreadState* __tstate = wxPyBeginAllowThreads();
37732 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37733 wxPyEndAllowThreads(__tstate);
37734 if (PyErr_Occurred()) SWIG_fail;
37735 }
37736 resultobj = SWIG_Py_Void();
37737 return resultobj;
37738fail:
37739 return NULL;
37740}
37741
37742
37743SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37744 PyObject *resultobj = 0;
37745 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37746 wxBitmap *arg2 = 0 ;
37747 wxPoint *arg3 = 0 ;
37748 bool arg4 = (bool) false ;
37749 void *argp1 = 0 ;
37750 int res1 = 0 ;
37751 void *argp2 = 0 ;
37752 int res2 = 0 ;
37753 wxPoint temp3 ;
37754 bool val4 ;
37755 int ecode4 = 0 ;
37756 PyObject * obj0 = 0 ;
37757 PyObject * obj1 = 0 ;
37758 PyObject * obj2 = 0 ;
37759 PyObject * obj3 = 0 ;
37760 char * kwnames[] = {
37761 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37762 };
37763
37764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37766 if (!SWIG_IsOK(res1)) {
37767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37768 }
37769 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37771 if (!SWIG_IsOK(res2)) {
37772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37773 }
37774 if (!argp2) {
37775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37776 }
37777 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37778 {
37779 arg3 = &temp3;
37780 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37781 }
37782 if (obj3) {
37783 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37784 if (!SWIG_IsOK(ecode4)) {
37785 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37786 }
37787 arg4 = static_cast< bool >(val4);
37788 }
37789 {
37790 PyThreadState* __tstate = wxPyBeginAllowThreads();
37791 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37792 wxPyEndAllowThreads(__tstate);
37793 if (PyErr_Occurred()) SWIG_fail;
37794 }
37795 resultobj = SWIG_Py_Void();
37796 return resultobj;
37797fail:
37798 return NULL;
37799}
37800
37801
37802SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37803 PyObject *resultobj = 0;
37804 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37805 wxString *arg2 = 0 ;
37806 int arg3 ;
37807 int arg4 ;
37808 void *argp1 = 0 ;
37809 int res1 = 0 ;
37810 bool temp2 = false ;
37811 int val3 ;
37812 int ecode3 = 0 ;
37813 int val4 ;
37814 int ecode4 = 0 ;
37815 PyObject * obj0 = 0 ;
37816 PyObject * obj1 = 0 ;
37817 PyObject * obj2 = 0 ;
37818 PyObject * obj3 = 0 ;
37819 char * kwnames[] = {
37820 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37821 };
37822
37823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37825 if (!SWIG_IsOK(res1)) {
37826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37827 }
37828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37829 {
37830 arg2 = wxString_in_helper(obj1);
37831 if (arg2 == NULL) SWIG_fail;
37832 temp2 = true;
37833 }
37834 ecode3 = SWIG_AsVal_int(obj2, &val3);
37835 if (!SWIG_IsOK(ecode3)) {
37836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37837 }
37838 arg3 = static_cast< int >(val3);
37839 ecode4 = SWIG_AsVal_int(obj3, &val4);
37840 if (!SWIG_IsOK(ecode4)) {
37841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37842 }
37843 arg4 = static_cast< int >(val4);
37844 {
37845 PyThreadState* __tstate = wxPyBeginAllowThreads();
37846 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 resultobj = SWIG_Py_Void();
37851 {
37852 if (temp2)
37853 delete arg2;
37854 }
37855 return resultobj;
37856fail:
37857 {
37858 if (temp2)
37859 delete arg2;
37860 }
37861 return NULL;
37862}
37863
37864
37865SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37866 PyObject *resultobj = 0;
37867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37868 wxString *arg2 = 0 ;
37869 wxPoint *arg3 = 0 ;
37870 void *argp1 = 0 ;
37871 int res1 = 0 ;
37872 bool temp2 = false ;
37873 wxPoint temp3 ;
37874 PyObject * obj0 = 0 ;
37875 PyObject * obj1 = 0 ;
37876 PyObject * obj2 = 0 ;
37877 char * kwnames[] = {
37878 (char *) "self",(char *) "text",(char *) "pt", NULL
37879 };
37880
37881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37883 if (!SWIG_IsOK(res1)) {
37884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37885 }
37886 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37887 {
37888 arg2 = wxString_in_helper(obj1);
37889 if (arg2 == NULL) SWIG_fail;
37890 temp2 = true;
37891 }
37892 {
37893 arg3 = &temp3;
37894 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37895 }
37896 {
37897 PyThreadState* __tstate = wxPyBeginAllowThreads();
37898 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37899 wxPyEndAllowThreads(__tstate);
37900 if (PyErr_Occurred()) SWIG_fail;
37901 }
37902 resultobj = SWIG_Py_Void();
37903 {
37904 if (temp2)
37905 delete arg2;
37906 }
37907 return resultobj;
37908fail:
37909 {
37910 if (temp2)
37911 delete arg2;
37912 }
37913 return NULL;
37914}
37915
37916
37917SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37918 PyObject *resultobj = 0;
37919 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37920 wxString *arg2 = 0 ;
37921 int arg3 ;
37922 int arg4 ;
37923 double arg5 ;
37924 void *argp1 = 0 ;
37925 int res1 = 0 ;
37926 bool temp2 = false ;
37927 int val3 ;
37928 int ecode3 = 0 ;
37929 int val4 ;
37930 int ecode4 = 0 ;
37931 double val5 ;
37932 int ecode5 = 0 ;
37933 PyObject * obj0 = 0 ;
37934 PyObject * obj1 = 0 ;
37935 PyObject * obj2 = 0 ;
37936 PyObject * obj3 = 0 ;
37937 PyObject * obj4 = 0 ;
37938 char * kwnames[] = {
37939 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37940 };
37941
37942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37944 if (!SWIG_IsOK(res1)) {
37945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37946 }
37947 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37948 {
37949 arg2 = wxString_in_helper(obj1);
37950 if (arg2 == NULL) SWIG_fail;
37951 temp2 = true;
37952 }
37953 ecode3 = SWIG_AsVal_int(obj2, &val3);
37954 if (!SWIG_IsOK(ecode3)) {
37955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37956 }
37957 arg3 = static_cast< int >(val3);
37958 ecode4 = SWIG_AsVal_int(obj3, &val4);
37959 if (!SWIG_IsOK(ecode4)) {
37960 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37961 }
37962 arg4 = static_cast< int >(val4);
37963 ecode5 = SWIG_AsVal_double(obj4, &val5);
37964 if (!SWIG_IsOK(ecode5)) {
37965 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37966 }
37967 arg5 = static_cast< double >(val5);
37968 {
37969 PyThreadState* __tstate = wxPyBeginAllowThreads();
37970 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37971 wxPyEndAllowThreads(__tstate);
37972 if (PyErr_Occurred()) SWIG_fail;
37973 }
37974 resultobj = SWIG_Py_Void();
37975 {
37976 if (temp2)
37977 delete arg2;
37978 }
37979 return resultobj;
37980fail:
37981 {
37982 if (temp2)
37983 delete arg2;
37984 }
37985 return NULL;
37986}
37987
37988
37989SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37990 PyObject *resultobj = 0;
37991 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37992 wxString *arg2 = 0 ;
37993 wxPoint *arg3 = 0 ;
37994 double arg4 ;
37995 void *argp1 = 0 ;
37996 int res1 = 0 ;
37997 bool temp2 = false ;
37998 wxPoint temp3 ;
37999 double val4 ;
38000 int ecode4 = 0 ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 PyObject * obj2 = 0 ;
38004 PyObject * obj3 = 0 ;
38005 char * kwnames[] = {
38006 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38007 };
38008
38009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38013 }
38014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38015 {
38016 arg2 = wxString_in_helper(obj1);
38017 if (arg2 == NULL) SWIG_fail;
38018 temp2 = true;
38019 }
38020 {
38021 arg3 = &temp3;
38022 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38023 }
38024 ecode4 = SWIG_AsVal_double(obj3, &val4);
38025 if (!SWIG_IsOK(ecode4)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38027 }
38028 arg4 = static_cast< double >(val4);
38029 {
38030 PyThreadState* __tstate = wxPyBeginAllowThreads();
38031 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38032 wxPyEndAllowThreads(__tstate);
38033 if (PyErr_Occurred()) SWIG_fail;
38034 }
38035 resultobj = SWIG_Py_Void();
38036 {
38037 if (temp2)
38038 delete arg2;
38039 }
38040 return resultobj;
38041fail:
38042 {
38043 if (temp2)
38044 delete arg2;
38045 }
38046 return NULL;
38047}
38048
38049
38050SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38051 PyObject *resultobj = 0;
38052 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38053 int arg2 ;
38054 wxPoint *arg3 = (wxPoint *) 0 ;
38055 int arg4 = (int) 0 ;
38056 int arg5 = (int) 0 ;
38057 void *argp1 = 0 ;
38058 int res1 = 0 ;
38059 int val4 ;
38060 int ecode4 = 0 ;
38061 int val5 ;
38062 int ecode5 = 0 ;
38063 PyObject * obj0 = 0 ;
38064 PyObject * obj1 = 0 ;
38065 PyObject * obj2 = 0 ;
38066 PyObject * obj3 = 0 ;
38067 char * kwnames[] = {
38068 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38069 };
38070
38071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38073 if (!SWIG_IsOK(res1)) {
38074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38075 }
38076 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38077 {
38078 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38079 if (arg3 == NULL) SWIG_fail;
38080 }
38081 if (obj2) {
38082 ecode4 = SWIG_AsVal_int(obj2, &val4);
38083 if (!SWIG_IsOK(ecode4)) {
38084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38085 }
38086 arg4 = static_cast< int >(val4);
38087 }
38088 if (obj3) {
38089 ecode5 = SWIG_AsVal_int(obj3, &val5);
38090 if (!SWIG_IsOK(ecode5)) {
38091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38092 }
38093 arg5 = static_cast< int >(val5);
38094 }
38095 {
38096 PyThreadState* __tstate = wxPyBeginAllowThreads();
38097 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38098 wxPyEndAllowThreads(__tstate);
38099 if (PyErr_Occurred()) SWIG_fail;
38100 }
38101 resultobj = SWIG_Py_Void();
38102 {
38103 if (arg3) delete [] arg3;
38104 }
38105 return resultobj;
38106fail:
38107 {
38108 if (arg3) delete [] arg3;
38109 }
38110 return NULL;
38111}
38112
38113
38114SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38115 PyObject *resultobj = 0;
38116 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38117 int arg2 ;
38118 wxPoint *arg3 = (wxPoint *) 0 ;
38119 int arg4 = (int) 0 ;
38120 int arg5 = (int) 0 ;
38121 int arg6 = (int) wxODDEVEN_RULE ;
38122 void *argp1 = 0 ;
38123 int res1 = 0 ;
38124 int val4 ;
38125 int ecode4 = 0 ;
38126 int val5 ;
38127 int ecode5 = 0 ;
38128 int val6 ;
38129 int ecode6 = 0 ;
38130 PyObject * obj0 = 0 ;
38131 PyObject * obj1 = 0 ;
38132 PyObject * obj2 = 0 ;
38133 PyObject * obj3 = 0 ;
38134 PyObject * obj4 = 0 ;
38135 char * kwnames[] = {
38136 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38137 };
38138
38139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38141 if (!SWIG_IsOK(res1)) {
38142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38143 }
38144 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38145 {
38146 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38147 if (arg3 == NULL) SWIG_fail;
38148 }
38149 if (obj2) {
38150 ecode4 = SWIG_AsVal_int(obj2, &val4);
38151 if (!SWIG_IsOK(ecode4)) {
38152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38153 }
38154 arg4 = static_cast< int >(val4);
38155 }
38156 if (obj3) {
38157 ecode5 = SWIG_AsVal_int(obj3, &val5);
38158 if (!SWIG_IsOK(ecode5)) {
38159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38160 }
38161 arg5 = static_cast< int >(val5);
38162 }
38163 if (obj4) {
38164 ecode6 = SWIG_AsVal_int(obj4, &val6);
38165 if (!SWIG_IsOK(ecode6)) {
38166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38167 }
38168 arg6 = static_cast< int >(val6);
38169 }
38170 {
38171 PyThreadState* __tstate = wxPyBeginAllowThreads();
38172 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38173 wxPyEndAllowThreads(__tstate);
38174 if (PyErr_Occurred()) SWIG_fail;
38175 }
38176 resultobj = SWIG_Py_Void();
38177 {
38178 if (arg3) delete [] arg3;
38179 }
38180 return resultobj;
38181fail:
38182 {
38183 if (arg3) delete [] arg3;
38184 }
38185 return NULL;
38186}
38187
38188
38189SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38190 PyObject *resultobj = 0;
38191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38192 wxString *arg2 = 0 ;
38193 wxRect *arg3 = 0 ;
38194 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38195 int arg5 = (int) -1 ;
38196 void *argp1 = 0 ;
38197 int res1 = 0 ;
38198 bool temp2 = false ;
38199 wxRect temp3 ;
38200 int val4 ;
38201 int ecode4 = 0 ;
38202 int val5 ;
38203 int ecode5 = 0 ;
38204 PyObject * obj0 = 0 ;
38205 PyObject * obj1 = 0 ;
38206 PyObject * obj2 = 0 ;
38207 PyObject * obj3 = 0 ;
38208 PyObject * obj4 = 0 ;
38209 char * kwnames[] = {
38210 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38211 };
38212
38213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38215 if (!SWIG_IsOK(res1)) {
38216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38217 }
38218 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38219 {
38220 arg2 = wxString_in_helper(obj1);
38221 if (arg2 == NULL) SWIG_fail;
38222 temp2 = true;
38223 }
38224 {
38225 arg3 = &temp3;
38226 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38227 }
38228 if (obj3) {
38229 ecode4 = SWIG_AsVal_int(obj3, &val4);
38230 if (!SWIG_IsOK(ecode4)) {
38231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38232 }
38233 arg4 = static_cast< int >(val4);
38234 }
38235 if (obj4) {
38236 ecode5 = SWIG_AsVal_int(obj4, &val5);
38237 if (!SWIG_IsOK(ecode5)) {
38238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38239 }
38240 arg5 = static_cast< int >(val5);
38241 }
38242 {
38243 PyThreadState* __tstate = wxPyBeginAllowThreads();
38244 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38245 wxPyEndAllowThreads(__tstate);
38246 if (PyErr_Occurred()) SWIG_fail;
38247 }
38248 resultobj = SWIG_Py_Void();
38249 {
38250 if (temp2)
38251 delete arg2;
38252 }
38253 return resultobj;
38254fail:
38255 {
38256 if (temp2)
38257 delete arg2;
38258 }
38259 return NULL;
38260}
38261
38262
38263SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38264 PyObject *resultobj = 0;
38265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38266 wxString *arg2 = 0 ;
38267 wxBitmap *arg3 = 0 ;
38268 wxRect *arg4 = 0 ;
38269 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38270 int arg6 = (int) -1 ;
38271 void *argp1 = 0 ;
38272 int res1 = 0 ;
38273 bool temp2 = false ;
38274 void *argp3 = 0 ;
38275 int res3 = 0 ;
38276 wxRect temp4 ;
38277 int val5 ;
38278 int ecode5 = 0 ;
38279 int val6 ;
38280 int ecode6 = 0 ;
38281 PyObject * obj0 = 0 ;
38282 PyObject * obj1 = 0 ;
38283 PyObject * obj2 = 0 ;
38284 PyObject * obj3 = 0 ;
38285 PyObject * obj4 = 0 ;
38286 PyObject * obj5 = 0 ;
38287 char * kwnames[] = {
38288 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38289 };
38290
38291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38293 if (!SWIG_IsOK(res1)) {
38294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38295 }
38296 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38297 {
38298 arg2 = wxString_in_helper(obj1);
38299 if (arg2 == NULL) SWIG_fail;
38300 temp2 = true;
38301 }
38302 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38303 if (!SWIG_IsOK(res3)) {
38304 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38305 }
38306 if (!argp3) {
38307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38308 }
38309 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38310 {
38311 arg4 = &temp4;
38312 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38313 }
38314 if (obj4) {
38315 ecode5 = SWIG_AsVal_int(obj4, &val5);
38316 if (!SWIG_IsOK(ecode5)) {
38317 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38318 }
38319 arg5 = static_cast< int >(val5);
38320 }
38321 if (obj5) {
38322 ecode6 = SWIG_AsVal_int(obj5, &val6);
38323 if (!SWIG_IsOK(ecode6)) {
38324 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38325 }
38326 arg6 = static_cast< int >(val6);
38327 }
38328 {
38329 PyThreadState* __tstate = wxPyBeginAllowThreads();
38330 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38331 wxPyEndAllowThreads(__tstate);
38332 if (PyErr_Occurred()) SWIG_fail;
38333 }
38334 resultobj = SWIG_Py_Void();
38335 {
38336 if (temp2)
38337 delete arg2;
38338 }
38339 return resultobj;
38340fail:
38341 {
38342 if (temp2)
38343 delete arg2;
38344 }
38345 return NULL;
38346}
38347
38348
38349SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38350 PyObject *resultobj = 0;
38351 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38352 int arg2 ;
38353 wxPoint *arg3 = (wxPoint *) 0 ;
38354 void *argp1 = 0 ;
38355 int res1 = 0 ;
38356 PyObject * obj0 = 0 ;
38357 PyObject * obj1 = 0 ;
38358 char * kwnames[] = {
38359 (char *) "self",(char *) "points", NULL
38360 };
38361
38362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38364 if (!SWIG_IsOK(res1)) {
38365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38366 }
38367 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38368 {
38369 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38370 if (arg3 == NULL) SWIG_fail;
38371 }
38372 {
38373 PyThreadState* __tstate = wxPyBeginAllowThreads();
38374 (arg1)->DrawSpline(arg2,arg3);
38375 wxPyEndAllowThreads(__tstate);
38376 if (PyErr_Occurred()) SWIG_fail;
38377 }
38378 resultobj = SWIG_Py_Void();
38379 {
38380 if (arg3) delete [] arg3;
38381 }
38382 return resultobj;
38383fail:
38384 {
38385 if (arg3) delete [] arg3;
38386 }
38387 return NULL;
38388}
38389
38390
38391SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38392 PyObject *resultobj = 0;
38393 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38394 void *argp1 = 0 ;
38395 int res1 = 0 ;
38396 PyObject *swig_obj[1] ;
38397
38398 if (!args) SWIG_fail;
38399 swig_obj[0] = args;
38400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38401 if (!SWIG_IsOK(res1)) {
38402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38403 }
38404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38405 {
38406 PyThreadState* __tstate = wxPyBeginAllowThreads();
38407 (arg1)->Clear();
38408 wxPyEndAllowThreads(__tstate);
38409 if (PyErr_Occurred()) SWIG_fail;
38410 }
38411 resultobj = SWIG_Py_Void();
38412 return resultobj;
38413fail:
38414 return NULL;
38415}
38416
38417
38418SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38419 PyObject *resultobj = 0;
38420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38421 wxFont *arg2 = 0 ;
38422 void *argp1 = 0 ;
38423 int res1 = 0 ;
38424 void *argp2 = 0 ;
38425 int res2 = 0 ;
38426 PyObject * obj0 = 0 ;
38427 PyObject * obj1 = 0 ;
38428 char * kwnames[] = {
38429 (char *) "self",(char *) "font", NULL
38430 };
38431
38432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38434 if (!SWIG_IsOK(res1)) {
38435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38436 }
38437 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38438 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38439 if (!SWIG_IsOK(res2)) {
38440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38441 }
38442 if (!argp2) {
38443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38444 }
38445 arg2 = reinterpret_cast< wxFont * >(argp2);
38446 {
38447 PyThreadState* __tstate = wxPyBeginAllowThreads();
38448 (arg1)->SetFont((wxFont const &)*arg2);
38449 wxPyEndAllowThreads(__tstate);
38450 if (PyErr_Occurred()) SWIG_fail;
38451 }
38452 resultobj = SWIG_Py_Void();
38453 return resultobj;
38454fail:
38455 return NULL;
38456}
38457
38458
38459SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38460 PyObject *resultobj = 0;
38461 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38462 wxPen *arg2 = 0 ;
38463 void *argp1 = 0 ;
38464 int res1 = 0 ;
38465 void *argp2 = 0 ;
38466 int res2 = 0 ;
38467 PyObject * obj0 = 0 ;
38468 PyObject * obj1 = 0 ;
38469 char * kwnames[] = {
38470 (char *) "self",(char *) "pen", NULL
38471 };
38472
38473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38475 if (!SWIG_IsOK(res1)) {
38476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38477 }
38478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38480 if (!SWIG_IsOK(res2)) {
38481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38482 }
38483 if (!argp2) {
38484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38485 }
38486 arg2 = reinterpret_cast< wxPen * >(argp2);
38487 {
38488 PyThreadState* __tstate = wxPyBeginAllowThreads();
38489 (arg1)->SetPen((wxPen const &)*arg2);
38490 wxPyEndAllowThreads(__tstate);
38491 if (PyErr_Occurred()) SWIG_fail;
38492 }
38493 resultobj = SWIG_Py_Void();
38494 return resultobj;
38495fail:
38496 return NULL;
38497}
38498
38499
38500SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38501 PyObject *resultobj = 0;
38502 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38503 wxBrush *arg2 = 0 ;
38504 void *argp1 = 0 ;
38505 int res1 = 0 ;
38506 void *argp2 = 0 ;
38507 int res2 = 0 ;
38508 PyObject * obj0 = 0 ;
38509 PyObject * obj1 = 0 ;
38510 char * kwnames[] = {
38511 (char *) "self",(char *) "brush", NULL
38512 };
38513
38514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38516 if (!SWIG_IsOK(res1)) {
38517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38518 }
38519 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38521 if (!SWIG_IsOK(res2)) {
38522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38523 }
38524 if (!argp2) {
38525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38526 }
38527 arg2 = reinterpret_cast< wxBrush * >(argp2);
38528 {
38529 PyThreadState* __tstate = wxPyBeginAllowThreads();
38530 (arg1)->SetBrush((wxBrush const &)*arg2);
38531 wxPyEndAllowThreads(__tstate);
38532 if (PyErr_Occurred()) SWIG_fail;
38533 }
38534 resultobj = SWIG_Py_Void();
38535 return resultobj;
38536fail:
38537 return NULL;
38538}
38539
38540
38541SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38542 PyObject *resultobj = 0;
38543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38544 wxBrush *arg2 = 0 ;
38545 void *argp1 = 0 ;
38546 int res1 = 0 ;
38547 void *argp2 = 0 ;
38548 int res2 = 0 ;
38549 PyObject * obj0 = 0 ;
38550 PyObject * obj1 = 0 ;
38551 char * kwnames[] = {
38552 (char *) "self",(char *) "brush", NULL
38553 };
38554
38555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38557 if (!SWIG_IsOK(res1)) {
38558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38559 }
38560 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38561 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38562 if (!SWIG_IsOK(res2)) {
38563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38564 }
38565 if (!argp2) {
38566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38567 }
38568 arg2 = reinterpret_cast< wxBrush * >(argp2);
38569 {
38570 PyThreadState* __tstate = wxPyBeginAllowThreads();
38571 (arg1)->SetBackground((wxBrush const &)*arg2);
38572 wxPyEndAllowThreads(__tstate);
38573 if (PyErr_Occurred()) SWIG_fail;
38574 }
38575 resultobj = SWIG_Py_Void();
38576 return resultobj;
38577fail:
38578 return NULL;
38579}
38580
38581
38582SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38583 PyObject *resultobj = 0;
38584 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38585 int arg2 ;
38586 void *argp1 = 0 ;
38587 int res1 = 0 ;
38588 int val2 ;
38589 int ecode2 = 0 ;
38590 PyObject * obj0 = 0 ;
38591 PyObject * obj1 = 0 ;
38592 char * kwnames[] = {
38593 (char *) "self",(char *) "mode", NULL
38594 };
38595
38596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38598 if (!SWIG_IsOK(res1)) {
38599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38600 }
38601 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38602 ecode2 = SWIG_AsVal_int(obj1, &val2);
38603 if (!SWIG_IsOK(ecode2)) {
38604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38605 }
38606 arg2 = static_cast< int >(val2);
38607 {
38608 PyThreadState* __tstate = wxPyBeginAllowThreads();
38609 (arg1)->SetBackgroundMode(arg2);
38610 wxPyEndAllowThreads(__tstate);
38611 if (PyErr_Occurred()) SWIG_fail;
38612 }
38613 resultobj = SWIG_Py_Void();
38614 return resultobj;
38615fail:
38616 return NULL;
38617}
38618
38619
38620SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38621 PyObject *resultobj = 0;
38622 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38623 wxPalette *arg2 = 0 ;
38624 void *argp1 = 0 ;
38625 int res1 = 0 ;
38626 void *argp2 = 0 ;
38627 int res2 = 0 ;
38628 PyObject * obj0 = 0 ;
38629 PyObject * obj1 = 0 ;
38630 char * kwnames[] = {
38631 (char *) "self",(char *) "palette", NULL
38632 };
38633
38634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38636 if (!SWIG_IsOK(res1)) {
38637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38638 }
38639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38641 if (!SWIG_IsOK(res2)) {
38642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38643 }
38644 if (!argp2) {
38645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38646 }
38647 arg2 = reinterpret_cast< wxPalette * >(argp2);
38648 {
38649 PyThreadState* __tstate = wxPyBeginAllowThreads();
38650 (arg1)->SetPalette((wxPalette const &)*arg2);
38651 wxPyEndAllowThreads(__tstate);
38652 if (PyErr_Occurred()) SWIG_fail;
38653 }
38654 resultobj = SWIG_Py_Void();
38655 return resultobj;
38656fail:
38657 return NULL;
38658}
38659
38660
38661SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38662 PyObject *resultobj = 0;
38663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38664 wxColour *arg2 = 0 ;
38665 void *argp1 = 0 ;
38666 int res1 = 0 ;
38667 wxColour temp2 ;
38668 PyObject * obj0 = 0 ;
38669 PyObject * obj1 = 0 ;
38670 char * kwnames[] = {
38671 (char *) "self",(char *) "colour", NULL
38672 };
38673
38674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38676 if (!SWIG_IsOK(res1)) {
38677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38678 }
38679 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38680 {
38681 arg2 = &temp2;
38682 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38683 }
38684 {
38685 PyThreadState* __tstate = wxPyBeginAllowThreads();
38686 (arg1)->SetTextForeground((wxColour const &)*arg2);
38687 wxPyEndAllowThreads(__tstate);
38688 if (PyErr_Occurred()) SWIG_fail;
38689 }
38690 resultobj = SWIG_Py_Void();
38691 return resultobj;
38692fail:
38693 return NULL;
38694}
38695
38696
38697SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38698 PyObject *resultobj = 0;
38699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38700 wxColour *arg2 = 0 ;
38701 void *argp1 = 0 ;
38702 int res1 = 0 ;
38703 wxColour temp2 ;
38704 PyObject * obj0 = 0 ;
38705 PyObject * obj1 = 0 ;
38706 char * kwnames[] = {
38707 (char *) "self",(char *) "colour", NULL
38708 };
38709
38710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38712 if (!SWIG_IsOK(res1)) {
38713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38714 }
38715 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38716 {
38717 arg2 = &temp2;
38718 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38719 }
38720 {
38721 PyThreadState* __tstate = wxPyBeginAllowThreads();
38722 (arg1)->SetTextBackground((wxColour const &)*arg2);
38723 wxPyEndAllowThreads(__tstate);
38724 if (PyErr_Occurred()) SWIG_fail;
38725 }
38726 resultobj = SWIG_Py_Void();
38727 return resultobj;
38728fail:
38729 return NULL;
38730}
38731
38732
38733SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38734 PyObject *resultobj = 0;
38735 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38736 int arg2 ;
38737 void *argp1 = 0 ;
38738 int res1 = 0 ;
38739 int val2 ;
38740 int ecode2 = 0 ;
38741 PyObject * obj0 = 0 ;
38742 PyObject * obj1 = 0 ;
38743 char * kwnames[] = {
38744 (char *) "self",(char *) "function", NULL
38745 };
38746
38747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38749 if (!SWIG_IsOK(res1)) {
38750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38751 }
38752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38753 ecode2 = SWIG_AsVal_int(obj1, &val2);
38754 if (!SWIG_IsOK(ecode2)) {
38755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38756 }
38757 arg2 = static_cast< int >(val2);
38758 {
38759 PyThreadState* __tstate = wxPyBeginAllowThreads();
38760 (arg1)->SetLogicalFunction(arg2);
38761 wxPyEndAllowThreads(__tstate);
38762 if (PyErr_Occurred()) SWIG_fail;
38763 }
38764 resultobj = SWIG_Py_Void();
38765 return resultobj;
38766fail:
38767 return NULL;
38768}
38769
38770
38771SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38772 PyObject *obj;
38773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38774 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38775 return SWIG_Py_Void();
38776}
38777
38778SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38779 return SWIG_Python_InitShadowInstance(args);
38780}
38781
38782static PyMethodDef SwigMethods[] = {
38783 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38784 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38785 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38786 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38787 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38788 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38792 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38793 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38794 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38795 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38796 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38797 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38802 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38804 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38805 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38806 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38807 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38808 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38810 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38813 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38814 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38815 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38816 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38818 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38819 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38820 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38821 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38822 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38823 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38824 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38831 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38833 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
38834 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38838 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38839 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38842 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38846 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38847 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38848 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38849 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38850 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38851 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38852 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38854 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
38860 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38861 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38862 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38863 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38864 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38865 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38866 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38867 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38868 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38874 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38884 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38885 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38889 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38890 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38891 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38892 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38893 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38894 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38895 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38896 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38897 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38898 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38899 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38900 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38901 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38902 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38903 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38905 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38906 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38912 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38913 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38914 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38915 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38916 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38917 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38918 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38919 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38920 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38921 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38922 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38923 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38925 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38926 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38932 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38933 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38934 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38936 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38937 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38938 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38940 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38941 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
38946 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38947 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38948 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38949 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38950 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38951 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38957 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38958 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38960 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38961 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38963 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38965 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38966 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38967 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38968 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38971 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38975 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38976 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38978 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
38981 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38982 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38983 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
38984 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
38985 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
38986 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38991 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38992 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38997 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38998 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39002 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39003 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39004 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39006 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 39008 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39009 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39019 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39022 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39023 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39025 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39026 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39027 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39028 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39029 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39030 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39031 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39032 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39033 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39034 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39035 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39036 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39037 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39038 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39039 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39040 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39041 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39043 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39044 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39045 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39046 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39047 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39048 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39049 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39050 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39060 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39061 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39063 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39064 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39065 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39066 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39067 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39068 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39069 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39070 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39071 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39073 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39074 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39075 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39078 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39079 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39080 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39083 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39084 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39089 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39094 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39095 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39097 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39102 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
39103 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39106 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39107 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39108 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39109 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39110 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39111 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39112 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39113 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39114 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39115 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39116 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39117 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39118 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39130 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39131 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39132 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39134 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39135 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39137 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39138 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39139 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39140 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39143 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39144 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39145 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39146 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39147 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39148 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39149 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39150 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39151 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39152 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39153 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39154 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39155 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39157 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39160 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39161 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39162 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39163 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39164 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39165 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39166 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39167 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39169 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39170 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39177 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39178 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39179 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39181 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39185 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39186 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39187 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39188 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39189 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39190 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39196 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39197 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39198 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39247 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39249 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39250 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39251 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39258 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39259 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39260 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39261 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39262 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39267 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39268 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39269 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39270 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39279 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39280 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39281 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39282 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
39283 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39284 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39285 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39286 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39287 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39288 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39289 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39290 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39293 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39295 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39297 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39299 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39300 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39303 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39304 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39308 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39310 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39313 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39314 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39315 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39316 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39317 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39318 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39319 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39320 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39321 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39328 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39330 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39331 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39332 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39334 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39335 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39336 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39338 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39339 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39340 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39341 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39342 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39343 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 39344 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39345 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39348 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39349 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39350 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39353 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39354 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39355 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39357 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39358 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39360 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39361 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39363 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39364 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39365 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39366 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39367 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39368 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39369 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39371 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39372 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39374 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39375 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39376 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39378 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39379 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39381 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39384 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39385 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39386 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39388 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
39389 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39391 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39392 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39393 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39394 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39395 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39396 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39398 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39399 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39400 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39402 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39403 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39405 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39406 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39407 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39408 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39409 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39410 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39411 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39412 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39413 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39414 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39415 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39416 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39417 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39418 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39419 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39420 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
5c8c7dd3
RD
39421 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39422 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39426 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39428 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39433 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39434 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 39435 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39436 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39437 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39438 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39439 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39440 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39441 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39442 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39443 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39447 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39450 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39453 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb
RD
39454 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39455 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
39456 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39457 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39458 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39459 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39460 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39466 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39467 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39468 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39469 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39470 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39471 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
39472 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39475 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39478 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39479 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39480 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39481 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39484 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39486 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39487 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39492 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39493 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39494 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39498 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39499 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39500 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39501 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39502 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39503 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39506 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39513 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39515 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39516 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39517 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39518 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39519 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39520 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39521 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39522 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39523 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39524 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39525 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39526 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39527 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39528 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39529 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39531 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39539 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39541 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39543 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
39544 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39545 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39546 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39547 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39548 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39554 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39555 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39556 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39557 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39558 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 39559 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39560 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39561 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39562 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 39563 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39564 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39565 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39566 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39567 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
39571 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39572 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39573 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39578 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39579 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39580 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39581 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39582 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
39583 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39584 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39585 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39586 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39587 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39588 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39589 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39598 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39599 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39601 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39602 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39603 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39604 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39605 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39606 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39607 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39608 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39609 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39610 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39611 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39612 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39613 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39614 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39615 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39616 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39617 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39618 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39619 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39620 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39621 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39622 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39623 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39624 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39625 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39626 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39628 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39629 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39630 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39631 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39632 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39634 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
39639 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39641 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39642 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39643 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39644 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39645 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39646 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39648 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39649 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39650 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39651 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39652 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39653 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39654 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39655 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39659 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39663 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39665 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39675 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39680 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39682 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39695 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39696 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39704 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39707 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39708 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39718 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39719 { NULL, NULL, 0, NULL }
39720};
39721
39722
39723/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39724
72ef6efb
RD
39725static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39726 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39727}
8e99bda9
RD
39728static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39729 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39730}
39731static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39732 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39733}
72ef6efb
RD
39734static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39735 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39736}
39737static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39738 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39739}
fc46b7f3
RD
39740static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39741 return (void *)((wxLocale *) ((wxPyLocale *) x));
39742}
70d7cb34
RD
39743static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39744 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39745}
39746static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39747 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39748}
39749static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39750 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39751}
39752static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39753 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39754}
39755static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39756 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39757}
39758static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39759 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39760}
554f62e9
RD
39761static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39762 return (void *)((wxGDIObject *) ((wxIcon *) x));
39763}
39764static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39765 return (void *)((wxGDIObject *) ((wxPalette *) x));
39766}
39767static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39768 return (void *)((wxGDIObject *) ((wxPen *) x));
39769}
39770static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39771 return (void *)((wxGDIObject *) ((wxFont *) x));
39772}
39773static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39774 return (void *)((wxGDIObject *) ((wxCursor *) x));
39775}
39776static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39777 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39778}
39779static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39780 return (void *)((wxGDIObject *) ((wxRegion *) x));
39781}
39782static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39783 return (void *)((wxGDIObject *) ((wxBrush *) x));
39784}
72ef6efb
RD
39785static void *_p_wxGCDCTo_p_wxDC(void *x) {
39786 return (void *)((wxDC *) ((wxGCDC *) x));
39787}
554f62e9
RD
39788static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39789 return (void *)((wxDC *) ((wxScreenDC *) x));
39790}
24f6c4e8
RD
39791static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39792 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39793}
554f62e9
RD
39794static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39795 return (void *)((wxDC *) ((wxMirrorDC *) x));
39796}
39797static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39798 return (void *)((wxDC *) ((wxMemoryDC *) x));
39799}
39800static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39801 return (void *)((wxDC *) ((wxWindowDC *) x));
39802}
39803static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39804 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39805}
554f62e9 39806static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39807 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
39808}
39809static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39810 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 39811}
24f6c4e8
RD
39812static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39813 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39814}
39815static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39816 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39817}
554f62e9
RD
39818static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39819 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39820}
39821static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39822 return (void *)((wxDC *) ((wxPrinterDC *) x));
39823}
50efceee
RD
39824static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39825 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39826}
39827static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39828 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39829}
39830static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39831 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39832}
554f62e9
RD
39833static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39834 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39835}
39836static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39837 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39838}
39839static void *_p_wxPenTo_p_wxObject(void *x) {
39840 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39841}
39842static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39843 return (void *)((wxObject *) ((wxRegionIterator *) x));
39844}
554f62e9
RD
39845static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39846 return (void *)((wxObject *) ((wxSizerItem *) x));
39847}
0f83f5da
RD
39848static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39849 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39850}
554f62e9
RD
39851static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39852 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39853}
39854static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39855 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39856}
39857static void *_p_wxIconTo_p_wxObject(void *x) {
39858 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39859}
39860static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39861 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39862}
39863static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39864 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39865}
39866static void *_p_wxSizerTo_p_wxObject(void *x) {
39867 return (void *)((wxObject *) ((wxSizer *) x));
39868}
39869static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39870 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39871}
39872static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39873 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39874}
554f62e9
RD
39875static void *_p_wxEventTo_p_wxObject(void *x) {
39876 return (void *)((wxObject *) ((wxEvent *) x));
39877}
39878static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39879 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39880}
39881static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39882 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39883}
39884static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39885 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39886}
27e45892
RD
39887static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39888 return (void *)((wxObject *) ((wxPseudoDC *) x));
39889}
2131d850
RD
39890static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39891 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39892}
554f62e9
RD
39893static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39894 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39895}
39896static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39897 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39898}
39899static void *_p_wxDCTo_p_wxObject(void *x) {
39900 return (void *)((wxObject *) ((wxDC *) x));
39901}
39902static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39903 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39904}
39905static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39906 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39907}
39908static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39909 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39910}
39911static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39912 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39913}
39914static void *_p_wxControlTo_p_wxObject(void *x) {
39915 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39916}
70d7cb34
RD
39917static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39918 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39919}
554f62e9
RD
39920static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39921 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39922}
39923static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39924 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
39925}
39926static void *_p_wxFSFileTo_p_wxObject(void *x) {
39927 return (void *)((wxObject *) ((wxFSFile *) x));
39928}
39929static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39930 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39931}
39932static void *_p_wxRegionTo_p_wxObject(void *x) {
39933 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39934}
39935static void *_p_wxPySizerTo_p_wxObject(void *x) {
39936 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39937}
39938static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39939 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39940}
39941static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39942 return (void *)((wxObject *) ((wxGDIObject *) x));
39943}
70d7cb34
RD
39944static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39945 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39946}
39947static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39948 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39949}
554f62e9
RD
39950static void *_p_wxEffectsTo_p_wxObject(void *x) {
39951 return (void *)((wxObject *) ((wxEffects *) x));
39952}
39953static void *_p_wxPyEventTo_p_wxObject(void *x) {
39954 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39955}
39956static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39957 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39958}
39959static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39960 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39961}
70d7cb34
RD
39962static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39963 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39964}
554f62e9
RD
39965static void *_p_wxShowEventTo_p_wxObject(void *x) {
39966 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39967}
39968static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39969 return (void *)((wxObject *) ((wxMenuItem *) x));
39970}
39971static void *_p_wxDateEventTo_p_wxObject(void *x) {
39972 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39973}
39974static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39975 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39976}
39977static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39978 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39979}
39980static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39981 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39982}
39983static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39984 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39985}
39986static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39987 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39988}
39989static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39990 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39991}
39992static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39993 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39994}
39995static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39996 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39997}
39998static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39999 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40000}
40001static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40002 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40003}
40004static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40005 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40006}
40007static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40008 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40009}
40010static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40011 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40012}
40013static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40014 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40015}
40016static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40017 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40018}
40019static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40020 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40021}
40022static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40023 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40024}
40025static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40026 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40027}
40028static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40029 return (void *)((wxObject *) ((wxImageHandler *) x));
40030}
40031static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40032 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40033}
40034static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40035 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40036}
40037static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40038 return (void *)((wxObject *) ((wxEvtHandler *) x));
40039}
0f83f5da
RD
40040static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40041 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40042}
24f6c4e8
RD
40043static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40044 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40045}
554f62e9 40046static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 40047 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 40048}
24f6c4e8
RD
40049static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40050 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
40051}
40052static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40053 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40054}
40055static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40056 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40057}
40058static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40059 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40060}
40061static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40062 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40063}
40064static void *_p_wxImageTo_p_wxObject(void *x) {
40065 return (void *)((wxObject *) ((wxImage *) x));
40066}
40067static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40068 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40069}
70d7cb34
RD
40070static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40071 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40072}
40073static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40074 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40075}
554f62e9
RD
40076static void *_p_wxPaletteTo_p_wxObject(void *x) {
40077 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40078}
40079static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 40080 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
40081}
40082static void *_p_wxImageListTo_p_wxObject(void *x) {
40083 return (void *)((wxObject *) ((wxImageList *) x));
40084}
72ef6efb
RD
40085static void *_p_wxGCDCTo_p_wxObject(void *x) {
40086 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40087}
554f62e9
RD
40088static void *_p_wxCursorTo_p_wxObject(void *x) {
40089 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40090}
40091static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40092 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40093}
40094static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40095 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40096}
70d7cb34
RD
40097static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40098 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40099}
554f62e9
RD
40100static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40102}
40103static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40104 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40105}
40106static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40107 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40108}
40109static void *_p_wxWindowTo_p_wxObject(void *x) {
40110 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40111}
40112static void *_p_wxMenuTo_p_wxObject(void *x) {
40113 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40114}
40115static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40116 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40117}
40118static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40119 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40120}
554f62e9
RD
40121static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40122 return (void *)((wxObject *) ((wxFileSystem *) x));
40123}
40124static void *_p_wxBitmapTo_p_wxObject(void *x) {
40125 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40126}
40127static void *_p_wxMaskTo_p_wxObject(void *x) {
40128 return (void *)((wxObject *) ((wxMask *) x));
40129}
70d7cb34
RD
40130static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40131 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40132}
554f62e9
RD
40133static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40134 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40135}
40136static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40137 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40138}
40139static void *_p_wxPyAppTo_p_wxObject(void *x) {
40140 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40141}
40142static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40143 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40144}
40145static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40146 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40147}
40148static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40149 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40150}
40151static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40152 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40153}
40154static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40155 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40156}
40157static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40158 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40159}
40160static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40161 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40162}
40163static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40164 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40165}
40166static void *_p_wxFontTo_p_wxObject(void *x) {
40167 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40168}
40169static void *_p_wxBrushTo_p_wxObject(void *x) {
40170 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40171}
40172static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40173 return (void *)((wxObject *) ((wxMetaFile *) x));
40174}
40175static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40176 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40177}
40178static void *_p_wxColourTo_p_wxObject(void *x) {
40179 return (void *)((wxObject *) ((wxColour *) x));
40180}
554f62e9
RD
40181static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40182 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40183}
40184static void *_p_wxValidatorTo_p_wxObject(void *x) {
40185 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40186}
40187static void *_p_wxControlTo_p_wxWindow(void *x) {
40188 return (void *)((wxWindow *) ((wxControl *) x));
40189}
40190static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40191 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40192}
40193static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40194 return (void *)((wxWindow *) ((wxMenuBar *) x));
40195}
fc46b7f3
RD
40196static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40197 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40198}
40199static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40200 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40201}
40202static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 40203static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40204static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40205static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40206static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40207static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40208static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40209static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40210static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40211static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40212static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40213static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
40214static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40215static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40216static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40217static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40218static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40219static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9 40220static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 40221static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
554f62e9
RD
40222static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40223static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40224static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40225static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40226static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40227static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40228static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40229static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40230static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
554f62e9
RD
40231static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40232static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40233static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40234static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40235static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40236static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40237static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40238static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 40239static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 40240static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40241static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40242static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40243static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40244static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40245static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40246static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40247static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40248static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40249static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
40250static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40251static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40252static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40253static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40254static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40255static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40256static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40257static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40258static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40259static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40260static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40261static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40262static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40263static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40264static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40265static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
40266static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40267static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 40268static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40269static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40270static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40271static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40272static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40273static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40274static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40275static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40276static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40277static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40278static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40279static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40280static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40281static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40282static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40283static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40284static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40285static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40286static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40287static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40288static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40289static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40290static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40291static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40292static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40293static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40294static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40295static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40296static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40297static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40298static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40299static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40300static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40301static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40302static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40303static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40304static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40305static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
554f62e9 40306static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40307static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40308static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40309static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40310static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40311static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40312static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40313static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40314static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40315static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40316static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40317static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40318static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40319static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 40320static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40321static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40322static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40323static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40324static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40325static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40326static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40327static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40328static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40329static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40330static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40331static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40332static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40333static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40334static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40335static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40336static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40337static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40338static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40339static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40340static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40341static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40342static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40343static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
40344static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40345static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40346static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40347static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40348static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40349static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 40350static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40351static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 40352static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40353static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40354static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40355static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40356static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 40357static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40358static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9 40359static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 40360static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40361static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40362static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40363static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40364static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40365static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40366static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40367static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 40368static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
40369static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40370static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40371static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40372
40373static swig_type_info *swig_type_initial[] = {
fc46b7f3 40374 &_swigt__p_buffer,
554f62e9
RD
40375 &_swigt__p_char,
40376 &_swigt__p_double,
40377 &_swigt__p_form_ops_t,
40378 &_swigt__p_int,
40379 &_swigt__p_unsigned_char,
40380 &_swigt__p_unsigned_int,
40381 &_swigt__p_unsigned_long,
0a27f394 40382 &_swigt__p_void,
554f62e9
RD
40383 &_swigt__p_wxANIHandler,
40384 &_swigt__p_wxAcceleratorTable,
40385 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40386 &_swigt__p_wxAlphaPixelData,
40387 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40388 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
40389 &_swigt__p_wxBMPHandler,
40390 &_swigt__p_wxBitmap,
40391 &_swigt__p_wxBoxSizer,
40392 &_swigt__p_wxBrush,
40393 &_swigt__p_wxBrushList,
40394 &_swigt__p_wxBufferedDC,
40395 &_swigt__p_wxBufferedPaintDC,
40396 &_swigt__p_wxCURHandler,
fc46b7f3 40397 &_swigt__p_wxChar,
554f62e9
RD
40398 &_swigt__p_wxChildFocusEvent,
40399 &_swigt__p_wxClientDC,
2131d850 40400 &_swigt__p_wxClipboardTextEvent,
554f62e9 40401 &_swigt__p_wxCloseEvent,
72ef6efb 40402 &_swigt__p_wxColor,
554f62e9
RD
40403 &_swigt__p_wxColour,
40404 &_swigt__p_wxColourDatabase,
40405 &_swigt__p_wxCommandEvent,
40406 &_swigt__p_wxContextMenuEvent,
40407 &_swigt__p_wxControl,
40408 &_swigt__p_wxControlWithItems,
40409 &_swigt__p_wxCursor,
40410 &_swigt__p_wxDC,
70d7cb34
RD
40411 &_swigt__p_wxDCBrushChanger,
40412 &_swigt__p_wxDCClipper,
b39fe951 40413 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40414 &_swigt__p_wxDCPenChanger,
40415 &_swigt__p_wxDCTextColourChanger,
554f62e9
RD
40416 &_swigt__p_wxDash,
40417 &_swigt__p_wxDateEvent,
40418 &_swigt__p_wxDisplayChangedEvent,
40419 &_swigt__p_wxDropFilesEvent,
40420 &_swigt__p_wxDuplexMode,
40421 &_swigt__p_wxEffects,
40422 &_swigt__p_wxEncodingConverter,
40423 &_swigt__p_wxEraseEvent,
40424 &_swigt__p_wxEvent,
40425 &_swigt__p_wxEvtHandler,
40426 &_swigt__p_wxFSFile,
40427 &_swigt__p_wxFileSystem,
40428 &_swigt__p_wxFlexGridSizer,
40429 &_swigt__p_wxFocusEvent,
40430 &_swigt__p_wxFont,
40431 &_swigt__p_wxFontList,
40432 &_swigt__p_wxFontMapper,
40433 &_swigt__p_wxGBSizerItem,
72ef6efb 40434 &_swigt__p_wxGCDC,
50efceee 40435 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
40436 &_swigt__p_wxGDIObject,
40437 &_swigt__p_wxGIFHandler,
70d7cb34 40438 &_swigt__p_wxGraphicsBrush,
72ef6efb 40439 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40440 &_swigt__p_wxGraphicsFont,
40441 &_swigt__p_wxGraphicsMatrix,
40442 &_swigt__p_wxGraphicsObject,
72ef6efb 40443 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40444 &_swigt__p_wxGraphicsPen,
40445 &_swigt__p_wxGraphicsRenderer,
554f62e9
RD
40446 &_swigt__p_wxGridBagSizer,
40447 &_swigt__p_wxGridSizer,
33d6fd3b 40448 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
40449 &_swigt__p_wxICOHandler,
40450 &_swigt__p_wxIcon,
40451 &_swigt__p_wxIconBundle,
40452 &_swigt__p_wxIconLocation,
40453 &_swigt__p_wxIconizeEvent,
40454 &_swigt__p_wxIdleEvent,
40455 &_swigt__p_wxImage,
40456 &_swigt__p_wxImageHandler,
40457 &_swigt__p_wxImageList,
40458 &_swigt__p_wxIndividualLayoutConstraint,
40459 &_swigt__p_wxInitDialogEvent,
40460 &_swigt__p_wxJPEGHandler,
40461 &_swigt__p_wxKeyEvent,
40462 &_swigt__p_wxLanguageInfo,
40463 &_swigt__p_wxLayoutConstraints,
40464 &_swigt__p_wxLocale,
40465 &_swigt__p_wxMask,
40466 &_swigt__p_wxMaximizeEvent,
40467 &_swigt__p_wxMemoryDC,
40468 &_swigt__p_wxMenu,
40469 &_swigt__p_wxMenuBar,
40470 &_swigt__p_wxMenuEvent,
40471 &_swigt__p_wxMenuItem,
40472 &_swigt__p_wxMetaFile,
40473 &_swigt__p_wxMetaFileDC,
40474 &_swigt__p_wxMirrorDC,
40475 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 40476 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
40477 &_swigt__p_wxMouseEvent,
40478 &_swigt__p_wxMoveEvent,
40479 &_swigt__p_wxNativeEncodingInfo,
40480 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40481 &_swigt__p_wxNativePixelData,
40482 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
40483 &_swigt__p_wxNavigationKeyEvent,
40484 &_swigt__p_wxNcPaintEvent,
40485 &_swigt__p_wxNotifyEvent,
40486 &_swigt__p_wxObject,
b39fe951 40487 &_swigt__p_wxOverlay,
554f62e9
RD
40488 &_swigt__p_wxPCXHandler,
40489 &_swigt__p_wxPNGHandler,
40490 &_swigt__p_wxPNMHandler,
40491 &_swigt__p_wxPaintDC,
40492 &_swigt__p_wxPaintEvent,
40493 &_swigt__p_wxPalette,
40494 &_swigt__p_wxPaletteChangedEvent,
40495 &_swigt__p_wxPaperSize,
40496 &_swigt__p_wxPen,
40497 &_swigt__p_wxPenList,
fc46b7f3 40498 &_swigt__p_wxPixelDataBase,
554f62e9 40499 &_swigt__p_wxPoint,
72ef6efb 40500 &_swigt__p_wxPoint2D,
70d7cb34 40501 &_swigt__p_wxPoint2DDouble,
554f62e9
RD
40502 &_swigt__p_wxPostScriptDC,
40503 &_swigt__p_wxPrintData,
40504 &_swigt__p_wxPrinterDC,
27e45892 40505 &_swigt__p_wxPseudoDC,
554f62e9
RD
40506 &_swigt__p_wxPyApp,
40507 &_swigt__p_wxPyCommandEvent,
40508 &_swigt__p_wxPyEvent,
40509 &_swigt__p_wxPyFontEnumerator,
40510 &_swigt__p_wxPyImageHandler,
fc46b7f3 40511 &_swigt__p_wxPyLocale,
554f62e9
RD
40512 &_swigt__p_wxPySizer,
40513 &_swigt__p_wxPyValidator,
40514 &_swigt__p_wxQueryNewPaletteEvent,
40515 &_swigt__p_wxRect,
70d7cb34 40516 &_swigt__p_wxRect2DDouble,
554f62e9
RD
40517 &_swigt__p_wxRegion,
40518 &_swigt__p_wxRegionIterator,
40519 &_swigt__p_wxRendererNative,
40520 &_swigt__p_wxRendererVersion,
40521 &_swigt__p_wxScreenDC,
40522 &_swigt__p_wxScrollEvent,
40523 &_swigt__p_wxScrollWinEvent,
40524 &_swigt__p_wxSetCursorEvent,
40525 &_swigt__p_wxShowEvent,
40526 &_swigt__p_wxSize,
40527 &_swigt__p_wxSizeEvent,
40528 &_swigt__p_wxSizer,
40529 &_swigt__p_wxSizerItem,
40530 &_swigt__p_wxSplitterRenderParams,
40531 &_swigt__p_wxStaticBoxSizer,
40532 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40533 &_swigt__p_wxStockGDI,
554f62e9
RD
40534 &_swigt__p_wxString,
40535 &_swigt__p_wxSysColourChangedEvent,
40536 &_swigt__p_wxTIFFHandler,
40537 &_swigt__p_wxUpdateUIEvent,
40538 &_swigt__p_wxValidator,
40539 &_swigt__p_wxWindow,
40540 &_swigt__p_wxWindowCreateEvent,
40541 &_swigt__p_wxWindowDC,
40542 &_swigt__p_wxWindowDestroyEvent,
40543 &_swigt__p_wxXPMHandler,
40544};
40545
fc46b7f3 40546static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40547static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40548static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40549static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40550static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40551static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40552static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40553static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40554static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40555static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40556static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40557static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40558static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40559static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40560static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40561static 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}};
40562static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40563static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40564static 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}};
40565static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40566static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40567static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40568static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40569static 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
40570static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40571static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40572static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40573static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40574static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40575static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40576static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40577static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40578static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40579static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40580static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40581static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40582static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40583static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
554f62e9 40584static 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 40585static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40586static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40587static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40588static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40589static 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 40590static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40591static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40592static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40593static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40594static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40595static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40596static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40597static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40598static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40599static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40600static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40601static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40602static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40603static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40604static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40605static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40606static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40607static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40608static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40609static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40610static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40611static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40612static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40613static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40614static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40615static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40616static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40617static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40618static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40619static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40620static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40621static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40622static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40623static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40624static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40625static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40626static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40627static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40628static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40629static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40630static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40631static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40632static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40633static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40634static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40635static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40636static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40637static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40638static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40639static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40640static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40641static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40642static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40643static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40644static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40645static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40646static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40647static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40648static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40649static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40650static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40651static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40652static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40653static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40654static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40655static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40656static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40657static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40658static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40659static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40660static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40661static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40662static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40663static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40664static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40665static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40666static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40667static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40668static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40669static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40670static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40671static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40672static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40673static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40674static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40675static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40676static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40677static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40678static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40679static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40680static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40681static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40682static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40683static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40684static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40685static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40686static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40687static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40688static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40689static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40690static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40691static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40692static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40693static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
554f62e9 40694static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40695static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40696static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40697static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40698static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40699static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40700static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40701static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40702static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40703static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40704static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40705static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40706static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40707static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40708static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40709static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40710static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40711static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40712static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40713static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40714static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 40715static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40716
40717static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40718 _swigc__p_buffer,
554f62e9
RD
40719 _swigc__p_char,
40720 _swigc__p_double,
40721 _swigc__p_form_ops_t,
40722 _swigc__p_int,
40723 _swigc__p_unsigned_char,
40724 _swigc__p_unsigned_int,
40725 _swigc__p_unsigned_long,
0a27f394 40726 _swigc__p_void,
554f62e9
RD
40727 _swigc__p_wxANIHandler,
40728 _swigc__p_wxAcceleratorTable,
40729 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40730 _swigc__p_wxAlphaPixelData,
40731 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40732 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
40733 _swigc__p_wxBMPHandler,
40734 _swigc__p_wxBitmap,
40735 _swigc__p_wxBoxSizer,
40736 _swigc__p_wxBrush,
40737 _swigc__p_wxBrushList,
40738 _swigc__p_wxBufferedDC,
40739 _swigc__p_wxBufferedPaintDC,
40740 _swigc__p_wxCURHandler,
fc46b7f3 40741 _swigc__p_wxChar,
554f62e9
RD
40742 _swigc__p_wxChildFocusEvent,
40743 _swigc__p_wxClientDC,
2131d850 40744 _swigc__p_wxClipboardTextEvent,
554f62e9 40745 _swigc__p_wxCloseEvent,
72ef6efb 40746 _swigc__p_wxColor,
554f62e9
RD
40747 _swigc__p_wxColour,
40748 _swigc__p_wxColourDatabase,
40749 _swigc__p_wxCommandEvent,
40750 _swigc__p_wxContextMenuEvent,
40751 _swigc__p_wxControl,
40752 _swigc__p_wxControlWithItems,
40753 _swigc__p_wxCursor,
40754 _swigc__p_wxDC,
70d7cb34
RD
40755 _swigc__p_wxDCBrushChanger,
40756 _swigc__p_wxDCClipper,
b39fe951 40757 _swigc__p_wxDCOverlay,
70d7cb34
RD
40758 _swigc__p_wxDCPenChanger,
40759 _swigc__p_wxDCTextColourChanger,
554f62e9
RD
40760 _swigc__p_wxDash,
40761 _swigc__p_wxDateEvent,
40762 _swigc__p_wxDisplayChangedEvent,
40763 _swigc__p_wxDropFilesEvent,
40764 _swigc__p_wxDuplexMode,
40765 _swigc__p_wxEffects,
40766 _swigc__p_wxEncodingConverter,
40767 _swigc__p_wxEraseEvent,
40768 _swigc__p_wxEvent,
40769 _swigc__p_wxEvtHandler,
40770 _swigc__p_wxFSFile,
40771 _swigc__p_wxFileSystem,
40772 _swigc__p_wxFlexGridSizer,
40773 _swigc__p_wxFocusEvent,
40774 _swigc__p_wxFont,
40775 _swigc__p_wxFontList,
40776 _swigc__p_wxFontMapper,
40777 _swigc__p_wxGBSizerItem,
72ef6efb 40778 _swigc__p_wxGCDC,
50efceee 40779 _swigc__p_wxGDIObjListBase,
554f62e9
RD
40780 _swigc__p_wxGDIObject,
40781 _swigc__p_wxGIFHandler,
70d7cb34 40782 _swigc__p_wxGraphicsBrush,
72ef6efb 40783 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40784 _swigc__p_wxGraphicsFont,
40785 _swigc__p_wxGraphicsMatrix,
40786 _swigc__p_wxGraphicsObject,
72ef6efb 40787 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40788 _swigc__p_wxGraphicsPen,
40789 _swigc__p_wxGraphicsRenderer,
554f62e9
RD
40790 _swigc__p_wxGridBagSizer,
40791 _swigc__p_wxGridSizer,
33d6fd3b 40792 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
40793 _swigc__p_wxICOHandler,
40794 _swigc__p_wxIcon,
40795 _swigc__p_wxIconBundle,
40796 _swigc__p_wxIconLocation,
40797 _swigc__p_wxIconizeEvent,
40798 _swigc__p_wxIdleEvent,
40799 _swigc__p_wxImage,
40800 _swigc__p_wxImageHandler,
40801 _swigc__p_wxImageList,
40802 _swigc__p_wxIndividualLayoutConstraint,
40803 _swigc__p_wxInitDialogEvent,
40804 _swigc__p_wxJPEGHandler,
40805 _swigc__p_wxKeyEvent,
40806 _swigc__p_wxLanguageInfo,
40807 _swigc__p_wxLayoutConstraints,
40808 _swigc__p_wxLocale,
40809 _swigc__p_wxMask,
40810 _swigc__p_wxMaximizeEvent,
40811 _swigc__p_wxMemoryDC,
40812 _swigc__p_wxMenu,
40813 _swigc__p_wxMenuBar,
40814 _swigc__p_wxMenuEvent,
40815 _swigc__p_wxMenuItem,
40816 _swigc__p_wxMetaFile,
40817 _swigc__p_wxMetaFileDC,
40818 _swigc__p_wxMirrorDC,
40819 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 40820 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
40821 _swigc__p_wxMouseEvent,
40822 _swigc__p_wxMoveEvent,
40823 _swigc__p_wxNativeEncodingInfo,
40824 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40825 _swigc__p_wxNativePixelData,
40826 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
40827 _swigc__p_wxNavigationKeyEvent,
40828 _swigc__p_wxNcPaintEvent,
40829 _swigc__p_wxNotifyEvent,
40830 _swigc__p_wxObject,
b39fe951 40831 _swigc__p_wxOverlay,
554f62e9
RD
40832 _swigc__p_wxPCXHandler,
40833 _swigc__p_wxPNGHandler,
40834 _swigc__p_wxPNMHandler,
40835 _swigc__p_wxPaintDC,
40836 _swigc__p_wxPaintEvent,
40837 _swigc__p_wxPalette,
40838 _swigc__p_wxPaletteChangedEvent,
40839 _swigc__p_wxPaperSize,
40840 _swigc__p_wxPen,
40841 _swigc__p_wxPenList,
fc46b7f3 40842 _swigc__p_wxPixelDataBase,
554f62e9 40843 _swigc__p_wxPoint,
72ef6efb 40844 _swigc__p_wxPoint2D,
70d7cb34 40845 _swigc__p_wxPoint2DDouble,
554f62e9
RD
40846 _swigc__p_wxPostScriptDC,
40847 _swigc__p_wxPrintData,
40848 _swigc__p_wxPrinterDC,
27e45892 40849 _swigc__p_wxPseudoDC,
554f62e9
RD
40850 _swigc__p_wxPyApp,
40851 _swigc__p_wxPyCommandEvent,
40852 _swigc__p_wxPyEvent,
40853 _swigc__p_wxPyFontEnumerator,
40854 _swigc__p_wxPyImageHandler,
fc46b7f3 40855 _swigc__p_wxPyLocale,
554f62e9
RD
40856 _swigc__p_wxPySizer,
40857 _swigc__p_wxPyValidator,
40858 _swigc__p_wxQueryNewPaletteEvent,
40859 _swigc__p_wxRect,
70d7cb34 40860 _swigc__p_wxRect2DDouble,
554f62e9
RD
40861 _swigc__p_wxRegion,
40862 _swigc__p_wxRegionIterator,
40863 _swigc__p_wxRendererNative,
40864 _swigc__p_wxRendererVersion,
40865 _swigc__p_wxScreenDC,
40866 _swigc__p_wxScrollEvent,
40867 _swigc__p_wxScrollWinEvent,
40868 _swigc__p_wxSetCursorEvent,
40869 _swigc__p_wxShowEvent,
40870 _swigc__p_wxSize,
40871 _swigc__p_wxSizeEvent,
40872 _swigc__p_wxSizer,
40873 _swigc__p_wxSizerItem,
40874 _swigc__p_wxSplitterRenderParams,
40875 _swigc__p_wxStaticBoxSizer,
40876 _swigc__p_wxStdDialogButtonSizer,
50efceee 40877 _swigc__p_wxStockGDI,
554f62e9
RD
40878 _swigc__p_wxString,
40879 _swigc__p_wxSysColourChangedEvent,
40880 _swigc__p_wxTIFFHandler,
40881 _swigc__p_wxUpdateUIEvent,
40882 _swigc__p_wxValidator,
40883 _swigc__p_wxWindow,
40884 _swigc__p_wxWindowCreateEvent,
40885 _swigc__p_wxWindowDC,
40886 _swigc__p_wxWindowDestroyEvent,
40887 _swigc__p_wxXPMHandler,
40888};
40889
40890
40891/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40892
40893static swig_const_info swig_const_table[] = {
40894{0, 0, 0, 0.0, 0, 0}};
40895
40896#ifdef __cplusplus
40897}
40898#endif
40899/* -----------------------------------------------------------------------------
40900 * Type initialization:
40901 * This problem is tough by the requirement that no dynamic
40902 * memory is used. Also, since swig_type_info structures store pointers to
40903 * swig_cast_info structures and swig_cast_info structures store pointers back
40904 * to swig_type_info structures, we need some lookup code at initialization.
40905 * The idea is that swig generates all the structures that are needed.
40906 * The runtime then collects these partially filled structures.
40907 * The SWIG_InitializeModule function takes these initial arrays out of
40908 * swig_module, and does all the lookup, filling in the swig_module.types
40909 * array with the correct data and linking the correct swig_cast_info
40910 * structures together.
40911 *
40912 * The generated swig_type_info structures are assigned staticly to an initial
40913 * array. We just loop though that array, and handle each type individually.
40914 * First we lookup if this type has been already loaded, and if so, use the
40915 * loaded structure instead of the generated one. Then we have to fill in the
40916 * cast linked list. The cast data is initially stored in something like a
40917 * two-dimensional array. Each row corresponds to a type (there are the same
40918 * number of rows as there are in the swig_type_initial array). Each entry in
40919 * a column is one of the swig_cast_info structures for that type.
40920 * The cast_initial array is actually an array of arrays, because each row has
40921 * a variable number of columns. So to actually build the cast linked list,
40922 * we find the array of casts associated with the type, and loop through it
40923 * adding the casts to the list. The one last trick we need to do is making
40924 * sure the type pointer in the swig_cast_info struct is correct.
40925 *
40926 * First off, we lookup the cast->type name to see if it is already loaded.
40927 * There are three cases to handle:
40928 * 1) If the cast->type has already been loaded AND the type we are adding
40929 * casting info to has not been loaded (it is in this module), THEN we
40930 * replace the cast->type pointer with the type pointer that has already
40931 * been loaded.
40932 * 2) If BOTH types (the one we are adding casting info to, and the
40933 * cast->type) are loaded, THEN the cast info has already been loaded by
40934 * the previous module so we just ignore it.
40935 * 3) Finally, if cast->type has not already been loaded, then we add that
40936 * swig_cast_info to the linked list (because the cast->type) pointer will
40937 * be correct.
40938 * ----------------------------------------------------------------------------- */
40939
40940#ifdef __cplusplus
40941extern "C" {
40942#if 0
40943} /* c-mode */
40944#endif
40945#endif
40946
40947#if 0
40948#define SWIGRUNTIME_DEBUG
40949#endif
40950
40951SWIGRUNTIME void
40952SWIG_InitializeModule(void *clientdata) {
40953 size_t i;
40954 swig_module_info *module_head;
40955 static int init_run = 0;
40956
40957 clientdata = clientdata;
40958
40959 if (init_run) return;
40960 init_run = 1;
40961
40962 /* Initialize the swig_module */
40963 swig_module.type_initial = swig_type_initial;
40964 swig_module.cast_initial = swig_cast_initial;
40965
40966 /* Try and load any already created modules */
40967 module_head = SWIG_GetModule(clientdata);
40968 if (module_head) {
40969 swig_module.next = module_head->next;
40970 module_head->next = &swig_module;
40971 } else {
40972 /* This is the first module loaded */
40973 swig_module.next = &swig_module;
40974 SWIG_SetModule(clientdata, &swig_module);
40975 }
40976
40977 /* Now work on filling in swig_module.types */
40978#ifdef SWIGRUNTIME_DEBUG
40979 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40980#endif
40981 for (i = 0; i < swig_module.size; ++i) {
40982 swig_type_info *type = 0;
40983 swig_type_info *ret;
40984 swig_cast_info *cast;
40985
40986#ifdef SWIGRUNTIME_DEBUG
40987 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40988#endif
40989
40990 /* if there is another module already loaded */
40991 if (swig_module.next != &swig_module) {
40992 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40993 }
554f62e9
RD
40994 if (type) {
40995 /* Overwrite clientdata field */
40996#ifdef SWIGRUNTIME_DEBUG
40997 printf("SWIG_InitializeModule: found type %s\n", type->name);
40998#endif
40999 if (swig_module.type_initial[i]->clientdata) {
41000 type->clientdata = swig_module.type_initial[i]->clientdata;
41001#ifdef SWIGRUNTIME_DEBUG
41002 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41003#endif
41004 }
41005 } else {
41006 type = swig_module.type_initial[i];
be9b1dca 41007 }
554f62e9
RD
41008
41009 /* Insert casting types */
41010 cast = swig_module.cast_initial[i];
41011 while (cast->type) {
41012 /* Don't need to add information already in the list */
41013 ret = 0;
41014#ifdef SWIGRUNTIME_DEBUG
41015 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41016#endif
41017 if (swig_module.next != &swig_module) {
41018 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41019#ifdef SWIGRUNTIME_DEBUG
41020 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41021#endif
41022 }
41023 if (ret) {
41024 if (type == swig_module.type_initial[i]) {
41025#ifdef SWIGRUNTIME_DEBUG
41026 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41027#endif
41028 cast->type = ret;
41029 ret = 0;
41030 } else {
41031 /* Check for casting already in the list */
41032 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41033#ifdef SWIGRUNTIME_DEBUG
41034 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41035#endif
41036 if (!ocast) ret = 0;
41037 }
41038 }
41039
41040 if (!ret) {
41041#ifdef SWIGRUNTIME_DEBUG
41042 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41043#endif
41044 if (type->cast) {
41045 type->cast->prev = cast;
41046 cast->next = type->cast;
41047 }
41048 type->cast = cast;
41049 }
41050 cast++;
be9b1dca 41051 }
554f62e9
RD
41052 /* Set entry in modules->types array equal to the type */
41053 swig_module.types[i] = type;
41054 }
41055 swig_module.types[i] = 0;
41056
41057#ifdef SWIGRUNTIME_DEBUG
41058 printf("**** SWIG_InitializeModule: Cast List ******\n");
41059 for (i = 0; i < swig_module.size; ++i) {
41060 int j = 0;
41061 swig_cast_info *cast = swig_module.cast_initial[i];
41062 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41063 while (cast->type) {
41064 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41065 cast++;
41066 ++j;
41067 }
41068 printf("---- Total casts: %d\n",j);
41069 }
41070 printf("**** SWIG_InitializeModule: Cast List ******\n");
41071#endif
41072}
41073
41074/* This function will propagate the clientdata field of type to
41075* any new swig_type_info structures that have been added into the list
41076* of equivalent types. It is like calling
41077* SWIG_TypeClientData(type, clientdata) a second time.
41078*/
41079SWIGRUNTIME void
41080SWIG_PropagateClientData(void) {
41081 size_t i;
41082 swig_cast_info *equiv;
41083 static int init_run = 0;
41084
41085 if (init_run) return;
41086 init_run = 1;
41087
41088 for (i = 0; i < swig_module.size; i++) {
41089 if (swig_module.types[i]->clientdata) {
41090 equiv = swig_module.types[i]->cast;
41091 while (equiv) {
41092 if (!equiv->converter) {
41093 if (equiv->type && !equiv->type->clientdata)
41094 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41095 }
41096 equiv = equiv->next;
41097 }
be9b1dca 41098 }
554f62e9
RD
41099 }
41100}
41101
41102#ifdef __cplusplus
41103#if 0
41104{
41105 /* c-mode */
41106#endif
41107}
41108#endif
41109
41110
41111
41112#ifdef __cplusplus
41113extern "C" {
41114#endif
41115
41116 /* Python-specific SWIG API */
41117#define SWIG_newvarlink() SWIG_Python_newvarlink()
41118#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41119#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41120
41121 /* -----------------------------------------------------------------------------
41122 * global variable support code.
41123 * ----------------------------------------------------------------------------- */
41124
41125 typedef struct swig_globalvar {
41126 char *name; /* Name of global variable */
41127 PyObject *(*get_attr)(void); /* Return the current value */
41128 int (*set_attr)(PyObject *); /* Set the value */
41129 struct swig_globalvar *next;
41130 } swig_globalvar;
41131
41132 typedef struct swig_varlinkobject {
41133 PyObject_HEAD
41134 swig_globalvar *vars;
41135 } swig_varlinkobject;
41136
41137 SWIGINTERN PyObject *
41138 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41139 return PyString_FromString("<Swig global variables>");
41140 }
41141
41142 SWIGINTERN PyObject *
41143 swig_varlink_str(swig_varlinkobject *v) {
41144 PyObject *str = PyString_FromString("(");
41145 swig_globalvar *var;
41146 for (var = v->vars; var; var=var->next) {
41147 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41148 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41149 }
41150 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41151 return str;
41152 }
41153
41154 SWIGINTERN int
41155 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41156 PyObject *str = swig_varlink_str(v);
41157 fprintf(fp,"Swig global variables ");
41158 fprintf(fp,"%s\n", PyString_AsString(str));
41159 Py_DECREF(str);
41160 return 0;
41161 }
41162
41163 SWIGINTERN void
41164 swig_varlink_dealloc(swig_varlinkobject *v) {
41165 swig_globalvar *var = v->vars;
41166 while (var) {
41167 swig_globalvar *n = var->next;
41168 free(var->name);
41169 free(var);
41170 var = n;
be9b1dca 41171 }
554f62e9
RD
41172 }
41173
41174 SWIGINTERN PyObject *
41175 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41176 PyObject *res = NULL;
41177 swig_globalvar *var = v->vars;
41178 while (var) {
41179 if (strcmp(var->name,n) == 0) {
41180 res = (*var->get_attr)();
41181 break;
41182 }
41183 var = var->next;
be9b1dca 41184 }
554f62e9
RD
41185 if (res == NULL && !PyErr_Occurred()) {
41186 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41187 }
554f62e9
RD
41188 return res;
41189 }
41190
41191 SWIGINTERN int
41192 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41193 int res = 1;
41194 swig_globalvar *var = v->vars;
41195 while (var) {
41196 if (strcmp(var->name,n) == 0) {
41197 res = (*var->set_attr)(p);
41198 break;
41199 }
41200 var = var->next;
be9b1dca 41201 }
554f62e9
RD
41202 if (res == 1 && !PyErr_Occurred()) {
41203 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41204 }
554f62e9
RD
41205 return res;
41206 }
41207
41208 SWIGINTERN PyTypeObject*
41209 swig_varlink_type(void) {
41210 static char varlink__doc__[] = "Swig var link object";
41211 static PyTypeObject varlink_type;
41212 static int type_init = 0;
41213 if (!type_init) {
41214 const PyTypeObject tmp
41215 = {
41216 PyObject_HEAD_INIT(NULL)
41217 0, /* Number of items in variable part (ob_size) */
41218 (char *)"swigvarlink", /* Type name (tp_name) */
41219 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41220 0, /* Itemsize (tp_itemsize) */
41221 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41222 (printfunc) swig_varlink_print, /* Print (tp_print) */
41223 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41224 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41225 0, /* tp_compare */
41226 (reprfunc) swig_varlink_repr, /* tp_repr */
41227 0, /* tp_as_number */
41228 0, /* tp_as_sequence */
41229 0, /* tp_as_mapping */
41230 0, /* tp_hash */
41231 0, /* tp_call */
41232 (reprfunc)swig_varlink_str, /* tp_str */
41233 0, /* tp_getattro */
41234 0, /* tp_setattro */
41235 0, /* tp_as_buffer */
41236 0, /* tp_flags */
41237 varlink__doc__, /* tp_doc */
41238 0, /* tp_traverse */
41239 0, /* tp_clear */
41240 0, /* tp_richcompare */
41241 0, /* tp_weaklistoffset */
41242#if PY_VERSION_HEX >= 0x02020000
41243 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41244#endif
41245#if PY_VERSION_HEX >= 0x02030000
41246 0, /* tp_del */
41247#endif
41248#ifdef COUNT_ALLOCS
41249 0,0,0,0 /* tp_alloc -> tp_next */
41250#endif
41251 };
41252 varlink_type = tmp;
41253 varlink_type.ob_type = &PyType_Type;
41254 type_init = 1;
be9b1dca 41255 }
554f62e9
RD
41256 return &varlink_type;
41257 }
41258
41259 /* Create a variable linking object for use later */
41260 SWIGINTERN PyObject *
41261 SWIG_Python_newvarlink(void) {
41262 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41263 if (result) {
41264 result->vars = 0;
41265 }
41266 return ((PyObject*) result);
41267 }
41268
41269 SWIGINTERN void
41270 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41271 swig_varlinkobject *v = (swig_varlinkobject *) p;
41272 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41273 if (gv) {
41274 size_t size = strlen(name)+1;
41275 gv->name = (char *)malloc(size);
41276 if (gv->name) {
41277 strncpy(gv->name,name,size);
41278 gv->get_attr = get_attr;
41279 gv->set_attr = set_attr;
41280 gv->next = v->vars;
41281 }
be9b1dca 41282 }
554f62e9
RD
41283 v->vars = gv;
41284 }
41285
41286 SWIGINTERN PyObject *
41287 SWIG_globals() {
41288 static PyObject *_SWIG_globals = 0;
41289 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41290 return _SWIG_globals;
41291 }
41292
41293 /* -----------------------------------------------------------------------------
41294 * constants/methods manipulation
41295 * ----------------------------------------------------------------------------- */
41296
41297 /* Install Constants */
41298 SWIGINTERN void
41299 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41300 PyObject *obj = 0;
41301 size_t i;
41302 for (i = 0; constants[i].type; ++i) {
41303 switch(constants[i].type) {
41304 case SWIG_PY_POINTER:
41305 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41306 break;
41307 case SWIG_PY_BINARY:
41308 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41309 break;
41310 default:
41311 obj = 0;
41312 break;
41313 }
41314 if (obj) {
41315 PyDict_SetItemString(d, constants[i].name, obj);
41316 Py_DECREF(obj);
41317 }
be9b1dca 41318 }
554f62e9
RD
41319 }
41320
41321 /* -----------------------------------------------------------------------------*/
41322 /* Fix SwigMethods to carry the callback ptrs when needed */
41323 /* -----------------------------------------------------------------------------*/
41324
41325 SWIGINTERN void
41326 SWIG_Python_FixMethods(PyMethodDef *methods,
41327 swig_const_info *const_table,
41328 swig_type_info **types,
41329 swig_type_info **types_initial) {
41330 size_t i;
41331 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41332 const char *c = methods[i].ml_doc;
554f62e9
RD
41333 if (c && (c = strstr(c, "swig_ptr: "))) {
41334 int j;
41335 swig_const_info *ci = 0;
453fb36b 41336 const char *name = c + 10;
554f62e9
RD
41337 for (j = 0; const_table[j].type; ++j) {
41338 if (strncmp(const_table[j].name, name,
41339 strlen(const_table[j].name)) == 0) {
41340 ci = &(const_table[j]);
41341 break;
41342 }
41343 }
41344 if (ci) {
41345 size_t shift = (ci->ptype) - types;
41346 swig_type_info *ty = types_initial[shift];
41347 size_t ldoc = (c - methods[i].ml_doc);
41348 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41349 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41350 if (ndoc) {
41351 char *buff = ndoc;
41352 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41353 if (ptr) {
41354 strncpy(buff, methods[i].ml_doc, ldoc);
41355 buff += ldoc;
41356 strncpy(buff, "swig_ptr: ", 10);
41357 buff += 10;
41358 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41359 methods[i].ml_doc = ndoc;
41360 }
41361 }
41362 }
41363 }
be9b1dca 41364 }
554f62e9
RD
41365 }
41366
41367#ifdef __cplusplus
41368}
41369#endif
41370
41371/* -----------------------------------------------------------------------------*
41372 * Partial Init method
41373 * -----------------------------------------------------------------------------*/
41374
41375#ifdef __cplusplus
41376extern "C"
41377#endif
41378SWIGEXPORT void SWIG_init(void) {
41379 PyObject *m, *d;
41380
41381 /* Fix SwigMethods to carry the callback ptrs when needed */
41382 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41383
41384 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41385 d = PyModule_GetDict(m);
41386
41387 SWIG_InitializeModule(0);
41388 SWIG_InstallConstants(d,swig_const_table);
41389
41390
f460c29d
RD
41391 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41392 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41393 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41394 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41395 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
41396 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41397 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41398 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41399 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41400 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41401 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41402 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41403 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41404 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41405 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41406 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41407 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41408 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41409 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41410 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41411 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41412 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41413 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41414 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41415 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41416 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41417 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41418 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41419 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41420 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41421 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41422 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41423 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41424 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41425 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41426 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41427 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41428 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41429 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41430 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41431 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41432 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41433 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41434 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41435 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41436 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41437 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41438 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41439 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41440 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41441 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41442 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41443 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41444 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41445 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41446 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41447 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41448 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41449 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41450 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41451 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41452 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41453 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41454 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41455 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41456 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41457 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41458 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41459 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41460 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41461 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41462 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41463 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41464 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41465 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41466 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41467 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41468 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41469 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41470 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41471 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41472 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41473 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41474 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41475 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41476 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41477 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41478 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41479 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41480 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41481 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41482 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41483 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41484 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41485 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41486 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41487 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41488 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41489 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41490 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41491 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41492 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41493 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41494 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41495 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41496 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41497 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41498 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41499 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41500 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41501 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41502 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41503 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41504 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41505 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41506 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41507 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41508 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41509 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41510 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41511 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41512 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41513 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41514 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41515 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41516 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41517 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41518 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41519 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41520 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41521 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41522 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41523
41524 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41525
41526 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41627 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41628 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41629 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41630 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41631 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41632 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41633 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41634 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41635 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41636 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41637 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41638 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41639 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41640 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41641 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41642 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41643 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41644 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41645 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41646 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41647 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41648 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41649 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41650 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41651 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41652 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41653 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41654 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41655 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41656 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41657 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41658 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41659 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41660 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41661 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41662 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41663 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41664 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41665 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41666 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41667 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41668 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41669 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41670 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41671 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41672 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41673 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41674 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41675 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41676 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41677 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41678 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41679 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41680 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41681 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41682 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41683 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41684 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41685 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41686 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41687 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41688 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41689 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41690 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41691 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41692 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41693 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41694 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41695 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41696 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41697 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41698 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41699 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41700 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41701 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41702 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41703 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41704 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41705 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41706 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41707 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41708 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41709 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41710 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41711 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41712 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41713 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41714 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41715 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41716 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41717 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41718 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41719 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41720 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41721 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41722 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41723 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41724 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41725 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41726 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41727 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41728 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41729 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41730 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41731 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41732 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41733 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41734 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41735 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41736 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41737 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41738 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41739 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41740 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41741 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41742 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41743 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41744 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41745 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41746 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41747 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41748 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41749 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41750 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41751 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41752 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41753 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41754 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41755 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41756 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41757 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41758 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41759 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41760 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41761 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41762 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41763 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41764 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41765 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41766 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41767 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41768 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41769 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41770 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41771 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41772 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41773 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41774 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41775 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41776 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41777 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41778 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41779 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
554f62e9
RD
41780 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41781 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41782 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41783 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41784 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41785 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41786 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41787 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41788 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41789 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41790 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41791 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41792 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41793 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41794 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41795 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41796 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41797 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41798 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41799 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41800 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41801 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41802 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41803 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41804 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41805 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41806 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41807 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41808 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41809 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41810 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41811 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41812 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41813 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41814 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41815 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41816 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41817 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41818 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41819 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41820 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41821 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9
RD
41822 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41823 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41824 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41825 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41826 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41827 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41828 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41829 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
41830 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41831 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41832 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41833 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
41834 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41835 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41836 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41837 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
41838 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41839 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41840 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41841 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41842 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41843 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41844 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41845 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41846 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41847 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
41848 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41849 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41850
41851 // Work around a chicken/egg problem in drawlist.cpp
41852 wxPyDrawList_SetAPIPtr();
41853
d55e5bfc
RD
41854}
41855