]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
Change the wxCharBuffer typemap to make sure there is data before
[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
8f514ab4
RD
2929// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2930// appears to me that the other platforms are already doing it, so I'll just
2931// automatically do it for wxMSW here.
2932#ifdef __WXMSW__
2933#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2934#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2935#else
2936#define wxPy_premultiply(p, a) (p)
2937#define wxPy_unpremultiply(p, a) (p)
2938#endif
2939
2940
093d3ff1 2941#include <wx/image.h>
d55e5bfc 2942
093d3ff1
RD
2943 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2944 char** cArray = NULL;
2945 int count;
d55e5bfc 2946
093d3ff1
RD
2947 if (!PyList_Check(listOfStrings)) {
2948 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2949 return NULL;
2950 }
2951 count = PyList_Size(listOfStrings);
2952 cArray = new char*[count];
d55e5bfc 2953
093d3ff1
RD
2954 for(int x=0; x<count; x++) {
2955 // TODO: Need some validation and error checking here
2956 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2957 }
2958 return cArray;
d55e5bfc 2959 }
d55e5bfc
RD
2960
2961
554f62e9 2962SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2963 char** cArray = NULL;
2964 wxBitmap* bmp;
2965
2966 cArray = ConvertListOfStrings(listOfStrings);
2967 if (! cArray)
2968 return NULL;
2969 bmp = new wxBitmap(cArray);
2970 delete [] cArray;
2971 return bmp;
2972 }
554f62e9 2973SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2974 char* buf;
2975 Py_ssize_t length;
2976 PyString_AsStringAndSize(bits, &buf, &length);
2977 return new wxBitmap(buf, width, height, depth);
2978 }
554f62e9
RD
2979SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2980SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
554f62e9 2984SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
554f62e9 2988SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
8f514ab4
RD
2992SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
fc46b7f3 2995
8f514ab4
RD
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
fc46b7f3 3006
8f514ab4
RD
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
554f62e9 3202SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3203 if ( !colour.IsOk() )
093d3ff1
RD
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
d55e5bfc 3208
093d3ff1 3209#include <wx/iconbndl.h>
d55e5bfc 3210
554f62e9 3211SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
554f62e9 3216SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3217 char** cArray = NULL;
3218 wxIcon* icon;
d55e5bfc 3219
093d3ff1
RD
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
554f62e9
RD
3227SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3228SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3229
093d3ff1 3230 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3231
3232
d55e5bfc 3233
093d3ff1 3234 }
554f62e9 3235SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3236
093d3ff1 3237 self->SetIndex(num);
d55e5bfc
RD
3238
3239
d55e5bfc 3240
093d3ff1 3241 }
554f62e9 3242SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3243
093d3ff1 3244 return self->GetIndex();
d55e5bfc
RD
3245
3246
d55e5bfc 3247
093d3ff1 3248 }
554f62e9 3249SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3250#ifdef __WXGTK__
fef4c27a
RD
3251 wxImage img(cursorName, type);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3254 return new wxCursor(img);
093d3ff1 3255#else
fef4c27a 3256 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3257#endif
3258 }
554f62e9 3259SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3260
093d3ff1 3261
554f62e9 3262SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3263 (*self) ++;
3264 }
554f62e9 3265SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3266 return self->operator bool();
3267 }
3268
3269#include <wx/fontutil.h>
3270#include <wx/fontmap.h>
3271#include <wx/fontenum.h>
3272
554f62e9 3273SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3274 return self->ToString();
3275 }
3276
3277 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3278 { wxPyRaiseNotImplemented(); return NULL; }
3279
3280 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3281 { wxPyRaiseNotImplemented(); return false; }
3282
554f62e9
RD
3283
3284SWIGINTERNINLINE PyObject *
3285SWIG_From_size_t (size_t value)
3286{
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288}
3289
3290
3291SWIGINTERNINLINE int
3292SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293{
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298}
3299
3300SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
554f62e9 3309SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
554f62e9 3314SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
554f62e9 3317SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
554f62e9 3322SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
554f62e9
RD
3325SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3327
3328class wxPyFontEnumerator : public wxFontEnumerator {
3329public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337};
3338
3339IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
704eda0c 3343SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3344 PyObject* ret;
704eda0c 3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3347 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
093d3ff1 3350 }
704eda0c 3351SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3352 PyObject* ret;
704eda0c 3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3355 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
093d3ff1
RD
3358 }
3359
3360#include <locale.h>
3361
554f62e9 3362SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370#if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372#endif
3373 return loc;
3374 }
554f62e9 3375SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379#if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381#endif
3382 return rc;
3383 }
554f62e9 3384SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388#if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390#endif
3391 return rc;
3392 }
3393
fc46b7f3
RD
3394class wxPyLocale : public wxLocale
3395{
3396public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425};
3426
3427wxPyLocale::wxPyLocale() : wxLocale()
3428{
3429}
3430
3431wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437{
3438}
3439
3440wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442{
3443}
3444
3445wxPyLocale::~wxPyLocale()
3446{
3447}
3448
3449const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451{
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454}
3455
3456const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459{
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462}
3463
3464wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466{
3467 bool found;
3468 static wxString str;
3469 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484}
3485
3486wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509}
3510
3511SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519#if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521#endif
3522 return loc;
3523 }
3524
093d3ff1
RD
3525#include "wx/wxPython/pydrawxxx.h"
3526
554f62e9 3527SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
554f62e9 3532SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538SWIGINTERN int
554f62e9 3539SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3540{
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3543 return SWIG_OK;
093d3ff1 3544 }
554f62e9 3545 return SWIG_TypeError;
093d3ff1
RD
3546}
3547
554f62e9 3548SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
554f62e9 3553SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
554f62e9 3558SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
554f62e9 3564 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3565
554f62e9 3566SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
554f62e9 3569SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
554f62e9 3572SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
554f62e9 3575SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
554f62e9 3578SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
554f62e9 3581SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
554f62e9 3584SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
554f62e9 3587SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
554f62e9 3590SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599}
3600
3601
3602#include <wx/dcbuffer.h>
3603
3604
3605#include <wx/dcps.h>
3606
3607
3608#include <wx/metafile.h>
3609
3610
72ef6efb
RD
3611#include <wx/graphics.h>
3612
3613
3614#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3615// C++ stub classes for platforms or build configurations that don't have
3616// wxGraphicsContext yet.
72ef6efb 3617
70d7cb34
RD
3618
3619class wxGraphicsObject : public wxObject
72ef6efb
RD
3620{
3621public :
70d7cb34 3622 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3623 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3624 "wx.GraphicsObject is not available on this platform.");
3625 }
3626 wxGraphicsObject( const wxGraphicsObject& ) {}
3627 virtual ~wxGraphicsObject() {}
3628 bool IsNull() const { return false; }
3629 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3630} ;
3631
3632
3633
3634class wxGraphicsPen : public wxGraphicsObject
3635{
3636 wxGraphicsPen() {}
3637 virtual ~wxGraphicsPen() {}
3638} ;
3639wxGraphicsPen wxNullGraphicsPen;
3640
3641
3642
3643class wxGraphicsBrush : public wxGraphicsObject
3644{
3645public :
3646 wxGraphicsBrush() {}
3647 virtual ~wxGraphicsBrush() {}
3648} ;
3649wxGraphicsBrush wxNullGraphicsBrush;
3650
3651
3652
3653class wxGraphicsFont : public wxGraphicsObject
3654{
3655public :
3656 wxGraphicsFont() {}
3657 virtual ~wxGraphicsFont() {}
3658} ;
3659wxGraphicsFont wxNullGraphicsFont;
3660
3661
3662
3663class wxGraphicsPath : public wxGraphicsObject
3664{
3665public :
3666 wxGraphicsPath(wxGraphicsRenderer* ) {
3667 PyErr_SetString(PyExc_NotImplementedError,
3668 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3669 }
3670 virtual ~wxGraphicsPath() {}
70d7cb34 3671
72ef6efb 3672 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3673 void MoveToPoint( const wxPoint2DDouble& ) {}
3674 void AddLineToPoint( wxDouble, wxDouble ) {}
3675 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3676 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3677 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3678 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3679 void CloseSubpath() {}
3680 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3681 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3682 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3683 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3684
3685 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3686 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3687 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3688 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3689
70d7cb34
RD
3690 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3691 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3692 void * GetNativePath() const { return NULL; }
3693 void UnGetNativePath(void *) {}
3694 void Transform( wxGraphicsMatrix* ) {}
3695 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3696 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3697
3698 bool Contains( wxDouble , wxDouble , int ) { return false; }
3699 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3700};
5c8c7dd3 3701wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3702
3703
3704class wxGraphicsMatrix : public wxGraphicsObject
3705{
3706public :
3707 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3708 PyErr_SetString(PyExc_NotImplementedError,
3709 "wx.GraphicsMatrix is not available on this platform.");
3710 }
3711 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3712 virtual void Concat( const wxGraphicsMatrix * ) {}
3713 virtual void Copy( const wxGraphicsMatrix * ) {}
3714 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3715 wxDouble , wxDouble ) {}
3716 virtual void Invert() {}
3717 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3718 virtual bool IsIdentity() { return false; }
3719 virtual void Translate( wxDouble , wxDouble ) {}
3720 virtual void Scale( wxDouble , wxDouble ) {}
3721 virtual void Rotate( wxDouble ) {}
3722 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3723 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3724 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3725};
5c8c7dd3 3726wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3727
70d7cb34
RD
3728
3729class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3730{
3731public:
70d7cb34
RD
3732
3733 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3734 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3735 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3736 }
70d7cb34 3737
72ef6efb 3738 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3739
3740 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3741 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3742 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3743 }
b876c1e4 3744
70d7cb34 3745 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3746 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3747 "wx.GraphicsContext is not available on this platform.");
3748 }
b876c1e4 3749
70d7cb34
RD
3750 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3751 PyErr_SetString(PyExc_NotImplementedError,
3752 "wx.GraphicsContext is not available on this platform.");
3753 }
3754
3755 static wxGraphicsContext* Create( wxWindow* ) {
3756 PyErr_SetString(PyExc_NotImplementedError,
3757 "wx.GraphicsContext is not available on this platform.");
3758 }
3759
3760 wxGraphicsPath * CreatePath() { return NULL; }
3761
3762 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3763
3764 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3765
3766 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3767 const wxColour&, const wxColour&) { return NULL; }
3768
3769 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3770 wxDouble xc, wxDouble yc, wxDouble radius,
3771 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3772
3773 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3774
3775 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3776 wxDouble, wxDouble) { return NULL; }
3777
3778 virtual void PushState() {}
3779 virtual void PopState() {}
3780 virtual void Clip( const wxRegion & ) {}
3781 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3782 virtual void ResetClip() {}
3783 virtual void * GetNativeContext() { return NULL; }
3784 virtual void Translate( wxDouble , wxDouble ) {}
3785 virtual void Scale( wxDouble , wxDouble ) {}
3786 virtual void Rotate( wxDouble ) {}
3787 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3788 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3789 virtual void GetTransform( wxGraphicsMatrix* ) {}
3790
3791 virtual void SetPen( const wxGraphicsPen& ) {}
3792 void SetPen( const wxPen& ) {}
3793
3794 virtual void SetBrush( const wxGraphicsBrush& ) {}
3795 void SetBrush( const wxBrush& ) {}
3796
3797 virtual void SetFont( const wxGraphicsFont& ) {}
3798 void SetFont( const wxFont&, const wxColour& ) {}
3799
3800 virtual void StrokePath( const wxGraphicsPath * ) {}
3801 virtual void FillPath( const wxGraphicsPath *, int ) {}
3802 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3803
3804 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3805 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3806 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3807 wxDouble *, wxDouble * ) const {}
3808 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3809
3810 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3811 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3812
3813 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3814 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3815 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3816 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3817 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3818 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3819 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual bool ShouldOffset() const { return false; }
3821};
3822
3823
3824class wxGraphicsRenderer : public wxObject
3825{
3826public :
3827 wxGraphicsRenderer() {
3828 PyErr_SetString(PyExc_NotImplementedError,
3829 "wx.GraphicsRenderer is not available on this platform.");
3830 }
3831
3832 virtual ~wxGraphicsRenderer() {}
3833
3834 static wxGraphicsRenderer* GetDefaultRenderer(
3835 PyErr_SetString(PyExc_NotImplementedError,
3836 "wx.GraphicsRenderer is not available on this platform.");
3837 );
3838
3839 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3840 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3841 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3842 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3843
3844 virtual wxGraphicsPath * CreatePath() { return NULL; }
3845
3846 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3847 wxDouble , wxDouble ) { return NULL; }
3848
3849 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3850 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3851 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3852 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3853 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3854 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3855 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3856};
3857
3858
70d7cb34 3859
72ef6efb
RD
3860class wxGCDC: public wxWindowDC
3861{
3862public:
3863 wxGCDC(const wxWindowDC&) {
3864 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3865 PyErr_SetString(PyExc_NotImplementedError,
3866 "wxGCDC is not available on this platform.");
3867 wxPyEndBlockThreads(blocked);
3868 }
70d7cb34 3869
72ef6efb
RD
3870 wxGCDC() {
3871 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3872 PyErr_SetString(PyExc_NotImplementedError,
3873 "wxGCDC is not available on this platform.");
3874 wxPyEndBlockThreads(blocked);
3875 }
70d7cb34 3876
72ef6efb
RD
3877 virtual ~wxGCDC() {}
3878
b876c1e4
RD
3879 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3880 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3881};
3882
3883#endif
3884
5c8c7dd3
RD
3885SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3886 *self = t;
3887 }
be68621e
RD
3888SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3889 wxDouble width = 0.0,
3890 height = 0.0;
3891 self->GetTextExtent(text, &width, &height, NULL, NULL);
3892 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3893 PyObject* rv = PyTuple_New(2);
3894 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3895 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3896 return rv;
3897 }
b39fe951
RD
3898SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3899 wxArrayDouble widths;
3900 self->GetPartialTextExtents(text, widths);
3901 return widths;
3902 }
f8eb59b9 3903SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3904 size_t c1, c2, count;
3905 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3906 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3907
3908 if ( beginP != NULL && endP != NULL )
3909 {
3910 count = wxMin(c1, c2);
3911 self->StrokeLines(count, beginP, endP);
3912 }
3913 delete [] beginP;
3914 delete [] endP;
3915 }
72ef6efb 3916
0a27f394
RD
3917#include "wx/dcgraph.h"
3918
3919
66493fc7
RD
3920#include <wx/overlay.h>
3921
3922
093d3ff1 3923
554f62e9 3924SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3925 self->AddColour(name, wxColour(red, green, blue));
3926 }
3927
50efceee
RD
3928 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3929 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3930 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3931 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3932
3933
093d3ff1
RD
3934#include <wx/effects.h>
3935
be9b1dca
RD
3936
3937#include "wx/renderer.h"
3938
3939
7449af73 3940SWIGINTERNINLINE PyObject*
554f62e9 3941 SWIG_From_bool (bool value)
be9b1dca 3942{
554f62e9 3943 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3944}
3945
27e45892
RD
3946
3947#include "wx/wxPython/pseudodc.h"
3948
3949SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3950 wxRect rect;
3951 self->GetIdBounds(id, rect);
3952 return rect;
3953 }
093d3ff1
RD
3954#ifdef __cplusplus
3955extern "C" {
3956#endif
554f62e9
RD
3957SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3958 PyObject *resultobj = 0;
3959 wxGDIObject *result = 0 ;
3960
3961 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3962 {
3963 if (!wxPyCheckForApp()) SWIG_fail;
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 result = (wxGDIObject *)new wxGDIObject();
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3970 return resultobj;
3971fail:
3972 return NULL;
d55e5bfc
RD
3973}
3974
3975
554f62e9
RD
3976SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3977 PyObject *resultobj = 0;
3978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3979 void *argp1 = 0 ;
3980 int res1 = 0 ;
3981 PyObject *swig_obj[1] ;
3982
3983 if (!args) SWIG_fail;
3984 swig_obj[0] = args;
3985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3986 if (!SWIG_IsOK(res1)) {
3987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3988 }
3989 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3990 {
3991 PyThreadState* __tstate = wxPyBeginAllowThreads();
3992 delete arg1;
d55e5bfc 3993
554f62e9
RD
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 resultobj = SWIG_Py_Void();
3998 return resultobj;
3999fail:
4000 return NULL;
d55e5bfc
RD
4001}
4002
4003
554f62e9
RD
4004SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4005 PyObject *resultobj = 0;
4006 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4007 bool result;
4008 void *argp1 = 0 ;
4009 int res1 = 0 ;
4010 PyObject *swig_obj[1] ;
4011
4012 if (!args) SWIG_fail;
4013 swig_obj[0] = args;
4014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4015 if (!SWIG_IsOK(res1)) {
4016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4017 }
4018 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4019 {
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (bool)(arg1)->IsNull();
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 {
4026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4027 }
4028 return resultobj;
4029fail:
4030 return NULL;
4031}
4032
4033
4034SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4035 PyObject *obj;
4036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4037 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4038 return SWIG_Py_Void();
4039}
4040
4041SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4042 return SWIG_Python_InitShadowInstance(args);
4043}
4044
4045SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj = 0;
4047 byte arg1 = (byte) 0 ;
4048 byte arg2 = (byte) 0 ;
4049 byte arg3 = (byte) 0 ;
fc46b7f3 4050 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4051 wxColour *result = 0 ;
4052 unsigned char val1 ;
4053 int ecode1 = 0 ;
4054 unsigned char val2 ;
4055 int ecode2 = 0 ;
4056 unsigned char val3 ;
4057 int ecode3 = 0 ;
fc46b7f3
RD
4058 unsigned char val4 ;
4059 int ecode4 = 0 ;
554f62e9
RD
4060 PyObject * obj0 = 0 ;
4061 PyObject * obj1 = 0 ;
4062 PyObject * obj2 = 0 ;
fc46b7f3 4063 PyObject * obj3 = 0 ;
554f62e9 4064 char * kwnames[] = {
fc46b7f3 4065 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4066 };
4067
fc46b7f3 4068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
4069 if (obj0) {
4070 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4071 if (!SWIG_IsOK(ecode1)) {
4072 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4073 }
4074 arg1 = static_cast< byte >(val1);
4075 }
4076 if (obj1) {
4077 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4078 if (!SWIG_IsOK(ecode2)) {
4079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4080 }
4081 arg2 = static_cast< byte >(val2);
4082 }
4083 if (obj2) {
4084 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4085 if (!SWIG_IsOK(ecode3)) {
4086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4087 }
4088 arg3 = static_cast< byte >(val3);
4089 }
fc46b7f3
RD
4090 if (obj3) {
4091 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4092 if (!SWIG_IsOK(ecode4)) {
4093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4094 }
4095 arg4 = static_cast< byte >(val4);
4096 }
554f62e9
RD
4097 {
4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4099 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4104 return resultobj;
4105fail:
4106 return NULL;
d55e5bfc
RD
4107}
4108
4109
554f62e9
RD
4110SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj = 0;
4112 wxString *arg1 = 0 ;
4113 wxColour *result = 0 ;
4114 bool temp1 = false ;
4115 PyObject * obj0 = 0 ;
4116 char * kwnames[] = {
4117 (char *) "colorName", NULL
4118 };
4119
4120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4121 {
4122 arg1 = wxString_in_helper(obj0);
4123 if (arg1 == NULL) SWIG_fail;
4124 temp1 = true;
4125 }
4126 {
4127 if (!wxPyCheckForApp()) SWIG_fail;
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 result = (wxColour *)new wxColour((wxString const &)*arg1);
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4134 {
4135 if (temp1)
4136 delete arg1;
4137 }
4138 return resultobj;
4139fail:
4140 {
4141 if (temp1)
4142 delete arg1;
4143 }
4144 return NULL;
b519803b
RD
4145}
4146
4147
554f62e9
RD
4148SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4149 PyObject *resultobj = 0;
4150 unsigned long arg1 ;
4151 wxColour *result = 0 ;
4152 unsigned long val1 ;
4153 int ecode1 = 0 ;
4154 PyObject * obj0 = 0 ;
4155 char * kwnames[] = {
4156 (char *) "colRGB", NULL
4157 };
4158
4159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4160 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4161 if (!SWIG_IsOK(ecode1)) {
4162 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4163 }
4164 arg1 = static_cast< unsigned long >(val1);
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (wxColour *)new wxColour(arg1);
4168 wxPyEndAllowThreads(__tstate);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4172 return resultobj;
4173fail:
4174 return NULL;
d55e5bfc
RD
4175}
4176
4177
554f62e9
RD
4178SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4179 PyObject *resultobj = 0;
4180 wxColour *arg1 = (wxColour *) 0 ;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 PyObject *swig_obj[1] ;
4184
4185 if (!args) SWIG_fail;
4186 swig_obj[0] = args;
4187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4188 if (!SWIG_IsOK(res1)) {
4189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4190 }
4191 arg1 = reinterpret_cast< wxColour * >(argp1);
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 delete arg1;
d55e5bfc 4195
554f62e9
RD
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 resultobj = SWIG_Py_Void();
4200 return resultobj;
4201fail:
4202 return NULL;
d55e5bfc
RD
4203}
4204
4205
554f62e9
RD
4206SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4207 PyObject *resultobj = 0;
4208 wxColour *arg1 = (wxColour *) 0 ;
4209 byte result;
4210 void *argp1 = 0 ;
4211 int res1 = 0 ;
4212 PyObject *swig_obj[1] ;
4213
4214 if (!args) SWIG_fail;
4215 swig_obj[0] = args;
4216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4219 }
4220 arg1 = reinterpret_cast< wxColour * >(argp1);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (byte)(arg1)->Red();
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4228 return resultobj;
4229fail:
4230 return NULL;
d55e5bfc
RD
4231}
4232
4233
554f62e9
RD
4234SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 PyObject *resultobj = 0;
4236 wxColour *arg1 = (wxColour *) 0 ;
4237 byte result;
4238 void *argp1 = 0 ;
4239 int res1 = 0 ;
4240 PyObject *swig_obj[1] ;
4241
4242 if (!args) SWIG_fail;
4243 swig_obj[0] = args;
4244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4245 if (!SWIG_IsOK(res1)) {
4246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4247 }
4248 arg1 = reinterpret_cast< wxColour * >(argp1);
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 result = (byte)(arg1)->Green();
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4256 return resultobj;
4257fail:
4258 return NULL;
d55e5bfc
RD
4259}
4260
4261
554f62e9
RD
4262SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4263 PyObject *resultobj = 0;
4264 wxColour *arg1 = (wxColour *) 0 ;
4265 byte result;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 PyObject *swig_obj[1] ;
4269
4270 if (!args) SWIG_fail;
4271 swig_obj[0] = args;
4272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4273 if (!SWIG_IsOK(res1)) {
4274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4275 }
4276 arg1 = reinterpret_cast< wxColour * >(argp1);
4277 {
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (byte)(arg1)->Blue();
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4284 return resultobj;
4285fail:
4286 return NULL;
d55e5bfc
RD
4287}
4288
4289
fc46b7f3
RD
4290SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4291 PyObject *resultobj = 0;
4292 wxColour *arg1 = (wxColour *) 0 ;
4293 byte result;
4294 void *argp1 = 0 ;
4295 int res1 = 0 ;
4296 PyObject *swig_obj[1] ;
4297
4298 if (!args) SWIG_fail;
4299 swig_obj[0] = args;
4300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4301 if (!SWIG_IsOK(res1)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4303 }
4304 arg1 = reinterpret_cast< wxColour * >(argp1);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (byte)(arg1)->Alpha();
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4312 return resultobj;
4313fail:
4314 return NULL;
4315}
4316
4317
b39fe951 4318SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4319 PyObject *resultobj = 0;
4320 wxColour *arg1 = (wxColour *) 0 ;
4321 bool result;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 PyObject *swig_obj[1] ;
4325
4326 if (!args) SWIG_fail;
4327 swig_obj[0] = args;
4328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
b39fe951 4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4331 }
4332 arg1 = reinterpret_cast< wxColour * >(argp1);
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4335 result = (bool)(arg1)->IsOk();
554f62e9
RD
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 {
4340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4341 }
4342 return resultobj;
4343fail:
4344 return NULL;
4345}
4346
4347
4348SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj = 0;
4350 wxColour *arg1 = (wxColour *) 0 ;
4351 byte arg2 ;
4352 byte arg3 ;
4353 byte arg4 ;
fc46b7f3 4354 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4355 void *argp1 = 0 ;
4356 int res1 = 0 ;
4357 unsigned char val2 ;
4358 int ecode2 = 0 ;
4359 unsigned char val3 ;
4360 int ecode3 = 0 ;
4361 unsigned char val4 ;
4362 int ecode4 = 0 ;
fc46b7f3
RD
4363 unsigned char val5 ;
4364 int ecode5 = 0 ;
554f62e9
RD
4365 PyObject * obj0 = 0 ;
4366 PyObject * obj1 = 0 ;
4367 PyObject * obj2 = 0 ;
4368 PyObject * obj3 = 0 ;
fc46b7f3 4369 PyObject * obj4 = 0 ;
554f62e9 4370 char * kwnames[] = {
fc46b7f3 4371 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4372 };
4373
fc46b7f3 4374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4376 if (!SWIG_IsOK(res1)) {
4377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4378 }
4379 arg1 = reinterpret_cast< wxColour * >(argp1);
4380 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4381 if (!SWIG_IsOK(ecode2)) {
4382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4383 }
4384 arg2 = static_cast< byte >(val2);
4385 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4386 if (!SWIG_IsOK(ecode3)) {
4387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4388 }
4389 arg3 = static_cast< byte >(val3);
4390 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4391 if (!SWIG_IsOK(ecode4)) {
4392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4393 }
4394 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4395 if (obj4) {
4396 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4397 if (!SWIG_IsOK(ecode5)) {
4398 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4399 }
4400 arg5 = static_cast< byte >(val5);
4401 }
554f62e9
RD
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4404 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4405 wxPyEndAllowThreads(__tstate);
4406 if (PyErr_Occurred()) SWIG_fail;
4407 }
4408 resultobj = SWIG_Py_Void();
4409 return resultobj;
4410fail:
4411 return NULL;
4412}
4413
4414
4415SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4416 PyObject *resultobj = 0;
4417 wxColour *arg1 = (wxColour *) 0 ;
4418 unsigned long arg2 ;
4419 void *argp1 = 0 ;
4420 int res1 = 0 ;
4421 unsigned long val2 ;
4422 int ecode2 = 0 ;
4423 PyObject * obj0 = 0 ;
4424 PyObject * obj1 = 0 ;
4425 char * kwnames[] = {
4426 (char *) "self",(char *) "colRGB", NULL
4427 };
4428
4429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4431 if (!SWIG_IsOK(res1)) {
4432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4433 }
4434 arg1 = reinterpret_cast< wxColour * >(argp1);
4435 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4436 if (!SWIG_IsOK(ecode2)) {
4437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4438 }
4439 arg2 = static_cast< unsigned long >(val2);
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 (arg1)->Set(arg2);
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 resultobj = SWIG_Py_Void();
4447 return resultobj;
4448fail:
4449 return NULL;
4450}
4451
4452
4453SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4454 PyObject *resultobj = 0;
4455 wxColour *arg1 = (wxColour *) 0 ;
4456 wxString *arg2 = 0 ;
4457 void *argp1 = 0 ;
4458 int res1 = 0 ;
4459 bool temp2 = false ;
4460 PyObject * obj0 = 0 ;
4461 PyObject * obj1 = 0 ;
4462 char * kwnames[] = {
4463 (char *) "self",(char *) "colourName", NULL
4464 };
4465
4466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4468 if (!SWIG_IsOK(res1)) {
4469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4470 }
4471 arg1 = reinterpret_cast< wxColour * >(argp1);
4472 {
4473 arg2 = wxString_in_helper(obj1);
4474 if (arg2 == NULL) SWIG_fail;
4475 temp2 = true;
4476 }
4477 {
4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4479 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 resultobj = SWIG_Py_Void();
4484 {
4485 if (temp2)
4486 delete arg2;
4487 }
4488 return resultobj;
4489fail:
4490 {
4491 if (temp2)
4492 delete arg2;
4493 }
4494 return NULL;
d55e5bfc
RD
4495}
4496
4497
f460c29d
RD
4498SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4499 PyObject *resultobj = 0;
4500 wxColour *arg1 = (wxColour *) 0 ;
4501 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4502 wxString result;
4503 void *argp1 = 0 ;
4504 int res1 = 0 ;
4505 long val2 ;
4506 int ecode2 = 0 ;
4507 PyObject * obj0 = 0 ;
4508 PyObject * obj1 = 0 ;
4509 char * kwnames[] = {
4510 (char *) "self",(char *) "flags", NULL
4511 };
4512
4513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4515 if (!SWIG_IsOK(res1)) {
4516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4517 }
4518 arg1 = reinterpret_cast< wxColour * >(argp1);
4519 if (obj1) {
4520 ecode2 = SWIG_AsVal_long(obj1, &val2);
4521 if (!SWIG_IsOK(ecode2)) {
4522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4523 }
4524 arg2 = static_cast< long >(val2);
4525 }
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = ((wxColour const *)arg1)->GetAsString(arg2);
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533#if wxUSE_UNICODE
4534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4535#else
4536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4537#endif
4538 }
4539 return resultobj;
4540fail:
4541 return NULL;
4542}
4543
4544
554f62e9
RD
4545SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4546 PyObject *resultobj = 0;
4547 wxColour *arg1 = (wxColour *) 0 ;
4548 long result;
4549 void *argp1 = 0 ;
4550 int res1 = 0 ;
4551 PyObject *swig_obj[1] ;
4552
4553 if (!args) SWIG_fail;
4554 swig_obj[0] = args;
4555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4556 if (!SWIG_IsOK(res1)) {
4557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4558 }
4559 arg1 = reinterpret_cast< wxColour * >(argp1);
4560 {
4561 PyThreadState* __tstate = wxPyBeginAllowThreads();
4562 result = (long)((wxColour const *)arg1)->GetPixel();
4563 wxPyEndAllowThreads(__tstate);
4564 if (PyErr_Occurred()) SWIG_fail;
4565 }
4566 resultobj = SWIG_From_long(static_cast< long >(result));
4567 return resultobj;
4568fail:
4569 return NULL;
4570}
4571
4572
4573SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj = 0;
4575 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4576 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4577 bool result;
4578 void *argp1 = 0 ;
4579 int res1 = 0 ;
554f62e9
RD
4580 PyObject * obj0 = 0 ;
4581 PyObject * obj1 = 0 ;
4582 char * kwnames[] = {
e9d6f3a4 4583 (char *) "self",(char *) "other", NULL
554f62e9
RD
4584 };
4585
4586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4588 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4590 }
4591 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4592 arg2 = obj1;
554f62e9 4593 {
e9d6f3a4 4594 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 {
4598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4599 }
4600 return resultobj;
4601fail:
4602 return NULL;
4603}
4604
4605
4606SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj = 0;
4608 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4609 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4610 bool result;
4611 void *argp1 = 0 ;
4612 int res1 = 0 ;
554f62e9
RD
4613 PyObject * obj0 = 0 ;
4614 PyObject * obj1 = 0 ;
4615 char * kwnames[] = {
e9d6f3a4 4616 (char *) "self",(char *) "other", NULL
554f62e9
RD
4617 };
4618
4619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4621 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4623 }
4624 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4625 arg2 = obj1;
554f62e9 4626 {
e9d6f3a4 4627 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 {
4631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4632 }
4633 return resultobj;
4634fail:
4635 return NULL;
d55e5bfc
RD
4636}
4637
4638
fc46b7f3 4639SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4640 PyObject *resultobj = 0;
4641 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4642 bool arg2 = (bool) false ;
554f62e9
RD
4643 PyObject *result = 0 ;
4644 void *argp1 = 0 ;
4645 int res1 = 0 ;
fc46b7f3
RD
4646 bool val2 ;
4647 int ecode2 = 0 ;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 char * kwnames[] = {
4651 (char *) "self",(char *) "includeAlpha", NULL
4652 };
554f62e9 4653
fc46b7f3
RD
4654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4656 if (!SWIG_IsOK(res1)) {
4657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4658 }
4659 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4660 if (obj1) {
4661 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4662 if (!SWIG_IsOK(ecode2)) {
4663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4664 }
4665 arg2 = static_cast< bool >(val2);
4666 }
554f62e9 4667 {
fc46b7f3 4668 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 resultobj = result;
4672 return resultobj;
4673fail:
4674 return NULL;
d55e5bfc
RD
4675}
4676
4677
554f62e9
RD
4678SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 wxColour *arg1 = (wxColour *) 0 ;
4681 unsigned long result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 PyObject *swig_obj[1] ;
4685
4686 if (!args) SWIG_fail;
4687 swig_obj[0] = args;
4688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4691 }
4692 arg1 = reinterpret_cast< wxColour * >(argp1);
4693 {
554f62e9 4694 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4695 if (PyErr_Occurred()) SWIG_fail;
4696 }
4697 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4698 return resultobj;
4699fail:
4700 return NULL;
4701}
4702
4703
4704SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4705 PyObject *obj;
4706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4707 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4708 return SWIG_Py_Void();
4709}
4710
4711SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4712 return SWIG_Python_InitShadowInstance(args);
4713}
4714
4715SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4716 PyObject *resultobj = 0;
4717 int arg1 ;
4718 unsigned char *arg2 = (unsigned char *) 0 ;
4719 unsigned char *arg3 = (unsigned char *) 0 ;
4720 unsigned char *arg4 = (unsigned char *) 0 ;
4721 wxPalette *result = 0 ;
4722 int val1 ;
4723 int ecode1 = 0 ;
4724 void *argp2 = 0 ;
4725 int res2 = 0 ;
4726 void *argp3 = 0 ;
4727 int res3 = 0 ;
4728 void *argp4 = 0 ;
4729 int res4 = 0 ;
4730 PyObject * obj0 = 0 ;
4731 PyObject * obj1 = 0 ;
4732 PyObject * obj2 = 0 ;
4733 PyObject * obj3 = 0 ;
4734 char * kwnames[] = {
4735 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4736 };
4737
4738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4739 ecode1 = SWIG_AsVal_int(obj0, &val1);
4740 if (!SWIG_IsOK(ecode1)) {
4741 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4742 }
4743 arg1 = static_cast< int >(val1);
4744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4745 if (!SWIG_IsOK(res2)) {
4746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4747 }
4748 arg2 = reinterpret_cast< unsigned char * >(argp2);
4749 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4750 if (!SWIG_IsOK(res3)) {
4751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4752 }
4753 arg3 = reinterpret_cast< unsigned char * >(argp3);
4754 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4755 if (!SWIG_IsOK(res4)) {
4756 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4757 }
4758 arg4 = reinterpret_cast< unsigned char * >(argp4);
4759 {
4760 if (!wxPyCheckForApp()) SWIG_fail;
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4767 return resultobj;
4768fail:
4769 return NULL;
093d3ff1
RD
4770}
4771
4772
554f62e9
RD
4773SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4774 PyObject *resultobj = 0;
4775 wxPalette *arg1 = (wxPalette *) 0 ;
4776 void *argp1 = 0 ;
4777 int res1 = 0 ;
4778 PyObject *swig_obj[1] ;
4779
4780 if (!args) SWIG_fail;
4781 swig_obj[0] = args;
4782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4783 if (!SWIG_IsOK(res1)) {
4784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4785 }
4786 arg1 = reinterpret_cast< wxPalette * >(argp1);
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 delete arg1;
093d3ff1 4790
554f62e9
RD
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = SWIG_Py_Void();
4795 return resultobj;
4796fail:
4797 return NULL;
4798}
4799
4800
4801SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj = 0;
4803 wxPalette *arg1 = (wxPalette *) 0 ;
4804 byte arg2 ;
4805 byte arg3 ;
4806 byte arg4 ;
4807 int result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 unsigned char val2 ;
4811 int ecode2 = 0 ;
4812 unsigned char val3 ;
4813 int ecode3 = 0 ;
4814 unsigned char val4 ;
4815 int ecode4 = 0 ;
4816 PyObject * obj0 = 0 ;
4817 PyObject * obj1 = 0 ;
4818 PyObject * obj2 = 0 ;
4819 PyObject * obj3 = 0 ;
4820 char * kwnames[] = {
4821 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4822 };
4823
4824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4826 if (!SWIG_IsOK(res1)) {
4827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4828 }
4829 arg1 = reinterpret_cast< wxPalette * >(argp1);
4830 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4831 if (!SWIG_IsOK(ecode2)) {
4832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4833 }
4834 arg2 = static_cast< byte >(val2);
4835 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4836 if (!SWIG_IsOK(ecode3)) {
4837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4838 }
4839 arg3 = static_cast< byte >(val3);
4840 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4841 if (!SWIG_IsOK(ecode4)) {
4842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4843 }
4844 arg4 = static_cast< byte >(val4);
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 resultobj = SWIG_From_int(static_cast< int >(result));
4852 return resultobj;
4853fail:
4854 return NULL;
4855}
4856
4857
4858SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj = 0;
4860 wxPalette *arg1 = (wxPalette *) 0 ;
4861 int arg2 ;
4862 byte *arg3 = (byte *) 0 ;
4863 byte *arg4 = (byte *) 0 ;
4864 byte *arg5 = (byte *) 0 ;
4865 bool result;
4866 void *argp1 = 0 ;
4867 int res1 = 0 ;
4868 int val2 ;
4869 int ecode2 = 0 ;
4870 byte temp3 ;
4871 int res3 = SWIG_TMPOBJ ;
4872 byte temp4 ;
4873 int res4 = SWIG_TMPOBJ ;
4874 byte temp5 ;
4875 int res5 = SWIG_TMPOBJ ;
4876 PyObject * obj0 = 0 ;
4877 PyObject * obj1 = 0 ;
4878 char * kwnames[] = {
4879 (char *) "self",(char *) "pixel", NULL
4880 };
4881
4882 arg3 = &temp3;
4883 arg4 = &temp4;
4884 arg5 = &temp5;
4885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4889 }
4890 arg1 = reinterpret_cast< wxPalette * >(argp1);
4891 ecode2 = SWIG_AsVal_int(obj1, &val2);
4892 if (!SWIG_IsOK(ecode2)) {
4893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4894 }
4895 arg2 = static_cast< int >(val2);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 }
4905 if (SWIG_IsTmpObj(res3)) {
4906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4907 } else {
4908 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4910 }
4911 if (SWIG_IsTmpObj(res4)) {
4912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4913 } else {
4914 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4916 }
4917 if (SWIG_IsTmpObj(res5)) {
4918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4919 } else {
4920 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4922 }
4923 return resultobj;
4924fail:
4925 return NULL;
d55e5bfc
RD
4926}
4927
4928
554f62e9
RD
4929SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4930 PyObject *resultobj = 0;
4931 wxPalette *arg1 = (wxPalette *) 0 ;
4932 int result;
4933 void *argp1 = 0 ;
4934 int res1 = 0 ;
4935 PyObject *swig_obj[1] ;
4936
4937 if (!args) SWIG_fail;
4938 swig_obj[0] = args;
4939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4940 if (!SWIG_IsOK(res1)) {
4941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4942 }
4943 arg1 = reinterpret_cast< wxPalette * >(argp1);
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4947 wxPyEndAllowThreads(__tstate);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 }
4950 resultobj = SWIG_From_int(static_cast< int >(result));
4951 return resultobj;
4952fail:
4953 return NULL;
d55e5bfc
RD
4954}
4955
4956
b39fe951 4957SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4958 PyObject *resultobj = 0;
4959 wxPalette *arg1 = (wxPalette *) 0 ;
4960 bool result;
4961 void *argp1 = 0 ;
4962 int res1 = 0 ;
4963 PyObject *swig_obj[1] ;
4964
4965 if (!args) SWIG_fail;
4966 swig_obj[0] = args;
4967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4968 if (!SWIG_IsOK(res1)) {
b39fe951 4969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
4970 }
4971 arg1 = reinterpret_cast< wxPalette * >(argp1);
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4974 result = (bool)(arg1)->IsOk();
554f62e9
RD
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 {
4979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4980 }
4981 return resultobj;
4982fail:
4983 return NULL;
4984}
4985
4986
4987SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4988 PyObject *obj;
4989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4990 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4991 return SWIG_Py_Void();
4992}
4993
4994SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4995 return SWIG_Python_InitShadowInstance(args);
4996}
4997
4998SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj = 0;
5000 wxColour *arg1 = 0 ;
5001 int arg2 = (int) 1 ;
5002 int arg3 = (int) wxSOLID ;
5003 wxPen *result = 0 ;
5004 wxColour temp1 ;
5005 int val2 ;
5006 int ecode2 = 0 ;
5007 int val3 ;
5008 int ecode3 = 0 ;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 PyObject * obj2 = 0 ;
5012 char * kwnames[] = {
5013 (char *) "colour",(char *) "width",(char *) "style", NULL
5014 };
5015
5016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5017 {
5018 arg1 = &temp1;
5019 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5020 }
5021 if (obj1) {
5022 ecode2 = SWIG_AsVal_int(obj1, &val2);
5023 if (!SWIG_IsOK(ecode2)) {
5024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5025 }
5026 arg2 = static_cast< int >(val2);
5027 }
5028 if (obj2) {
5029 ecode3 = SWIG_AsVal_int(obj2, &val3);
5030 if (!SWIG_IsOK(ecode3)) {
5031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5032 }
5033 arg3 = static_cast< int >(val3);
5034 }
5035 {
5036 if (!wxPyCheckForApp()) SWIG_fail;
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5043 return resultobj;
5044fail:
5045 return NULL;
d55e5bfc
RD
5046}
5047
5048
554f62e9
RD
5049SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5050 PyObject *resultobj = 0;
5051 wxPen *arg1 = (wxPen *) 0 ;
5052 void *argp1 = 0 ;
5053 int res1 = 0 ;
5054 PyObject *swig_obj[1] ;
5055
5056 if (!args) SWIG_fail;
5057 swig_obj[0] = args;
5058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5059 if (!SWIG_IsOK(res1)) {
5060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5061 }
5062 arg1 = reinterpret_cast< wxPen * >(argp1);
5063 {
5064 PyThreadState* __tstate = wxPyBeginAllowThreads();
5065 delete arg1;
d55e5bfc 5066
554f62e9
RD
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 resultobj = SWIG_Py_Void();
5071 return resultobj;
5072fail:
5073 return NULL;
d55e5bfc
RD
5074}
5075
5076
554f62e9
RD
5077SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5078 PyObject *resultobj = 0;
5079 wxPen *arg1 = (wxPen *) 0 ;
5080 int result;
5081 void *argp1 = 0 ;
5082 int res1 = 0 ;
5083 PyObject *swig_obj[1] ;
5084
5085 if (!args) SWIG_fail;
5086 swig_obj[0] = args;
5087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5088 if (!SWIG_IsOK(res1)) {
5089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5090 }
5091 arg1 = reinterpret_cast< wxPen * >(argp1);
5092 {
5093 PyThreadState* __tstate = wxPyBeginAllowThreads();
5094 result = (int)(arg1)->GetCap();
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = SWIG_From_int(static_cast< int >(result));
5099 return resultobj;
5100fail:
5101 return NULL;
d55e5bfc
RD
5102}
5103
5104
554f62e9
RD
5105SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5106 PyObject *resultobj = 0;
5107 wxPen *arg1 = (wxPen *) 0 ;
5108 wxColour result;
5109 void *argp1 = 0 ;
5110 int res1 = 0 ;
5111 PyObject *swig_obj[1] ;
5112
5113 if (!args) SWIG_fail;
5114 swig_obj[0] = args;
5115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5116 if (!SWIG_IsOK(res1)) {
5117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5118 }
5119 arg1 = reinterpret_cast< wxPen * >(argp1);
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 result = (arg1)->GetColour();
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 }
5126 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5127 return resultobj;
5128fail:
5129 return NULL;
d55e5bfc
RD
5130}
5131
5132
554f62e9
RD
5133SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5134 PyObject *resultobj = 0;
5135 wxPen *arg1 = (wxPen *) 0 ;
5136 int result;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 PyObject *swig_obj[1] ;
5140
5141 if (!args) SWIG_fail;
5142 swig_obj[0] = args;
5143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5144 if (!SWIG_IsOK(res1)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5146 }
5147 arg1 = reinterpret_cast< wxPen * >(argp1);
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 result = (int)(arg1)->GetJoin();
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 resultobj = SWIG_From_int(static_cast< int >(result));
5155 return resultobj;
5156fail:
5157 return NULL;
d55e5bfc
RD
5158}
5159
5160
554f62e9
RD
5161SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5162 PyObject *resultobj = 0;
5163 wxPen *arg1 = (wxPen *) 0 ;
5164 int result;
5165 void *argp1 = 0 ;
5166 int res1 = 0 ;
5167 PyObject *swig_obj[1] ;
5168
5169 if (!args) SWIG_fail;
5170 swig_obj[0] = args;
5171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5172 if (!SWIG_IsOK(res1)) {
5173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5174 }
5175 arg1 = reinterpret_cast< wxPen * >(argp1);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (int)(arg1)->GetStyle();
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_From_int(static_cast< int >(result));
5183 return resultobj;
5184fail:
5185 return NULL;
d55e5bfc
RD
5186}
5187
5188
554f62e9
RD
5189SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 wxPen *arg1 = (wxPen *) 0 ;
5192 int result;
5193 void *argp1 = 0 ;
5194 int res1 = 0 ;
5195 PyObject *swig_obj[1] ;
5196
5197 if (!args) SWIG_fail;
5198 swig_obj[0] = args;
5199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5202 }
5203 arg1 = reinterpret_cast< wxPen * >(argp1);
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (int)(arg1)->GetWidth();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_From_int(static_cast< int >(result));
5211 return resultobj;
5212fail:
5213 return NULL;
d55e5bfc
RD
5214}
5215
5216
b39fe951 5217SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5218 PyObject *resultobj = 0;
5219 wxPen *arg1 = (wxPen *) 0 ;
5220 bool result;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 PyObject *swig_obj[1] ;
5224
5225 if (!args) SWIG_fail;
5226 swig_obj[0] = args;
5227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
b39fe951 5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
5230 }
5231 arg1 = reinterpret_cast< wxPen * >(argp1);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5234 result = (bool)(arg1)->IsOk();
554f62e9
RD
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 {
5239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5240 }
5241 return resultobj;
5242fail:
5243 return NULL;
5244}
5245
5246
5247SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj = 0;
5249 wxPen *arg1 = (wxPen *) 0 ;
5250 int arg2 ;
5251 void *argp1 = 0 ;
5252 int res1 = 0 ;
5253 int val2 ;
5254 int ecode2 = 0 ;
5255 PyObject * obj0 = 0 ;
5256 PyObject * obj1 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "cap_style", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5265 }
5266 arg1 = reinterpret_cast< wxPen * >(argp1);
5267 ecode2 = SWIG_AsVal_int(obj1, &val2);
5268 if (!SWIG_IsOK(ecode2)) {
5269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5270 }
5271 arg2 = static_cast< int >(val2);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 (arg1)->SetCap(arg2);
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 resultobj = SWIG_Py_Void();
5279 return resultobj;
5280fail:
5281 return NULL;
5282}
5283
5284
5285SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5286 PyObject *resultobj = 0;
5287 wxPen *arg1 = (wxPen *) 0 ;
5288 wxColour *arg2 = 0 ;
5289 void *argp1 = 0 ;
5290 int res1 = 0 ;
5291 wxColour temp2 ;
5292 PyObject * obj0 = 0 ;
5293 PyObject * obj1 = 0 ;
5294 char * kwnames[] = {
5295 (char *) "self",(char *) "colour", NULL
5296 };
5297
5298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5300 if (!SWIG_IsOK(res1)) {
5301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5302 }
5303 arg1 = reinterpret_cast< wxPen * >(argp1);
5304 {
5305 arg2 = &temp2;
5306 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5307 }
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 (arg1)->SetColour(*arg2);
5311 wxPyEndAllowThreads(__tstate);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 }
5314 resultobj = SWIG_Py_Void();
5315 return resultobj;
5316fail:
5317 return NULL;
5318}
5319
5320
5321SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5322 PyObject *resultobj = 0;
5323 wxPen *arg1 = (wxPen *) 0 ;
5324 int arg2 ;
5325 void *argp1 = 0 ;
5326 int res1 = 0 ;
5327 int val2 ;
5328 int ecode2 = 0 ;
5329 PyObject * obj0 = 0 ;
5330 PyObject * obj1 = 0 ;
5331 char * kwnames[] = {
5332 (char *) "self",(char *) "join_style", NULL
5333 };
5334
5335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5337 if (!SWIG_IsOK(res1)) {
5338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5339 }
5340 arg1 = reinterpret_cast< wxPen * >(argp1);
5341 ecode2 = SWIG_AsVal_int(obj1, &val2);
5342 if (!SWIG_IsOK(ecode2)) {
5343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5344 }
5345 arg2 = static_cast< int >(val2);
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 (arg1)->SetJoin(arg2);
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 resultobj = SWIG_Py_Void();
5353 return resultobj;
5354fail:
5355 return NULL;
5356}
5357
5358
5359SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj = 0;
5361 wxPen *arg1 = (wxPen *) 0 ;
5362 int arg2 ;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 int val2 ;
5366 int ecode2 = 0 ;
5367 PyObject * obj0 = 0 ;
5368 PyObject * obj1 = 0 ;
5369 char * kwnames[] = {
5370 (char *) "self",(char *) "style", NULL
5371 };
5372
5373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5377 }
5378 arg1 = reinterpret_cast< wxPen * >(argp1);
5379 ecode2 = SWIG_AsVal_int(obj1, &val2);
5380 if (!SWIG_IsOK(ecode2)) {
5381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5382 }
5383 arg2 = static_cast< int >(val2);
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 (arg1)->SetStyle(arg2);
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 resultobj = SWIG_Py_Void();
5391 return resultobj;
5392fail:
5393 return NULL;
5394}
5395
5396
5397SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj = 0;
5399 wxPen *arg1 = (wxPen *) 0 ;
5400 int arg2 ;
5401 void *argp1 = 0 ;
5402 int res1 = 0 ;
5403 int val2 ;
5404 int ecode2 = 0 ;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 char * kwnames[] = {
5408 (char *) "self",(char *) "width", NULL
5409 };
5410
5411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5413 if (!SWIG_IsOK(res1)) {
5414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5415 }
5416 arg1 = reinterpret_cast< wxPen * >(argp1);
5417 ecode2 = SWIG_AsVal_int(obj1, &val2);
5418 if (!SWIG_IsOK(ecode2)) {
5419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5420 }
5421 arg2 = static_cast< int >(val2);
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 (arg1)->SetWidth(arg2);
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = SWIG_Py_Void();
5429 return resultobj;
5430fail:
5431 return NULL;
5432}
5433
5434
5435SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj = 0;
5437 wxPen *arg1 = (wxPen *) 0 ;
5438 int arg2 ;
5439 wxDash *arg3 = (wxDash *) 0 ;
5440 void *argp1 = 0 ;
5441 int res1 = 0 ;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 char * kwnames[] = {
5445 (char *) "self",(char *) "dashes", NULL
5446 };
5447
5448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5450 if (!SWIG_IsOK(res1)) {
5451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5452 }
5453 arg1 = reinterpret_cast< wxPen * >(argp1);
5454 {
5455 arg2 = PyList_Size(obj1);
5456 arg3 = (wxDash*)byte_LIST_helper(obj1);
5457 if (arg3 == NULL) SWIG_fail;
5458 }
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 (arg1)->SetDashes(arg2,arg3);
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_Py_Void();
5466 {
5467 if (arg3) delete [] arg3;
5468 }
5469 return resultobj;
5470fail:
5471 {
5472 if (arg3) delete [] arg3;
5473 }
5474 return NULL;
d55e5bfc
RD
5475}
5476
5477
554f62e9
RD
5478SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5479 PyObject *resultobj = 0;
5480 wxPen *arg1 = (wxPen *) 0 ;
5481 PyObject *result = 0 ;
5482 void *argp1 = 0 ;
5483 int res1 = 0 ;
5484 PyObject *swig_obj[1] ;
5485
5486 if (!args) SWIG_fail;
5487 swig_obj[0] = args;
5488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5489 if (!SWIG_IsOK(res1)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5491 }
5492 arg1 = reinterpret_cast< wxPen * >(argp1);
5493 {
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 result = (PyObject *)wxPen_GetDashes(arg1);
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 resultobj = result;
5500 return resultobj;
5501fail:
5502 return NULL;
5503}
5504
5505
5506SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj = 0;
5508 wxPen *arg1 = (wxPen *) 0 ;
5509 PyObject *arg2 = (PyObject *) 0 ;
5510 PyObject *arg3 = (PyObject *) 0 ;
5511 void *argp1 = 0 ;
5512 int res1 = 0 ;
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 PyObject * obj2 = 0 ;
5516 char * kwnames[] = {
5517 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5518 };
5519
5520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5522 if (!SWIG_IsOK(res1)) {
5523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5524 }
5525 arg1 = reinterpret_cast< wxPen * >(argp1);
5526 arg2 = obj1;
5527 arg3 = obj2;
5528 {
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 wxPen__SetDashes(arg1,arg2,arg3);
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 resultobj = SWIG_Py_Void();
5535 return resultobj;
5536fail:
5537 return NULL;
d55e5bfc
RD
5538}
5539
5540
554f62e9
RD
5541SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5542 PyObject *resultobj = 0;
5543 wxPen *arg1 = (wxPen *) 0 ;
5544 int result;
5545 void *argp1 = 0 ;
5546 int res1 = 0 ;
5547 PyObject *swig_obj[1] ;
5548
5549 if (!args) SWIG_fail;
5550 swig_obj[0] = args;
5551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5552 if (!SWIG_IsOK(res1)) {
5553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5554 }
5555 arg1 = reinterpret_cast< wxPen * >(argp1);
5556 {
5557 PyThreadState* __tstate = wxPyBeginAllowThreads();
5558 result = (int)((wxPen const *)arg1)->GetDashCount();
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = SWIG_From_int(static_cast< int >(result));
5563 return resultobj;
5564fail:
5565 return NULL;
d55e5bfc
RD
5566}
5567
5568
554f62e9
RD
5569SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5570 PyObject *resultobj = 0;
5571 wxPen *arg1 = (wxPen *) 0 ;
5572 wxBitmap *result = 0 ;
5573 void *argp1 = 0 ;
5574 int res1 = 0 ;
5575 PyObject *swig_obj[1] ;
5576
5577 if (!args) SWIG_fail;
5578 swig_obj[0] = args;
5579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5582 }
5583 arg1 = reinterpret_cast< wxPen * >(argp1);
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 result = (wxBitmap *)(arg1)->GetStipple();
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5591 return resultobj;
5592fail:
5593 return NULL;
5594}
5595
5596
5597SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj = 0;
5599 wxPen *arg1 = (wxPen *) 0 ;
5600 wxBitmap *arg2 = 0 ;
5601 void *argp1 = 0 ;
5602 int res1 = 0 ;
5603 void *argp2 = 0 ;
5604 int res2 = 0 ;
5605 PyObject * obj0 = 0 ;
5606 PyObject * obj1 = 0 ;
5607 char * kwnames[] = {
5608 (char *) "self",(char *) "stipple", NULL
5609 };
5610
5611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5613 if (!SWIG_IsOK(res1)) {
5614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5615 }
5616 arg1 = reinterpret_cast< wxPen * >(argp1);
5617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5618 if (!SWIG_IsOK(res2)) {
5619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5620 }
5621 if (!argp2) {
5622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5623 }
5624 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 (arg1)->SetStipple(*arg2);
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 resultobj = SWIG_Py_Void();
5632 return resultobj;
5633fail:
5634 return NULL;
5635}
5636
5637
5638SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5639 PyObject *resultobj = 0;
5640 wxPen *arg1 = (wxPen *) 0 ;
5641 wxPen *arg2 = (wxPen *) 0 ;
5642 bool result;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 void *argp2 = 0 ;
5646 int res2 = 0 ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 char * kwnames[] = {
5650 (char *) "self",(char *) "other", NULL
5651 };
5652
5653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5655 if (!SWIG_IsOK(res1)) {
5656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5657 }
5658 arg1 = reinterpret_cast< wxPen * >(argp1);
5659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5660 if (!SWIG_IsOK(res2)) {
5661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5662 }
5663 arg2 = reinterpret_cast< wxPen * >(argp2);
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
5670 {
5671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5672 }
5673 return resultobj;
5674fail:
5675 return NULL;
5676}
5677
5678
5679SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5680 PyObject *resultobj = 0;
5681 wxPen *arg1 = (wxPen *) 0 ;
5682 wxPen *arg2 = (wxPen *) 0 ;
5683 bool result;
5684 void *argp1 = 0 ;
5685 int res1 = 0 ;
5686 void *argp2 = 0 ;
5687 int res2 = 0 ;
5688 PyObject * obj0 = 0 ;
5689 PyObject * obj1 = 0 ;
5690 char * kwnames[] = {
5691 (char *) "self",(char *) "other", NULL
5692 };
5693
5694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5696 if (!SWIG_IsOK(res1)) {
5697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5698 }
5699 arg1 = reinterpret_cast< wxPen * >(argp1);
5700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5701 if (!SWIG_IsOK(res2)) {
5702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5703 }
5704 arg2 = reinterpret_cast< wxPen * >(argp2);
5705 {
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5708 wxPyEndAllowThreads(__tstate);
5709 if (PyErr_Occurred()) SWIG_fail;
5710 }
5711 {
5712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5713 }
5714 return resultobj;
5715fail:
5716 return NULL;
d55e5bfc
RD
5717}
5718
5719
554f62e9
RD
5720SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5721 PyObject *obj;
5722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5723 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5724 return SWIG_Py_Void();
d55e5bfc
RD
5725}
5726
554f62e9
RD
5727SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5728 return SWIG_Python_InitShadowInstance(args);
5729}
d55e5bfc 5730
554f62e9
RD
5731SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5732 PyObject *resultobj = 0;
5733 wxColour *arg1 = 0 ;
5734 int arg2 = (int) wxSOLID ;
5735 wxBrush *result = 0 ;
5736 wxColour temp1 ;
5737 int val2 ;
5738 int ecode2 = 0 ;
5739 PyObject * obj0 = 0 ;
5740 PyObject * obj1 = 0 ;
5741 char * kwnames[] = {
5742 (char *) "colour",(char *) "style", NULL
5743 };
5744
5745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5746 {
5747 arg1 = &temp1;
5748 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5749 }
5750 if (obj1) {
5751 ecode2 = SWIG_AsVal_int(obj1, &val2);
5752 if (!SWIG_IsOK(ecode2)) {
5753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5754 }
5755 arg2 = static_cast< int >(val2);
5756 }
5757 {
5758 if (!wxPyCheckForApp()) SWIG_fail;
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5765 return resultobj;
5766fail:
5767 return NULL;
5768}
5769
5770
5771SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5772 PyObject *resultobj = 0;
5773 wxBitmap *arg1 = 0 ;
5774 wxBrush *result = 0 ;
5775 void *argp1 = 0 ;
5776 int res1 = 0 ;
5777 PyObject * obj0 = 0 ;
5778 char * kwnames[] = {
5779 (char *) "stippleBitmap", NULL
5780 };
5781
5782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5783 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5784 if (!SWIG_IsOK(res1)) {
5785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5786 }
5787 if (!argp1) {
5788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5789 }
5790 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5791 {
5792 if (!wxPyCheckForApp()) SWIG_fail;
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5799 return resultobj;
5800fail:
5801 return NULL;
d55e5bfc
RD
5802}
5803
5804
554f62e9
RD
5805SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5806 PyObject *resultobj = 0;
5807 wxBrush *arg1 = (wxBrush *) 0 ;
5808 void *argp1 = 0 ;
5809 int res1 = 0 ;
5810 PyObject *swig_obj[1] ;
5811
5812 if (!args) SWIG_fail;
5813 swig_obj[0] = args;
5814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5815 if (!SWIG_IsOK(res1)) {
5816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5817 }
5818 arg1 = reinterpret_cast< wxBrush * >(argp1);
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 delete arg1;
d55e5bfc 5822
554f62e9
RD
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = SWIG_Py_Void();
5827 return resultobj;
5828fail:
5829 return NULL;
5830}
5831
5832
5833SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj = 0;
5835 wxBrush *arg1 = (wxBrush *) 0 ;
5836 wxColour *arg2 = 0 ;
5837 void *argp1 = 0 ;
5838 int res1 = 0 ;
5839 wxColour temp2 ;
5840 PyObject * obj0 = 0 ;
5841 PyObject * obj1 = 0 ;
5842 char * kwnames[] = {
5843 (char *) "self",(char *) "col", NULL
5844 };
5845
5846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5850 }
5851 arg1 = reinterpret_cast< wxBrush * >(argp1);
5852 {
5853 arg2 = &temp2;
5854 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5855 }
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 (arg1)->SetColour((wxColour const &)*arg2);
5859 wxPyEndAllowThreads(__tstate);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 resultobj = SWIG_Py_Void();
5863 return resultobj;
5864fail:
5865 return NULL;
5866}
5867
5868
5869SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5870 PyObject *resultobj = 0;
5871 wxBrush *arg1 = (wxBrush *) 0 ;
5872 int arg2 ;
5873 void *argp1 = 0 ;
5874 int res1 = 0 ;
5875 int val2 ;
5876 int ecode2 = 0 ;
5877 PyObject * obj0 = 0 ;
5878 PyObject * obj1 = 0 ;
5879 char * kwnames[] = {
5880 (char *) "self",(char *) "style", NULL
5881 };
5882
5883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5885 if (!SWIG_IsOK(res1)) {
5886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5887 }
5888 arg1 = reinterpret_cast< wxBrush * >(argp1);
5889 ecode2 = SWIG_AsVal_int(obj1, &val2);
5890 if (!SWIG_IsOK(ecode2)) {
5891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5892 }
5893 arg2 = static_cast< int >(val2);
5894 {
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 (arg1)->SetStyle(arg2);
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_Py_Void();
5901 return resultobj;
5902fail:
5903 return NULL;
5904}
5905
5906
5907SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj = 0;
5909 wxBrush *arg1 = (wxBrush *) 0 ;
5910 wxBitmap *arg2 = 0 ;
5911 void *argp1 = 0 ;
5912 int res1 = 0 ;
5913 void *argp2 = 0 ;
5914 int res2 = 0 ;
5915 PyObject * obj0 = 0 ;
5916 PyObject * obj1 = 0 ;
5917 char * kwnames[] = {
5918 (char *) "self",(char *) "stipple", NULL
5919 };
5920
5921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5923 if (!SWIG_IsOK(res1)) {
5924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5925 }
5926 arg1 = reinterpret_cast< wxBrush * >(argp1);
5927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5928 if (!SWIG_IsOK(res2)) {
5929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5930 }
5931 if (!argp2) {
5932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5933 }
5934 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 (arg1)->SetStipple((wxBitmap const &)*arg2);
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 resultobj = SWIG_Py_Void();
5942 return resultobj;
5943fail:
5944 return NULL;
d55e5bfc
RD
5945}
5946
5947
554f62e9
RD
5948SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5949 PyObject *resultobj = 0;
5950 wxBrush *arg1 = (wxBrush *) 0 ;
5951 wxColour result;
5952 void *argp1 = 0 ;
5953 int res1 = 0 ;
5954 PyObject *swig_obj[1] ;
5955
5956 if (!args) SWIG_fail;
5957 swig_obj[0] = args;
5958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5959 if (!SWIG_IsOK(res1)) {
5960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5961 }
5962 arg1 = reinterpret_cast< wxBrush * >(argp1);
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 result = ((wxBrush const *)arg1)->GetColour();
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5970 return resultobj;
5971fail:
5972 return NULL;
d55e5bfc
RD
5973}
5974
5975
554f62e9
RD
5976SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5977 PyObject *resultobj = 0;
5978 wxBrush *arg1 = (wxBrush *) 0 ;
5979 int result;
5980 void *argp1 = 0 ;
5981 int res1 = 0 ;
5982 PyObject *swig_obj[1] ;
5983
5984 if (!args) SWIG_fail;
5985 swig_obj[0] = args;
5986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5987 if (!SWIG_IsOK(res1)) {
5988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5989 }
5990 arg1 = reinterpret_cast< wxBrush * >(argp1);
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 result = (int)((wxBrush const *)arg1)->GetStyle();
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 resultobj = SWIG_From_int(static_cast< int >(result));
5998 return resultobj;
5999fail:
6000 return NULL;
d55e5bfc
RD
6001}
6002
6003
554f62e9
RD
6004SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6005 PyObject *resultobj = 0;
6006 wxBrush *arg1 = (wxBrush *) 0 ;
6007 wxBitmap *result = 0 ;
6008 void *argp1 = 0 ;
6009 int res1 = 0 ;
6010 PyObject *swig_obj[1] ;
6011
6012 if (!args) SWIG_fail;
6013 swig_obj[0] = args;
6014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6015 if (!SWIG_IsOK(res1)) {
6016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6017 }
6018 arg1 = reinterpret_cast< wxBrush * >(argp1);
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6026 return resultobj;
6027fail:
6028 return NULL;
d55e5bfc
RD
6029}
6030
6031
554f62e9
RD
6032SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6033 PyObject *resultobj = 0;
6034 wxBrush *arg1 = (wxBrush *) 0 ;
6035 bool result;
6036 void *argp1 = 0 ;
6037 int res1 = 0 ;
6038 PyObject *swig_obj[1] ;
6039
6040 if (!args) SWIG_fail;
6041 swig_obj[0] = args;
6042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6043 if (!SWIG_IsOK(res1)) {
6044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6045 }
6046 arg1 = reinterpret_cast< wxBrush * >(argp1);
6047 {
6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
6049 result = (bool)((wxBrush const *)arg1)->IsHatch();
6050 wxPyEndAllowThreads(__tstate);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
6053 {
6054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6055 }
6056 return resultobj;
6057fail:
6058 return NULL;
f78cc896
RD
6059}
6060
6061
b39fe951 6062SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6063 PyObject *resultobj = 0;
6064 wxBrush *arg1 = (wxBrush *) 0 ;
6065 bool result;
6066 void *argp1 = 0 ;
6067 int res1 = 0 ;
6068 PyObject *swig_obj[1] ;
6069
6070 if (!args) SWIG_fail;
6071 swig_obj[0] = args;
6072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6073 if (!SWIG_IsOK(res1)) {
b39fe951 6074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
6075 }
6076 arg1 = reinterpret_cast< wxBrush * >(argp1);
6077 {
6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6079 result = (bool)(arg1)->IsOk();
554f62e9
RD
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 {
6084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6085 }
6086 return resultobj;
6087fail:
6088 return NULL;
d55e5bfc
RD
6089}
6090
6091
554f62e9
RD
6092SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6093 PyObject *obj;
6094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6095 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6096 return SWIG_Py_Void();
d55e5bfc
RD
6097}
6098
554f62e9
RD
6099SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6100 return SWIG_Python_InitShadowInstance(args);
6101}
d55e5bfc 6102
554f62e9
RD
6103SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6104 PyObject *resultobj = 0;
6105 wxString *arg1 = 0 ;
6106 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6107 wxBitmap *result = 0 ;
6108 bool temp1 = false ;
6109 int val2 ;
6110 int ecode2 = 0 ;
6111 PyObject * obj0 = 0 ;
6112 PyObject * obj1 = 0 ;
6113 char * kwnames[] = {
6114 (char *) "name",(char *) "type", NULL
6115 };
6116
6117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6118 {
6119 arg1 = wxString_in_helper(obj0);
6120 if (arg1 == NULL) SWIG_fail;
6121 temp1 = true;
6122 }
6123 if (obj1) {
6124 ecode2 = SWIG_AsVal_int(obj1, &val2);
6125 if (!SWIG_IsOK(ecode2)) {
6126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6127 }
6128 arg2 = static_cast< wxBitmapType >(val2);
6129 }
6130 {
6131 if (!wxPyCheckForApp()) SWIG_fail;
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6138 {
6139 if (temp1)
6140 delete arg1;
6141 }
6142 return resultobj;
6143fail:
6144 {
6145 if (temp1)
6146 delete arg1;
6147 }
6148 return NULL;
d55e5bfc
RD
6149}
6150
6151
554f62e9
RD
6152SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6153 PyObject *resultobj = 0;
6154 wxBitmap *arg1 = (wxBitmap *) 0 ;
6155 void *argp1 = 0 ;
6156 int res1 = 0 ;
6157 PyObject *swig_obj[1] ;
6158
6159 if (!args) SWIG_fail;
6160 swig_obj[0] = args;
6161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6162 if (!SWIG_IsOK(res1)) {
6163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6164 }
6165 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6166 {
554f62e9 6167 delete arg1;
c24da6d6 6168
554f62e9
RD
6169 if (PyErr_Occurred()) SWIG_fail;
6170 }
6171 resultobj = SWIG_Py_Void();
6172 return resultobj;
6173fail:
6174 return NULL;
6175}
6176
6177
6178SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6179 PyObject *resultobj = 0;
6180 int arg1 ;
6181 int arg2 ;
6182 int arg3 = (int) -1 ;
6183 wxBitmap *result = 0 ;
6184 int val1 ;
6185 int ecode1 = 0 ;
6186 int val2 ;
6187 int ecode2 = 0 ;
6188 int val3 ;
6189 int ecode3 = 0 ;
6190 PyObject * obj0 = 0 ;
6191 PyObject * obj1 = 0 ;
6192 PyObject * obj2 = 0 ;
6193 char * kwnames[] = {
6194 (char *) "width",(char *) "height",(char *) "depth", NULL
6195 };
6196
6197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6198 ecode1 = SWIG_AsVal_int(obj0, &val1);
6199 if (!SWIG_IsOK(ecode1)) {
6200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6201 }
6202 arg1 = static_cast< int >(val1);
6203 ecode2 = SWIG_AsVal_int(obj1, &val2);
6204 if (!SWIG_IsOK(ecode2)) {
6205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6206 }
6207 arg2 = static_cast< int >(val2);
6208 if (obj2) {
6209 ecode3 = SWIG_AsVal_int(obj2, &val3);
6210 if (!SWIG_IsOK(ecode3)) {
6211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6212 }
6213 arg3 = static_cast< int >(val3);
6214 }
6215 {
6216 if (!wxPyCheckForApp()) SWIG_fail;
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6223 return resultobj;
6224fail:
6225 return NULL;
6226}
6227
6228
6229SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj = 0;
6231 wxIcon *arg1 = 0 ;
6232 wxBitmap *result = 0 ;
6233 void *argp1 = 0 ;
6234 int res1 = 0 ;
6235 PyObject * obj0 = 0 ;
6236 char * kwnames[] = {
6237 (char *) "icon", NULL
6238 };
6239
6240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6241 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6242 if (!SWIG_IsOK(res1)) {
6243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6244 }
6245 if (!argp1) {
6246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6247 }
6248 arg1 = reinterpret_cast< wxIcon * >(argp1);
6249 {
6250 if (!wxPyCheckForApp()) SWIG_fail;
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6257 return resultobj;
6258fail:
6259 return NULL;
6260}
6261
6262
6263SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj = 0;
6265 wxImage *arg1 = 0 ;
6266 int arg2 = (int) -1 ;
6267 wxBitmap *result = 0 ;
6268 void *argp1 = 0 ;
6269 int res1 = 0 ;
6270 int val2 ;
6271 int ecode2 = 0 ;
6272 PyObject * obj0 = 0 ;
6273 PyObject * obj1 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "image",(char *) "depth", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6282 }
6283 if (!argp1) {
6284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6285 }
6286 arg1 = reinterpret_cast< wxImage * >(argp1);
6287 if (obj1) {
6288 ecode2 = SWIG_AsVal_int(obj1, &val2);
6289 if (!SWIG_IsOK(ecode2)) {
6290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6291 }
6292 arg2 = static_cast< int >(val2);
6293 }
6294 {
6295 if (!wxPyCheckForApp()) SWIG_fail;
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6302 return resultobj;
6303fail:
6304 return NULL;
c24da6d6
RD
6305}
6306
6307
554f62e9
RD
6308SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 PyObject *arg1 = (PyObject *) 0 ;
6311 wxBitmap *result = 0 ;
6312 PyObject * obj0 = 0 ;
6313 char * kwnames[] = {
6314 (char *) "listOfStrings", NULL
6315 };
6316
6317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6318 arg1 = obj0;
6319 {
6320 if (!wxPyCheckForApp()) SWIG_fail;
6321 PyThreadState* __tstate = wxPyBeginAllowThreads();
6322 result = (wxBitmap *)new_wxBitmap(arg1);
6323 wxPyEndAllowThreads(__tstate);
6324 if (PyErr_Occurred()) SWIG_fail;
6325 }
6326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6327 return resultobj;
6328fail:
6329 return NULL;
6330}
6331
6332
6333SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6334 PyObject *resultobj = 0;
6335 PyObject *arg1 = (PyObject *) 0 ;
6336 int arg2 ;
6337 int arg3 ;
6338 int arg4 = (int) 1 ;
6339 wxBitmap *result = 0 ;
6340 int val2 ;
6341 int ecode2 = 0 ;
6342 int val3 ;
6343 int ecode3 = 0 ;
6344 int val4 ;
6345 int ecode4 = 0 ;
6346 PyObject * obj0 = 0 ;
6347 PyObject * obj1 = 0 ;
6348 PyObject * obj2 = 0 ;
6349 PyObject * obj3 = 0 ;
6350 char * kwnames[] = {
6351 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6352 };
6353
6354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6355 arg1 = obj0;
6356 ecode2 = SWIG_AsVal_int(obj1, &val2);
6357 if (!SWIG_IsOK(ecode2)) {
6358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6359 }
6360 arg2 = static_cast< int >(val2);
6361 ecode3 = SWIG_AsVal_int(obj2, &val3);
6362 if (!SWIG_IsOK(ecode3)) {
6363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6364 }
6365 arg3 = static_cast< int >(val3);
6366 if (obj3) {
6367 ecode4 = SWIG_AsVal_int(obj3, &val4);
6368 if (!SWIG_IsOK(ecode4)) {
6369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6370 }
6371 arg4 = static_cast< int >(val4);
6372 }
6373 {
6374 if (!wxPyCheckForApp()) SWIG_fail;
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6377 wxPyEndAllowThreads(__tstate);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6381 return resultobj;
6382fail:
6383 return NULL;
d55e5bfc
RD
6384}
6385
6386
554f62e9
RD
6387SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6388 PyObject *resultobj = 0;
6389 wxBitmap *arg1 = (wxBitmap *) 0 ;
6390 long result;
6391 void *argp1 = 0 ;
6392 int res1 = 0 ;
6393 PyObject *swig_obj[1] ;
6394
6395 if (!args) SWIG_fail;
6396 swig_obj[0] = args;
6397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6400 }
6401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6402 {
554f62e9 6403 result = (long)(arg1)->GetHandle();
554f62e9
RD
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 resultobj = SWIG_From_long(static_cast< long >(result));
6407 return resultobj;
6408fail:
6409 return NULL;
6410}
6411
6412
6413SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj = 0;
6415 wxBitmap *arg1 = (wxBitmap *) 0 ;
6416 long arg2 ;
6417 void *argp1 = 0 ;
6418 int res1 = 0 ;
6419 long val2 ;
6420 int ecode2 = 0 ;
6421 PyObject * obj0 = 0 ;
6422 PyObject * obj1 = 0 ;
6423 char * kwnames[] = {
6424 (char *) "self",(char *) "handle", NULL
6425 };
6426
6427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6431 }
6432 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6433 ecode2 = SWIG_AsVal_long(obj1, &val2);
6434 if (!SWIG_IsOK(ecode2)) {
6435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6436 }
6437 arg2 = static_cast< long >(val2);
6438 {
554f62e9 6439 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 resultobj = SWIG_Py_Void();
6443 return resultobj;
6444fail:
6445 return NULL;
d55e5bfc
RD
6446}
6447
6448
b39fe951 6449SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6450 PyObject *resultobj = 0;
6451 wxBitmap *arg1 = (wxBitmap *) 0 ;
6452 bool result;
6453 void *argp1 = 0 ;
6454 int res1 = 0 ;
6455 PyObject *swig_obj[1] ;
6456
6457 if (!args) SWIG_fail;
6458 swig_obj[0] = args;
6459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6460 if (!SWIG_IsOK(res1)) {
b39fe951 6461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6462 }
6463 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6464 {
b39fe951 6465 result = (bool)(arg1)->IsOk();
554f62e9
RD
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6470 }
6471 return resultobj;
6472fail:
6473 return NULL;
d55e5bfc
RD
6474}
6475
6476
554f62e9
RD
6477SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxBitmap *arg1 = (wxBitmap *) 0 ;
6480 int result;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 PyObject *swig_obj[1] ;
6484
6485 if (!args) SWIG_fail;
6486 swig_obj[0] = args;
6487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6488 if (!SWIG_IsOK(res1)) {
6489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6490 }
6491 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6492 {
554f62e9 6493 result = (int)(arg1)->GetWidth();
554f62e9
RD
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 resultobj = SWIG_From_int(static_cast< int >(result));
6497 return resultobj;
6498fail:
6499 return NULL;
d55e5bfc
RD
6500}
6501
6502
554f62e9
RD
6503SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6504 PyObject *resultobj = 0;
6505 wxBitmap *arg1 = (wxBitmap *) 0 ;
6506 int result;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6516 }
6517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6518 {
554f62e9 6519 result = (int)(arg1)->GetHeight();
554f62e9
RD
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 resultobj = SWIG_From_int(static_cast< int >(result));
6523 return resultobj;
6524fail:
6525 return NULL;
c24da6d6
RD
6526}
6527
6528
554f62e9
RD
6529SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6530 PyObject *resultobj = 0;
6531 wxBitmap *arg1 = (wxBitmap *) 0 ;
6532 int result;
6533 void *argp1 = 0 ;
6534 int res1 = 0 ;
6535 PyObject *swig_obj[1] ;
6536
6537 if (!args) SWIG_fail;
6538 swig_obj[0] = args;
6539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6540 if (!SWIG_IsOK(res1)) {
6541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6542 }
6543 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6544 {
554f62e9 6545 result = (int)(arg1)->GetDepth();
554f62e9
RD
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 resultobj = SWIG_From_int(static_cast< int >(result));
6549 return resultobj;
6550fail:
6551 return NULL;
d55e5bfc
RD
6552}
6553
6554
554f62e9
RD
6555SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6556 PyObject *resultobj = 0;
6557 wxBitmap *arg1 = (wxBitmap *) 0 ;
6558 wxSize result;
6559 void *argp1 = 0 ;
6560 int res1 = 0 ;
6561 PyObject *swig_obj[1] ;
6562
6563 if (!args) SWIG_fail;
6564 swig_obj[0] = args;
6565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6566 if (!SWIG_IsOK(res1)) {
6567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6568 }
6569 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6570 {
554f62e9 6571 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6575 return resultobj;
6576fail:
6577 return NULL;
d55e5bfc
RD
6578}
6579
6580
554f62e9
RD
6581SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6582 PyObject *resultobj = 0;
6583 wxBitmap *arg1 = (wxBitmap *) 0 ;
6584 SwigValueWrapper<wxImage > result;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 PyObject *swig_obj[1] ;
6588
6589 if (!args) SWIG_fail;
6590 swig_obj[0] = args;
6591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6592 if (!SWIG_IsOK(res1)) {
6593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6594 }
6595 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6596 {
554f62e9 6597 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6601 return resultobj;
6602fail:
6603 return NULL;
d55e5bfc
RD
6604}
6605
6606
554f62e9
RD
6607SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6608 PyObject *resultobj = 0;
6609 wxBitmap *arg1 = (wxBitmap *) 0 ;
6610 wxMask *result = 0 ;
6611 void *argp1 = 0 ;
6612 int res1 = 0 ;
6613 PyObject *swig_obj[1] ;
6614
6615 if (!args) SWIG_fail;
6616 swig_obj[0] = args;
6617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6618 if (!SWIG_IsOK(res1)) {
6619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6620 }
6621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6622 {
554f62e9 6623 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6627 return resultobj;
6628fail:
6629 return NULL;
6630}
6631
6632
6633SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj = 0;
6635 wxBitmap *arg1 = (wxBitmap *) 0 ;
6636 wxMask *arg2 = (wxMask *) 0 ;
6637 void *argp1 = 0 ;
6638 int res1 = 0 ;
6639 int res2 = 0 ;
6640 PyObject * obj0 = 0 ;
6641 PyObject * obj1 = 0 ;
6642 char * kwnames[] = {
6643 (char *) "self",(char *) "mask", NULL
6644 };
6645
6646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6648 if (!SWIG_IsOK(res1)) {
6649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6650 }
6651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6652 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6653 if (!SWIG_IsOK(res2)) {
6654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6655 }
6656 {
554f62e9 6657 (arg1)->SetMask(arg2);
554f62e9
RD
6658 if (PyErr_Occurred()) SWIG_fail;
6659 }
6660 resultobj = SWIG_Py_Void();
6661 return resultobj;
6662fail:
6663 return NULL;
6664}
6665
6666
6667SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6668 PyObject *resultobj = 0;
6669 wxBitmap *arg1 = (wxBitmap *) 0 ;
6670 wxColour *arg2 = 0 ;
6671 void *argp1 = 0 ;
6672 int res1 = 0 ;
6673 wxColour temp2 ;
6674 PyObject * obj0 = 0 ;
6675 PyObject * obj1 = 0 ;
6676 char * kwnames[] = {
6677 (char *) "self",(char *) "colour", NULL
6678 };
6679
6680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6684 }
6685 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6686 {
6687 arg2 = &temp2;
6688 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6689 }
6690 {
554f62e9 6691 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 resultobj = SWIG_Py_Void();
6695 return resultobj;
6696fail:
6697 return NULL;
6698}
6699
6700
6701SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj = 0;
6703 wxBitmap *arg1 = (wxBitmap *) 0 ;
6704 wxRect *arg2 = 0 ;
6705 SwigValueWrapper<wxBitmap > result;
6706 void *argp1 = 0 ;
6707 int res1 = 0 ;
6708 wxRect temp2 ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char * kwnames[] = {
6712 (char *) "self",(char *) "rect", NULL
6713 };
6714
6715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6717 if (!SWIG_IsOK(res1)) {
6718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6719 }
6720 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6721 {
6722 arg2 = &temp2;
6723 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6724 }
6725 {
554f62e9 6726 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6730 return resultobj;
6731fail:
6732 return NULL;
6733}
6734
6735
6736SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6737 PyObject *resultobj = 0;
6738 wxBitmap *arg1 = (wxBitmap *) 0 ;
6739 wxString *arg2 = 0 ;
6740 wxBitmapType arg3 ;
6741 wxPalette *arg4 = (wxPalette *) NULL ;
6742 bool result;
6743 void *argp1 = 0 ;
6744 int res1 = 0 ;
6745 bool temp2 = false ;
6746 int val3 ;
6747 int ecode3 = 0 ;
6748 void *argp4 = 0 ;
6749 int res4 = 0 ;
6750 PyObject * obj0 = 0 ;
6751 PyObject * obj1 = 0 ;
6752 PyObject * obj2 = 0 ;
6753 PyObject * obj3 = 0 ;
6754 char * kwnames[] = {
6755 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6756 };
6757
6758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6760 if (!SWIG_IsOK(res1)) {
6761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6762 }
6763 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6764 {
6765 arg2 = wxString_in_helper(obj1);
6766 if (arg2 == NULL) SWIG_fail;
6767 temp2 = true;
6768 }
6769 ecode3 = SWIG_AsVal_int(obj2, &val3);
6770 if (!SWIG_IsOK(ecode3)) {
6771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6772 }
6773 arg3 = static_cast< wxBitmapType >(val3);
6774 if (obj3) {
6775 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6776 if (!SWIG_IsOK(res4)) {
6777 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6778 }
554f62e9
RD
6779 arg4 = reinterpret_cast< wxPalette * >(argp4);
6780 }
6781 {
554f62e9 6782 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 {
6786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6787 }
6788 {
6789 if (temp2)
6790 delete arg2;
6791 }
6792 return resultobj;
6793fail:
6794 {
6795 if (temp2)
6796 delete arg2;
6797 }
6798 return NULL;
6799}
6800
6801
6802SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxBitmap *arg1 = (wxBitmap *) 0 ;
6805 wxString *arg2 = 0 ;
6806 wxBitmapType arg3 ;
6807 bool result;
6808 void *argp1 = 0 ;
6809 int res1 = 0 ;
6810 bool temp2 = false ;
6811 int val3 ;
6812 int ecode3 = 0 ;
6813 PyObject * obj0 = 0 ;
6814 PyObject * obj1 = 0 ;
6815 PyObject * obj2 = 0 ;
6816 char * kwnames[] = {
6817 (char *) "self",(char *) "name",(char *) "type", NULL
6818 };
6819
6820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6822 if (!SWIG_IsOK(res1)) {
6823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6824 }
6825 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6826 {
6827 arg2 = wxString_in_helper(obj1);
6828 if (arg2 == NULL) SWIG_fail;
6829 temp2 = true;
6830 }
6831 ecode3 = SWIG_AsVal_int(obj2, &val3);
6832 if (!SWIG_IsOK(ecode3)) {
6833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6834 }
6835 arg3 = static_cast< wxBitmapType >(val3);
6836 {
554f62e9 6837 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 {
6841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6842 }
6843 {
6844 if (temp2)
6845 delete arg2;
6846 }
6847 return resultobj;
6848fail:
6849 {
6850 if (temp2)
6851 delete arg2;
6852 }
6853 return NULL;
d04418a7
RD
6854}
6855
6856
554f62e9
RD
6857SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6858 PyObject *resultobj = 0;
6859 wxBitmap *arg1 = (wxBitmap *) 0 ;
6860 wxPalette *result = 0 ;
6861 void *argp1 = 0 ;
6862 int res1 = 0 ;
6863 PyObject *swig_obj[1] ;
6864
6865 if (!args) SWIG_fail;
6866 swig_obj[0] = args;
6867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6868 if (!SWIG_IsOK(res1)) {
6869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6870 }
6871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6872 {
554f62e9 6873 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6877 return resultobj;
6878fail:
6879 return NULL;
6880}
6881
6882
6883SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6884 PyObject *resultobj = 0;
6885 wxBitmap *arg1 = (wxBitmap *) 0 ;
6886 wxPalette *arg2 = 0 ;
6887 void *argp1 = 0 ;
6888 int res1 = 0 ;
6889 void *argp2 = 0 ;
6890 int res2 = 0 ;
6891 PyObject * obj0 = 0 ;
6892 PyObject * obj1 = 0 ;
6893 char * kwnames[] = {
6894 (char *) "self",(char *) "palette", NULL
6895 };
6896
6897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6899 if (!SWIG_IsOK(res1)) {
6900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6901 }
6902 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6903 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6904 if (!SWIG_IsOK(res2)) {
6905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6906 }
6907 if (!argp2) {
6908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6909 }
6910 arg2 = reinterpret_cast< wxPalette * >(argp2);
6911 {
554f62e9 6912 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 resultobj = SWIG_Py_Void();
6916 return resultobj;
6917fail:
6918 return NULL;
6919}
6920
6921
6922SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj = 0;
6924 wxBitmap *arg1 = (wxBitmap *) 0 ;
6925 wxIcon *arg2 = 0 ;
6926 bool result;
6927 void *argp1 = 0 ;
6928 int res1 = 0 ;
6929 void *argp2 = 0 ;
6930 int res2 = 0 ;
6931 PyObject * obj0 = 0 ;
6932 PyObject * obj1 = 0 ;
6933 char * kwnames[] = {
6934 (char *) "self",(char *) "icon", NULL
6935 };
6936
6937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6939 if (!SWIG_IsOK(res1)) {
6940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6941 }
6942 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6944 if (!SWIG_IsOK(res2)) {
6945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6946 }
6947 if (!argp2) {
6948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6949 }
6950 arg2 = reinterpret_cast< wxIcon * >(argp2);
6951 {
554f62e9 6952 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 {
6956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6957 }
6958 return resultobj;
6959fail:
6960 return NULL;
6961}
6962
6963
6964SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 wxBitmap *arg1 = (wxBitmap *) 0 ;
6967 int arg2 ;
6968 void *argp1 = 0 ;
6969 int res1 = 0 ;
6970 int val2 ;
6971 int ecode2 = 0 ;
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char * kwnames[] = {
6975 (char *) "self",(char *) "height", NULL
6976 };
6977
6978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6980 if (!SWIG_IsOK(res1)) {
6981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6982 }
6983 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6984 ecode2 = SWIG_AsVal_int(obj1, &val2);
6985 if (!SWIG_IsOK(ecode2)) {
6986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6987 }
6988 arg2 = static_cast< int >(val2);
6989 {
554f62e9 6990 (arg1)->SetHeight(arg2);
554f62e9
RD
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_Py_Void();
6994 return resultobj;
6995fail:
6996 return NULL;
6997}
6998
6999
7000SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj = 0;
7002 wxBitmap *arg1 = (wxBitmap *) 0 ;
7003 int arg2 ;
7004 void *argp1 = 0 ;
7005 int res1 = 0 ;
7006 int val2 ;
7007 int ecode2 = 0 ;
7008 PyObject * obj0 = 0 ;
7009 PyObject * obj1 = 0 ;
7010 char * kwnames[] = {
7011 (char *) "self",(char *) "width", NULL
7012 };
7013
7014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7016 if (!SWIG_IsOK(res1)) {
7017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7018 }
7019 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7020 ecode2 = SWIG_AsVal_int(obj1, &val2);
7021 if (!SWIG_IsOK(ecode2)) {
7022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7023 }
7024 arg2 = static_cast< int >(val2);
7025 {
554f62e9 7026 (arg1)->SetWidth(arg2);
554f62e9
RD
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 resultobj = SWIG_Py_Void();
7030 return resultobj;
7031fail:
7032 return NULL;
7033}
7034
7035
7036SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7037 PyObject *resultobj = 0;
7038 wxBitmap *arg1 = (wxBitmap *) 0 ;
7039 int arg2 ;
7040 void *argp1 = 0 ;
7041 int res1 = 0 ;
7042 int val2 ;
7043 int ecode2 = 0 ;
7044 PyObject * obj0 = 0 ;
7045 PyObject * obj1 = 0 ;
7046 char * kwnames[] = {
7047 (char *) "self",(char *) "depth", NULL
7048 };
7049
7050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7052 if (!SWIG_IsOK(res1)) {
7053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7054 }
7055 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7056 ecode2 = SWIG_AsVal_int(obj1, &val2);
7057 if (!SWIG_IsOK(ecode2)) {
7058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7059 }
7060 arg2 = static_cast< int >(val2);
7061 {
554f62e9 7062 (arg1)->SetDepth(arg2);
554f62e9
RD
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_Py_Void();
7066 return resultobj;
7067fail:
7068 return NULL;
7069}
7070
7071
7072SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj = 0;
7074 wxBitmap *arg1 = (wxBitmap *) 0 ;
7075 wxSize *arg2 = 0 ;
7076 void *argp1 = 0 ;
7077 int res1 = 0 ;
7078 wxSize temp2 ;
7079 PyObject * obj0 = 0 ;
7080 PyObject * obj1 = 0 ;
7081 char * kwnames[] = {
7082 (char *) "self",(char *) "size", NULL
7083 };
7084
7085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7087 if (!SWIG_IsOK(res1)) {
7088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7089 }
7090 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7091 {
7092 arg2 = &temp2;
7093 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7094 }
7095 {
554f62e9 7096 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 resultobj = SWIG_Py_Void();
7100 return resultobj;
7101fail:
7102 return NULL;
7103}
7104
7105
7106SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj = 0;
7108 wxBitmap *arg1 = (wxBitmap *) 0 ;
7109 wxCursor *arg2 = 0 ;
7110 bool result;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 void *argp2 = 0 ;
7114 int res2 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 char * kwnames[] = {
7118 (char *) "self",(char *) "cursor", NULL
7119 };
7120
7121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7125 }
7126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7128 if (!SWIG_IsOK(res2)) {
7129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7130 }
7131 if (!argp2) {
7132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7133 }
7134 arg2 = reinterpret_cast< wxCursor * >(argp2);
7135 {
554f62e9 7136 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 {
7140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7141 }
7142 return resultobj;
7143fail:
7144 return NULL;
7145}
7146
7147
8f514ab4
RD
7148SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj = 0;
7150 wxBitmap *arg1 = (wxBitmap *) 0 ;
7151 buffer arg2 ;
7152 int arg3 ;
7153 void *argp1 = 0 ;
7154 int res1 = 0 ;
7155 Py_ssize_t temp2 ;
7156 PyObject * obj0 = 0 ;
7157 PyObject * obj1 = 0 ;
7158 char * kwnames[] = {
7159 (char *) "self",(char *) "data", NULL
7160 };
7161
7162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7164 if (!SWIG_IsOK(res1)) {
7165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7166 }
7167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7168 {
7169 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7170 arg3 = (int)temp2;
7171 }
7172 {
7173 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_Py_Void();
7177 return resultobj;
7178fail:
7179 return NULL;
7180}
7181
7182
7183SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj = 0;
7185 wxBitmap *arg1 = (wxBitmap *) 0 ;
7186 buffer arg2 ;
7187 int arg3 ;
7188 void *argp1 = 0 ;
7189 int res1 = 0 ;
7190 Py_ssize_t temp2 ;
7191 PyObject * obj0 = 0 ;
7192 PyObject * obj1 = 0 ;
7193 char * kwnames[] = {
7194 (char *) "self",(char *) "data", NULL
7195 };
7196
7197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7199 if (!SWIG_IsOK(res1)) {
7200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7201 }
7202 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7203 {
7204 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7205 arg3 = (int)temp2;
7206 }
7207 {
7208 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7209 if (PyErr_Occurred()) SWIG_fail;
7210 }
7211 resultobj = SWIG_Py_Void();
7212 return resultobj;
7213fail:
7214 return NULL;
7215}
7216
7217
554f62e9
RD
7218SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7219 PyObject *resultobj = 0;
7220 wxBitmap *arg1 = (wxBitmap *) 0 ;
7221 wxBitmap *arg2 = (wxBitmap *) 0 ;
7222 bool result;
7223 void *argp1 = 0 ;
7224 int res1 = 0 ;
7225 void *argp2 = 0 ;
7226 int res2 = 0 ;
7227 PyObject * obj0 = 0 ;
7228 PyObject * obj1 = 0 ;
7229 char * kwnames[] = {
7230 (char *) "self",(char *) "other", NULL
7231 };
7232
7233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7235 if (!SWIG_IsOK(res1)) {
7236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7237 }
7238 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7240 if (!SWIG_IsOK(res2)) {
7241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7242 }
7243 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7244 {
554f62e9 7245 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 {
fc46b7f3
RD
7249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7250 }
7251 return resultobj;
7252fail:
7253 return NULL;
7254}
7255
7256
7257SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj = 0;
7259 wxBitmap *arg1 = (wxBitmap *) 0 ;
7260 wxBitmap *arg2 = (wxBitmap *) 0 ;
7261 bool result;
7262 void *argp1 = 0 ;
7263 int res1 = 0 ;
7264 void *argp2 = 0 ;
7265 int res2 = 0 ;
7266 PyObject * obj0 = 0 ;
7267 PyObject * obj1 = 0 ;
7268 char * kwnames[] = {
7269 (char *) "self",(char *) "other", NULL
7270 };
7271
7272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7276 }
7277 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7278 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7279 if (!SWIG_IsOK(res2)) {
7280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7281 }
7282 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7283 {
7284 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 {
7288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7289 }
7290 return resultobj;
7291fail:
7292 return NULL;
7293}
7294
7295
7296SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7297 PyObject *obj;
7298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7299 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7300 return SWIG_Py_Void();
7301}
7302
7303SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7304 return SWIG_Python_InitShadowInstance(args);
7305}
7306
7307SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj = 0;
7309 int arg1 ;
7310 int arg2 ;
7311 buffer arg3 ;
7312 int arg4 ;
7313 buffer arg5 ;
7314 int arg6 ;
7315 wxBitmap *result = 0 ;
7316 int val1 ;
7317 int ecode1 = 0 ;
7318 int val2 ;
7319 int ecode2 = 0 ;
e46e7e0d
RD
7320 Py_ssize_t temp3 ;
7321 Py_ssize_t temp5 ;
fc46b7f3
RD
7322 PyObject * obj0 = 0 ;
7323 PyObject * obj1 = 0 ;
7324 PyObject * obj2 = 0 ;
7325 PyObject * obj3 = 0 ;
7326 char * kwnames[] = {
7327 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7328 };
7329
7330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7331 ecode1 = SWIG_AsVal_int(obj0, &val1);
7332 if (!SWIG_IsOK(ecode1)) {
7333 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7334 }
7335 arg1 = static_cast< int >(val1);
7336 ecode2 = SWIG_AsVal_int(obj1, &val2);
7337 if (!SWIG_IsOK(ecode2)) {
7338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7339 }
7340 arg2 = static_cast< int >(val2);
7341 {
e46e7e0d
RD
7342 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7343 arg4 = (int)temp3;
fc46b7f3
RD
7344 }
7345 {
7346 if (obj3 != Py_None) {
e46e7e0d
RD
7347 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7348 arg6 = (int)temp5;
fc46b7f3
RD
7349 }
7350 }
7351 {
7352 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7353 if (PyErr_Occurred()) SWIG_fail;
7354 }
7355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7356 return resultobj;
7357fail:
7358 return NULL;
7359}
7360
7361
7362SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7363 PyObject *resultobj = 0;
7364 int arg1 ;
7365 int arg2 ;
7366 buffer arg3 ;
7367 int arg4 ;
7368 wxBitmap *result = 0 ;
7369 int val1 ;
7370 int ecode1 = 0 ;
7371 int val2 ;
7372 int ecode2 = 0 ;
e46e7e0d 7373 Py_ssize_t temp3 ;
fc46b7f3
RD
7374 PyObject * obj0 = 0 ;
7375 PyObject * obj1 = 0 ;
7376 PyObject * obj2 = 0 ;
7377 char * kwnames[] = {
7378 (char *) "width",(char *) "height",(char *) "data", NULL
7379 };
7380
7381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7382 ecode1 = SWIG_AsVal_int(obj0, &val1);
7383 if (!SWIG_IsOK(ecode1)) {
7384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7385 }
7386 arg1 = static_cast< int >(val1);
7387 ecode2 = SWIG_AsVal_int(obj1, &val2);
7388 if (!SWIG_IsOK(ecode2)) {
7389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7390 }
7391 arg2 = static_cast< int >(val2);
7392 {
e46e7e0d
RD
7393 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7394 arg4 = (int)temp3;
fc46b7f3
RD
7395 }
7396 {
7397 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7401 return resultobj;
7402fail:
7403 return NULL;
7404}
7405
7406
7407SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7408 PyObject *resultobj = 0;
7409 int arg1 ;
7410 int arg2 ;
7411 buffer arg3 ;
7412 int arg4 ;
7413 wxBitmap *result = 0 ;
7414 int val1 ;
7415 int ecode1 = 0 ;
7416 int val2 ;
7417 int ecode2 = 0 ;
e46e7e0d 7418 Py_ssize_t temp3 ;
fc46b7f3
RD
7419 PyObject * obj0 = 0 ;
7420 PyObject * obj1 = 0 ;
7421 PyObject * obj2 = 0 ;
7422 char * kwnames[] = {
7423 (char *) "width",(char *) "height",(char *) "data", NULL
7424 };
7425
7426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7427 ecode1 = SWIG_AsVal_int(obj0, &val1);
7428 if (!SWIG_IsOK(ecode1)) {
7429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7430 }
7431 arg1 = static_cast< int >(val1);
7432 ecode2 = SWIG_AsVal_int(obj1, &val2);
7433 if (!SWIG_IsOK(ecode2)) {
7434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7435 }
7436 arg2 = static_cast< int >(val2);
7437 {
e46e7e0d
RD
7438 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7439 arg4 = (int)temp3;
fc46b7f3
RD
7440 }
7441 {
7442 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7443 if (PyErr_Occurred()) SWIG_fail;
7444 }
7445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7446 return resultobj;
7447fail:
7448 return NULL;
7449}
7450
7451
7452SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7453 PyObject *resultobj = 0;
7454 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7455 wxPoint result;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 PyObject *swig_obj[1] ;
7459
7460 if (!args) SWIG_fail;
7461 swig_obj[0] = args;
7462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7463 if (!SWIG_IsOK(res1)) {
7464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7465 }
7466 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7467 {
7468 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7469 if (PyErr_Occurred()) SWIG_fail;
7470 }
7471 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7472 return resultobj;
7473fail:
7474 return NULL;
7475}
7476
7477
7478SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7479 PyObject *resultobj = 0;
7480 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7481 int result;
7482 void *argp1 = 0 ;
7483 int res1 = 0 ;
7484 PyObject *swig_obj[1] ;
7485
7486 if (!args) SWIG_fail;
7487 swig_obj[0] = args;
7488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7489 if (!SWIG_IsOK(res1)) {
7490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7491 }
7492 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7493 {
7494 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 resultobj = SWIG_From_int(static_cast< int >(result));
7498 return resultobj;
7499fail:
7500 return NULL;
7501}
7502
7503
7504SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7505 PyObject *resultobj = 0;
7506 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7507 int result;
7508 void *argp1 = 0 ;
7509 int res1 = 0 ;
7510 PyObject *swig_obj[1] ;
7511
7512 if (!args) SWIG_fail;
7513 swig_obj[0] = args;
7514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7515 if (!SWIG_IsOK(res1)) {
7516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7517 }
7518 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7519 {
7520 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 resultobj = SWIG_From_int(static_cast< int >(result));
7524 return resultobj;
7525fail:
7526 return NULL;
7527}
7528
7529
7530SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7531 PyObject *resultobj = 0;
7532 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7533 wxSize result;
7534 void *argp1 = 0 ;
7535 int res1 = 0 ;
7536 PyObject *swig_obj[1] ;
7537
7538 if (!args) SWIG_fail;
7539 swig_obj[0] = args;
7540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7541 if (!SWIG_IsOK(res1)) {
7542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7543 }
7544 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7545 {
7546 result = ((wxPixelDataBase const *)arg1)->GetSize();
7547 if (PyErr_Occurred()) SWIG_fail;
7548 }
7549 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7550 return resultobj;
7551fail:
7552 return NULL;
7553}
7554
7555
7556SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7557 PyObject *resultobj = 0;
7558 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7559 int result;
7560 void *argp1 = 0 ;
7561 int res1 = 0 ;
7562 PyObject *swig_obj[1] ;
7563
7564 if (!args) SWIG_fail;
7565 swig_obj[0] = args;
7566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7567 if (!SWIG_IsOK(res1)) {
7568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7569 }
7570 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7571 {
7572 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 resultobj = SWIG_From_int(static_cast< int >(result));
7576 return resultobj;
7577fail:
7578 return NULL;
7579}
7580
7581
7582SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7583 PyObject *obj;
7584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7585 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7586 return SWIG_Py_Void();
7587}
7588
7589SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7590 PyObject *resultobj = 0;
7591 wxBitmap *arg1 = 0 ;
7592 wxNativePixelData *result = 0 ;
7593 void *argp1 = 0 ;
7594 int res1 = 0 ;
7595
7596 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7598 if (!SWIG_IsOK(res1)) {
7599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7600 }
7601 if (!argp1) {
7602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7603 }
7604 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7605 {
7606 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7610 return resultobj;
7611fail:
7612 return NULL;
7613}
7614
7615
7616SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7617 PyObject *resultobj = 0;
7618 wxBitmap *arg1 = 0 ;
7619 wxRect *arg2 = 0 ;
7620 wxNativePixelData *result = 0 ;
7621 void *argp1 = 0 ;
7622 int res1 = 0 ;
7623 wxRect temp2 ;
7624
7625 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7627 if (!SWIG_IsOK(res1)) {
7628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7629 }
7630 if (!argp1) {
7631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7632 }
7633 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7634 {
7635 arg2 = &temp2;
7636 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7637 }
7638 {
7639 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7640 if (PyErr_Occurred()) SWIG_fail;
7641 }
7642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7643 return resultobj;
7644fail:
7645 return NULL;
7646}
7647
7648
7649SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7650 PyObject *resultobj = 0;
7651 wxBitmap *arg1 = 0 ;
7652 wxPoint *arg2 = 0 ;
7653 wxSize *arg3 = 0 ;
7654 wxNativePixelData *result = 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 wxPoint temp2 ;
7658 wxSize temp3 ;
7659
7660 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7664 }
7665 if (!argp1) {
7666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7667 }
7668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7669 {
7670 arg2 = &temp2;
7671 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7672 }
7673 {
7674 arg3 = &temp3;
7675 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7676 }
7677 {
7678 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7679 if (PyErr_Occurred()) SWIG_fail;
7680 }
7681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7682 return resultobj;
7683fail:
7684 return NULL;
7685}
7686
7687
7688SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7689 int argc;
7690 PyObject *argv[4];
7691
7692 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7693 --argc;
7694 if (argc == 1) {
7695 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7696 }
7697 if (argc == 2) {
7698 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7699 }
7700 if (argc == 3) {
7701 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7702 }
7703
7704fail:
7705 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7706 return NULL;
7707}
7708
7709
7710SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7711 PyObject *resultobj = 0;
7712 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7713 void *argp1 = 0 ;
7714 int res1 = 0 ;
7715 PyObject *swig_obj[1] ;
7716
7717 if (!args) SWIG_fail;
7718 swig_obj[0] = args;
7719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7720 if (!SWIG_IsOK(res1)) {
7721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7722 }
7723 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7724 {
7725 delete arg1;
7726
7727 if (PyErr_Occurred()) SWIG_fail;
7728 }
7729 resultobj = SWIG_Py_Void();
7730 return resultobj;
7731fail:
7732 return NULL;
7733}
7734
7735
7736SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7737 PyObject *resultobj = 0;
7738 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7739 wxNativePixelData_Accessor result;
7740 void *argp1 = 0 ;
7741 int res1 = 0 ;
7742 PyObject *swig_obj[1] ;
7743
7744 if (!args) SWIG_fail;
7745 swig_obj[0] = args;
7746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7747 if (!SWIG_IsOK(res1)) {
7748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7749 }
7750 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7751 {
7752 result = ((wxNativePixelData const *)arg1)->GetPixels();
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
7755 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7756 return resultobj;
7757fail:
7758 return NULL;
7759}
7760
7761
7762SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7763 PyObject *resultobj = 0;
7764 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7765 void *argp1 = 0 ;
7766 int res1 = 0 ;
7767 PyObject *swig_obj[1] ;
7768
7769 if (!args) SWIG_fail;
7770 swig_obj[0] = args;
7771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7772 if (!SWIG_IsOK(res1)) {
7773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7774 }
7775 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7776 {
7777 (arg1)->UseAlpha();
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 resultobj = SWIG_Py_Void();
7781 return resultobj;
7782fail:
7783 return NULL;
7784}
7785
7786
7787SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7788 PyObject *resultobj = 0;
7789 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7790 bool result;
7791 void *argp1 = 0 ;
7792 int res1 = 0 ;
7793 PyObject *swig_obj[1] ;
7794
7795 if (!args) SWIG_fail;
7796 swig_obj[0] = args;
7797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7798 if (!SWIG_IsOK(res1)) {
7799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7800 }
7801 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7802 {
7803 result = (bool)wxNativePixelData___nonzero__(arg1);
7804 if (PyErr_Occurred()) SWIG_fail;
7805 }
7806 {
7807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7808 }
7809 return resultobj;
7810fail:
7811 return NULL;
7812}
7813
7814
7815SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7816 PyObject *obj;
7817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7818 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7819 return SWIG_Py_Void();
7820}
7821
7822SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 return SWIG_Python_InitShadowInstance(args);
7824}
7825
7826SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7827 PyObject *resultobj = 0;
7828 wxNativePixelData *arg1 = 0 ;
7829 wxNativePixelData_Accessor *result = 0 ;
7830 void *argp1 = 0 ;
7831 int res1 = 0 ;
7832
7833 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7835 if (!SWIG_IsOK(res1)) {
7836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7837 }
7838 if (!argp1) {
7839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7840 }
7841 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7842 {
7843 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7847 return resultobj;
7848fail:
7849 return NULL;
7850}
7851
7852
7853SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7854 PyObject *resultobj = 0;
7855 wxBitmap *arg1 = 0 ;
7856 wxNativePixelData *arg2 = 0 ;
7857 wxNativePixelData_Accessor *result = 0 ;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 void *argp2 = 0 ;
7861 int res2 = 0 ;
7862
7863 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7867 }
7868 if (!argp1) {
7869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7870 }
7871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7872 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7873 if (!SWIG_IsOK(res2)) {
7874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7875 }
7876 if (!argp2) {
7877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7878 }
7879 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7880 {
7881 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7885 return resultobj;
7886fail:
7887 return NULL;
7888}
7889
7890
7891SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7892 PyObject *resultobj = 0;
7893 wxNativePixelData_Accessor *result = 0 ;
7894
7895 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7896 {
7897 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7901 return resultobj;
7902fail:
7903 return NULL;
7904}
7905
7906
7907SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7908 int argc;
7909 PyObject *argv[3];
7910
7911 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7912 --argc;
7913 if (argc == 0) {
7914 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7915 }
7916 if (argc == 1) {
7917 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7918 }
7919 if (argc == 2) {
7920 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7921 }
7922
7923fail:
7924 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7925 return NULL;
7926}
7927
7928
7929SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7930 PyObject *resultobj = 0;
7931 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7932 void *argp1 = 0 ;
7933 int res1 = 0 ;
7934 PyObject *swig_obj[1] ;
7935
7936 if (!args) SWIG_fail;
7937 swig_obj[0] = args;
7938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7939 if (!SWIG_IsOK(res1)) {
7940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7941 }
7942 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7943 {
7944 delete arg1;
7945
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 resultobj = SWIG_Py_Void();
7949 return resultobj;
7950fail:
7951 return NULL;
7952}
7953
7954
7955SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj = 0;
7957 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7958 wxNativePixelData *arg2 = 0 ;
7959 void *argp1 = 0 ;
7960 int res1 = 0 ;
7961 void *argp2 = 0 ;
7962 int res2 = 0 ;
7963 PyObject * obj0 = 0 ;
7964 PyObject * obj1 = 0 ;
7965 char * kwnames[] = {
7966 (char *) "self",(char *) "data", NULL
7967 };
7968
7969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7971 if (!SWIG_IsOK(res1)) {
7972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7973 }
7974 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7976 if (!SWIG_IsOK(res2)) {
7977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7978 }
7979 if (!argp2) {
7980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7981 }
7982 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7983 {
7984 (arg1)->Reset((wxNativePixelData const &)*arg2);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_Py_Void();
7988 return resultobj;
7989fail:
7990 return NULL;
7991}
7992
7993
7994SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7995 PyObject *resultobj = 0;
7996 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7997 bool result;
7998 void *argp1 = 0 ;
7999 int res1 = 0 ;
8000 PyObject *swig_obj[1] ;
8001
8002 if (!args) SWIG_fail;
8003 swig_obj[0] = args;
8004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8005 if (!SWIG_IsOK(res1)) {
8006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8007 }
8008 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8009 {
8010 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 {
8014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8015 }
8016 return resultobj;
8017fail:
8018 return NULL;
8019}
8020
8021
8022SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8023 PyObject *resultobj = 0;
8024 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8025 void *argp1 = 0 ;
8026 int res1 = 0 ;
8027 PyObject *swig_obj[1] ;
8028
8029 if (!args) SWIG_fail;
8030 swig_obj[0] = args;
8031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8032 if (!SWIG_IsOK(res1)) {
8033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8034 }
8035 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8036 {
8037 wxNativePixelData_Accessor_nextPixel(arg1);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 resultobj = SWIG_Py_Void();
8041 return resultobj;
8042fail:
8043 return NULL;
8044}
8045
8046
8047SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8048 PyObject *resultobj = 0;
8049 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8050 wxNativePixelData *arg2 = 0 ;
8051 int arg3 ;
8052 int arg4 ;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 void *argp2 = 0 ;
8056 int res2 = 0 ;
8057 int val3 ;
8058 int ecode3 = 0 ;
8059 int val4 ;
8060 int ecode4 = 0 ;
8061 PyObject * obj0 = 0 ;
8062 PyObject * obj1 = 0 ;
8063 PyObject * obj2 = 0 ;
8064 PyObject * obj3 = 0 ;
8065 char * kwnames[] = {
8066 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8067 };
8068
8069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8071 if (!SWIG_IsOK(res1)) {
8072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8073 }
8074 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8076 if (!SWIG_IsOK(res2)) {
8077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8078 }
8079 if (!argp2) {
8080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8081 }
8082 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8083 ecode3 = SWIG_AsVal_int(obj2, &val3);
8084 if (!SWIG_IsOK(ecode3)) {
8085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8086 }
8087 arg3 = static_cast< int >(val3);
8088 ecode4 = SWIG_AsVal_int(obj3, &val4);
8089 if (!SWIG_IsOK(ecode4)) {
8090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8091 }
8092 arg4 = static_cast< int >(val4);
8093 {
8094 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_Py_Void();
8098 return resultobj;
8099fail:
8100 return NULL;
8101}
8102
8103
8104SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8105 PyObject *resultobj = 0;
8106 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8107 wxNativePixelData *arg2 = 0 ;
8108 int arg3 ;
8109 void *argp1 = 0 ;
8110 int res1 = 0 ;
8111 void *argp2 = 0 ;
8112 int res2 = 0 ;
8113 int val3 ;
8114 int ecode3 = 0 ;
8115 PyObject * obj0 = 0 ;
8116 PyObject * obj1 = 0 ;
8117 PyObject * obj2 = 0 ;
8118 char * kwnames[] = {
8119 (char *) "self",(char *) "data",(char *) "x", NULL
8120 };
8121
8122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8124 if (!SWIG_IsOK(res1)) {
8125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8126 }
8127 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8129 if (!SWIG_IsOK(res2)) {
8130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8131 }
8132 if (!argp2) {
8133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8134 }
8135 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8136 ecode3 = SWIG_AsVal_int(obj2, &val3);
8137 if (!SWIG_IsOK(ecode3)) {
8138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8139 }
8140 arg3 = static_cast< int >(val3);
8141 {
8142 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 resultobj = SWIG_Py_Void();
8146 return resultobj;
8147fail:
8148 return NULL;
8149}
8150
8151
8152SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj = 0;
8154 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8155 wxNativePixelData *arg2 = 0 ;
8156 int arg3 ;
8157 void *argp1 = 0 ;
8158 int res1 = 0 ;
8159 void *argp2 = 0 ;
8160 int res2 = 0 ;
8161 int val3 ;
8162 int ecode3 = 0 ;
8163 PyObject * obj0 = 0 ;
8164 PyObject * obj1 = 0 ;
8165 PyObject * obj2 = 0 ;
8166 char * kwnames[] = {
8167 (char *) "self",(char *) "data",(char *) "y", NULL
8168 };
8169
8170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8172 if (!SWIG_IsOK(res1)) {
8173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8174 }
8175 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8177 if (!SWIG_IsOK(res2)) {
8178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8179 }
8180 if (!argp2) {
8181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8182 }
8183 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8184 ecode3 = SWIG_AsVal_int(obj2, &val3);
8185 if (!SWIG_IsOK(ecode3)) {
8186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8187 }
8188 arg3 = static_cast< int >(val3);
8189 {
8190 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_Py_Void();
8194 return resultobj;
8195fail:
8196 return NULL;
8197}
8198
8199
8200SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj = 0;
8202 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8203 wxNativePixelData *arg2 = 0 ;
8204 int arg3 ;
8205 int arg4 ;
8206 void *argp1 = 0 ;
8207 int res1 = 0 ;
8208 void *argp2 = 0 ;
8209 int res2 = 0 ;
8210 int val3 ;
8211 int ecode3 = 0 ;
8212 int val4 ;
8213 int ecode4 = 0 ;
8214 PyObject * obj0 = 0 ;
8215 PyObject * obj1 = 0 ;
8216 PyObject * obj2 = 0 ;
8217 PyObject * obj3 = 0 ;
8218 char * kwnames[] = {
8219 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8220 };
8221
8222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8224 if (!SWIG_IsOK(res1)) {
8225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8226 }
8227 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8229 if (!SWIG_IsOK(res2)) {
8230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8231 }
8232 if (!argp2) {
8233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8234 }
8235 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8236 ecode3 = SWIG_AsVal_int(obj2, &val3);
8237 if (!SWIG_IsOK(ecode3)) {
8238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8239 }
8240 arg3 = static_cast< int >(val3);
8241 ecode4 = SWIG_AsVal_int(obj3, &val4);
8242 if (!SWIG_IsOK(ecode4)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8244 }
8245 arg4 = static_cast< int >(val4);
8246 {
8247 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 }
8250 resultobj = SWIG_Py_Void();
8251 return resultobj;
8252fail:
8253 return NULL;
8254}
8255
8256
8257SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8258 PyObject *resultobj = 0;
8259 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8260 byte arg2 ;
8261 byte arg3 ;
8262 byte arg4 ;
8263 void *argp1 = 0 ;
8264 int res1 = 0 ;
8265 unsigned char val2 ;
8266 int ecode2 = 0 ;
8267 unsigned char val3 ;
8268 int ecode3 = 0 ;
8269 unsigned char val4 ;
8270 int ecode4 = 0 ;
8271 PyObject * obj0 = 0 ;
8272 PyObject * obj1 = 0 ;
8273 PyObject * obj2 = 0 ;
8274 PyObject * obj3 = 0 ;
8275 char * kwnames[] = {
8276 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8277 };
8278
8279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8281 if (!SWIG_IsOK(res1)) {
8282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8283 }
8284 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8285 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8286 if (!SWIG_IsOK(ecode2)) {
8287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8288 }
8289 arg2 = static_cast< byte >(val2);
8290 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8291 if (!SWIG_IsOK(ecode3)) {
8292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8293 }
8294 arg3 = static_cast< byte >(val3);
8295 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8296 if (!SWIG_IsOK(ecode4)) {
8297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8298 }
8299 arg4 = static_cast< byte >(val4);
8300 {
8301 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_Py_Void();
8305 return resultobj;
8306fail:
8307 return NULL;
8308}
8309
8310
8311SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8312 PyObject *resultobj = 0;
8313 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8314 PyObject *result = 0 ;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 PyObject *swig_obj[1] ;
8318
8319 if (!args) SWIG_fail;
8320 swig_obj[0] = args;
8321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8322 if (!SWIG_IsOK(res1)) {
8323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8324 }
8325 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8326 {
8327 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = result;
8331 return resultobj;
8332fail:
8333 return NULL;
8334}
8335
8336
8337SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8338 PyObject *obj;
8339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8340 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8341 return SWIG_Py_Void();
8342}
8343
8344SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 return SWIG_Python_InitShadowInstance(args);
8346}
8347
8348SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8349 PyObject *resultobj = 0;
8350 wxBitmap *arg1 = 0 ;
8351 wxAlphaPixelData *result = 0 ;
8352 void *argp1 = 0 ;
8353 int res1 = 0 ;
8354
8355 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8357 if (!SWIG_IsOK(res1)) {
8358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8359 }
8360 if (!argp1) {
8361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8362 }
8363 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8364 {
8365 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8369 return resultobj;
8370fail:
8371 return NULL;
8372}
8373
8374
8375SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8376 PyObject *resultobj = 0;
8377 wxBitmap *arg1 = 0 ;
8378 wxRect *arg2 = 0 ;
8379 wxAlphaPixelData *result = 0 ;
8380 void *argp1 = 0 ;
8381 int res1 = 0 ;
8382 wxRect temp2 ;
8383
8384 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8386 if (!SWIG_IsOK(res1)) {
8387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8388 }
8389 if (!argp1) {
8390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8391 }
8392 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8393 {
8394 arg2 = &temp2;
8395 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8396 }
8397 {
8398 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8399 if (PyErr_Occurred()) SWIG_fail;
8400 }
8401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8402 return resultobj;
8403fail:
8404 return NULL;
8405}
8406
8407
8408SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8409 PyObject *resultobj = 0;
8410 wxBitmap *arg1 = 0 ;
8411 wxPoint *arg2 = 0 ;
8412 wxSize *arg3 = 0 ;
8413 wxAlphaPixelData *result = 0 ;
8414 void *argp1 = 0 ;
8415 int res1 = 0 ;
8416 wxPoint temp2 ;
8417 wxSize temp3 ;
8418
8419 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8423 }
8424 if (!argp1) {
8425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8426 }
8427 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8428 {
8429 arg2 = &temp2;
8430 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8431 }
8432 {
8433 arg3 = &temp3;
8434 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8435 }
8436 {
8437 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8441 return resultobj;
8442fail:
8443 return NULL;
8444}
8445
8446
8447SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8448 int argc;
8449 PyObject *argv[4];
8450
8451 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8452 --argc;
8453 if (argc == 1) {
8454 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8455 }
8456 if (argc == 2) {
8457 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8458 }
8459 if (argc == 3) {
8460 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8461 }
8462
8463fail:
8464 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8465 return NULL;
8466}
8467
8468
8469SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8470 PyObject *resultobj = 0;
8471 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8472 void *argp1 = 0 ;
8473 int res1 = 0 ;
8474 PyObject *swig_obj[1] ;
8475
8476 if (!args) SWIG_fail;
8477 swig_obj[0] = args;
8478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8479 if (!SWIG_IsOK(res1)) {
8480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8481 }
8482 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8483 {
8484 delete arg1;
8485
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_Py_Void();
8489 return resultobj;
8490fail:
8491 return NULL;
8492}
8493
8494
8495SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8496 PyObject *resultobj = 0;
8497 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8498 wxAlphaPixelData_Accessor result;
8499 void *argp1 = 0 ;
8500 int res1 = 0 ;
8501 PyObject *swig_obj[1] ;
8502
8503 if (!args) SWIG_fail;
8504 swig_obj[0] = args;
8505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8506 if (!SWIG_IsOK(res1)) {
8507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8508 }
8509 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8510 {
8511 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8515 return resultobj;
8516fail:
8517 return NULL;
8518}
8519
8520
8521SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8522 PyObject *resultobj = 0;
8523 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8524 void *argp1 = 0 ;
8525 int res1 = 0 ;
8526 PyObject *swig_obj[1] ;
8527
8528 if (!args) SWIG_fail;
8529 swig_obj[0] = args;
8530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8531 if (!SWIG_IsOK(res1)) {
8532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8533 }
8534 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8535 {
8536 (arg1)->UseAlpha();
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 resultobj = SWIG_Py_Void();
8540 return resultobj;
8541fail:
8542 return NULL;
8543}
8544
8545
8546SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8547 PyObject *resultobj = 0;
8548 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8549 bool result;
8550 void *argp1 = 0 ;
8551 int res1 = 0 ;
8552 PyObject *swig_obj[1] ;
8553
8554 if (!args) SWIG_fail;
8555 swig_obj[0] = args;
8556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8557 if (!SWIG_IsOK(res1)) {
8558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8559 }
8560 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8561 {
8562 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8567 }
8568 return resultobj;
8569fail:
8570 return NULL;
8571}
8572
8573
8574SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8575 PyObject *obj;
8576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8577 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8578 return SWIG_Py_Void();
8579}
8580
8581SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8582 return SWIG_Python_InitShadowInstance(args);
8583}
8584
8585SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8586 PyObject *resultobj = 0;
8587 wxAlphaPixelData *arg1 = 0 ;
8588 wxAlphaPixelData_Accessor *result = 0 ;
8589 void *argp1 = 0 ;
8590 int res1 = 0 ;
8591
8592 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8594 if (!SWIG_IsOK(res1)) {
8595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8596 }
8597 if (!argp1) {
8598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8599 }
8600 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8601 {
8602 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8603 if (PyErr_Occurred()) SWIG_fail;
8604 }
8605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8606 return resultobj;
8607fail:
8608 return NULL;
8609}
8610
8611
8612SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8613 PyObject *resultobj = 0;
8614 wxBitmap *arg1 = 0 ;
8615 wxAlphaPixelData *arg2 = 0 ;
8616 wxAlphaPixelData_Accessor *result = 0 ;
8617 void *argp1 = 0 ;
8618 int res1 = 0 ;
8619 void *argp2 = 0 ;
8620 int res2 = 0 ;
8621
8622 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8624 if (!SWIG_IsOK(res1)) {
8625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8626 }
8627 if (!argp1) {
8628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8629 }
8630 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8631 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8632 if (!SWIG_IsOK(res2)) {
8633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8634 }
8635 if (!argp2) {
8636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8637 }
8638 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8639 {
8640 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8644 return resultobj;
8645fail:
8646 return NULL;
8647}
8648
8649
8650SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8651 PyObject *resultobj = 0;
8652 wxAlphaPixelData_Accessor *result = 0 ;
8653
8654 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8655 {
8656 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8660 return resultobj;
8661fail:
8662 return NULL;
8663}
8664
8665
8666SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8667 int argc;
8668 PyObject *argv[3];
8669
8670 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8671 --argc;
8672 if (argc == 0) {
8673 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8674 }
8675 if (argc == 1) {
8676 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8677 }
8678 if (argc == 2) {
8679 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8680 }
8681
8682fail:
8683 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8684 return NULL;
8685}
8686
8687
8688SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8689 PyObject *resultobj = 0;
8690 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 PyObject *swig_obj[1] ;
8694
8695 if (!args) SWIG_fail;
8696 swig_obj[0] = args;
8697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8698 if (!SWIG_IsOK(res1)) {
8699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8700 }
8701 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8702 {
8703 delete arg1;
8704
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 resultobj = SWIG_Py_Void();
8708 return resultobj;
8709fail:
8710 return NULL;
8711}
8712
8713
8714SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8715 PyObject *resultobj = 0;
8716 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8717 wxAlphaPixelData *arg2 = 0 ;
8718 void *argp1 = 0 ;
8719 int res1 = 0 ;
8720 void *argp2 = 0 ;
8721 int res2 = 0 ;
8722 PyObject * obj0 = 0 ;
8723 PyObject * obj1 = 0 ;
8724 char * kwnames[] = {
8725 (char *) "self",(char *) "data", NULL
8726 };
8727
8728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8730 if (!SWIG_IsOK(res1)) {
8731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8732 }
8733 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8735 if (!SWIG_IsOK(res2)) {
8736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8737 }
8738 if (!argp2) {
8739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8740 }
8741 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8742 {
8743 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_Py_Void();
8747 return resultobj;
8748fail:
8749 return NULL;
8750}
8751
8752
8753SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8754 PyObject *resultobj = 0;
8755 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8756 bool result;
8757 void *argp1 = 0 ;
8758 int res1 = 0 ;
8759 PyObject *swig_obj[1] ;
8760
8761 if (!args) SWIG_fail;
8762 swig_obj[0] = args;
8763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8764 if (!SWIG_IsOK(res1)) {
8765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8766 }
8767 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8768 {
8769 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 {
8773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8774 }
8775 return resultobj;
8776fail:
8777 return NULL;
8778}
8779
8780
8781SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *resultobj = 0;
8783 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8784 void *argp1 = 0 ;
8785 int res1 = 0 ;
8786 PyObject *swig_obj[1] ;
8787
8788 if (!args) SWIG_fail;
8789 swig_obj[0] = args;
8790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8791 if (!SWIG_IsOK(res1)) {
8792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8793 }
8794 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8795 {
8796 wxAlphaPixelData_Accessor_nextPixel(arg1);
8797 if (PyErr_Occurred()) SWIG_fail;
8798 }
8799 resultobj = SWIG_Py_Void();
8800 return resultobj;
8801fail:
8802 return NULL;
8803}
8804
8805
8806SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8807 PyObject *resultobj = 0;
8808 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8809 wxAlphaPixelData *arg2 = 0 ;
8810 int arg3 ;
8811 int arg4 ;
8812 void *argp1 = 0 ;
8813 int res1 = 0 ;
8814 void *argp2 = 0 ;
8815 int res2 = 0 ;
8816 int val3 ;
8817 int ecode3 = 0 ;
8818 int val4 ;
8819 int ecode4 = 0 ;
8820 PyObject * obj0 = 0 ;
8821 PyObject * obj1 = 0 ;
8822 PyObject * obj2 = 0 ;
8823 PyObject * obj3 = 0 ;
8824 char * kwnames[] = {
8825 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8826 };
8827
8828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8830 if (!SWIG_IsOK(res1)) {
8831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8832 }
8833 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8835 if (!SWIG_IsOK(res2)) {
8836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8837 }
8838 if (!argp2) {
8839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8840 }
8841 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8842 ecode3 = SWIG_AsVal_int(obj2, &val3);
8843 if (!SWIG_IsOK(ecode3)) {
8844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8845 }
8846 arg3 = static_cast< int >(val3);
8847 ecode4 = SWIG_AsVal_int(obj3, &val4);
8848 if (!SWIG_IsOK(ecode4)) {
8849 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8850 }
8851 arg4 = static_cast< int >(val4);
8852 {
8853 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 resultobj = SWIG_Py_Void();
8857 return resultobj;
8858fail:
8859 return NULL;
8860}
8861
8862
8863SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj = 0;
8865 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8866 wxAlphaPixelData *arg2 = 0 ;
8867 int arg3 ;
8868 void *argp1 = 0 ;
8869 int res1 = 0 ;
8870 void *argp2 = 0 ;
8871 int res2 = 0 ;
8872 int val3 ;
8873 int ecode3 = 0 ;
8874 PyObject * obj0 = 0 ;
8875 PyObject * obj1 = 0 ;
8876 PyObject * obj2 = 0 ;
8877 char * kwnames[] = {
8878 (char *) "self",(char *) "data",(char *) "x", NULL
8879 };
8880
8881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8883 if (!SWIG_IsOK(res1)) {
8884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8885 }
8886 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8888 if (!SWIG_IsOK(res2)) {
8889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8890 }
8891 if (!argp2) {
8892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8893 }
8894 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8895 ecode3 = SWIG_AsVal_int(obj2, &val3);
8896 if (!SWIG_IsOK(ecode3)) {
8897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8898 }
8899 arg3 = static_cast< int >(val3);
8900 {
8901 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = SWIG_Py_Void();
8905 return resultobj;
8906fail:
8907 return NULL;
8908}
8909
8910
8911SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8912 PyObject *resultobj = 0;
8913 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8914 wxAlphaPixelData *arg2 = 0 ;
8915 int arg3 ;
8916 void *argp1 = 0 ;
8917 int res1 = 0 ;
8918 void *argp2 = 0 ;
8919 int res2 = 0 ;
8920 int val3 ;
8921 int ecode3 = 0 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 PyObject * obj2 = 0 ;
8925 char * kwnames[] = {
8926 (char *) "self",(char *) "data",(char *) "y", NULL
8927 };
8928
8929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8931 if (!SWIG_IsOK(res1)) {
8932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8933 }
8934 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8936 if (!SWIG_IsOK(res2)) {
8937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8938 }
8939 if (!argp2) {
8940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8941 }
8942 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8943 ecode3 = SWIG_AsVal_int(obj2, &val3);
8944 if (!SWIG_IsOK(ecode3)) {
8945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8946 }
8947 arg3 = static_cast< int >(val3);
8948 {
8949 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 resultobj = SWIG_Py_Void();
8953 return resultobj;
8954fail:
8955 return NULL;
8956}
8957
8958
8959SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8960 PyObject *resultobj = 0;
8961 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8962 wxAlphaPixelData *arg2 = 0 ;
8963 int arg3 ;
8964 int arg4 ;
8965 void *argp1 = 0 ;
8966 int res1 = 0 ;
8967 void *argp2 = 0 ;
8968 int res2 = 0 ;
8969 int val3 ;
8970 int ecode3 = 0 ;
8971 int val4 ;
8972 int ecode4 = 0 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj1 = 0 ;
8975 PyObject * obj2 = 0 ;
8976 PyObject * obj3 = 0 ;
8977 char * kwnames[] = {
8978 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8979 };
8980
8981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8983 if (!SWIG_IsOK(res1)) {
8984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8985 }
8986 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8988 if (!SWIG_IsOK(res2)) {
8989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8990 }
8991 if (!argp2) {
8992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8993 }
8994 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8995 ecode3 = SWIG_AsVal_int(obj2, &val3);
8996 if (!SWIG_IsOK(ecode3)) {
8997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8998 }
8999 arg3 = static_cast< int >(val3);
9000 ecode4 = SWIG_AsVal_int(obj3, &val4);
9001 if (!SWIG_IsOK(ecode4)) {
9002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9003 }
9004 arg4 = static_cast< int >(val4);
9005 {
9006 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9007 if (PyErr_Occurred()) SWIG_fail;
9008 }
9009 resultobj = SWIG_Py_Void();
9010 return resultobj;
9011fail:
9012 return NULL;
9013}
9014
9015
9016SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9017 PyObject *resultobj = 0;
9018 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9019 byte arg2 ;
9020 byte arg3 ;
9021 byte arg4 ;
9022 byte arg5 ;
9023 void *argp1 = 0 ;
9024 int res1 = 0 ;
9025 unsigned char val2 ;
9026 int ecode2 = 0 ;
9027 unsigned char val3 ;
9028 int ecode3 = 0 ;
9029 unsigned char val4 ;
9030 int ecode4 = 0 ;
9031 unsigned char val5 ;
9032 int ecode5 = 0 ;
9033 PyObject * obj0 = 0 ;
9034 PyObject * obj1 = 0 ;
9035 PyObject * obj2 = 0 ;
9036 PyObject * obj3 = 0 ;
9037 PyObject * obj4 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9044 if (!SWIG_IsOK(res1)) {
9045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9046 }
9047 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9048 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9049 if (!SWIG_IsOK(ecode2)) {
9050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9051 }
9052 arg2 = static_cast< byte >(val2);
9053 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9054 if (!SWIG_IsOK(ecode3)) {
9055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9056 }
9057 arg3 = static_cast< byte >(val3);
9058 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9059 if (!SWIG_IsOK(ecode4)) {
9060 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9061 }
9062 arg4 = static_cast< byte >(val4);
9063 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9064 if (!SWIG_IsOK(ecode5)) {
9065 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9066 }
9067 arg5 = static_cast< byte >(val5);
9068 {
9069 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9070 if (PyErr_Occurred()) SWIG_fail;
554f62e9 9071 }
fc46b7f3 9072 resultobj = SWIG_Py_Void();
554f62e9
RD
9073 return resultobj;
9074fail:
9075 return NULL;
9076}
9077
9078
fc46b7f3 9079SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9080 PyObject *resultobj = 0;
fc46b7f3
RD
9081 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9082 PyObject *result = 0 ;
554f62e9
RD
9083 void *argp1 = 0 ;
9084 int res1 = 0 ;
fc46b7f3 9085 PyObject *swig_obj[1] ;
554f62e9 9086
fc46b7f3
RD
9087 if (!args) SWIG_fail;
9088 swig_obj[0] = args;
9089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 9090 if (!SWIG_IsOK(res1)) {
fc46b7f3 9091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 9092 }
fc46b7f3 9093 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 9094 {
fc46b7f3 9095 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
fc46b7f3 9098 resultobj = result;
554f62e9
RD
9099 return resultobj;
9100fail:
9101 return NULL;
d55e5bfc
RD
9102}
9103
9104
fc46b7f3 9105SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9106 PyObject *obj;
9107 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 9108 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 9109 return SWIG_Py_Void();
d55e5bfc
RD
9110}
9111
fc46b7f3 9112SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 9113 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
9114}
9115
554f62e9
RD
9116SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj = 0;
9118 wxBitmap *arg1 = 0 ;
9119 wxColour const &arg2_defvalue = wxNullColour ;
9120 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9121 wxMask *result = 0 ;
9122 void *argp1 = 0 ;
9123 int res1 = 0 ;
9124 wxColour temp2 ;
9125 PyObject * obj0 = 0 ;
9126 PyObject * obj1 = 0 ;
9127 char * kwnames[] = {
9128 (char *) "bitmap",(char *) "colour", NULL
9129 };
9130
9131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9132 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9133 if (!SWIG_IsOK(res1)) {
9134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9135 }
9136 if (!argp1) {
9137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9138 }
9139 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9140 if (obj1) {
d55e5bfc 9141 {
554f62e9
RD
9142 arg2 = &temp2;
9143 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9144 }
554f62e9
RD
9145 }
9146 {
9147 if (!wxPyCheckForApp()) SWIG_fail;
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9154 return resultobj;
9155fail:
9156 return NULL;
d55e5bfc
RD
9157}
9158
9159
554f62e9
RD
9160SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9161 PyObject *resultobj = 0;
9162 wxMask *arg1 = (wxMask *) 0 ;
9163 void *argp1 = 0 ;
9164 int res1 = 0 ;
9165 PyObject *swig_obj[1] ;
9166
9167 if (!args) SWIG_fail;
9168 swig_obj[0] = args;
9169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9170 if (!SWIG_IsOK(res1)) {
9171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9172 }
9173 arg1 = reinterpret_cast< wxMask * >(argp1);
9174 {
554f62e9 9175 delete arg1;
d55e5bfc 9176
554f62e9
RD
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
9179 resultobj = SWIG_Py_Void();
9180 return resultobj;
9181fail:
9182 return NULL;
9183}
9184
9185
9186SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9187 PyObject *obj;
9188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9189 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9190 return SWIG_Py_Void();
9191}
9192
9193SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9194 return SWIG_Python_InitShadowInstance(args);
9195}
9196
9197SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9198 PyObject *resultobj = 0;
9199 wxString *arg1 = 0 ;
9200 wxBitmapType arg2 ;
9201 int arg3 = (int) -1 ;
9202 int arg4 = (int) -1 ;
9203 wxIcon *result = 0 ;
9204 bool temp1 = false ;
9205 int val2 ;
9206 int ecode2 = 0 ;
9207 int val3 ;
9208 int ecode3 = 0 ;
9209 int val4 ;
9210 int ecode4 = 0 ;
9211 PyObject * obj0 = 0 ;
9212 PyObject * obj1 = 0 ;
9213 PyObject * obj2 = 0 ;
9214 PyObject * obj3 = 0 ;
9215 char * kwnames[] = {
9216 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9217 };
9218
9219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9220 {
9221 arg1 = wxString_in_helper(obj0);
9222 if (arg1 == NULL) SWIG_fail;
9223 temp1 = true;
9224 }
9225 ecode2 = SWIG_AsVal_int(obj1, &val2);
9226 if (!SWIG_IsOK(ecode2)) {
9227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9228 }
9229 arg2 = static_cast< wxBitmapType >(val2);
9230 if (obj2) {
9231 ecode3 = SWIG_AsVal_int(obj2, &val3);
9232 if (!SWIG_IsOK(ecode3)) {
9233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9234 }
9235 arg3 = static_cast< int >(val3);
9236 }
9237 if (obj3) {
9238 ecode4 = SWIG_AsVal_int(obj3, &val4);
9239 if (!SWIG_IsOK(ecode4)) {
9240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9241 }
9242 arg4 = static_cast< int >(val4);
9243 }
9244 {
9245 if (!wxPyCheckForApp()) SWIG_fail;
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9252 {
9253 if (temp1)
9254 delete arg1;
9255 }
9256 return resultobj;
9257fail:
9258 {
9259 if (temp1)
9260 delete arg1;
9261 }
9262 return NULL;
d55e5bfc
RD
9263}
9264
9265
554f62e9
RD
9266SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9267 PyObject *resultobj = 0;
9268 wxIcon *arg1 = (wxIcon *) 0 ;
9269 void *argp1 = 0 ;
9270 int res1 = 0 ;
9271 PyObject *swig_obj[1] ;
9272
9273 if (!args) SWIG_fail;
9274 swig_obj[0] = args;
9275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9276 if (!SWIG_IsOK(res1)) {
9277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9278 }
9279 arg1 = reinterpret_cast< wxIcon * >(argp1);
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 delete arg1;
d55e5bfc 9283
554f62e9
RD
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 resultobj = SWIG_Py_Void();
9288 return resultobj;
9289fail:
9290 return NULL;
d55e5bfc
RD
9291}
9292
9293
554f62e9
RD
9294SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9295 PyObject *resultobj = 0;
9296 wxIcon *result = 0 ;
9297
9298 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9299 {
9300 if (!wxPyCheckForApp()) SWIG_fail;
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = (wxIcon *)new wxIcon();
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9307 return resultobj;
9308fail:
9309 return NULL;
9310}
9311
9312
9313SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9314 PyObject *resultobj = 0;
9315 wxIconLocation *arg1 = 0 ;
9316 wxIcon *result = 0 ;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 PyObject * obj0 = 0 ;
9320 char * kwnames[] = {
9321 (char *) "loc", NULL
9322 };
9323
9324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9325 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9326 if (!SWIG_IsOK(res1)) {
9327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9328 }
9329 if (!argp1) {
9330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9331 }
9332 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9333 {
9334 if (!wxPyCheckForApp()) SWIG_fail;
9335 PyThreadState* __tstate = wxPyBeginAllowThreads();
9336 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9341 return resultobj;
9342fail:
9343 return NULL;
9344}
9345
9346
9347SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj = 0;
9349 wxBitmap *arg1 = 0 ;
9350 wxIcon *result = 0 ;
9351 void *argp1 = 0 ;
9352 int res1 = 0 ;
9353 PyObject * obj0 = 0 ;
9354 char * kwnames[] = {
9355 (char *) "bmp", NULL
9356 };
9357
9358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9359 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9360 if (!SWIG_IsOK(res1)) {
9361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9362 }
9363 if (!argp1) {
9364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9365 }
9366 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9367 {
9368 if (!wxPyCheckForApp()) SWIG_fail;
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9375 return resultobj;
9376fail:
9377 return NULL;
d55e5bfc
RD
9378}
9379
9380
554f62e9
RD
9381SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj = 0;
9383 PyObject *arg1 = (PyObject *) 0 ;
9384 wxIcon *result = 0 ;
9385 PyObject * obj0 = 0 ;
9386 char * kwnames[] = {
9387 (char *) "listOfStrings", NULL
9388 };
9389
9390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9391 arg1 = obj0;
9392 {
9393 if (!wxPyCheckForApp()) SWIG_fail;
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 result = (wxIcon *)new_wxIcon(arg1);
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9400 return resultobj;
9401fail:
9402 return NULL;
9403}
9404
9405
9406SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9407 PyObject *resultobj = 0;
9408 wxIcon *arg1 = (wxIcon *) 0 ;
9409 wxString *arg2 = 0 ;
9410 wxBitmapType arg3 ;
9411 bool result;
9412 void *argp1 = 0 ;
9413 int res1 = 0 ;
9414 bool temp2 = false ;
9415 int val3 ;
9416 int ecode3 = 0 ;
9417 PyObject * obj0 = 0 ;
9418 PyObject * obj1 = 0 ;
9419 PyObject * obj2 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "name",(char *) "type", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9428 }
9429 arg1 = reinterpret_cast< wxIcon * >(argp1);
9430 {
9431 arg2 = wxString_in_helper(obj1);
9432 if (arg2 == NULL) SWIG_fail;
9433 temp2 = true;
9434 }
9435 ecode3 = SWIG_AsVal_int(obj2, &val3);
9436 if (!SWIG_IsOK(ecode3)) {
9437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9438 }
9439 arg3 = static_cast< wxBitmapType >(val3);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 {
9447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9448 }
9449 {
9450 if (temp2)
9451 delete arg2;
9452 }
9453 return resultobj;
9454fail:
9455 {
9456 if (temp2)
9457 delete arg2;
9458 }
9459 return NULL;
d55e5bfc
RD
9460}
9461
9462
554f62e9
RD
9463SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9464 PyObject *resultobj = 0;
9465 wxIcon *arg1 = (wxIcon *) 0 ;
9466 long result;
9467 void *argp1 = 0 ;
9468 int res1 = 0 ;
9469 PyObject *swig_obj[1] ;
9470
9471 if (!args) SWIG_fail;
9472 swig_obj[0] = args;
9473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9474 if (!SWIG_IsOK(res1)) {
9475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9476 }
9477 arg1 = reinterpret_cast< wxIcon * >(argp1);
9478 {
9479 PyThreadState* __tstate = wxPyBeginAllowThreads();
9480 result = (long)(arg1)->GetHandle();
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 resultobj = SWIG_From_long(static_cast< long >(result));
9485 return resultobj;
9486fail:
9487 return NULL;
9488}
9489
9490
9491SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj = 0;
9493 wxIcon *arg1 = (wxIcon *) 0 ;
9494 long arg2 ;
9495 void *argp1 = 0 ;
9496 int res1 = 0 ;
9497 long val2 ;
9498 int ecode2 = 0 ;
9499 PyObject * obj0 = 0 ;
9500 PyObject * obj1 = 0 ;
9501 char * kwnames[] = {
9502 (char *) "self",(char *) "handle", NULL
9503 };
9504
9505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9507 if (!SWIG_IsOK(res1)) {
9508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9509 }
9510 arg1 = reinterpret_cast< wxIcon * >(argp1);
9511 ecode2 = SWIG_AsVal_long(obj1, &val2);
9512 if (!SWIG_IsOK(ecode2)) {
9513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9514 }
9515 arg2 = static_cast< long >(val2);
9516 {
9517 PyThreadState* __tstate = wxPyBeginAllowThreads();
9518 wxIcon_SetHandle(arg1,arg2);
9519 wxPyEndAllowThreads(__tstate);
9520 if (PyErr_Occurred()) SWIG_fail;
9521 }
9522 resultobj = SWIG_Py_Void();
9523 return resultobj;
9524fail:
9525 return NULL;
d55e5bfc
RD
9526}
9527
9528
b39fe951 9529SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9530 PyObject *resultobj = 0;
9531 wxIcon *arg1 = (wxIcon *) 0 ;
9532 bool result;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 PyObject *swig_obj[1] ;
9536
9537 if (!args) SWIG_fail;
9538 swig_obj[0] = args;
9539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
b39fe951 9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9542 }
9543 arg1 = reinterpret_cast< wxIcon * >(argp1);
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9546 result = (bool)(arg1)->IsOk();
554f62e9
RD
9547 wxPyEndAllowThreads(__tstate);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 }
9550 {
9551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9552 }
9553 return resultobj;
9554fail:
9555 return NULL;
d55e5bfc
RD
9556}
9557
9558
554f62e9
RD
9559SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9560 PyObject *resultobj = 0;
9561 wxIcon *arg1 = (wxIcon *) 0 ;
9562 int result;
9563 void *argp1 = 0 ;
9564 int res1 = 0 ;
9565 PyObject *swig_obj[1] ;
9566
9567 if (!args) SWIG_fail;
9568 swig_obj[0] = args;
9569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9570 if (!SWIG_IsOK(res1)) {
9571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9572 }
9573 arg1 = reinterpret_cast< wxIcon * >(argp1);
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (int)(arg1)->GetWidth();
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 resultobj = SWIG_From_int(static_cast< int >(result));
9581 return resultobj;
9582fail:
9583 return NULL;
c1cb24a4
RD
9584}
9585
9586
554f62e9
RD
9587SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9588 PyObject *resultobj = 0;
9589 wxIcon *arg1 = (wxIcon *) 0 ;
9590 int result;
9591 void *argp1 = 0 ;
9592 int res1 = 0 ;
9593 PyObject *swig_obj[1] ;
9594
9595 if (!args) SWIG_fail;
9596 swig_obj[0] = args;
9597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9598 if (!SWIG_IsOK(res1)) {
9599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9600 }
9601 arg1 = reinterpret_cast< wxIcon * >(argp1);
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 result = (int)(arg1)->GetHeight();
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 resultobj = SWIG_From_int(static_cast< int >(result));
9609 return resultobj;
9610fail:
9611 return NULL;
c1cb24a4
RD
9612}
9613
9614
554f62e9
RD
9615SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9616 PyObject *resultobj = 0;
9617 wxIcon *arg1 = (wxIcon *) 0 ;
9618 int result;
9619 void *argp1 = 0 ;
9620 int res1 = 0 ;
9621 PyObject *swig_obj[1] ;
9622
9623 if (!args) SWIG_fail;
9624 swig_obj[0] = args;
9625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9626 if (!SWIG_IsOK(res1)) {
9627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9628 }
9629 arg1 = reinterpret_cast< wxIcon * >(argp1);
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 result = (int)(arg1)->GetDepth();
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) SWIG_fail;
9635 }
9636 resultobj = SWIG_From_int(static_cast< int >(result));
9637 return resultobj;
9638fail:
9639 return NULL;
9640}
9641
9642
9643SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj = 0;
9645 wxIcon *arg1 = (wxIcon *) 0 ;
9646 int arg2 ;
9647 void *argp1 = 0 ;
9648 int res1 = 0 ;
9649 int val2 ;
9650 int ecode2 = 0 ;
9651 PyObject * obj0 = 0 ;
9652 PyObject * obj1 = 0 ;
9653 char * kwnames[] = {
9654 (char *) "self",(char *) "w", NULL
9655 };
9656
9657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9659 if (!SWIG_IsOK(res1)) {
9660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9661 }
9662 arg1 = reinterpret_cast< wxIcon * >(argp1);
9663 ecode2 = SWIG_AsVal_int(obj1, &val2);
9664 if (!SWIG_IsOK(ecode2)) {
9665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9666 }
9667 arg2 = static_cast< int >(val2);
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 (arg1)->SetWidth(arg2);
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 resultobj = SWIG_Py_Void();
9675 return resultobj;
9676fail:
9677 return NULL;
9678}
9679
9680
9681SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj = 0;
9683 wxIcon *arg1 = (wxIcon *) 0 ;
9684 int arg2 ;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 int val2 ;
9688 int ecode2 = 0 ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "h", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9699 }
9700 arg1 = reinterpret_cast< wxIcon * >(argp1);
9701 ecode2 = SWIG_AsVal_int(obj1, &val2);
9702 if (!SWIG_IsOK(ecode2)) {
9703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9704 }
9705 arg2 = static_cast< int >(val2);
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 (arg1)->SetHeight(arg2);
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_Py_Void();
9713 return resultobj;
9714fail:
9715 return NULL;
9716}
9717
9718
9719SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj = 0;
9721 wxIcon *arg1 = (wxIcon *) 0 ;
9722 int arg2 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 int val2 ;
9726 int ecode2 = 0 ;
9727 PyObject * obj0 = 0 ;
9728 PyObject * obj1 = 0 ;
9729 char * kwnames[] = {
9730 (char *) "self",(char *) "d", NULL
9731 };
9732
9733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9735 if (!SWIG_IsOK(res1)) {
9736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9737 }
9738 arg1 = reinterpret_cast< wxIcon * >(argp1);
9739 ecode2 = SWIG_AsVal_int(obj1, &val2);
9740 if (!SWIG_IsOK(ecode2)) {
9741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9742 }
9743 arg2 = static_cast< int >(val2);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 (arg1)->SetDepth(arg2);
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 resultobj = SWIG_Py_Void();
9751 return resultobj;
9752fail:
9753 return NULL;
9754}
9755
9756
9757SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj = 0;
9759 wxIcon *arg1 = (wxIcon *) 0 ;
9760 wxSize *arg2 = 0 ;
9761 void *argp1 = 0 ;
9762 int res1 = 0 ;
9763 wxSize temp2 ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 char * kwnames[] = {
9767 (char *) "self",(char *) "size", NULL
9768 };
9769
9770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9772 if (!SWIG_IsOK(res1)) {
9773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9774 }
9775 arg1 = reinterpret_cast< wxIcon * >(argp1);
9776 {
9777 arg2 = &temp2;
9778 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9779 }
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 (arg1)->SetSize((wxSize const &)*arg2);
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 resultobj = SWIG_Py_Void();
9787 return resultobj;
9788fail:
9789 return NULL;
9790}
9791
9792
9793SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9794 PyObject *resultobj = 0;
9795 wxIcon *arg1 = (wxIcon *) 0 ;
9796 wxBitmap *arg2 = 0 ;
9797 void *argp1 = 0 ;
9798 int res1 = 0 ;
9799 void *argp2 = 0 ;
9800 int res2 = 0 ;
9801 PyObject * obj0 = 0 ;
9802 PyObject * obj1 = 0 ;
9803 char * kwnames[] = {
9804 (char *) "self",(char *) "bmp", NULL
9805 };
9806
9807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9809 if (!SWIG_IsOK(res1)) {
9810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9811 }
9812 arg1 = reinterpret_cast< wxIcon * >(argp1);
9813 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9814 if (!SWIG_IsOK(res2)) {
9815 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9816 }
9817 if (!argp2) {
9818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9819 }
9820 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9824 wxPyEndAllowThreads(__tstate);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 }
9827 resultobj = SWIG_Py_Void();
9828 return resultobj;
9829fail:
9830 return NULL;
d55e5bfc
RD
9831}
9832
9833
554f62e9
RD
9834SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9835 PyObject *obj;
9836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9837 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9838 return SWIG_Py_Void();
d55e5bfc
RD
9839}
9840
554f62e9
RD
9841SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9842 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9843}
9844
554f62e9
RD
9845SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9846 PyObject *resultobj = 0;
9847 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9848 int arg2 = (int) 0 ;
9849 wxIconLocation *result = 0 ;
9850 bool temp1 = false ;
9851 int val2 ;
9852 int ecode2 = 0 ;
9853 PyObject * obj0 = 0 ;
9854 PyObject * obj1 = 0 ;
9855 char * kwnames[] = {
9856 (char *) "filename",(char *) "num", NULL
9857 };
9858
9859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9860 if (obj0) {
d55e5bfc 9861 {
554f62e9
RD
9862 arg1 = wxString_in_helper(obj0);
9863 if (arg1 == NULL) SWIG_fail;
9864 temp1 = true;
d55e5bfc 9865 }
554f62e9
RD
9866 }
9867 if (obj1) {
9868 ecode2 = SWIG_AsVal_int(obj1, &val2);
9869 if (!SWIG_IsOK(ecode2)) {
9870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9871 }
9872 arg2 = static_cast< int >(val2);
9873 }
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9881 {
9882 if (temp1)
9883 delete arg1;
9884 }
9885 return resultobj;
9886fail:
9887 {
9888 if (temp1)
9889 delete arg1;
9890 }
9891 return NULL;
d55e5bfc
RD
9892}
9893
9894
554f62e9
RD
9895SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9896 PyObject *resultobj = 0;
9897 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9898 void *argp1 = 0 ;
9899 int res1 = 0 ;
9900 PyObject *swig_obj[1] ;
9901
9902 if (!args) SWIG_fail;
9903 swig_obj[0] = args;
9904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9905 if (!SWIG_IsOK(res1)) {
9906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9907 }
9908 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9909 {
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 delete arg1;
d55e5bfc 9912
554f62e9
RD
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_Py_Void();
9917 return resultobj;
9918fail:
9919 return NULL;
d55e5bfc
RD
9920}
9921
9922
554f62e9
RD
9923SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9924 PyObject *resultobj = 0;
9925 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9926 bool result;
9927 void *argp1 = 0 ;
9928 int res1 = 0 ;
9929 PyObject *swig_obj[1] ;
9930
9931 if (!args) SWIG_fail;
9932 swig_obj[0] = args;
9933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9934 if (!SWIG_IsOK(res1)) {
9935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9936 }
9937 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 {
9945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9946 }
9947 return resultobj;
9948fail:
9949 return NULL;
9950}
9951
9952
9953SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9956 wxString *arg2 = 0 ;
9957 void *argp1 = 0 ;
9958 int res1 = 0 ;
9959 bool temp2 = false ;
9960 PyObject * obj0 = 0 ;
9961 PyObject * obj1 = 0 ;
9962 char * kwnames[] = {
9963 (char *) "self",(char *) "filename", NULL
9964 };
9965
9966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9968 if (!SWIG_IsOK(res1)) {
9969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9970 }
9971 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9972 {
9973 arg2 = wxString_in_helper(obj1);
9974 if (arg2 == NULL) SWIG_fail;
9975 temp2 = true;
9976 }
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 (arg1)->SetFileName((wxString const &)*arg2);
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 resultobj = SWIG_Py_Void();
9984 {
9985 if (temp2)
9986 delete arg2;
9987 }
9988 return resultobj;
9989fail:
9990 {
9991 if (temp2)
9992 delete arg2;
9993 }
9994 return NULL;
d55e5bfc
RD
9995}
9996
9997
554f62e9
RD
9998SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9999 PyObject *resultobj = 0;
10000 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10001 wxString *result = 0 ;
10002 void *argp1 = 0 ;
10003 int res1 = 0 ;
10004 PyObject *swig_obj[1] ;
10005
10006 if (!args) SWIG_fail;
10007 swig_obj[0] = args;
10008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10009 if (!SWIG_IsOK(res1)) {
10010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10011 }
10012 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 10015 {
554f62e9
RD
10016 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10017 result = (wxString *) &_result_ref;
093d3ff1 10018 }
554f62e9
RD
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 {
10023#if wxUSE_UNICODE
10024 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10025#else
10026 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10027#endif
10028 }
10029 return resultobj;
10030fail:
10031 return NULL;
10032}
10033
10034
10035SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj = 0;
10037 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10038 int arg2 ;
10039 void *argp1 = 0 ;
10040 int res1 = 0 ;
10041 int val2 ;
10042 int ecode2 = 0 ;
10043 PyObject * obj0 = 0 ;
10044 PyObject * obj1 = 0 ;
10045 char * kwnames[] = {
10046 (char *) "self",(char *) "num", NULL
10047 };
10048
10049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10051 if (!SWIG_IsOK(res1)) {
10052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10053 }
10054 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10055 ecode2 = SWIG_AsVal_int(obj1, &val2);
10056 if (!SWIG_IsOK(ecode2)) {
10057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10058 }
10059 arg2 = static_cast< int >(val2);
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 wxIconLocation_SetIndex(arg1,arg2);
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 resultobj = SWIG_Py_Void();
10067 return resultobj;
10068fail:
10069 return NULL;
d55e5bfc
RD
10070}
10071
10072
554f62e9
RD
10073SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10074 PyObject *resultobj = 0;
10075 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10076 int result;
10077 void *argp1 = 0 ;
10078 int res1 = 0 ;
10079 PyObject *swig_obj[1] ;
10080
10081 if (!args) SWIG_fail;
10082 swig_obj[0] = args;
10083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10084 if (!SWIG_IsOK(res1)) {
10085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10086 }
10087 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10088 {
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 result = (int)wxIconLocation_GetIndex(arg1);
10091 wxPyEndAllowThreads(__tstate);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 resultobj = SWIG_From_int(static_cast< int >(result));
10095 return resultobj;
10096fail:
10097 return NULL;
d55e5bfc
RD
10098}
10099
10100
554f62e9
RD
10101SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10102 PyObject *obj;
10103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10104 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10105 return SWIG_Py_Void();
d55e5bfc
RD
10106}
10107
554f62e9
RD
10108SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10109 return SWIG_Python_InitShadowInstance(args);
10110}
d55e5bfc 10111
554f62e9
RD
10112SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10113 PyObject *resultobj = 0;
10114 wxIconBundle *result = 0 ;
10115
10116 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = (wxIconBundle *)new wxIconBundle();
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10124 return resultobj;
10125fail:
10126 return NULL;
10127}
10128
10129
10130SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10131 PyObject *resultobj = 0;
10132 wxString *arg1 = 0 ;
10133 long arg2 ;
10134 wxIconBundle *result = 0 ;
10135 bool temp1 = false ;
10136 long val2 ;
10137 int ecode2 = 0 ;
10138 PyObject * obj0 = 0 ;
10139 PyObject * obj1 = 0 ;
10140 char * kwnames[] = {
10141 (char *) "file",(char *) "type", NULL
10142 };
10143
10144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10145 {
10146 arg1 = wxString_in_helper(obj0);
10147 if (arg1 == NULL) SWIG_fail;
10148 temp1 = true;
10149 }
10150 ecode2 = SWIG_AsVal_long(obj1, &val2);
10151 if (!SWIG_IsOK(ecode2)) {
10152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10153 }
10154 arg2 = static_cast< long >(val2);
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10162 {
10163 if (temp1)
10164 delete arg1;
10165 }
10166 return resultobj;
10167fail:
10168 {
10169 if (temp1)
10170 delete arg1;
10171 }
10172 return NULL;
d55e5bfc
RD
10173}
10174
10175
554f62e9
RD
10176SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10177 PyObject *resultobj = 0;
10178 wxIcon *arg1 = 0 ;
10179 wxIconBundle *result = 0 ;
10180 void *argp1 = 0 ;
10181 int res1 = 0 ;
10182 PyObject * obj0 = 0 ;
10183 char * kwnames[] = {
10184 (char *) "icon", NULL
10185 };
10186
10187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10188 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10189 if (!SWIG_IsOK(res1)) {
10190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10191 }
10192 if (!argp1) {
10193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10194 }
10195 arg1 = reinterpret_cast< wxIcon * >(argp1);
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10203 return resultobj;
10204fail:
10205 return NULL;
d55e5bfc
RD
10206}
10207
10208
554f62e9
RD
10209SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10210 PyObject *resultobj = 0;
10211 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10212 void *argp1 = 0 ;
10213 int res1 = 0 ;
10214 PyObject *swig_obj[1] ;
10215
10216 if (!args) SWIG_fail;
10217 swig_obj[0] = args;
10218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10219 if (!SWIG_IsOK(res1)) {
10220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10221 }
10222 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 delete arg1;
d55e5bfc 10226
554f62e9
RD
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 resultobj = SWIG_Py_Void();
10231 return resultobj;
10232fail:
10233 return NULL;
10234}
10235
10236
10237SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10238 PyObject *resultobj = 0;
10239 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10240 wxIcon *arg2 = 0 ;
10241 void *argp1 = 0 ;
10242 int res1 = 0 ;
10243 void *argp2 = 0 ;
10244 int res2 = 0 ;
10245 PyObject * obj0 = 0 ;
10246 PyObject * obj1 = 0 ;
10247 char * kwnames[] = {
10248 (char *) "self",(char *) "icon", NULL
10249 };
10250
10251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10253 if (!SWIG_IsOK(res1)) {
10254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10255 }
10256 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10258 if (!SWIG_IsOK(res2)) {
10259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10260 }
10261 if (!argp2) {
10262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10263 }
10264 arg2 = reinterpret_cast< wxIcon * >(argp2);
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 (arg1)->AddIcon((wxIcon const &)*arg2);
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 resultobj = SWIG_Py_Void();
10272 return resultobj;
10273fail:
10274 return NULL;
10275}
10276
10277
10278SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10279 PyObject *resultobj = 0;
10280 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10281 wxString *arg2 = 0 ;
10282 long arg3 ;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 bool temp2 = false ;
10286 long val3 ;
10287 int ecode3 = 0 ;
10288 PyObject * obj0 = 0 ;
10289 PyObject * obj1 = 0 ;
10290 PyObject * obj2 = 0 ;
10291 char * kwnames[] = {
10292 (char *) "self",(char *) "file",(char *) "type", NULL
10293 };
10294
10295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10297 if (!SWIG_IsOK(res1)) {
10298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10299 }
10300 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10301 {
10302 arg2 = wxString_in_helper(obj1);
10303 if (arg2 == NULL) SWIG_fail;
10304 temp2 = true;
10305 }
10306 ecode3 = SWIG_AsVal_long(obj2, &val3);
10307 if (!SWIG_IsOK(ecode3)) {
10308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10309 }
10310 arg3 = static_cast< long >(val3);
10311 {
10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
10313 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 resultobj = SWIG_Py_Void();
10318 {
10319 if (temp2)
10320 delete arg2;
10321 }
10322 return resultobj;
10323fail:
10324 {
10325 if (temp2)
10326 delete arg2;
10327 }
10328 return NULL;
10329}
10330
10331
10332SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10333 PyObject *resultobj = 0;
10334 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10335 wxSize *arg2 = 0 ;
10336 wxIcon *result = 0 ;
10337 void *argp1 = 0 ;
10338 int res1 = 0 ;
10339 wxSize temp2 ;
10340 PyObject * obj0 = 0 ;
10341 PyObject * obj1 = 0 ;
10342 char * kwnames[] = {
10343 (char *) "self",(char *) "size", NULL
10344 };
10345
10346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10348 if (!SWIG_IsOK(res1)) {
10349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10350 }
10351 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10352 {
10353 arg2 = &temp2;
10354 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10358 {
554f62e9
RD
10359 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10360 result = (wxIcon *) &_result_ref;
d55e5bfc 10361 }
554f62e9
RD
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 {
10366 wxIcon* resultptr = new wxIcon(*result);
10367 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10368 }
10369 return resultobj;
10370fail:
10371 return NULL;
10372}
10373
10374
10375SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10376 PyObject *obj;
10377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10378 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10379 return SWIG_Py_Void();
10380}
10381
10382SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10383 return SWIG_Python_InitShadowInstance(args);
10384}
10385
10386SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj = 0;
10388 wxString *arg1 = 0 ;
10389 long arg2 ;
10390 int arg3 = (int) 0 ;
10391 int arg4 = (int) 0 ;
10392 wxCursor *result = 0 ;
10393 bool temp1 = false ;
10394 long val2 ;
10395 int ecode2 = 0 ;
10396 int val3 ;
10397 int ecode3 = 0 ;
10398 int val4 ;
10399 int ecode4 = 0 ;
10400 PyObject * obj0 = 0 ;
10401 PyObject * obj1 = 0 ;
10402 PyObject * obj2 = 0 ;
10403 PyObject * obj3 = 0 ;
10404 char * kwnames[] = {
10405 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10406 };
10407
10408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10409 {
10410 arg1 = wxString_in_helper(obj0);
10411 if (arg1 == NULL) SWIG_fail;
10412 temp1 = true;
10413 }
10414 ecode2 = SWIG_AsVal_long(obj1, &val2);
10415 if (!SWIG_IsOK(ecode2)) {
10416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10417 }
10418 arg2 = static_cast< long >(val2);
10419 if (obj2) {
10420 ecode3 = SWIG_AsVal_int(obj2, &val3);
10421 if (!SWIG_IsOK(ecode3)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10423 }
10424 arg3 = static_cast< int >(val3);
10425 }
10426 if (obj3) {
10427 ecode4 = SWIG_AsVal_int(obj3, &val4);
10428 if (!SWIG_IsOK(ecode4)) {
10429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10430 }
10431 arg4 = static_cast< int >(val4);
10432 }
10433 {
10434 if (!wxPyCheckForApp()) SWIG_fail;
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10441 {
10442 if (temp1)
10443 delete arg1;
10444 }
10445 return resultobj;
10446fail:
10447 {
10448 if (temp1)
10449 delete arg1;
10450 }
10451 return NULL;
d55e5bfc
RD
10452}
10453
10454
554f62e9
RD
10455SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10456 PyObject *resultobj = 0;
10457 wxCursor *arg1 = (wxCursor *) 0 ;
10458 void *argp1 = 0 ;
10459 int res1 = 0 ;
10460 PyObject *swig_obj[1] ;
10461
10462 if (!args) SWIG_fail;
10463 swig_obj[0] = args;
10464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10465 if (!SWIG_IsOK(res1)) {
10466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10467 }
10468 arg1 = reinterpret_cast< wxCursor * >(argp1);
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 delete arg1;
d55e5bfc 10472
554f62e9
RD
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_Py_Void();
10477 return resultobj;
10478fail:
10479 return NULL;
10480}
10481
10482
10483SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj = 0;
10485 int arg1 ;
10486 wxCursor *result = 0 ;
10487 int val1 ;
10488 int ecode1 = 0 ;
10489 PyObject * obj0 = 0 ;
10490 char * kwnames[] = {
10491 (char *) "id", NULL
10492 };
10493
10494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10495 ecode1 = SWIG_AsVal_int(obj0, &val1);
10496 if (!SWIG_IsOK(ecode1)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10498 }
10499 arg1 = static_cast< int >(val1);
10500 {
10501 if (!wxPyCheckForApp()) SWIG_fail;
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (wxCursor *)new wxCursor(arg1);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10508 return resultobj;
10509fail:
10510 return NULL;
10511}
10512
10513
10514SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10515 PyObject *resultobj = 0;
10516 wxImage *arg1 = 0 ;
10517 wxCursor *result = 0 ;
10518 void *argp1 = 0 ;
10519 int res1 = 0 ;
10520 PyObject * obj0 = 0 ;
10521 char * kwnames[] = {
10522 (char *) "image", NULL
10523 };
10524
10525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10526 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10527 if (!SWIG_IsOK(res1)) {
10528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10529 }
10530 if (!argp1) {
10531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10532 }
10533 arg1 = reinterpret_cast< wxImage * >(argp1);
10534 {
10535 if (!wxPyCheckForApp()) SWIG_fail;
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10542 return resultobj;
10543fail:
10544 return NULL;
d55e5bfc
RD
10545}
10546
10547
554f62e9
RD
10548SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10549 PyObject *resultobj = 0;
10550 wxCursor *arg1 = (wxCursor *) 0 ;
10551 long result;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 PyObject *swig_obj[1] ;
10555
10556 if (!args) SWIG_fail;
10557 swig_obj[0] = args;
10558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10559 if (!SWIG_IsOK(res1)) {
10560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10561 }
10562 arg1 = reinterpret_cast< wxCursor * >(argp1);
10563 {
10564 PyThreadState* __tstate = wxPyBeginAllowThreads();
10565 result = (long)(arg1)->GetHandle();
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_From_long(static_cast< long >(result));
10570 return resultobj;
10571fail:
10572 return NULL;
10573}
10574
10575
10576SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj = 0;
10578 wxCursor *arg1 = (wxCursor *) 0 ;
10579 long arg2 ;
10580 void *argp1 = 0 ;
10581 int res1 = 0 ;
10582 long val2 ;
10583 int ecode2 = 0 ;
10584 PyObject * obj0 = 0 ;
10585 PyObject * obj1 = 0 ;
10586 char * kwnames[] = {
10587 (char *) "self",(char *) "handle", NULL
10588 };
10589
10590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10592 if (!SWIG_IsOK(res1)) {
10593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10594 }
10595 arg1 = reinterpret_cast< wxCursor * >(argp1);
10596 ecode2 = SWIG_AsVal_long(obj1, &val2);
10597 if (!SWIG_IsOK(ecode2)) {
10598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10599 }
10600 arg2 = static_cast< long >(val2);
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 wxCursor_SetHandle(arg1,arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_Py_Void();
10608 return resultobj;
10609fail:
10610 return NULL;
d55e5bfc
RD
10611}
10612
10613
b39fe951 10614SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10615 PyObject *resultobj = 0;
10616 wxCursor *arg1 = (wxCursor *) 0 ;
10617 bool result;
10618 void *argp1 = 0 ;
10619 int res1 = 0 ;
10620 PyObject *swig_obj[1] ;
10621
10622 if (!args) SWIG_fail;
10623 swig_obj[0] = args;
10624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10625 if (!SWIG_IsOK(res1)) {
b39fe951 10626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10627 }
10628 arg1 = reinterpret_cast< wxCursor * >(argp1);
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10631 result = (bool)(arg1)->IsOk();
554f62e9
RD
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 {
10636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10637 }
10638 return resultobj;
10639fail:
10640 return NULL;
d55e5bfc
RD
10641}
10642
10643
554f62e9
RD
10644SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10645 PyObject *resultobj = 0;
10646 wxCursor *arg1 = (wxCursor *) 0 ;
10647 int result;
10648 void *argp1 = 0 ;
10649 int res1 = 0 ;
10650 PyObject *swig_obj[1] ;
10651
10652 if (!args) SWIG_fail;
10653 swig_obj[0] = args;
10654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10655 if (!SWIG_IsOK(res1)) {
10656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10657 }
10658 arg1 = reinterpret_cast< wxCursor * >(argp1);
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = (int)(arg1)->GetWidth();
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 resultobj = SWIG_From_int(static_cast< int >(result));
10666 return resultobj;
10667fail:
10668 return NULL;
d55e5bfc
RD
10669}
10670
10671
554f62e9
RD
10672SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10673 PyObject *resultobj = 0;
10674 wxCursor *arg1 = (wxCursor *) 0 ;
10675 int result;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 PyObject *swig_obj[1] ;
10679
10680 if (!args) SWIG_fail;
10681 swig_obj[0] = args;
10682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10685 }
10686 arg1 = reinterpret_cast< wxCursor * >(argp1);
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 result = (int)(arg1)->GetHeight();
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 resultobj = SWIG_From_int(static_cast< int >(result));
10694 return resultobj;
10695fail:
10696 return NULL;
d55e5bfc
RD
10697}
10698
10699
554f62e9
RD
10700SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10701 PyObject *resultobj = 0;
10702 wxCursor *arg1 = (wxCursor *) 0 ;
10703 int result;
10704 void *argp1 = 0 ;
10705 int res1 = 0 ;
10706 PyObject *swig_obj[1] ;
10707
10708 if (!args) SWIG_fail;
10709 swig_obj[0] = args;
10710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10711 if (!SWIG_IsOK(res1)) {
10712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10713 }
10714 arg1 = reinterpret_cast< wxCursor * >(argp1);
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = (int)(arg1)->GetDepth();
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 resultobj = SWIG_From_int(static_cast< int >(result));
10722 return resultobj;
10723fail:
10724 return NULL;
10725}
10726
10727
10728SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10729 PyObject *resultobj = 0;
10730 wxCursor *arg1 = (wxCursor *) 0 ;
10731 int arg2 ;
10732 void *argp1 = 0 ;
10733 int res1 = 0 ;
10734 int val2 ;
10735 int ecode2 = 0 ;
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 char * kwnames[] = {
10739 (char *) "self",(char *) "w", NULL
10740 };
10741
10742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10744 if (!SWIG_IsOK(res1)) {
10745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10746 }
10747 arg1 = reinterpret_cast< wxCursor * >(argp1);
10748 ecode2 = SWIG_AsVal_int(obj1, &val2);
10749 if (!SWIG_IsOK(ecode2)) {
10750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10751 }
10752 arg2 = static_cast< int >(val2);
10753 {
10754 PyThreadState* __tstate = wxPyBeginAllowThreads();
10755 (arg1)->SetWidth(arg2);
10756 wxPyEndAllowThreads(__tstate);
10757 if (PyErr_Occurred()) SWIG_fail;
10758 }
10759 resultobj = SWIG_Py_Void();
10760 return resultobj;
10761fail:
10762 return NULL;
10763}
10764
10765
10766SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10767 PyObject *resultobj = 0;
10768 wxCursor *arg1 = (wxCursor *) 0 ;
10769 int arg2 ;
10770 void *argp1 = 0 ;
10771 int res1 = 0 ;
10772 int val2 ;
10773 int ecode2 = 0 ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 char * kwnames[] = {
10777 (char *) "self",(char *) "h", NULL
10778 };
10779
10780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10782 if (!SWIG_IsOK(res1)) {
10783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10784 }
10785 arg1 = reinterpret_cast< wxCursor * >(argp1);
10786 ecode2 = SWIG_AsVal_int(obj1, &val2);
10787 if (!SWIG_IsOK(ecode2)) {
10788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10789 }
10790 arg2 = static_cast< int >(val2);
10791 {
10792 PyThreadState* __tstate = wxPyBeginAllowThreads();
10793 (arg1)->SetHeight(arg2);
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 resultobj = SWIG_Py_Void();
10798 return resultobj;
10799fail:
10800 return NULL;
10801}
10802
10803
10804SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj = 0;
10806 wxCursor *arg1 = (wxCursor *) 0 ;
10807 int arg2 ;
10808 void *argp1 = 0 ;
10809 int res1 = 0 ;
10810 int val2 ;
10811 int ecode2 = 0 ;
10812 PyObject * obj0 = 0 ;
10813 PyObject * obj1 = 0 ;
10814 char * kwnames[] = {
10815 (char *) "self",(char *) "d", NULL
10816 };
10817
10818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10820 if (!SWIG_IsOK(res1)) {
10821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10822 }
10823 arg1 = reinterpret_cast< wxCursor * >(argp1);
10824 ecode2 = SWIG_AsVal_int(obj1, &val2);
10825 if (!SWIG_IsOK(ecode2)) {
10826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10827 }
10828 arg2 = static_cast< int >(val2);
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 (arg1)->SetDepth(arg2);
10832 wxPyEndAllowThreads(__tstate);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 resultobj = SWIG_Py_Void();
10836 return resultobj;
10837fail:
10838 return NULL;
10839}
10840
10841
10842SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10843 PyObject *resultobj = 0;
10844 wxCursor *arg1 = (wxCursor *) 0 ;
10845 wxSize *arg2 = 0 ;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 wxSize temp2 ;
10849 PyObject * obj0 = 0 ;
10850 PyObject * obj1 = 0 ;
10851 char * kwnames[] = {
10852 (char *) "self",(char *) "size", NULL
10853 };
10854
10855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10857 if (!SWIG_IsOK(res1)) {
10858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10859 }
10860 arg1 = reinterpret_cast< wxCursor * >(argp1);
10861 {
10862 arg2 = &temp2;
10863 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10864 }
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 (arg1)->SetSize((wxSize const &)*arg2);
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 resultobj = SWIG_Py_Void();
10872 return resultobj;
10873fail:
10874 return NULL;
10875}
10876
10877
10878SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10879 PyObject *obj;
10880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10881 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10882 return SWIG_Py_Void();
10883}
10884
10885SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10886 return SWIG_Python_InitShadowInstance(args);
10887}
10888
10889SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10890 PyObject *resultobj = 0;
10891 int arg1 = (int) 0 ;
10892 int arg2 = (int) 0 ;
10893 int arg3 = (int) 0 ;
10894 int arg4 = (int) 0 ;
10895 wxRegion *result = 0 ;
10896 int val1 ;
10897 int ecode1 = 0 ;
10898 int val2 ;
10899 int ecode2 = 0 ;
10900 int val3 ;
10901 int ecode3 = 0 ;
10902 int val4 ;
10903 int ecode4 = 0 ;
10904 PyObject * obj0 = 0 ;
10905 PyObject * obj1 = 0 ;
10906 PyObject * obj2 = 0 ;
10907 PyObject * obj3 = 0 ;
10908 char * kwnames[] = {
10909 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10910 };
10911
10912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10913 if (obj0) {
10914 ecode1 = SWIG_AsVal_int(obj0, &val1);
10915 if (!SWIG_IsOK(ecode1)) {
10916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10917 }
10918 arg1 = static_cast< int >(val1);
10919 }
10920 if (obj1) {
10921 ecode2 = SWIG_AsVal_int(obj1, &val2);
10922 if (!SWIG_IsOK(ecode2)) {
10923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10924 }
10925 arg2 = static_cast< int >(val2);
10926 }
10927 if (obj2) {
10928 ecode3 = SWIG_AsVal_int(obj2, &val3);
10929 if (!SWIG_IsOK(ecode3)) {
10930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10931 }
10932 arg3 = static_cast< int >(val3);
10933 }
10934 if (obj3) {
10935 ecode4 = SWIG_AsVal_int(obj3, &val4);
10936 if (!SWIG_IsOK(ecode4)) {
10937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10938 }
10939 arg4 = static_cast< int >(val4);
10940 }
10941 {
10942 if (!wxPyCheckForApp()) SWIG_fail;
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10949 return resultobj;
10950fail:
10951 return NULL;
10952}
10953
10954
10955SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj = 0;
10957 wxBitmap *arg1 = 0 ;
10958 wxRegion *result = 0 ;
10959 void *argp1 = 0 ;
10960 int res1 = 0 ;
10961 PyObject * obj0 = 0 ;
10962 char * kwnames[] = {
10963 (char *) "bmp", NULL
10964 };
10965
10966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10967 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10968 if (!SWIG_IsOK(res1)) {
10969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10970 }
10971 if (!argp1) {
10972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10973 }
10974 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10975 {
10976 if (!wxPyCheckForApp()) SWIG_fail;
10977 PyThreadState* __tstate = wxPyBeginAllowThreads();
10978 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10979 wxPyEndAllowThreads(__tstate);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10983 return resultobj;
10984fail:
10985 return NULL;
10986}
10987
10988
10989SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10990 PyObject *resultobj = 0;
10991 wxBitmap *arg1 = 0 ;
10992 wxColour *arg2 = 0 ;
10993 int arg3 = (int) 0 ;
10994 wxRegion *result = 0 ;
10995 void *argp1 = 0 ;
10996 int res1 = 0 ;
10997 wxColour temp2 ;
10998 int val3 ;
10999 int ecode3 = 0 ;
11000 PyObject * obj0 = 0 ;
11001 PyObject * obj1 = 0 ;
11002 PyObject * obj2 = 0 ;
11003 char * kwnames[] = {
11004 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11005 };
11006
11007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11008 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11009 if (!SWIG_IsOK(res1)) {
11010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11011 }
11012 if (!argp1) {
11013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11014 }
11015 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11016 {
11017 arg2 = &temp2;
11018 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11019 }
11020 if (obj2) {
11021 ecode3 = SWIG_AsVal_int(obj2, &val3);
11022 if (!SWIG_IsOK(ecode3)) {
11023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11024 }
11025 arg3 = static_cast< int >(val3);
11026 }
11027 {
11028 if (!wxPyCheckForApp()) SWIG_fail;
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11031 wxPyEndAllowThreads(__tstate);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 }
11034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11035 return resultobj;
11036fail:
11037 return NULL;
11038}
11039
11040
11041SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11042 PyObject *resultobj = 0;
11043 int arg1 ;
11044 wxPoint *arg2 = (wxPoint *) 0 ;
11045 int arg3 = (int) wxWINDING_RULE ;
11046 wxRegion *result = 0 ;
11047 int val3 ;
11048 int ecode3 = 0 ;
11049 PyObject * obj0 = 0 ;
11050 PyObject * obj1 = 0 ;
11051 char * kwnames[] = {
11052 (char *) "points",(char *) "fillStyle", NULL
11053 };
11054
11055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11056 {
11057 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11058 if (arg2 == NULL) SWIG_fail;
11059 }
11060 if (obj1) {
11061 ecode3 = SWIG_AsVal_int(obj1, &val3);
11062 if (!SWIG_IsOK(ecode3)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11064 }
11065 arg3 = static_cast< int >(val3);
11066 }
11067 {
11068 if (!wxPyCheckForApp()) SWIG_fail;
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11075 {
11076 if (arg2) delete [] arg2;
11077 }
11078 return resultobj;
11079fail:
11080 {
11081 if (arg2) delete [] arg2;
11082 }
11083 return NULL;
d55e5bfc
RD
11084}
11085
11086
554f62e9
RD
11087SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11088 PyObject *resultobj = 0;
11089 wxRegion *arg1 = (wxRegion *) 0 ;
11090 void *argp1 = 0 ;
11091 int res1 = 0 ;
11092 PyObject *swig_obj[1] ;
11093
11094 if (!args) SWIG_fail;
11095 swig_obj[0] = args;
11096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11097 if (!SWIG_IsOK(res1)) {
11098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11099 }
11100 arg1 = reinterpret_cast< wxRegion * >(argp1);
11101 {
11102 PyThreadState* __tstate = wxPyBeginAllowThreads();
11103 delete arg1;
d55e5bfc 11104
554f62e9
RD
11105 wxPyEndAllowThreads(__tstate);
11106 if (PyErr_Occurred()) SWIG_fail;
11107 }
11108 resultobj = SWIG_Py_Void();
11109 return resultobj;
11110fail:
11111 return NULL;
d55e5bfc
RD
11112}
11113
11114
554f62e9
RD
11115SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11116 PyObject *resultobj = 0;
11117 wxRegion *arg1 = (wxRegion *) 0 ;
11118 void *argp1 = 0 ;
11119 int res1 = 0 ;
11120 PyObject *swig_obj[1] ;
11121
11122 if (!args) SWIG_fail;
11123 swig_obj[0] = args;
11124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11125 if (!SWIG_IsOK(res1)) {
11126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11127 }
11128 arg1 = reinterpret_cast< wxRegion * >(argp1);
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 (arg1)->Clear();
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 resultobj = SWIG_Py_Void();
11136 return resultobj;
11137fail:
11138 return NULL;
11139}
11140
11141
11142SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj = 0;
11144 wxRegion *arg1 = (wxRegion *) 0 ;
11145 int arg2 ;
11146 int arg3 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 int val2 ;
11151 int ecode2 = 0 ;
11152 int val3 ;
11153 int ecode3 = 0 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 PyObject * obj2 = 0 ;
11157 char * kwnames[] = {
11158 (char *) "self",(char *) "x",(char *) "y", NULL
11159 };
11160
11161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11165 }
11166 arg1 = reinterpret_cast< wxRegion * >(argp1);
11167 ecode2 = SWIG_AsVal_int(obj1, &val2);
11168 if (!SWIG_IsOK(ecode2)) {
11169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11170 }
11171 arg2 = static_cast< int >(val2);
11172 ecode3 = SWIG_AsVal_int(obj2, &val3);
11173 if (!SWIG_IsOK(ecode3)) {
11174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11175 }
11176 arg3 = static_cast< int >(val3);
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
11179 result = (bool)(arg1)->Offset(arg2,arg3);
11180 wxPyEndAllowThreads(__tstate);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 }
11183 {
11184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11185 }
11186 return resultobj;
11187fail:
11188 return NULL;
11189}
11190
11191
11192SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11193 PyObject *resultobj = 0;
11194 wxRegion *arg1 = (wxRegion *) 0 ;
11195 int arg2 ;
11196 int arg3 ;
11197 wxRegionContain result;
11198 void *argp1 = 0 ;
11199 int res1 = 0 ;
11200 int val2 ;
11201 int ecode2 = 0 ;
11202 int val3 ;
11203 int ecode3 = 0 ;
11204 PyObject * obj0 = 0 ;
11205 PyObject * obj1 = 0 ;
11206 PyObject * obj2 = 0 ;
11207 char * kwnames[] = {
11208 (char *) "self",(char *) "x",(char *) "y", NULL
11209 };
11210
11211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11213 if (!SWIG_IsOK(res1)) {
11214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11215 }
11216 arg1 = reinterpret_cast< wxRegion * >(argp1);
11217 ecode2 = SWIG_AsVal_int(obj1, &val2);
11218 if (!SWIG_IsOK(ecode2)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11220 }
11221 arg2 = static_cast< int >(val2);
11222 ecode3 = SWIG_AsVal_int(obj2, &val3);
11223 if (!SWIG_IsOK(ecode3)) {
11224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11225 }
11226 arg3 = static_cast< int >(val3);
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 resultobj = SWIG_From_int(static_cast< int >(result));
11234 return resultobj;
11235fail:
11236 return NULL;
11237}
11238
11239
11240SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11241 PyObject *resultobj = 0;
11242 wxRegion *arg1 = (wxRegion *) 0 ;
11243 wxPoint *arg2 = 0 ;
11244 wxRegionContain result;
11245 void *argp1 = 0 ;
11246 int res1 = 0 ;
11247 wxPoint temp2 ;
11248 PyObject * obj0 = 0 ;
11249 PyObject * obj1 = 0 ;
11250 char * kwnames[] = {
11251 (char *) "self",(char *) "pt", NULL
11252 };
11253
11254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11256 if (!SWIG_IsOK(res1)) {
11257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11258 }
11259 arg1 = reinterpret_cast< wxRegion * >(argp1);
11260 {
11261 arg2 = &temp2;
11262 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11263 }
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 resultobj = SWIG_From_int(static_cast< int >(result));
11271 return resultobj;
11272fail:
11273 return NULL;
11274}
11275
11276
11277SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11278 PyObject *resultobj = 0;
11279 wxRegion *arg1 = (wxRegion *) 0 ;
11280 wxRect *arg2 = 0 ;
11281 wxRegionContain result;
11282 void *argp1 = 0 ;
11283 int res1 = 0 ;
11284 wxRect temp2 ;
11285 PyObject * obj0 = 0 ;
11286 PyObject * obj1 = 0 ;
11287 char * kwnames[] = {
11288 (char *) "self",(char *) "rect", NULL
11289 };
11290
11291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11293 if (!SWIG_IsOK(res1)) {
11294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11295 }
11296 arg1 = reinterpret_cast< wxRegion * >(argp1);
11297 {
11298 arg2 = &temp2;
11299 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11300 }
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 resultobj = SWIG_From_int(static_cast< int >(result));
11308 return resultobj;
11309fail:
11310 return NULL;
11311}
11312
11313
11314SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11315 PyObject *resultobj = 0;
11316 wxRegion *arg1 = (wxRegion *) 0 ;
11317 int arg2 ;
11318 int arg3 ;
11319 int arg4 ;
11320 int arg5 ;
11321 wxRegionContain result;
11322 void *argp1 = 0 ;
11323 int res1 = 0 ;
11324 int val2 ;
11325 int ecode2 = 0 ;
11326 int val3 ;
11327 int ecode3 = 0 ;
11328 int val4 ;
11329 int ecode4 = 0 ;
11330 int val5 ;
11331 int ecode5 = 0 ;
11332 PyObject * obj0 = 0 ;
11333 PyObject * obj1 = 0 ;
11334 PyObject * obj2 = 0 ;
11335 PyObject * obj3 = 0 ;
11336 PyObject * obj4 = 0 ;
11337 char * kwnames[] = {
11338 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11339 };
11340
11341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11343 if (!SWIG_IsOK(res1)) {
11344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11345 }
11346 arg1 = reinterpret_cast< wxRegion * >(argp1);
11347 ecode2 = SWIG_AsVal_int(obj1, &val2);
11348 if (!SWIG_IsOK(ecode2)) {
11349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11350 }
11351 arg2 = static_cast< int >(val2);
11352 ecode3 = SWIG_AsVal_int(obj2, &val3);
11353 if (!SWIG_IsOK(ecode3)) {
11354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11355 }
11356 arg3 = static_cast< int >(val3);
11357 ecode4 = SWIG_AsVal_int(obj3, &val4);
11358 if (!SWIG_IsOK(ecode4)) {
11359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11360 }
11361 arg4 = static_cast< int >(val4);
11362 ecode5 = SWIG_AsVal_int(obj4, &val5);
11363 if (!SWIG_IsOK(ecode5)) {
11364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11365 }
11366 arg5 = static_cast< int >(val5);
11367 {
11368 PyThreadState* __tstate = wxPyBeginAllowThreads();
11369 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11370 wxPyEndAllowThreads(__tstate);
11371 if (PyErr_Occurred()) SWIG_fail;
11372 }
11373 resultobj = SWIG_From_int(static_cast< int >(result));
11374 return resultobj;
11375fail:
11376 return NULL;
d55e5bfc
RD
11377}
11378
11379
554f62e9
RD
11380SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11381 PyObject *resultobj = 0;
11382 wxRegion *arg1 = (wxRegion *) 0 ;
11383 wxRect result;
11384 void *argp1 = 0 ;
11385 int res1 = 0 ;
11386 PyObject *swig_obj[1] ;
11387
11388 if (!args) SWIG_fail;
11389 swig_obj[0] = args;
11390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11391 if (!SWIG_IsOK(res1)) {
11392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11393 }
11394 arg1 = reinterpret_cast< wxRegion * >(argp1);
11395 {
11396 PyThreadState* __tstate = wxPyBeginAllowThreads();
11397 result = (arg1)->GetBox();
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11402 return resultobj;
11403fail:
11404 return NULL;
11405}
11406
11407
11408SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj = 0;
11410 wxRegion *arg1 = (wxRegion *) 0 ;
11411 int arg2 ;
11412 int arg3 ;
11413 int arg4 ;
11414 int arg5 ;
11415 bool result;
11416 void *argp1 = 0 ;
11417 int res1 = 0 ;
11418 int val2 ;
11419 int ecode2 = 0 ;
11420 int val3 ;
11421 int ecode3 = 0 ;
11422 int val4 ;
11423 int ecode4 = 0 ;
11424 int val5 ;
11425 int ecode5 = 0 ;
11426 PyObject * obj0 = 0 ;
11427 PyObject * obj1 = 0 ;
11428 PyObject * obj2 = 0 ;
11429 PyObject * obj3 = 0 ;
11430 PyObject * obj4 = 0 ;
11431 char * kwnames[] = {
11432 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11433 };
11434
11435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11437 if (!SWIG_IsOK(res1)) {
11438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11439 }
11440 arg1 = reinterpret_cast< wxRegion * >(argp1);
11441 ecode2 = SWIG_AsVal_int(obj1, &val2);
11442 if (!SWIG_IsOK(ecode2)) {
11443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11444 }
11445 arg2 = static_cast< int >(val2);
11446 ecode3 = SWIG_AsVal_int(obj2, &val3);
11447 if (!SWIG_IsOK(ecode3)) {
11448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11449 }
11450 arg3 = static_cast< int >(val3);
11451 ecode4 = SWIG_AsVal_int(obj3, &val4);
11452 if (!SWIG_IsOK(ecode4)) {
11453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11454 }
11455 arg4 = static_cast< int >(val4);
11456 ecode5 = SWIG_AsVal_int(obj4, &val5);
11457 if (!SWIG_IsOK(ecode5)) {
11458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11459 }
11460 arg5 = static_cast< int >(val5);
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 {
11468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11469 }
11470 return resultobj;
11471fail:
11472 return NULL;
11473}
11474
11475
11476SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11477 PyObject *resultobj = 0;
11478 wxRegion *arg1 = (wxRegion *) 0 ;
11479 wxRect *arg2 = 0 ;
11480 bool result;
11481 void *argp1 = 0 ;
11482 int res1 = 0 ;
11483 wxRect temp2 ;
11484 PyObject * obj0 = 0 ;
11485 PyObject * obj1 = 0 ;
11486 char * kwnames[] = {
11487 (char *) "self",(char *) "rect", NULL
11488 };
11489
11490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11494 }
11495 arg1 = reinterpret_cast< wxRegion * >(argp1);
11496 {
11497 arg2 = &temp2;
11498 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11499 }
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 }
11509 return resultobj;
11510fail:
11511 return NULL;
11512}
11513
11514
11515SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj = 0;
11517 wxRegion *arg1 = (wxRegion *) 0 ;
11518 wxRegion *arg2 = 0 ;
11519 bool result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 void *argp2 = 0 ;
11523 int res2 = 0 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 char * kwnames[] = {
11527 (char *) "self",(char *) "region", NULL
11528 };
11529
11530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11534 }
11535 arg1 = reinterpret_cast< wxRegion * >(argp1);
11536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11537 if (!SWIG_IsOK(res2)) {
11538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11539 }
11540 if (!argp2) {
11541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11542 }
11543 arg2 = reinterpret_cast< wxRegion * >(argp2);
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11547 wxPyEndAllowThreads(__tstate);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 {
11551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11552 }
11553 return resultobj;
11554fail:
11555 return NULL;
d55e5bfc
RD
11556}
11557
11558
554f62e9
RD
11559SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11560 PyObject *resultobj = 0;
11561 wxRegion *arg1 = (wxRegion *) 0 ;
11562 bool result;
11563 void *argp1 = 0 ;
11564 int res1 = 0 ;
11565 PyObject *swig_obj[1] ;
11566
11567 if (!args) SWIG_fail;
11568 swig_obj[0] = args;
11569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11570 if (!SWIG_IsOK(res1)) {
11571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11572 }
11573 arg1 = reinterpret_cast< wxRegion * >(argp1);
11574 {
11575 PyThreadState* __tstate = wxPyBeginAllowThreads();
11576 result = (bool)(arg1)->IsEmpty();
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 {
11581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11582 }
11583 return resultobj;
11584fail:
11585 return NULL;
11586}
11587
11588
f5263701
RD
11589SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11590 PyObject *resultobj = 0;
11591 wxRegion *arg1 = (wxRegion *) 0 ;
11592 wxRegion *arg2 = 0 ;
11593 bool result;
11594 void *argp1 = 0 ;
11595 int res1 = 0 ;
11596 void *argp2 = 0 ;
11597 int res2 = 0 ;
11598 PyObject * obj0 = 0 ;
11599 PyObject * obj1 = 0 ;
11600 char * kwnames[] = {
11601 (char *) "self",(char *) "region", NULL
11602 };
11603
11604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11606 if (!SWIG_IsOK(res1)) {
11607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11608 }
11609 arg1 = reinterpret_cast< wxRegion * >(argp1);
11610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11611 if (!SWIG_IsOK(res2)) {
11612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11613 }
11614 if (!argp2) {
11615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11616 }
11617 arg2 = reinterpret_cast< wxRegion * >(argp2);
11618 {
11619 PyThreadState* __tstate = wxPyBeginAllowThreads();
11620 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 {
11625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11626 }
11627 return resultobj;
11628fail:
11629 return NULL;
11630}
11631
11632
554f62e9
RD
11633SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj = 0;
11635 wxRegion *arg1 = (wxRegion *) 0 ;
11636 int arg2 ;
11637 int arg3 ;
11638 int arg4 ;
11639 int arg5 ;
11640 bool result;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 int val2 ;
11644 int ecode2 = 0 ;
11645 int val3 ;
11646 int ecode3 = 0 ;
11647 int val4 ;
11648 int ecode4 = 0 ;
11649 int val5 ;
11650 int ecode5 = 0 ;
11651 PyObject * obj0 = 0 ;
11652 PyObject * obj1 = 0 ;
11653 PyObject * obj2 = 0 ;
11654 PyObject * obj3 = 0 ;
11655 PyObject * obj4 = 0 ;
11656 char * kwnames[] = {
11657 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11658 };
11659
11660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11662 if (!SWIG_IsOK(res1)) {
11663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11664 }
11665 arg1 = reinterpret_cast< wxRegion * >(argp1);
11666 ecode2 = SWIG_AsVal_int(obj1, &val2);
11667 if (!SWIG_IsOK(ecode2)) {
11668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11669 }
11670 arg2 = static_cast< int >(val2);
11671 ecode3 = SWIG_AsVal_int(obj2, &val3);
11672 if (!SWIG_IsOK(ecode3)) {
11673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11674 }
11675 arg3 = static_cast< int >(val3);
11676 ecode4 = SWIG_AsVal_int(obj3, &val4);
11677 if (!SWIG_IsOK(ecode4)) {
11678 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11679 }
11680 arg4 = static_cast< int >(val4);
11681 ecode5 = SWIG_AsVal_int(obj4, &val5);
11682 if (!SWIG_IsOK(ecode5)) {
11683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11684 }
11685 arg5 = static_cast< int >(val5);
11686 {
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 {
11693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11694 }
11695 return resultobj;
11696fail:
11697 return NULL;
11698}
11699
11700
11701SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11702 PyObject *resultobj = 0;
11703 wxRegion *arg1 = (wxRegion *) 0 ;
11704 wxRect *arg2 = 0 ;
11705 bool result;
11706 void *argp1 = 0 ;
11707 int res1 = 0 ;
11708 wxRect temp2 ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 char * kwnames[] = {
11712 (char *) "self",(char *) "rect", NULL
11713 };
11714
11715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11717 if (!SWIG_IsOK(res1)) {
11718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11719 }
11720 arg1 = reinterpret_cast< wxRegion * >(argp1);
11721 {
11722 arg2 = &temp2;
11723 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11724 }
11725 {
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11728 wxPyEndAllowThreads(__tstate);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 {
11732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11733 }
11734 return resultobj;
11735fail:
11736 return NULL;
11737}
11738
11739
11740SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj = 0;
11742 wxRegion *arg1 = (wxRegion *) 0 ;
11743 wxRegion *arg2 = 0 ;
11744 bool result;
11745 void *argp1 = 0 ;
11746 int res1 = 0 ;
11747 void *argp2 = 0 ;
11748 int res2 = 0 ;
11749 PyObject * obj0 = 0 ;
11750 PyObject * obj1 = 0 ;
11751 char * kwnames[] = {
11752 (char *) "self",(char *) "region", NULL
11753 };
11754
11755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11757 if (!SWIG_IsOK(res1)) {
11758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11759 }
11760 arg1 = reinterpret_cast< wxRegion * >(argp1);
11761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11762 if (!SWIG_IsOK(res2)) {
11763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11764 }
11765 if (!argp2) {
11766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11767 }
11768 arg2 = reinterpret_cast< wxRegion * >(argp2);
11769 {
11770 PyThreadState* __tstate = wxPyBeginAllowThreads();
11771 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 {
11776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11777 }
11778 return resultobj;
11779fail:
11780 return NULL;
11781}
11782
11783
11784SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11785 PyObject *resultobj = 0;
11786 wxRegion *arg1 = (wxRegion *) 0 ;
11787 int arg2 ;
11788 int arg3 ;
11789 int arg4 ;
11790 int arg5 ;
11791 bool result;
11792 void *argp1 = 0 ;
11793 int res1 = 0 ;
11794 int val2 ;
11795 int ecode2 = 0 ;
11796 int val3 ;
11797 int ecode3 = 0 ;
11798 int val4 ;
11799 int ecode4 = 0 ;
11800 int val5 ;
11801 int ecode5 = 0 ;
11802 PyObject * obj0 = 0 ;
11803 PyObject * obj1 = 0 ;
11804 PyObject * obj2 = 0 ;
11805 PyObject * obj3 = 0 ;
11806 PyObject * obj4 = 0 ;
11807 char * kwnames[] = {
11808 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11809 };
11810
11811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11813 if (!SWIG_IsOK(res1)) {
11814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11815 }
11816 arg1 = reinterpret_cast< wxRegion * >(argp1);
11817 ecode2 = SWIG_AsVal_int(obj1, &val2);
11818 if (!SWIG_IsOK(ecode2)) {
11819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11820 }
11821 arg2 = static_cast< int >(val2);
11822 ecode3 = SWIG_AsVal_int(obj2, &val3);
11823 if (!SWIG_IsOK(ecode3)) {
11824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11825 }
11826 arg3 = static_cast< int >(val3);
11827 ecode4 = SWIG_AsVal_int(obj3, &val4);
11828 if (!SWIG_IsOK(ecode4)) {
11829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11830 }
11831 arg4 = static_cast< int >(val4);
11832 ecode5 = SWIG_AsVal_int(obj4, &val5);
11833 if (!SWIG_IsOK(ecode5)) {
11834 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11835 }
11836 arg5 = static_cast< int >(val5);
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11840 wxPyEndAllowThreads(__tstate);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 {
11844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11845 }
11846 return resultobj;
11847fail:
11848 return NULL;
11849}
11850
11851
11852SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11853 PyObject *resultobj = 0;
11854 wxRegion *arg1 = (wxRegion *) 0 ;
11855 wxRect *arg2 = 0 ;
11856 bool result;
11857 void *argp1 = 0 ;
11858 int res1 = 0 ;
11859 wxRect temp2 ;
11860 PyObject * obj0 = 0 ;
11861 PyObject * obj1 = 0 ;
11862 char * kwnames[] = {
11863 (char *) "self",(char *) "rect", NULL
11864 };
11865
11866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11868 if (!SWIG_IsOK(res1)) {
11869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11870 }
11871 arg1 = reinterpret_cast< wxRegion * >(argp1);
11872 {
11873 arg2 = &temp2;
11874 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11875 }
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11884 }
11885 return resultobj;
11886fail:
11887 return NULL;
11888}
11889
11890
11891SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj = 0;
11893 wxRegion *arg1 = (wxRegion *) 0 ;
11894 wxRegion *arg2 = 0 ;
11895 bool result;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 void *argp2 = 0 ;
11899 int res2 = 0 ;
11900 PyObject * obj0 = 0 ;
11901 PyObject * obj1 = 0 ;
11902 char * kwnames[] = {
11903 (char *) "self",(char *) "region", NULL
11904 };
11905
11906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11908 if (!SWIG_IsOK(res1)) {
11909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11910 }
11911 arg1 = reinterpret_cast< wxRegion * >(argp1);
11912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11913 if (!SWIG_IsOK(res2)) {
11914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11915 }
11916 if (!argp2) {
11917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11918 }
11919 arg2 = reinterpret_cast< wxRegion * >(argp2);
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 {
11927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11928 }
11929 return resultobj;
11930fail:
11931 return NULL;
11932}
11933
11934
11935SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj = 0;
11937 wxRegion *arg1 = (wxRegion *) 0 ;
11938 int arg2 ;
11939 int arg3 ;
11940 int arg4 ;
11941 int arg5 ;
11942 bool result;
11943 void *argp1 = 0 ;
11944 int res1 = 0 ;
11945 int val2 ;
11946 int ecode2 = 0 ;
11947 int val3 ;
11948 int ecode3 = 0 ;
11949 int val4 ;
11950 int ecode4 = 0 ;
11951 int val5 ;
11952 int ecode5 = 0 ;
11953 PyObject * obj0 = 0 ;
11954 PyObject * obj1 = 0 ;
11955 PyObject * obj2 = 0 ;
11956 PyObject * obj3 = 0 ;
11957 PyObject * obj4 = 0 ;
11958 char * kwnames[] = {
11959 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11960 };
11961
11962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11964 if (!SWIG_IsOK(res1)) {
11965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11966 }
11967 arg1 = reinterpret_cast< wxRegion * >(argp1);
11968 ecode2 = SWIG_AsVal_int(obj1, &val2);
11969 if (!SWIG_IsOK(ecode2)) {
11970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11971 }
11972 arg2 = static_cast< int >(val2);
11973 ecode3 = SWIG_AsVal_int(obj2, &val3);
11974 if (!SWIG_IsOK(ecode3)) {
11975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11976 }
11977 arg3 = static_cast< int >(val3);
11978 ecode4 = SWIG_AsVal_int(obj3, &val4);
11979 if (!SWIG_IsOK(ecode4)) {
11980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11981 }
11982 arg4 = static_cast< int >(val4);
11983 ecode5 = SWIG_AsVal_int(obj4, &val5);
11984 if (!SWIG_IsOK(ecode5)) {
11985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11986 }
11987 arg5 = static_cast< int >(val5);
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11991 wxPyEndAllowThreads(__tstate);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 {
11995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11996 }
11997 return resultobj;
11998fail:
11999 return NULL;
12000}
12001
12002
12003SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12004 PyObject *resultobj = 0;
12005 wxRegion *arg1 = (wxRegion *) 0 ;
12006 wxRect *arg2 = 0 ;
12007 bool result;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 wxRect temp2 ;
12011 PyObject * obj0 = 0 ;
12012 PyObject * obj1 = 0 ;
12013 char * kwnames[] = {
12014 (char *) "self",(char *) "rect", NULL
12015 };
12016
12017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12019 if (!SWIG_IsOK(res1)) {
12020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12021 }
12022 arg1 = reinterpret_cast< wxRegion * >(argp1);
12023 {
12024 arg2 = &temp2;
12025 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12026 }
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 {
12034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12035 }
12036 return resultobj;
12037fail:
12038 return NULL;
12039}
12040
12041
12042SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj = 0;
12044 wxRegion *arg1 = (wxRegion *) 0 ;
12045 wxRegion *arg2 = 0 ;
12046 bool result;
12047 void *argp1 = 0 ;
12048 int res1 = 0 ;
12049 void *argp2 = 0 ;
12050 int res2 = 0 ;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 char * kwnames[] = {
12054 (char *) "self",(char *) "region", NULL
12055 };
12056
12057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12059 if (!SWIG_IsOK(res1)) {
12060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12061 }
12062 arg1 = reinterpret_cast< wxRegion * >(argp1);
12063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12064 if (!SWIG_IsOK(res2)) {
12065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12066 }
12067 if (!argp2) {
12068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12069 }
12070 arg2 = reinterpret_cast< wxRegion * >(argp2);
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 {
12078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12079 }
12080 return resultobj;
12081fail:
12082 return NULL;
d55e5bfc
RD
12083}
12084
12085
554f62e9
RD
12086SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12087 PyObject *resultobj = 0;
12088 wxRegion *arg1 = (wxRegion *) 0 ;
12089 SwigValueWrapper<wxBitmap > result;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 PyObject *swig_obj[1] ;
12093
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12099 }
12100 arg1 = reinterpret_cast< wxRegion * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (arg1)->ConvertToBitmap();
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12108 return resultobj;
12109fail:
12110 return NULL;
12111}
12112
12113
12114SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxRegion *arg1 = (wxRegion *) 0 ;
12117 wxBitmap *arg2 = 0 ;
12118 bool result;
12119 void *argp1 = 0 ;
12120 int res1 = 0 ;
12121 void *argp2 = 0 ;
12122 int res2 = 0 ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 char * kwnames[] = {
12126 (char *) "self",(char *) "bmp", NULL
12127 };
12128
12129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12133 }
12134 arg1 = reinterpret_cast< wxRegion * >(argp1);
12135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12136 if (!SWIG_IsOK(res2)) {
12137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12138 }
12139 if (!argp2) {
12140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12141 }
12142 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 {
12150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12151 }
12152 return resultobj;
12153fail:
12154 return NULL;
12155}
12156
12157
12158SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12159 PyObject *resultobj = 0;
12160 wxRegion *arg1 = (wxRegion *) 0 ;
12161 wxBitmap *arg2 = 0 ;
12162 wxColour *arg3 = 0 ;
12163 int arg4 = (int) 0 ;
12164 bool result;
12165 void *argp1 = 0 ;
12166 int res1 = 0 ;
12167 void *argp2 = 0 ;
12168 int res2 = 0 ;
12169 wxColour temp3 ;
12170 int val4 ;
12171 int ecode4 = 0 ;
12172 PyObject * obj0 = 0 ;
12173 PyObject * obj1 = 0 ;
12174 PyObject * obj2 = 0 ;
12175 PyObject * obj3 = 0 ;
12176 char * kwnames[] = {
12177 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12178 };
12179
12180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12182 if (!SWIG_IsOK(res1)) {
12183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12184 }
12185 arg1 = reinterpret_cast< wxRegion * >(argp1);
12186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12187 if (!SWIG_IsOK(res2)) {
12188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12189 }
12190 if (!argp2) {
12191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12192 }
12193 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12194 {
12195 arg3 = &temp3;
12196 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12197 }
12198 if (obj3) {
12199 ecode4 = SWIG_AsVal_int(obj3, &val4);
12200 if (!SWIG_IsOK(ecode4)) {
12201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12202 }
12203 arg4 = static_cast< int >(val4);
12204 }
12205 {
12206 PyThreadState* __tstate = wxPyBeginAllowThreads();
12207 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12208 wxPyEndAllowThreads(__tstate);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 }
12211 {
12212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12213 }
12214 return resultobj;
12215fail:
12216 return NULL;
d55e5bfc
RD
12217}
12218
12219
554f62e9
RD
12220SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12221 PyObject *obj;
12222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12223 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12224 return SWIG_Py_Void();
d55e5bfc
RD
12225}
12226
554f62e9
RD
12227SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12228 return SWIG_Python_InitShadowInstance(args);
12229}
d55e5bfc 12230
554f62e9
RD
12231SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj = 0;
12233 wxRegion *arg1 = 0 ;
12234 wxRegionIterator *result = 0 ;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 PyObject * obj0 = 0 ;
12238 char * kwnames[] = {
12239 (char *) "region", NULL
12240 };
12241
12242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12243 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12246 }
12247 if (!argp1) {
12248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12249 }
12250 arg1 = reinterpret_cast< wxRegion * >(argp1);
12251 {
12252 if (!wxPyCheckForApp()) SWIG_fail;
12253 PyThreadState* __tstate = wxPyBeginAllowThreads();
12254 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12259 return resultobj;
12260fail:
12261 return NULL;
d55e5bfc
RD
12262}
12263
12264
554f62e9
RD
12265SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12266 PyObject *resultobj = 0;
12267 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12268 void *argp1 = 0 ;
12269 int res1 = 0 ;
12270 PyObject *swig_obj[1] ;
12271
12272 if (!args) SWIG_fail;
12273 swig_obj[0] = args;
12274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12275 if (!SWIG_IsOK(res1)) {
12276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12277 }
12278 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12279 {
12280 PyThreadState* __tstate = wxPyBeginAllowThreads();
12281 delete arg1;
d55e5bfc 12282
554f62e9
RD
12283 wxPyEndAllowThreads(__tstate);
12284 if (PyErr_Occurred()) SWIG_fail;
12285 }
12286 resultobj = SWIG_Py_Void();
12287 return resultobj;
12288fail:
12289 return NULL;
d55e5bfc
RD
12290}
12291
12292
554f62e9
RD
12293SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12294 PyObject *resultobj = 0;
12295 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12296 int result;
12297 void *argp1 = 0 ;
12298 int res1 = 0 ;
12299 PyObject *swig_obj[1] ;
12300
12301 if (!args) SWIG_fail;
12302 swig_obj[0] = args;
12303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12304 if (!SWIG_IsOK(res1)) {
12305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12306 }
12307 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = (int)(arg1)->GetX();
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 resultobj = SWIG_From_int(static_cast< int >(result));
12315 return resultobj;
12316fail:
12317 return NULL;
d55e5bfc
RD
12318}
12319
12320
554f62e9
RD
12321SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12322 PyObject *resultobj = 0;
12323 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12324 int result;
12325 void *argp1 = 0 ;
12326 int res1 = 0 ;
12327 PyObject *swig_obj[1] ;
12328
12329 if (!args) SWIG_fail;
12330 swig_obj[0] = args;
12331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12332 if (!SWIG_IsOK(res1)) {
12333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12334 }
12335 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 result = (int)(arg1)->GetY();
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 resultobj = SWIG_From_int(static_cast< int >(result));
12343 return resultobj;
12344fail:
12345 return NULL;
d55e5bfc
RD
12346}
12347
12348
554f62e9
RD
12349SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12350 PyObject *resultobj = 0;
12351 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12352 int result;
12353 void *argp1 = 0 ;
12354 int res1 = 0 ;
12355 PyObject *swig_obj[1] ;
12356
12357 if (!args) SWIG_fail;
12358 swig_obj[0] = args;
12359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12362 }
12363 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 result = (int)(arg1)->GetW();
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_From_int(static_cast< int >(result));
12371 return resultobj;
12372fail:
12373 return NULL;
d55e5bfc
RD
12374}
12375
12376
554f62e9
RD
12377SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12378 PyObject *resultobj = 0;
12379 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12380 int result;
12381 void *argp1 = 0 ;
12382 int res1 = 0 ;
12383 PyObject *swig_obj[1] ;
12384
12385 if (!args) SWIG_fail;
12386 swig_obj[0] = args;
12387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12388 if (!SWIG_IsOK(res1)) {
12389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12390 }
12391 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12392 {
12393 PyThreadState* __tstate = wxPyBeginAllowThreads();
12394 result = (int)(arg1)->GetWidth();
12395 wxPyEndAllowThreads(__tstate);
12396 if (PyErr_Occurred()) SWIG_fail;
12397 }
12398 resultobj = SWIG_From_int(static_cast< int >(result));
12399 return resultobj;
12400fail:
12401 return NULL;
d55e5bfc
RD
12402}
12403
12404
554f62e9
RD
12405SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12406 PyObject *resultobj = 0;
12407 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12408 int result;
12409 void *argp1 = 0 ;
12410 int res1 = 0 ;
12411 PyObject *swig_obj[1] ;
12412
12413 if (!args) SWIG_fail;
12414 swig_obj[0] = args;
12415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12416 if (!SWIG_IsOK(res1)) {
12417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12418 }
12419 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12420 {
12421 PyThreadState* __tstate = wxPyBeginAllowThreads();
12422 result = (int)(arg1)->GetH();
12423 wxPyEndAllowThreads(__tstate);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 }
12426 resultobj = SWIG_From_int(static_cast< int >(result));
12427 return resultobj;
12428fail:
12429 return NULL;
d55e5bfc
RD
12430}
12431
12432
554f62e9
RD
12433SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12434 PyObject *resultobj = 0;
12435 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12436 int result;
12437 void *argp1 = 0 ;
12438 int res1 = 0 ;
12439 PyObject *swig_obj[1] ;
12440
12441 if (!args) SWIG_fail;
12442 swig_obj[0] = args;
12443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12444 if (!SWIG_IsOK(res1)) {
12445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12446 }
12447 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12448 {
12449 PyThreadState* __tstate = wxPyBeginAllowThreads();
12450 result = (int)(arg1)->GetHeight();
12451 wxPyEndAllowThreads(__tstate);
12452 if (PyErr_Occurred()) SWIG_fail;
12453 }
12454 resultobj = SWIG_From_int(static_cast< int >(result));
12455 return resultobj;
12456fail:
12457 return NULL;
d55e5bfc
RD
12458}
12459
12460
554f62e9
RD
12461SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12462 PyObject *resultobj = 0;
12463 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12464 wxRect result;
12465 void *argp1 = 0 ;
12466 int res1 = 0 ;
12467 PyObject *swig_obj[1] ;
12468
12469 if (!args) SWIG_fail;
12470 swig_obj[0] = args;
12471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12472 if (!SWIG_IsOK(res1)) {
12473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12474 }
12475 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 result = (arg1)->GetRect();
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12483 return resultobj;
12484fail:
12485 return NULL;
d55e5bfc
RD
12486}
12487
12488
554f62e9
RD
12489SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12490 PyObject *resultobj = 0;
12491 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12492 bool result;
12493 void *argp1 = 0 ;
12494 int res1 = 0 ;
12495 PyObject *swig_obj[1] ;
12496
12497 if (!args) SWIG_fail;
12498 swig_obj[0] = args;
12499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12500 if (!SWIG_IsOK(res1)) {
12501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12502 }
12503 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12504 {
12505 PyThreadState* __tstate = wxPyBeginAllowThreads();
12506 result = (bool)(arg1)->HaveRects();
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 {
12511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12512 }
12513 return resultobj;
12514fail:
12515 return NULL;
d55e5bfc
RD
12516}
12517
12518
554f62e9
RD
12519SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12520 PyObject *resultobj = 0;
12521 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12522 void *argp1 = 0 ;
12523 int res1 = 0 ;
12524 PyObject *swig_obj[1] ;
12525
12526 if (!args) SWIG_fail;
12527 swig_obj[0] = args;
12528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12529 if (!SWIG_IsOK(res1)) {
12530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12531 }
12532 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 (arg1)->Reset();
12536 wxPyEndAllowThreads(__tstate);
12537 if (PyErr_Occurred()) SWIG_fail;
12538 }
12539 resultobj = SWIG_Py_Void();
12540 return resultobj;
12541fail:
12542 return NULL;
d55e5bfc
RD
12543}
12544
12545
554f62e9
RD
12546SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12547 PyObject *resultobj = 0;
12548 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12549 void *argp1 = 0 ;
12550 int res1 = 0 ;
12551 PyObject *swig_obj[1] ;
12552
12553 if (!args) SWIG_fail;
12554 swig_obj[0] = args;
12555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12556 if (!SWIG_IsOK(res1)) {
12557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12558 }
12559 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12560 {
12561 PyThreadState* __tstate = wxPyBeginAllowThreads();
12562 wxRegionIterator_Next(arg1);
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 resultobj = SWIG_Py_Void();
12567 return resultobj;
12568fail:
12569 return NULL;
d55e5bfc
RD
12570}
12571
12572
554f62e9
RD
12573SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12574 PyObject *resultobj = 0;
12575 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12576 bool result;
12577 void *argp1 = 0 ;
12578 int res1 = 0 ;
12579 PyObject *swig_obj[1] ;
12580
12581 if (!args) SWIG_fail;
12582 swig_obj[0] = args;
12583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12586 }
12587 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12588 {
12589 PyThreadState* __tstate = wxPyBeginAllowThreads();
12590 result = (bool)wxRegionIterator___nonzero__(arg1);
12591 wxPyEndAllowThreads(__tstate);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 }
12594 {
12595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12596 }
12597 return resultobj;
12598fail:
12599 return NULL;
d55e5bfc
RD
12600}
12601
12602
554f62e9
RD
12603SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12604 PyObject *obj;
12605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12606 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12607 return SWIG_Py_Void();
d55e5bfc
RD
12608}
12609
554f62e9
RD
12610SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12611 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12612}
12613
554f62e9
RD
12614SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12615 PyObject *resultobj = 0;
12616 wxNativeFontInfo *result = 0 ;
12617
12618 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12619 {
12620 PyThreadState* __tstate = wxPyBeginAllowThreads();
12621 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12622 wxPyEndAllowThreads(__tstate);
12623 if (PyErr_Occurred()) SWIG_fail;
12624 }
12625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12626 return resultobj;
12627fail:
12628 return NULL;
d55e5bfc
RD
12629}
12630
12631
554f62e9
RD
12632SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12633 PyObject *resultobj = 0;
12634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 PyObject *swig_obj[1] ;
12638
12639 if (!args) SWIG_fail;
12640 swig_obj[0] = args;
12641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12642 if (!SWIG_IsOK(res1)) {
12643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12644 }
12645 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 delete arg1;
d55e5bfc 12649
554f62e9
RD
12650 wxPyEndAllowThreads(__tstate);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 resultobj = SWIG_Py_Void();
12654 return resultobj;
12655fail:
12656 return NULL;
d55e5bfc
RD
12657}
12658
12659
554f62e9
RD
12660SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12661 PyObject *resultobj = 0;
12662 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12663 void *argp1 = 0 ;
12664 int res1 = 0 ;
12665 PyObject *swig_obj[1] ;
12666
12667 if (!args) SWIG_fail;
12668 swig_obj[0] = args;
12669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12670 if (!SWIG_IsOK(res1)) {
12671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12672 }
12673 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12674 {
12675 PyThreadState* __tstate = wxPyBeginAllowThreads();
12676 (arg1)->Init();
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 resultobj = SWIG_Py_Void();
12681 return resultobj;
12682fail:
12683 return NULL;
12684}
12685
12686
12687SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj = 0;
12689 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12690 wxFont *arg2 = 0 ;
12691 void *argp1 = 0 ;
12692 int res1 = 0 ;
12693 void *argp2 = 0 ;
12694 int res2 = 0 ;
12695 PyObject * obj0 = 0 ;
12696 PyObject * obj1 = 0 ;
12697 char * kwnames[] = {
12698 (char *) "self",(char *) "font", NULL
12699 };
12700
12701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12703 if (!SWIG_IsOK(res1)) {
12704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12705 }
12706 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12708 if (!SWIG_IsOK(res2)) {
12709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12710 }
12711 if (!argp2) {
12712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12713 }
12714 arg2 = reinterpret_cast< wxFont * >(argp2);
12715 {
12716 PyThreadState* __tstate = wxPyBeginAllowThreads();
12717 (arg1)->InitFromFont((wxFont const &)*arg2);
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 resultobj = SWIG_Py_Void();
12722 return resultobj;
12723fail:
12724 return NULL;
d55e5bfc
RD
12725}
12726
12727
554f62e9
RD
12728SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12729 PyObject *resultobj = 0;
12730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12731 int result;
12732 void *argp1 = 0 ;
12733 int res1 = 0 ;
12734 PyObject *swig_obj[1] ;
12735
12736 if (!args) SWIG_fail;
12737 swig_obj[0] = args;
12738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12739 if (!SWIG_IsOK(res1)) {
12740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12741 }
12742 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12746 wxPyEndAllowThreads(__tstate);
12747 if (PyErr_Occurred()) SWIG_fail;
12748 }
12749 resultobj = SWIG_From_int(static_cast< int >(result));
12750 return resultobj;
12751fail:
12752 return NULL;
d55e5bfc
RD
12753}
12754
12755
554f62e9
RD
12756SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12757 PyObject *resultobj = 0;
12758 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12759 wxSize result;
12760 void *argp1 = 0 ;
12761 int res1 = 0 ;
12762 PyObject *swig_obj[1] ;
12763
12764 if (!args) SWIG_fail;
12765 swig_obj[0] = args;
12766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12767 if (!SWIG_IsOK(res1)) {
12768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12769 }
12770 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12778 return resultobj;
12779fail:
12780 return NULL;
d55e5bfc
RD
12781}
12782
12783
554f62e9
RD
12784SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12785 PyObject *resultobj = 0;
12786 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12787 wxFontStyle result;
12788 void *argp1 = 0 ;
12789 int res1 = 0 ;
12790 PyObject *swig_obj[1] ;
12791
12792 if (!args) SWIG_fail;
12793 swig_obj[0] = args;
12794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12795 if (!SWIG_IsOK(res1)) {
12796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12797 }
12798 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = SWIG_From_int(static_cast< int >(result));
12806 return resultobj;
12807fail:
12808 return NULL;
d55e5bfc
RD
12809}
12810
12811
554f62e9
RD
12812SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12813 PyObject *resultobj = 0;
12814 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12815 wxFontWeight result;
12816 void *argp1 = 0 ;
12817 int res1 = 0 ;
12818 PyObject *swig_obj[1] ;
12819
12820 if (!args) SWIG_fail;
12821 swig_obj[0] = args;
12822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12823 if (!SWIG_IsOK(res1)) {
12824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12825 }
12826 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12827 {
12828 PyThreadState* __tstate = wxPyBeginAllowThreads();
12829 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12830 wxPyEndAllowThreads(__tstate);
12831 if (PyErr_Occurred()) SWIG_fail;
12832 }
12833 resultobj = SWIG_From_int(static_cast< int >(result));
12834 return resultobj;
12835fail:
12836 return NULL;
d55e5bfc
RD
12837}
12838
12839
554f62e9
RD
12840SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12841 PyObject *resultobj = 0;
12842 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12843 bool result;
12844 void *argp1 = 0 ;
12845 int res1 = 0 ;
12846 PyObject *swig_obj[1] ;
12847
12848 if (!args) SWIG_fail;
12849 swig_obj[0] = args;
12850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12851 if (!SWIG_IsOK(res1)) {
12852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12853 }
12854 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 {
12862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12863 }
12864 return resultobj;
12865fail:
12866 return NULL;
d55e5bfc
RD
12867}
12868
12869
554f62e9
RD
12870SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12871 PyObject *resultobj = 0;
12872 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12873 wxString result;
12874 void *argp1 = 0 ;
12875 int res1 = 0 ;
12876 PyObject *swig_obj[1] ;
12877
12878 if (!args) SWIG_fail;
12879 swig_obj[0] = args;
12880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12881 if (!SWIG_IsOK(res1)) {
12882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12883 }
12884 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12885 {
12886 PyThreadState* __tstate = wxPyBeginAllowThreads();
12887 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12888 wxPyEndAllowThreads(__tstate);
12889 if (PyErr_Occurred()) SWIG_fail;
12890 }
12891 {
093d3ff1 12892#if wxUSE_UNICODE
554f62e9 12893 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12894#else
554f62e9 12895 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12896#endif
554f62e9
RD
12897 }
12898 return resultobj;
12899fail:
12900 return NULL;
d55e5bfc
RD
12901}
12902
12903
554f62e9
RD
12904SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12905 PyObject *resultobj = 0;
12906 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12907 wxFontFamily result;
12908 void *argp1 = 0 ;
12909 int res1 = 0 ;
12910 PyObject *swig_obj[1] ;
12911
12912 if (!args) SWIG_fail;
12913 swig_obj[0] = args;
12914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12915 if (!SWIG_IsOK(res1)) {
12916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12917 }
12918 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 resultobj = SWIG_From_int(static_cast< int >(result));
12926 return resultobj;
12927fail:
12928 return NULL;
d55e5bfc
RD
12929}
12930
12931
554f62e9
RD
12932SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12933 PyObject *resultobj = 0;
12934 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12935 wxFontEncoding result;
12936 void *argp1 = 0 ;
12937 int res1 = 0 ;
12938 PyObject *swig_obj[1] ;
12939
12940 if (!args) SWIG_fail;
12941 swig_obj[0] = args;
12942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12943 if (!SWIG_IsOK(res1)) {
12944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12945 }
12946 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 resultobj = SWIG_From_int(static_cast< int >(result));
12954 return resultobj;
12955fail:
12956 return NULL;
12957}
12958
12959
12960SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12961 PyObject *resultobj = 0;
12962 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12963 int arg2 ;
12964 void *argp1 = 0 ;
12965 int res1 = 0 ;
12966 int val2 ;
12967 int ecode2 = 0 ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 char * kwnames[] = {
12971 (char *) "self",(char *) "pointsize", NULL
12972 };
12973
12974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12976 if (!SWIG_IsOK(res1)) {
12977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12978 }
12979 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12980 ecode2 = SWIG_AsVal_int(obj1, &val2);
12981 if (!SWIG_IsOK(ecode2)) {
12982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12983 }
12984 arg2 = static_cast< int >(val2);
12985 {
12986 PyThreadState* __tstate = wxPyBeginAllowThreads();
12987 (arg1)->SetPointSize(arg2);
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 resultobj = SWIG_Py_Void();
12992 return resultobj;
12993fail:
12994 return NULL;
12995}
12996
12997
12998SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12999 PyObject *resultobj = 0;
13000 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13001 wxSize *arg2 = 0 ;
13002 void *argp1 = 0 ;
13003 int res1 = 0 ;
13004 wxSize temp2 ;
13005 PyObject * obj0 = 0 ;
13006 PyObject * obj1 = 0 ;
13007 char * kwnames[] = {
13008 (char *) "self",(char *) "pixelSize", NULL
13009 };
13010
13011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13013 if (!SWIG_IsOK(res1)) {
13014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13015 }
13016 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13017 {
13018 arg2 = &temp2;
13019 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13020 }
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 (arg1)->SetPixelSize((wxSize const &)*arg2);
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 resultobj = SWIG_Py_Void();
13028 return resultobj;
13029fail:
13030 return NULL;
13031}
13032
13033
13034SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13035 PyObject *resultobj = 0;
13036 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13037 wxFontStyle arg2 ;
13038 void *argp1 = 0 ;
13039 int res1 = 0 ;
13040 int val2 ;
13041 int ecode2 = 0 ;
13042 PyObject * obj0 = 0 ;
13043 PyObject * obj1 = 0 ;
13044 char * kwnames[] = {
13045 (char *) "self",(char *) "style", NULL
13046 };
13047
13048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13050 if (!SWIG_IsOK(res1)) {
13051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13052 }
13053 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13054 ecode2 = SWIG_AsVal_int(obj1, &val2);
13055 if (!SWIG_IsOK(ecode2)) {
13056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13057 }
13058 arg2 = static_cast< wxFontStyle >(val2);
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 (arg1)->SetStyle(arg2);
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = SWIG_Py_Void();
13066 return resultobj;
13067fail:
13068 return NULL;
13069}
13070
13071
13072SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13075 wxFontWeight arg2 ;
13076 void *argp1 = 0 ;
13077 int res1 = 0 ;
13078 int val2 ;
13079 int ecode2 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char * kwnames[] = {
13083 (char *) "self",(char *) "weight", NULL
13084 };
13085
13086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13088 if (!SWIG_IsOK(res1)) {
13089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13090 }
13091 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13092 ecode2 = SWIG_AsVal_int(obj1, &val2);
13093 if (!SWIG_IsOK(ecode2)) {
13094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13095 }
13096 arg2 = static_cast< wxFontWeight >(val2);
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 (arg1)->SetWeight(arg2);
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_Py_Void();
13104 return resultobj;
13105fail:
13106 return NULL;
13107}
13108
13109
13110SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj = 0;
13112 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13113 bool arg2 ;
13114 void *argp1 = 0 ;
13115 int res1 = 0 ;
13116 bool val2 ;
13117 int ecode2 = 0 ;
13118 PyObject * obj0 = 0 ;
13119 PyObject * obj1 = 0 ;
13120 char * kwnames[] = {
13121 (char *) "self",(char *) "underlined", NULL
13122 };
13123
13124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13126 if (!SWIG_IsOK(res1)) {
13127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13128 }
13129 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13130 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13131 if (!SWIG_IsOK(ecode2)) {
13132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13133 }
13134 arg2 = static_cast< bool >(val2);
13135 {
13136 PyThreadState* __tstate = wxPyBeginAllowThreads();
13137 (arg1)->SetUnderlined(arg2);
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 resultobj = SWIG_Py_Void();
13142 return resultobj;
13143fail:
13144 return NULL;
13145}
13146
13147
13148SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13149 PyObject *resultobj = 0;
13150 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13151 wxString arg2 ;
704eda0c 13152 bool result;
554f62e9
RD
13153 void *argp1 = 0 ;
13154 int res1 = 0 ;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 char * kwnames[] = {
13158 (char *) "self",(char *) "facename", NULL
13159 };
13160
13161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13163 if (!SWIG_IsOK(res1)) {
13164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13165 }
13166 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13167 {
13168 wxString* sptr = wxString_in_helper(obj1);
13169 if (sptr == NULL) SWIG_fail;
13170 arg2 = *sptr;
13171 delete sptr;
13172 }
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13175 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
704eda0c
RD
13179 {
13180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13181 }
554f62e9
RD
13182 return resultobj;
13183fail:
13184 return NULL;
13185}
13186
13187
13188SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj = 0;
13190 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13191 wxFontFamily arg2 ;
13192 void *argp1 = 0 ;
13193 int res1 = 0 ;
13194 int val2 ;
13195 int ecode2 = 0 ;
13196 PyObject * obj0 = 0 ;
13197 PyObject * obj1 = 0 ;
13198 char * kwnames[] = {
13199 (char *) "self",(char *) "family", NULL
13200 };
13201
13202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13204 if (!SWIG_IsOK(res1)) {
13205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13206 }
13207 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13208 ecode2 = SWIG_AsVal_int(obj1, &val2);
13209 if (!SWIG_IsOK(ecode2)) {
13210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13211 }
13212 arg2 = static_cast< wxFontFamily >(val2);
13213 {
13214 PyThreadState* __tstate = wxPyBeginAllowThreads();
13215 (arg1)->SetFamily(arg2);
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
13219 resultobj = SWIG_Py_Void();
13220 return resultobj;
13221fail:
13222 return NULL;
13223}
13224
13225
13226SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj = 0;
13228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13229 wxFontEncoding arg2 ;
13230 void *argp1 = 0 ;
13231 int res1 = 0 ;
13232 int val2 ;
13233 int ecode2 = 0 ;
13234 PyObject * obj0 = 0 ;
13235 PyObject * obj1 = 0 ;
13236 char * kwnames[] = {
13237 (char *) "self",(char *) "encoding", NULL
13238 };
13239
13240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13242 if (!SWIG_IsOK(res1)) {
13243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13244 }
13245 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13246 ecode2 = SWIG_AsVal_int(obj1, &val2);
13247 if (!SWIG_IsOK(ecode2)) {
13248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13249 }
13250 arg2 = static_cast< wxFontEncoding >(val2);
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 (arg1)->SetEncoding(arg2);
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 resultobj = SWIG_Py_Void();
13258 return resultobj;
13259fail:
13260 return NULL;
13261}
13262
13263
13264SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13265 PyObject *resultobj = 0;
13266 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13267 wxString *arg2 = 0 ;
13268 bool result;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 bool temp2 = false ;
13272 PyObject * obj0 = 0 ;
13273 PyObject * obj1 = 0 ;
13274 char * kwnames[] = {
13275 (char *) "self",(char *) "s", NULL
13276 };
13277
13278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13280 if (!SWIG_IsOK(res1)) {
13281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13282 }
13283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13284 {
13285 arg2 = wxString_in_helper(obj1);
13286 if (arg2 == NULL) SWIG_fail;
13287 temp2 = true;
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 {
13296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13297 }
13298 {
13299 if (temp2)
13300 delete arg2;
13301 }
13302 return resultobj;
13303fail:
13304 {
13305 if (temp2)
13306 delete arg2;
13307 }
13308 return NULL;
d55e5bfc
RD
13309}
13310
13311
554f62e9
RD
13312SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13313 PyObject *resultobj = 0;
13314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13315 wxString result;
13316 void *argp1 = 0 ;
13317 int res1 = 0 ;
13318 PyObject *swig_obj[1] ;
13319
13320 if (!args) SWIG_fail;
13321 swig_obj[0] = args;
13322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13323 if (!SWIG_IsOK(res1)) {
13324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13325 }
13326 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 result = ((wxNativeFontInfo const *)arg1)->ToString();
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 {
13334#if wxUSE_UNICODE
13335 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13336#else
13337 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13338#endif
13339 }
13340 return resultobj;
13341fail:
13342 return NULL;
d55e5bfc
RD
13343}
13344
13345
554f62e9
RD
13346SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13347 PyObject *resultobj = 0;
13348 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13349 wxString result;
13350 void *argp1 = 0 ;
13351 int res1 = 0 ;
13352 PyObject *swig_obj[1] ;
13353
13354 if (!args) SWIG_fail;
13355 swig_obj[0] = args;
13356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13357 if (!SWIG_IsOK(res1)) {
13358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13359 }
13360 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 result = wxNativeFontInfo___str__(arg1);
13364 wxPyEndAllowThreads(__tstate);
13365 if (PyErr_Occurred()) SWIG_fail;
13366 }
13367 {
13368#if wxUSE_UNICODE
13369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13370#else
13371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13372#endif
13373 }
13374 return resultobj;
13375fail:
13376 return NULL;
13377}
13378
13379
13380SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13381 PyObject *resultobj = 0;
13382 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13383 wxString *arg2 = 0 ;
13384 bool result;
13385 void *argp1 = 0 ;
13386 int res1 = 0 ;
13387 bool temp2 = false ;
13388 PyObject * obj0 = 0 ;
13389 PyObject * obj1 = 0 ;
13390 char * kwnames[] = {
13391 (char *) "self",(char *) "s", NULL
13392 };
13393
13394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13396 if (!SWIG_IsOK(res1)) {
13397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13398 }
13399 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13400 {
13401 arg2 = wxString_in_helper(obj1);
13402 if (arg2 == NULL) SWIG_fail;
13403 temp2 = true;
13404 }
13405 {
13406 PyThreadState* __tstate = wxPyBeginAllowThreads();
13407 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13408 wxPyEndAllowThreads(__tstate);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 {
13412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13413 }
13414 {
13415 if (temp2)
13416 delete arg2;
13417 }
13418 return resultobj;
13419fail:
13420 {
13421 if (temp2)
13422 delete arg2;
13423 }
13424 return NULL;
a2569024
RD
13425}
13426
13427
554f62e9
RD
13428SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13429 PyObject *resultobj = 0;
13430 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13431 wxString result;
13432 void *argp1 = 0 ;
13433 int res1 = 0 ;
13434 PyObject *swig_obj[1] ;
13435
13436 if (!args) SWIG_fail;
13437 swig_obj[0] = args;
13438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13439 if (!SWIG_IsOK(res1)) {
13440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13441 }
13442 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 {
13450#if wxUSE_UNICODE
13451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13452#else
13453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13454#endif
13455 }
13456 return resultobj;
13457fail:
13458 return NULL;
d55e5bfc
RD
13459}
13460
13461
554f62e9
RD
13462SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13463 PyObject *obj;
13464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13465 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13466 return SWIG_Py_Void();
d55e5bfc
RD
13467}
13468
554f62e9
RD
13469SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13470 return SWIG_Python_InitShadowInstance(args);
13471}
d55e5bfc 13472
554f62e9
RD
13473SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13474 PyObject *resultobj = 0;
13475 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13476 wxString *arg2 = (wxString *) 0 ;
13477 void *argp1 = 0 ;
13478 int res1 = 0 ;
13479 bool temp2 = false ;
13480 PyObject *swig_obj[2] ;
13481
13482 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13484 if (!SWIG_IsOK(res1)) {
13485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13486 }
13487 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13488 {
13489 arg2 = wxString_in_helper(swig_obj[1]);
13490 if (arg2 == NULL) SWIG_fail;
13491 temp2 = true;
13492 }
13493 if (arg1) (arg1)->facename = *arg2;
13494
13495 resultobj = SWIG_Py_Void();
13496 {
13497 if (temp2)
13498 delete arg2;
13499 }
13500 return resultobj;
13501fail:
13502 {
13503 if (temp2)
13504 delete arg2;
13505 }
13506 return NULL;
d55e5bfc
RD
13507}
13508
13509
554f62e9
RD
13510SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13511 PyObject *resultobj = 0;
13512 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13513 wxString *result = 0 ;
13514 void *argp1 = 0 ;
13515 int res1 = 0 ;
13516 PyObject *swig_obj[1] ;
13517
13518 if (!args) SWIG_fail;
13519 swig_obj[0] = args;
13520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13521 if (!SWIG_IsOK(res1)) {
13522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13523 }
13524 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13525 result = (wxString *)& ((arg1)->facename);
13526 {
13527#if wxUSE_UNICODE
13528 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13529#else
13530 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13531#endif
13532 }
13533 return resultobj;
13534fail:
13535 return NULL;
d55e5bfc
RD
13536}
13537
13538
554f62e9
RD
13539SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13540 PyObject *resultobj = 0;
13541 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13542 wxFontEncoding arg2 ;
13543 void *argp1 = 0 ;
13544 int res1 = 0 ;
13545 int val2 ;
13546 int ecode2 = 0 ;
13547 PyObject *swig_obj[2] ;
13548
13549 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13553 }
13554 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13555 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13556 if (!SWIG_IsOK(ecode2)) {
13557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13558 }
13559 arg2 = static_cast< wxFontEncoding >(val2);
13560 if (arg1) (arg1)->encoding = arg2;
13561
13562 resultobj = SWIG_Py_Void();
13563 return resultobj;
13564fail:
13565 return NULL;
d55e5bfc
RD
13566}
13567
13568
554f62e9
RD
13569SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13570 PyObject *resultobj = 0;
13571 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13572 wxFontEncoding result;
13573 void *argp1 = 0 ;
13574 int res1 = 0 ;
13575 PyObject *swig_obj[1] ;
13576
13577 if (!args) SWIG_fail;
13578 swig_obj[0] = args;
13579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13580 if (!SWIG_IsOK(res1)) {
13581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13582 }
13583 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13584 result = (wxFontEncoding) ((arg1)->encoding);
13585 resultobj = SWIG_From_int(static_cast< int >(result));
13586 return resultobj;
13587fail:
13588 return NULL;
d55e5bfc
RD
13589}
13590
13591
554f62e9
RD
13592SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13593 PyObject *resultobj = 0;
13594 wxNativeEncodingInfo *result = 0 ;
13595
13596 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13597 {
13598 PyThreadState* __tstate = wxPyBeginAllowThreads();
13599 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13600 wxPyEndAllowThreads(__tstate);
13601 if (PyErr_Occurred()) SWIG_fail;
13602 }
13603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13604 return resultobj;
13605fail:
13606 return NULL;
d55e5bfc
RD
13607}
13608
13609
554f62e9
RD
13610SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13611 PyObject *resultobj = 0;
13612 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13613 void *argp1 = 0 ;
13614 int res1 = 0 ;
13615 PyObject *swig_obj[1] ;
13616
13617 if (!args) SWIG_fail;
13618 swig_obj[0] = args;
13619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13620 if (!SWIG_IsOK(res1)) {
13621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13622 }
13623 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
13626 delete arg1;
d55e5bfc 13627
554f62e9
RD
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 resultobj = SWIG_Py_Void();
13632 return resultobj;
13633fail:
13634 return NULL;
13635}
13636
13637
13638SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13639 PyObject *resultobj = 0;
13640 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13641 wxString *arg2 = 0 ;
13642 bool result;
13643 void *argp1 = 0 ;
13644 int res1 = 0 ;
13645 bool temp2 = false ;
13646 PyObject * obj0 = 0 ;
13647 PyObject * obj1 = 0 ;
13648 char * kwnames[] = {
13649 (char *) "self",(char *) "s", NULL
13650 };
13651
13652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13654 if (!SWIG_IsOK(res1)) {
13655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13656 }
13657 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13658 {
13659 arg2 = wxString_in_helper(obj1);
13660 if (arg2 == NULL) SWIG_fail;
13661 temp2 = true;
13662 }
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 {
13670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13671 }
13672 {
13673 if (temp2)
13674 delete arg2;
13675 }
13676 return resultobj;
13677fail:
13678 {
13679 if (temp2)
13680 delete arg2;
13681 }
13682 return NULL;
d55e5bfc
RD
13683}
13684
13685
554f62e9
RD
13686SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13687 PyObject *resultobj = 0;
13688 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13689 wxString result;
13690 void *argp1 = 0 ;
13691 int res1 = 0 ;
13692 PyObject *swig_obj[1] ;
13693
13694 if (!args) SWIG_fail;
13695 swig_obj[0] = args;
13696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13697 if (!SWIG_IsOK(res1)) {
13698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13699 }
13700 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13701 {
13702 PyThreadState* __tstate = wxPyBeginAllowThreads();
13703 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13704 wxPyEndAllowThreads(__tstate);
13705 if (PyErr_Occurred()) SWIG_fail;
13706 }
13707 {
13708#if wxUSE_UNICODE
13709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13710#else
13711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13712#endif
13713 }
13714 return resultobj;
13715fail:
13716 return NULL;
d55e5bfc
RD
13717}
13718
13719
554f62e9
RD
13720SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13721 PyObject *obj;
13722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13723 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13724 return SWIG_Py_Void();
d55e5bfc
RD
13725}
13726
554f62e9
RD
13727SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13728 return SWIG_Python_InitShadowInstance(args);
13729}
d55e5bfc 13730
554f62e9
RD
13731SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj = 0;
13733 wxFontEncoding arg1 ;
13734 wxNativeEncodingInfo *result = 0 ;
13735 int val1 ;
13736 int ecode1 = 0 ;
13737 PyObject * obj0 = 0 ;
13738 char * kwnames[] = {
13739 (char *) "encoding", NULL
13740 };
13741
13742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13743 ecode1 = SWIG_AsVal_int(obj0, &val1);
13744 if (!SWIG_IsOK(ecode1)) {
13745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13746 }
13747 arg1 = static_cast< wxFontEncoding >(val1);
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13755 return resultobj;
13756fail:
13757 return NULL;
13758}
13759
13760
13761SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13762 PyObject *resultobj = 0;
13763 wxNativeEncodingInfo *arg1 = 0 ;
13764 bool result;
13765 void *argp1 = 0 ;
13766 int res1 = 0 ;
13767 PyObject * obj0 = 0 ;
13768 char * kwnames[] = {
13769 (char *) "info", NULL
13770 };
13771
13772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13773 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13774 if (!SWIG_IsOK(res1)) {
13775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13776 }
13777 if (!argp1) {
13778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13779 }
13780 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13781 {
13782 PyThreadState* __tstate = wxPyBeginAllowThreads();
13783 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13784 wxPyEndAllowThreads(__tstate);
13785 if (PyErr_Occurred()) SWIG_fail;
13786 }
13787 {
13788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13789 }
13790 return resultobj;
13791fail:
13792 return NULL;
d55e5bfc
RD
13793}
13794
13795
554f62e9
RD
13796SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13797 PyObject *resultobj = 0;
13798 wxFontMapper *result = 0 ;
13799
13800 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
13803 result = (wxFontMapper *)new wxFontMapper();
13804 wxPyEndAllowThreads(__tstate);
13805 if (PyErr_Occurred()) SWIG_fail;
13806 }
13807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13808 return resultobj;
13809fail:
13810 return NULL;
d55e5bfc
RD
13811}
13812
13813
554f62e9
RD
13814SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13815 PyObject *resultobj = 0;
13816 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13817 void *argp1 = 0 ;
13818 int res1 = 0 ;
13819 PyObject *swig_obj[1] ;
13820
13821 if (!args) SWIG_fail;
13822 swig_obj[0] = args;
13823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13824 if (!SWIG_IsOK(res1)) {
13825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13826 }
13827 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 delete arg1;
d55e5bfc 13831
554f62e9
RD
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 resultobj = SWIG_Py_Void();
13836 return resultobj;
13837fail:
13838 return NULL;
d55e5bfc
RD
13839}
13840
13841
554f62e9
RD
13842SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13843 PyObject *resultobj = 0;
13844 wxFontMapper *result = 0 ;
13845
13846 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (wxFontMapper *)wxFontMapper::Get();
13850 wxPyEndAllowThreads(__tstate);
13851 if (PyErr_Occurred()) SWIG_fail;
13852 }
13853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13854 return resultobj;
13855fail:
13856 return NULL;
13857}
13858
13859
13860SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13861 PyObject *resultobj = 0;
13862 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13863 wxFontMapper *result = 0 ;
13864 void *argp1 = 0 ;
13865 int res1 = 0 ;
13866 PyObject * obj0 = 0 ;
13867 char * kwnames[] = {
13868 (char *) "mapper", NULL
13869 };
13870
13871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13873 if (!SWIG_IsOK(res1)) {
13874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13875 }
13876 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13884 return resultobj;
13885fail:
13886 return NULL;
13887}
13888
13889
13890SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13891 PyObject *resultobj = 0;
13892 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13893 wxString *arg2 = 0 ;
13894 bool arg3 = (bool) true ;
13895 wxFontEncoding result;
13896 void *argp1 = 0 ;
13897 int res1 = 0 ;
13898 bool temp2 = false ;
13899 bool val3 ;
13900 int ecode3 = 0 ;
13901 PyObject * obj0 = 0 ;
13902 PyObject * obj1 = 0 ;
13903 PyObject * obj2 = 0 ;
13904 char * kwnames[] = {
13905 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13906 };
13907
13908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13910 if (!SWIG_IsOK(res1)) {
13911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13912 }
13913 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13914 {
13915 arg2 = wxString_in_helper(obj1);
13916 if (arg2 == NULL) SWIG_fail;
13917 temp2 = true;
13918 }
13919 if (obj2) {
13920 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13921 if (!SWIG_IsOK(ecode3)) {
13922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13923 }
13924 arg3 = static_cast< bool >(val3);
13925 }
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_From_int(static_cast< int >(result));
13933 {
13934 if (temp2)
13935 delete arg2;
13936 }
13937 return resultobj;
13938fail:
13939 {
13940 if (temp2)
13941 delete arg2;
13942 }
13943 return NULL;
d55e5bfc
RD
13944}
13945
13946
554f62e9
RD
13947SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13948 PyObject *resultobj = 0;
13949 size_t result;
13950
13951 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13952 {
13953 PyThreadState* __tstate = wxPyBeginAllowThreads();
13954 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13955 wxPyEndAllowThreads(__tstate);
13956 if (PyErr_Occurred()) SWIG_fail;
13957 }
13958 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13959 return resultobj;
13960fail:
13961 return NULL;
13962}
13963
13964
13965SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13966 PyObject *resultobj = 0;
13967 size_t arg1 ;
13968 wxFontEncoding result;
13969 size_t val1 ;
13970 int ecode1 = 0 ;
13971 PyObject * obj0 = 0 ;
13972 char * kwnames[] = {
13973 (char *) "n", NULL
13974 };
13975
13976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13977 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13978 if (!SWIG_IsOK(ecode1)) {
13979 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13980 }
13981 arg1 = static_cast< size_t >(val1);
13982 {
13983 PyThreadState* __tstate = wxPyBeginAllowThreads();
13984 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = SWIG_From_int(static_cast< int >(result));
13989 return resultobj;
13990fail:
13991 return NULL;
13992}
13993
13994
13995SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13996 PyObject *resultobj = 0;
13997 wxFontEncoding arg1 ;
13998 wxString result;
13999 int val1 ;
14000 int ecode1 = 0 ;
14001 PyObject * obj0 = 0 ;
14002 char * kwnames[] = {
14003 (char *) "encoding", NULL
14004 };
14005
14006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14007 ecode1 = SWIG_AsVal_int(obj0, &val1);
14008 if (!SWIG_IsOK(ecode1)) {
14009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14010 }
14011 arg1 = static_cast< wxFontEncoding >(val1);
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = wxFontMapper::GetEncodingName(arg1);
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 {
14019#if wxUSE_UNICODE
14020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14021#else
14022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14023#endif
14024 }
14025 return resultobj;
14026fail:
14027 return NULL;
d55e5bfc
RD
14028}
14029
14030
554f62e9
RD
14031SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14032 PyObject *resultobj = 0;
14033 wxFontEncoding arg1 ;
14034 wxString result;
14035 int val1 ;
14036 int ecode1 = 0 ;
14037 PyObject * obj0 = 0 ;
14038 char * kwnames[] = {
14039 (char *) "encoding", NULL
14040 };
14041
14042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14043 ecode1 = SWIG_AsVal_int(obj0, &val1);
14044 if (!SWIG_IsOK(ecode1)) {
14045 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14046 }
14047 arg1 = static_cast< wxFontEncoding >(val1);
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 result = wxFontMapper::GetEncodingDescription(arg1);
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 {
14055#if wxUSE_UNICODE
14056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14057#else
14058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14059#endif
14060 }
14061 return resultobj;
14062fail:
14063 return NULL;
d55e5bfc
RD
14064}
14065
14066
554f62e9
RD
14067SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14068 PyObject *resultobj = 0;
14069 wxString *arg1 = 0 ;
14070 wxFontEncoding result;
14071 bool temp1 = false ;
14072 PyObject * obj0 = 0 ;
14073 char * kwnames[] = {
14074 (char *) "name", NULL
14075 };
14076
14077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14078 {
14079 arg1 = wxString_in_helper(obj0);
14080 if (arg1 == NULL) SWIG_fail;
14081 temp1 = true;
14082 }
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 resultobj = SWIG_From_int(static_cast< int >(result));
14090 {
14091 if (temp1)
14092 delete arg1;
14093 }
14094 return resultobj;
14095fail:
14096 {
14097 if (temp1)
14098 delete arg1;
14099 }
14100 return NULL;
d55e5bfc
RD
14101}
14102
14103
554f62e9
RD
14104SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14105 PyObject *resultobj = 0;
14106 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14107 wxString *arg2 = 0 ;
14108 void *argp1 = 0 ;
14109 int res1 = 0 ;
14110 bool temp2 = false ;
14111 PyObject * obj0 = 0 ;
14112 PyObject * obj1 = 0 ;
14113 char * kwnames[] = {
14114 (char *) "self",(char *) "prefix", NULL
14115 };
14116
14117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14119 if (!SWIG_IsOK(res1)) {
14120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14121 }
14122 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14123 {
14124 arg2 = wxString_in_helper(obj1);
14125 if (arg2 == NULL) SWIG_fail;
14126 temp2 = true;
14127 }
14128 {
14129 PyThreadState* __tstate = wxPyBeginAllowThreads();
14130 (arg1)->SetConfigPath((wxString const &)*arg2);
14131 wxPyEndAllowThreads(__tstate);
14132 if (PyErr_Occurred()) SWIG_fail;
14133 }
14134 resultobj = SWIG_Py_Void();
14135 {
14136 if (temp2)
14137 delete arg2;
14138 }
14139 return resultobj;
14140fail:
14141 {
14142 if (temp2)
14143 delete arg2;
14144 }
14145 return NULL;
d55e5bfc
RD
14146}
14147
14148
554f62e9
RD
14149SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14150 PyObject *resultobj = 0;
14151 wxString result;
14152
14153 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = wxFontMapper::GetDefaultConfigPath();
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 {
14161#if wxUSE_UNICODE
14162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14163#else
14164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14165#endif
14166 }
14167 return resultobj;
14168fail:
14169 return NULL;
14170}
14171
14172
14173SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14174 PyObject *resultobj = 0;
14175 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14176 wxFontEncoding arg2 ;
14177 wxString const &arg3_defvalue = wxPyEmptyString ;
14178 wxString *arg3 = (wxString *) &arg3_defvalue ;
14179 bool arg4 = (bool) true ;
14180 PyObject *result = 0 ;
14181 void *argp1 = 0 ;
14182 int res1 = 0 ;
14183 int val2 ;
14184 int ecode2 = 0 ;
14185 bool temp3 = false ;
14186 bool val4 ;
14187 int ecode4 = 0 ;
14188 PyObject * obj0 = 0 ;
14189 PyObject * obj1 = 0 ;
14190 PyObject * obj2 = 0 ;
14191 PyObject * obj3 = 0 ;
14192 char * kwnames[] = {
14193 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14194 };
14195
14196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14198 if (!SWIG_IsOK(res1)) {
14199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14200 }
14201 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14202 ecode2 = SWIG_AsVal_int(obj1, &val2);
14203 if (!SWIG_IsOK(ecode2)) {
14204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14205 }
14206 arg2 = static_cast< wxFontEncoding >(val2);
14207 if (obj2) {
d55e5bfc 14208 {
554f62e9
RD
14209 arg3 = wxString_in_helper(obj2);
14210 if (arg3 == NULL) SWIG_fail;
14211 temp3 = true;
d55e5bfc 14212 }
554f62e9
RD
14213 }
14214 if (obj3) {
14215 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14216 if (!SWIG_IsOK(ecode4)) {
14217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14218 }
14219 arg4 = static_cast< bool >(val4);
14220 }
14221 {
14222 PyThreadState* __tstate = wxPyBeginAllowThreads();
14223 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14224 wxPyEndAllowThreads(__tstate);
14225 if (PyErr_Occurred()) SWIG_fail;
14226 }
14227 resultobj = result;
14228 {
14229 if (temp3)
14230 delete arg3;
14231 }
14232 return resultobj;
14233fail:
14234 {
14235 if (temp3)
14236 delete arg3;
14237 }
14238 return NULL;
14239}
14240
14241
14242SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14243 PyObject *resultobj = 0;
14244 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14245 wxFontEncoding arg2 ;
14246 wxString const &arg3_defvalue = wxPyEmptyString ;
14247 wxString *arg3 = (wxString *) &arg3_defvalue ;
14248 bool result;
14249 void *argp1 = 0 ;
14250 int res1 = 0 ;
14251 int val2 ;
14252 int ecode2 = 0 ;
14253 bool temp3 = false ;
14254 PyObject * obj0 = 0 ;
14255 PyObject * obj1 = 0 ;
14256 PyObject * obj2 = 0 ;
14257 char * kwnames[] = {
14258 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14259 };
14260
14261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14263 if (!SWIG_IsOK(res1)) {
14264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14265 }
14266 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14267 ecode2 = SWIG_AsVal_int(obj1, &val2);
14268 if (!SWIG_IsOK(ecode2)) {
14269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14270 }
14271 arg2 = static_cast< wxFontEncoding >(val2);
14272 if (obj2) {
093d3ff1 14273 {
554f62e9
RD
14274 arg3 = wxString_in_helper(obj2);
14275 if (arg3 == NULL) SWIG_fail;
14276 temp3 = true;
d55e5bfc 14277 }
554f62e9
RD
14278 }
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14282 wxPyEndAllowThreads(__tstate);
14283 if (PyErr_Occurred()) SWIG_fail;
14284 }
14285 {
14286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14287 }
14288 {
14289 if (temp3)
14290 delete arg3;
14291 }
14292 return resultobj;
14293fail:
14294 {
14295 if (temp3)
14296 delete arg3;
14297 }
14298 return NULL;
14299}
14300
14301
14302SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14303 PyObject *resultobj = 0;
14304 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14305 wxWindow *arg2 = (wxWindow *) 0 ;
14306 void *argp1 = 0 ;
14307 int res1 = 0 ;
14308 void *argp2 = 0 ;
14309 int res2 = 0 ;
14310 PyObject * obj0 = 0 ;
14311 PyObject * obj1 = 0 ;
14312 char * kwnames[] = {
14313 (char *) "self",(char *) "parent", NULL
14314 };
14315
14316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14318 if (!SWIG_IsOK(res1)) {
14319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14320 }
14321 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14322 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14323 if (!SWIG_IsOK(res2)) {
14324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14325 }
14326 arg2 = reinterpret_cast< wxWindow * >(argp2);
14327 {
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 (arg1)->SetDialogParent(arg2);
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 resultobj = SWIG_Py_Void();
14334 return resultobj;
14335fail:
14336 return NULL;
14337}
14338
14339
14340SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj = 0;
14342 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14343 wxString *arg2 = 0 ;
14344 void *argp1 = 0 ;
14345 int res1 = 0 ;
14346 bool temp2 = false ;
14347 PyObject * obj0 = 0 ;
14348 PyObject * obj1 = 0 ;
14349 char * kwnames[] = {
14350 (char *) "self",(char *) "title", NULL
14351 };
14352
14353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14355 if (!SWIG_IsOK(res1)) {
14356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14357 }
14358 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14359 {
14360 arg2 = wxString_in_helper(obj1);
14361 if (arg2 == NULL) SWIG_fail;
14362 temp2 = true;
14363 }
14364 {
14365 PyThreadState* __tstate = wxPyBeginAllowThreads();
14366 (arg1)->SetDialogTitle((wxString const &)*arg2);
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 resultobj = SWIG_Py_Void();
14371 {
14372 if (temp2)
14373 delete arg2;
14374 }
14375 return resultobj;
14376fail:
14377 {
14378 if (temp2)
14379 delete arg2;
14380 }
14381 return NULL;
14382}
14383
14384
14385SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14386 PyObject *obj;
14387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14388 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14389 return SWIG_Py_Void();
14390}
14391
14392SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14393 return SWIG_Python_InitShadowInstance(args);
14394}
14395
14396SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14397 PyObject *resultobj = 0;
14398 int arg1 ;
14399 int arg2 ;
14400 int arg3 ;
14401 int arg4 ;
14402 bool arg5 = (bool) false ;
14403 wxString const &arg6_defvalue = wxPyEmptyString ;
14404 wxString *arg6 = (wxString *) &arg6_defvalue ;
14405 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14406 wxFont *result = 0 ;
14407 int val1 ;
14408 int ecode1 = 0 ;
14409 int val2 ;
14410 int ecode2 = 0 ;
14411 int val3 ;
14412 int ecode3 = 0 ;
14413 int val4 ;
14414 int ecode4 = 0 ;
14415 bool val5 ;
14416 int ecode5 = 0 ;
14417 bool temp6 = false ;
14418 int val7 ;
14419 int ecode7 = 0 ;
14420 PyObject * obj0 = 0 ;
14421 PyObject * obj1 = 0 ;
14422 PyObject * obj2 = 0 ;
14423 PyObject * obj3 = 0 ;
14424 PyObject * obj4 = 0 ;
14425 PyObject * obj5 = 0 ;
14426 PyObject * obj6 = 0 ;
14427 char * kwnames[] = {
14428 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14429 };
14430
14431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14432 ecode1 = SWIG_AsVal_int(obj0, &val1);
14433 if (!SWIG_IsOK(ecode1)) {
14434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14435 }
14436 arg1 = static_cast< int >(val1);
14437 ecode2 = SWIG_AsVal_int(obj1, &val2);
14438 if (!SWIG_IsOK(ecode2)) {
14439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14440 }
14441 arg2 = static_cast< int >(val2);
14442 ecode3 = SWIG_AsVal_int(obj2, &val3);
14443 if (!SWIG_IsOK(ecode3)) {
14444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14445 }
14446 arg3 = static_cast< int >(val3);
14447 ecode4 = SWIG_AsVal_int(obj3, &val4);
14448 if (!SWIG_IsOK(ecode4)) {
14449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14450 }
14451 arg4 = static_cast< int >(val4);
14452 if (obj4) {
14453 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14454 if (!SWIG_IsOK(ecode5)) {
14455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14456 }
14457 arg5 = static_cast< bool >(val5);
14458 }
14459 if (obj5) {
d55e5bfc 14460 {
554f62e9
RD
14461 arg6 = wxString_in_helper(obj5);
14462 if (arg6 == NULL) SWIG_fail;
14463 temp6 = true;
d55e5bfc 14464 }
554f62e9
RD
14465 }
14466 if (obj6) {
14467 ecode7 = SWIG_AsVal_int(obj6, &val7);
14468 if (!SWIG_IsOK(ecode7)) {
14469 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14470 }
14471 arg7 = static_cast< wxFontEncoding >(val7);
14472 }
14473 {
14474 if (!wxPyCheckForApp()) SWIG_fail;
14475 PyThreadState* __tstate = wxPyBeginAllowThreads();
14476 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14481 {
14482 if (temp6)
14483 delete arg6;
14484 }
14485 return resultobj;
14486fail:
14487 {
14488 if (temp6)
14489 delete arg6;
14490 }
14491 return NULL;
d55e5bfc
RD
14492}
14493
14494
554f62e9
RD
14495SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14496 PyObject *resultobj = 0;
14497 wxFont *arg1 = (wxFont *) 0 ;
14498 void *argp1 = 0 ;
14499 int res1 = 0 ;
14500 PyObject *swig_obj[1] ;
14501
14502 if (!args) SWIG_fail;
14503 swig_obj[0] = args;
14504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14505 if (!SWIG_IsOK(res1)) {
14506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14507 }
14508 arg1 = reinterpret_cast< wxFont * >(argp1);
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 delete arg1;
d55e5bfc 14512
554f62e9
RD
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_Py_Void();
14517 return resultobj;
14518fail:
14519 return NULL;
14520}
14521
14522
14523SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14524 PyObject *resultobj = 0;
14525 wxNativeFontInfo *arg1 = 0 ;
14526 wxFont *result = 0 ;
14527 void *argp1 = 0 ;
14528 int res1 = 0 ;
14529 PyObject * obj0 = 0 ;
14530 char * kwnames[] = {
14531 (char *) "info", NULL
14532 };
14533
14534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14536 if (!SWIG_IsOK(res1)) {
14537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14538 }
14539 if (!argp1) {
14540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14541 }
14542 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14543 {
14544 if (!wxPyCheckForApp()) SWIG_fail;
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14547 wxPyEndAllowThreads(__tstate);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14551 return resultobj;
14552fail:
14553 return NULL;
d55e5bfc
RD
14554}
14555
14556
554f62e9
RD
14557SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14558 PyObject *resultobj = 0;
14559 wxString *arg1 = 0 ;
14560 wxFont *result = 0 ;
14561 bool temp1 = false ;
14562 PyObject * obj0 = 0 ;
14563 char * kwnames[] = {
14564 (char *) "info", NULL
14565 };
14566
14567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14568 {
14569 arg1 = wxString_in_helper(obj0);
14570 if (arg1 == NULL) SWIG_fail;
14571 temp1 = true;
14572 }
14573 {
14574 if (!wxPyCheckForApp()) SWIG_fail;
14575 PyThreadState* __tstate = wxPyBeginAllowThreads();
14576 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14581 {
14582 if (temp1)
14583 delete arg1;
14584 }
14585 return resultobj;
14586fail:
14587 {
14588 if (temp1)
14589 delete arg1;
14590 }
14591 return NULL;
14592}
14593
14594
14595SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14596 PyObject *resultobj = 0;
14597 int arg1 ;
14598 wxFontFamily arg2 ;
14599 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14600 wxString const &arg4_defvalue = wxPyEmptyString ;
14601 wxString *arg4 = (wxString *) &arg4_defvalue ;
14602 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14603 wxFont *result = 0 ;
14604 int val1 ;
14605 int ecode1 = 0 ;
14606 int val2 ;
14607 int ecode2 = 0 ;
14608 int val3 ;
14609 int ecode3 = 0 ;
14610 bool temp4 = false ;
14611 int val5 ;
14612 int ecode5 = 0 ;
14613 PyObject * obj0 = 0 ;
14614 PyObject * obj1 = 0 ;
14615 PyObject * obj2 = 0 ;
14616 PyObject * obj3 = 0 ;
14617 PyObject * obj4 = 0 ;
14618 char * kwnames[] = {
14619 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14620 };
14621
14622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14623 ecode1 = SWIG_AsVal_int(obj0, &val1);
14624 if (!SWIG_IsOK(ecode1)) {
14625 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14626 }
14627 arg1 = static_cast< int >(val1);
14628 ecode2 = SWIG_AsVal_int(obj1, &val2);
14629 if (!SWIG_IsOK(ecode2)) {
14630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14631 }
14632 arg2 = static_cast< wxFontFamily >(val2);
14633 if (obj2) {
14634 ecode3 = SWIG_AsVal_int(obj2, &val3);
14635 if (!SWIG_IsOK(ecode3)) {
14636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14637 }
14638 arg3 = static_cast< int >(val3);
14639 }
14640 if (obj3) {
d55e5bfc 14641 {
554f62e9
RD
14642 arg4 = wxString_in_helper(obj3);
14643 if (arg4 == NULL) SWIG_fail;
14644 temp4 = true;
d55e5bfc 14645 }
554f62e9
RD
14646 }
14647 if (obj4) {
14648 ecode5 = SWIG_AsVal_int(obj4, &val5);
14649 if (!SWIG_IsOK(ecode5)) {
14650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14651 }
14652 arg5 = static_cast< wxFontEncoding >(val5);
14653 }
14654 {
14655 if (!wxPyCheckForApp()) SWIG_fail;
14656 PyThreadState* __tstate = wxPyBeginAllowThreads();
14657 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14662 {
14663 if (temp4)
14664 delete arg4;
14665 }
14666 return resultobj;
14667fail:
14668 {
14669 if (temp4)
14670 delete arg4;
14671 }
14672 return NULL;
14673}
14674
14675
14676SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14677 PyObject *resultobj = 0;
14678 wxSize *arg1 = 0 ;
14679 int arg2 ;
14680 int arg3 ;
14681 int arg4 ;
14682 bool arg5 = (bool) false ;
14683 wxString const &arg6_defvalue = wxEmptyString ;
14684 wxString *arg6 = (wxString *) &arg6_defvalue ;
14685 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14686 wxFont *result = 0 ;
14687 wxSize temp1 ;
14688 int val2 ;
14689 int ecode2 = 0 ;
14690 int val3 ;
14691 int ecode3 = 0 ;
14692 int val4 ;
14693 int ecode4 = 0 ;
14694 bool val5 ;
14695 int ecode5 = 0 ;
14696 bool temp6 = false ;
14697 int val7 ;
14698 int ecode7 = 0 ;
14699 PyObject * obj0 = 0 ;
14700 PyObject * obj1 = 0 ;
14701 PyObject * obj2 = 0 ;
14702 PyObject * obj3 = 0 ;
14703 PyObject * obj4 = 0 ;
14704 PyObject * obj5 = 0 ;
14705 PyObject * obj6 = 0 ;
14706 char * kwnames[] = {
14707 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14708 };
14709
14710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14711 {
14712 arg1 = &temp1;
14713 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14714 }
14715 ecode2 = SWIG_AsVal_int(obj1, &val2);
14716 if (!SWIG_IsOK(ecode2)) {
14717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14718 }
14719 arg2 = static_cast< int >(val2);
14720 ecode3 = SWIG_AsVal_int(obj2, &val3);
14721 if (!SWIG_IsOK(ecode3)) {
14722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14723 }
14724 arg3 = static_cast< int >(val3);
14725 ecode4 = SWIG_AsVal_int(obj3, &val4);
14726 if (!SWIG_IsOK(ecode4)) {
14727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14728 }
14729 arg4 = static_cast< int >(val4);
14730 if (obj4) {
14731 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14732 if (!SWIG_IsOK(ecode5)) {
14733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14734 }
14735 arg5 = static_cast< bool >(val5);
14736 }
14737 if (obj5) {
d55e5bfc 14738 {
554f62e9
RD
14739 arg6 = wxString_in_helper(obj5);
14740 if (arg6 == NULL) SWIG_fail;
14741 temp6 = true;
d55e5bfc 14742 }
554f62e9
RD
14743 }
14744 if (obj6) {
14745 ecode7 = SWIG_AsVal_int(obj6, &val7);
14746 if (!SWIG_IsOK(ecode7)) {
14747 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14748 }
14749 arg7 = static_cast< wxFontEncoding >(val7);
14750 }
14751 {
14752 if (!wxPyCheckForApp()) SWIG_fail;
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
14754 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14759 {
14760 if (temp6)
14761 delete arg6;
14762 }
14763 return resultobj;
14764fail:
14765 {
14766 if (temp6)
14767 delete arg6;
14768 }
14769 return NULL;
14770}
14771
14772
14773SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14774 PyObject *resultobj = 0;
14775 wxSize *arg1 = 0 ;
14776 wxFontFamily arg2 ;
14777 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14778 wxString const &arg4_defvalue = wxEmptyString ;
14779 wxString *arg4 = (wxString *) &arg4_defvalue ;
14780 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14781 wxFont *result = 0 ;
14782 wxSize temp1 ;
14783 int val2 ;
14784 int ecode2 = 0 ;
14785 int val3 ;
14786 int ecode3 = 0 ;
14787 bool temp4 = false ;
14788 int val5 ;
14789 int ecode5 = 0 ;
14790 PyObject * obj0 = 0 ;
14791 PyObject * obj1 = 0 ;
14792 PyObject * obj2 = 0 ;
14793 PyObject * obj3 = 0 ;
14794 PyObject * obj4 = 0 ;
14795 char * kwnames[] = {
14796 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14797 };
14798
14799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14800 {
14801 arg1 = &temp1;
14802 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14803 }
14804 ecode2 = SWIG_AsVal_int(obj1, &val2);
14805 if (!SWIG_IsOK(ecode2)) {
14806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14807 }
14808 arg2 = static_cast< wxFontFamily >(val2);
14809 if (obj2) {
14810 ecode3 = SWIG_AsVal_int(obj2, &val3);
14811 if (!SWIG_IsOK(ecode3)) {
14812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14813 }
14814 arg3 = static_cast< int >(val3);
14815 }
14816 if (obj3) {
d55e5bfc 14817 {
554f62e9
RD
14818 arg4 = wxString_in_helper(obj3);
14819 if (arg4 == NULL) SWIG_fail;
14820 temp4 = true;
d55e5bfc 14821 }
554f62e9
RD
14822 }
14823 if (obj4) {
14824 ecode5 = SWIG_AsVal_int(obj4, &val5);
14825 if (!SWIG_IsOK(ecode5)) {
14826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14827 }
14828 arg5 = static_cast< wxFontEncoding >(val5);
14829 }
14830 {
14831 if (!wxPyCheckForApp()) SWIG_fail;
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14838 {
14839 if (temp4)
14840 delete arg4;
14841 }
14842 return resultobj;
14843fail:
14844 {
14845 if (temp4)
14846 delete arg4;
14847 }
14848 return NULL;
d55e5bfc
RD
14849}
14850
14851
b39fe951 14852SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14853 PyObject *resultobj = 0;
14854 wxFont *arg1 = (wxFont *) 0 ;
14855 bool result;
14856 void *argp1 = 0 ;
14857 int res1 = 0 ;
14858 PyObject *swig_obj[1] ;
14859
14860 if (!args) SWIG_fail;
14861 swig_obj[0] = args;
14862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14863 if (!SWIG_IsOK(res1)) {
b39fe951 14864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14865 }
14866 arg1 = reinterpret_cast< wxFont * >(argp1);
14867 {
14868 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14869 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 {
14874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14875 }
14876 return resultobj;
14877fail:
14878 return NULL;
14879}
14880
14881
14882SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj = 0;
14884 wxFont *arg1 = (wxFont *) 0 ;
14885 wxFont *arg2 = (wxFont *) 0 ;
14886 bool result;
14887 void *argp1 = 0 ;
14888 int res1 = 0 ;
14889 void *argp2 = 0 ;
14890 int res2 = 0 ;
14891 PyObject * obj0 = 0 ;
14892 PyObject * obj1 = 0 ;
14893 char * kwnames[] = {
14894 (char *) "self",(char *) "other", NULL
14895 };
14896
14897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14899 if (!SWIG_IsOK(res1)) {
14900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14901 }
14902 arg1 = reinterpret_cast< wxFont * >(argp1);
14903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14904 if (!SWIG_IsOK(res2)) {
14905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14906 }
14907 arg2 = reinterpret_cast< wxFont * >(argp2);
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 {
14915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14916 }
14917 return resultobj;
14918fail:
14919 return NULL;
14920}
14921
14922
14923SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj = 0;
14925 wxFont *arg1 = (wxFont *) 0 ;
14926 wxFont *arg2 = (wxFont *) 0 ;
14927 bool result;
14928 void *argp1 = 0 ;
14929 int res1 = 0 ;
14930 void *argp2 = 0 ;
14931 int res2 = 0 ;
14932 PyObject * obj0 = 0 ;
14933 PyObject * obj1 = 0 ;
14934 char * kwnames[] = {
14935 (char *) "self",(char *) "other", NULL
14936 };
14937
14938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14940 if (!SWIG_IsOK(res1)) {
14941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14942 }
14943 arg1 = reinterpret_cast< wxFont * >(argp1);
14944 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14945 if (!SWIG_IsOK(res2)) {
14946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14947 }
14948 arg2 = reinterpret_cast< wxFont * >(argp2);
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 {
14956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14957 }
14958 return resultobj;
14959fail:
14960 return NULL;
a2569024
RD
14961}
14962
14963
554f62e9
RD
14964SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14965 PyObject *resultobj = 0;
14966 wxFont *arg1 = (wxFont *) 0 ;
14967 int result;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 PyObject *swig_obj[1] ;
14971
14972 if (!args) SWIG_fail;
14973 swig_obj[0] = args;
14974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14975 if (!SWIG_IsOK(res1)) {
14976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14977 }
14978 arg1 = reinterpret_cast< wxFont * >(argp1);
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = (int)((wxFont const *)arg1)->GetPointSize();
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 resultobj = SWIG_From_int(static_cast< int >(result));
14986 return resultobj;
14987fail:
14988 return NULL;
d55e5bfc
RD
14989}
14990
14991
554f62e9
RD
14992SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14993 PyObject *resultobj = 0;
14994 wxFont *arg1 = (wxFont *) 0 ;
14995 wxSize result;
14996 void *argp1 = 0 ;
14997 int res1 = 0 ;
14998 PyObject *swig_obj[1] ;
14999
15000 if (!args) SWIG_fail;
15001 swig_obj[0] = args;
15002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15003 if (!SWIG_IsOK(res1)) {
15004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15005 }
15006 arg1 = reinterpret_cast< wxFont * >(argp1);
15007 {
15008 PyThreadState* __tstate = wxPyBeginAllowThreads();
15009 result = ((wxFont const *)arg1)->GetPixelSize();
15010 wxPyEndAllowThreads(__tstate);
15011 if (PyErr_Occurred()) SWIG_fail;
15012 }
15013 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15014 return resultobj;
15015fail:
15016 return NULL;
d55e5bfc
RD
15017}
15018
15019
554f62e9
RD
15020SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15021 PyObject *resultobj = 0;
15022 wxFont *arg1 = (wxFont *) 0 ;
15023 bool result;
15024 void *argp1 = 0 ;
15025 int res1 = 0 ;
15026 PyObject *swig_obj[1] ;
15027
15028 if (!args) SWIG_fail;
15029 swig_obj[0] = args;
15030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15031 if (!SWIG_IsOK(res1)) {
15032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15033 }
15034 arg1 = reinterpret_cast< wxFont * >(argp1);
15035 {
15036 PyThreadState* __tstate = wxPyBeginAllowThreads();
15037 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 {
15042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15043 }
15044 return resultobj;
15045fail:
15046 return NULL;
d55e5bfc
RD
15047}
15048
15049
554f62e9
RD
15050SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15051 PyObject *resultobj = 0;
15052 wxFont *arg1 = (wxFont *) 0 ;
15053 int result;
15054 void *argp1 = 0 ;
15055 int res1 = 0 ;
15056 PyObject *swig_obj[1] ;
15057
15058 if (!args) SWIG_fail;
15059 swig_obj[0] = args;
15060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15061 if (!SWIG_IsOK(res1)) {
15062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15063 }
15064 arg1 = reinterpret_cast< wxFont * >(argp1);
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 result = (int)((wxFont const *)arg1)->GetFamily();
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 resultobj = SWIG_From_int(static_cast< int >(result));
15072 return resultobj;
15073fail:
15074 return NULL;
d55e5bfc
RD
15075}
15076
15077
554f62e9
RD
15078SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15079 PyObject *resultobj = 0;
15080 wxFont *arg1 = (wxFont *) 0 ;
15081 int result;
15082 void *argp1 = 0 ;
15083 int res1 = 0 ;
15084 PyObject *swig_obj[1] ;
15085
15086 if (!args) SWIG_fail;
15087 swig_obj[0] = args;
15088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15089 if (!SWIG_IsOK(res1)) {
15090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15091 }
15092 arg1 = reinterpret_cast< wxFont * >(argp1);
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
15095 result = (int)((wxFont const *)arg1)->GetStyle();
15096 wxPyEndAllowThreads(__tstate);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
15099 resultobj = SWIG_From_int(static_cast< int >(result));
15100 return resultobj;
15101fail:
15102 return NULL;
d55e5bfc
RD
15103}
15104
15105
554f62e9
RD
15106SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15107 PyObject *resultobj = 0;
15108 wxFont *arg1 = (wxFont *) 0 ;
15109 int result;
15110 void *argp1 = 0 ;
15111 int res1 = 0 ;
15112 PyObject *swig_obj[1] ;
15113
15114 if (!args) SWIG_fail;
15115 swig_obj[0] = args;
15116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15117 if (!SWIG_IsOK(res1)) {
15118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15119 }
15120 arg1 = reinterpret_cast< wxFont * >(argp1);
15121 {
15122 PyThreadState* __tstate = wxPyBeginAllowThreads();
15123 result = (int)((wxFont const *)arg1)->GetWeight();
15124 wxPyEndAllowThreads(__tstate);
15125 if (PyErr_Occurred()) SWIG_fail;
15126 }
15127 resultobj = SWIG_From_int(static_cast< int >(result));
15128 return resultobj;
15129fail:
15130 return NULL;
d55e5bfc
RD
15131}
15132
15133
554f62e9
RD
15134SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15135 PyObject *resultobj = 0;
15136 wxFont *arg1 = (wxFont *) 0 ;
15137 bool result;
15138 void *argp1 = 0 ;
15139 int res1 = 0 ;
15140 PyObject *swig_obj[1] ;
15141
15142 if (!args) SWIG_fail;
15143 swig_obj[0] = args;
15144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15145 if (!SWIG_IsOK(res1)) {
15146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15147 }
15148 arg1 = reinterpret_cast< wxFont * >(argp1);
15149 {
15150 PyThreadState* __tstate = wxPyBeginAllowThreads();
15151 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 {
15156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15157 }
15158 return resultobj;
15159fail:
15160 return NULL;
d55e5bfc
RD
15161}
15162
15163
554f62e9
RD
15164SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15165 PyObject *resultobj = 0;
15166 wxFont *arg1 = (wxFont *) 0 ;
15167 wxString result;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 PyObject *swig_obj[1] ;
15171
15172 if (!args) SWIG_fail;
15173 swig_obj[0] = args;
15174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15175 if (!SWIG_IsOK(res1)) {
15176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15177 }
15178 arg1 = reinterpret_cast< wxFont * >(argp1);
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
15181 result = ((wxFont const *)arg1)->GetFaceName();
15182 wxPyEndAllowThreads(__tstate);
15183 if (PyErr_Occurred()) SWIG_fail;
15184 }
15185 {
15186#if wxUSE_UNICODE
15187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15188#else
15189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15190#endif
15191 }
15192 return resultobj;
15193fail:
15194 return NULL;
d55e5bfc
RD
15195}
15196
15197
554f62e9
RD
15198SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15199 PyObject *resultobj = 0;
15200 wxFont *arg1 = (wxFont *) 0 ;
15201 wxFontEncoding result;
15202 void *argp1 = 0 ;
15203 int res1 = 0 ;
15204 PyObject *swig_obj[1] ;
15205
15206 if (!args) SWIG_fail;
15207 swig_obj[0] = args;
15208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15209 if (!SWIG_IsOK(res1)) {
15210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15211 }
15212 arg1 = reinterpret_cast< wxFont * >(argp1);
15213 {
15214 PyThreadState* __tstate = wxPyBeginAllowThreads();
15215 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 resultobj = SWIG_From_int(static_cast< int >(result));
15220 return resultobj;
15221fail:
15222 return NULL;
d55e5bfc
RD
15223}
15224
15225
554f62e9
RD
15226SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15227 PyObject *resultobj = 0;
15228 wxFont *arg1 = (wxFont *) 0 ;
15229 wxNativeFontInfo *result = 0 ;
15230 void *argp1 = 0 ;
15231 int res1 = 0 ;
15232 PyObject *swig_obj[1] ;
15233
15234 if (!args) SWIG_fail;
15235 swig_obj[0] = args;
15236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15237 if (!SWIG_IsOK(res1)) {
15238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15239 }
15240 arg1 = reinterpret_cast< wxFont * >(argp1);
15241 {
15242 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15244 wxPyEndAllowThreads(__tstate);
15245 if (PyErr_Occurred()) SWIG_fail;
15246 }
15247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15248 return resultobj;
15249fail:
15250 return NULL;
d55e5bfc
RD
15251}
15252
15253
554f62e9
RD
15254SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15255 PyObject *resultobj = 0;
15256 wxFont *arg1 = (wxFont *) 0 ;
15257 bool result;
15258 void *argp1 = 0 ;
15259 int res1 = 0 ;
15260 PyObject *swig_obj[1] ;
15261
15262 if (!args) SWIG_fail;
15263 swig_obj[0] = args;
15264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15265 if (!SWIG_IsOK(res1)) {
15266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15267 }
15268 arg1 = reinterpret_cast< wxFont * >(argp1);
15269 {
15270 PyThreadState* __tstate = wxPyBeginAllowThreads();
15271 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15272 wxPyEndAllowThreads(__tstate);
15273 if (PyErr_Occurred()) SWIG_fail;
15274 }
15275 {
15276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15277 }
15278 return resultobj;
15279fail:
15280 return NULL;
d55e5bfc
RD
15281}
15282
15283
554f62e9
RD
15284SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 wxString result;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 PyObject *swig_obj[1] ;
15291
15292 if (!args) SWIG_fail;
15293 swig_obj[0] = args;
15294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15295 if (!SWIG_IsOK(res1)) {
15296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15297 }
15298 arg1 = reinterpret_cast< wxFont * >(argp1);
15299 {
15300 PyThreadState* __tstate = wxPyBeginAllowThreads();
15301 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 {
15306#if wxUSE_UNICODE
15307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15308#else
15309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15310#endif
15311 }
15312 return resultobj;
15313fail:
15314 return NULL;
d55e5bfc
RD
15315}
15316
15317
554f62e9
RD
15318SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15319 PyObject *resultobj = 0;
15320 wxFont *arg1 = (wxFont *) 0 ;
15321 wxString result;
15322 void *argp1 = 0 ;
15323 int res1 = 0 ;
15324 PyObject *swig_obj[1] ;
15325
15326 if (!args) SWIG_fail;
15327 swig_obj[0] = args;
15328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15329 if (!SWIG_IsOK(res1)) {
15330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15331 }
15332 arg1 = reinterpret_cast< wxFont * >(argp1);
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15336 wxPyEndAllowThreads(__tstate);
15337 if (PyErr_Occurred()) SWIG_fail;
15338 }
15339 {
15340#if wxUSE_UNICODE
15341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15342#else
15343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15344#endif
15345 }
15346 return resultobj;
15347fail:
15348 return NULL;
15349}
15350
15351
15352SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15353 PyObject *resultobj = 0;
15354 wxFont *arg1 = (wxFont *) 0 ;
15355 int arg2 ;
15356 void *argp1 = 0 ;
15357 int res1 = 0 ;
15358 int val2 ;
15359 int ecode2 = 0 ;
15360 PyObject * obj0 = 0 ;
15361 PyObject * obj1 = 0 ;
15362 char * kwnames[] = {
15363 (char *) "self",(char *) "pointSize", NULL
15364 };
15365
15366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15368 if (!SWIG_IsOK(res1)) {
15369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15370 }
15371 arg1 = reinterpret_cast< wxFont * >(argp1);
15372 ecode2 = SWIG_AsVal_int(obj1, &val2);
15373 if (!SWIG_IsOK(ecode2)) {
15374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15375 }
15376 arg2 = static_cast< int >(val2);
15377 {
15378 PyThreadState* __tstate = wxPyBeginAllowThreads();
15379 (arg1)->SetPointSize(arg2);
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 resultobj = SWIG_Py_Void();
15384 return resultobj;
15385fail:
15386 return NULL;
15387}
15388
15389
15390SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj = 0;
15392 wxFont *arg1 = (wxFont *) 0 ;
15393 wxSize *arg2 = 0 ;
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 wxSize temp2 ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 char * kwnames[] = {
15400 (char *) "self",(char *) "pixelSize", NULL
15401 };
15402
15403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15405 if (!SWIG_IsOK(res1)) {
15406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15407 }
15408 arg1 = reinterpret_cast< wxFont * >(argp1);
15409 {
15410 arg2 = &temp2;
15411 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15412 }
15413 {
15414 PyThreadState* __tstate = wxPyBeginAllowThreads();
15415 (arg1)->SetPixelSize((wxSize const &)*arg2);
15416 wxPyEndAllowThreads(__tstate);
15417 if (PyErr_Occurred()) SWIG_fail;
15418 }
15419 resultobj = SWIG_Py_Void();
15420 return resultobj;
15421fail:
15422 return NULL;
15423}
15424
15425
15426SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15427 PyObject *resultobj = 0;
15428 wxFont *arg1 = (wxFont *) 0 ;
15429 int arg2 ;
15430 void *argp1 = 0 ;
15431 int res1 = 0 ;
15432 int val2 ;
15433 int ecode2 = 0 ;
15434 PyObject * obj0 = 0 ;
15435 PyObject * obj1 = 0 ;
15436 char * kwnames[] = {
15437 (char *) "self",(char *) "family", NULL
15438 };
15439
15440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15442 if (!SWIG_IsOK(res1)) {
15443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15444 }
15445 arg1 = reinterpret_cast< wxFont * >(argp1);
15446 ecode2 = SWIG_AsVal_int(obj1, &val2);
15447 if (!SWIG_IsOK(ecode2)) {
15448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15449 }
15450 arg2 = static_cast< int >(val2);
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 (arg1)->SetFamily(arg2);
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 resultobj = SWIG_Py_Void();
15458 return resultobj;
15459fail:
15460 return NULL;
15461}
15462
15463
15464SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj = 0;
15466 wxFont *arg1 = (wxFont *) 0 ;
15467 int arg2 ;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 int val2 ;
15471 int ecode2 = 0 ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 char * kwnames[] = {
15475 (char *) "self",(char *) "style", NULL
15476 };
15477
15478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15480 if (!SWIG_IsOK(res1)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15482 }
15483 arg1 = reinterpret_cast< wxFont * >(argp1);
15484 ecode2 = SWIG_AsVal_int(obj1, &val2);
15485 if (!SWIG_IsOK(ecode2)) {
15486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15487 }
15488 arg2 = static_cast< int >(val2);
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 (arg1)->SetStyle(arg2);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 resultobj = SWIG_Py_Void();
15496 return resultobj;
15497fail:
15498 return NULL;
15499}
15500
15501
15502SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj = 0;
15504 wxFont *arg1 = (wxFont *) 0 ;
15505 int arg2 ;
15506 void *argp1 = 0 ;
15507 int res1 = 0 ;
15508 int val2 ;
15509 int ecode2 = 0 ;
15510 PyObject * obj0 = 0 ;
15511 PyObject * obj1 = 0 ;
15512 char * kwnames[] = {
15513 (char *) "self",(char *) "weight", NULL
15514 };
15515
15516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15518 if (!SWIG_IsOK(res1)) {
15519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15520 }
15521 arg1 = reinterpret_cast< wxFont * >(argp1);
15522 ecode2 = SWIG_AsVal_int(obj1, &val2);
15523 if (!SWIG_IsOK(ecode2)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15525 }
15526 arg2 = static_cast< int >(val2);
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 (arg1)->SetWeight(arg2);
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_Py_Void();
15534 return resultobj;
15535fail:
15536 return NULL;
15537}
15538
15539
15540SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15541 PyObject *resultobj = 0;
15542 wxFont *arg1 = (wxFont *) 0 ;
15543 wxString *arg2 = 0 ;
704eda0c 15544 bool result;
554f62e9
RD
15545 void *argp1 = 0 ;
15546 int res1 = 0 ;
15547 bool temp2 = false ;
15548 PyObject * obj0 = 0 ;
15549 PyObject * obj1 = 0 ;
15550 char * kwnames[] = {
15551 (char *) "self",(char *) "faceName", NULL
15552 };
15553
15554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15556 if (!SWIG_IsOK(res1)) {
15557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15558 }
15559 arg1 = reinterpret_cast< wxFont * >(argp1);
15560 {
15561 arg2 = wxString_in_helper(obj1);
15562 if (arg2 == NULL) SWIG_fail;
15563 temp2 = true;
15564 }
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15567 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
704eda0c
RD
15571 {
15572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15573 }
554f62e9
RD
15574 {
15575 if (temp2)
15576 delete arg2;
15577 }
15578 return resultobj;
15579fail:
15580 {
15581 if (temp2)
15582 delete arg2;
15583 }
15584 return NULL;
15585}
15586
15587
15588SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15589 PyObject *resultobj = 0;
15590 wxFont *arg1 = (wxFont *) 0 ;
15591 bool arg2 ;
15592 void *argp1 = 0 ;
15593 int res1 = 0 ;
15594 bool val2 ;
15595 int ecode2 = 0 ;
15596 PyObject * obj0 = 0 ;
15597 PyObject * obj1 = 0 ;
15598 char * kwnames[] = {
15599 (char *) "self",(char *) "underlined", NULL
15600 };
15601
15602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15604 if (!SWIG_IsOK(res1)) {
15605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15606 }
15607 arg1 = reinterpret_cast< wxFont * >(argp1);
15608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15609 if (!SWIG_IsOK(ecode2)) {
15610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15611 }
15612 arg2 = static_cast< bool >(val2);
15613 {
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 (arg1)->SetUnderlined(arg2);
15616 wxPyEndAllowThreads(__tstate);
15617 if (PyErr_Occurred()) SWIG_fail;
15618 }
15619 resultobj = SWIG_Py_Void();
15620 return resultobj;
15621fail:
15622 return NULL;
15623}
15624
15625
15626SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj = 0;
15628 wxFont *arg1 = (wxFont *) 0 ;
15629 wxFontEncoding arg2 ;
15630 void *argp1 = 0 ;
15631 int res1 = 0 ;
15632 int val2 ;
15633 int ecode2 = 0 ;
15634 PyObject * obj0 = 0 ;
15635 PyObject * obj1 = 0 ;
15636 char * kwnames[] = {
15637 (char *) "self",(char *) "encoding", NULL
15638 };
15639
15640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15642 if (!SWIG_IsOK(res1)) {
15643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15644 }
15645 arg1 = reinterpret_cast< wxFont * >(argp1);
15646 ecode2 = SWIG_AsVal_int(obj1, &val2);
15647 if (!SWIG_IsOK(ecode2)) {
15648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15649 }
15650 arg2 = static_cast< wxFontEncoding >(val2);
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->SetEncoding(arg2);
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 resultobj = SWIG_Py_Void();
15658 return resultobj;
15659fail:
15660 return NULL;
15661}
15662
15663
15664SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15665 PyObject *resultobj = 0;
15666 wxFont *arg1 = (wxFont *) 0 ;
15667 wxNativeFontInfo *arg2 = 0 ;
15668 void *argp1 = 0 ;
15669 int res1 = 0 ;
15670 void *argp2 = 0 ;
15671 int res2 = 0 ;
15672 PyObject * obj0 = 0 ;
15673 PyObject * obj1 = 0 ;
15674 char * kwnames[] = {
15675 (char *) "self",(char *) "info", NULL
15676 };
15677
15678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15680 if (!SWIG_IsOK(res1)) {
15681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15682 }
15683 arg1 = reinterpret_cast< wxFont * >(argp1);
15684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15685 if (!SWIG_IsOK(res2)) {
15686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15687 }
15688 if (!argp2) {
15689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15690 }
15691 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15692 {
15693 PyThreadState* __tstate = wxPyBeginAllowThreads();
15694 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15695 wxPyEndAllowThreads(__tstate);
15696 if (PyErr_Occurred()) SWIG_fail;
15697 }
15698 resultobj = SWIG_Py_Void();
15699 return resultobj;
15700fail:
15701 return NULL;
15702}
15703
15704
15705SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj = 0;
15707 wxFont *arg1 = (wxFont *) 0 ;
15708 wxString *arg2 = 0 ;
704eda0c 15709 bool result;
554f62e9
RD
15710 void *argp1 = 0 ;
15711 int res1 = 0 ;
15712 bool temp2 = false ;
15713 PyObject * obj0 = 0 ;
15714 PyObject * obj1 = 0 ;
15715 char * kwnames[] = {
15716 (char *) "self",(char *) "info", NULL
15717 };
15718
15719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15721 if (!SWIG_IsOK(res1)) {
15722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15723 }
15724 arg1 = reinterpret_cast< wxFont * >(argp1);
15725 {
15726 arg2 = wxString_in_helper(obj1);
15727 if (arg2 == NULL) SWIG_fail;
15728 temp2 = true;
15729 }
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15732 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
704eda0c
RD
15736 {
15737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15738 }
554f62e9
RD
15739 {
15740 if (temp2)
15741 delete arg2;
15742 }
15743 return resultobj;
15744fail:
15745 {
15746 if (temp2)
15747 delete arg2;
15748 }
15749 return NULL;
d55e5bfc
RD
15750}
15751
15752
554f62e9
RD
15753SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15754 PyObject *resultobj = 0;
15755 wxFont *arg1 = (wxFont *) 0 ;
15756 wxString *arg2 = 0 ;
704eda0c 15757 bool result;
554f62e9
RD
15758 void *argp1 = 0 ;
15759 int res1 = 0 ;
15760 bool temp2 = false ;
15761 PyObject * obj0 = 0 ;
15762 PyObject * obj1 = 0 ;
15763 char * kwnames[] = {
15764 (char *) "self",(char *) "info", NULL
15765 };
15766
15767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15769 if (!SWIG_IsOK(res1)) {
15770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15771 }
15772 arg1 = reinterpret_cast< wxFont * >(argp1);
15773 {
15774 arg2 = wxString_in_helper(obj1);
15775 if (arg2 == NULL) SWIG_fail;
15776 temp2 = true;
15777 }
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15780 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15781 wxPyEndAllowThreads(__tstate);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 }
704eda0c
RD
15784 {
15785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15786 }
554f62e9
RD
15787 {
15788 if (temp2)
15789 delete arg2;
15790 }
15791 return resultobj;
15792fail:
15793 {
15794 if (temp2)
15795 delete arg2;
15796 }
15797 return NULL;
d55e5bfc
RD
15798}
15799
15800
554f62e9
RD
15801SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15802 PyObject *resultobj = 0;
15803 wxFont *arg1 = (wxFont *) 0 ;
15804 wxString result;
15805 void *argp1 = 0 ;
15806 int res1 = 0 ;
15807 PyObject *swig_obj[1] ;
15808
15809 if (!args) SWIG_fail;
15810 swig_obj[0] = args;
15811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15812 if (!SWIG_IsOK(res1)) {
15813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15814 }
15815 arg1 = reinterpret_cast< wxFont * >(argp1);
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 result = ((wxFont const *)arg1)->GetFamilyString();
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 {
15823#if wxUSE_UNICODE
15824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15825#else
15826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15827#endif
15828 }
15829 return resultobj;
15830fail:
15831 return NULL;
d55e5bfc
RD
15832}
15833
15834
554f62e9
RD
15835SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15836 PyObject *resultobj = 0;
15837 wxFont *arg1 = (wxFont *) 0 ;
15838 wxString result;
15839 void *argp1 = 0 ;
15840 int res1 = 0 ;
15841 PyObject *swig_obj[1] ;
15842
15843 if (!args) SWIG_fail;
15844 swig_obj[0] = args;
15845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15846 if (!SWIG_IsOK(res1)) {
15847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15848 }
15849 arg1 = reinterpret_cast< wxFont * >(argp1);
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = ((wxFont const *)arg1)->GetStyleString();
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 {
15857#if wxUSE_UNICODE
15858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15859#else
15860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15861#endif
15862 }
15863 return resultobj;
15864fail:
15865 return NULL;
d55e5bfc
RD
15866}
15867
15868
554f62e9
RD
15869SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 PyObject *resultobj = 0;
15871 wxFont *arg1 = (wxFont *) 0 ;
15872 wxString result;
15873 void *argp1 = 0 ;
15874 int res1 = 0 ;
15875 PyObject *swig_obj[1] ;
15876
15877 if (!args) SWIG_fail;
15878 swig_obj[0] = args;
15879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15882 }
15883 arg1 = reinterpret_cast< wxFont * >(argp1);
15884 {
15885 PyThreadState* __tstate = wxPyBeginAllowThreads();
15886 result = ((wxFont const *)arg1)->GetWeightString();
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 {
15891#if wxUSE_UNICODE
15892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15893#else
15894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15895#endif
15896 }
15897 return resultobj;
15898fail:
15899 return NULL;
15900}
15901
15902
15903SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj = 0;
15905 wxFont *arg1 = (wxFont *) 0 ;
15906 bool arg2 = (bool) true ;
15907 void *argp1 = 0 ;
15908 int res1 = 0 ;
15909 bool val2 ;
15910 int ecode2 = 0 ;
15911 PyObject * obj0 = 0 ;
15912 PyObject * obj1 = 0 ;
15913 char * kwnames[] = {
15914 (char *) "self",(char *) "no", NULL
15915 };
15916
15917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15919 if (!SWIG_IsOK(res1)) {
15920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15921 }
15922 arg1 = reinterpret_cast< wxFont * >(argp1);
15923 if (obj1) {
15924 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15925 if (!SWIG_IsOK(ecode2)) {
15926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15927 }
15928 arg2 = static_cast< bool >(val2);
15929 }
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 (arg1)->SetNoAntiAliasing(arg2);
15933 wxPyEndAllowThreads(__tstate);
15934 if (PyErr_Occurred()) SWIG_fail;
15935 }
15936 resultobj = SWIG_Py_Void();
15937 return resultobj;
15938fail:
15939 return NULL;
d55e5bfc
RD
15940}
15941
15942
554f62e9
RD
15943SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15944 PyObject *resultobj = 0;
15945 wxFont *arg1 = (wxFont *) 0 ;
15946 bool result;
15947 void *argp1 = 0 ;
15948 int res1 = 0 ;
15949 PyObject *swig_obj[1] ;
15950
15951 if (!args) SWIG_fail;
15952 swig_obj[0] = args;
15953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15954 if (!SWIG_IsOK(res1)) {
15955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15956 }
15957 arg1 = reinterpret_cast< wxFont * >(argp1);
15958 {
15959 PyThreadState* __tstate = wxPyBeginAllowThreads();
15960 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 {
15965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15966 }
15967 return resultobj;
15968fail:
15969 return NULL;
d55e5bfc
RD
15970}
15971
15972
554f62e9
RD
15973SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15974 PyObject *resultobj = 0;
15975 wxFontEncoding result;
15976
15977 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15978 {
15979 if (!wxPyCheckForApp()) SWIG_fail;
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_From_int(static_cast< int >(result));
15986 return resultobj;
15987fail:
15988 return NULL;
d55e5bfc
RD
15989}
15990
15991
554f62e9
RD
15992SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15993 PyObject *resultobj = 0;
15994 wxFontEncoding arg1 ;
15995 int val1 ;
15996 int ecode1 = 0 ;
15997 PyObject * obj0 = 0 ;
15998 char * kwnames[] = {
15999 (char *) "encoding", NULL
16000 };
16001
16002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16003 ecode1 = SWIG_AsVal_int(obj0, &val1);
16004 if (!SWIG_IsOK(ecode1)) {
16005 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16006 }
16007 arg1 = static_cast< wxFontEncoding >(val1);
16008 {
16009 if (!wxPyCheckForApp()) SWIG_fail;
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 wxFont::SetDefaultEncoding(arg1);
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 resultobj = SWIG_Py_Void();
16016 return resultobj;
16017fail:
16018 return NULL;
5e483524
RD
16019}
16020
16021
554f62e9
RD
16022SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16023 PyObject *obj;
16024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16025 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16026 return SWIG_Py_Void();
d55e5bfc
RD
16027}
16028
554f62e9
RD
16029SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16030 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16031}
16032
554f62e9
RD
16033SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16034 PyObject *resultobj = 0;
16035 wxPyFontEnumerator *result = 0 ;
16036
16037 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16038 {
16039 if (!wxPyCheckForApp()) SWIG_fail;
16040 PyThreadState* __tstate = wxPyBeginAllowThreads();
16041 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16042 wxPyEndAllowThreads(__tstate);
16043 if (PyErr_Occurred()) SWIG_fail;
16044 }
16045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16046 return resultobj;
16047fail:
16048 return NULL;
d55e5bfc
RD
16049}
16050
16051
554f62e9
RD
16052SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16053 PyObject *resultobj = 0;
16054 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16055 void *argp1 = 0 ;
16056 int res1 = 0 ;
16057 PyObject *swig_obj[1] ;
16058
16059 if (!args) SWIG_fail;
16060 swig_obj[0] = args;
16061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16062 if (!SWIG_IsOK(res1)) {
16063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16064 }
16065 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 delete arg1;
d55e5bfc 16069
554f62e9
RD
16070 wxPyEndAllowThreads(__tstate);
16071 if (PyErr_Occurred()) SWIG_fail;
16072 }
16073 resultobj = SWIG_Py_Void();
16074 return resultobj;
16075fail:
16076 return NULL;
16077}
16078
16079
16080SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj = 0;
16082 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16083 PyObject *arg2 = (PyObject *) 0 ;
16084 PyObject *arg3 = (PyObject *) 0 ;
16085 bool arg4 ;
16086 void *argp1 = 0 ;
16087 int res1 = 0 ;
16088 bool val4 ;
16089 int ecode4 = 0 ;
16090 PyObject * obj0 = 0 ;
16091 PyObject * obj1 = 0 ;
16092 PyObject * obj2 = 0 ;
16093 PyObject * obj3 = 0 ;
16094 char * kwnames[] = {
16095 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16096 };
16097
16098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16100 if (!SWIG_IsOK(res1)) {
16101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16102 }
16103 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16104 arg2 = obj1;
16105 arg3 = obj2;
16106 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16107 if (!SWIG_IsOK(ecode4)) {
16108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
16109 }
16110 arg4 = static_cast< bool >(val4);
16111 {
16112 PyThreadState* __tstate = wxPyBeginAllowThreads();
16113 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16114 wxPyEndAllowThreads(__tstate);
16115 if (PyErr_Occurred()) SWIG_fail;
16116 }
16117 resultobj = SWIG_Py_Void();
16118 return resultobj;
16119fail:
16120 return NULL;
16121}
16122
16123
16124SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16125 PyObject *resultobj = 0;
16126 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16127 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16128 bool arg3 = (bool) false ;
16129 bool result;
16130 void *argp1 = 0 ;
16131 int res1 = 0 ;
16132 int val2 ;
16133 int ecode2 = 0 ;
16134 bool val3 ;
16135 int ecode3 = 0 ;
16136 PyObject * obj0 = 0 ;
16137 PyObject * obj1 = 0 ;
16138 PyObject * obj2 = 0 ;
16139 char * kwnames[] = {
16140 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16141 };
16142
16143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16145 if (!SWIG_IsOK(res1)) {
16146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16147 }
16148 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16149 if (obj1) {
16150 ecode2 = SWIG_AsVal_int(obj1, &val2);
16151 if (!SWIG_IsOK(ecode2)) {
16152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16153 }
16154 arg2 = static_cast< wxFontEncoding >(val2);
16155 }
16156 if (obj2) {
16157 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16158 if (!SWIG_IsOK(ecode3)) {
16159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16160 }
16161 arg3 = static_cast< bool >(val3);
16162 }
16163 {
16164 PyThreadState* __tstate = wxPyBeginAllowThreads();
16165 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16166 wxPyEndAllowThreads(__tstate);
16167 if (PyErr_Occurred()) SWIG_fail;
16168 }
16169 {
16170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16171 }
16172 return resultobj;
16173fail:
16174 return NULL;
16175}
16176
16177
16178SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj = 0;
16180 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16181 wxString const &arg2_defvalue = wxPyEmptyString ;
16182 wxString *arg2 = (wxString *) &arg2_defvalue ;
16183 bool result;
16184 void *argp1 = 0 ;
16185 int res1 = 0 ;
16186 bool temp2 = false ;
16187 PyObject * obj0 = 0 ;
16188 PyObject * obj1 = 0 ;
16189 char * kwnames[] = {
16190 (char *) "self",(char *) "facename", NULL
16191 };
16192
16193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16195 if (!SWIG_IsOK(res1)) {
16196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16197 }
16198 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16199 if (obj1) {
093d3ff1 16200 {
554f62e9
RD
16201 arg2 = wxString_in_helper(obj1);
16202 if (arg2 == NULL) SWIG_fail;
16203 temp2 = true;
093d3ff1 16204 }
554f62e9
RD
16205 }
16206 {
16207 PyThreadState* __tstate = wxPyBeginAllowThreads();
16208 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
16212 {
16213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16214 }
16215 {
16216 if (temp2)
16217 delete arg2;
16218 }
16219 return resultobj;
16220fail:
16221 {
16222 if (temp2)
16223 delete arg2;
16224 }
16225 return NULL;
d55e5bfc
RD
16226}
16227
16228
554f62e9
RD
16229SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
554f62e9 16231 PyObject *result = 0 ;
554f62e9 16232
704eda0c 16233 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
16234 {
16235 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16236 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
16237 wxPyEndAllowThreads(__tstate);
16238 if (PyErr_Occurred()) SWIG_fail;
16239 }
16240 resultobj = result;
16241 return resultobj;
16242fail:
16243 return NULL;
d55e5bfc
RD
16244}
16245
16246
554f62e9
RD
16247SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16248 PyObject *resultobj = 0;
554f62e9 16249 PyObject *result = 0 ;
554f62e9 16250
704eda0c 16251 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16254 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 resultobj = result;
16259 return resultobj;
16260fail:
16261 return NULL;
d55e5bfc
RD
16262}
16263
16264
704eda0c
RD
16265SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16266 PyObject *resultobj = 0;
16267 wxString *arg1 = 0 ;
16268 bool result;
16269 bool temp1 = false ;
16270 PyObject * obj0 = 0 ;
16271 char * kwnames[] = {
16272 (char *) "str", NULL
16273 };
16274
16275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16276 {
16277 arg1 = wxString_in_helper(obj0);
16278 if (arg1 == NULL) SWIG_fail;
16279 temp1 = true;
16280 }
16281 {
16282 PyThreadState* __tstate = wxPyBeginAllowThreads();
16283 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16284 wxPyEndAllowThreads(__tstate);
16285 if (PyErr_Occurred()) SWIG_fail;
16286 }
16287 {
16288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16289 }
16290 {
16291 if (temp1)
16292 delete arg1;
16293 }
16294 return resultobj;
16295fail:
16296 {
16297 if (temp1)
16298 delete arg1;
16299 }
16300 return NULL;
16301}
16302
16303
554f62e9
RD
16304SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16305 PyObject *obj;
16306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16307 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16308 return SWIG_Py_Void();
5e483524
RD
16309}
16310
554f62e9
RD
16311SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16312 return SWIG_Python_InitShadowInstance(args);
16313}
5e483524 16314
554f62e9
RD
16315SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16316 PyObject *resultobj = 0;
16317 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16318 int arg2 ;
16319 void *argp1 = 0 ;
16320 int res1 = 0 ;
16321 int val2 ;
16322 int ecode2 = 0 ;
16323 PyObject *swig_obj[2] ;
16324
16325 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16327 if (!SWIG_IsOK(res1)) {
16328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16329 }
16330 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16331 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16332 if (!SWIG_IsOK(ecode2)) {
16333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16334 }
16335 arg2 = static_cast< int >(val2);
16336 if (arg1) (arg1)->Language = arg2;
16337
16338 resultobj = SWIG_Py_Void();
16339 return resultobj;
16340fail:
16341 return NULL;
d55e5bfc
RD
16342}
16343
16344
554f62e9
RD
16345SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16346 PyObject *resultobj = 0;
16347 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16348 int result;
16349 void *argp1 = 0 ;
16350 int res1 = 0 ;
16351 PyObject *swig_obj[1] ;
16352
16353 if (!args) SWIG_fail;
16354 swig_obj[0] = args;
16355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16356 if (!SWIG_IsOK(res1)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16358 }
16359 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16360 result = (int) ((arg1)->Language);
16361 resultobj = SWIG_From_int(static_cast< int >(result));
16362 return resultobj;
16363fail:
16364 return NULL;
16365}
16366
16367
16368SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16369 PyObject *resultobj = 0;
16370 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16371 wxString *arg2 = (wxString *) 0 ;
16372 void *argp1 = 0 ;
16373 int res1 = 0 ;
16374 bool temp2 = false ;
16375 PyObject *swig_obj[2] ;
16376
16377 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16379 if (!SWIG_IsOK(res1)) {
16380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16381 }
16382 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16383 {
16384 arg2 = wxString_in_helper(swig_obj[1]);
16385 if (arg2 == NULL) SWIG_fail;
16386 temp2 = true;
16387 }
16388 if (arg1) (arg1)->CanonicalName = *arg2;
16389
16390 resultobj = SWIG_Py_Void();
16391 {
16392 if (temp2)
16393 delete arg2;
16394 }
16395 return resultobj;
16396fail:
16397 {
16398 if (temp2)
16399 delete arg2;
16400 }
16401 return NULL;
d55e5bfc
RD
16402}
16403
16404
554f62e9
RD
16405SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16406 PyObject *resultobj = 0;
16407 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16408 wxString *result = 0 ;
16409 void *argp1 = 0 ;
16410 int res1 = 0 ;
16411 PyObject *swig_obj[1] ;
16412
16413 if (!args) SWIG_fail;
16414 swig_obj[0] = args;
16415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16416 if (!SWIG_IsOK(res1)) {
16417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16418 }
16419 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16420 result = (wxString *)& ((arg1)->CanonicalName);
16421 {
16422#if wxUSE_UNICODE
16423 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16424#else
16425 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16426#endif
16427 }
16428 return resultobj;
16429fail:
16430 return NULL;
d55e5bfc
RD
16431}
16432
16433
554f62e9
RD
16434SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16435 PyObject *resultobj = 0;
16436 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16437 wxString *arg2 = (wxString *) 0 ;
16438 void *argp1 = 0 ;
16439 int res1 = 0 ;
16440 bool temp2 = false ;
16441 PyObject *swig_obj[2] ;
16442
16443 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16445 if (!SWIG_IsOK(res1)) {
16446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16447 }
16448 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16449 {
16450 arg2 = wxString_in_helper(swig_obj[1]);
16451 if (arg2 == NULL) SWIG_fail;
16452 temp2 = true;
16453 }
16454 if (arg1) (arg1)->Description = *arg2;
16455
16456 resultobj = SWIG_Py_Void();
16457 {
16458 if (temp2)
16459 delete arg2;
16460 }
16461 return resultobj;
16462fail:
16463 {
16464 if (temp2)
16465 delete arg2;
16466 }
16467 return NULL;
d55e5bfc
RD
16468}
16469
16470
554f62e9
RD
16471SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16472 PyObject *resultobj = 0;
16473 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16474 wxString *result = 0 ;
16475 void *argp1 = 0 ;
16476 int res1 = 0 ;
16477 PyObject *swig_obj[1] ;
16478
16479 if (!args) SWIG_fail;
16480 swig_obj[0] = args;
16481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16482 if (!SWIG_IsOK(res1)) {
16483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16484 }
16485 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16486 result = (wxString *)& ((arg1)->Description);
16487 {
16488#if wxUSE_UNICODE
16489 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16490#else
16491 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16492#endif
16493 }
16494 return resultobj;
16495fail:
16496 return NULL;
16497}
16498
16499
16500SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16501 PyObject *obj;
16502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16503 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16504 return SWIG_Py_Void();
16505}
16506
16507SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj = 0;
16509 int arg1 = (int) -1 ;
16510 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16511 wxLocale *result = 0 ;
16512 int val1 ;
16513 int ecode1 = 0 ;
16514 int val2 ;
16515 int ecode2 = 0 ;
16516 PyObject * obj0 = 0 ;
16517 PyObject * obj1 = 0 ;
16518 char * kwnames[] = {
16519 (char *) "language",(char *) "flags", NULL
16520 };
16521
16522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16523 if (obj0) {
16524 ecode1 = SWIG_AsVal_int(obj0, &val1);
16525 if (!SWIG_IsOK(ecode1)) {
16526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16527 }
16528 arg1 = static_cast< int >(val1);
16529 }
16530 if (obj1) {
16531 ecode2 = SWIG_AsVal_int(obj1, &val2);
16532 if (!SWIG_IsOK(ecode2)) {
16533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16534 }
16535 arg2 = static_cast< int >(val2);
16536 }
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
16539 result = (wxLocale *)new_wxLocale(arg1,arg2);
16540 wxPyEndAllowThreads(__tstate);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16544 return resultobj;
16545fail:
16546 return NULL;
d55e5bfc
RD
16547}
16548
16549
554f62e9
RD
16550SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16551 PyObject *resultobj = 0;
16552 wxLocale *arg1 = (wxLocale *) 0 ;
16553 void *argp1 = 0 ;
16554 int res1 = 0 ;
16555 PyObject *swig_obj[1] ;
16556
16557 if (!args) SWIG_fail;
16558 swig_obj[0] = args;
16559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16560 if (!SWIG_IsOK(res1)) {
16561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16562 }
16563 arg1 = reinterpret_cast< wxLocale * >(argp1);
16564 {
16565 PyThreadState* __tstate = wxPyBeginAllowThreads();
16566 delete arg1;
d55e5bfc 16567
554f62e9
RD
16568 wxPyEndAllowThreads(__tstate);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 resultobj = SWIG_Py_Void();
16572 return resultobj;
16573fail:
16574 return NULL;
16575}
16576
16577
16578SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16579 PyObject *resultobj = 0;
16580 wxLocale *arg1 = (wxLocale *) 0 ;
16581 wxString *arg2 = 0 ;
16582 wxString const &arg3_defvalue = wxPyEmptyString ;
16583 wxString *arg3 = (wxString *) &arg3_defvalue ;
16584 wxString const &arg4_defvalue = wxPyEmptyString ;
16585 wxString *arg4 = (wxString *) &arg4_defvalue ;
16586 bool arg5 = (bool) true ;
16587 bool arg6 = (bool) false ;
16588 bool result;
16589 void *argp1 = 0 ;
16590 int res1 = 0 ;
16591 bool temp2 = false ;
16592 bool temp3 = false ;
16593 bool temp4 = false ;
16594 bool val5 ;
16595 int ecode5 = 0 ;
16596 bool val6 ;
16597 int ecode6 = 0 ;
16598 PyObject * obj0 = 0 ;
16599 PyObject * obj1 = 0 ;
16600 PyObject * obj2 = 0 ;
16601 PyObject * obj3 = 0 ;
16602 PyObject * obj4 = 0 ;
16603 PyObject * obj5 = 0 ;
16604 char * kwnames[] = {
16605 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16606 };
16607
16608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16610 if (!SWIG_IsOK(res1)) {
16611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16612 }
16613 arg1 = reinterpret_cast< wxLocale * >(argp1);
16614 {
16615 arg2 = wxString_in_helper(obj1);
16616 if (arg2 == NULL) SWIG_fail;
16617 temp2 = true;
16618 }
16619 if (obj2) {
093d3ff1 16620 {
554f62e9
RD
16621 arg3 = wxString_in_helper(obj2);
16622 if (arg3 == NULL) SWIG_fail;
16623 temp3 = true;
093d3ff1 16624 }
554f62e9
RD
16625 }
16626 if (obj3) {
d55e5bfc 16627 {
554f62e9
RD
16628 arg4 = wxString_in_helper(obj3);
16629 if (arg4 == NULL) SWIG_fail;
16630 temp4 = true;
d55e5bfc 16631 }
554f62e9
RD
16632 }
16633 if (obj4) {
16634 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16635 if (!SWIG_IsOK(ecode5)) {
16636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16637 }
16638 arg5 = static_cast< bool >(val5);
16639 }
16640 if (obj5) {
16641 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16642 if (!SWIG_IsOK(ecode6)) {
16643 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16644 }
16645 arg6 = static_cast< bool >(val6);
16646 }
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
16649 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
16654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16655 }
16656 {
16657 if (temp2)
16658 delete arg2;
16659 }
16660 {
16661 if (temp3)
16662 delete arg3;
16663 }
16664 {
16665 if (temp4)
16666 delete arg4;
16667 }
16668 return resultobj;
16669fail:
16670 {
16671 if (temp2)
16672 delete arg2;
16673 }
16674 {
16675 if (temp3)
16676 delete arg3;
16677 }
16678 {
16679 if (temp4)
16680 delete arg4;
16681 }
16682 return NULL;
16683}
16684
16685
16686SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16687 PyObject *resultobj = 0;
16688 wxLocale *arg1 = (wxLocale *) 0 ;
16689 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16690 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16691 bool result;
16692 void *argp1 = 0 ;
16693 int res1 = 0 ;
16694 int val2 ;
16695 int ecode2 = 0 ;
16696 int val3 ;
16697 int ecode3 = 0 ;
16698 PyObject * obj0 = 0 ;
16699 PyObject * obj1 = 0 ;
16700 PyObject * obj2 = 0 ;
16701 char * kwnames[] = {
16702 (char *) "self",(char *) "language",(char *) "flags", NULL
16703 };
16704
16705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16707 if (!SWIG_IsOK(res1)) {
16708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16709 }
16710 arg1 = reinterpret_cast< wxLocale * >(argp1);
16711 if (obj1) {
16712 ecode2 = SWIG_AsVal_int(obj1, &val2);
16713 if (!SWIG_IsOK(ecode2)) {
16714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16715 }
16716 arg2 = static_cast< int >(val2);
16717 }
16718 if (obj2) {
16719 ecode3 = SWIG_AsVal_int(obj2, &val3);
16720 if (!SWIG_IsOK(ecode3)) {
16721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16722 }
16723 arg3 = static_cast< int >(val3);
16724 }
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16728 wxPyEndAllowThreads(__tstate);
16729 if (PyErr_Occurred()) SWIG_fail;
16730 }
16731 {
16732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16733 }
16734 return resultobj;
16735fail:
16736 return NULL;
d55e5bfc
RD
16737}
16738
16739
554f62e9
RD
16740SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16741 PyObject *resultobj = 0;
16742 int result;
16743
16744 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 result = (int)wxLocale::GetSystemLanguage();
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 resultobj = SWIG_From_int(static_cast< int >(result));
16752 return resultobj;
16753fail:
16754 return NULL;
d55e5bfc
RD
16755}
16756
16757
554f62e9
RD
16758SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16759 PyObject *resultobj = 0;
16760 wxFontEncoding result;
16761
16762 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16763 {
16764 PyThreadState* __tstate = wxPyBeginAllowThreads();
16765 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16766 wxPyEndAllowThreads(__tstate);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 }
16769 resultobj = SWIG_From_int(static_cast< int >(result));
16770 return resultobj;
16771fail:
16772 return NULL;
d55e5bfc
RD
16773}
16774
16775
554f62e9
RD
16776SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16777 PyObject *resultobj = 0;
16778 wxString result;
16779
16780 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16781 {
16782 PyThreadState* __tstate = wxPyBeginAllowThreads();
16783 result = wxLocale::GetSystemEncodingName();
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 {
16788#if wxUSE_UNICODE
16789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16790#else
16791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16792#endif
16793 }
16794 return resultobj;
16795fail:
16796 return NULL;
d55e5bfc
RD
16797}
16798
16799
554f62e9
RD
16800SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16801 PyObject *resultobj = 0;
16802 wxLocale *arg1 = (wxLocale *) 0 ;
16803 bool result;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 PyObject *swig_obj[1] ;
16807
16808 if (!args) SWIG_fail;
16809 swig_obj[0] = args;
16810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16811 if (!SWIG_IsOK(res1)) {
16812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16813 }
16814 arg1 = reinterpret_cast< wxLocale * >(argp1);
16815 {
16816 PyThreadState* __tstate = wxPyBeginAllowThreads();
16817 result = (bool)((wxLocale const *)arg1)->IsOk();
16818 wxPyEndAllowThreads(__tstate);
16819 if (PyErr_Occurred()) SWIG_fail;
16820 }
16821 {
16822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16823 }
16824 return resultobj;
16825fail:
16826 return NULL;
d55e5bfc
RD
16827}
16828
16829
554f62e9
RD
16830SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16831 PyObject *resultobj = 0;
16832 wxLocale *arg1 = (wxLocale *) 0 ;
16833 wxString result;
16834 void *argp1 = 0 ;
16835 int res1 = 0 ;
16836 PyObject *swig_obj[1] ;
16837
16838 if (!args) SWIG_fail;
16839 swig_obj[0] = args;
16840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16841 if (!SWIG_IsOK(res1)) {
16842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16843 }
16844 arg1 = reinterpret_cast< wxLocale * >(argp1);
16845 {
16846 PyThreadState* __tstate = wxPyBeginAllowThreads();
16847 result = ((wxLocale const *)arg1)->GetLocale();
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
16851 {
16852#if wxUSE_UNICODE
16853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16854#else
16855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16856#endif
16857 }
16858 return resultobj;
16859fail:
16860 return NULL;
d55e5bfc
RD
16861}
16862
16863
554f62e9
RD
16864SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16865 PyObject *resultobj = 0;
16866 wxLocale *arg1 = (wxLocale *) 0 ;
16867 int result;
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
16870 PyObject *swig_obj[1] ;
16871
16872 if (!args) SWIG_fail;
16873 swig_obj[0] = args;
16874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16877 }
16878 arg1 = reinterpret_cast< wxLocale * >(argp1);
16879 {
16880 PyThreadState* __tstate = wxPyBeginAllowThreads();
16881 result = (int)((wxLocale const *)arg1)->GetLanguage();
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 resultobj = SWIG_From_int(static_cast< int >(result));
16886 return resultobj;
16887fail:
16888 return NULL;
d55e5bfc
RD
16889}
16890
16891
554f62e9
RD
16892SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16893 PyObject *resultobj = 0;
16894 wxLocale *arg1 = (wxLocale *) 0 ;
16895 wxString result;
16896 void *argp1 = 0 ;
16897 int res1 = 0 ;
16898 PyObject *swig_obj[1] ;
16899
16900 if (!args) SWIG_fail;
16901 swig_obj[0] = args;
16902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16903 if (!SWIG_IsOK(res1)) {
16904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16905 }
16906 arg1 = reinterpret_cast< wxLocale * >(argp1);
16907 {
16908 PyThreadState* __tstate = wxPyBeginAllowThreads();
16909 result = ((wxLocale const *)arg1)->GetSysName();
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 {
16914#if wxUSE_UNICODE
16915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16916#else
16917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16918#endif
16919 }
16920 return resultobj;
16921fail:
16922 return NULL;
d55e5bfc
RD
16923}
16924
16925
554f62e9
RD
16926SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16927 PyObject *resultobj = 0;
16928 wxLocale *arg1 = (wxLocale *) 0 ;
16929 wxString result;
16930 void *argp1 = 0 ;
16931 int res1 = 0 ;
16932 PyObject *swig_obj[1] ;
16933
16934 if (!args) SWIG_fail;
16935 swig_obj[0] = args;
16936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16937 if (!SWIG_IsOK(res1)) {
16938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16939 }
16940 arg1 = reinterpret_cast< wxLocale * >(argp1);
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 result = ((wxLocale const *)arg1)->GetCanonicalName();
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 {
093d3ff1 16948#if wxUSE_UNICODE
554f62e9 16949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16950#else
554f62e9 16951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16952#endif
554f62e9
RD
16953 }
16954 return resultobj;
16955fail:
16956 return NULL;
d55e5bfc
RD
16957}
16958
16959
554f62e9
RD
16960SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj = 0;
16962 wxString *arg1 = 0 ;
16963 bool temp1 = false ;
16964 PyObject * obj0 = 0 ;
16965 char * kwnames[] = {
16966 (char *) "prefix", NULL
16967 };
16968
16969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16970 {
16971 arg1 = wxString_in_helper(obj0);
16972 if (arg1 == NULL) SWIG_fail;
16973 temp1 = true;
16974 }
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 resultobj = SWIG_Py_Void();
16982 {
16983 if (temp1)
16984 delete arg1;
16985 }
16986 return resultobj;
16987fail:
16988 {
16989 if (temp1)
16990 delete arg1;
16991 }
16992 return NULL;
16993}
16994
16995
16996SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16997 PyObject *resultobj = 0;
16998 wxLocale *arg1 = (wxLocale *) 0 ;
16999 wxString *arg2 = 0 ;
17000 bool result;
17001 void *argp1 = 0 ;
17002 int res1 = 0 ;
17003 bool temp2 = false ;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "self",(char *) "szDomain", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17012 if (!SWIG_IsOK(res1)) {
17013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17014 }
17015 arg1 = reinterpret_cast< wxLocale * >(argp1);
17016 {
17017 arg2 = wxString_in_helper(obj1);
17018 if (arg2 == NULL) SWIG_fail;
17019 temp2 = true;
17020 }
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17024 wxPyEndAllowThreads(__tstate);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 }
17027 {
17028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17029 }
17030 {
17031 if (temp2)
17032 delete arg2;
17033 }
17034 return resultobj;
17035fail:
17036 {
17037 if (temp2)
17038 delete arg2;
17039 }
17040 return NULL;
17041}
17042
17043
33d6fd3b
RD
17044SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj = 0;
17046 int arg1 ;
17047 bool result;
17048 int val1 ;
17049 int ecode1 = 0 ;
17050 PyObject * obj0 = 0 ;
17051 char * kwnames[] = {
17052 (char *) "lang", NULL
17053 };
17054
17055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17056 ecode1 = SWIG_AsVal_int(obj0, &val1);
17057 if (!SWIG_IsOK(ecode1)) {
17058 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17059 }
17060 arg1 = static_cast< int >(val1);
17061 {
17062 PyThreadState* __tstate = wxPyBeginAllowThreads();
17063 result = (bool)wxLocale::IsAvailable(arg1);
17064 wxPyEndAllowThreads(__tstate);
17065 if (PyErr_Occurred()) SWIG_fail;
17066 }
17067 {
17068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17069 }
17070 return resultobj;
17071fail:
17072 return NULL;
17073}
17074
17075
554f62e9
RD
17076SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17077 PyObject *resultobj = 0;
17078 wxLocale *arg1 = (wxLocale *) 0 ;
17079 wxString *arg2 = 0 ;
17080 bool result;
17081 void *argp1 = 0 ;
17082 int res1 = 0 ;
17083 bool temp2 = false ;
17084 PyObject * obj0 = 0 ;
17085 PyObject * obj1 = 0 ;
17086 char * kwnames[] = {
17087 (char *) "self",(char *) "szDomain", NULL
17088 };
17089
17090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17092 if (!SWIG_IsOK(res1)) {
17093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17094 }
17095 arg1 = reinterpret_cast< wxLocale * >(argp1);
17096 {
17097 arg2 = wxString_in_helper(obj1);
17098 if (arg2 == NULL) SWIG_fail;
17099 temp2 = true;
17100 }
17101 {
17102 PyThreadState* __tstate = wxPyBeginAllowThreads();
17103 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17104 wxPyEndAllowThreads(__tstate);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 {
17108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17109 }
17110 {
17111 if (temp2)
17112 delete arg2;
17113 }
17114 return resultobj;
17115fail:
17116 {
17117 if (temp2)
17118 delete arg2;
17119 }
17120 return NULL;
d55e5bfc
RD
17121}
17122
17123
554f62e9
RD
17124SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17125 PyObject *resultobj = 0;
17126 int arg1 ;
17127 wxLanguageInfo *result = 0 ;
17128 int val1 ;
17129 int ecode1 = 0 ;
17130 PyObject * obj0 = 0 ;
17131 char * kwnames[] = {
17132 (char *) "lang", NULL
17133 };
17134
17135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17136 ecode1 = SWIG_AsVal_int(obj0, &val1);
17137 if (!SWIG_IsOK(ecode1)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17139 }
17140 arg1 = static_cast< int >(val1);
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17144 wxPyEndAllowThreads(__tstate);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 }
17147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17148 return resultobj;
17149fail:
17150 return NULL;
17151}
17152
17153
17154SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17155 PyObject *resultobj = 0;
17156 int arg1 ;
17157 wxString result;
17158 int val1 ;
17159 int ecode1 = 0 ;
17160 PyObject * obj0 = 0 ;
17161 char * kwnames[] = {
17162 (char *) "lang", NULL
17163 };
17164
17165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17166 ecode1 = SWIG_AsVal_int(obj0, &val1);
17167 if (!SWIG_IsOK(ecode1)) {
17168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17169 }
17170 arg1 = static_cast< int >(val1);
17171 {
17172 PyThreadState* __tstate = wxPyBeginAllowThreads();
17173 result = wxLocale::GetLanguageName(arg1);
17174 wxPyEndAllowThreads(__tstate);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 {
17178#if wxUSE_UNICODE
17179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17180#else
17181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17182#endif
17183 }
17184 return resultobj;
17185fail:
17186 return NULL;
093d3ff1
RD
17187}
17188
17189
554f62e9
RD
17190SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17191 PyObject *resultobj = 0;
17192 wxString *arg1 = 0 ;
17193 wxLanguageInfo *result = 0 ;
17194 bool temp1 = false ;
17195 PyObject * obj0 = 0 ;
17196 char * kwnames[] = {
17197 (char *) "locale", NULL
17198 };
17199
17200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17201 {
17202 arg1 = wxString_in_helper(obj0);
17203 if (arg1 == NULL) SWIG_fail;
17204 temp1 = true;
17205 }
17206 {
17207 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
17208 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17213 {
17214 if (temp1)
17215 delete arg1;
17216 }
17217 return resultobj;
17218fail:
17219 {
17220 if (temp1)
17221 delete arg1;
17222 }
17223 return NULL;
17224}
17225
17226
17227SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17228 PyObject *resultobj = 0;
17229 wxLanguageInfo *arg1 = 0 ;
17230 void *argp1 = 0 ;
17231 int res1 = 0 ;
17232 PyObject * obj0 = 0 ;
17233 char * kwnames[] = {
17234 (char *) "info", NULL
17235 };
17236
17237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17238 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17239 if (!SWIG_IsOK(res1)) {
17240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17241 }
17242 if (!argp1) {
17243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17244 }
17245 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 resultobj = SWIG_Py_Void();
17253 return resultobj;
17254fail:
17255 return NULL;
17256}
17257
17258
17259SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17260 PyObject *resultobj = 0;
17261 wxLocale *arg1 = (wxLocale *) 0 ;
17262 wxString *arg2 = 0 ;
17263 wxString const &arg3_defvalue = wxPyEmptyString ;
17264 wxString *arg3 = (wxString *) &arg3_defvalue ;
17265 wxString result;
17266 void *argp1 = 0 ;
17267 int res1 = 0 ;
17268 bool temp2 = false ;
17269 bool temp3 = false ;
17270 PyObject * obj0 = 0 ;
17271 PyObject * obj1 = 0 ;
17272 PyObject * obj2 = 0 ;
17273 char * kwnames[] = {
17274 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17275 };
17276
17277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17279 if (!SWIG_IsOK(res1)) {
17280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17281 }
17282 arg1 = reinterpret_cast< wxLocale * >(argp1);
17283 {
17284 arg2 = wxString_in_helper(obj1);
17285 if (arg2 == NULL) SWIG_fail;
17286 temp2 = true;
17287 }
17288 if (obj2) {
17289 {
17290 arg3 = wxString_in_helper(obj2);
17291 if (arg3 == NULL) SWIG_fail;
17292 temp3 = true;
17293 }
17294 }
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17298 wxPyEndAllowThreads(__tstate);
17299 if (PyErr_Occurred()) SWIG_fail;
17300 }
17301 {
17302#if wxUSE_UNICODE
17303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17304#else
17305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17306#endif
17307 }
17308 {
17309 if (temp2)
17310 delete arg2;
17311 }
17312 {
17313 if (temp3)
17314 delete arg3;
17315 }
17316 return resultobj;
17317fail:
17318 {
17319 if (temp2)
17320 delete arg2;
17321 }
17322 {
17323 if (temp3)
17324 delete arg3;
17325 }
17326 return NULL;
17327}
17328
17329
17330SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17331 PyObject *resultobj = 0;
17332 wxLocale *arg1 = (wxLocale *) 0 ;
17333 wxString *result = 0 ;
17334 void *argp1 = 0 ;
17335 int res1 = 0 ;
17336 PyObject *swig_obj[1] ;
17337
17338 if (!args) SWIG_fail;
17339 swig_obj[0] = args;
17340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17341 if (!SWIG_IsOK(res1)) {
17342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17343 }
17344 arg1 = reinterpret_cast< wxLocale * >(argp1);
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 {
17348 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17349 result = (wxString *) &_result_ref;
17350 }
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 {
17355#if wxUSE_UNICODE
17356 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17357#else
17358 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17359#endif
17360 }
17361 return resultobj;
17362fail:
17363 return NULL;
17364}
17365
17366
17367SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17368 PyObject *obj;
17369 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17370 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17371 return SWIG_Py_Void();
17372}
17373
17374SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17375 return SWIG_Python_InitShadowInstance(args);
17376}
17377
17378SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17379 PyObject *resultobj = 0;
17380 int arg1 = (int) -1 ;
17381 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17382 wxPyLocale *result = 0 ;
17383 int val1 ;
17384 int ecode1 = 0 ;
17385 int val2 ;
17386 int ecode2 = 0 ;
17387 PyObject * obj0 = 0 ;
17388 PyObject * obj1 = 0 ;
17389 char * kwnames[] = {
17390 (char *) "language",(char *) "flags", NULL
17391 };
17392
17393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17394 if (obj0) {
17395 ecode1 = SWIG_AsVal_int(obj0, &val1);
17396 if (!SWIG_IsOK(ecode1)) {
17397 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17398 }
17399 arg1 = static_cast< int >(val1);
17400 }
17401 if (obj1) {
17402 ecode2 = SWIG_AsVal_int(obj1, &val2);
17403 if (!SWIG_IsOK(ecode2)) {
17404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17405 }
17406 arg2 = static_cast< int >(val2);
17407 }
17408 {
17409 PyThreadState* __tstate = wxPyBeginAllowThreads();
17410 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17415 return resultobj;
17416fail:
17417 return NULL;
17418}
17419
17420
17421SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17422 PyObject *resultobj = 0;
17423 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17424 void *argp1 = 0 ;
17425 int res1 = 0 ;
17426 PyObject *swig_obj[1] ;
17427
17428 if (!args) SWIG_fail;
17429 swig_obj[0] = args;
17430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17431 if (!SWIG_IsOK(res1)) {
17432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17433 }
17434 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17435 {
17436 PyThreadState* __tstate = wxPyBeginAllowThreads();
17437 delete arg1;
17438
554f62e9
RD
17439 wxPyEndAllowThreads(__tstate);
17440 if (PyErr_Occurred()) SWIG_fail;
17441 }
fc46b7f3 17442 resultobj = SWIG_Py_Void();
554f62e9
RD
17443 return resultobj;
17444fail:
554f62e9 17445 return NULL;
d55e5bfc
RD
17446}
17447
17448
fc46b7f3 17449SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17450 PyObject *resultobj = 0;
fc46b7f3
RD
17451 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17452 PyObject *arg2 = (PyObject *) 0 ;
17453 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17454 void *argp1 = 0 ;
17455 int res1 = 0 ;
17456 PyObject * obj0 = 0 ;
fc46b7f3
RD
17457 PyObject * obj1 = 0 ;
17458 PyObject * obj2 = 0 ;
554f62e9 17459 char * kwnames[] = {
fc46b7f3 17460 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17461 };
17462
fc46b7f3
RD
17463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17465 if (!SWIG_IsOK(res1)) {
fc46b7f3 17466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17467 }
fc46b7f3
RD
17468 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17469 arg2 = obj1;
17470 arg3 = obj2;
554f62e9
RD
17471 {
17472 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17473 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17474 wxPyEndAllowThreads(__tstate);
17475 if (PyErr_Occurred()) SWIG_fail;
17476 }
17477 resultobj = SWIG_Py_Void();
17478 return resultobj;
17479fail:
17480 return NULL;
17481}
17482
17483
fc46b7f3 17484SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17485 PyObject *resultobj = 0;
fc46b7f3
RD
17486 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17487 wxChar *arg2 = (wxChar *) 0 ;
17488 wxChar *arg3 = (wxChar *) NULL ;
17489 wxChar *result = 0 ;
554f62e9
RD
17490 void *argp1 = 0 ;
17491 int res1 = 0 ;
fc46b7f3
RD
17492 void *argp2 = 0 ;
17493 int res2 = 0 ;
17494 void *argp3 = 0 ;
17495 int res3 = 0 ;
554f62e9
RD
17496 PyObject * obj0 = 0 ;
17497 PyObject * obj1 = 0 ;
17498 PyObject * obj2 = 0 ;
17499 char * kwnames[] = {
17500 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17501 };
17502
fc46b7f3
RD
17503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17505 if (!SWIG_IsOK(res1)) {
fc46b7f3 17506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17507 }
fc46b7f3
RD
17508 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17509 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17510 if (!SWIG_IsOK(res2)) {
17511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17512 }
fc46b7f3 17513 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17514 if (obj2) {
fc46b7f3
RD
17515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17516 if (!SWIG_IsOK(res3)) {
17517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17518 }
fc46b7f3 17519 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17520 }
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17523 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17524 wxPyEndAllowThreads(__tstate);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
fc46b7f3 17527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17528 return resultobj;
17529fail:
554f62e9 17530 return NULL;
d55e5bfc
RD
17531}
17532
17533
fc46b7f3 17534SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17535 PyObject *resultobj = 0;
fc46b7f3
RD
17536 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17537 wxChar *arg2 = (wxChar *) 0 ;
17538 wxChar *arg3 = (wxChar *) 0 ;
17539 size_t arg4 ;
17540 wxChar *arg5 = (wxChar *) NULL ;
17541 wxChar *result = 0 ;
554f62e9
RD
17542 void *argp1 = 0 ;
17543 int res1 = 0 ;
fc46b7f3
RD
17544 void *argp2 = 0 ;
17545 int res2 = 0 ;
17546 void *argp3 = 0 ;
17547 int res3 = 0 ;
17548 size_t val4 ;
17549 int ecode4 = 0 ;
17550 void *argp5 = 0 ;
17551 int res5 = 0 ;
17552 PyObject * obj0 = 0 ;
17553 PyObject * obj1 = 0 ;
17554 PyObject * obj2 = 0 ;
17555 PyObject * obj3 = 0 ;
17556 PyObject * obj4 = 0 ;
17557 char * kwnames[] = {
17558 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17559 };
554f62e9 17560
fc46b7f3
RD
17561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17563 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17565 }
17566 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17568 if (!SWIG_IsOK(res2)) {
17569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17570 }
17571 arg2 = reinterpret_cast< wxChar * >(argp2);
17572 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17573 if (!SWIG_IsOK(res3)) {
17574 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17575 }
17576 arg3 = reinterpret_cast< wxChar * >(argp3);
17577 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17578 if (!SWIG_IsOK(ecode4)) {
17579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17580 }
17581 arg4 = static_cast< size_t >(val4);
17582 if (obj4) {
17583 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17584 if (!SWIG_IsOK(res5)) {
17585 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17586 }
17587 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17588 }
554f62e9
RD
17589 {
17590 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17591 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17592 wxPyEndAllowThreads(__tstate);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
fc46b7f3 17595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17596 return resultobj;
17597fail:
17598 return NULL;
d55e5bfc
RD
17599}
17600
17601
fc46b7f3 17602SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17603 PyObject *obj;
17604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17605 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17606 return SWIG_Py_Void();
d55e5bfc
RD
17607}
17608
fc46b7f3 17609SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17610 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17611}
17612
554f62e9
RD
17613SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17614 PyObject *resultobj = 0;
17615 wxLocale *result = 0 ;
17616
17617 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 result = (wxLocale *)wxGetLocale();
17621 wxPyEndAllowThreads(__tstate);
17622 if (PyErr_Occurred()) SWIG_fail;
17623 }
17624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17625 return resultobj;
17626fail:
17627 return NULL;
d55e5bfc
RD
17628}
17629
17630
554f62e9
RD
17631SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17632 PyObject *resultobj = 0;
17633 wxString *arg1 = 0 ;
17634 wxString result;
17635 bool temp1 = false ;
17636
17637 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17638 {
17639 arg1 = wxString_in_helper(swig_obj[0]);
17640 if (arg1 == NULL) SWIG_fail;
17641 temp1 = true;
17642 }
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 result = wxGetTranslation((wxString const &)*arg1);
17646 wxPyEndAllowThreads(__tstate);
17647 if (PyErr_Occurred()) SWIG_fail;
17648 }
17649 {
093d3ff1 17650#if wxUSE_UNICODE
554f62e9 17651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17652#else
554f62e9 17653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17654#endif
554f62e9
RD
17655 }
17656 {
17657 if (temp1)
17658 delete arg1;
17659 }
17660 return resultobj;
17661fail:
17662 {
17663 if (temp1)
17664 delete arg1;
17665 }
17666 return NULL;
d55e5bfc
RD
17667}
17668
17669
554f62e9 17670SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17671 PyObject *resultobj = 0;
17672 wxString *arg1 = 0 ;
17673 wxString *arg2 = 0 ;
17674 wxString result;
17675 bool temp1 = false ;
17676 bool temp2 = false ;
17677
17678 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17679 {
17680 arg1 = wxString_in_helper(swig_obj[0]);
17681 if (arg1 == NULL) SWIG_fail;
17682 temp1 = true;
17683 }
17684 {
17685 arg2 = wxString_in_helper(swig_obj[1]);
17686 if (arg2 == NULL) SWIG_fail;
17687 temp2 = true;
17688 }
17689 {
17690 PyThreadState* __tstate = wxPyBeginAllowThreads();
17691 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 {
17696#if wxUSE_UNICODE
17697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17698#else
17699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17700#endif
17701 }
17702 {
17703 if (temp1)
17704 delete arg1;
17705 }
17706 {
17707 if (temp2)
17708 delete arg2;
17709 }
17710 return resultobj;
17711fail:
17712 {
17713 if (temp1)
17714 delete arg1;
17715 }
17716 {
17717 if (temp2)
17718 delete arg2;
17719 }
17720 return NULL;
17721}
17722
17723
17724SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17725 PyObject *resultobj = 0;
17726 wxString *arg1 = 0 ;
17727 wxString *arg2 = 0 ;
17728 size_t arg3 ;
17729 wxString result;
17730 bool temp1 = false ;
17731 bool temp2 = false ;
17732 size_t val3 ;
17733 int ecode3 = 0 ;
17734
17735 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17736 {
17737 arg1 = wxString_in_helper(swig_obj[0]);
17738 if (arg1 == NULL) SWIG_fail;
17739 temp1 = true;
17740 }
17741 {
17742 arg2 = wxString_in_helper(swig_obj[1]);
17743 if (arg2 == NULL) SWIG_fail;
17744 temp2 = true;
17745 }
17746 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17747 if (!SWIG_IsOK(ecode3)) {
17748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17749 }
17750 arg3 = static_cast< size_t >(val3);
17751 {
17752 PyThreadState* __tstate = wxPyBeginAllowThreads();
17753 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17754 wxPyEndAllowThreads(__tstate);
17755 if (PyErr_Occurred()) SWIG_fail;
17756 }
17757 {
093d3ff1 17758#if wxUSE_UNICODE
554f62e9 17759 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17760#else
554f62e9 17761 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17762#endif
554f62e9
RD
17763 }
17764 {
17765 if (temp1)
17766 delete arg1;
17767 }
17768 {
17769 if (temp2)
17770 delete arg2;
17771 }
17772 return resultobj;
17773fail:
17774 {
17775 if (temp1)
17776 delete arg1;
17777 }
17778 {
17779 if (temp2)
17780 delete arg2;
17781 }
17782 return NULL;
d55e5bfc
RD
17783}
17784
17785
fc46b7f3
RD
17786SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17787 PyObject *resultobj = 0;
17788 wxString *arg1 = 0 ;
17789 wxString *arg2 = 0 ;
17790 size_t arg3 ;
17791 wxString *arg4 = 0 ;
17792 wxString result;
17793 bool temp1 = false ;
17794 bool temp2 = false ;
17795 size_t val3 ;
17796 int ecode3 = 0 ;
17797 bool temp4 = false ;
17798
17799 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17800 {
17801 arg1 = wxString_in_helper(swig_obj[0]);
17802 if (arg1 == NULL) SWIG_fail;
17803 temp1 = true;
17804 }
17805 {
17806 arg2 = wxString_in_helper(swig_obj[1]);
17807 if (arg2 == NULL) SWIG_fail;
17808 temp2 = true;
17809 }
17810 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17811 if (!SWIG_IsOK(ecode3)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17813 }
17814 arg3 = static_cast< size_t >(val3);
17815 {
17816 arg4 = wxString_in_helper(swig_obj[3]);
17817 if (arg4 == NULL) SWIG_fail;
17818 temp4 = true;
17819 }
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 {
17827#if wxUSE_UNICODE
17828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17829#else
17830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17831#endif
17832 }
17833 {
17834 if (temp1)
17835 delete arg1;
17836 }
17837 {
17838 if (temp2)
17839 delete arg2;
17840 }
17841 {
17842 if (temp4)
17843 delete arg4;
17844 }
17845 return resultobj;
17846fail:
17847 {
17848 if (temp1)
17849 delete arg1;
17850 }
17851 {
17852 if (temp2)
17853 delete arg2;
17854 }
17855 {
17856 if (temp4)
17857 delete arg4;
17858 }
17859 return NULL;
17860}
17861
17862
554f62e9
RD
17863SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17864 int argc;
fc46b7f3 17865 PyObject *argv[5];
554f62e9 17866
fc46b7f3 17867 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17868 --argc;
17869 if (argc == 1) {
17870 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17871 }
fc46b7f3 17872 if (argc == 2) {
554f62e9
RD
17873 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17874 }
fc46b7f3
RD
17875 if (argc == 3) {
17876 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17877 }
17878 if (argc == 4) {
17879 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17880 }
554f62e9
RD
17881
17882fail:
17883 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17884 return NULL;
d55e5bfc
RD
17885}
17886
17887
554f62e9
RD
17888SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17889 PyObject *resultobj = 0;
17890 wxEncodingConverter *result = 0 ;
17891
17892 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = (wxEncodingConverter *)new wxEncodingConverter();
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17900 return resultobj;
17901fail:
17902 return NULL;
d55e5bfc
RD
17903}
17904
17905
554f62e9
RD
17906SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17907 PyObject *resultobj = 0;
17908 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17909 void *argp1 = 0 ;
17910 int res1 = 0 ;
17911 PyObject *swig_obj[1] ;
17912
17913 if (!args) SWIG_fail;
17914 swig_obj[0] = args;
17915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17916 if (!SWIG_IsOK(res1)) {
17917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17918 }
17919 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 delete arg1;
d55e5bfc 17923
554f62e9
RD
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_Py_Void();
17928 return resultobj;
17929fail:
17930 return NULL;
17931}
17932
17933
17934SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj = 0;
17936 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17937 wxFontEncoding arg2 ;
17938 wxFontEncoding arg3 ;
17939 int arg4 = (int) wxCONVERT_STRICT ;
17940 bool result;
17941 void *argp1 = 0 ;
17942 int res1 = 0 ;
17943 int val2 ;
17944 int ecode2 = 0 ;
17945 int val3 ;
17946 int ecode3 = 0 ;
17947 int val4 ;
17948 int ecode4 = 0 ;
17949 PyObject * obj0 = 0 ;
17950 PyObject * obj1 = 0 ;
17951 PyObject * obj2 = 0 ;
17952 PyObject * obj3 = 0 ;
17953 char * kwnames[] = {
17954 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17955 };
17956
17957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17959 if (!SWIG_IsOK(res1)) {
17960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17961 }
17962 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17963 ecode2 = SWIG_AsVal_int(obj1, &val2);
17964 if (!SWIG_IsOK(ecode2)) {
17965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17966 }
17967 arg2 = static_cast< wxFontEncoding >(val2);
17968 ecode3 = SWIG_AsVal_int(obj2, &val3);
17969 if (!SWIG_IsOK(ecode3)) {
17970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17971 }
17972 arg3 = static_cast< wxFontEncoding >(val3);
17973 if (obj3) {
17974 ecode4 = SWIG_AsVal_int(obj3, &val4);
17975 if (!SWIG_IsOK(ecode4)) {
17976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17977 }
17978 arg4 = static_cast< int >(val4);
17979 }
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17983 wxPyEndAllowThreads(__tstate);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 }
17986 {
17987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17988 }
17989 return resultobj;
17990fail:
17991 return NULL;
17992}
17993
17994
17995SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17996 PyObject *resultobj = 0;
17997 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17998 wxString *arg2 = 0 ;
17999 wxString result;
18000 void *argp1 = 0 ;
18001 int res1 = 0 ;
18002 bool temp2 = false ;
18003 PyObject * obj0 = 0 ;
18004 PyObject * obj1 = 0 ;
18005 char * kwnames[] = {
18006 (char *) "self",(char *) "input", NULL
18007 };
18008
18009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18011 if (!SWIG_IsOK(res1)) {
18012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18013 }
18014 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18015 {
18016 arg2 = wxString_in_helper(obj1);
18017 if (arg2 == NULL) SWIG_fail;
18018 temp2 = true;
18019 }
18020 {
18021 PyThreadState* __tstate = wxPyBeginAllowThreads();
18022 result = (arg1)->Convert((wxString const &)*arg2);
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 {
d55e5bfc 18027#if wxUSE_UNICODE
554f62e9 18028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 18029#else
554f62e9 18030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 18031#endif
554f62e9
RD
18032 }
18033 {
18034 if (temp2)
18035 delete arg2;
18036 }
18037 return resultobj;
18038fail:
18039 {
18040 if (temp2)
18041 delete arg2;
18042 }
18043 return NULL;
18044}
18045
18046
18047SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj = 0;
18049 wxFontEncoding arg1 ;
18050 int arg2 = (int) wxPLATFORM_CURRENT ;
18051 wxFontEncodingArray result;
18052 int val1 ;
18053 int ecode1 = 0 ;
18054 int val2 ;
18055 int ecode2 = 0 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 char * kwnames[] = {
18059 (char *) "enc",(char *) "platform", NULL
18060 };
18061
18062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18063 ecode1 = SWIG_AsVal_int(obj0, &val1);
18064 if (!SWIG_IsOK(ecode1)) {
18065 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18066 }
18067 arg1 = static_cast< wxFontEncoding >(val1);
18068 if (obj1) {
18069 ecode2 = SWIG_AsVal_int(obj1, &val2);
18070 if (!SWIG_IsOK(ecode2)) {
18071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18072 }
18073 arg2 = static_cast< int >(val2);
18074 }
18075 {
18076 PyThreadState* __tstate = wxPyBeginAllowThreads();
18077 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18078 wxPyEndAllowThreads(__tstate);
18079 if (PyErr_Occurred()) SWIG_fail;
18080 }
18081 {
18082 resultobj = PyList_New(0);
18083 for (size_t i=0; i < (&result)->GetCount(); i++) {
18084 PyObject* number = PyInt_FromLong((&result)->Item(i));
18085 PyList_Append(resultobj, number);
18086 Py_DECREF(number);
d55e5bfc 18087 }
554f62e9
RD
18088 }
18089 return resultobj;
18090fail:
18091 return NULL;
d55e5bfc
RD
18092}
18093
18094
554f62e9
RD
18095SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18096 PyObject *resultobj = 0;
18097 wxFontEncoding arg1 ;
18098 wxFontEncodingArray result;
18099 int val1 ;
18100 int ecode1 = 0 ;
18101 PyObject * obj0 = 0 ;
18102 char * kwnames[] = {
18103 (char *) "enc", NULL
18104 };
18105
18106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18107 ecode1 = SWIG_AsVal_int(obj0, &val1);
18108 if (!SWIG_IsOK(ecode1)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18110 }
18111 arg1 = static_cast< wxFontEncoding >(val1);
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 result = wxEncodingConverter::GetAllEquivalents(arg1);
18115 wxPyEndAllowThreads(__tstate);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 }
18118 {
18119 resultobj = PyList_New(0);
18120 for (size_t i=0; i < (&result)->GetCount(); i++) {
18121 PyObject* number = PyInt_FromLong((&result)->Item(i));
18122 PyList_Append(resultobj, number);
18123 Py_DECREF(number);
d55e5bfc 18124 }
554f62e9
RD
18125 }
18126 return resultobj;
18127fail:
18128 return NULL;
18129}
18130
18131
18132SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj = 0;
18134 wxFontEncoding arg1 ;
18135 wxFontEncoding arg2 ;
18136 bool result;
18137 int val1 ;
18138 int ecode1 = 0 ;
18139 int val2 ;
18140 int ecode2 = 0 ;
18141 PyObject * obj0 = 0 ;
18142 PyObject * obj1 = 0 ;
18143 char * kwnames[] = {
18144 (char *) "encIn",(char *) "encOut", NULL
18145 };
18146
18147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18148 ecode1 = SWIG_AsVal_int(obj0, &val1);
18149 if (!SWIG_IsOK(ecode1)) {
18150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18151 }
18152 arg1 = static_cast< wxFontEncoding >(val1);
18153 ecode2 = SWIG_AsVal_int(obj1, &val2);
18154 if (!SWIG_IsOK(ecode2)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18156 }
18157 arg2 = static_cast< wxFontEncoding >(val2);
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 {
18165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18166 }
18167 return resultobj;
18168fail:
18169 return NULL;
d55e5bfc
RD
18170}
18171
18172
554f62e9
RD
18173SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18174 PyObject *obj;
18175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18176 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18177 return SWIG_Py_Void();
d55e5bfc
RD
18178}
18179
554f62e9
RD
18180SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18181 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
18182}
18183
554f62e9
RD
18184SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18185 PyObject *resultobj = 0;
18186 wxDC *arg1 = (wxDC *) 0 ;
18187 void *argp1 = 0 ;
18188 int res1 = 0 ;
18189 PyObject *swig_obj[1] ;
18190
18191 if (!args) SWIG_fail;
18192 swig_obj[0] = args;
18193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18194 if (!SWIG_IsOK(res1)) {
18195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18196 }
18197 arg1 = reinterpret_cast< wxDC * >(argp1);
18198 {
18199 PyThreadState* __tstate = wxPyBeginAllowThreads();
18200 delete arg1;
d55e5bfc 18201
554f62e9
RD
18202 wxPyEndAllowThreads(__tstate);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 resultobj = SWIG_Py_Void();
18206 return resultobj;
18207fail:
18208 return NULL;
18209}
18210
18211
18212SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj = 0;
18214 wxDC *arg1 = (wxDC *) 0 ;
18215 int arg2 ;
18216 int arg3 ;
18217 wxColour *arg4 = 0 ;
18218 int arg5 = (int) wxFLOOD_SURFACE ;
18219 bool result;
18220 void *argp1 = 0 ;
18221 int res1 = 0 ;
18222 int val2 ;
18223 int ecode2 = 0 ;
18224 int val3 ;
18225 int ecode3 = 0 ;
18226 wxColour temp4 ;
18227 int val5 ;
18228 int ecode5 = 0 ;
18229 PyObject * obj0 = 0 ;
18230 PyObject * obj1 = 0 ;
18231 PyObject * obj2 = 0 ;
18232 PyObject * obj3 = 0 ;
18233 PyObject * obj4 = 0 ;
18234 char * kwnames[] = {
18235 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18236 };
18237
18238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18240 if (!SWIG_IsOK(res1)) {
18241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18242 }
18243 arg1 = reinterpret_cast< wxDC * >(argp1);
18244 ecode2 = SWIG_AsVal_int(obj1, &val2);
18245 if (!SWIG_IsOK(ecode2)) {
18246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18247 }
18248 arg2 = static_cast< int >(val2);
18249 ecode3 = SWIG_AsVal_int(obj2, &val3);
18250 if (!SWIG_IsOK(ecode3)) {
18251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18252 }
18253 arg3 = static_cast< int >(val3);
18254 {
18255 arg4 = &temp4;
18256 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18257 }
18258 if (obj4) {
18259 ecode5 = SWIG_AsVal_int(obj4, &val5);
18260 if (!SWIG_IsOK(ecode5)) {
18261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18262 }
18263 arg5 = static_cast< int >(val5);
18264 }
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18268 wxPyEndAllowThreads(__tstate);
18269 if (PyErr_Occurred()) SWIG_fail;
18270 }
18271 {
18272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18273 }
18274 return resultobj;
18275fail:
18276 return NULL;
18277}
18278
18279
18280SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18281 PyObject *resultobj = 0;
18282 wxDC *arg1 = (wxDC *) 0 ;
18283 wxPoint *arg2 = 0 ;
18284 wxColour *arg3 = 0 ;
18285 int arg4 = (int) wxFLOOD_SURFACE ;
18286 bool result;
18287 void *argp1 = 0 ;
18288 int res1 = 0 ;
18289 wxPoint temp2 ;
18290 wxColour temp3 ;
18291 int val4 ;
18292 int ecode4 = 0 ;
18293 PyObject * obj0 = 0 ;
18294 PyObject * obj1 = 0 ;
18295 PyObject * obj2 = 0 ;
18296 PyObject * obj3 = 0 ;
18297 char * kwnames[] = {
18298 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18299 };
18300
18301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18303 if (!SWIG_IsOK(res1)) {
18304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18305 }
18306 arg1 = reinterpret_cast< wxDC * >(argp1);
18307 {
18308 arg2 = &temp2;
18309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18310 }
18311 {
18312 arg3 = &temp3;
18313 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18314 }
18315 if (obj3) {
18316 ecode4 = SWIG_AsVal_int(obj3, &val4);
18317 if (!SWIG_IsOK(ecode4)) {
18318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18319 }
18320 arg4 = static_cast< int >(val4);
18321 }
18322 {
18323 PyThreadState* __tstate = wxPyBeginAllowThreads();
18324 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18325 wxPyEndAllowThreads(__tstate);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 }
18328 {
18329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18330 }
18331 return resultobj;
18332fail:
18333 return NULL;
18334}
18335
18336
18337SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18338 PyObject *resultobj = 0;
18339 wxDC *arg1 = (wxDC *) 0 ;
18340 wxRect *arg2 = 0 ;
18341 wxColour *arg3 = 0 ;
18342 wxColour *arg4 = 0 ;
18343 wxPoint *arg5 = 0 ;
18344 void *argp1 = 0 ;
18345 int res1 = 0 ;
18346 wxRect temp2 ;
18347 wxColour temp3 ;
18348 wxColour temp4 ;
18349 wxPoint temp5 ;
18350 PyObject * obj0 = 0 ;
18351 PyObject * obj1 = 0 ;
18352 PyObject * obj2 = 0 ;
18353 PyObject * obj3 = 0 ;
18354 PyObject * obj4 = 0 ;
18355 char * kwnames[] = {
18356 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18357 };
18358
18359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18361 if (!SWIG_IsOK(res1)) {
18362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18363 }
18364 arg1 = reinterpret_cast< wxDC * >(argp1);
18365 {
18366 arg2 = &temp2;
18367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18368 }
18369 {
18370 arg3 = &temp3;
18371 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18372 }
18373 {
18374 arg4 = &temp4;
18375 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18376 }
18377 {
18378 arg5 = &temp5;
18379 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18380 }
18381 {
18382 PyThreadState* __tstate = wxPyBeginAllowThreads();
18383 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18384 wxPyEndAllowThreads(__tstate);
18385 if (PyErr_Occurred()) SWIG_fail;
18386 }
18387 resultobj = SWIG_Py_Void();
18388 return resultobj;
18389fail:
18390 return NULL;
18391}
18392
18393
18394SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18395 PyObject *resultobj = 0;
18396 wxDC *arg1 = (wxDC *) 0 ;
18397 wxRect *arg2 = 0 ;
18398 wxColour *arg3 = 0 ;
18399 wxColour *arg4 = 0 ;
18400 wxDirection arg5 = (wxDirection) wxEAST ;
18401 void *argp1 = 0 ;
18402 int res1 = 0 ;
18403 wxRect temp2 ;
18404 wxColour temp3 ;
18405 wxColour temp4 ;
18406 int val5 ;
18407 int ecode5 = 0 ;
18408 PyObject * obj0 = 0 ;
18409 PyObject * obj1 = 0 ;
18410 PyObject * obj2 = 0 ;
18411 PyObject * obj3 = 0 ;
18412 PyObject * obj4 = 0 ;
18413 char * kwnames[] = {
18414 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18415 };
18416
18417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18419 if (!SWIG_IsOK(res1)) {
18420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18421 }
18422 arg1 = reinterpret_cast< wxDC * >(argp1);
18423 {
18424 arg2 = &temp2;
18425 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18426 }
18427 {
18428 arg3 = &temp3;
18429 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18430 }
18431 {
18432 arg4 = &temp4;
18433 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18434 }
18435 if (obj4) {
18436 ecode5 = SWIG_AsVal_int(obj4, &val5);
18437 if (!SWIG_IsOK(ecode5)) {
18438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18439 }
18440 arg5 = static_cast< wxDirection >(val5);
18441 }
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18445 wxPyEndAllowThreads(__tstate);
18446 if (PyErr_Occurred()) SWIG_fail;
18447 }
18448 resultobj = SWIG_Py_Void();
18449 return resultobj;
18450fail:
18451 return NULL;
18452}
18453
18454
18455SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18456 PyObject *resultobj = 0;
18457 wxDC *arg1 = (wxDC *) 0 ;
18458 int arg2 ;
18459 int arg3 ;
18460 wxColour result;
18461 void *argp1 = 0 ;
18462 int res1 = 0 ;
18463 int val2 ;
18464 int ecode2 = 0 ;
18465 int val3 ;
18466 int ecode3 = 0 ;
18467 PyObject * obj0 = 0 ;
18468 PyObject * obj1 = 0 ;
18469 PyObject * obj2 = 0 ;
18470 char * kwnames[] = {
18471 (char *) "self",(char *) "x",(char *) "y", NULL
18472 };
18473
18474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18476 if (!SWIG_IsOK(res1)) {
18477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18478 }
18479 arg1 = reinterpret_cast< wxDC * >(argp1);
18480 ecode2 = SWIG_AsVal_int(obj1, &val2);
18481 if (!SWIG_IsOK(ecode2)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18483 }
18484 arg2 = static_cast< int >(val2);
18485 ecode3 = SWIG_AsVal_int(obj2, &val3);
18486 if (!SWIG_IsOK(ecode3)) {
18487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18488 }
18489 arg3 = static_cast< int >(val3);
18490 {
18491 PyThreadState* __tstate = wxPyBeginAllowThreads();
18492 result = wxDC_GetPixel(arg1,arg2,arg3);
18493 wxPyEndAllowThreads(__tstate);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18497 return resultobj;
18498fail:
18499 return NULL;
18500}
18501
18502
18503SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj = 0;
18505 wxDC *arg1 = (wxDC *) 0 ;
18506 wxPoint *arg2 = 0 ;
18507 wxColour result;
18508 void *argp1 = 0 ;
18509 int res1 = 0 ;
18510 wxPoint temp2 ;
18511 PyObject * obj0 = 0 ;
18512 PyObject * obj1 = 0 ;
18513 char * kwnames[] = {
18514 (char *) "self",(char *) "pt", NULL
18515 };
18516
18517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18519 if (!SWIG_IsOK(res1)) {
18520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18521 }
18522 arg1 = reinterpret_cast< wxDC * >(argp1);
18523 {
18524 arg2 = &temp2;
18525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18526 }
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18530 wxPyEndAllowThreads(__tstate);
18531 if (PyErr_Occurred()) SWIG_fail;
18532 }
18533 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18534 return resultobj;
18535fail:
18536 return NULL;
18537}
18538
18539
18540SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18541 PyObject *resultobj = 0;
18542 wxDC *arg1 = (wxDC *) 0 ;
18543 int arg2 ;
18544 int arg3 ;
18545 int arg4 ;
18546 int arg5 ;
18547 void *argp1 = 0 ;
18548 int res1 = 0 ;
18549 int val2 ;
18550 int ecode2 = 0 ;
18551 int val3 ;
18552 int ecode3 = 0 ;
18553 int val4 ;
18554 int ecode4 = 0 ;
18555 int val5 ;
18556 int ecode5 = 0 ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 PyObject * obj2 = 0 ;
18560 PyObject * obj3 = 0 ;
18561 PyObject * obj4 = 0 ;
18562 char * kwnames[] = {
18563 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18564 };
18565
18566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18568 if (!SWIG_IsOK(res1)) {
18569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18570 }
18571 arg1 = reinterpret_cast< wxDC * >(argp1);
18572 ecode2 = SWIG_AsVal_int(obj1, &val2);
18573 if (!SWIG_IsOK(ecode2)) {
18574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18575 }
18576 arg2 = static_cast< int >(val2);
18577 ecode3 = SWIG_AsVal_int(obj2, &val3);
18578 if (!SWIG_IsOK(ecode3)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18580 }
18581 arg3 = static_cast< int >(val3);
18582 ecode4 = SWIG_AsVal_int(obj3, &val4);
18583 if (!SWIG_IsOK(ecode4)) {
18584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18585 }
18586 arg4 = static_cast< int >(val4);
18587 ecode5 = SWIG_AsVal_int(obj4, &val5);
18588 if (!SWIG_IsOK(ecode5)) {
18589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18590 }
18591 arg5 = static_cast< int >(val5);
18592 {
18593 PyThreadState* __tstate = wxPyBeginAllowThreads();
18594 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18595 wxPyEndAllowThreads(__tstate);
18596 if (PyErr_Occurred()) SWIG_fail;
18597 }
18598 resultobj = SWIG_Py_Void();
18599 return resultobj;
18600fail:
18601 return NULL;
18602}
18603
18604
18605SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18606 PyObject *resultobj = 0;
18607 wxDC *arg1 = (wxDC *) 0 ;
18608 wxPoint *arg2 = 0 ;
18609 wxPoint *arg3 = 0 ;
18610 void *argp1 = 0 ;
18611 int res1 = 0 ;
18612 wxPoint temp2 ;
18613 wxPoint temp3 ;
18614 PyObject * obj0 = 0 ;
18615 PyObject * obj1 = 0 ;
18616 PyObject * obj2 = 0 ;
18617 char * kwnames[] = {
18618 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18619 };
18620
18621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18623 if (!SWIG_IsOK(res1)) {
18624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18625 }
18626 arg1 = reinterpret_cast< wxDC * >(argp1);
18627 {
18628 arg2 = &temp2;
18629 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18630 }
18631 {
18632 arg3 = &temp3;
18633 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18634 }
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18638 wxPyEndAllowThreads(__tstate);
18639 if (PyErr_Occurred()) SWIG_fail;
18640 }
18641 resultobj = SWIG_Py_Void();
18642 return resultobj;
18643fail:
18644 return NULL;
18645}
18646
18647
18648SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18649 PyObject *resultobj = 0;
18650 wxDC *arg1 = (wxDC *) 0 ;
18651 int arg2 ;
18652 int arg3 ;
18653 void *argp1 = 0 ;
18654 int res1 = 0 ;
18655 int val2 ;
18656 int ecode2 = 0 ;
18657 int val3 ;
18658 int ecode3 = 0 ;
18659 PyObject * obj0 = 0 ;
18660 PyObject * obj1 = 0 ;
18661 PyObject * obj2 = 0 ;
18662 char * kwnames[] = {
18663 (char *) "self",(char *) "x",(char *) "y", NULL
18664 };
18665
18666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18668 if (!SWIG_IsOK(res1)) {
18669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18670 }
18671 arg1 = reinterpret_cast< wxDC * >(argp1);
18672 ecode2 = SWIG_AsVal_int(obj1, &val2);
18673 if (!SWIG_IsOK(ecode2)) {
18674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18675 }
18676 arg2 = static_cast< int >(val2);
18677 ecode3 = SWIG_AsVal_int(obj2, &val3);
18678 if (!SWIG_IsOK(ecode3)) {
18679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18680 }
18681 arg3 = static_cast< int >(val3);
18682 {
18683 PyThreadState* __tstate = wxPyBeginAllowThreads();
18684 (arg1)->CrossHair(arg2,arg3);
18685 wxPyEndAllowThreads(__tstate);
18686 if (PyErr_Occurred()) SWIG_fail;
18687 }
18688 resultobj = SWIG_Py_Void();
18689 return resultobj;
18690fail:
18691 return NULL;
18692}
18693
18694
18695SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18696 PyObject *resultobj = 0;
18697 wxDC *arg1 = (wxDC *) 0 ;
18698 wxPoint *arg2 = 0 ;
18699 void *argp1 = 0 ;
18700 int res1 = 0 ;
18701 wxPoint temp2 ;
18702 PyObject * obj0 = 0 ;
18703 PyObject * obj1 = 0 ;
18704 char * kwnames[] = {
18705 (char *) "self",(char *) "pt", NULL
18706 };
18707
18708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18710 if (!SWIG_IsOK(res1)) {
18711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18712 }
18713 arg1 = reinterpret_cast< wxDC * >(argp1);
18714 {
18715 arg2 = &temp2;
18716 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18717 }
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 (arg1)->CrossHair((wxPoint const &)*arg2);
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 resultobj = SWIG_Py_Void();
18725 return resultobj;
18726fail:
18727 return NULL;
18728}
18729
18730
18731SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18732 PyObject *resultobj = 0;
18733 wxDC *arg1 = (wxDC *) 0 ;
18734 int arg2 ;
18735 int arg3 ;
18736 int arg4 ;
18737 int arg5 ;
18738 int arg6 ;
18739 int arg7 ;
18740 void *argp1 = 0 ;
18741 int res1 = 0 ;
18742 int val2 ;
18743 int ecode2 = 0 ;
18744 int val3 ;
18745 int ecode3 = 0 ;
18746 int val4 ;
18747 int ecode4 = 0 ;
18748 int val5 ;
18749 int ecode5 = 0 ;
18750 int val6 ;
18751 int ecode6 = 0 ;
18752 int val7 ;
18753 int ecode7 = 0 ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 PyObject * obj2 = 0 ;
18757 PyObject * obj3 = 0 ;
18758 PyObject * obj4 = 0 ;
18759 PyObject * obj5 = 0 ;
18760 PyObject * obj6 = 0 ;
18761 char * kwnames[] = {
18762 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18763 };
18764
18765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18767 if (!SWIG_IsOK(res1)) {
18768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18769 }
18770 arg1 = reinterpret_cast< wxDC * >(argp1);
18771 ecode2 = SWIG_AsVal_int(obj1, &val2);
18772 if (!SWIG_IsOK(ecode2)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18774 }
18775 arg2 = static_cast< int >(val2);
18776 ecode3 = SWIG_AsVal_int(obj2, &val3);
18777 if (!SWIG_IsOK(ecode3)) {
18778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18779 }
18780 arg3 = static_cast< int >(val3);
18781 ecode4 = SWIG_AsVal_int(obj3, &val4);
18782 if (!SWIG_IsOK(ecode4)) {
18783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18784 }
18785 arg4 = static_cast< int >(val4);
18786 ecode5 = SWIG_AsVal_int(obj4, &val5);
18787 if (!SWIG_IsOK(ecode5)) {
18788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18789 }
18790 arg5 = static_cast< int >(val5);
18791 ecode6 = SWIG_AsVal_int(obj5, &val6);
18792 if (!SWIG_IsOK(ecode6)) {
18793 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18794 }
18795 arg6 = static_cast< int >(val6);
18796 ecode7 = SWIG_AsVal_int(obj6, &val7);
18797 if (!SWIG_IsOK(ecode7)) {
18798 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18799 }
18800 arg7 = static_cast< int >(val7);
18801 {
18802 PyThreadState* __tstate = wxPyBeginAllowThreads();
18803 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18804 wxPyEndAllowThreads(__tstate);
18805 if (PyErr_Occurred()) SWIG_fail;
18806 }
18807 resultobj = SWIG_Py_Void();
18808 return resultobj;
18809fail:
18810 return NULL;
18811}
18812
18813
18814SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18815 PyObject *resultobj = 0;
18816 wxDC *arg1 = (wxDC *) 0 ;
18817 wxPoint *arg2 = 0 ;
18818 wxPoint *arg3 = 0 ;
18819 wxPoint *arg4 = 0 ;
18820 void *argp1 = 0 ;
18821 int res1 = 0 ;
18822 wxPoint temp2 ;
18823 wxPoint temp3 ;
18824 wxPoint temp4 ;
18825 PyObject * obj0 = 0 ;
18826 PyObject * obj1 = 0 ;
18827 PyObject * obj2 = 0 ;
18828 PyObject * obj3 = 0 ;
18829 char * kwnames[] = {
18830 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18831 };
18832
18833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18835 if (!SWIG_IsOK(res1)) {
18836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18837 }
18838 arg1 = reinterpret_cast< wxDC * >(argp1);
18839 {
18840 arg2 = &temp2;
18841 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18842 }
18843 {
18844 arg3 = &temp3;
18845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18846 }
18847 {
18848 arg4 = &temp4;
18849 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18850 }
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_Py_Void();
18858 return resultobj;
18859fail:
18860 return NULL;
18861}
18862
18863
18864SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18865 PyObject *resultobj = 0;
18866 wxDC *arg1 = (wxDC *) 0 ;
18867 int arg2 ;
18868 int arg3 ;
18869 int arg4 ;
18870 int arg5 ;
18871 void *argp1 = 0 ;
18872 int res1 = 0 ;
18873 int val2 ;
18874 int ecode2 = 0 ;
18875 int val3 ;
18876 int ecode3 = 0 ;
18877 int val4 ;
18878 int ecode4 = 0 ;
18879 int val5 ;
18880 int ecode5 = 0 ;
18881 PyObject * obj0 = 0 ;
18882 PyObject * obj1 = 0 ;
18883 PyObject * obj2 = 0 ;
18884 PyObject * obj3 = 0 ;
18885 PyObject * obj4 = 0 ;
18886 char * kwnames[] = {
18887 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18888 };
18889
18890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18892 if (!SWIG_IsOK(res1)) {
18893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18894 }
18895 arg1 = reinterpret_cast< wxDC * >(argp1);
18896 ecode2 = SWIG_AsVal_int(obj1, &val2);
18897 if (!SWIG_IsOK(ecode2)) {
18898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18899 }
18900 arg2 = static_cast< int >(val2);
18901 ecode3 = SWIG_AsVal_int(obj2, &val3);
18902 if (!SWIG_IsOK(ecode3)) {
18903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18904 }
18905 arg3 = static_cast< int >(val3);
18906 ecode4 = SWIG_AsVal_int(obj3, &val4);
18907 if (!SWIG_IsOK(ecode4)) {
18908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18909 }
18910 arg4 = static_cast< int >(val4);
18911 ecode5 = SWIG_AsVal_int(obj4, &val5);
18912 if (!SWIG_IsOK(ecode5)) {
18913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18914 }
18915 arg5 = static_cast< int >(val5);
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 resultobj = SWIG_Py_Void();
18923 return resultobj;
18924fail:
18925 return NULL;
18926}
18927
18928
18929SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj = 0;
18931 wxDC *arg1 = (wxDC *) 0 ;
18932 wxRect *arg2 = 0 ;
18933 void *argp1 = 0 ;
18934 int res1 = 0 ;
18935 wxRect temp2 ;
18936 PyObject * obj0 = 0 ;
18937 PyObject * obj1 = 0 ;
18938 char * kwnames[] = {
18939 (char *) "self",(char *) "rect", NULL
18940 };
18941
18942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18944 if (!SWIG_IsOK(res1)) {
18945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18946 }
18947 arg1 = reinterpret_cast< wxDC * >(argp1);
18948 {
18949 arg2 = &temp2;
18950 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18951 }
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_Py_Void();
18959 return resultobj;
18960fail:
18961 return NULL;
18962}
18963
18964
18965SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18966 PyObject *resultobj = 0;
18967 wxDC *arg1 = (wxDC *) 0 ;
18968 int arg2 ;
18969 int arg3 ;
18970 int arg4 ;
18971 int arg5 ;
18972 double arg6 ;
18973 double arg7 ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 int val2 ;
18977 int ecode2 = 0 ;
18978 int val3 ;
18979 int ecode3 = 0 ;
18980 int val4 ;
18981 int ecode4 = 0 ;
18982 int val5 ;
18983 int ecode5 = 0 ;
18984 double val6 ;
18985 int ecode6 = 0 ;
18986 double val7 ;
18987 int ecode7 = 0 ;
18988 PyObject * obj0 = 0 ;
18989 PyObject * obj1 = 0 ;
18990 PyObject * obj2 = 0 ;
18991 PyObject * obj3 = 0 ;
18992 PyObject * obj4 = 0 ;
18993 PyObject * obj5 = 0 ;
18994 PyObject * obj6 = 0 ;
18995 char * kwnames[] = {
18996 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18997 };
18998
18999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19001 if (!SWIG_IsOK(res1)) {
19002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19003 }
19004 arg1 = reinterpret_cast< wxDC * >(argp1);
19005 ecode2 = SWIG_AsVal_int(obj1, &val2);
19006 if (!SWIG_IsOK(ecode2)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19008 }
19009 arg2 = static_cast< int >(val2);
19010 ecode3 = SWIG_AsVal_int(obj2, &val3);
19011 if (!SWIG_IsOK(ecode3)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19013 }
19014 arg3 = static_cast< int >(val3);
19015 ecode4 = SWIG_AsVal_int(obj3, &val4);
19016 if (!SWIG_IsOK(ecode4)) {
19017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19018 }
19019 arg4 = static_cast< int >(val4);
19020 ecode5 = SWIG_AsVal_int(obj4, &val5);
19021 if (!SWIG_IsOK(ecode5)) {
19022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19023 }
19024 arg5 = static_cast< int >(val5);
19025 ecode6 = SWIG_AsVal_double(obj5, &val6);
19026 if (!SWIG_IsOK(ecode6)) {
19027 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19028 }
19029 arg6 = static_cast< double >(val6);
19030 ecode7 = SWIG_AsVal_double(obj6, &val7);
19031 if (!SWIG_IsOK(ecode7)) {
19032 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19033 }
19034 arg7 = static_cast< double >(val7);
19035 {
19036 PyThreadState* __tstate = wxPyBeginAllowThreads();
19037 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19038 wxPyEndAllowThreads(__tstate);
19039 if (PyErr_Occurred()) SWIG_fail;
19040 }
19041 resultobj = SWIG_Py_Void();
19042 return resultobj;
19043fail:
19044 return NULL;
19045}
19046
19047
19048SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19049 PyObject *resultobj = 0;
19050 wxDC *arg1 = (wxDC *) 0 ;
19051 wxPoint *arg2 = 0 ;
19052 wxSize *arg3 = 0 ;
19053 double arg4 ;
19054 double arg5 ;
19055 void *argp1 = 0 ;
19056 int res1 = 0 ;
19057 wxPoint temp2 ;
19058 wxSize temp3 ;
19059 double val4 ;
19060 int ecode4 = 0 ;
19061 double val5 ;
19062 int ecode5 = 0 ;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 PyObject * obj2 = 0 ;
19066 PyObject * obj3 = 0 ;
19067 PyObject * obj4 = 0 ;
19068 char * kwnames[] = {
19069 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19070 };
19071
19072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19074 if (!SWIG_IsOK(res1)) {
19075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19076 }
19077 arg1 = reinterpret_cast< wxDC * >(argp1);
19078 {
19079 arg2 = &temp2;
19080 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19081 }
19082 {
19083 arg3 = &temp3;
19084 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19085 }
19086 ecode4 = SWIG_AsVal_double(obj3, &val4);
19087 if (!SWIG_IsOK(ecode4)) {
19088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19089 }
19090 arg4 = static_cast< double >(val4);
19091 ecode5 = SWIG_AsVal_double(obj4, &val5);
19092 if (!SWIG_IsOK(ecode5)) {
19093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19094 }
19095 arg5 = static_cast< double >(val5);
19096 {
19097 PyThreadState* __tstate = wxPyBeginAllowThreads();
19098 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19099 wxPyEndAllowThreads(__tstate);
19100 if (PyErr_Occurred()) SWIG_fail;
19101 }
19102 resultobj = SWIG_Py_Void();
19103 return resultobj;
19104fail:
19105 return NULL;
19106}
19107
19108
19109SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19110 PyObject *resultobj = 0;
19111 wxDC *arg1 = (wxDC *) 0 ;
19112 int arg2 ;
19113 int arg3 ;
19114 void *argp1 = 0 ;
19115 int res1 = 0 ;
19116 int val2 ;
19117 int ecode2 = 0 ;
19118 int val3 ;
19119 int ecode3 = 0 ;
19120 PyObject * obj0 = 0 ;
19121 PyObject * obj1 = 0 ;
19122 PyObject * obj2 = 0 ;
19123 char * kwnames[] = {
19124 (char *) "self",(char *) "x",(char *) "y", NULL
19125 };
19126
19127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19129 if (!SWIG_IsOK(res1)) {
19130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19131 }
19132 arg1 = reinterpret_cast< wxDC * >(argp1);
19133 ecode2 = SWIG_AsVal_int(obj1, &val2);
19134 if (!SWIG_IsOK(ecode2)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19136 }
19137 arg2 = static_cast< int >(val2);
19138 ecode3 = SWIG_AsVal_int(obj2, &val3);
19139 if (!SWIG_IsOK(ecode3)) {
19140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19141 }
19142 arg3 = static_cast< int >(val3);
19143 {
19144 PyThreadState* __tstate = wxPyBeginAllowThreads();
19145 (arg1)->DrawPoint(arg2,arg3);
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 resultobj = SWIG_Py_Void();
19150 return resultobj;
19151fail:
19152 return NULL;
19153}
19154
19155
19156SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19157 PyObject *resultobj = 0;
19158 wxDC *arg1 = (wxDC *) 0 ;
19159 wxPoint *arg2 = 0 ;
19160 void *argp1 = 0 ;
19161 int res1 = 0 ;
19162 wxPoint temp2 ;
19163 PyObject * obj0 = 0 ;
19164 PyObject * obj1 = 0 ;
19165 char * kwnames[] = {
19166 (char *) "self",(char *) "pt", NULL
19167 };
19168
19169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19171 if (!SWIG_IsOK(res1)) {
19172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19173 }
19174 arg1 = reinterpret_cast< wxDC * >(argp1);
19175 {
19176 arg2 = &temp2;
19177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19178 }
19179 {
19180 PyThreadState* __tstate = wxPyBeginAllowThreads();
19181 (arg1)->DrawPoint((wxPoint const &)*arg2);
19182 wxPyEndAllowThreads(__tstate);
19183 if (PyErr_Occurred()) SWIG_fail;
19184 }
19185 resultobj = SWIG_Py_Void();
19186 return resultobj;
19187fail:
19188 return NULL;
19189}
19190
19191
19192SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19193 PyObject *resultobj = 0;
19194 wxDC *arg1 = (wxDC *) 0 ;
19195 int arg2 ;
19196 int arg3 ;
19197 int arg4 ;
19198 int arg5 ;
19199 void *argp1 = 0 ;
19200 int res1 = 0 ;
19201 int val2 ;
19202 int ecode2 = 0 ;
19203 int val3 ;
19204 int ecode3 = 0 ;
19205 int val4 ;
19206 int ecode4 = 0 ;
19207 int val5 ;
19208 int ecode5 = 0 ;
19209 PyObject * obj0 = 0 ;
19210 PyObject * obj1 = 0 ;
19211 PyObject * obj2 = 0 ;
19212 PyObject * obj3 = 0 ;
19213 PyObject * obj4 = 0 ;
19214 char * kwnames[] = {
19215 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19216 };
19217
19218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19220 if (!SWIG_IsOK(res1)) {
19221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19222 }
19223 arg1 = reinterpret_cast< wxDC * >(argp1);
19224 ecode2 = SWIG_AsVal_int(obj1, &val2);
19225 if (!SWIG_IsOK(ecode2)) {
19226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19227 }
19228 arg2 = static_cast< int >(val2);
19229 ecode3 = SWIG_AsVal_int(obj2, &val3);
19230 if (!SWIG_IsOK(ecode3)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19232 }
19233 arg3 = static_cast< int >(val3);
19234 ecode4 = SWIG_AsVal_int(obj3, &val4);
19235 if (!SWIG_IsOK(ecode4)) {
19236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19237 }
19238 arg4 = static_cast< int >(val4);
19239 ecode5 = SWIG_AsVal_int(obj4, &val5);
19240 if (!SWIG_IsOK(ecode5)) {
19241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19242 }
19243 arg5 = static_cast< int >(val5);
19244 {
19245 PyThreadState* __tstate = wxPyBeginAllowThreads();
19246 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19247 wxPyEndAllowThreads(__tstate);
19248 if (PyErr_Occurred()) SWIG_fail;
19249 }
19250 resultobj = SWIG_Py_Void();
19251 return resultobj;
19252fail:
19253 return NULL;
19254}
19255
19256
19257SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj = 0;
19259 wxDC *arg1 = (wxDC *) 0 ;
19260 wxRect *arg2 = 0 ;
19261 void *argp1 = 0 ;
19262 int res1 = 0 ;
19263 wxRect temp2 ;
19264 PyObject * obj0 = 0 ;
19265 PyObject * obj1 = 0 ;
19266 char * kwnames[] = {
19267 (char *) "self",(char *) "rect", NULL
19268 };
19269
19270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19272 if (!SWIG_IsOK(res1)) {
19273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19274 }
19275 arg1 = reinterpret_cast< wxDC * >(argp1);
19276 {
19277 arg2 = &temp2;
19278 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19279 }
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 (arg1)->DrawRectangle((wxRect const &)*arg2);
19283 wxPyEndAllowThreads(__tstate);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 resultobj = SWIG_Py_Void();
19287 return resultobj;
19288fail:
19289 return NULL;
19290}
19291
19292
19293SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19294 PyObject *resultobj = 0;
19295 wxDC *arg1 = (wxDC *) 0 ;
19296 wxPoint *arg2 = 0 ;
19297 wxSize *arg3 = 0 ;
19298 void *argp1 = 0 ;
19299 int res1 = 0 ;
19300 wxPoint temp2 ;
19301 wxSize temp3 ;
19302 PyObject * obj0 = 0 ;
19303 PyObject * obj1 = 0 ;
19304 PyObject * obj2 = 0 ;
19305 char * kwnames[] = {
19306 (char *) "self",(char *) "pt",(char *) "sz", NULL
19307 };
19308
19309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19311 if (!SWIG_IsOK(res1)) {
19312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19313 }
19314 arg1 = reinterpret_cast< wxDC * >(argp1);
19315 {
19316 arg2 = &temp2;
19317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19318 }
19319 {
19320 arg3 = &temp3;
19321 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19322 }
19323 {
19324 PyThreadState* __tstate = wxPyBeginAllowThreads();
19325 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19326 wxPyEndAllowThreads(__tstate);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 resultobj = SWIG_Py_Void();
19330 return resultobj;
19331fail:
19332 return NULL;
19333}
19334
19335
19336SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19337 PyObject *resultobj = 0;
19338 wxDC *arg1 = (wxDC *) 0 ;
19339 int arg2 ;
19340 int arg3 ;
19341 int arg4 ;
19342 int arg5 ;
19343 double arg6 ;
19344 void *argp1 = 0 ;
19345 int res1 = 0 ;
19346 int val2 ;
19347 int ecode2 = 0 ;
19348 int val3 ;
19349 int ecode3 = 0 ;
19350 int val4 ;
19351 int ecode4 = 0 ;
19352 int val5 ;
19353 int ecode5 = 0 ;
19354 double val6 ;
19355 int ecode6 = 0 ;
19356 PyObject * obj0 = 0 ;
19357 PyObject * obj1 = 0 ;
19358 PyObject * obj2 = 0 ;
19359 PyObject * obj3 = 0 ;
19360 PyObject * obj4 = 0 ;
19361 PyObject * obj5 = 0 ;
19362 char * kwnames[] = {
19363 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19364 };
19365
19366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19368 if (!SWIG_IsOK(res1)) {
19369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19370 }
19371 arg1 = reinterpret_cast< wxDC * >(argp1);
19372 ecode2 = SWIG_AsVal_int(obj1, &val2);
19373 if (!SWIG_IsOK(ecode2)) {
19374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19375 }
19376 arg2 = static_cast< int >(val2);
19377 ecode3 = SWIG_AsVal_int(obj2, &val3);
19378 if (!SWIG_IsOK(ecode3)) {
19379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19380 }
19381 arg3 = static_cast< int >(val3);
19382 ecode4 = SWIG_AsVal_int(obj3, &val4);
19383 if (!SWIG_IsOK(ecode4)) {
19384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19385 }
19386 arg4 = static_cast< int >(val4);
19387 ecode5 = SWIG_AsVal_int(obj4, &val5);
19388 if (!SWIG_IsOK(ecode5)) {
19389 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19390 }
19391 arg5 = static_cast< int >(val5);
19392 ecode6 = SWIG_AsVal_double(obj5, &val6);
19393 if (!SWIG_IsOK(ecode6)) {
19394 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19395 }
19396 arg6 = static_cast< double >(val6);
19397 {
19398 PyThreadState* __tstate = wxPyBeginAllowThreads();
19399 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19400 wxPyEndAllowThreads(__tstate);
19401 if (PyErr_Occurred()) SWIG_fail;
19402 }
19403 resultobj = SWIG_Py_Void();
19404 return resultobj;
19405fail:
19406 return NULL;
19407}
19408
19409
19410SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19411 PyObject *resultobj = 0;
19412 wxDC *arg1 = (wxDC *) 0 ;
19413 wxRect *arg2 = 0 ;
19414 double arg3 ;
19415 void *argp1 = 0 ;
19416 int res1 = 0 ;
19417 wxRect temp2 ;
19418 double val3 ;
19419 int ecode3 = 0 ;
19420 PyObject * obj0 = 0 ;
19421 PyObject * obj1 = 0 ;
19422 PyObject * obj2 = 0 ;
19423 char * kwnames[] = {
19424 (char *) "self",(char *) "r",(char *) "radius", NULL
19425 };
19426
19427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19429 if (!SWIG_IsOK(res1)) {
19430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19431 }
19432 arg1 = reinterpret_cast< wxDC * >(argp1);
19433 {
19434 arg2 = &temp2;
19435 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19436 }
19437 ecode3 = SWIG_AsVal_double(obj2, &val3);
19438 if (!SWIG_IsOK(ecode3)) {
19439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19440 }
19441 arg3 = static_cast< double >(val3);
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19445 wxPyEndAllowThreads(__tstate);
19446 if (PyErr_Occurred()) SWIG_fail;
19447 }
19448 resultobj = SWIG_Py_Void();
19449 return resultobj;
19450fail:
19451 return NULL;
19452}
19453
19454
19455SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19456 PyObject *resultobj = 0;
19457 wxDC *arg1 = (wxDC *) 0 ;
19458 wxPoint *arg2 = 0 ;
19459 wxSize *arg3 = 0 ;
19460 double arg4 ;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 wxPoint temp2 ;
19464 wxSize temp3 ;
19465 double val4 ;
19466 int ecode4 = 0 ;
19467 PyObject * obj0 = 0 ;
19468 PyObject * obj1 = 0 ;
19469 PyObject * obj2 = 0 ;
19470 PyObject * obj3 = 0 ;
19471 char * kwnames[] = {
19472 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19473 };
19474
19475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19477 if (!SWIG_IsOK(res1)) {
19478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19479 }
19480 arg1 = reinterpret_cast< wxDC * >(argp1);
19481 {
19482 arg2 = &temp2;
19483 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19484 }
19485 {
19486 arg3 = &temp3;
19487 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19488 }
19489 ecode4 = SWIG_AsVal_double(obj3, &val4);
19490 if (!SWIG_IsOK(ecode4)) {
19491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19492 }
19493 arg4 = static_cast< double >(val4);
19494 {
19495 PyThreadState* __tstate = wxPyBeginAllowThreads();
19496 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19497 wxPyEndAllowThreads(__tstate);
19498 if (PyErr_Occurred()) SWIG_fail;
19499 }
19500 resultobj = SWIG_Py_Void();
19501 return resultobj;
19502fail:
19503 return NULL;
19504}
19505
19506
19507SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj = 0;
19509 wxDC *arg1 = (wxDC *) 0 ;
19510 int arg2 ;
19511 int arg3 ;
19512 int arg4 ;
19513 void *argp1 = 0 ;
19514 int res1 = 0 ;
19515 int val2 ;
19516 int ecode2 = 0 ;
19517 int val3 ;
19518 int ecode3 = 0 ;
19519 int val4 ;
19520 int ecode4 = 0 ;
19521 PyObject * obj0 = 0 ;
19522 PyObject * obj1 = 0 ;
19523 PyObject * obj2 = 0 ;
19524 PyObject * obj3 = 0 ;
19525 char * kwnames[] = {
19526 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19527 };
19528
19529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19531 if (!SWIG_IsOK(res1)) {
19532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19533 }
19534 arg1 = reinterpret_cast< wxDC * >(argp1);
19535 ecode2 = SWIG_AsVal_int(obj1, &val2);
19536 if (!SWIG_IsOK(ecode2)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19538 }
19539 arg2 = static_cast< int >(val2);
19540 ecode3 = SWIG_AsVal_int(obj2, &val3);
19541 if (!SWIG_IsOK(ecode3)) {
19542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19543 }
19544 arg3 = static_cast< int >(val3);
19545 ecode4 = SWIG_AsVal_int(obj3, &val4);
19546 if (!SWIG_IsOK(ecode4)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19548 }
19549 arg4 = static_cast< int >(val4);
19550 {
19551 PyThreadState* __tstate = wxPyBeginAllowThreads();
19552 (arg1)->DrawCircle(arg2,arg3,arg4);
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 resultobj = SWIG_Py_Void();
19557 return resultobj;
19558fail:
19559 return NULL;
19560}
19561
19562
19563SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19564 PyObject *resultobj = 0;
19565 wxDC *arg1 = (wxDC *) 0 ;
19566 wxPoint *arg2 = 0 ;
19567 int arg3 ;
19568 void *argp1 = 0 ;
19569 int res1 = 0 ;
19570 wxPoint temp2 ;
19571 int val3 ;
19572 int ecode3 = 0 ;
19573 PyObject * obj0 = 0 ;
19574 PyObject * obj1 = 0 ;
19575 PyObject * obj2 = 0 ;
19576 char * kwnames[] = {
19577 (char *) "self",(char *) "pt",(char *) "radius", NULL
19578 };
19579
19580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19582 if (!SWIG_IsOK(res1)) {
19583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19584 }
19585 arg1 = reinterpret_cast< wxDC * >(argp1);
19586 {
19587 arg2 = &temp2;
19588 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19589 }
19590 ecode3 = SWIG_AsVal_int(obj2, &val3);
19591 if (!SWIG_IsOK(ecode3)) {
19592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19593 }
19594 arg3 = static_cast< int >(val3);
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_Py_Void();
19602 return resultobj;
19603fail:
19604 return NULL;
19605}
19606
19607
19608SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj = 0;
19610 wxDC *arg1 = (wxDC *) 0 ;
19611 int arg2 ;
19612 int arg3 ;
19613 int arg4 ;
19614 int arg5 ;
19615 void *argp1 = 0 ;
19616 int res1 = 0 ;
19617 int val2 ;
19618 int ecode2 = 0 ;
19619 int val3 ;
19620 int ecode3 = 0 ;
19621 int val4 ;
19622 int ecode4 = 0 ;
19623 int val5 ;
19624 int ecode5 = 0 ;
19625 PyObject * obj0 = 0 ;
19626 PyObject * obj1 = 0 ;
19627 PyObject * obj2 = 0 ;
19628 PyObject * obj3 = 0 ;
19629 PyObject * obj4 = 0 ;
19630 char * kwnames[] = {
19631 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19632 };
19633
19634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19638 }
19639 arg1 = reinterpret_cast< wxDC * >(argp1);
19640 ecode2 = SWIG_AsVal_int(obj1, &val2);
19641 if (!SWIG_IsOK(ecode2)) {
19642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19643 }
19644 arg2 = static_cast< int >(val2);
19645 ecode3 = SWIG_AsVal_int(obj2, &val3);
19646 if (!SWIG_IsOK(ecode3)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19648 }
19649 arg3 = static_cast< int >(val3);
19650 ecode4 = SWIG_AsVal_int(obj3, &val4);
19651 if (!SWIG_IsOK(ecode4)) {
19652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19653 }
19654 arg4 = static_cast< int >(val4);
19655 ecode5 = SWIG_AsVal_int(obj4, &val5);
19656 if (!SWIG_IsOK(ecode5)) {
19657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19658 }
19659 arg5 = static_cast< int >(val5);
19660 {
19661 PyThreadState* __tstate = wxPyBeginAllowThreads();
19662 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_Py_Void();
19667 return resultobj;
19668fail:
19669 return NULL;
19670}
19671
19672
19673SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj = 0;
19675 wxDC *arg1 = (wxDC *) 0 ;
19676 wxRect *arg2 = 0 ;
19677 void *argp1 = 0 ;
19678 int res1 = 0 ;
19679 wxRect temp2 ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 char * kwnames[] = {
19683 (char *) "self",(char *) "rect", NULL
19684 };
19685
19686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19688 if (!SWIG_IsOK(res1)) {
19689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19690 }
19691 arg1 = reinterpret_cast< wxDC * >(argp1);
19692 {
19693 arg2 = &temp2;
19694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19695 }
19696 {
19697 PyThreadState* __tstate = wxPyBeginAllowThreads();
19698 (arg1)->DrawEllipse((wxRect const &)*arg2);
19699 wxPyEndAllowThreads(__tstate);
19700 if (PyErr_Occurred()) SWIG_fail;
19701 }
19702 resultobj = SWIG_Py_Void();
19703 return resultobj;
19704fail:
19705 return NULL;
19706}
19707
19708
19709SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19710 PyObject *resultobj = 0;
19711 wxDC *arg1 = (wxDC *) 0 ;
19712 wxPoint *arg2 = 0 ;
19713 wxSize *arg3 = 0 ;
19714 void *argp1 = 0 ;
19715 int res1 = 0 ;
19716 wxPoint temp2 ;
19717 wxSize temp3 ;
19718 PyObject * obj0 = 0 ;
19719 PyObject * obj1 = 0 ;
19720 PyObject * obj2 = 0 ;
19721 char * kwnames[] = {
19722 (char *) "self",(char *) "pt",(char *) "sz", NULL
19723 };
19724
19725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19727 if (!SWIG_IsOK(res1)) {
19728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19729 }
19730 arg1 = reinterpret_cast< wxDC * >(argp1);
19731 {
19732 arg2 = &temp2;
19733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19734 }
19735 {
19736 arg3 = &temp3;
19737 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19738 }
19739 {
19740 PyThreadState* __tstate = wxPyBeginAllowThreads();
19741 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19742 wxPyEndAllowThreads(__tstate);
19743 if (PyErr_Occurred()) SWIG_fail;
19744 }
19745 resultobj = SWIG_Py_Void();
19746 return resultobj;
19747fail:
19748 return NULL;
19749}
19750
19751
19752SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19753 PyObject *resultobj = 0;
19754 wxDC *arg1 = (wxDC *) 0 ;
19755 wxIcon *arg2 = 0 ;
19756 int arg3 ;
19757 int arg4 ;
19758 void *argp1 = 0 ;
19759 int res1 = 0 ;
19760 void *argp2 = 0 ;
19761 int res2 = 0 ;
19762 int val3 ;
19763 int ecode3 = 0 ;
19764 int val4 ;
19765 int ecode4 = 0 ;
19766 PyObject * obj0 = 0 ;
19767 PyObject * obj1 = 0 ;
19768 PyObject * obj2 = 0 ;
19769 PyObject * obj3 = 0 ;
19770 char * kwnames[] = {
19771 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19772 };
19773
19774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19776 if (!SWIG_IsOK(res1)) {
19777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19778 }
19779 arg1 = reinterpret_cast< wxDC * >(argp1);
19780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19781 if (!SWIG_IsOK(res2)) {
19782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19783 }
19784 if (!argp2) {
19785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19786 }
19787 arg2 = reinterpret_cast< wxIcon * >(argp2);
19788 ecode3 = SWIG_AsVal_int(obj2, &val3);
19789 if (!SWIG_IsOK(ecode3)) {
19790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19791 }
19792 arg3 = static_cast< int >(val3);
19793 ecode4 = SWIG_AsVal_int(obj3, &val4);
19794 if (!SWIG_IsOK(ecode4)) {
19795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19796 }
19797 arg4 = static_cast< int >(val4);
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 resultobj = SWIG_Py_Void();
19805 return resultobj;
19806fail:
19807 return NULL;
19808}
19809
19810
19811SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19812 PyObject *resultobj = 0;
19813 wxDC *arg1 = (wxDC *) 0 ;
19814 wxIcon *arg2 = 0 ;
19815 wxPoint *arg3 = 0 ;
19816 void *argp1 = 0 ;
19817 int res1 = 0 ;
19818 void *argp2 = 0 ;
19819 int res2 = 0 ;
19820 wxPoint temp3 ;
19821 PyObject * obj0 = 0 ;
19822 PyObject * obj1 = 0 ;
19823 PyObject * obj2 = 0 ;
19824 char * kwnames[] = {
19825 (char *) "self",(char *) "icon",(char *) "pt", NULL
19826 };
19827
19828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19830 if (!SWIG_IsOK(res1)) {
19831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19832 }
19833 arg1 = reinterpret_cast< wxDC * >(argp1);
19834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19835 if (!SWIG_IsOK(res2)) {
19836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19837 }
19838 if (!argp2) {
19839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19840 }
19841 arg2 = reinterpret_cast< wxIcon * >(argp2);
19842 {
19843 arg3 = &temp3;
19844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19845 }
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
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_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 wxBitmap *arg2 = 0 ;
19863 int arg3 ;
19864 int arg4 ;
19865 bool arg5 = (bool) false ;
19866 void *argp1 = 0 ;
19867 int res1 = 0 ;
19868 void *argp2 = 0 ;
19869 int res2 = 0 ;
19870 int val3 ;
19871 int ecode3 = 0 ;
19872 int val4 ;
19873 int ecode4 = 0 ;
19874 bool val5 ;
19875 int ecode5 = 0 ;
19876 PyObject * obj0 = 0 ;
19877 PyObject * obj1 = 0 ;
19878 PyObject * obj2 = 0 ;
19879 PyObject * obj3 = 0 ;
19880 PyObject * obj4 = 0 ;
19881 char * kwnames[] = {
19882 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19883 };
19884
19885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19887 if (!SWIG_IsOK(res1)) {
19888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19889 }
19890 arg1 = reinterpret_cast< wxDC * >(argp1);
19891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19892 if (!SWIG_IsOK(res2)) {
19893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19894 }
19895 if (!argp2) {
19896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19897 }
19898 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19899 ecode3 = SWIG_AsVal_int(obj2, &val3);
19900 if (!SWIG_IsOK(ecode3)) {
19901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19902 }
19903 arg3 = static_cast< int >(val3);
19904 ecode4 = SWIG_AsVal_int(obj3, &val4);
19905 if (!SWIG_IsOK(ecode4)) {
19906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19907 }
19908 arg4 = static_cast< int >(val4);
19909 if (obj4) {
19910 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19911 if (!SWIG_IsOK(ecode5)) {
19912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19913 }
19914 arg5 = static_cast< bool >(val5);
19915 }
19916 {
19917 PyThreadState* __tstate = wxPyBeginAllowThreads();
19918 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19919 wxPyEndAllowThreads(__tstate);
19920 if (PyErr_Occurred()) SWIG_fail;
19921 }
19922 resultobj = SWIG_Py_Void();
19923 return resultobj;
19924fail:
19925 return NULL;
19926}
19927
19928
19929SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19930 PyObject *resultobj = 0;
19931 wxDC *arg1 = (wxDC *) 0 ;
19932 wxBitmap *arg2 = 0 ;
19933 wxPoint *arg3 = 0 ;
19934 bool arg4 = (bool) false ;
19935 void *argp1 = 0 ;
19936 int res1 = 0 ;
19937 void *argp2 = 0 ;
19938 int res2 = 0 ;
19939 wxPoint temp3 ;
19940 bool val4 ;
19941 int ecode4 = 0 ;
19942 PyObject * obj0 = 0 ;
19943 PyObject * obj1 = 0 ;
19944 PyObject * obj2 = 0 ;
19945 PyObject * obj3 = 0 ;
19946 char * kwnames[] = {
19947 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19948 };
19949
19950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19952 if (!SWIG_IsOK(res1)) {
19953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19954 }
19955 arg1 = reinterpret_cast< wxDC * >(argp1);
19956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19957 if (!SWIG_IsOK(res2)) {
19958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19959 }
19960 if (!argp2) {
19961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19962 }
19963 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19964 {
19965 arg3 = &temp3;
19966 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19967 }
19968 if (obj3) {
19969 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19970 if (!SWIG_IsOK(ecode4)) {
19971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19972 }
19973 arg4 = static_cast< bool >(val4);
19974 }
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
19981 resultobj = SWIG_Py_Void();
19982 return resultobj;
19983fail:
19984 return NULL;
19985}
19986
19987
19988SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj = 0;
19990 wxDC *arg1 = (wxDC *) 0 ;
19991 wxString *arg2 = 0 ;
19992 int arg3 ;
19993 int arg4 ;
19994 void *argp1 = 0 ;
19995 int res1 = 0 ;
19996 bool temp2 = false ;
19997 int val3 ;
19998 int ecode3 = 0 ;
19999 int val4 ;
20000 int ecode4 = 0 ;
20001 PyObject * obj0 = 0 ;
20002 PyObject * obj1 = 0 ;
20003 PyObject * obj2 = 0 ;
20004 PyObject * obj3 = 0 ;
20005 char * kwnames[] = {
20006 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20007 };
20008
20009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20011 if (!SWIG_IsOK(res1)) {
20012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20013 }
20014 arg1 = reinterpret_cast< wxDC * >(argp1);
20015 {
20016 arg2 = wxString_in_helper(obj1);
20017 if (arg2 == NULL) SWIG_fail;
20018 temp2 = true;
20019 }
20020 ecode3 = SWIG_AsVal_int(obj2, &val3);
20021 if (!SWIG_IsOK(ecode3)) {
20022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20023 }
20024 arg3 = static_cast< int >(val3);
20025 ecode4 = SWIG_AsVal_int(obj3, &val4);
20026 if (!SWIG_IsOK(ecode4)) {
20027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20028 }
20029 arg4 = static_cast< int >(val4);
20030 {
20031 PyThreadState* __tstate = wxPyBeginAllowThreads();
20032 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20033 wxPyEndAllowThreads(__tstate);
20034 if (PyErr_Occurred()) SWIG_fail;
20035 }
20036 resultobj = SWIG_Py_Void();
20037 {
20038 if (temp2)
20039 delete arg2;
20040 }
20041 return resultobj;
20042fail:
20043 {
20044 if (temp2)
20045 delete arg2;
20046 }
20047 return NULL;
20048}
20049
20050
20051SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20052 PyObject *resultobj = 0;
20053 wxDC *arg1 = (wxDC *) 0 ;
20054 wxString *arg2 = 0 ;
20055 wxPoint *arg3 = 0 ;
20056 void *argp1 = 0 ;
20057 int res1 = 0 ;
20058 bool temp2 = false ;
20059 wxPoint temp3 ;
20060 PyObject * obj0 = 0 ;
20061 PyObject * obj1 = 0 ;
20062 PyObject * obj2 = 0 ;
20063 char * kwnames[] = {
20064 (char *) "self",(char *) "text",(char *) "pt", NULL
20065 };
20066
20067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20069 if (!SWIG_IsOK(res1)) {
20070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20071 }
20072 arg1 = reinterpret_cast< wxDC * >(argp1);
20073 {
20074 arg2 = wxString_in_helper(obj1);
20075 if (arg2 == NULL) SWIG_fail;
20076 temp2 = true;
20077 }
20078 {
20079 arg3 = &temp3;
20080 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20081 }
20082 {
20083 PyThreadState* __tstate = wxPyBeginAllowThreads();
20084 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 resultobj = SWIG_Py_Void();
20089 {
20090 if (temp2)
20091 delete arg2;
20092 }
20093 return resultobj;
20094fail:
20095 {
20096 if (temp2)
20097 delete arg2;
20098 }
20099 return NULL;
20100}
20101
20102
20103SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20104 PyObject *resultobj = 0;
20105 wxDC *arg1 = (wxDC *) 0 ;
20106 wxString *arg2 = 0 ;
20107 int arg3 ;
20108 int arg4 ;
20109 double arg5 ;
20110 void *argp1 = 0 ;
20111 int res1 = 0 ;
20112 bool temp2 = false ;
20113 int val3 ;
20114 int ecode3 = 0 ;
20115 int val4 ;
20116 int ecode4 = 0 ;
20117 double val5 ;
20118 int ecode5 = 0 ;
20119 PyObject * obj0 = 0 ;
20120 PyObject * obj1 = 0 ;
20121 PyObject * obj2 = 0 ;
20122 PyObject * obj3 = 0 ;
20123 PyObject * obj4 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20132 }
20133 arg1 = reinterpret_cast< wxDC * >(argp1);
20134 {
20135 arg2 = wxString_in_helper(obj1);
20136 if (arg2 == NULL) SWIG_fail;
20137 temp2 = true;
20138 }
20139 ecode3 = SWIG_AsVal_int(obj2, &val3);
20140 if (!SWIG_IsOK(ecode3)) {
20141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20142 }
20143 arg3 = static_cast< int >(val3);
20144 ecode4 = SWIG_AsVal_int(obj3, &val4);
20145 if (!SWIG_IsOK(ecode4)) {
20146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20147 }
20148 arg4 = static_cast< int >(val4);
20149 ecode5 = SWIG_AsVal_double(obj4, &val5);
20150 if (!SWIG_IsOK(ecode5)) {
20151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20152 }
20153 arg5 = static_cast< double >(val5);
20154 {
20155 PyThreadState* __tstate = wxPyBeginAllowThreads();
20156 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20157 wxPyEndAllowThreads(__tstate);
20158 if (PyErr_Occurred()) SWIG_fail;
20159 }
20160 resultobj = SWIG_Py_Void();
20161 {
20162 if (temp2)
20163 delete arg2;
20164 }
20165 return resultobj;
20166fail:
20167 {
20168 if (temp2)
20169 delete arg2;
20170 }
20171 return NULL;
20172}
20173
20174
20175SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20176 PyObject *resultobj = 0;
20177 wxDC *arg1 = (wxDC *) 0 ;
20178 wxString *arg2 = 0 ;
20179 wxPoint *arg3 = 0 ;
20180 double arg4 ;
20181 void *argp1 = 0 ;
20182 int res1 = 0 ;
20183 bool temp2 = false ;
20184 wxPoint temp3 ;
20185 double val4 ;
20186 int ecode4 = 0 ;
20187 PyObject * obj0 = 0 ;
20188 PyObject * obj1 = 0 ;
20189 PyObject * obj2 = 0 ;
20190 PyObject * obj3 = 0 ;
20191 char * kwnames[] = {
20192 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20193 };
20194
20195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20197 if (!SWIG_IsOK(res1)) {
20198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20199 }
20200 arg1 = reinterpret_cast< wxDC * >(argp1);
20201 {
20202 arg2 = wxString_in_helper(obj1);
20203 if (arg2 == NULL) SWIG_fail;
20204 temp2 = true;
20205 }
20206 {
20207 arg3 = &temp3;
20208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20209 }
20210 ecode4 = SWIG_AsVal_double(obj3, &val4);
20211 if (!SWIG_IsOK(ecode4)) {
20212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20213 }
20214 arg4 = static_cast< double >(val4);
20215 {
20216 PyThreadState* __tstate = wxPyBeginAllowThreads();
20217 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20218 wxPyEndAllowThreads(__tstate);
20219 if (PyErr_Occurred()) SWIG_fail;
20220 }
20221 resultobj = SWIG_Py_Void();
20222 {
20223 if (temp2)
20224 delete arg2;
20225 }
20226 return resultobj;
20227fail:
20228 {
20229 if (temp2)
20230 delete arg2;
20231 }
20232 return NULL;
20233}
20234
20235
20236SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20237 PyObject *resultobj = 0;
20238 wxDC *arg1 = (wxDC *) 0 ;
20239 int arg2 ;
20240 int arg3 ;
20241 int arg4 ;
20242 int arg5 ;
20243 wxDC *arg6 = (wxDC *) 0 ;
20244 int arg7 ;
20245 int arg8 ;
20246 int arg9 = (int) wxCOPY ;
20247 bool arg10 = (bool) false ;
20248 int arg11 = (int) -1 ;
20249 int arg12 = (int) -1 ;
20250 bool result;
20251 void *argp1 = 0 ;
20252 int res1 = 0 ;
20253 int val2 ;
20254 int ecode2 = 0 ;
20255 int val3 ;
20256 int ecode3 = 0 ;
20257 int val4 ;
20258 int ecode4 = 0 ;
20259 int val5 ;
20260 int ecode5 = 0 ;
20261 void *argp6 = 0 ;
20262 int res6 = 0 ;
20263 int val7 ;
20264 int ecode7 = 0 ;
20265 int val8 ;
20266 int ecode8 = 0 ;
20267 int val9 ;
20268 int ecode9 = 0 ;
20269 bool val10 ;
20270 int ecode10 = 0 ;
20271 int val11 ;
20272 int ecode11 = 0 ;
20273 int val12 ;
20274 int ecode12 = 0 ;
20275 PyObject * obj0 = 0 ;
20276 PyObject * obj1 = 0 ;
20277 PyObject * obj2 = 0 ;
20278 PyObject * obj3 = 0 ;
20279 PyObject * obj4 = 0 ;
20280 PyObject * obj5 = 0 ;
20281 PyObject * obj6 = 0 ;
20282 PyObject * obj7 = 0 ;
20283 PyObject * obj8 = 0 ;
20284 PyObject * obj9 = 0 ;
20285 PyObject * obj10 = 0 ;
20286 PyObject * obj11 = 0 ;
20287 char * kwnames[] = {
20288 (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
20289 };
20290
20291 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;
20292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20293 if (!SWIG_IsOK(res1)) {
20294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20295 }
20296 arg1 = reinterpret_cast< wxDC * >(argp1);
20297 ecode2 = SWIG_AsVal_int(obj1, &val2);
20298 if (!SWIG_IsOK(ecode2)) {
20299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20300 }
20301 arg2 = static_cast< int >(val2);
20302 ecode3 = SWIG_AsVal_int(obj2, &val3);
20303 if (!SWIG_IsOK(ecode3)) {
20304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20305 }
20306 arg3 = static_cast< int >(val3);
20307 ecode4 = SWIG_AsVal_int(obj3, &val4);
20308 if (!SWIG_IsOK(ecode4)) {
20309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20310 }
20311 arg4 = static_cast< int >(val4);
20312 ecode5 = SWIG_AsVal_int(obj4, &val5);
20313 if (!SWIG_IsOK(ecode5)) {
20314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20315 }
20316 arg5 = static_cast< int >(val5);
20317 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20318 if (!SWIG_IsOK(res6)) {
20319 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20320 }
20321 arg6 = reinterpret_cast< wxDC * >(argp6);
20322 ecode7 = SWIG_AsVal_int(obj6, &val7);
20323 if (!SWIG_IsOK(ecode7)) {
20324 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20325 }
20326 arg7 = static_cast< int >(val7);
20327 ecode8 = SWIG_AsVal_int(obj7, &val8);
20328 if (!SWIG_IsOK(ecode8)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20330 }
20331 arg8 = static_cast< int >(val8);
20332 if (obj8) {
20333 ecode9 = SWIG_AsVal_int(obj8, &val9);
20334 if (!SWIG_IsOK(ecode9)) {
20335 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20336 }
20337 arg9 = static_cast< int >(val9);
20338 }
20339 if (obj9) {
20340 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20341 if (!SWIG_IsOK(ecode10)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20343 }
20344 arg10 = static_cast< bool >(val10);
20345 }
20346 if (obj10) {
20347 ecode11 = SWIG_AsVal_int(obj10, &val11);
20348 if (!SWIG_IsOK(ecode11)) {
20349 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20350 }
20351 arg11 = static_cast< int >(val11);
20352 }
20353 if (obj11) {
20354 ecode12 = SWIG_AsVal_int(obj11, &val12);
20355 if (!SWIG_IsOK(ecode12)) {
20356 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20357 }
20358 arg12 = static_cast< int >(val12);
20359 }
20360 {
20361 PyThreadState* __tstate = wxPyBeginAllowThreads();
20362 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20363 wxPyEndAllowThreads(__tstate);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 }
20366 {
20367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20368 }
20369 return resultobj;
20370fail:
20371 return NULL;
20372}
20373
20374
20375SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20376 PyObject *resultobj = 0;
20377 wxDC *arg1 = (wxDC *) 0 ;
20378 wxPoint *arg2 = 0 ;
20379 wxSize *arg3 = 0 ;
20380 wxDC *arg4 = (wxDC *) 0 ;
20381 wxPoint *arg5 = 0 ;
20382 int arg6 = (int) wxCOPY ;
20383 bool arg7 = (bool) false ;
20384 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20385 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20386 bool result;
20387 void *argp1 = 0 ;
20388 int res1 = 0 ;
20389 wxPoint temp2 ;
20390 wxSize temp3 ;
20391 void *argp4 = 0 ;
20392 int res4 = 0 ;
20393 wxPoint temp5 ;
20394 int val6 ;
20395 int ecode6 = 0 ;
20396 bool val7 ;
20397 int ecode7 = 0 ;
20398 wxPoint temp8 ;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 PyObject * obj2 = 0 ;
20402 PyObject * obj3 = 0 ;
20403 PyObject * obj4 = 0 ;
20404 PyObject * obj5 = 0 ;
20405 PyObject * obj6 = 0 ;
20406 PyObject * obj7 = 0 ;
20407 char * kwnames[] = {
20408 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20409 };
20410
20411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20413 if (!SWIG_IsOK(res1)) {
20414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20415 }
20416 arg1 = reinterpret_cast< wxDC * >(argp1);
20417 {
20418 arg2 = &temp2;
20419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20420 }
20421 {
20422 arg3 = &temp3;
20423 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20424 }
20425 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20426 if (!SWIG_IsOK(res4)) {
20427 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20428 }
20429 arg4 = reinterpret_cast< wxDC * >(argp4);
20430 {
20431 arg5 = &temp5;
20432 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20433 }
20434 if (obj5) {
20435 ecode6 = SWIG_AsVal_int(obj5, &val6);
20436 if (!SWIG_IsOK(ecode6)) {
20437 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20438 }
20439 arg6 = static_cast< int >(val6);
20440 }
20441 if (obj6) {
20442 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20443 if (!SWIG_IsOK(ecode7)) {
20444 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20445 }
20446 arg7 = static_cast< bool >(val7);
20447 }
20448 if (obj7) {
093d3ff1 20449 {
554f62e9
RD
20450 arg8 = &temp8;
20451 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20452 }
554f62e9
RD
20453 }
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 {
20461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20462 }
20463 return resultobj;
20464fail:
20465 return NULL;
20466}
20467
20468
8f514ab4
RD
20469SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20470 PyObject *resultobj = 0;
20471 wxDC *arg1 = (wxDC *) 0 ;
20472 wxRect *arg2 = (wxRect *) NULL ;
20473 SwigValueWrapper<wxBitmap > result;
20474 void *argp1 = 0 ;
20475 int res1 = 0 ;
20476 void *argp2 = 0 ;
20477 int res2 = 0 ;
20478 PyObject * obj0 = 0 ;
20479 PyObject * obj1 = 0 ;
20480 char * kwnames[] = {
20481 (char *) "self",(char *) "subrect", NULL
20482 };
20483
20484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20486 if (!SWIG_IsOK(res1)) {
20487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20488 }
20489 arg1 = reinterpret_cast< wxDC * >(argp1);
20490 if (obj1) {
20491 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20492 if (!SWIG_IsOK(res2)) {
20493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20494 }
20495 arg2 = reinterpret_cast< wxRect * >(argp2);
20496 }
20497 {
20498 PyThreadState* __tstate = wxPyBeginAllowThreads();
20499 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20500 wxPyEndAllowThreads(__tstate);
20501 if (PyErr_Occurred()) SWIG_fail;
20502 }
20503 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20504 return resultobj;
20505fail:
20506 return NULL;
20507}
20508
20509
554f62e9
RD
20510SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20511 PyObject *resultobj = 0;
20512 wxDC *arg1 = (wxDC *) 0 ;
20513 int arg2 ;
20514 int arg3 ;
20515 int arg4 ;
20516 int arg5 ;
20517 void *argp1 = 0 ;
20518 int res1 = 0 ;
20519 int val2 ;
20520 int ecode2 = 0 ;
20521 int val3 ;
20522 int ecode3 = 0 ;
20523 int val4 ;
20524 int ecode4 = 0 ;
20525 int val5 ;
20526 int ecode5 = 0 ;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 PyObject * obj2 = 0 ;
20530 PyObject * obj3 = 0 ;
20531 PyObject * obj4 = 0 ;
20532 char * kwnames[] = {
20533 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20534 };
20535
20536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20538 if (!SWIG_IsOK(res1)) {
20539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20540 }
20541 arg1 = reinterpret_cast< wxDC * >(argp1);
20542 ecode2 = SWIG_AsVal_int(obj1, &val2);
20543 if (!SWIG_IsOK(ecode2)) {
20544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20545 }
20546 arg2 = static_cast< int >(val2);
20547 ecode3 = SWIG_AsVal_int(obj2, &val3);
20548 if (!SWIG_IsOK(ecode3)) {
20549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20550 }
20551 arg3 = static_cast< int >(val3);
20552 ecode4 = SWIG_AsVal_int(obj3, &val4);
20553 if (!SWIG_IsOK(ecode4)) {
20554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20555 }
20556 arg4 = static_cast< int >(val4);
20557 ecode5 = SWIG_AsVal_int(obj4, &val5);
20558 if (!SWIG_IsOK(ecode5)) {
20559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20560 }
20561 arg5 = static_cast< int >(val5);
20562 {
20563 PyThreadState* __tstate = wxPyBeginAllowThreads();
20564 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20565 wxPyEndAllowThreads(__tstate);
20566 if (PyErr_Occurred()) SWIG_fail;
20567 }
20568 resultobj = SWIG_Py_Void();
20569 return resultobj;
20570fail:
20571 return NULL;
20572}
20573
20574
20575SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20576 PyObject *resultobj = 0;
20577 wxDC *arg1 = (wxDC *) 0 ;
20578 wxPoint *arg2 = 0 ;
20579 wxSize *arg3 = 0 ;
20580 void *argp1 = 0 ;
20581 int res1 = 0 ;
20582 wxPoint temp2 ;
20583 wxSize temp3 ;
20584 PyObject * obj0 = 0 ;
20585 PyObject * obj1 = 0 ;
20586 PyObject * obj2 = 0 ;
20587 char * kwnames[] = {
20588 (char *) "self",(char *) "pt",(char *) "sz", NULL
20589 };
20590
20591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20593 if (!SWIG_IsOK(res1)) {
20594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20595 }
20596 arg1 = reinterpret_cast< wxDC * >(argp1);
20597 {
20598 arg2 = &temp2;
20599 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20600 }
20601 {
20602 arg3 = &temp3;
20603 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20604 }
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 resultobj = SWIG_Py_Void();
20612 return resultobj;
20613fail:
20614 return NULL;
20615}
20616
20617
20618SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20619 PyObject *resultobj = 0;
20620 wxDC *arg1 = (wxDC *) 0 ;
20621 wxRegion *arg2 = 0 ;
20622 void *argp1 = 0 ;
20623 int res1 = 0 ;
20624 void *argp2 = 0 ;
20625 int res2 = 0 ;
20626 PyObject * obj0 = 0 ;
20627 PyObject * obj1 = 0 ;
20628 char * kwnames[] = {
20629 (char *) "self",(char *) "region", NULL
20630 };
20631
20632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20634 if (!SWIG_IsOK(res1)) {
20635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20636 }
20637 arg1 = reinterpret_cast< wxDC * >(argp1);
20638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20639 if (!SWIG_IsOK(res2)) {
20640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20641 }
20642 if (!argp2) {
20643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20644 }
20645 arg2 = reinterpret_cast< wxRegion * >(argp2);
20646 {
20647 PyThreadState* __tstate = wxPyBeginAllowThreads();
20648 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 resultobj = SWIG_Py_Void();
20653 return resultobj;
20654fail:
20655 return NULL;
20656}
20657
20658
20659SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20660 PyObject *resultobj = 0;
20661 wxDC *arg1 = (wxDC *) 0 ;
20662 wxRect *arg2 = 0 ;
20663 void *argp1 = 0 ;
20664 int res1 = 0 ;
20665 wxRect temp2 ;
20666 PyObject * obj0 = 0 ;
20667 PyObject * obj1 = 0 ;
20668 char * kwnames[] = {
20669 (char *) "self",(char *) "rect", NULL
20670 };
20671
20672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20674 if (!SWIG_IsOK(res1)) {
20675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20676 }
20677 arg1 = reinterpret_cast< wxDC * >(argp1);
20678 {
20679 arg2 = &temp2;
20680 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20681 }
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20685 wxPyEndAllowThreads(__tstate);
20686 if (PyErr_Occurred()) SWIG_fail;
20687 }
20688 resultobj = SWIG_Py_Void();
20689 return resultobj;
20690fail:
20691 return NULL;
20692}
20693
20694
20695SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj = 0;
20697 wxDC *arg1 = (wxDC *) 0 ;
20698 int arg2 ;
20699 wxPoint *arg3 = (wxPoint *) 0 ;
20700 int arg4 = (int) 0 ;
20701 int arg5 = (int) 0 ;
20702 void *argp1 = 0 ;
20703 int res1 = 0 ;
20704 int val4 ;
20705 int ecode4 = 0 ;
20706 int val5 ;
20707 int ecode5 = 0 ;
20708 PyObject * obj0 = 0 ;
20709 PyObject * obj1 = 0 ;
20710 PyObject * obj2 = 0 ;
20711 PyObject * obj3 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20718 if (!SWIG_IsOK(res1)) {
20719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20720 }
20721 arg1 = reinterpret_cast< wxDC * >(argp1);
20722 {
20723 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20724 if (arg3 == NULL) SWIG_fail;
20725 }
20726 if (obj2) {
20727 ecode4 = SWIG_AsVal_int(obj2, &val4);
20728 if (!SWIG_IsOK(ecode4)) {
20729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20730 }
20731 arg4 = static_cast< int >(val4);
20732 }
20733 if (obj3) {
20734 ecode5 = SWIG_AsVal_int(obj3, &val5);
20735 if (!SWIG_IsOK(ecode5)) {
20736 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20737 }
20738 arg5 = static_cast< int >(val5);
20739 }
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_Py_Void();
20747 {
20748 if (arg3) delete [] arg3;
20749 }
20750 return resultobj;
20751fail:
20752 {
20753 if (arg3) delete [] arg3;
20754 }
20755 return NULL;
20756}
20757
20758
20759SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20760 PyObject *resultobj = 0;
20761 wxDC *arg1 = (wxDC *) 0 ;
20762 int arg2 ;
20763 wxPoint *arg3 = (wxPoint *) 0 ;
20764 int arg4 = (int) 0 ;
20765 int arg5 = (int) 0 ;
20766 int arg6 = (int) wxODDEVEN_RULE ;
20767 void *argp1 = 0 ;
20768 int res1 = 0 ;
20769 int val4 ;
20770 int ecode4 = 0 ;
20771 int val5 ;
20772 int ecode5 = 0 ;
20773 int val6 ;
20774 int ecode6 = 0 ;
20775 PyObject * obj0 = 0 ;
20776 PyObject * obj1 = 0 ;
20777 PyObject * obj2 = 0 ;
20778 PyObject * obj3 = 0 ;
20779 PyObject * obj4 = 0 ;
20780 char * kwnames[] = {
20781 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20782 };
20783
20784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20786 if (!SWIG_IsOK(res1)) {
20787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20788 }
20789 arg1 = reinterpret_cast< wxDC * >(argp1);
20790 {
20791 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20792 if (arg3 == NULL) SWIG_fail;
20793 }
20794 if (obj2) {
20795 ecode4 = SWIG_AsVal_int(obj2, &val4);
20796 if (!SWIG_IsOK(ecode4)) {
20797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20798 }
20799 arg4 = static_cast< int >(val4);
20800 }
20801 if (obj3) {
20802 ecode5 = SWIG_AsVal_int(obj3, &val5);
20803 if (!SWIG_IsOK(ecode5)) {
20804 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20805 }
20806 arg5 = static_cast< int >(val5);
20807 }
20808 if (obj4) {
20809 ecode6 = SWIG_AsVal_int(obj4, &val6);
20810 if (!SWIG_IsOK(ecode6)) {
20811 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20812 }
20813 arg6 = static_cast< int >(val6);
20814 }
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20818 wxPyEndAllowThreads(__tstate);
20819 if (PyErr_Occurred()) SWIG_fail;
20820 }
20821 resultobj = SWIG_Py_Void();
20822 {
20823 if (arg3) delete [] arg3;
20824 }
20825 return resultobj;
20826fail:
20827 {
20828 if (arg3) delete [] arg3;
20829 }
20830 return NULL;
20831}
20832
20833
20834SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20835 PyObject *resultobj = 0;
20836 wxDC *arg1 = (wxDC *) 0 ;
20837 wxString *arg2 = 0 ;
20838 wxRect *arg3 = 0 ;
20839 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20840 int arg5 = (int) -1 ;
20841 void *argp1 = 0 ;
20842 int res1 = 0 ;
20843 bool temp2 = false ;
20844 wxRect temp3 ;
20845 int val4 ;
20846 int ecode4 = 0 ;
20847 int val5 ;
20848 int ecode5 = 0 ;
20849 PyObject * obj0 = 0 ;
20850 PyObject * obj1 = 0 ;
20851 PyObject * obj2 = 0 ;
20852 PyObject * obj3 = 0 ;
20853 PyObject * obj4 = 0 ;
20854 char * kwnames[] = {
20855 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20856 };
20857
20858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20860 if (!SWIG_IsOK(res1)) {
20861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20862 }
20863 arg1 = reinterpret_cast< wxDC * >(argp1);
20864 {
20865 arg2 = wxString_in_helper(obj1);
20866 if (arg2 == NULL) SWIG_fail;
20867 temp2 = true;
20868 }
20869 {
20870 arg3 = &temp3;
20871 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20872 }
20873 if (obj3) {
20874 ecode4 = SWIG_AsVal_int(obj3, &val4);
20875 if (!SWIG_IsOK(ecode4)) {
20876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20877 }
20878 arg4 = static_cast< int >(val4);
20879 }
20880 if (obj4) {
20881 ecode5 = SWIG_AsVal_int(obj4, &val5);
20882 if (!SWIG_IsOK(ecode5)) {
20883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20884 }
20885 arg5 = static_cast< int >(val5);
20886 }
20887 {
20888 PyThreadState* __tstate = wxPyBeginAllowThreads();
20889 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 resultobj = SWIG_Py_Void();
20894 {
20895 if (temp2)
20896 delete arg2;
20897 }
20898 return resultobj;
20899fail:
20900 {
20901 if (temp2)
20902 delete arg2;
20903 }
20904 return NULL;
20905}
20906
20907
20908SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20909 PyObject *resultobj = 0;
20910 wxDC *arg1 = (wxDC *) 0 ;
20911 wxString *arg2 = 0 ;
20912 wxBitmap *arg3 = 0 ;
20913 wxRect *arg4 = 0 ;
20914 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20915 int arg6 = (int) -1 ;
20916 wxRect result;
20917 void *argp1 = 0 ;
20918 int res1 = 0 ;
20919 bool temp2 = false ;
20920 void *argp3 = 0 ;
20921 int res3 = 0 ;
20922 wxRect temp4 ;
20923 int val5 ;
20924 int ecode5 = 0 ;
20925 int val6 ;
20926 int ecode6 = 0 ;
20927 PyObject * obj0 = 0 ;
20928 PyObject * obj1 = 0 ;
20929 PyObject * obj2 = 0 ;
20930 PyObject * obj3 = 0 ;
20931 PyObject * obj4 = 0 ;
20932 PyObject * obj5 = 0 ;
20933 char * kwnames[] = {
20934 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20935 };
20936
20937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20939 if (!SWIG_IsOK(res1)) {
20940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20941 }
20942 arg1 = reinterpret_cast< wxDC * >(argp1);
20943 {
20944 arg2 = wxString_in_helper(obj1);
20945 if (arg2 == NULL) SWIG_fail;
20946 temp2 = true;
20947 }
20948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20949 if (!SWIG_IsOK(res3)) {
20950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20951 }
20952 if (!argp3) {
20953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20954 }
20955 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20956 {
20957 arg4 = &temp4;
20958 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20959 }
20960 if (obj4) {
20961 ecode5 = SWIG_AsVal_int(obj4, &val5);
20962 if (!SWIG_IsOK(ecode5)) {
20963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20964 }
20965 arg5 = static_cast< int >(val5);
20966 }
20967 if (obj5) {
20968 ecode6 = SWIG_AsVal_int(obj5, &val6);
20969 if (!SWIG_IsOK(ecode6)) {
20970 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20971 }
20972 arg6 = static_cast< int >(val6);
20973 }
20974 {
20975 PyThreadState* __tstate = wxPyBeginAllowThreads();
20976 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20977 wxPyEndAllowThreads(__tstate);
20978 if (PyErr_Occurred()) SWIG_fail;
20979 }
20980 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20981 {
20982 if (temp2)
20983 delete arg2;
20984 }
20985 return resultobj;
20986fail:
20987 {
20988 if (temp2)
20989 delete arg2;
20990 }
20991 return NULL;
20992}
20993
20994
20995SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20996 PyObject *resultobj = 0;
20997 wxDC *arg1 = (wxDC *) 0 ;
20998 int arg2 ;
20999 wxPoint *arg3 = (wxPoint *) 0 ;
21000 void *argp1 = 0 ;
21001 int res1 = 0 ;
21002 PyObject * obj0 = 0 ;
21003 PyObject * obj1 = 0 ;
21004 char * kwnames[] = {
21005 (char *) "self",(char *) "points", NULL
21006 };
21007
21008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21010 if (!SWIG_IsOK(res1)) {
21011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21012 }
21013 arg1 = reinterpret_cast< wxDC * >(argp1);
21014 {
21015 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21016 if (arg3 == NULL) SWIG_fail;
21017 }
21018 {
21019 PyThreadState* __tstate = wxPyBeginAllowThreads();
21020 (arg1)->DrawSpline(arg2,arg3);
21021 wxPyEndAllowThreads(__tstate);
21022 if (PyErr_Occurred()) SWIG_fail;
21023 }
21024 resultobj = SWIG_Py_Void();
21025 {
21026 if (arg3) delete [] arg3;
21027 }
21028 return resultobj;
21029fail:
21030 {
21031 if (arg3) delete [] arg3;
21032 }
21033 return NULL;
21034}
21035
21036
21037SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21038 PyObject *resultobj = 0;
21039 wxDC *arg1 = (wxDC *) 0 ;
21040 void *argp1 = 0 ;
21041 int res1 = 0 ;
21042 PyObject *swig_obj[1] ;
21043
21044 if (!args) SWIG_fail;
21045 swig_obj[0] = args;
21046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21047 if (!SWIG_IsOK(res1)) {
21048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21049 }
21050 arg1 = reinterpret_cast< wxDC * >(argp1);
21051 {
21052 PyThreadState* __tstate = wxPyBeginAllowThreads();
21053 (arg1)->Clear();
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_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21065 PyObject *resultobj = 0;
21066 wxDC *arg1 = (wxDC *) 0 ;
21067 wxString *arg2 = 0 ;
21068 bool result;
21069 void *argp1 = 0 ;
21070 int res1 = 0 ;
21071 bool temp2 = false ;
21072 PyObject * obj0 = 0 ;
21073 PyObject * obj1 = 0 ;
21074 char * kwnames[] = {
21075 (char *) "self",(char *) "message", NULL
21076 };
21077
21078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",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_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21082 }
21083 arg1 = reinterpret_cast< wxDC * >(argp1);
21084 {
21085 arg2 = wxString_in_helper(obj1);
21086 if (arg2 == NULL) SWIG_fail;
21087 temp2 = true;
21088 }
21089 {
21090 PyThreadState* __tstate = wxPyBeginAllowThreads();
21091 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21092 wxPyEndAllowThreads(__tstate);
21093 if (PyErr_Occurred()) SWIG_fail;
21094 }
21095 {
21096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21097 }
21098 {
21099 if (temp2)
21100 delete arg2;
21101 }
21102 return resultobj;
21103fail:
21104 {
21105 if (temp2)
21106 delete arg2;
21107 }
21108 return NULL;
21109}
21110
21111
21112SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21113 PyObject *resultobj = 0;
21114 wxDC *arg1 = (wxDC *) 0 ;
21115 void *argp1 = 0 ;
21116 int res1 = 0 ;
21117 PyObject *swig_obj[1] ;
21118
21119 if (!args) SWIG_fail;
21120 swig_obj[0] = args;
21121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21122 if (!SWIG_IsOK(res1)) {
21123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21124 }
21125 arg1 = reinterpret_cast< wxDC * >(argp1);
21126 {
21127 PyThreadState* __tstate = wxPyBeginAllowThreads();
21128 (arg1)->EndDoc();
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_Py_Void();
21133 return resultobj;
21134fail:
21135 return NULL;
21136}
21137
21138
21139SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21140 PyObject *resultobj = 0;
21141 wxDC *arg1 = (wxDC *) 0 ;
21142 void *argp1 = 0 ;
21143 int res1 = 0 ;
21144 PyObject *swig_obj[1] ;
21145
21146 if (!args) SWIG_fail;
21147 swig_obj[0] = args;
21148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21149 if (!SWIG_IsOK(res1)) {
21150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21151 }
21152 arg1 = reinterpret_cast< wxDC * >(argp1);
21153 {
21154 PyThreadState* __tstate = wxPyBeginAllowThreads();
21155 (arg1)->StartPage();
21156 wxPyEndAllowThreads(__tstate);
21157 if (PyErr_Occurred()) SWIG_fail;
21158 }
21159 resultobj = SWIG_Py_Void();
21160 return resultobj;
21161fail:
21162 return NULL;
21163}
21164
21165
21166SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21167 PyObject *resultobj = 0;
21168 wxDC *arg1 = (wxDC *) 0 ;
21169 void *argp1 = 0 ;
21170 int res1 = 0 ;
21171 PyObject *swig_obj[1] ;
21172
21173 if (!args) SWIG_fail;
21174 swig_obj[0] = args;
21175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21176 if (!SWIG_IsOK(res1)) {
21177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21178 }
21179 arg1 = reinterpret_cast< wxDC * >(argp1);
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 (arg1)->EndPage();
21183 wxPyEndAllowThreads(__tstate);
21184 if (PyErr_Occurred()) SWIG_fail;
21185 }
21186 resultobj = SWIG_Py_Void();
21187 return resultobj;
21188fail:
21189 return NULL;
21190}
21191
21192
21193SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21194 PyObject *resultobj = 0;
21195 wxDC *arg1 = (wxDC *) 0 ;
21196 wxFont *arg2 = 0 ;
21197 void *argp1 = 0 ;
21198 int res1 = 0 ;
21199 void *argp2 = 0 ;
21200 int res2 = 0 ;
21201 PyObject * obj0 = 0 ;
21202 PyObject * obj1 = 0 ;
21203 char * kwnames[] = {
21204 (char *) "self",(char *) "font", NULL
21205 };
21206
21207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21209 if (!SWIG_IsOK(res1)) {
21210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21211 }
21212 arg1 = reinterpret_cast< wxDC * >(argp1);
21213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21214 if (!SWIG_IsOK(res2)) {
21215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21216 }
21217 if (!argp2) {
21218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21219 }
21220 arg2 = reinterpret_cast< wxFont * >(argp2);
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 (arg1)->SetFont((wxFont const &)*arg2);
21224 wxPyEndAllowThreads(__tstate);
21225 if (PyErr_Occurred()) SWIG_fail;
21226 }
21227 resultobj = SWIG_Py_Void();
21228 return resultobj;
21229fail:
21230 return NULL;
21231}
21232
21233
21234SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21235 PyObject *resultobj = 0;
21236 wxDC *arg1 = (wxDC *) 0 ;
21237 wxPen *arg2 = 0 ;
21238 void *argp1 = 0 ;
21239 int res1 = 0 ;
21240 void *argp2 = 0 ;
21241 int res2 = 0 ;
21242 PyObject * obj0 = 0 ;
21243 PyObject * obj1 = 0 ;
21244 char * kwnames[] = {
21245 (char *) "self",(char *) "pen", NULL
21246 };
21247
21248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21250 if (!SWIG_IsOK(res1)) {
21251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21252 }
21253 arg1 = reinterpret_cast< wxDC * >(argp1);
21254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21255 if (!SWIG_IsOK(res2)) {
21256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21257 }
21258 if (!argp2) {
21259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21260 }
21261 arg2 = reinterpret_cast< wxPen * >(argp2);
21262 {
21263 PyThreadState* __tstate = wxPyBeginAllowThreads();
21264 (arg1)->SetPen((wxPen const &)*arg2);
21265 wxPyEndAllowThreads(__tstate);
21266 if (PyErr_Occurred()) SWIG_fail;
21267 }
21268 resultobj = SWIG_Py_Void();
21269 return resultobj;
21270fail:
21271 return NULL;
21272}
21273
21274
21275SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21276 PyObject *resultobj = 0;
21277 wxDC *arg1 = (wxDC *) 0 ;
21278 wxBrush *arg2 = 0 ;
21279 void *argp1 = 0 ;
21280 int res1 = 0 ;
21281 void *argp2 = 0 ;
21282 int res2 = 0 ;
21283 PyObject * obj0 = 0 ;
21284 PyObject * obj1 = 0 ;
21285 char * kwnames[] = {
21286 (char *) "self",(char *) "brush", NULL
21287 };
21288
21289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21291 if (!SWIG_IsOK(res1)) {
21292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21293 }
21294 arg1 = reinterpret_cast< wxDC * >(argp1);
21295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21296 if (!SWIG_IsOK(res2)) {
21297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21298 }
21299 if (!argp2) {
21300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21301 }
21302 arg2 = reinterpret_cast< wxBrush * >(argp2);
21303 {
21304 PyThreadState* __tstate = wxPyBeginAllowThreads();
21305 (arg1)->SetBrush((wxBrush const &)*arg2);
21306 wxPyEndAllowThreads(__tstate);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 }
21309 resultobj = SWIG_Py_Void();
21310 return resultobj;
21311fail:
21312 return NULL;
21313}
21314
21315
21316SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21317 PyObject *resultobj = 0;
21318 wxDC *arg1 = (wxDC *) 0 ;
21319 wxBrush *arg2 = 0 ;
21320 void *argp1 = 0 ;
21321 int res1 = 0 ;
21322 void *argp2 = 0 ;
21323 int res2 = 0 ;
21324 PyObject * obj0 = 0 ;
21325 PyObject * obj1 = 0 ;
21326 char * kwnames[] = {
21327 (char *) "self",(char *) "brush", NULL
21328 };
21329
21330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21332 if (!SWIG_IsOK(res1)) {
21333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21334 }
21335 arg1 = reinterpret_cast< wxDC * >(argp1);
21336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21337 if (!SWIG_IsOK(res2)) {
21338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21339 }
21340 if (!argp2) {
21341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21342 }
21343 arg2 = reinterpret_cast< wxBrush * >(argp2);
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 (arg1)->SetBackground((wxBrush const &)*arg2);
21347 wxPyEndAllowThreads(__tstate);
21348 if (PyErr_Occurred()) SWIG_fail;
21349 }
21350 resultobj = SWIG_Py_Void();
21351 return resultobj;
21352fail:
21353 return NULL;
21354}
21355
21356
21357SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21358 PyObject *resultobj = 0;
21359 wxDC *arg1 = (wxDC *) 0 ;
21360 int arg2 ;
21361 void *argp1 = 0 ;
21362 int res1 = 0 ;
21363 int val2 ;
21364 int ecode2 = 0 ;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 char * kwnames[] = {
21368 (char *) "self",(char *) "mode", NULL
21369 };
21370
21371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21375 }
21376 arg1 = reinterpret_cast< wxDC * >(argp1);
21377 ecode2 = SWIG_AsVal_int(obj1, &val2);
21378 if (!SWIG_IsOK(ecode2)) {
21379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21380 }
21381 arg2 = static_cast< int >(val2);
21382 {
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 (arg1)->SetBackgroundMode(arg2);
21385 wxPyEndAllowThreads(__tstate);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 resultobj = SWIG_Py_Void();
21389 return resultobj;
21390fail:
21391 return NULL;
21392}
21393
21394
21395SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj = 0;
21397 wxDC *arg1 = (wxDC *) 0 ;
21398 wxPalette *arg2 = 0 ;
21399 void *argp1 = 0 ;
21400 int res1 = 0 ;
21401 void *argp2 = 0 ;
21402 int res2 = 0 ;
21403 PyObject * obj0 = 0 ;
21404 PyObject * obj1 = 0 ;
21405 char * kwnames[] = {
21406 (char *) "self",(char *) "palette", NULL
21407 };
21408
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21413 }
21414 arg1 = reinterpret_cast< wxDC * >(argp1);
21415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21416 if (!SWIG_IsOK(res2)) {
21417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21418 }
21419 if (!argp2) {
21420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21421 }
21422 arg2 = reinterpret_cast< wxPalette * >(argp2);
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 (arg1)->SetPalette((wxPalette const &)*arg2);
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 resultobj = SWIG_Py_Void();
21430 return resultobj;
21431fail:
21432 return NULL;
21433}
21434
21435
21436SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21437 PyObject *resultobj = 0;
21438 wxDC *arg1 = (wxDC *) 0 ;
21439 void *argp1 = 0 ;
21440 int res1 = 0 ;
21441 PyObject *swig_obj[1] ;
21442
21443 if (!args) SWIG_fail;
21444 swig_obj[0] = args;
21445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21446 if (!SWIG_IsOK(res1)) {
21447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21448 }
21449 arg1 = reinterpret_cast< wxDC * >(argp1);
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 (arg1)->DestroyClippingRegion();
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 resultobj = SWIG_Py_Void();
21457 return resultobj;
21458fail:
21459 return NULL;
21460}
21461
21462
21463SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21464 PyObject *resultobj = 0;
21465 wxDC *arg1 = (wxDC *) 0 ;
21466 int *arg2 = (int *) 0 ;
21467 int *arg3 = (int *) 0 ;
21468 int *arg4 = (int *) 0 ;
21469 int *arg5 = (int *) 0 ;
21470 void *argp1 = 0 ;
21471 int res1 = 0 ;
21472 int temp2 ;
21473 int res2 = SWIG_TMPOBJ ;
21474 int temp3 ;
21475 int res3 = SWIG_TMPOBJ ;
21476 int temp4 ;
21477 int res4 = SWIG_TMPOBJ ;
21478 int temp5 ;
21479 int res5 = SWIG_TMPOBJ ;
21480 PyObject *swig_obj[1] ;
21481
21482 arg2 = &temp2;
21483 arg3 = &temp3;
21484 arg4 = &temp4;
21485 arg5 = &temp5;
21486 if (!args) SWIG_fail;
21487 swig_obj[0] = args;
21488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21489 if (!SWIG_IsOK(res1)) {
21490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21491 }
21492 arg1 = reinterpret_cast< wxDC * >(argp1);
21493 {
21494 PyThreadState* __tstate = wxPyBeginAllowThreads();
21495 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 resultobj = SWIG_Py_Void();
21500 if (SWIG_IsTmpObj(res2)) {
21501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21502 } else {
21503 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21505 }
21506 if (SWIG_IsTmpObj(res3)) {
21507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21508 } else {
21509 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21511 }
21512 if (SWIG_IsTmpObj(res4)) {
21513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21514 } else {
21515 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21517 }
21518 if (SWIG_IsTmpObj(res5)) {
21519 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21520 } else {
21521 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21522 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21523 }
21524 return resultobj;
21525fail:
21526 return NULL;
21527}
21528
21529
21530SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21531 PyObject *resultobj = 0;
21532 wxDC *arg1 = (wxDC *) 0 ;
21533 wxRect result;
21534 void *argp1 = 0 ;
21535 int res1 = 0 ;
21536 PyObject *swig_obj[1] ;
21537
21538 if (!args) SWIG_fail;
21539 swig_obj[0] = args;
21540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21541 if (!SWIG_IsOK(res1)) {
21542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21543 }
21544 arg1 = reinterpret_cast< wxDC * >(argp1);
21545 {
21546 PyThreadState* __tstate = wxPyBeginAllowThreads();
21547 result = wxDC_GetClippingRect(arg1);
21548 wxPyEndAllowThreads(__tstate);
21549 if (PyErr_Occurred()) SWIG_fail;
21550 }
21551 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21552 return resultobj;
21553fail:
21554 return NULL;
21555}
21556
21557
21558SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21559 PyObject *resultobj = 0;
21560 wxDC *arg1 = (wxDC *) 0 ;
21561 int result;
21562 void *argp1 = 0 ;
21563 int res1 = 0 ;
21564 PyObject *swig_obj[1] ;
21565
21566 if (!args) SWIG_fail;
21567 swig_obj[0] = args;
21568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21569 if (!SWIG_IsOK(res1)) {
21570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21571 }
21572 arg1 = reinterpret_cast< wxDC * >(argp1);
21573 {
21574 PyThreadState* __tstate = wxPyBeginAllowThreads();
21575 result = (int)((wxDC const *)arg1)->GetCharHeight();
21576 wxPyEndAllowThreads(__tstate);
21577 if (PyErr_Occurred()) SWIG_fail;
21578 }
21579 resultobj = SWIG_From_int(static_cast< int >(result));
21580 return resultobj;
21581fail:
21582 return NULL;
21583}
21584
21585
21586SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21587 PyObject *resultobj = 0;
21588 wxDC *arg1 = (wxDC *) 0 ;
21589 int result;
21590 void *argp1 = 0 ;
21591 int res1 = 0 ;
21592 PyObject *swig_obj[1] ;
21593
21594 if (!args) SWIG_fail;
21595 swig_obj[0] = args;
21596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21597 if (!SWIG_IsOK(res1)) {
21598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21599 }
21600 arg1 = reinterpret_cast< wxDC * >(argp1);
21601 {
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 result = (int)((wxDC const *)arg1)->GetCharWidth();
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 resultobj = SWIG_From_int(static_cast< int >(result));
21608 return resultobj;
21609fail:
21610 return NULL;
21611}
21612
21613
21614SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21615 PyObject *resultobj = 0;
21616 wxDC *arg1 = (wxDC *) 0 ;
21617 wxString *arg2 = 0 ;
21618 int *arg3 = (int *) 0 ;
21619 int *arg4 = (int *) 0 ;
21620 void *argp1 = 0 ;
21621 int res1 = 0 ;
21622 bool temp2 = false ;
21623 int temp3 ;
21624 int res3 = SWIG_TMPOBJ ;
21625 int temp4 ;
21626 int res4 = SWIG_TMPOBJ ;
21627 PyObject * obj0 = 0 ;
21628 PyObject * obj1 = 0 ;
21629 char * kwnames[] = {
21630 (char *) "self",(char *) "string", NULL
21631 };
21632
21633 arg3 = &temp3;
21634 arg4 = &temp4;
21635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21637 if (!SWIG_IsOK(res1)) {
21638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21639 }
21640 arg1 = reinterpret_cast< wxDC * >(argp1);
21641 {
21642 arg2 = wxString_in_helper(obj1);
21643 if (arg2 == NULL) SWIG_fail;
21644 temp2 = true;
21645 }
21646 {
21647 PyThreadState* __tstate = wxPyBeginAllowThreads();
21648 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21649 wxPyEndAllowThreads(__tstate);
21650 if (PyErr_Occurred()) SWIG_fail;
21651 }
21652 resultobj = SWIG_Py_Void();
21653 if (SWIG_IsTmpObj(res3)) {
21654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21655 } else {
21656 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21658 }
21659 if (SWIG_IsTmpObj(res4)) {
21660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21661 } else {
21662 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21664 }
21665 {
21666 if (temp2)
21667 delete arg2;
21668 }
21669 return resultobj;
21670fail:
21671 {
21672 if (temp2)
21673 delete arg2;
21674 }
21675 return NULL;
21676}
21677
21678
21679SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21680 PyObject *resultobj = 0;
21681 wxDC *arg1 = (wxDC *) 0 ;
21682 wxString *arg2 = 0 ;
21683 int *arg3 = (int *) 0 ;
21684 int *arg4 = (int *) 0 ;
21685 int *arg5 = (int *) 0 ;
21686 int *arg6 = (int *) 0 ;
21687 wxFont *arg7 = (wxFont *) NULL ;
21688 void *argp1 = 0 ;
21689 int res1 = 0 ;
21690 bool temp2 = false ;
21691 int temp3 ;
21692 int res3 = SWIG_TMPOBJ ;
21693 int temp4 ;
21694 int res4 = SWIG_TMPOBJ ;
21695 int temp5 ;
21696 int res5 = SWIG_TMPOBJ ;
21697 int temp6 ;
21698 int res6 = SWIG_TMPOBJ ;
21699 void *argp7 = 0 ;
21700 int res7 = 0 ;
21701 PyObject * obj0 = 0 ;
21702 PyObject * obj1 = 0 ;
21703 PyObject * obj2 = 0 ;
21704 char * kwnames[] = {
21705 (char *) "self",(char *) "string",(char *) "font", NULL
21706 };
21707
21708 arg3 = &temp3;
21709 arg4 = &temp4;
21710 arg5 = &temp5;
21711 arg6 = &temp6;
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21716 }
21717 arg1 = reinterpret_cast< wxDC * >(argp1);
21718 {
21719 arg2 = wxString_in_helper(obj1);
21720 if (arg2 == NULL) SWIG_fail;
21721 temp2 = true;
21722 }
21723 if (obj2) {
21724 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21725 if (!SWIG_IsOK(res7)) {
21726 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21727 }
554f62e9
RD
21728 arg7 = reinterpret_cast< wxFont * >(argp7);
21729 }
21730 {
21731 PyThreadState* __tstate = wxPyBeginAllowThreads();
21732 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21733 wxPyEndAllowThreads(__tstate);
21734 if (PyErr_Occurred()) SWIG_fail;
21735 }
21736 resultobj = SWIG_Py_Void();
21737 if (SWIG_IsTmpObj(res3)) {
21738 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21739 } else {
21740 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21741 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21742 }
21743 if (SWIG_IsTmpObj(res4)) {
21744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21745 } else {
21746 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21748 }
21749 if (SWIG_IsTmpObj(res5)) {
21750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21751 } else {
21752 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21754 }
21755 if (SWIG_IsTmpObj(res6)) {
21756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21757 } else {
21758 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21759 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21760 }
21761 {
21762 if (temp2)
21763 delete arg2;
21764 }
21765 return resultobj;
21766fail:
21767 {
21768 if (temp2)
21769 delete arg2;
21770 }
21771 return NULL;
21772}
21773
21774
21775SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj = 0;
21777 wxDC *arg1 = (wxDC *) 0 ;
21778 wxString *arg2 = 0 ;
21779 int *arg3 = (int *) 0 ;
21780 int *arg4 = (int *) 0 ;
21781 int *arg5 = (int *) 0 ;
21782 wxFont *arg6 = (wxFont *) NULL ;
21783 void *argp1 = 0 ;
21784 int res1 = 0 ;
21785 bool temp2 = false ;
21786 int temp3 ;
21787 int res3 = SWIG_TMPOBJ ;
21788 int temp4 ;
21789 int res4 = SWIG_TMPOBJ ;
21790 int temp5 ;
21791 int res5 = SWIG_TMPOBJ ;
21792 void *argp6 = 0 ;
21793 int res6 = 0 ;
21794 PyObject * obj0 = 0 ;
21795 PyObject * obj1 = 0 ;
21796 PyObject * obj2 = 0 ;
21797 char * kwnames[] = {
21798 (char *) "self",(char *) "text",(char *) "font", NULL
21799 };
21800
21801 arg3 = &temp3;
21802 arg4 = &temp4;
21803 arg5 = &temp5;
21804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21806 if (!SWIG_IsOK(res1)) {
21807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21808 }
21809 arg1 = reinterpret_cast< wxDC * >(argp1);
21810 {
21811 arg2 = wxString_in_helper(obj1);
21812 if (arg2 == NULL) SWIG_fail;
21813 temp2 = true;
21814 }
21815 if (obj2) {
21816 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21817 if (!SWIG_IsOK(res6)) {
21818 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21819 }
554f62e9
RD
21820 arg6 = reinterpret_cast< wxFont * >(argp6);
21821 }
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 resultobj = SWIG_Py_Void();
21829 if (SWIG_IsTmpObj(res3)) {
21830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21831 } else {
21832 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21834 }
21835 if (SWIG_IsTmpObj(res4)) {
21836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21837 } else {
21838 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21840 }
21841 if (SWIG_IsTmpObj(res5)) {
21842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21843 } else {
21844 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21846 }
21847 {
21848 if (temp2)
21849 delete arg2;
21850 }
21851 return resultobj;
21852fail:
21853 {
21854 if (temp2)
21855 delete arg2;
21856 }
21857 return NULL;
21858}
21859
21860
21861SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21862 PyObject *resultobj = 0;
21863 wxDC *arg1 = (wxDC *) 0 ;
21864 wxString *arg2 = 0 ;
21865 wxArrayInt result;
21866 void *argp1 = 0 ;
21867 int res1 = 0 ;
21868 bool temp2 = false ;
21869 PyObject * obj0 = 0 ;
21870 PyObject * obj1 = 0 ;
21871 char * kwnames[] = {
21872 (char *) "self",(char *) "text", NULL
21873 };
21874
21875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21877 if (!SWIG_IsOK(res1)) {
21878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21879 }
21880 arg1 = reinterpret_cast< wxDC * >(argp1);
21881 {
21882 arg2 = wxString_in_helper(obj1);
21883 if (arg2 == NULL) SWIG_fail;
21884 temp2 = true;
21885 }
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 {
b39fe951 21893 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
21894 }
21895 {
21896 if (temp2)
21897 delete arg2;
21898 }
21899 return resultobj;
21900fail:
21901 {
21902 if (temp2)
21903 delete arg2;
21904 }
21905 return NULL;
21906}
21907
21908
21909SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21910 PyObject *resultobj = 0;
21911 wxDC *arg1 = (wxDC *) 0 ;
21912 wxSize result;
21913 void *argp1 = 0 ;
21914 int res1 = 0 ;
21915 PyObject *swig_obj[1] ;
21916
21917 if (!args) SWIG_fail;
21918 swig_obj[0] = args;
21919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21920 if (!SWIG_IsOK(res1)) {
21921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21922 }
21923 arg1 = reinterpret_cast< wxDC * >(argp1);
21924 {
21925 PyThreadState* __tstate = wxPyBeginAllowThreads();
21926 result = (arg1)->GetSize();
21927 wxPyEndAllowThreads(__tstate);
21928 if (PyErr_Occurred()) SWIG_fail;
21929 }
21930 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21931 return resultobj;
21932fail:
21933 return NULL;
21934}
21935
21936
21937SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21938 PyObject *resultobj = 0;
21939 wxDC *arg1 = (wxDC *) 0 ;
21940 int *arg2 = (int *) 0 ;
21941 int *arg3 = (int *) 0 ;
21942 void *argp1 = 0 ;
21943 int res1 = 0 ;
21944 int temp2 ;
21945 int res2 = SWIG_TMPOBJ ;
21946 int temp3 ;
21947 int res3 = SWIG_TMPOBJ ;
21948 PyObject *swig_obj[1] ;
21949
21950 arg2 = &temp2;
21951 arg3 = &temp3;
21952 if (!args) SWIG_fail;
21953 swig_obj[0] = args;
21954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21955 if (!SWIG_IsOK(res1)) {
21956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21957 }
21958 arg1 = reinterpret_cast< wxDC * >(argp1);
21959 {
21960 PyThreadState* __tstate = wxPyBeginAllowThreads();
21961 (arg1)->GetSize(arg2,arg3);
21962 wxPyEndAllowThreads(__tstate);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 }
21965 resultobj = SWIG_Py_Void();
21966 if (SWIG_IsTmpObj(res2)) {
21967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21968 } else {
21969 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21971 }
21972 if (SWIG_IsTmpObj(res3)) {
21973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21974 } else {
21975 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21977 }
21978 return resultobj;
21979fail:
21980 return NULL;
21981}
21982
21983
21984SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21985 PyObject *resultobj = 0;
21986 wxDC *arg1 = (wxDC *) 0 ;
21987 wxSize result;
21988 void *argp1 = 0 ;
21989 int res1 = 0 ;
21990 PyObject *swig_obj[1] ;
21991
21992 if (!args) SWIG_fail;
21993 swig_obj[0] = args;
21994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21995 if (!SWIG_IsOK(res1)) {
21996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21997 }
21998 arg1 = reinterpret_cast< wxDC * >(argp1);
21999 {
22000 PyThreadState* __tstate = wxPyBeginAllowThreads();
22001 result = ((wxDC const *)arg1)->GetSizeMM();
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22006 return resultobj;
22007fail:
22008 return NULL;
22009}
22010
22011
22012SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22013 PyObject *resultobj = 0;
22014 wxDC *arg1 = (wxDC *) 0 ;
22015 int *arg2 = (int *) 0 ;
22016 int *arg3 = (int *) 0 ;
22017 void *argp1 = 0 ;
22018 int res1 = 0 ;
22019 int temp2 ;
22020 int res2 = SWIG_TMPOBJ ;
22021 int temp3 ;
22022 int res3 = SWIG_TMPOBJ ;
22023 PyObject *swig_obj[1] ;
22024
22025 arg2 = &temp2;
22026 arg3 = &temp3;
22027 if (!args) SWIG_fail;
22028 swig_obj[0] = args;
22029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22030 if (!SWIG_IsOK(res1)) {
22031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22032 }
22033 arg1 = reinterpret_cast< wxDC * >(argp1);
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_Py_Void();
22041 if (SWIG_IsTmpObj(res2)) {
22042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22043 } else {
22044 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22046 }
22047 if (SWIG_IsTmpObj(res3)) {
22048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22049 } else {
22050 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22052 }
22053 return resultobj;
22054fail:
22055 return NULL;
22056}
22057
22058
22059SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj = 0;
22061 wxDC *arg1 = (wxDC *) 0 ;
22062 int arg2 ;
22063 int result;
22064 void *argp1 = 0 ;
22065 int res1 = 0 ;
22066 int val2 ;
22067 int ecode2 = 0 ;
22068 PyObject * obj0 = 0 ;
22069 PyObject * obj1 = 0 ;
22070 char * kwnames[] = {
22071 (char *) "self",(char *) "x", NULL
22072 };
22073
22074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22076 if (!SWIG_IsOK(res1)) {
22077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22078 }
22079 arg1 = reinterpret_cast< wxDC * >(argp1);
22080 ecode2 = SWIG_AsVal_int(obj1, &val2);
22081 if (!SWIG_IsOK(ecode2)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22083 }
22084 arg2 = static_cast< int >(val2);
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22088 wxPyEndAllowThreads(__tstate);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 }
22091 resultobj = SWIG_From_int(static_cast< int >(result));
22092 return resultobj;
22093fail:
22094 return NULL;
22095}
22096
22097
22098SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22099 PyObject *resultobj = 0;
22100 wxDC *arg1 = (wxDC *) 0 ;
22101 int arg2 ;
22102 int result;
22103 void *argp1 = 0 ;
22104 int res1 = 0 ;
22105 int val2 ;
22106 int ecode2 = 0 ;
22107 PyObject * obj0 = 0 ;
22108 PyObject * obj1 = 0 ;
22109 char * kwnames[] = {
22110 (char *) "self",(char *) "y", NULL
22111 };
22112
22113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22115 if (!SWIG_IsOK(res1)) {
22116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22117 }
22118 arg1 = reinterpret_cast< wxDC * >(argp1);
22119 ecode2 = SWIG_AsVal_int(obj1, &val2);
22120 if (!SWIG_IsOK(ecode2)) {
22121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22122 }
22123 arg2 = static_cast< int >(val2);
22124 {
22125 PyThreadState* __tstate = wxPyBeginAllowThreads();
22126 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22127 wxPyEndAllowThreads(__tstate);
22128 if (PyErr_Occurred()) SWIG_fail;
22129 }
22130 resultobj = SWIG_From_int(static_cast< int >(result));
22131 return resultobj;
22132fail:
22133 return NULL;
22134}
22135
22136
22137SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22138 PyObject *resultobj = 0;
22139 wxDC *arg1 = (wxDC *) 0 ;
22140 int arg2 ;
22141 int result;
22142 void *argp1 = 0 ;
22143 int res1 = 0 ;
22144 int val2 ;
22145 int ecode2 = 0 ;
22146 PyObject * obj0 = 0 ;
22147 PyObject * obj1 = 0 ;
22148 char * kwnames[] = {
22149 (char *) "self",(char *) "x", NULL
22150 };
22151
22152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22154 if (!SWIG_IsOK(res1)) {
22155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22156 }
22157 arg1 = reinterpret_cast< wxDC * >(argp1);
22158 ecode2 = SWIG_AsVal_int(obj1, &val2);
22159 if (!SWIG_IsOK(ecode2)) {
22160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22161 }
22162 arg2 = static_cast< int >(val2);
22163 {
22164 PyThreadState* __tstate = wxPyBeginAllowThreads();
22165 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22166 wxPyEndAllowThreads(__tstate);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 }
22169 resultobj = SWIG_From_int(static_cast< int >(result));
22170 return resultobj;
22171fail:
22172 return NULL;
22173}
22174
22175
22176SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22177 PyObject *resultobj = 0;
22178 wxDC *arg1 = (wxDC *) 0 ;
22179 int arg2 ;
22180 int result;
22181 void *argp1 = 0 ;
22182 int res1 = 0 ;
22183 int val2 ;
22184 int ecode2 = 0 ;
22185 PyObject * obj0 = 0 ;
22186 PyObject * obj1 = 0 ;
22187 char * kwnames[] = {
22188 (char *) "self",(char *) "y", NULL
22189 };
22190
22191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22193 if (!SWIG_IsOK(res1)) {
22194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22195 }
22196 arg1 = reinterpret_cast< wxDC * >(argp1);
22197 ecode2 = SWIG_AsVal_int(obj1, &val2);
22198 if (!SWIG_IsOK(ecode2)) {
22199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22200 }
22201 arg2 = static_cast< int >(val2);
22202 {
22203 PyThreadState* __tstate = wxPyBeginAllowThreads();
22204 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22205 wxPyEndAllowThreads(__tstate);
22206 if (PyErr_Occurred()) SWIG_fail;
22207 }
22208 resultobj = SWIG_From_int(static_cast< int >(result));
22209 return resultobj;
22210fail:
22211 return NULL;
22212}
22213
22214
22215SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22216 PyObject *resultobj = 0;
22217 wxDC *arg1 = (wxDC *) 0 ;
22218 int arg2 ;
22219 int result;
22220 void *argp1 = 0 ;
22221 int res1 = 0 ;
22222 int val2 ;
22223 int ecode2 = 0 ;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 char * kwnames[] = {
22227 (char *) "self",(char *) "x", NULL
22228 };
22229
22230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22232 if (!SWIG_IsOK(res1)) {
22233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22234 }
22235 arg1 = reinterpret_cast< wxDC * >(argp1);
22236 ecode2 = SWIG_AsVal_int(obj1, &val2);
22237 if (!SWIG_IsOK(ecode2)) {
22238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22239 }
22240 arg2 = static_cast< int >(val2);
22241 {
22242 PyThreadState* __tstate = wxPyBeginAllowThreads();
22243 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22244 wxPyEndAllowThreads(__tstate);
22245 if (PyErr_Occurred()) SWIG_fail;
22246 }
22247 resultobj = SWIG_From_int(static_cast< int >(result));
22248 return resultobj;
22249fail:
22250 return NULL;
22251}
22252
22253
22254SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22255 PyObject *resultobj = 0;
22256 wxDC *arg1 = (wxDC *) 0 ;
22257 int arg2 ;
22258 int result;
22259 void *argp1 = 0 ;
22260 int res1 = 0 ;
22261 int val2 ;
22262 int ecode2 = 0 ;
22263 PyObject * obj0 = 0 ;
22264 PyObject * obj1 = 0 ;
22265 char * kwnames[] = {
22266 (char *) "self",(char *) "y", NULL
22267 };
22268
22269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22273 }
22274 arg1 = reinterpret_cast< wxDC * >(argp1);
22275 ecode2 = SWIG_AsVal_int(obj1, &val2);
22276 if (!SWIG_IsOK(ecode2)) {
22277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22278 }
22279 arg2 = static_cast< int >(val2);
22280 {
22281 PyThreadState* __tstate = wxPyBeginAllowThreads();
22282 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22283 wxPyEndAllowThreads(__tstate);
22284 if (PyErr_Occurred()) SWIG_fail;
22285 }
22286 resultobj = SWIG_From_int(static_cast< int >(result));
22287 return resultobj;
22288fail:
22289 return NULL;
22290}
22291
22292
22293SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22294 PyObject *resultobj = 0;
22295 wxDC *arg1 = (wxDC *) 0 ;
22296 int arg2 ;
22297 int result;
22298 void *argp1 = 0 ;
22299 int res1 = 0 ;
22300 int val2 ;
22301 int ecode2 = 0 ;
22302 PyObject * obj0 = 0 ;
22303 PyObject * obj1 = 0 ;
22304 char * kwnames[] = {
22305 (char *) "self",(char *) "x", NULL
22306 };
22307
22308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22310 if (!SWIG_IsOK(res1)) {
22311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22312 }
22313 arg1 = reinterpret_cast< wxDC * >(argp1);
22314 ecode2 = SWIG_AsVal_int(obj1, &val2);
22315 if (!SWIG_IsOK(ecode2)) {
22316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22317 }
22318 arg2 = static_cast< int >(val2);
22319 {
22320 PyThreadState* __tstate = wxPyBeginAllowThreads();
22321 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22322 wxPyEndAllowThreads(__tstate);
22323 if (PyErr_Occurred()) SWIG_fail;
22324 }
22325 resultobj = SWIG_From_int(static_cast< int >(result));
22326 return resultobj;
22327fail:
22328 return NULL;
22329}
22330
22331
22332SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22333 PyObject *resultobj = 0;
22334 wxDC *arg1 = (wxDC *) 0 ;
22335 int arg2 ;
22336 int result;
22337 void *argp1 = 0 ;
22338 int res1 = 0 ;
22339 int val2 ;
22340 int ecode2 = 0 ;
22341 PyObject * obj0 = 0 ;
22342 PyObject * obj1 = 0 ;
22343 char * kwnames[] = {
22344 (char *) "self",(char *) "y", NULL
22345 };
22346
22347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22349 if (!SWIG_IsOK(res1)) {
22350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22351 }
22352 arg1 = reinterpret_cast< wxDC * >(argp1);
22353 ecode2 = SWIG_AsVal_int(obj1, &val2);
22354 if (!SWIG_IsOK(ecode2)) {
22355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22356 }
22357 arg2 = static_cast< int >(val2);
22358 {
22359 PyThreadState* __tstate = wxPyBeginAllowThreads();
22360 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22361 wxPyEndAllowThreads(__tstate);
22362 if (PyErr_Occurred()) SWIG_fail;
22363 }
22364 resultobj = SWIG_From_int(static_cast< int >(result));
22365 return resultobj;
22366fail:
22367 return NULL;
22368}
22369
22370
22371SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22372 PyObject *resultobj = 0;
22373 wxDC *arg1 = (wxDC *) 0 ;
22374 bool result;
22375 void *argp1 = 0 ;
22376 int res1 = 0 ;
22377 PyObject *swig_obj[1] ;
22378
22379 if (!args) SWIG_fail;
22380 swig_obj[0] = args;
22381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22382 if (!SWIG_IsOK(res1)) {
22383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22384 }
22385 arg1 = reinterpret_cast< wxDC * >(argp1);
22386 {
22387 PyThreadState* __tstate = wxPyBeginAllowThreads();
22388 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22389 wxPyEndAllowThreads(__tstate);
22390 if (PyErr_Occurred()) SWIG_fail;
22391 }
22392 {
22393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22394 }
22395 return resultobj;
22396fail:
22397 return NULL;
22398}
22399
22400
22401SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22402 PyObject *resultobj = 0;
22403 wxDC *arg1 = (wxDC *) 0 ;
22404 bool result;
22405 void *argp1 = 0 ;
22406 int res1 = 0 ;
22407 PyObject *swig_obj[1] ;
22408
22409 if (!args) SWIG_fail;
22410 swig_obj[0] = args;
22411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22412 if (!SWIG_IsOK(res1)) {
22413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22414 }
22415 arg1 = reinterpret_cast< wxDC * >(argp1);
22416 {
22417 PyThreadState* __tstate = wxPyBeginAllowThreads();
22418 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22419 wxPyEndAllowThreads(__tstate);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 }
22422 {
22423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22424 }
22425 return resultobj;
22426fail:
22427 return NULL;
22428}
22429
22430
22431SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22432 PyObject *resultobj = 0;
22433 wxDC *arg1 = (wxDC *) 0 ;
22434 int result;
22435 void *argp1 = 0 ;
22436 int res1 = 0 ;
22437 PyObject *swig_obj[1] ;
22438
22439 if (!args) SWIG_fail;
22440 swig_obj[0] = args;
22441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22442 if (!SWIG_IsOK(res1)) {
22443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22444 }
22445 arg1 = reinterpret_cast< wxDC * >(argp1);
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 result = (int)((wxDC const *)arg1)->GetDepth();
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 resultobj = SWIG_From_int(static_cast< int >(result));
22453 return resultobj;
22454fail:
22455 return NULL;
22456}
22457
22458
22459SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22460 PyObject *resultobj = 0;
22461 wxDC *arg1 = (wxDC *) 0 ;
22462 wxSize result;
22463 void *argp1 = 0 ;
22464 int res1 = 0 ;
22465 PyObject *swig_obj[1] ;
22466
22467 if (!args) SWIG_fail;
22468 swig_obj[0] = args;
22469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22470 if (!SWIG_IsOK(res1)) {
22471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22472 }
22473 arg1 = reinterpret_cast< wxDC * >(argp1);
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
22476 result = ((wxDC const *)arg1)->GetPPI();
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22481 return resultobj;
22482fail:
22483 return NULL;
22484}
22485
22486
b39fe951 22487SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22488 PyObject *resultobj = 0;
22489 wxDC *arg1 = (wxDC *) 0 ;
22490 bool result;
22491 void *argp1 = 0 ;
22492 int res1 = 0 ;
22493 PyObject *swig_obj[1] ;
22494
22495 if (!args) SWIG_fail;
22496 swig_obj[0] = args;
22497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22498 if (!SWIG_IsOK(res1)) {
b39fe951 22499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22500 }
22501 arg1 = reinterpret_cast< wxDC * >(argp1);
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22504 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 {
22509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22510 }
22511 return resultobj;
22512fail:
22513 return NULL;
22514}
22515
22516
22517SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22518 PyObject *resultobj = 0;
22519 wxDC *arg1 = (wxDC *) 0 ;
22520 int result;
22521 void *argp1 = 0 ;
22522 int res1 = 0 ;
22523 PyObject *swig_obj[1] ;
22524
22525 if (!args) SWIG_fail;
22526 swig_obj[0] = args;
22527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22528 if (!SWIG_IsOK(res1)) {
22529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22530 }
22531 arg1 = reinterpret_cast< wxDC * >(argp1);
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 resultobj = SWIG_From_int(static_cast< int >(result));
22539 return resultobj;
22540fail:
22541 return NULL;
22542}
22543
22544
22545SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22546 PyObject *resultobj = 0;
22547 wxDC *arg1 = (wxDC *) 0 ;
22548 wxBrush *result = 0 ;
22549 void *argp1 = 0 ;
22550 int res1 = 0 ;
22551 PyObject *swig_obj[1] ;
22552
22553 if (!args) SWIG_fail;
22554 swig_obj[0] = args;
22555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22556 if (!SWIG_IsOK(res1)) {
22557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22558 }
22559 arg1 = reinterpret_cast< wxDC * >(argp1);
22560 {
22561 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22562 {
554f62e9
RD
22563 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22564 result = (wxBrush *) &_result_ref;
093d3ff1 22565 }
554f62e9
RD
22566 wxPyEndAllowThreads(__tstate);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 }
22569 {
22570 wxBrush* resultptr = new wxBrush(*result);
22571 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22572 }
22573 return resultobj;
22574fail:
22575 return NULL;
22576}
22577
22578
22579SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22580 PyObject *resultobj = 0;
22581 wxDC *arg1 = (wxDC *) 0 ;
22582 wxBrush *result = 0 ;
22583 void *argp1 = 0 ;
22584 int res1 = 0 ;
22585 PyObject *swig_obj[1] ;
22586
22587 if (!args) SWIG_fail;
22588 swig_obj[0] = args;
22589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22590 if (!SWIG_IsOK(res1)) {
22591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22592 }
22593 arg1 = reinterpret_cast< wxDC * >(argp1);
22594 {
22595 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22596 {
554f62e9
RD
22597 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22598 result = (wxBrush *) &_result_ref;
093d3ff1 22599 }
554f62e9
RD
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 {
22604 wxBrush* resultptr = new wxBrush(*result);
22605 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22606 }
22607 return resultobj;
22608fail:
22609 return NULL;
22610}
22611
22612
22613SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *resultobj = 0;
22615 wxDC *arg1 = (wxDC *) 0 ;
22616 wxFont *result = 0 ;
22617 void *argp1 = 0 ;
22618 int res1 = 0 ;
22619 PyObject *swig_obj[1] ;
22620
22621 if (!args) SWIG_fail;
22622 swig_obj[0] = args;
22623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22624 if (!SWIG_IsOK(res1)) {
22625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22626 }
22627 arg1 = reinterpret_cast< wxDC * >(argp1);
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22630 {
554f62e9
RD
22631 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22632 result = (wxFont *) &_result_ref;
093d3ff1 22633 }
554f62e9
RD
22634 wxPyEndAllowThreads(__tstate);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 {
22638 wxFont* resultptr = new wxFont(*result);
22639 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22640 }
22641 return resultobj;
22642fail:
22643 return NULL;
22644}
22645
22646
22647SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22648 PyObject *resultobj = 0;
22649 wxDC *arg1 = (wxDC *) 0 ;
22650 wxPen *result = 0 ;
22651 void *argp1 = 0 ;
22652 int res1 = 0 ;
22653 PyObject *swig_obj[1] ;
22654
22655 if (!args) SWIG_fail;
22656 swig_obj[0] = args;
22657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22658 if (!SWIG_IsOK(res1)) {
22659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22660 }
22661 arg1 = reinterpret_cast< wxDC * >(argp1);
22662 {
22663 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22664 {
554f62e9
RD
22665 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22666 result = (wxPen *) &_result_ref;
093d3ff1 22667 }
554f62e9
RD
22668 wxPyEndAllowThreads(__tstate);
22669 if (PyErr_Occurred()) SWIG_fail;
22670 }
22671 {
22672 wxPen* resultptr = new wxPen(*result);
22673 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22674 }
22675 return resultobj;
22676fail:
22677 return NULL;
22678}
22679
22680
22681SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22682 PyObject *resultobj = 0;
22683 wxDC *arg1 = (wxDC *) 0 ;
22684 wxColour *result = 0 ;
22685 void *argp1 = 0 ;
22686 int res1 = 0 ;
22687 PyObject *swig_obj[1] ;
22688
22689 if (!args) SWIG_fail;
22690 swig_obj[0] = args;
22691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22692 if (!SWIG_IsOK(res1)) {
22693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22694 }
22695 arg1 = reinterpret_cast< wxDC * >(argp1);
22696 {
22697 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22698 {
554f62e9
RD
22699 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22700 result = (wxColour *) &_result_ref;
093d3ff1 22701 }
554f62e9
RD
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22706 return resultobj;
22707fail:
22708 return NULL;
22709}
22710
22711
22712SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxDC *arg1 = (wxDC *) 0 ;
22715 wxColour *result = 0 ;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 PyObject *swig_obj[1] ;
22719
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22725 }
22726 arg1 = reinterpret_cast< wxDC * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22729 {
554f62e9
RD
22730 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22731 result = (wxColour *) &_result_ref;
093d3ff1 22732 }
554f62e9
RD
22733 wxPyEndAllowThreads(__tstate);
22734 if (PyErr_Occurred()) SWIG_fail;
22735 }
22736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22737 return resultobj;
22738fail:
22739 return NULL;
22740}
22741
22742
22743SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22744 PyObject *resultobj = 0;
22745 wxDC *arg1 = (wxDC *) 0 ;
22746 wxColour *arg2 = 0 ;
22747 void *argp1 = 0 ;
22748 int res1 = 0 ;
22749 wxColour temp2 ;
22750 PyObject * obj0 = 0 ;
22751 PyObject * obj1 = 0 ;
22752 char * kwnames[] = {
22753 (char *) "self",(char *) "colour", NULL
22754 };
22755
22756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22758 if (!SWIG_IsOK(res1)) {
22759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22760 }
22761 arg1 = reinterpret_cast< wxDC * >(argp1);
22762 {
22763 arg2 = &temp2;
22764 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22765 }
22766 {
22767 PyThreadState* __tstate = wxPyBeginAllowThreads();
22768 (arg1)->SetTextForeground((wxColour const &)*arg2);
22769 wxPyEndAllowThreads(__tstate);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 }
22772 resultobj = SWIG_Py_Void();
22773 return resultobj;
22774fail:
22775 return NULL;
22776}
22777
22778
22779SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22780 PyObject *resultobj = 0;
22781 wxDC *arg1 = (wxDC *) 0 ;
22782 wxColour *arg2 = 0 ;
22783 void *argp1 = 0 ;
22784 int res1 = 0 ;
22785 wxColour temp2 ;
22786 PyObject * obj0 = 0 ;
22787 PyObject * obj1 = 0 ;
22788 char * kwnames[] = {
22789 (char *) "self",(char *) "colour", NULL
22790 };
22791
22792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22794 if (!SWIG_IsOK(res1)) {
22795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22796 }
22797 arg1 = reinterpret_cast< wxDC * >(argp1);
22798 {
22799 arg2 = &temp2;
22800 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22801 }
22802 {
22803 PyThreadState* __tstate = wxPyBeginAllowThreads();
22804 (arg1)->SetTextBackground((wxColour const &)*arg2);
22805 wxPyEndAllowThreads(__tstate);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 }
22808 resultobj = SWIG_Py_Void();
22809 return resultobj;
22810fail:
22811 return NULL;
22812}
22813
22814
22815SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22816 PyObject *resultobj = 0;
22817 wxDC *arg1 = (wxDC *) 0 ;
22818 int result;
22819 void *argp1 = 0 ;
22820 int res1 = 0 ;
22821 PyObject *swig_obj[1] ;
22822
22823 if (!args) SWIG_fail;
22824 swig_obj[0] = args;
22825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22826 if (!SWIG_IsOK(res1)) {
22827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22828 }
22829 arg1 = reinterpret_cast< wxDC * >(argp1);
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (int)((wxDC const *)arg1)->GetMapMode();
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_From_int(static_cast< int >(result));
22837 return resultobj;
22838fail:
22839 return NULL;
22840}
22841
22842
22843SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj = 0;
22845 wxDC *arg1 = (wxDC *) 0 ;
22846 int arg2 ;
22847 void *argp1 = 0 ;
22848 int res1 = 0 ;
22849 int val2 ;
22850 int ecode2 = 0 ;
22851 PyObject * obj0 = 0 ;
22852 PyObject * obj1 = 0 ;
22853 char * kwnames[] = {
22854 (char *) "self",(char *) "mode", NULL
22855 };
22856
22857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22859 if (!SWIG_IsOK(res1)) {
22860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22861 }
22862 arg1 = reinterpret_cast< wxDC * >(argp1);
22863 ecode2 = SWIG_AsVal_int(obj1, &val2);
22864 if (!SWIG_IsOK(ecode2)) {
22865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22866 }
22867 arg2 = static_cast< int >(val2);
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 (arg1)->SetMapMode(arg2);
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 resultobj = SWIG_Py_Void();
22875 return resultobj;
22876fail:
22877 return NULL;
22878}
22879
22880
22881SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22882 PyObject *resultobj = 0;
22883 wxDC *arg1 = (wxDC *) 0 ;
22884 double *arg2 = (double *) 0 ;
22885 double *arg3 = (double *) 0 ;
22886 void *argp1 = 0 ;
22887 int res1 = 0 ;
22888 double temp2 ;
22889 int res2 = SWIG_TMPOBJ ;
22890 double temp3 ;
22891 int res3 = SWIG_TMPOBJ ;
22892 PyObject *swig_obj[1] ;
22893
22894 arg2 = &temp2;
22895 arg3 = &temp3;
22896 if (!args) SWIG_fail;
22897 swig_obj[0] = args;
22898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22899 if (!SWIG_IsOK(res1)) {
22900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22901 }
22902 arg1 = reinterpret_cast< wxDC * >(argp1);
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = SWIG_Py_Void();
22910 if (SWIG_IsTmpObj(res2)) {
22911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22912 } else {
22913 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22915 }
22916 if (SWIG_IsTmpObj(res3)) {
22917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22918 } else {
22919 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22921 }
22922 return resultobj;
22923fail:
22924 return NULL;
22925}
22926
22927
22928SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22929 PyObject *resultobj = 0;
22930 wxDC *arg1 = (wxDC *) 0 ;
22931 double arg2 ;
22932 double arg3 ;
22933 void *argp1 = 0 ;
22934 int res1 = 0 ;
22935 double val2 ;
22936 int ecode2 = 0 ;
22937 double val3 ;
22938 int ecode3 = 0 ;
22939 PyObject * obj0 = 0 ;
22940 PyObject * obj1 = 0 ;
22941 PyObject * obj2 = 0 ;
22942 char * kwnames[] = {
22943 (char *) "self",(char *) "x",(char *) "y", NULL
22944 };
22945
22946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22948 if (!SWIG_IsOK(res1)) {
22949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22950 }
22951 arg1 = reinterpret_cast< wxDC * >(argp1);
22952 ecode2 = SWIG_AsVal_double(obj1, &val2);
22953 if (!SWIG_IsOK(ecode2)) {
22954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22955 }
22956 arg2 = static_cast< double >(val2);
22957 ecode3 = SWIG_AsVal_double(obj2, &val3);
22958 if (!SWIG_IsOK(ecode3)) {
22959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22960 }
22961 arg3 = static_cast< double >(val3);
22962 {
22963 PyThreadState* __tstate = wxPyBeginAllowThreads();
22964 (arg1)->SetUserScale(arg2,arg3);
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 resultobj = SWIG_Py_Void();
22969 return resultobj;
22970fail:
22971 return NULL;
22972}
22973
22974
22975SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22976 PyObject *resultobj = 0;
22977 wxDC *arg1 = (wxDC *) 0 ;
22978 double *arg2 = (double *) 0 ;
22979 double *arg3 = (double *) 0 ;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 double temp2 ;
22983 int res2 = SWIG_TMPOBJ ;
22984 double temp3 ;
22985 int res3 = SWIG_TMPOBJ ;
22986 PyObject *swig_obj[1] ;
22987
22988 arg2 = &temp2;
22989 arg3 = &temp3;
22990 if (!args) SWIG_fail;
22991 swig_obj[0] = args;
22992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22993 if (!SWIG_IsOK(res1)) {
22994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22995 }
22996 arg1 = reinterpret_cast< wxDC * >(argp1);
22997 {
22998 PyThreadState* __tstate = wxPyBeginAllowThreads();
22999 (arg1)->GetLogicalScale(arg2,arg3);
23000 wxPyEndAllowThreads(__tstate);
23001 if (PyErr_Occurred()) SWIG_fail;
23002 }
23003 resultobj = SWIG_Py_Void();
23004 if (SWIG_IsTmpObj(res2)) {
23005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23006 } else {
23007 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23009 }
23010 if (SWIG_IsTmpObj(res3)) {
23011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23012 } else {
23013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23015 }
23016 return resultobj;
23017fail:
23018 return NULL;
23019}
23020
23021
23022SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23023 PyObject *resultobj = 0;
23024 wxDC *arg1 = (wxDC *) 0 ;
23025 double arg2 ;
23026 double arg3 ;
23027 void *argp1 = 0 ;
23028 int res1 = 0 ;
23029 double val2 ;
23030 int ecode2 = 0 ;
23031 double val3 ;
23032 int ecode3 = 0 ;
23033 PyObject * obj0 = 0 ;
23034 PyObject * obj1 = 0 ;
23035 PyObject * obj2 = 0 ;
23036 char * kwnames[] = {
23037 (char *) "self",(char *) "x",(char *) "y", NULL
23038 };
23039
23040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23042 if (!SWIG_IsOK(res1)) {
23043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23044 }
23045 arg1 = reinterpret_cast< wxDC * >(argp1);
23046 ecode2 = SWIG_AsVal_double(obj1, &val2);
23047 if (!SWIG_IsOK(ecode2)) {
23048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23049 }
23050 arg2 = static_cast< double >(val2);
23051 ecode3 = SWIG_AsVal_double(obj2, &val3);
23052 if (!SWIG_IsOK(ecode3)) {
23053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23054 }
23055 arg3 = static_cast< double >(val3);
23056 {
23057 PyThreadState* __tstate = wxPyBeginAllowThreads();
23058 (arg1)->SetLogicalScale(arg2,arg3);
23059 wxPyEndAllowThreads(__tstate);
23060 if (PyErr_Occurred()) SWIG_fail;
23061 }
23062 resultobj = SWIG_Py_Void();
23063 return resultobj;
23064fail:
23065 return NULL;
23066}
23067
23068
23069SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23070 PyObject *resultobj = 0;
23071 wxDC *arg1 = (wxDC *) 0 ;
23072 wxPoint result;
23073 void *argp1 = 0 ;
23074 int res1 = 0 ;
23075 PyObject *swig_obj[1] ;
23076
23077 if (!args) SWIG_fail;
23078 swig_obj[0] = args;
23079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23080 if (!SWIG_IsOK(res1)) {
23081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23082 }
23083 arg1 = reinterpret_cast< wxDC * >(argp1);
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23091 return resultobj;
23092fail:
23093 return NULL;
23094}
23095
23096
23097SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23098 PyObject *resultobj = 0;
23099 wxDC *arg1 = (wxDC *) 0 ;
23100 int *arg2 = (int *) 0 ;
23101 int *arg3 = (int *) 0 ;
23102 void *argp1 = 0 ;
23103 int res1 = 0 ;
23104 int temp2 ;
23105 int res2 = SWIG_TMPOBJ ;
23106 int temp3 ;
23107 int res3 = SWIG_TMPOBJ ;
23108 PyObject *swig_obj[1] ;
23109
23110 arg2 = &temp2;
23111 arg3 = &temp3;
23112 if (!args) SWIG_fail;
23113 swig_obj[0] = args;
23114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23117 }
23118 arg1 = reinterpret_cast< wxDC * >(argp1);
23119 {
23120 PyThreadState* __tstate = wxPyBeginAllowThreads();
23121 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23122 wxPyEndAllowThreads(__tstate);
23123 if (PyErr_Occurred()) SWIG_fail;
23124 }
23125 resultobj = SWIG_Py_Void();
23126 if (SWIG_IsTmpObj(res2)) {
23127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23128 } else {
23129 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23131 }
23132 if (SWIG_IsTmpObj(res3)) {
23133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23134 } else {
23135 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23137 }
23138 return resultobj;
23139fail:
23140 return NULL;
23141}
23142
23143
23144SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23145 PyObject *resultobj = 0;
23146 wxDC *arg1 = (wxDC *) 0 ;
23147 int arg2 ;
23148 int arg3 ;
23149 void *argp1 = 0 ;
23150 int res1 = 0 ;
23151 int val2 ;
23152 int ecode2 = 0 ;
23153 int val3 ;
23154 int ecode3 = 0 ;
23155 PyObject * obj0 = 0 ;
23156 PyObject * obj1 = 0 ;
23157 PyObject * obj2 = 0 ;
23158 char * kwnames[] = {
23159 (char *) "self",(char *) "x",(char *) "y", NULL
23160 };
23161
23162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23164 if (!SWIG_IsOK(res1)) {
23165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23166 }
23167 arg1 = reinterpret_cast< wxDC * >(argp1);
23168 ecode2 = SWIG_AsVal_int(obj1, &val2);
23169 if (!SWIG_IsOK(ecode2)) {
23170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23171 }
23172 arg2 = static_cast< int >(val2);
23173 ecode3 = SWIG_AsVal_int(obj2, &val3);
23174 if (!SWIG_IsOK(ecode3)) {
23175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23176 }
23177 arg3 = static_cast< int >(val3);
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 (arg1)->SetLogicalOrigin(arg2,arg3);
23181 wxPyEndAllowThreads(__tstate);
23182 if (PyErr_Occurred()) SWIG_fail;
23183 }
23184 resultobj = SWIG_Py_Void();
23185 return resultobj;
23186fail:
23187 return NULL;
23188}
23189
23190
23191SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23192 PyObject *resultobj = 0;
23193 wxDC *arg1 = (wxDC *) 0 ;
23194 wxPoint *arg2 = 0 ;
23195 void *argp1 = 0 ;
23196 int res1 = 0 ;
23197 wxPoint temp2 ;
23198 PyObject * obj0 = 0 ;
23199 PyObject * obj1 = 0 ;
23200 char * kwnames[] = {
23201 (char *) "self",(char *) "point", NULL
23202 };
23203
23204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23206 if (!SWIG_IsOK(res1)) {
23207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23208 }
23209 arg1 = reinterpret_cast< wxDC * >(argp1);
23210 {
23211 arg2 = &temp2;
23212 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23213 }
23214 {
23215 PyThreadState* __tstate = wxPyBeginAllowThreads();
23216 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 resultobj = SWIG_Py_Void();
23221 return resultobj;
23222fail:
23223 return NULL;
23224}
23225
23226
23227SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23228 PyObject *resultobj = 0;
23229 wxDC *arg1 = (wxDC *) 0 ;
23230 wxPoint result;
23231 void *argp1 = 0 ;
23232 int res1 = 0 ;
23233 PyObject *swig_obj[1] ;
23234
23235 if (!args) SWIG_fail;
23236 swig_obj[0] = args;
23237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23238 if (!SWIG_IsOK(res1)) {
23239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23240 }
23241 arg1 = reinterpret_cast< wxDC * >(argp1);
23242 {
23243 PyThreadState* __tstate = wxPyBeginAllowThreads();
23244 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23249 return resultobj;
23250fail:
23251 return NULL;
23252}
23253
23254
23255SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23256 PyObject *resultobj = 0;
23257 wxDC *arg1 = (wxDC *) 0 ;
23258 int *arg2 = (int *) 0 ;
23259 int *arg3 = (int *) 0 ;
23260 void *argp1 = 0 ;
23261 int res1 = 0 ;
23262 int temp2 ;
23263 int res2 = SWIG_TMPOBJ ;
23264 int temp3 ;
23265 int res3 = SWIG_TMPOBJ ;
23266 PyObject *swig_obj[1] ;
23267
23268 arg2 = &temp2;
23269 arg3 = &temp3;
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_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23275 }
23276 arg1 = reinterpret_cast< wxDC * >(argp1);
23277 {
23278 PyThreadState* __tstate = wxPyBeginAllowThreads();
23279 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23280 wxPyEndAllowThreads(__tstate);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 }
23283 resultobj = SWIG_Py_Void();
23284 if (SWIG_IsTmpObj(res2)) {
23285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23286 } else {
23287 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23289 }
23290 if (SWIG_IsTmpObj(res3)) {
23291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23292 } else {
23293 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23295 }
23296 return resultobj;
23297fail:
23298 return NULL;
23299}
23300
23301
23302SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23303 PyObject *resultobj = 0;
23304 wxDC *arg1 = (wxDC *) 0 ;
23305 int arg2 ;
23306 int arg3 ;
23307 void *argp1 = 0 ;
23308 int res1 = 0 ;
23309 int val2 ;
23310 int ecode2 = 0 ;
23311 int val3 ;
23312 int ecode3 = 0 ;
23313 PyObject * obj0 = 0 ;
23314 PyObject * obj1 = 0 ;
23315 PyObject * obj2 = 0 ;
23316 char * kwnames[] = {
23317 (char *) "self",(char *) "x",(char *) "y", NULL
23318 };
23319
23320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23324 }
23325 arg1 = reinterpret_cast< wxDC * >(argp1);
23326 ecode2 = SWIG_AsVal_int(obj1, &val2);
23327 if (!SWIG_IsOK(ecode2)) {
23328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23329 }
23330 arg2 = static_cast< int >(val2);
23331 ecode3 = SWIG_AsVal_int(obj2, &val3);
23332 if (!SWIG_IsOK(ecode3)) {
23333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23334 }
23335 arg3 = static_cast< int >(val3);
23336 {
23337 PyThreadState* __tstate = wxPyBeginAllowThreads();
23338 (arg1)->SetDeviceOrigin(arg2,arg3);
23339 wxPyEndAllowThreads(__tstate);
23340 if (PyErr_Occurred()) SWIG_fail;
23341 }
23342 resultobj = SWIG_Py_Void();
23343 return resultobj;
23344fail:
23345 return NULL;
23346}
23347
23348
23349SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23350 PyObject *resultobj = 0;
23351 wxDC *arg1 = (wxDC *) 0 ;
23352 wxPoint *arg2 = 0 ;
23353 void *argp1 = 0 ;
23354 int res1 = 0 ;
23355 wxPoint temp2 ;
23356 PyObject * obj0 = 0 ;
23357 PyObject * obj1 = 0 ;
23358 char * kwnames[] = {
23359 (char *) "self",(char *) "point", NULL
23360 };
23361
23362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23364 if (!SWIG_IsOK(res1)) {
23365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23366 }
23367 arg1 = reinterpret_cast< wxDC * >(argp1);
23368 {
23369 arg2 = &temp2;
23370 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23371 }
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_Py_Void();
23379 return resultobj;
23380fail:
23381 return NULL;
23382}
23383
23384
23385SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj = 0;
23387 wxDC *arg1 = (wxDC *) 0 ;
23388 bool arg2 ;
23389 bool arg3 ;
23390 void *argp1 = 0 ;
23391 int res1 = 0 ;
23392 bool val2 ;
23393 int ecode2 = 0 ;
23394 bool val3 ;
23395 int ecode3 = 0 ;
23396 PyObject * obj0 = 0 ;
23397 PyObject * obj1 = 0 ;
23398 PyObject * obj2 = 0 ;
23399 char * kwnames[] = {
23400 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23401 };
23402
23403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23405 if (!SWIG_IsOK(res1)) {
23406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23407 }
23408 arg1 = reinterpret_cast< wxDC * >(argp1);
23409 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23410 if (!SWIG_IsOK(ecode2)) {
23411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23412 }
23413 arg2 = static_cast< bool >(val2);
23414 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23415 if (!SWIG_IsOK(ecode3)) {
23416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23417 }
23418 arg3 = static_cast< bool >(val3);
23419 {
23420 PyThreadState* __tstate = wxPyBeginAllowThreads();
23421 (arg1)->SetAxisOrientation(arg2,arg3);
23422 wxPyEndAllowThreads(__tstate);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 }
23425 resultobj = SWIG_Py_Void();
23426 return resultobj;
23427fail:
23428 return NULL;
23429}
23430
23431
23432SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23433 PyObject *resultobj = 0;
23434 wxDC *arg1 = (wxDC *) 0 ;
23435 int result;
23436 void *argp1 = 0 ;
23437 int res1 = 0 ;
23438 PyObject *swig_obj[1] ;
23439
23440 if (!args) SWIG_fail;
23441 swig_obj[0] = args;
23442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23443 if (!SWIG_IsOK(res1)) {
23444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23445 }
23446 arg1 = reinterpret_cast< wxDC * >(argp1);
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 resultobj = SWIG_From_int(static_cast< int >(result));
23454 return resultobj;
23455fail:
23456 return NULL;
23457}
23458
23459
23460SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23461 PyObject *resultobj = 0;
23462 wxDC *arg1 = (wxDC *) 0 ;
23463 int arg2 ;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 int val2 ;
23467 int ecode2 = 0 ;
23468 PyObject * obj0 = 0 ;
23469 PyObject * obj1 = 0 ;
23470 char * kwnames[] = {
23471 (char *) "self",(char *) "function", NULL
23472 };
23473
23474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23476 if (!SWIG_IsOK(res1)) {
23477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23478 }
23479 arg1 = reinterpret_cast< wxDC * >(argp1);
23480 ecode2 = SWIG_AsVal_int(obj1, &val2);
23481 if (!SWIG_IsOK(ecode2)) {
23482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23483 }
23484 arg2 = static_cast< int >(val2);
23485 {
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 (arg1)->SetLogicalFunction(arg2);
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 resultobj = SWIG_Py_Void();
23492 return resultobj;
23493fail:
23494 return NULL;
23495}
23496
23497
23498SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23499 PyObject *resultobj = 0;
23500 wxDC *arg1 = (wxDC *) 0 ;
23501 void *argp1 = 0 ;
23502 int res1 = 0 ;
23503 PyObject *swig_obj[1] ;
23504
23505 if (!args) SWIG_fail;
23506 swig_obj[0] = args;
23507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23508 if (!SWIG_IsOK(res1)) {
23509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23510 }
23511 arg1 = reinterpret_cast< wxDC * >(argp1);
23512 {
23513 PyThreadState* __tstate = wxPyBeginAllowThreads();
23514 (arg1)->ComputeScaleAndOrigin();
23515 wxPyEndAllowThreads(__tstate);
23516 if (PyErr_Occurred()) SWIG_fail;
23517 }
23518 resultobj = SWIG_Py_Void();
23519 return resultobj;
23520fail:
23521 return NULL;
23522}
23523
23524
23525SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23526 PyObject *resultobj = 0;
23527 wxDC *arg1 = (wxDC *) 0 ;
23528 int arg2 ;
23529 int arg3 ;
23530 void *argp1 = 0 ;
23531 int res1 = 0 ;
23532 int val2 ;
23533 int ecode2 = 0 ;
23534 int val3 ;
23535 int ecode3 = 0 ;
23536 PyObject * obj0 = 0 ;
23537 PyObject * obj1 = 0 ;
23538 PyObject * obj2 = 0 ;
23539 char * kwnames[] = {
23540 (char *) "self",(char *) "x",(char *) "y", NULL
23541 };
23542
23543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23545 if (!SWIG_IsOK(res1)) {
23546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23547 }
23548 arg1 = reinterpret_cast< wxDC * >(argp1);
23549 ecode2 = SWIG_AsVal_int(obj1, &val2);
23550 if (!SWIG_IsOK(ecode2)) {
23551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23552 }
23553 arg2 = static_cast< int >(val2);
23554 ecode3 = SWIG_AsVal_int(obj2, &val3);
23555 if (!SWIG_IsOK(ecode3)) {
23556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23557 }
23558 arg3 = static_cast< int >(val3);
23559 {
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 (arg1)->CalcBoundingBox(arg2,arg3);
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 resultobj = SWIG_Py_Void();
23566 return resultobj;
23567fail:
23568 return NULL;
23569}
23570
23571
23572SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23573 PyObject *resultobj = 0;
23574 wxDC *arg1 = (wxDC *) 0 ;
23575 wxPoint *arg2 = 0 ;
23576 void *argp1 = 0 ;
23577 int res1 = 0 ;
23578 wxPoint temp2 ;
23579 PyObject * obj0 = 0 ;
23580 PyObject * obj1 = 0 ;
23581 char * kwnames[] = {
23582 (char *) "self",(char *) "point", NULL
23583 };
23584
23585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23589 }
23590 arg1 = reinterpret_cast< wxDC * >(argp1);
23591 {
23592 arg2 = &temp2;
23593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23594 }
23595 {
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 resultobj = SWIG_Py_Void();
23602 return resultobj;
23603fail:
23604 return NULL;
23605}
23606
23607
23608SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23609 PyObject *resultobj = 0;
23610 wxDC *arg1 = (wxDC *) 0 ;
23611 void *argp1 = 0 ;
23612 int res1 = 0 ;
23613 PyObject *swig_obj[1] ;
23614
23615 if (!args) SWIG_fail;
23616 swig_obj[0] = args;
23617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23618 if (!SWIG_IsOK(res1)) {
23619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23620 }
23621 arg1 = reinterpret_cast< wxDC * >(argp1);
23622 {
23623 PyThreadState* __tstate = wxPyBeginAllowThreads();
23624 (arg1)->ResetBoundingBox();
23625 wxPyEndAllowThreads(__tstate);
23626 if (PyErr_Occurred()) SWIG_fail;
23627 }
23628 resultobj = SWIG_Py_Void();
23629 return resultobj;
23630fail:
23631 return NULL;
23632}
23633
23634
23635SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23636 PyObject *resultobj = 0;
23637 wxDC *arg1 = (wxDC *) 0 ;
23638 int result;
23639 void *argp1 = 0 ;
23640 int res1 = 0 ;
23641 PyObject *swig_obj[1] ;
23642
23643 if (!args) SWIG_fail;
23644 swig_obj[0] = args;
23645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23646 if (!SWIG_IsOK(res1)) {
23647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23648 }
23649 arg1 = reinterpret_cast< wxDC * >(argp1);
23650 {
23651 PyThreadState* __tstate = wxPyBeginAllowThreads();
23652 result = (int)((wxDC const *)arg1)->MinX();
23653 wxPyEndAllowThreads(__tstate);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 }
23656 resultobj = SWIG_From_int(static_cast< int >(result));
23657 return resultobj;
23658fail:
23659 return NULL;
23660}
23661
23662
23663SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23664 PyObject *resultobj = 0;
23665 wxDC *arg1 = (wxDC *) 0 ;
23666 int result;
23667 void *argp1 = 0 ;
23668 int res1 = 0 ;
23669 PyObject *swig_obj[1] ;
23670
23671 if (!args) SWIG_fail;
23672 swig_obj[0] = args;
23673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23674 if (!SWIG_IsOK(res1)) {
23675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23676 }
23677 arg1 = reinterpret_cast< wxDC * >(argp1);
23678 {
23679 PyThreadState* __tstate = wxPyBeginAllowThreads();
23680 result = (int)((wxDC const *)arg1)->MaxX();
23681 wxPyEndAllowThreads(__tstate);
23682 if (PyErr_Occurred()) SWIG_fail;
23683 }
23684 resultobj = SWIG_From_int(static_cast< int >(result));
23685 return resultobj;
23686fail:
23687 return NULL;
23688}
23689
23690
23691SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23692 PyObject *resultobj = 0;
23693 wxDC *arg1 = (wxDC *) 0 ;
23694 int result;
23695 void *argp1 = 0 ;
23696 int res1 = 0 ;
23697 PyObject *swig_obj[1] ;
23698
23699 if (!args) SWIG_fail;
23700 swig_obj[0] = args;
23701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23702 if (!SWIG_IsOK(res1)) {
23703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23704 }
23705 arg1 = reinterpret_cast< wxDC * >(argp1);
23706 {
23707 PyThreadState* __tstate = wxPyBeginAllowThreads();
23708 result = (int)((wxDC const *)arg1)->MinY();
23709 wxPyEndAllowThreads(__tstate);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 }
23712 resultobj = SWIG_From_int(static_cast< int >(result));
23713 return resultobj;
23714fail:
23715 return NULL;
23716}
23717
23718
23719SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23720 PyObject *resultobj = 0;
23721 wxDC *arg1 = (wxDC *) 0 ;
23722 int result;
23723 void *argp1 = 0 ;
23724 int res1 = 0 ;
23725 PyObject *swig_obj[1] ;
23726
23727 if (!args) SWIG_fail;
23728 swig_obj[0] = args;
23729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23730 if (!SWIG_IsOK(res1)) {
23731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23732 }
23733 arg1 = reinterpret_cast< wxDC * >(argp1);
23734 {
23735 PyThreadState* __tstate = wxPyBeginAllowThreads();
23736 result = (int)((wxDC const *)arg1)->MaxY();
23737 wxPyEndAllowThreads(__tstate);
23738 if (PyErr_Occurred()) SWIG_fail;
23739 }
23740 resultobj = SWIG_From_int(static_cast< int >(result));
23741 return resultobj;
23742fail:
23743 return NULL;
23744}
23745
23746
23747SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23748 PyObject *resultobj = 0;
23749 wxDC *arg1 = (wxDC *) 0 ;
23750 int *arg2 = (int *) 0 ;
23751 int *arg3 = (int *) 0 ;
23752 int *arg4 = (int *) 0 ;
23753 int *arg5 = (int *) 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 int temp2 ;
23757 int res2 = SWIG_TMPOBJ ;
23758 int temp3 ;
23759 int res3 = SWIG_TMPOBJ ;
23760 int temp4 ;
23761 int res4 = SWIG_TMPOBJ ;
23762 int temp5 ;
23763 int res5 = SWIG_TMPOBJ ;
23764 PyObject *swig_obj[1] ;
23765
23766 arg2 = &temp2;
23767 arg3 = &temp3;
23768 arg4 = &temp4;
23769 arg5 = &temp5;
23770 if (!args) SWIG_fail;
23771 swig_obj[0] = args;
23772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23773 if (!SWIG_IsOK(res1)) {
23774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23775 }
23776 arg1 = reinterpret_cast< wxDC * >(argp1);
23777 {
23778 PyThreadState* __tstate = wxPyBeginAllowThreads();
23779 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23780 wxPyEndAllowThreads(__tstate);
23781 if (PyErr_Occurred()) SWIG_fail;
23782 }
23783 resultobj = SWIG_Py_Void();
23784 if (SWIG_IsTmpObj(res2)) {
23785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23786 } else {
23787 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23789 }
23790 if (SWIG_IsTmpObj(res3)) {
23791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23792 } else {
23793 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23795 }
23796 if (SWIG_IsTmpObj(res4)) {
23797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23798 } else {
23799 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23801 }
23802 if (SWIG_IsTmpObj(res5)) {
23803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23804 } else {
23805 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23807 }
23808 return resultobj;
23809fail:
23810 return NULL;
23811}
23812
23813
b39fe951
RD
23814SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23815 PyObject *resultobj = 0;
23816 wxDC *arg1 = (wxDC *) 0 ;
23817 wxLayoutDirection result;
23818 void *argp1 = 0 ;
23819 int res1 = 0 ;
23820 PyObject *swig_obj[1] ;
23821
23822 if (!args) SWIG_fail;
23823 swig_obj[0] = args;
23824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23825 if (!SWIG_IsOK(res1)) {
23826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23827 }
23828 arg1 = reinterpret_cast< wxDC * >(argp1);
23829 {
23830 PyThreadState* __tstate = wxPyBeginAllowThreads();
23831 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 resultobj = SWIG_From_int(static_cast< int >(result));
23836 return resultobj;
23837fail:
23838 return NULL;
23839}
23840
23841
23842SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23843 PyObject *resultobj = 0;
23844 wxDC *arg1 = (wxDC *) 0 ;
23845 wxLayoutDirection arg2 ;
23846 void *argp1 = 0 ;
23847 int res1 = 0 ;
23848 int val2 ;
23849 int ecode2 = 0 ;
23850 PyObject * obj0 = 0 ;
23851 PyObject * obj1 = 0 ;
23852 char * kwnames[] = {
23853 (char *) "self",(char *) "dir", NULL
23854 };
23855
23856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23858 if (!SWIG_IsOK(res1)) {
23859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23860 }
23861 arg1 = reinterpret_cast< wxDC * >(argp1);
23862 ecode2 = SWIG_AsVal_int(obj1, &val2);
23863 if (!SWIG_IsOK(ecode2)) {
23864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23865 }
23866 arg2 = static_cast< wxLayoutDirection >(val2);
23867 {
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 (arg1)->SetLayoutDirection(arg2);
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 resultobj = SWIG_Py_Void();
23874 return resultobj;
23875fail:
23876 return NULL;
23877}
23878
23879
554f62e9
RD
23880SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23881 PyObject *resultobj = 0;
23882 wxDC *arg1 = (wxDC *) 0 ;
23883 long result;
23884 void *argp1 = 0 ;
23885 int res1 = 0 ;
23886 PyObject *swig_obj[1] ;
23887
23888 if (!args) SWIG_fail;
23889 swig_obj[0] = args;
23890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23891 if (!SWIG_IsOK(res1)) {
23892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23893 }
23894 arg1 = reinterpret_cast< wxDC * >(argp1);
23895 {
23896 PyThreadState* __tstate = wxPyBeginAllowThreads();
23897 result = (long)(arg1)->GetHDC();
23898 wxPyEndAllowThreads(__tstate);
23899 if (PyErr_Occurred()) SWIG_fail;
23900 }
23901 resultobj = SWIG_From_long(static_cast< long >(result));
23902 return resultobj;
23903fail:
23904 return NULL;
23905}
23906
23907
23908SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23909 PyObject *resultobj = 0;
23910 wxDC *arg1 = (wxDC *) 0 ;
23911 PyObject *arg2 = (PyObject *) 0 ;
23912 PyObject *arg3 = (PyObject *) 0 ;
23913 PyObject *arg4 = (PyObject *) 0 ;
23914 PyObject *result = 0 ;
23915 void *argp1 = 0 ;
23916 int res1 = 0 ;
23917 PyObject * obj0 = 0 ;
23918 PyObject * obj1 = 0 ;
23919 PyObject * obj2 = 0 ;
23920 PyObject * obj3 = 0 ;
23921 char * kwnames[] = {
23922 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23923 };
23924
23925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23927 if (!SWIG_IsOK(res1)) {
23928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23929 }
23930 arg1 = reinterpret_cast< wxDC * >(argp1);
23931 arg2 = obj1;
23932 arg3 = obj2;
23933 arg4 = obj3;
23934 {
23935 PyThreadState* __tstate = wxPyBeginAllowThreads();
23936 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23937 wxPyEndAllowThreads(__tstate);
23938 if (PyErr_Occurred()) SWIG_fail;
23939 }
23940 resultobj = result;
23941 return resultobj;
23942fail:
23943 return NULL;
23944}
23945
23946
23947SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23948 PyObject *resultobj = 0;
23949 wxDC *arg1 = (wxDC *) 0 ;
23950 PyObject *arg2 = (PyObject *) 0 ;
23951 PyObject *arg3 = (PyObject *) 0 ;
23952 PyObject *arg4 = (PyObject *) 0 ;
23953 PyObject *result = 0 ;
23954 void *argp1 = 0 ;
23955 int res1 = 0 ;
23956 PyObject * obj0 = 0 ;
23957 PyObject * obj1 = 0 ;
23958 PyObject * obj2 = 0 ;
23959 PyObject * obj3 = 0 ;
23960 char * kwnames[] = {
23961 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23962 };
23963
23964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23966 if (!SWIG_IsOK(res1)) {
23967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23968 }
23969 arg1 = reinterpret_cast< wxDC * >(argp1);
23970 arg2 = obj1;
23971 arg3 = obj2;
23972 arg4 = obj3;
23973 {
23974 PyThreadState* __tstate = wxPyBeginAllowThreads();
23975 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23976 wxPyEndAllowThreads(__tstate);
23977 if (PyErr_Occurred()) SWIG_fail;
23978 }
23979 resultobj = result;
23980 return resultobj;
23981fail:
23982 return NULL;
23983}
23984
23985
23986SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23987 PyObject *resultobj = 0;
23988 wxDC *arg1 = (wxDC *) 0 ;
23989 PyObject *arg2 = (PyObject *) 0 ;
23990 PyObject *arg3 = (PyObject *) 0 ;
23991 PyObject *arg4 = (PyObject *) 0 ;
23992 PyObject *result = 0 ;
23993 void *argp1 = 0 ;
23994 int res1 = 0 ;
23995 PyObject * obj0 = 0 ;
23996 PyObject * obj1 = 0 ;
23997 PyObject * obj2 = 0 ;
23998 PyObject * obj3 = 0 ;
23999 char * kwnames[] = {
24000 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24001 };
24002
24003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24005 if (!SWIG_IsOK(res1)) {
24006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24007 }
24008 arg1 = reinterpret_cast< wxDC * >(argp1);
24009 arg2 = obj1;
24010 arg3 = obj2;
24011 arg4 = obj3;
24012 {
24013 PyThreadState* __tstate = wxPyBeginAllowThreads();
24014 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
24018 resultobj = result;
24019 return resultobj;
24020fail:
24021 return NULL;
24022}
24023
24024
24025SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24026 PyObject *resultobj = 0;
24027 wxDC *arg1 = (wxDC *) 0 ;
24028 PyObject *arg2 = (PyObject *) 0 ;
24029 PyObject *arg3 = (PyObject *) 0 ;
24030 PyObject *arg4 = (PyObject *) 0 ;
24031 PyObject *result = 0 ;
24032 void *argp1 = 0 ;
24033 int res1 = 0 ;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 PyObject * obj2 = 0 ;
24037 PyObject * obj3 = 0 ;
24038 char * kwnames[] = {
24039 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24040 };
24041
24042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24044 if (!SWIG_IsOK(res1)) {
24045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24046 }
24047 arg1 = reinterpret_cast< wxDC * >(argp1);
24048 arg2 = obj1;
24049 arg3 = obj2;
24050 arg4 = obj3;
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 resultobj = result;
24058 return resultobj;
24059fail:
24060 return NULL;
24061}
24062
24063
24064SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24065 PyObject *resultobj = 0;
24066 wxDC *arg1 = (wxDC *) 0 ;
24067 PyObject *arg2 = (PyObject *) 0 ;
24068 PyObject *arg3 = (PyObject *) 0 ;
24069 PyObject *arg4 = (PyObject *) 0 ;
24070 PyObject *result = 0 ;
24071 void *argp1 = 0 ;
24072 int res1 = 0 ;
24073 PyObject * obj0 = 0 ;
24074 PyObject * obj1 = 0 ;
24075 PyObject * obj2 = 0 ;
24076 PyObject * obj3 = 0 ;
24077 char * kwnames[] = {
24078 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24079 };
24080
24081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24083 if (!SWIG_IsOK(res1)) {
24084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24085 }
24086 arg1 = reinterpret_cast< wxDC * >(argp1);
24087 arg2 = obj1;
24088 arg3 = obj2;
24089 arg4 = obj3;
24090 {
24091 PyThreadState* __tstate = wxPyBeginAllowThreads();
24092 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24093 wxPyEndAllowThreads(__tstate);
24094 if (PyErr_Occurred()) SWIG_fail;
24095 }
24096 resultobj = result;
24097 return resultobj;
24098fail:
24099 return NULL;
24100}
24101
24102
24103SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24104 PyObject *resultobj = 0;
24105 wxDC *arg1 = (wxDC *) 0 ;
24106 PyObject *arg2 = (PyObject *) 0 ;
24107 PyObject *arg3 = (PyObject *) 0 ;
24108 PyObject *arg4 = (PyObject *) 0 ;
24109 PyObject *arg5 = (PyObject *) 0 ;
24110 PyObject *result = 0 ;
24111 void *argp1 = 0 ;
24112 int res1 = 0 ;
24113 PyObject * obj0 = 0 ;
24114 PyObject * obj1 = 0 ;
24115 PyObject * obj2 = 0 ;
24116 PyObject * obj3 = 0 ;
24117 PyObject * obj4 = 0 ;
24118 char * kwnames[] = {
24119 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24120 };
24121
24122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24124 if (!SWIG_IsOK(res1)) {
24125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24126 }
24127 arg1 = reinterpret_cast< wxDC * >(argp1);
24128 arg2 = obj1;
24129 arg3 = obj2;
24130 arg4 = obj3;
24131 arg5 = obj4;
24132 {
24133 PyThreadState* __tstate = wxPyBeginAllowThreads();
24134 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24135 wxPyEndAllowThreads(__tstate);
24136 if (PyErr_Occurred()) SWIG_fail;
24137 }
24138 resultobj = result;
24139 return resultobj;
24140fail:
24141 return NULL;
24142}
24143
24144
24145SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24146 PyObject *obj;
24147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24148 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24149 return SWIG_Py_Void();
24150}
24151
70d7cb34
RD
24152SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24153 PyObject *resultobj = 0;
24154 wxDC *arg1 = 0 ;
24155 wxColour *arg2 = 0 ;
24156 wxDCTextColourChanger *result = 0 ;
24157 void *argp1 = 0 ;
24158 int res1 = 0 ;
24159 wxColour temp2 ;
24160 PyObject * obj0 = 0 ;
24161 PyObject * obj1 = 0 ;
24162 char * kwnames[] = {
24163 (char *) "dc",(char *) "col", NULL
24164 };
24165
24166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24167 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24168 if (!SWIG_IsOK(res1)) {
24169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24170 }
24171 if (!argp1) {
24172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24173 }
24174 arg1 = reinterpret_cast< wxDC * >(argp1);
24175 {
24176 arg2 = &temp2;
24177 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24178 }
24179 {
24180 PyThreadState* __tstate = wxPyBeginAllowThreads();
24181 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24182 wxPyEndAllowThreads(__tstate);
24183 if (PyErr_Occurred()) SWIG_fail;
24184 }
24185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24186 return resultobj;
24187fail:
24188 return NULL;
24189}
24190
24191
24192SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24193 PyObject *resultobj = 0;
24194 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24195 void *argp1 = 0 ;
24196 int res1 = 0 ;
24197 PyObject *swig_obj[1] ;
24198
24199 if (!args) SWIG_fail;
24200 swig_obj[0] = args;
24201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24202 if (!SWIG_IsOK(res1)) {
24203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24204 }
24205 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24206 {
24207 PyThreadState* __tstate = wxPyBeginAllowThreads();
24208 delete arg1;
24209
24210 wxPyEndAllowThreads(__tstate);
24211 if (PyErr_Occurred()) SWIG_fail;
24212 }
24213 resultobj = SWIG_Py_Void();
24214 return resultobj;
24215fail:
24216 return NULL;
24217}
24218
24219
24220SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24221 PyObject *obj;
24222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24223 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24224 return SWIG_Py_Void();
24225}
24226
24227SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24228 return SWIG_Python_InitShadowInstance(args);
24229}
24230
24231SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24232 PyObject *resultobj = 0;
24233 wxDC *arg1 = 0 ;
24234 wxPen *arg2 = 0 ;
24235 wxDCPenChanger *result = 0 ;
24236 void *argp1 = 0 ;
24237 int res1 = 0 ;
24238 void *argp2 = 0 ;
24239 int res2 = 0 ;
24240 PyObject * obj0 = 0 ;
24241 PyObject * obj1 = 0 ;
24242 char * kwnames[] = {
24243 (char *) "dc",(char *) "pen", NULL
24244 };
24245
24246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24247 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24248 if (!SWIG_IsOK(res1)) {
24249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24250 }
24251 if (!argp1) {
24252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24253 }
24254 arg1 = reinterpret_cast< wxDC * >(argp1);
24255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24256 if (!SWIG_IsOK(res2)) {
24257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24258 }
24259 if (!argp2) {
24260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24261 }
24262 arg2 = reinterpret_cast< wxPen * >(argp2);
24263 {
24264 PyThreadState* __tstate = wxPyBeginAllowThreads();
24265 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24270 return resultobj;
24271fail:
24272 return NULL;
24273}
24274
24275
24276SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24277 PyObject *resultobj = 0;
24278 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24279 void *argp1 = 0 ;
24280 int res1 = 0 ;
24281 PyObject *swig_obj[1] ;
24282
24283 if (!args) SWIG_fail;
24284 swig_obj[0] = args;
24285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24286 if (!SWIG_IsOK(res1)) {
24287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24288 }
24289 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24290 {
24291 PyThreadState* __tstate = wxPyBeginAllowThreads();
24292 delete arg1;
24293
24294 wxPyEndAllowThreads(__tstate);
24295 if (PyErr_Occurred()) SWIG_fail;
24296 }
24297 resultobj = SWIG_Py_Void();
24298 return resultobj;
24299fail:
24300 return NULL;
24301}
24302
24303
24304SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24305 PyObject *obj;
24306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24307 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24308 return SWIG_Py_Void();
24309}
24310
24311SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24312 return SWIG_Python_InitShadowInstance(args);
24313}
24314
24315SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24316 PyObject *resultobj = 0;
24317 wxDC *arg1 = 0 ;
24318 wxBrush *arg2 = 0 ;
24319 wxDCBrushChanger *result = 0 ;
24320 void *argp1 = 0 ;
24321 int res1 = 0 ;
24322 void *argp2 = 0 ;
24323 int res2 = 0 ;
24324 PyObject * obj0 = 0 ;
24325 PyObject * obj1 = 0 ;
24326 char * kwnames[] = {
24327 (char *) "dc",(char *) "brush", NULL
24328 };
24329
24330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24331 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24332 if (!SWIG_IsOK(res1)) {
24333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24334 }
24335 if (!argp1) {
24336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24337 }
24338 arg1 = reinterpret_cast< wxDC * >(argp1);
24339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24340 if (!SWIG_IsOK(res2)) {
24341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24342 }
24343 if (!argp2) {
24344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24345 }
24346 arg2 = reinterpret_cast< wxBrush * >(argp2);
24347 {
24348 PyThreadState* __tstate = wxPyBeginAllowThreads();
24349 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24350 wxPyEndAllowThreads(__tstate);
24351 if (PyErr_Occurred()) SWIG_fail;
24352 }
24353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24354 return resultobj;
24355fail:
24356 return NULL;
24357}
24358
24359
24360SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24361 PyObject *resultobj = 0;
24362 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24363 void *argp1 = 0 ;
24364 int res1 = 0 ;
24365 PyObject *swig_obj[1] ;
24366
24367 if (!args) SWIG_fail;
24368 swig_obj[0] = args;
24369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24370 if (!SWIG_IsOK(res1)) {
24371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24372 }
24373 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 delete arg1;
24377
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 resultobj = SWIG_Py_Void();
24382 return resultobj;
24383fail:
24384 return NULL;
24385}
24386
24387
24388SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24389 PyObject *obj;
24390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24391 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24392 return SWIG_Py_Void();
24393}
24394
24395SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24396 return SWIG_Python_InitShadowInstance(args);
24397}
24398
24399SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24400 PyObject *resultobj = 0;
24401 wxDC *arg1 = 0 ;
24402 wxRegion *arg2 = 0 ;
24403 wxDCClipper *result = 0 ;
24404 void *argp1 = 0 ;
24405 int res1 = 0 ;
24406 void *argp2 = 0 ;
24407 int res2 = 0 ;
24408
24409 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24411 if (!SWIG_IsOK(res1)) {
24412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24413 }
24414 if (!argp1) {
24415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24416 }
24417 arg1 = reinterpret_cast< wxDC * >(argp1);
24418 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24419 if (!SWIG_IsOK(res2)) {
24420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24421 }
24422 if (!argp2) {
24423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24424 }
24425 arg2 = reinterpret_cast< wxRegion * >(argp2);
24426 {
24427 PyThreadState* __tstate = wxPyBeginAllowThreads();
24428 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24429 wxPyEndAllowThreads(__tstate);
24430 if (PyErr_Occurred()) SWIG_fail;
24431 }
24432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24433 return resultobj;
24434fail:
24435 return NULL;
24436}
24437
24438
24439SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24440 PyObject *resultobj = 0;
24441 wxDC *arg1 = 0 ;
24442 wxRect *arg2 = 0 ;
24443 wxDCClipper *result = 0 ;
24444 void *argp1 = 0 ;
24445 int res1 = 0 ;
24446 wxRect temp2 ;
24447
24448 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24450 if (!SWIG_IsOK(res1)) {
24451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24452 }
24453 if (!argp1) {
24454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24455 }
24456 arg1 = reinterpret_cast< wxDC * >(argp1);
24457 {
24458 arg2 = &temp2;
24459 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24460 }
24461 {
24462 PyThreadState* __tstate = wxPyBeginAllowThreads();
24463 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24464 wxPyEndAllowThreads(__tstate);
24465 if (PyErr_Occurred()) SWIG_fail;
24466 }
24467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24468 return resultobj;
24469fail:
24470 return NULL;
24471}
24472
24473
24474SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24475 PyObject *resultobj = 0;
24476 wxDC *arg1 = 0 ;
24477 int arg2 ;
24478 int arg3 ;
24479 int arg4 ;
24480 int arg5 ;
24481 wxDCClipper *result = 0 ;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 int val2 ;
24485 int ecode2 = 0 ;
24486 int val3 ;
24487 int ecode3 = 0 ;
24488 int val4 ;
24489 int ecode4 = 0 ;
24490 int val5 ;
24491 int ecode5 = 0 ;
24492
24493 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24495 if (!SWIG_IsOK(res1)) {
24496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24497 }
24498 if (!argp1) {
24499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24500 }
24501 arg1 = reinterpret_cast< wxDC * >(argp1);
24502 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24503 if (!SWIG_IsOK(ecode2)) {
24504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24505 }
24506 arg2 = static_cast< int >(val2);
24507 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24508 if (!SWIG_IsOK(ecode3)) {
24509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24510 }
24511 arg3 = static_cast< int >(val3);
24512 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24513 if (!SWIG_IsOK(ecode4)) {
24514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24515 }
24516 arg4 = static_cast< int >(val4);
24517 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24518 if (!SWIG_IsOK(ecode5)) {
24519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24520 }
24521 arg5 = static_cast< int >(val5);
24522 {
24523 PyThreadState* __tstate = wxPyBeginAllowThreads();
24524 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24525 wxPyEndAllowThreads(__tstate);
24526 if (PyErr_Occurred()) SWIG_fail;
24527 }
24528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24529 return resultobj;
24530fail:
24531 return NULL;
24532}
24533
24534
24535SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24536 int argc;
24537 PyObject *argv[6];
24538
24539 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24540 --argc;
24541 if (argc == 2) {
24542 int _v = 0;
24543 {
24544 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24545 _v = SWIG_CheckState(res);
24546 }
24547 if (!_v) goto check_1;
24548 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24549 }
24550check_1:
24551
24552 if (argc == 2) {
24553 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24554 }
24555 if (argc == 5) {
24556 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24557 }
24558
24559fail:
24560 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24561 return NULL;
24562}
24563
24564
24565SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24566 PyObject *resultobj = 0;
24567 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24568 void *argp1 = 0 ;
24569 int res1 = 0 ;
24570 PyObject *swig_obj[1] ;
24571
24572 if (!args) SWIG_fail;
24573 swig_obj[0] = args;
24574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24575 if (!SWIG_IsOK(res1)) {
24576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24577 }
24578 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24579 {
24580 PyThreadState* __tstate = wxPyBeginAllowThreads();
24581 delete arg1;
24582
24583 wxPyEndAllowThreads(__tstate);
24584 if (PyErr_Occurred()) SWIG_fail;
24585 }
24586 resultobj = SWIG_Py_Void();
24587 return resultobj;
24588fail:
24589 return NULL;
24590}
24591
24592
24593SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24594 PyObject *obj;
24595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24596 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24597 return SWIG_Py_Void();
24598}
24599
24600SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24601 return SWIG_Python_InitShadowInstance(args);
24602}
24603
8e99bda9 24604SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 24605 PyObject *resultobj = 0;
8f514ab4 24606 wxBitmap &arg1_defvalue = wxNullBitmap ;
8e99bda9 24607 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
554f62e9 24608 wxMemoryDC *result = 0 ;
8e99bda9
RD
24609 void *argp1 = 0 ;
24610 int res1 = 0 ;
24611 PyObject * obj0 = 0 ;
24612 char * kwnames[] = {
24613 (char *) "bitmap", NULL
24614 };
554f62e9 24615
8e99bda9
RD
24616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24617 if (obj0) {
8f514ab4 24618 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
8e99bda9 24619 if (!SWIG_IsOK(res1)) {
8f514ab4 24620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
24621 }
24622 if (!argp1) {
8f514ab4 24623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
24624 }
24625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24626 }
554f62e9
RD
24627 {
24628 if (!wxPyCheckForApp()) SWIG_fail;
24629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24630 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
554f62e9
RD
24631 wxPyEndAllowThreads(__tstate);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24635 return resultobj;
24636fail:
24637 return NULL;
24638}
24639
24640
24641SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24642 PyObject *resultobj = 0;
24643 wxDC *arg1 = (wxDC *) 0 ;
24644 wxMemoryDC *result = 0 ;
24645 void *argp1 = 0 ;
24646 int res1 = 0 ;
24647 PyObject * obj0 = 0 ;
24648 char * kwnames[] = {
24649 (char *) "oldDC", NULL
24650 };
24651
24652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24654 if (!SWIG_IsOK(res1)) {
24655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24656 }
24657 arg1 = reinterpret_cast< wxDC * >(argp1);
24658 {
24659 if (!wxPyCheckForApp()) SWIG_fail;
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24662 wxPyEndAllowThreads(__tstate);
24663 if (PyErr_Occurred()) SWIG_fail;
24664 }
24665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24666 return resultobj;
24667fail:
24668 return NULL;
24669}
24670
24671
24672SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24673 PyObject *resultobj = 0;
24674 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24675 wxBitmap *arg2 = 0 ;
24676 void *argp1 = 0 ;
24677 int res1 = 0 ;
24678 void *argp2 = 0 ;
24679 int res2 = 0 ;
24680 PyObject * obj0 = 0 ;
24681 PyObject * obj1 = 0 ;
24682 char * kwnames[] = {
24683 (char *) "self",(char *) "bitmap", NULL
24684 };
24685
24686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24688 if (!SWIG_IsOK(res1)) {
24689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24690 }
24691 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
8f514ab4
RD
24692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24693 if (!SWIG_IsOK(res2)) {
24694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24695 }
24696 if (!argp2) {
24697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24698 }
24699 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24700 {
24701 PyThreadState* __tstate = wxPyBeginAllowThreads();
24702 (arg1)->SelectObject(*arg2);
24703 wxPyEndAllowThreads(__tstate);
24704 if (PyErr_Occurred()) SWIG_fail;
24705 }
24706 resultobj = SWIG_Py_Void();
24707 return resultobj;
24708fail:
24709 return NULL;
24710}
24711
24712
24713SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24714 PyObject *resultobj = 0;
24715 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24716 wxBitmap *arg2 = 0 ;
24717 void *argp1 = 0 ;
24718 int res1 = 0 ;
24719 void *argp2 = 0 ;
24720 int res2 = 0 ;
24721 PyObject * obj0 = 0 ;
24722 PyObject * obj1 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "self",(char *) "bmp", NULL
24725 };
24726
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24731 }
24732 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
554f62e9
RD
24733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24734 if (!SWIG_IsOK(res2)) {
8f514ab4 24735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
554f62e9
RD
24736 }
24737 if (!argp2) {
8f514ab4 24738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
554f62e9
RD
24739 }
24740 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24741 {
24742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24743 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
554f62e9
RD
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
24747 resultobj = SWIG_Py_Void();
24748 return resultobj;
24749fail:
24750 return NULL;
24751}
24752
24753
24754SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24755 PyObject *obj;
24756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24757 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24758 return SWIG_Py_Void();
24759}
24760
24761SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24762 return SWIG_Python_InitShadowInstance(args);
24763}
24764
24f6c4e8
RD
24765SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24766 PyObject *resultobj = 0;
24767 wxScreenDC *result = 0 ;
24768
24769 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24770 {
24771 if (!wxPyCheckForApp()) SWIG_fail;
24772 PyThreadState* __tstate = wxPyBeginAllowThreads();
24773 result = (wxScreenDC *)new wxScreenDC();
24774 wxPyEndAllowThreads(__tstate);
24775 if (PyErr_Occurred()) SWIG_fail;
24776 }
24777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24778 return resultobj;
24779fail:
24780 return NULL;
24781}
24782
24783
24784SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24785 PyObject *resultobj = 0;
24786 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24787 wxWindow *arg2 = (wxWindow *) 0 ;
24788 bool result;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 void *argp2 = 0 ;
24792 int res2 = 0 ;
24793 PyObject * obj0 = 0 ;
24794 PyObject * obj1 = 0 ;
24795 char * kwnames[] = {
24796 (char *) "self",(char *) "window", NULL
24797 };
24798
24799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24801 if (!SWIG_IsOK(res1)) {
24802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24803 }
24804 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24806 if (!SWIG_IsOK(res2)) {
24807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24808 }
24809 arg2 = reinterpret_cast< wxWindow * >(argp2);
24810 {
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24813 wxPyEndAllowThreads(__tstate);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 {
24817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24818 }
24819 return resultobj;
24820fail:
24821 return NULL;
24822}
24823
24824
24825SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24826 PyObject *resultobj = 0;
24827 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24828 wxRect *arg2 = (wxRect *) NULL ;
24829 bool result;
24830 void *argp1 = 0 ;
24831 int res1 = 0 ;
24832 void *argp2 = 0 ;
24833 int res2 = 0 ;
24834 PyObject * obj0 = 0 ;
24835 PyObject * obj1 = 0 ;
24836 char * kwnames[] = {
24837 (char *) "self",(char *) "rect", NULL
24838 };
24839
24840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24842 if (!SWIG_IsOK(res1)) {
24843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24844 }
24845 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24846 if (obj1) {
24847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24848 if (!SWIG_IsOK(res2)) {
24849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24850 }
24851 arg2 = reinterpret_cast< wxRect * >(argp2);
24852 }
24853 {
24854 PyThreadState* __tstate = wxPyBeginAllowThreads();
24855 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24856 wxPyEndAllowThreads(__tstate);
24857 if (PyErr_Occurred()) SWIG_fail;
24858 }
24859 {
24860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24861 }
24862 return resultobj;
24863fail:
24864 return NULL;
24865}
24866
24867
24868SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24869 PyObject *resultobj = 0;
24870 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24871 bool result;
24872 void *argp1 = 0 ;
24873 int res1 = 0 ;
24874 PyObject *swig_obj[1] ;
24875
24876 if (!args) SWIG_fail;
24877 swig_obj[0] = args;
24878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24879 if (!SWIG_IsOK(res1)) {
24880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24881 }
24882 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 result = (bool)(arg1)->EndDrawingOnTop();
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 {
24890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24891 }
24892 return resultobj;
24893fail:
24894 return NULL;
24895}
24896
24897
24898SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24899 PyObject *obj;
24900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24901 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24902 return SWIG_Py_Void();
24903}
24904
24905SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24906 return SWIG_Python_InitShadowInstance(args);
24907}
24908
24909SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24910 PyObject *resultobj = 0;
24911 wxWindow *arg1 = (wxWindow *) 0 ;
24912 wxWindowDC *result = 0 ;
24913 void *argp1 = 0 ;
24914 int res1 = 0 ;
24915 PyObject * obj0 = 0 ;
24916 char * kwnames[] = {
24917 (char *) "win", NULL
24918 };
24919
24920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24922 if (!SWIG_IsOK(res1)) {
24923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24924 }
24925 arg1 = reinterpret_cast< wxWindow * >(argp1);
24926 {
24927 if (!wxPyCheckForApp()) SWIG_fail;
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 result = (wxWindowDC *)new wxWindowDC(arg1);
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24934 return resultobj;
24935fail:
24936 return NULL;
24937}
24938
24939
24940SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24941 PyObject *obj;
24942 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24943 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24944 return SWIG_Py_Void();
24945}
24946
24947SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24948 return SWIG_Python_InitShadowInstance(args);
24949}
24950
24951SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24952 PyObject *resultobj = 0;
24953 wxWindow *arg1 = (wxWindow *) 0 ;
24954 wxClientDC *result = 0 ;
24955 void *argp1 = 0 ;
24956 int res1 = 0 ;
24957 PyObject * obj0 = 0 ;
24958 char * kwnames[] = {
24959 (char *) "win", NULL
24960 };
24961
24962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24964 if (!SWIG_IsOK(res1)) {
24965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24966 }
24967 arg1 = reinterpret_cast< wxWindow * >(argp1);
24968 {
24969 if (!wxPyCheckForApp()) SWIG_fail;
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 result = (wxClientDC *)new wxClientDC(arg1);
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24976 return resultobj;
24977fail:
24978 return NULL;
24979}
24980
24981
24982SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24983 PyObject *obj;
24984 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24985 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24986 return SWIG_Py_Void();
24987}
24988
24989SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24990 return SWIG_Python_InitShadowInstance(args);
24991}
24992
24993SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24994 PyObject *resultobj = 0;
24995 wxWindow *arg1 = (wxWindow *) 0 ;
24996 wxPaintDC *result = 0 ;
24997 void *argp1 = 0 ;
24998 int res1 = 0 ;
24999 PyObject * obj0 = 0 ;
25000 char * kwnames[] = {
25001 (char *) "win", NULL
25002 };
25003
25004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
25005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25006 if (!SWIG_IsOK(res1)) {
25007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25008 }
25009 arg1 = reinterpret_cast< wxWindow * >(argp1);
25010 {
25011 if (!wxPyCheckForApp()) SWIG_fail;
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (wxPaintDC *)new wxPaintDC(arg1);
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
25018 return resultobj;
25019fail:
25020 return NULL;
25021}
25022
25023
25024SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25025 PyObject *obj;
25026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25027 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
25028 return SWIG_Py_Void();
25029}
25030
25031SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25032 return SWIG_Python_InitShadowInstance(args);
25033}
25034
554f62e9
RD
25035SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25036 PyObject *resultobj = 0;
25037 wxDC *arg1 = (wxDC *) 0 ;
25038 wxBitmap const &arg2_defvalue = wxNullBitmap ;
25039 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25040 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25041 wxBufferedDC *result = 0 ;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 void *argp2 = 0 ;
25045 int res2 = 0 ;
25046 int val3 ;
25047 int ecode3 = 0 ;
25048
25049 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25051 if (!SWIG_IsOK(res1)) {
25052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25053 }
25054 arg1 = reinterpret_cast< wxDC * >(argp1);
25055 if (swig_obj[1]) {
25056 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25057 if (!SWIG_IsOK(res2)) {
25058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25059 }
554f62e9
RD
25060 if (!argp2) {
25061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25062 }
554f62e9
RD
25063 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25064 }
25065 if (swig_obj[2]) {
25066 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25067 if (!SWIG_IsOK(ecode3)) {
25068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25069 }
25070 arg3 = static_cast< int >(val3);
25071 }
25072 {
25073 if (!wxPyCheckForApp()) SWIG_fail;
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
25076 wxPyEndAllowThreads(__tstate);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25080 return resultobj;
25081fail:
25082 return NULL;
25083}
25084
25085
25086SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25087 PyObject *resultobj = 0;
25088 wxDC *arg1 = (wxDC *) 0 ;
25089 wxSize *arg2 = 0 ;
25090 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25091 wxBufferedDC *result = 0 ;
25092 void *argp1 = 0 ;
25093 int res1 = 0 ;
25094 wxSize temp2 ;
25095 int val3 ;
25096 int ecode3 = 0 ;
25097
25098 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25100 if (!SWIG_IsOK(res1)) {
25101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25102 }
25103 arg1 = reinterpret_cast< wxDC * >(argp1);
25104 {
25105 arg2 = &temp2;
25106 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25107 }
25108 if (swig_obj[2]) {
25109 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25110 if (!SWIG_IsOK(ecode3)) {
25111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25112 }
25113 arg3 = static_cast< int >(val3);
25114 }
25115 {
25116 if (!wxPyCheckForApp()) SWIG_fail;
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25119 wxPyEndAllowThreads(__tstate);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 }
25122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25123 return resultobj;
25124fail:
25125 return NULL;
25126}
25127
25128
25129SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25130 int argc;
8e99bda9 25131 PyObject *argv[4];
554f62e9 25132
8e99bda9 25133 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
25134 --argc;
25135 if ((argc >= 1) && (argc <= 3)) {
25136 int _v = 0;
25137 if (argc > 1) {
25138 {
25139 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
25140 _v = SWIG_CheckState(res);
25141 }
25142 if (!_v) goto check_1;
093d3ff1 25143 }
554f62e9
RD
25144 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25145 }
25146check_1:
25147
25148 if ((argc >= 2) && (argc <= 3)) {
25149 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25150 }
25151
25152fail:
25153 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25154 return NULL;
25155}
25156
25157
25158SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25159 PyObject *resultobj = 0;
25160 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 PyObject *swig_obj[1] ;
25164
25165 if (!args) SWIG_fail;
25166 swig_obj[0] = args;
25167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25168 if (!SWIG_IsOK(res1)) {
25169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25170 }
25171 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 delete arg1;
25175
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 resultobj = SWIG_Py_Void();
25180 return resultobj;
25181fail:
25182 return NULL;
25183}
25184
25185
25186SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25187 PyObject *resultobj = 0;
25188 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25189 void *argp1 = 0 ;
25190 int res1 = 0 ;
25191 PyObject *swig_obj[1] ;
25192
25193 if (!args) SWIG_fail;
25194 swig_obj[0] = args;
25195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25196 if (!SWIG_IsOK(res1)) {
25197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25198 }
25199 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25200 {
25201 PyThreadState* __tstate = wxPyBeginAllowThreads();
25202 (arg1)->UnMask();
25203 wxPyEndAllowThreads(__tstate);
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 resultobj = SWIG_Py_Void();
25207 return resultobj;
25208fail:
25209 return NULL;
25210}
25211
25212
25213SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25214 PyObject *obj;
25215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25216 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25217 return SWIG_Py_Void();
25218}
25219
25220SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25221 return SWIG_Python_InitShadowInstance(args);
25222}
25223
25224SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25225 PyObject *resultobj = 0;
25226 wxWindow *arg1 = (wxWindow *) 0 ;
25227 wxBitmap const &arg2_defvalue = wxNullBitmap ;
25228 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25229 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25230 wxBufferedPaintDC *result = 0 ;
25231 void *argp1 = 0 ;
25232 int res1 = 0 ;
25233 void *argp2 = 0 ;
25234 int res2 = 0 ;
25235 int val3 ;
25236 int ecode3 = 0 ;
25237 PyObject * obj0 = 0 ;
25238 PyObject * obj1 = 0 ;
25239 PyObject * obj2 = 0 ;
25240 char * kwnames[] = {
25241 (char *) "window",(char *) "buffer",(char *) "style", NULL
25242 };
25243
25244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25246 if (!SWIG_IsOK(res1)) {
25247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25248 }
25249 arg1 = reinterpret_cast< wxWindow * >(argp1);
25250 if (obj1) {
25251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25252 if (!SWIG_IsOK(res2)) {
25253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25254 }
554f62e9
RD
25255 if (!argp2) {
25256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25257 }
554f62e9
RD
25258 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25259 }
25260 if (obj2) {
25261 ecode3 = SWIG_AsVal_int(obj2, &val3);
25262 if (!SWIG_IsOK(ecode3)) {
25263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25264 }
25265 arg3 = static_cast< int >(val3);
25266 }
25267 {
25268 if (!wxPyCheckForApp()) SWIG_fail;
25269 PyThreadState* __tstate = wxPyBeginAllowThreads();
25270 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
25271 wxPyEndAllowThreads(__tstate);
25272 if (PyErr_Occurred()) SWIG_fail;
25273 }
25274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25275 return resultobj;
25276fail:
25277 return NULL;
25278}
25279
25280
25281SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25282 PyObject *obj;
25283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25284 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25285 return SWIG_Py_Void();
25286}
25287
25288SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25289 return SWIG_Python_InitShadowInstance(args);
25290}
25291
24f6c4e8 25292SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25293 PyObject *resultobj = 0;
25294 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25295 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
25296 void *argp1 = 0 ;
25297 int res1 = 0 ;
25298 PyObject * obj0 = 0 ;
25299 char * kwnames[] = {
25300 (char *) "win", NULL
25301 };
25302
24f6c4e8 25303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
25304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
24f6c4e8 25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
25307 }
25308 arg1 = reinterpret_cast< wxWindow * >(argp1);
25309 {
554f62e9 25310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25311 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
25312 wxPyEndAllowThreads(__tstate);
25313 if (PyErr_Occurred()) SWIG_fail;
25314 }
24f6c4e8 25315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
25316 return resultobj;
25317fail:
25318 return NULL;
25319}
25320
25321
24f6c4e8 25322SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25323 PyObject *obj;
25324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25325 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
25326 return SWIG_Py_Void();
25327}
25328
24f6c4e8 25329SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25330 return SWIG_Python_InitShadowInstance(args);
25331}
25332
8e99bda9
RD
25333SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj = 0;
25335 wxWindow *arg1 = (wxWindow *) 0 ;
25336 wxDC *result = 0 ;
25337 void *argp1 = 0 ;
25338 int res1 = 0 ;
25339 PyObject * obj0 = 0 ;
25340 char * kwnames[] = {
25341 (char *) "window", NULL
25342 };
25343
25344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25346 if (!SWIG_IsOK(res1)) {
25347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25348 }
25349 arg1 = reinterpret_cast< wxWindow * >(argp1);
25350 {
25351 PyThreadState* __tstate = wxPyBeginAllowThreads();
25352 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25353 wxPyEndAllowThreads(__tstate);
25354 if (PyErr_Occurred()) SWIG_fail;
25355 }
25356 {
25357 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25358 }
25359 return resultobj;
25360fail:
25361 return NULL;
25362}
25363
25364
554f62e9
RD
25365SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25366 PyObject *resultobj = 0;
25367 wxDC *arg1 = 0 ;
25368 bool arg2 ;
25369 wxMirrorDC *result = 0 ;
25370 void *argp1 = 0 ;
25371 int res1 = 0 ;
25372 bool val2 ;
25373 int ecode2 = 0 ;
25374 PyObject * obj0 = 0 ;
25375 PyObject * obj1 = 0 ;
25376 char * kwnames[] = {
25377 (char *) "dc",(char *) "mirror", NULL
25378 };
25379
25380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25381 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25382 if (!SWIG_IsOK(res1)) {
25383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25384 }
25385 if (!argp1) {
25386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25387 }
25388 arg1 = reinterpret_cast< wxDC * >(argp1);
25389 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25390 if (!SWIG_IsOK(ecode2)) {
25391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25392 }
25393 arg2 = static_cast< bool >(val2);
25394 {
25395 if (!wxPyCheckForApp()) SWIG_fail;
25396 PyThreadState* __tstate = wxPyBeginAllowThreads();
25397 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25402 return resultobj;
25403fail:
25404 return NULL;
25405}
25406
25407
25408SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25409 PyObject *obj;
25410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25411 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25412 return SWIG_Py_Void();
25413}
25414
25415SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25416 return SWIG_Python_InitShadowInstance(args);
25417}
25418
25419SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25420 PyObject *resultobj = 0;
25421 wxPrintData *arg1 = 0 ;
25422 wxPostScriptDC *result = 0 ;
25423 void *argp1 = 0 ;
25424 int res1 = 0 ;
25425 PyObject * obj0 = 0 ;
25426 char * kwnames[] = {
25427 (char *) "printData", NULL
25428 };
25429
25430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25431 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25434 }
25435 if (!argp1) {
25436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25437 }
25438 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25439 {
25440 if (!wxPyCheckForApp()) SWIG_fail;
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25447 return resultobj;
25448fail:
25449 return NULL;
25450}
25451
25452
25453SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25454 PyObject *resultobj = 0;
25455 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25456 wxPrintData *result = 0 ;
25457 void *argp1 = 0 ;
25458 int res1 = 0 ;
25459 PyObject *swig_obj[1] ;
25460
25461 if (!args) SWIG_fail;
25462 swig_obj[0] = args;
25463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25464 if (!SWIG_IsOK(res1)) {
25465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25466 }
25467 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25468 {
25469 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25470 {
554f62e9
RD
25471 wxPrintData &_result_ref = (arg1)->GetPrintData();
25472 result = (wxPrintData *) &_result_ref;
093d3ff1 25473 }
554f62e9
RD
25474 wxPyEndAllowThreads(__tstate);
25475 if (PyErr_Occurred()) SWIG_fail;
25476 }
25477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25478 return resultobj;
25479fail:
25480 return NULL;
25481}
25482
25483
25484SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25485 PyObject *resultobj = 0;
25486 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25487 wxPrintData *arg2 = 0 ;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 void *argp2 = 0 ;
25491 int res2 = 0 ;
25492 PyObject * obj0 = 0 ;
25493 PyObject * obj1 = 0 ;
25494 char * kwnames[] = {
25495 (char *) "self",(char *) "data", NULL
25496 };
25497
25498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25500 if (!SWIG_IsOK(res1)) {
25501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25502 }
25503 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25505 if (!SWIG_IsOK(res2)) {
25506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25507 }
25508 if (!argp2) {
25509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25510 }
25511 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25512 {
25513 PyThreadState* __tstate = wxPyBeginAllowThreads();
25514 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25515 wxPyEndAllowThreads(__tstate);
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_Py_Void();
25519 return resultobj;
25520fail:
25521 return NULL;
25522}
25523
25524
25525SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj = 0;
25527 int arg1 ;
25528 int val1 ;
25529 int ecode1 = 0 ;
25530 PyObject * obj0 = 0 ;
25531 char * kwnames[] = {
25532 (char *) "ppi", NULL
25533 };
25534
25535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25536 ecode1 = SWIG_AsVal_int(obj0, &val1);
25537 if (!SWIG_IsOK(ecode1)) {
25538 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25539 }
25540 arg1 = static_cast< int >(val1);
25541 {
25542 PyThreadState* __tstate = wxPyBeginAllowThreads();
25543 wxPostScriptDC::SetResolution(arg1);
25544 wxPyEndAllowThreads(__tstate);
25545 if (PyErr_Occurred()) SWIG_fail;
25546 }
25547 resultobj = SWIG_Py_Void();
25548 return resultobj;
25549fail:
25550 return NULL;
25551}
25552
25553
25554SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25555 PyObject *resultobj = 0;
25556 int result;
25557
25558 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25559 {
25560 PyThreadState* __tstate = wxPyBeginAllowThreads();
25561 result = (int)wxPostScriptDC::GetResolution();
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_From_int(static_cast< int >(result));
25566 return resultobj;
25567fail:
25568 return NULL;
25569}
25570
25571
25572SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25573 PyObject *obj;
25574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25575 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25576 return SWIG_Py_Void();
25577}
25578
25579SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25580 return SWIG_Python_InitShadowInstance(args);
25581}
25582
25583SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25584 PyObject *resultobj = 0;
25585 wxString const &arg1_defvalue = wxPyEmptyString ;
25586 wxString *arg1 = (wxString *) &arg1_defvalue ;
25587 wxMetaFile *result = 0 ;
25588 bool temp1 = false ;
25589 PyObject * obj0 = 0 ;
25590 char * kwnames[] = {
25591 (char *) "filename", NULL
25592 };
25593
25594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25595 if (obj0) {
093d3ff1 25596 {
554f62e9
RD
25597 arg1 = wxString_in_helper(obj0);
25598 if (arg1 == NULL) SWIG_fail;
25599 temp1 = true;
093d3ff1 25600 }
554f62e9
RD
25601 }
25602 {
25603 if (!wxPyCheckForApp()) SWIG_fail;
25604 PyThreadState* __tstate = wxPyBeginAllowThreads();
25605 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25606 wxPyEndAllowThreads(__tstate);
25607 if (PyErr_Occurred()) SWIG_fail;
25608 }
25609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25610 {
25611 if (temp1)
25612 delete arg1;
25613 }
25614 return resultobj;
25615fail:
25616 {
25617 if (temp1)
25618 delete arg1;
25619 }
25620 return NULL;
25621}
25622
25623
25624SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25625 PyObject *resultobj = 0;
25626 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25627 void *argp1 = 0 ;
25628 int res1 = 0 ;
25629 PyObject *swig_obj[1] ;
25630
25631 if (!args) SWIG_fail;
25632 swig_obj[0] = args;
25633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25634 if (!SWIG_IsOK(res1)) {
25635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25636 }
25637 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25638 {
25639 PyThreadState* __tstate = wxPyBeginAllowThreads();
25640 delete arg1;
25641
25642 wxPyEndAllowThreads(__tstate);
25643 if (PyErr_Occurred()) SWIG_fail;
25644 }
25645 resultobj = SWIG_Py_Void();
25646 return resultobj;
25647fail:
25648 return NULL;
25649}
25650
25651
b39fe951 25652SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25653 PyObject *resultobj = 0;
25654 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25655 bool result;
25656 void *argp1 = 0 ;
25657 int res1 = 0 ;
25658 PyObject *swig_obj[1] ;
25659
25660 if (!args) SWIG_fail;
25661 swig_obj[0] = args;
25662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25663 if (!SWIG_IsOK(res1)) {
b39fe951 25664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
25665 }
25666 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25667 {
25668 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25669 result = (bool)(arg1)->IsOk();
554f62e9
RD
25670 wxPyEndAllowThreads(__tstate);
25671 if (PyErr_Occurred()) SWIG_fail;
25672 }
25673 {
25674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25675 }
25676 return resultobj;
25677fail:
25678 return NULL;
25679}
25680
25681
25682SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25683 PyObject *resultobj = 0;
25684 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25685 int arg2 = (int) 0 ;
25686 int arg3 = (int) 0 ;
25687 bool result;
25688 void *argp1 = 0 ;
25689 int res1 = 0 ;
25690 int val2 ;
25691 int ecode2 = 0 ;
25692 int val3 ;
25693 int ecode3 = 0 ;
25694 PyObject * obj0 = 0 ;
25695 PyObject * obj1 = 0 ;
25696 PyObject * obj2 = 0 ;
25697 char * kwnames[] = {
25698 (char *) "self",(char *) "width",(char *) "height", NULL
25699 };
25700
25701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25703 if (!SWIG_IsOK(res1)) {
25704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25705 }
25706 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25707 if (obj1) {
25708 ecode2 = SWIG_AsVal_int(obj1, &val2);
25709 if (!SWIG_IsOK(ecode2)) {
25710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25711 }
25712 arg2 = static_cast< int >(val2);
25713 }
25714 if (obj2) {
25715 ecode3 = SWIG_AsVal_int(obj2, &val3);
25716 if (!SWIG_IsOK(ecode3)) {
25717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25718 }
25719 arg3 = static_cast< int >(val3);
25720 }
25721 {
25722 PyThreadState* __tstate = wxPyBeginAllowThreads();
25723 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25724 wxPyEndAllowThreads(__tstate);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 {
25728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25729 }
25730 return resultobj;
25731fail:
25732 return NULL;
25733}
25734
25735
25736SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 PyObject *resultobj = 0;
25738 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25739 wxSize result;
25740 void *argp1 = 0 ;
25741 int res1 = 0 ;
25742 PyObject *swig_obj[1] ;
25743
25744 if (!args) SWIG_fail;
25745 swig_obj[0] = args;
25746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25747 if (!SWIG_IsOK(res1)) {
25748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25749 }
25750 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25751 {
25752 PyThreadState* __tstate = wxPyBeginAllowThreads();
25753 result = (arg1)->GetSize();
25754 wxPyEndAllowThreads(__tstate);
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
25757 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25758 return resultobj;
25759fail:
25760 return NULL;
25761}
25762
25763
25764SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25765 PyObject *resultobj = 0;
25766 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25767 int result;
25768 void *argp1 = 0 ;
25769 int res1 = 0 ;
25770 PyObject *swig_obj[1] ;
25771
25772 if (!args) SWIG_fail;
25773 swig_obj[0] = args;
25774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25775 if (!SWIG_IsOK(res1)) {
25776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25777 }
25778 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25779 {
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 result = (int)(arg1)->GetWidth();
25782 wxPyEndAllowThreads(__tstate);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 }
25785 resultobj = SWIG_From_int(static_cast< int >(result));
25786 return resultobj;
25787fail:
25788 return NULL;
25789}
25790
25791
25792SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25793 PyObject *resultobj = 0;
25794 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25795 int result;
25796 void *argp1 = 0 ;
25797 int res1 = 0 ;
25798 PyObject *swig_obj[1] ;
25799
25800 if (!args) SWIG_fail;
25801 swig_obj[0] = args;
25802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25803 if (!SWIG_IsOK(res1)) {
25804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25805 }
25806 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25807 {
25808 PyThreadState* __tstate = wxPyBeginAllowThreads();
25809 result = (int)(arg1)->GetHeight();
25810 wxPyEndAllowThreads(__tstate);
25811 if (PyErr_Occurred()) SWIG_fail;
25812 }
25813 resultobj = SWIG_From_int(static_cast< int >(result));
25814 return resultobj;
25815fail:
25816 return NULL;
25817}
25818
25819
25820SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25821 PyObject *resultobj = 0;
25822 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25823 wxString *result = 0 ;
25824 void *argp1 = 0 ;
25825 int res1 = 0 ;
25826 PyObject *swig_obj[1] ;
25827
25828 if (!args) SWIG_fail;
25829 swig_obj[0] = args;
25830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25831 if (!SWIG_IsOK(res1)) {
25832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25833 }
25834 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25835 {
25836 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25837 {
554f62e9
RD
25838 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25839 result = (wxString *) &_result_ref;
e2950dbb 25840 }
554f62e9
RD
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 {
25845#if wxUSE_UNICODE
25846 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25847#else
25848 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25849#endif
25850 }
25851 return resultobj;
25852fail:
25853 return NULL;
25854}
25855
25856
25857SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25858 PyObject *obj;
25859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25860 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25861 return SWIG_Py_Void();
25862}
25863
25864SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25865 return SWIG_Python_InitShadowInstance(args);
25866}
25867
25868SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25869 PyObject *resultobj = 0;
25870 wxString const &arg1_defvalue = wxPyEmptyString ;
25871 wxString *arg1 = (wxString *) &arg1_defvalue ;
25872 int arg2 = (int) 0 ;
25873 int arg3 = (int) 0 ;
25874 wxString const &arg4_defvalue = wxPyEmptyString ;
25875 wxString *arg4 = (wxString *) &arg4_defvalue ;
25876 wxMetaFileDC *result = 0 ;
25877 bool temp1 = false ;
25878 int val2 ;
25879 int ecode2 = 0 ;
25880 int val3 ;
25881 int ecode3 = 0 ;
25882 bool temp4 = false ;
25883 PyObject * obj0 = 0 ;
25884 PyObject * obj1 = 0 ;
25885 PyObject * obj2 = 0 ;
25886 PyObject * obj3 = 0 ;
25887 char * kwnames[] = {
25888 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25889 };
25890
25891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25892 if (obj0) {
e2950dbb 25893 {
554f62e9
RD
25894 arg1 = wxString_in_helper(obj0);
25895 if (arg1 == NULL) SWIG_fail;
25896 temp1 = true;
e2950dbb 25897 }
554f62e9
RD
25898 }
25899 if (obj1) {
25900 ecode2 = SWIG_AsVal_int(obj1, &val2);
25901 if (!SWIG_IsOK(ecode2)) {
25902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25903 }
25904 arg2 = static_cast< int >(val2);
25905 }
25906 if (obj2) {
25907 ecode3 = SWIG_AsVal_int(obj2, &val3);
25908 if (!SWIG_IsOK(ecode3)) {
25909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25910 }
25911 arg3 = static_cast< int >(val3);
25912 }
25913 if (obj3) {
093d3ff1 25914 {
554f62e9
RD
25915 arg4 = wxString_in_helper(obj3);
25916 if (arg4 == NULL) SWIG_fail;
25917 temp4 = true;
093d3ff1 25918 }
554f62e9
RD
25919 }
25920 {
25921 if (!wxPyCheckForApp()) SWIG_fail;
25922 PyThreadState* __tstate = wxPyBeginAllowThreads();
25923 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25924 wxPyEndAllowThreads(__tstate);
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25928 {
25929 if (temp1)
25930 delete arg1;
25931 }
25932 {
25933 if (temp4)
25934 delete arg4;
25935 }
25936 return resultobj;
25937fail:
25938 {
25939 if (temp1)
25940 delete arg1;
25941 }
25942 {
25943 if (temp4)
25944 delete arg4;
25945 }
25946 return NULL;
25947}
25948
25949
25950SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25951 PyObject *resultobj = 0;
25952 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25953 wxMetaFile *result = 0 ;
25954 void *argp1 = 0 ;
25955 int res1 = 0 ;
25956 PyObject *swig_obj[1] ;
25957
25958 if (!args) SWIG_fail;
25959 swig_obj[0] = args;
25960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25961 if (!SWIG_IsOK(res1)) {
25962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25963 }
25964 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25965 {
25966 PyThreadState* __tstate = wxPyBeginAllowThreads();
25967 result = (wxMetaFile *)(arg1)->Close();
25968 wxPyEndAllowThreads(__tstate);
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25972 return resultobj;
25973fail:
25974 return NULL;
25975}
25976
25977
25978SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25979 PyObject *obj;
25980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25981 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25982 return SWIG_Py_Void();
25983}
25984
25985SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25986 return SWIG_Python_InitShadowInstance(args);
25987}
25988
25989SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25990 PyObject *resultobj = 0;
25991 wxPrintData *arg1 = 0 ;
25992 wxPrinterDC *result = 0 ;
25993 void *argp1 = 0 ;
25994 int res1 = 0 ;
25995 PyObject * obj0 = 0 ;
25996 char * kwnames[] = {
25997 (char *) "printData", NULL
25998 };
25999
26000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26001 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26002 if (!SWIG_IsOK(res1)) {
26003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26004 }
26005 if (!argp1) {
26006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26007 }
26008 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26009 {
26010 if (!wxPyCheckForApp()) SWIG_fail;
26011 PyThreadState* __tstate = wxPyBeginAllowThreads();
26012 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26013 wxPyEndAllowThreads(__tstate);
26014 if (PyErr_Occurred()) SWIG_fail;
26015 }
26016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26017 return resultobj;
26018fail:
26019 return NULL;
26020}
26021
26022
26023SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26024 PyObject *obj;
26025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26026 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26027 return SWIG_Py_Void();
26028}
26029
26030SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26031 return SWIG_Python_InitShadowInstance(args);
26032}
26033
70d7cb34
RD
26034SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26035 PyObject *resultobj = 0;
26036 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26037 wxGraphicsObject *result = 0 ;
26038 void *argp1 = 0 ;
26039 int res1 = 0 ;
26040 PyObject * obj0 = 0 ;
26041 char * kwnames[] = {
26042 (char *) "renderer", NULL
26043 };
26044
26045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26046 if (obj0) {
26047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26048 if (!SWIG_IsOK(res1)) {
26049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26050 }
26051 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26052 }
26053 {
26054 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26055 if (PyErr_Occurred()) SWIG_fail;
26056 }
26057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26058 return resultobj;
26059fail:
26060 return NULL;
26061}
26062
26063
26064SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26065 PyObject *resultobj = 0;
26066 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26067 void *argp1 = 0 ;
26068 int res1 = 0 ;
26069 PyObject *swig_obj[1] ;
26070
26071 if (!args) SWIG_fail;
26072 swig_obj[0] = args;
26073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26074 if (!SWIG_IsOK(res1)) {
26075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26076 }
26077 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26078 {
26079 delete arg1;
26080
26081 if (PyErr_Occurred()) SWIG_fail;
26082 }
26083 resultobj = SWIG_Py_Void();
26084 return resultobj;
26085fail:
26086 return NULL;
26087}
26088
26089
26090SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26091 PyObject *resultobj = 0;
26092 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26093 bool result;
26094 void *argp1 = 0 ;
26095 int res1 = 0 ;
26096 PyObject *swig_obj[1] ;
26097
26098 if (!args) SWIG_fail;
26099 swig_obj[0] = args;
26100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26101 if (!SWIG_IsOK(res1)) {
26102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26103 }
26104 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26105 {
26106 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26107 if (PyErr_Occurred()) SWIG_fail;
26108 }
26109 {
26110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26111 }
26112 return resultobj;
26113fail:
26114 return NULL;
26115}
26116
26117
26118SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26119 PyObject *resultobj = 0;
26120 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26121 wxGraphicsRenderer *result = 0 ;
26122 void *argp1 = 0 ;
26123 int res1 = 0 ;
26124 PyObject *swig_obj[1] ;
26125
26126 if (!args) SWIG_fail;
26127 swig_obj[0] = args;
26128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26129 if (!SWIG_IsOK(res1)) {
26130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26131 }
26132 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26133 {
26134 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26138 return resultobj;
26139fail:
26140 return NULL;
26141}
26142
26143
26144SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26145 PyObject *obj;
26146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26147 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26148 return SWIG_Py_Void();
26149}
26150
26151SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26152 return SWIG_Python_InitShadowInstance(args);
26153}
26154
26155SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26156 PyObject *resultobj = 0;
26157 wxGraphicsPen *result = 0 ;
26158
26159 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26160 {
26161 result = (wxGraphicsPen *)new wxGraphicsPen();
26162 if (PyErr_Occurred()) SWIG_fail;
26163 }
26164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26165 return resultobj;
26166fail:
26167 return NULL;
26168}
26169
26170
26171SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26172 PyObject *resultobj = 0;
26173 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26174 void *argp1 = 0 ;
26175 int res1 = 0 ;
26176 PyObject *swig_obj[1] ;
26177
26178 if (!args) SWIG_fail;
26179 swig_obj[0] = args;
26180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26181 if (!SWIG_IsOK(res1)) {
26182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26183 }
26184 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26185 {
26186 delete arg1;
26187
26188 if (PyErr_Occurred()) SWIG_fail;
26189 }
26190 resultobj = SWIG_Py_Void();
26191 return resultobj;
26192fail:
26193 return NULL;
26194}
26195
26196
26197SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26198 PyObject *obj;
26199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26200 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26201 return SWIG_Py_Void();
26202}
26203
26204SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26205 return SWIG_Python_InitShadowInstance(args);
26206}
26207
26208SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26209 PyObject *resultobj = 0;
26210 wxGraphicsBrush *result = 0 ;
26211
26212 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26213 {
26214 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26218 return resultobj;
26219fail:
26220 return NULL;
26221}
26222
26223
26224SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26225 PyObject *resultobj = 0;
26226 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26227 void *argp1 = 0 ;
26228 int res1 = 0 ;
26229 PyObject *swig_obj[1] ;
26230
26231 if (!args) SWIG_fail;
26232 swig_obj[0] = args;
26233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26234 if (!SWIG_IsOK(res1)) {
26235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26236 }
26237 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26238 {
26239 delete arg1;
26240
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 resultobj = SWIG_Py_Void();
26244 return resultobj;
26245fail:
26246 return NULL;
26247}
26248
26249
26250SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26251 PyObject *obj;
26252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26253 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26254 return SWIG_Py_Void();
26255}
26256
26257SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26258 return SWIG_Python_InitShadowInstance(args);
26259}
26260
26261SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26262 PyObject *resultobj = 0;
26263 wxGraphicsFont *result = 0 ;
26264
26265 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26266 {
26267 result = (wxGraphicsFont *)new wxGraphicsFont();
26268 if (PyErr_Occurred()) SWIG_fail;
26269 }
26270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26271 return resultobj;
26272fail:
26273 return NULL;
26274}
26275
26276
26277SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26278 PyObject *resultobj = 0;
26279 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26280 void *argp1 = 0 ;
26281 int res1 = 0 ;
26282 PyObject *swig_obj[1] ;
26283
26284 if (!args) SWIG_fail;
26285 swig_obj[0] = args;
26286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26287 if (!SWIG_IsOK(res1)) {
26288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26289 }
26290 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26291 {
26292 delete arg1;
26293
26294 if (PyErr_Occurred()) SWIG_fail;
26295 }
26296 resultobj = SWIG_Py_Void();
26297 return resultobj;
26298fail:
26299 return NULL;
26300}
26301
26302
26303SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26304 PyObject *obj;
26305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26306 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26307 return SWIG_Py_Void();
26308}
26309
26310SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26311 return SWIG_Python_InitShadowInstance(args);
26312}
26313
8f514ab4
RD
26314SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26315 PyObject *resultobj = 0;
26316 wxGraphicsMatrix *result = 0 ;
26317
26318 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26319 {
26320 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26324 return resultobj;
26325fail:
26326 return NULL;
26327}
26328
26329
5c8c7dd3 26330SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26331 PyObject *resultobj = 0;
5c8c7dd3 26332 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26333 void *argp1 = 0 ;
26334 int res1 = 0 ;
26335 PyObject *swig_obj[1] ;
26336
26337 if (!args) SWIG_fail;
26338 swig_obj[0] = args;
5c8c7dd3 26339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
554f62e9 26340 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26342 }
5c8c7dd3 26343 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26344 {
554f62e9
RD
26345 delete arg1;
26346
554f62e9
RD
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 resultobj = SWIG_Py_Void();
26350 return resultobj;
26351fail:
26352 return NULL;
26353}
26354
26355
5c8c7dd3 26356SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26357 PyObject *resultobj = 0;
5c8c7dd3
RD
26358 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26359 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26360 void *argp1 = 0 ;
26361 int res1 = 0 ;
5c8c7dd3
RD
26362 void *argp2 = 0 ;
26363 int res2 = 0 ;
26364 PyObject * obj0 = 0 ;
26365 PyObject * obj1 = 0 ;
26366 char * kwnames[] = {
26367 (char *) "self",(char *) "t", NULL
26368 };
70d7cb34 26369
5c8c7dd3
RD
26370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26372 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26374 }
5c8c7dd3
RD
26375 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26377 if (!SWIG_IsOK(res2)) {
26378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26379 }
26380 if (!argp2) {
26381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26382 }
26383 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26384 {
5c8c7dd3 26385 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26386 if (PyErr_Occurred()) SWIG_fail;
26387 }
5c8c7dd3 26388 resultobj = SWIG_Py_Void();
70d7cb34
RD
26389 return resultobj;
26390fail:
26391 return NULL;
26392}
26393
26394
5c8c7dd3 26395SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26396 PyObject *resultobj = 0;
5c8c7dd3
RD
26397 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26398 wxGraphicsMatrix *arg2 = 0 ;
554f62e9
RD
26399 void *argp1 = 0 ;
26400 int res1 = 0 ;
5c8c7dd3
RD
26401 void *argp2 = 0 ;
26402 int res2 = 0 ;
26403 PyObject * obj0 = 0 ;
26404 PyObject * obj1 = 0 ;
26405 char * kwnames[] = {
26406 (char *) "self",(char *) "t", NULL
26407 };
554f62e9 26408
5c8c7dd3
RD
26409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
26410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26411 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26413 }
5c8c7dd3
RD
26414 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26416 if (!SWIG_IsOK(res2)) {
26417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26418 }
26419 if (!argp2) {
26420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26421 }
26422 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
554f62e9 26423 {
5c8c7dd3 26424 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
554f62e9
RD
26425 if (PyErr_Occurred()) SWIG_fail;
26426 }
72ef6efb 26427 resultobj = SWIG_Py_Void();
554f62e9
RD
26428 return resultobj;
26429fail:
26430 return NULL;
26431}
26432
26433
5c8c7dd3 26434SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26435 PyObject *resultobj = 0;
5c8c7dd3
RD
26436 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26437 wxDouble arg2 = (wxDouble) 1.0 ;
26438 wxDouble arg3 = (wxDouble) 0.0 ;
26439 wxDouble arg4 = (wxDouble) 0.0 ;
26440 wxDouble arg5 = (wxDouble) 1.0 ;
26441 wxDouble arg6 = (wxDouble) 0.0 ;
26442 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26443 void *argp1 = 0 ;
26444 int res1 = 0 ;
5c8c7dd3
RD
26445 double val2 ;
26446 int ecode2 = 0 ;
26447 double val3 ;
26448 int ecode3 = 0 ;
26449 double val4 ;
26450 int ecode4 = 0 ;
26451 double val5 ;
26452 int ecode5 = 0 ;
26453 double val6 ;
26454 int ecode6 = 0 ;
26455 double val7 ;
26456 int ecode7 = 0 ;
26457 PyObject * obj0 = 0 ;
26458 PyObject * obj1 = 0 ;
26459 PyObject * obj2 = 0 ;
26460 PyObject * obj3 = 0 ;
26461 PyObject * obj4 = 0 ;
26462 PyObject * obj5 = 0 ;
26463 PyObject * obj6 = 0 ;
26464 char * kwnames[] = {
26465 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26466 };
70d7cb34 26467
5c8c7dd3
RD
26468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26470 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26472 }
5c8c7dd3
RD
26473 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26474 if (obj1) {
26475 ecode2 = SWIG_AsVal_double(obj1, &val2);
26476 if (!SWIG_IsOK(ecode2)) {
26477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26478 }
26479 arg2 = static_cast< wxDouble >(val2);
26480 }
26481 if (obj2) {
26482 ecode3 = SWIG_AsVal_double(obj2, &val3);
26483 if (!SWIG_IsOK(ecode3)) {
26484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26485 }
26486 arg3 = static_cast< wxDouble >(val3);
26487 }
26488 if (obj3) {
26489 ecode4 = SWIG_AsVal_double(obj3, &val4);
26490 if (!SWIG_IsOK(ecode4)) {
26491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26492 }
26493 arg4 = static_cast< wxDouble >(val4);
26494 }
26495 if (obj4) {
26496 ecode5 = SWIG_AsVal_double(obj4, &val5);
26497 if (!SWIG_IsOK(ecode5)) {
26498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26499 }
26500 arg5 = static_cast< wxDouble >(val5);
26501 }
26502 if (obj5) {
26503 ecode6 = SWIG_AsVal_double(obj5, &val6);
26504 if (!SWIG_IsOK(ecode6)) {
26505 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26506 }
26507 arg6 = static_cast< wxDouble >(val6);
26508 }
26509 if (obj6) {
26510 ecode7 = SWIG_AsVal_double(obj6, &val7);
26511 if (!SWIG_IsOK(ecode7)) {
26512 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26513 }
26514 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26515 }
26516 {
5c8c7dd3 26517 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26518 if (PyErr_Occurred()) SWIG_fail;
26519 }
26520 resultobj = SWIG_Py_Void();
26521 return resultobj;
26522fail:
26523 return NULL;
26524}
26525
26526
5c8c7dd3 26527SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26528 PyObject *resultobj = 0;
5c8c7dd3 26529 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
554f62e9
RD
26530 void *argp1 = 0 ;
26531 int res1 = 0 ;
5c8c7dd3 26532 PyObject *swig_obj[1] ;
554f62e9 26533
5c8c7dd3
RD
26534 if (!args) SWIG_fail;
26535 swig_obj[0] = args;
26536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
554f62e9 26537 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
554f62e9 26539 }
5c8c7dd3 26540 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
554f62e9 26541 {
5c8c7dd3 26542 (arg1)->Invert();
554f62e9
RD
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
72ef6efb 26545 resultobj = SWIG_Py_Void();
554f62e9
RD
26546 return resultobj;
26547fail:
26548 return NULL;
26549}
26550
26551
5c8c7dd3 26552SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26553 PyObject *resultobj = 0;
5c8c7dd3
RD
26554 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26555 wxGraphicsMatrix *arg2 = 0 ;
26556 bool result;
70d7cb34
RD
26557 void *argp1 = 0 ;
26558 int res1 = 0 ;
5c8c7dd3
RD
26559 void *argp2 = 0 ;
26560 int res2 = 0 ;
26561 PyObject * obj0 = 0 ;
26562 PyObject * obj1 = 0 ;
26563 char * kwnames[] = {
26564 (char *) "self",(char *) "t", NULL
26565 };
70d7cb34 26566
5c8c7dd3
RD
26567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26569 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26571 }
5c8c7dd3
RD
26572 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26574 if (!SWIG_IsOK(res2)) {
26575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26576 }
26577 if (!argp2) {
26578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 26579 }
5c8c7dd3 26580 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26581 {
5c8c7dd3 26582 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26583 if (PyErr_Occurred()) SWIG_fail;
26584 }
5c8c7dd3
RD
26585 {
26586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26587 }
70d7cb34
RD
26588 return resultobj;
26589fail:
26590 return NULL;
26591}
26592
26593
5c8c7dd3
RD
26594SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26595 PyObject *resultobj = 0;
26596 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26597 bool result;
26598 void *argp1 = 0 ;
26599 int res1 = 0 ;
26600 PyObject *swig_obj[1] ;
70d7cb34 26601
5c8c7dd3
RD
26602 if (!args) SWIG_fail;
26603 swig_obj[0] = args;
26604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26605 if (!SWIG_IsOK(res1)) {
8f514ab4 26606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26607 }
5c8c7dd3
RD
26608 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26609 {
8f514ab4 26610 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26611 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26612 }
5c8c7dd3
RD
26613 {
26614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26615 }
26616 return resultobj;
70d7cb34 26617fail:
70d7cb34
RD
26618 return NULL;
26619}
26620
26621
5c8c7dd3 26622SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26623 PyObject *resultobj = 0;
5c8c7dd3 26624 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26625 wxDouble arg2 ;
26626 wxDouble arg3 ;
554f62e9
RD
26627 void *argp1 = 0 ;
26628 int res1 = 0 ;
72ef6efb
RD
26629 double val2 ;
26630 int ecode2 = 0 ;
26631 double val3 ;
26632 int ecode3 = 0 ;
5c8c7dd3
RD
26633 PyObject * obj0 = 0 ;
26634 PyObject * obj1 = 0 ;
26635 PyObject * obj2 = 0 ;
26636 char * kwnames[] = {
26637 (char *) "self",(char *) "dx",(char *) "dy", NULL
26638 };
72ef6efb 26639
5c8c7dd3
RD
26640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26642 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26644 }
5c8c7dd3
RD
26645 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26646 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26647 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26649 }
26650 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26651 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26652 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26654 }
26655 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26656 {
5c8c7dd3 26657 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26658 if (PyErr_Occurred()) SWIG_fail;
26659 }
26660 resultobj = SWIG_Py_Void();
26661 return resultobj;
26662fail:
26663 return NULL;
26664}
26665
26666
5c8c7dd3 26667SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26668 PyObject *resultobj = 0;
5c8c7dd3
RD
26669 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26670 wxDouble arg2 ;
26671 wxDouble arg3 ;
70d7cb34
RD
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
5c8c7dd3
RD
26674 double val2 ;
26675 int ecode2 = 0 ;
26676 double val3 ;
26677 int ecode3 = 0 ;
26678 PyObject * obj0 = 0 ;
26679 PyObject * obj1 = 0 ;
26680 PyObject * obj2 = 0 ;
26681 char * kwnames[] = {
26682 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26683 };
70d7cb34 26684
5c8c7dd3
RD
26685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26687 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26689 }
5c8c7dd3
RD
26690 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26691 ecode2 = SWIG_AsVal_double(obj1, &val2);
26692 if (!SWIG_IsOK(ecode2)) {
26693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26694 }
26695 arg2 = static_cast< wxDouble >(val2);
26696 ecode3 = SWIG_AsVal_double(obj2, &val3);
26697 if (!SWIG_IsOK(ecode3)) {
26698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26699 }
26700 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26701 {
5c8c7dd3 26702 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 resultobj = SWIG_Py_Void();
26706 return resultobj;
26707fail:
26708 return NULL;
26709}
26710
26711
5c8c7dd3 26712SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26713 PyObject *resultobj = 0;
5c8c7dd3
RD
26714 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26715 wxDouble arg2 ;
70d7cb34
RD
26716 void *argp1 = 0 ;
26717 int res1 = 0 ;
5c8c7dd3
RD
26718 double val2 ;
26719 int ecode2 = 0 ;
70d7cb34
RD
26720 PyObject * obj0 = 0 ;
26721 PyObject * obj1 = 0 ;
26722 char * kwnames[] = {
5c8c7dd3 26723 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26724 };
26725
5c8c7dd3
RD
26726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26728 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26730 }
5c8c7dd3
RD
26731 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26732 ecode2 = SWIG_AsVal_double(obj1, &val2);
26733 if (!SWIG_IsOK(ecode2)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26735 }
26736 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26737 {
5c8c7dd3 26738 (arg1)->Rotate(arg2);
70d7cb34
RD
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 resultobj = SWIG_Py_Void();
26742 return resultobj;
26743fail:
26744 return NULL;
26745}
26746
26747
5c8c7dd3 26748SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26749 PyObject *resultobj = 0;
5c8c7dd3
RD
26750 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26751 wxDouble *arg2 = (wxDouble *) 0 ;
26752 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26753 void *argp1 = 0 ;
26754 int res1 = 0 ;
5c8c7dd3
RD
26755 wxDouble temp2 ;
26756 int res2 = 0 ;
26757 wxDouble temp3 ;
26758 int res3 = 0 ;
26759 PyObject * obj0 = 0 ;
26760 PyObject * obj1 = 0 ;
26761 PyObject * obj2 = 0 ;
26762 char * kwnames[] = {
26763 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26764 };
72ef6efb 26765
5c8c7dd3
RD
26766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26768 if (!SWIG_IsOK(res1)) {
8f514ab4 26769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26770 }
5c8c7dd3
RD
26771 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26772 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26773 double val;
26774 int ecode = SWIG_AsVal_double(obj1, &val);
26775 if (!SWIG_IsOK(ecode)) {
26776 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26777 }
26778 temp2 = static_cast< wxDouble >(val);
26779 arg2 = &temp2;
26780 res2 = SWIG_AddTmpMask(ecode);
26781 }
26782 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26783 double val;
26784 int ecode = SWIG_AsVal_double(obj2, &val);
26785 if (!SWIG_IsOK(ecode)) {
26786 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26787 }
26788 temp3 = static_cast< wxDouble >(val);
26789 arg3 = &temp3;
26790 res3 = SWIG_AddTmpMask(ecode);
26791 }
26792 {
8f514ab4 26793 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
26796 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26797 if (SWIG_IsTmpObj(res2)) {
26798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26799 } else {
26800 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26802 }
26803 if (SWIG_IsTmpObj(res3)) {
26804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26805 } else {
26806 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26807 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26808 }
72ef6efb
RD
26809 return resultobj;
26810fail:
26811 return NULL;
26812}
26813
26814
5c8c7dd3
RD
26815SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26816 PyObject *resultobj = 0;
26817 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26818 wxDouble *arg2 = (wxDouble *) 0 ;
26819 wxDouble *arg3 = (wxDouble *) 0 ;
26820 void *argp1 = 0 ;
26821 int res1 = 0 ;
26822 wxDouble temp2 ;
26823 int res2 = 0 ;
26824 wxDouble temp3 ;
26825 int res3 = 0 ;
26826 PyObject * obj0 = 0 ;
26827 PyObject * obj1 = 0 ;
26828 PyObject * obj2 = 0 ;
26829 char * kwnames[] = {
26830 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26831 };
26832
26833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26835 if (!SWIG_IsOK(res1)) {
8f514ab4 26836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26837 }
26838 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26839 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26840 double val;
26841 int ecode = SWIG_AsVal_double(obj1, &val);
26842 if (!SWIG_IsOK(ecode)) {
26843 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26844 }
26845 temp2 = static_cast< wxDouble >(val);
26846 arg2 = &temp2;
26847 res2 = SWIG_AddTmpMask(ecode);
26848 }
26849 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26850 double val;
26851 int ecode = SWIG_AsVal_double(obj2, &val);
26852 if (!SWIG_IsOK(ecode)) {
26853 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26854 }
26855 temp3 = static_cast< wxDouble >(val);
26856 arg3 = &temp3;
26857 res3 = SWIG_AddTmpMask(ecode);
26858 }
26859 {
8f514ab4 26860 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26861 if (PyErr_Occurred()) SWIG_fail;
26862 }
26863 resultobj = SWIG_Py_Void();
26864 if (SWIG_IsTmpObj(res2)) {
26865 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26866 } else {
26867 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26869 }
26870 if (SWIG_IsTmpObj(res3)) {
26871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26872 } else {
26873 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26875 }
26876 return resultobj;
26877fail:
26878 return NULL;
26879}
26880
26881
26882SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26883 PyObject *resultobj = 0;
26884 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26885 void *result = 0 ;
26886 void *argp1 = 0 ;
26887 int res1 = 0 ;
26888 PyObject *swig_obj[1] ;
26889
26890 if (!args) SWIG_fail;
26891 swig_obj[0] = args;
26892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26893 if (!SWIG_IsOK(res1)) {
26894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26895 }
26896 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26897 {
26898 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26899 if (PyErr_Occurred()) SWIG_fail;
26900 }
26901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26902 return resultobj;
26903fail:
26904 return NULL;
26905}
26906
26907
26908SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26909 PyObject *obj;
26910 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26911 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26912 return SWIG_Py_Void();
26913}
26914
8f514ab4
RD
26915SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26916 return SWIG_Python_InitShadowInstance(args);
26917}
26918
26919SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26920 PyObject *resultobj = 0;
26921 wxGraphicsPath *result = 0 ;
26922
26923 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26924 {
26925 if (!wxPyCheckForApp()) SWIG_fail;
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 result = (wxGraphicsPath *)new wxGraphicsPath();
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26932 return resultobj;
26933fail:
26934 return NULL;
26935}
26936
26937
5c8c7dd3 26938SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26939 PyObject *resultobj = 0;
26940 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26941 void *argp1 = 0 ;
26942 int res1 = 0 ;
26943 PyObject *swig_obj[1] ;
26944
26945 if (!args) SWIG_fail;
26946 swig_obj[0] = args;
5c8c7dd3 26947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26948 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26950 }
26951 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26952 {
5c8c7dd3
RD
26953 delete arg1;
26954
72ef6efb
RD
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
5c8c7dd3 26957 resultobj = SWIG_Py_Void();
70d7cb34
RD
26958 return resultobj;
26959fail:
26960 return NULL;
26961}
26962
26963
5c8c7dd3 26964SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26965 PyObject *resultobj = 0;
26966 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26967 wxDouble arg2 ;
26968 wxDouble arg3 ;
70d7cb34
RD
26969 void *argp1 = 0 ;
26970 int res1 = 0 ;
26971 double val2 ;
26972 int ecode2 = 0 ;
26973 double val3 ;
26974 int ecode3 = 0 ;
70d7cb34 26975
5c8c7dd3 26976 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26978 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26980 }
26981 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26982 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26983 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26985 }
26986 arg2 = static_cast< wxDouble >(val2);
26987 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26988 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26990 }
26991 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26992 {
5c8c7dd3 26993 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26994 if (PyErr_Occurred()) SWIG_fail;
26995 }
26996 resultobj = SWIG_Py_Void();
26997 return resultobj;
26998fail:
26999 return NULL;
27000}
27001
27002
5c8c7dd3 27003SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27004 PyObject *resultobj = 0;
27005 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27006 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27007 void *argp1 = 0 ;
27008 int res1 = 0 ;
27009 wxPoint2D temp2 ;
70d7cb34 27010
5c8c7dd3 27011 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
27012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27013 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27015 }
27016 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27017 {
27018 arg2 = &temp2;
27019 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27020 }
70d7cb34 27021 {
5c8c7dd3 27022 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
27025 resultobj = SWIG_Py_Void();
27026 return resultobj;
27027fail:
27028 return NULL;
27029}
27030
27031
5c8c7dd3 27032SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 27033 int argc;
5c8c7dd3 27034 PyObject *argv[4];
70d7cb34 27035
5c8c7dd3 27036 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 27037 --argc;
5c8c7dd3
RD
27038 if (argc == 2) {
27039 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27040 }
5c8c7dd3
RD
27041 if (argc == 3) {
27042 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
27043 }
27044
27045fail:
5c8c7dd3 27046 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
27047 return NULL;
27048}
27049
27050
5c8c7dd3 27051SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27052 PyObject *resultobj = 0;
27053 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27054 wxDouble arg2 ;
27055 wxDouble arg3 ;
70d7cb34
RD
27056 void *argp1 = 0 ;
27057 int res1 = 0 ;
27058 double val2 ;
27059 int ecode2 = 0 ;
27060 double val3 ;
27061 int ecode3 = 0 ;
70d7cb34 27062
5c8c7dd3
RD
27063 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27065 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27067 }
27068 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27069 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27070 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27072 }
27073 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27074 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27075 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27077 }
27078 arg3 = static_cast< wxDouble >(val3);
70d7cb34 27079 {
5c8c7dd3 27080 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = SWIG_Py_Void();
27084 return resultobj;
27085fail:
27086 return NULL;
27087}
27088
27089
5c8c7dd3 27090SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27091 PyObject *resultobj = 0;
27092 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27093 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
27094 void *argp1 = 0 ;
27095 int res1 = 0 ;
5c8c7dd3 27096 wxPoint2D temp2 ;
70d7cb34 27097
5c8c7dd3
RD
27098 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27100 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27102 }
27103 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27104 {
5c8c7dd3
RD
27105 arg2 = &temp2;
27106 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27107 }
27108 {
27109 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
27110 if (PyErr_Occurred()) SWIG_fail;
27111 }
27112 resultobj = SWIG_Py_Void();
27113 return resultobj;
27114fail:
27115 return NULL;
27116}
27117
27118
5c8c7dd3
RD
27119SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27120 int argc;
27121 PyObject *argv[4];
70d7cb34 27122
5c8c7dd3
RD
27123 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27124 --argc;
27125 if (argc == 2) {
27126 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 27127 }
5c8c7dd3
RD
27128 if (argc == 3) {
27129 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 27130 }
5c8c7dd3 27131
70d7cb34 27132fail:
5c8c7dd3 27133 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
27134 return NULL;
27135}
27136
27137
5c8c7dd3 27138SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27139 PyObject *resultobj = 0;
27140 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27141 wxDouble arg2 ;
27142 wxDouble arg3 ;
27143 wxDouble arg4 ;
27144 wxDouble arg5 ;
27145 wxDouble arg6 ;
5c8c7dd3 27146 wxDouble arg7 ;
70d7cb34
RD
27147 void *argp1 = 0 ;
27148 int res1 = 0 ;
27149 double val2 ;
27150 int ecode2 = 0 ;
27151 double val3 ;
27152 int ecode3 = 0 ;
27153 double val4 ;
27154 int ecode4 = 0 ;
27155 double val5 ;
27156 int ecode5 = 0 ;
27157 double val6 ;
27158 int ecode6 = 0 ;
5c8c7dd3
RD
27159 double val7 ;
27160 int ecode7 = 0 ;
70d7cb34 27161
5c8c7dd3
RD
27162 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27164 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27166 }
27167 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27168 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 27169 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27171 }
27172 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 27173 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 27174 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27176 }
27177 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 27178 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 27179 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 27180 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
27181 }
27182 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 27183 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 27184 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 27185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
27186 }
27187 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 27188 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 27189 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 27190 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
27191 }
27192 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
27193 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27194 if (!SWIG_IsOK(ecode7)) {
27195 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27196 }
27197 arg7 = static_cast< wxDouble >(val7);
70d7cb34 27198 {
5c8c7dd3 27199 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27200 if (PyErr_Occurred()) SWIG_fail;
27201 }
27202 resultobj = SWIG_Py_Void();
27203 return resultobj;
27204fail:
27205 return NULL;
27206}
27207
27208
5c8c7dd3 27209SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27210 PyObject *resultobj = 0;
27211 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27212 wxPoint2D *arg2 = 0 ;
27213 wxPoint2D *arg3 = 0 ;
27214 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
27215 void *argp1 = 0 ;
27216 int res1 = 0 ;
5c8c7dd3
RD
27217 wxPoint2D temp2 ;
27218 wxPoint2D temp3 ;
27219 wxPoint2D temp4 ;
70d7cb34 27220
5c8c7dd3
RD
27221 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27223 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27225 }
27226 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27227 {
5c8c7dd3
RD
27228 arg2 = &temp2;
27229 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27230 }
5c8c7dd3
RD
27231 {
27232 arg3 = &temp3;
27233 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 27234 }
70d7cb34 27235 {
5c8c7dd3
RD
27236 arg4 = &temp4;
27237 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27238 }
27239 {
27240 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
27241 if (PyErr_Occurred()) SWIG_fail;
27242 }
27243 resultobj = SWIG_Py_Void();
27244 return resultobj;
27245fail:
27246 return NULL;
27247}
27248
27249
5c8c7dd3
RD
27250SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27251 int argc;
27252 PyObject *argv[8];
70d7cb34 27253
5c8c7dd3
RD
27254 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27255 --argc;
27256 if (argc == 4) {
27257 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 27258 }
5c8c7dd3
RD
27259 if (argc == 7) {
27260 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 27261 }
5c8c7dd3 27262
70d7cb34 27263fail:
5c8c7dd3 27264 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
27265 return NULL;
27266}
27267
27268
5c8c7dd3 27269SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
27270 PyObject *resultobj = 0;
27271 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27272 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
27273 void *argp1 = 0 ;
27274 int res1 = 0 ;
5c8c7dd3
RD
27275 void *argp2 = 0 ;
27276 int res2 = 0 ;
70d7cb34
RD
27277 PyObject * obj0 = 0 ;
27278 PyObject * obj1 = 0 ;
27279 char * kwnames[] = {
5c8c7dd3 27280 (char *) "self",(char *) "path", NULL
70d7cb34
RD
27281 };
27282
5c8c7dd3 27283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
27284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27285 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27287 }
27288 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 27289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 27290 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
27291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27292 }
27293 if (!argp2) {
27294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 27295 }
5c8c7dd3 27296 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 27297 {
5c8c7dd3 27298 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
27299 if (PyErr_Occurred()) SWIG_fail;
27300 }
27301 resultobj = SWIG_Py_Void();
27302 return resultobj;
27303fail:
27304 return NULL;
27305}
27306
27307
5c8c7dd3 27308SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27309 PyObject *resultobj = 0;
27310 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27311 void *argp1 = 0 ;
27312 int res1 = 0 ;
5c8c7dd3 27313 PyObject *swig_obj[1] ;
70d7cb34 27314
5c8c7dd3
RD
27315 if (!args) SWIG_fail;
27316 swig_obj[0] = args;
27317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27318 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27320 }
27321 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27322 {
5c8c7dd3 27323 (arg1)->CloseSubpath();
70d7cb34
RD
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
27326 resultobj = SWIG_Py_Void();
27327 return resultobj;
27328fail:
27329 return NULL;
27330}
27331
27332
5c8c7dd3 27333SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27334 PyObject *resultobj = 0;
27335 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27336 wxPoint2D result;
70d7cb34
RD
27337 void *argp1 = 0 ;
27338 int res1 = 0 ;
27339 PyObject *swig_obj[1] ;
27340
27341 if (!args) SWIG_fail;
27342 swig_obj[0] = args;
27343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27344 if (!SWIG_IsOK(res1)) {
8f514ab4 27345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
27346 }
27347 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27348 {
8f514ab4 27349 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
5c8c7dd3 27352 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27353 return resultobj;
27354fail:
27355 return NULL;
27356}
27357
27358
5c8c7dd3 27359SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27360 PyObject *resultobj = 0;
27361 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27362 wxDouble arg2 ;
27363 wxDouble arg3 ;
5c8c7dd3
RD
27364 wxDouble arg4 ;
27365 wxDouble arg5 ;
27366 wxDouble arg6 ;
27367 bool arg7 ;
70d7cb34
RD
27368 void *argp1 = 0 ;
27369 int res1 = 0 ;
27370 double val2 ;
27371 int ecode2 = 0 ;
27372 double val3 ;
27373 int ecode3 = 0 ;
5c8c7dd3 27374 double val4 ;
70d7cb34 27375 int ecode4 = 0 ;
5c8c7dd3
RD
27376 double val5 ;
27377 int ecode5 = 0 ;
27378 double val6 ;
27379 int ecode6 = 0 ;
27380 bool val7 ;
27381 int ecode7 = 0 ;
70d7cb34 27382
5c8c7dd3 27383 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27385 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27387 }
27388 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27389 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27390 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27392 }
27393 arg2 = static_cast< wxDouble >(val2);
27394 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27395 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27397 }
27398 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27399 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27400 if (!SWIG_IsOK(ecode4)) {
27401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27402 }
27403 arg4 = static_cast< wxDouble >(val4);
27404 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27405 if (!SWIG_IsOK(ecode5)) {
27406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27407 }
27408 arg5 = static_cast< wxDouble >(val5);
27409 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27410 if (!SWIG_IsOK(ecode6)) {
27411 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27412 }
27413 arg6 = static_cast< wxDouble >(val6);
27414 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27415 if (!SWIG_IsOK(ecode7)) {
27416 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27417 }
27418 arg7 = static_cast< bool >(val7);
70d7cb34 27419 {
5c8c7dd3 27420 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27421 if (PyErr_Occurred()) SWIG_fail;
27422 }
5c8c7dd3 27423 resultobj = SWIG_Py_Void();
70d7cb34
RD
27424 return resultobj;
27425fail:
27426 return NULL;
27427}
27428
27429
5c8c7dd3 27430SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27431 PyObject *resultobj = 0;
27432 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27433 wxPoint2D *arg2 = 0 ;
27434 wxDouble arg3 ;
27435 wxDouble arg4 ;
27436 wxDouble arg5 ;
27437 bool arg6 ;
70d7cb34
RD
27438 void *argp1 = 0 ;
27439 int res1 = 0 ;
5c8c7dd3
RD
27440 wxPoint2D temp2 ;
27441 double val3 ;
70d7cb34 27442 int ecode3 = 0 ;
5c8c7dd3
RD
27443 double val4 ;
27444 int ecode4 = 0 ;
27445 double val5 ;
27446 int ecode5 = 0 ;
27447 bool val6 ;
27448 int ecode6 = 0 ;
70d7cb34 27449
5c8c7dd3 27450 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27452 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27454 }
27455 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27456 {
5c8c7dd3
RD
27457 arg2 = &temp2;
27458 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27459 }
5c8c7dd3
RD
27460 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27461 if (!SWIG_IsOK(ecode3)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27463 }
27464 arg3 = static_cast< wxDouble >(val3);
27465 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27466 if (!SWIG_IsOK(ecode4)) {
27467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27468 }
27469 arg4 = static_cast< wxDouble >(val4);
27470 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27471 if (!SWIG_IsOK(ecode5)) {
27472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27473 }
27474 arg5 = static_cast< wxDouble >(val5);
27475 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27476 if (!SWIG_IsOK(ecode6)) {
27477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27478 }
27479 arg6 = static_cast< bool >(val6);
70d7cb34 27480 {
5c8c7dd3
RD
27481 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27482 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27483 }
5c8c7dd3 27484 resultobj = SWIG_Py_Void();
70d7cb34
RD
27485 return resultobj;
27486fail:
27487 return NULL;
27488}
27489
27490
5c8c7dd3 27491SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27492 int argc;
5c8c7dd3 27493 PyObject *argv[8];
70d7cb34 27494
5c8c7dd3 27495 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27496 --argc;
5c8c7dd3
RD
27497 if (argc == 6) {
27498 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27499 }
5c8c7dd3
RD
27500 if (argc == 7) {
27501 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27502 }
27503
27504fail:
5c8c7dd3 27505 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27506 return NULL;
27507}
27508
27509
5c8c7dd3 27510SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27511 PyObject *resultobj = 0;
5c8c7dd3
RD
27512 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27513 wxDouble arg2 ;
27514 wxDouble arg3 ;
27515 wxDouble arg4 ;
27516 wxDouble arg5 ;
70d7cb34
RD
27517 void *argp1 = 0 ;
27518 int res1 = 0 ;
5c8c7dd3
RD
27519 double val2 ;
27520 int ecode2 = 0 ;
27521 double val3 ;
27522 int ecode3 = 0 ;
27523 double val4 ;
27524 int ecode4 = 0 ;
27525 double val5 ;
27526 int ecode5 = 0 ;
27527 PyObject * obj0 = 0 ;
27528 PyObject * obj1 = 0 ;
27529 PyObject * obj2 = 0 ;
27530 PyObject * obj3 = 0 ;
27531 PyObject * obj4 = 0 ;
27532 char * kwnames[] = {
27533 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27534 };
70d7cb34 27535
5c8c7dd3
RD
27536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27538 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27540 }
5c8c7dd3
RD
27541 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27542 ecode2 = SWIG_AsVal_double(obj1, &val2);
27543 if (!SWIG_IsOK(ecode2)) {
27544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27545 }
27546 arg2 = static_cast< wxDouble >(val2);
27547 ecode3 = SWIG_AsVal_double(obj2, &val3);
27548 if (!SWIG_IsOK(ecode3)) {
27549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27550 }
27551 arg3 = static_cast< wxDouble >(val3);
27552 ecode4 = SWIG_AsVal_double(obj3, &val4);
27553 if (!SWIG_IsOK(ecode4)) {
27554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27555 }
27556 arg4 = static_cast< wxDouble >(val4);
27557 ecode5 = SWIG_AsVal_double(obj4, &val5);
27558 if (!SWIG_IsOK(ecode5)) {
27559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27560 }
27561 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27562 {
5c8c7dd3 27563 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27564 if (PyErr_Occurred()) SWIG_fail;
27565 }
27566 resultobj = SWIG_Py_Void();
27567 return resultobj;
27568fail:
27569 return NULL;
27570}
27571
27572
5c8c7dd3 27573SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27574 PyObject *resultobj = 0;
5c8c7dd3
RD
27575 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27576 wxDouble arg2 ;
27577 wxDouble arg3 ;
27578 wxDouble arg4 ;
27579 wxDouble arg5 ;
70d7cb34
RD
27580 void *argp1 = 0 ;
27581 int res1 = 0 ;
5c8c7dd3
RD
27582 double val2 ;
27583 int ecode2 = 0 ;
27584 double val3 ;
27585 int ecode3 = 0 ;
27586 double val4 ;
27587 int ecode4 = 0 ;
27588 double val5 ;
27589 int ecode5 = 0 ;
70d7cb34
RD
27590 PyObject * obj0 = 0 ;
27591 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27592 PyObject * obj2 = 0 ;
27593 PyObject * obj3 = 0 ;
27594 PyObject * obj4 = 0 ;
70d7cb34 27595 char * kwnames[] = {
5c8c7dd3 27596 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27597 };
27598
5c8c7dd3
RD
27599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27601 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27603 }
5c8c7dd3
RD
27604 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27605 ecode2 = SWIG_AsVal_double(obj1, &val2);
27606 if (!SWIG_IsOK(ecode2)) {
27607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27608 }
27609 arg2 = static_cast< wxDouble >(val2);
27610 ecode3 = SWIG_AsVal_double(obj2, &val3);
27611 if (!SWIG_IsOK(ecode3)) {
27612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27613 }
27614 arg3 = static_cast< wxDouble >(val3);
27615 ecode4 = SWIG_AsVal_double(obj3, &val4);
27616 if (!SWIG_IsOK(ecode4)) {
27617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27618 }
27619 arg4 = static_cast< wxDouble >(val4);
27620 ecode5 = SWIG_AsVal_double(obj4, &val5);
27621 if (!SWIG_IsOK(ecode5)) {
27622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27623 }
27624 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27625 {
5c8c7dd3 27626 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27627 if (PyErr_Occurred()) SWIG_fail;
27628 }
27629 resultobj = SWIG_Py_Void();
27630 return resultobj;
27631fail:
27632 return NULL;
27633}
27634
27635
5c8c7dd3 27636SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27637 PyObject *resultobj = 0;
5c8c7dd3
RD
27638 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27639 wxDouble arg2 ;
27640 wxDouble arg3 ;
27641 wxDouble arg4 ;
70d7cb34
RD
27642 void *argp1 = 0 ;
27643 int res1 = 0 ;
5c8c7dd3
RD
27644 double val2 ;
27645 int ecode2 = 0 ;
27646 double val3 ;
27647 int ecode3 = 0 ;
27648 double val4 ;
27649 int ecode4 = 0 ;
70d7cb34
RD
27650 PyObject * obj0 = 0 ;
27651 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27652 PyObject * obj2 = 0 ;
27653 PyObject * obj3 = 0 ;
70d7cb34 27654 char * kwnames[] = {
5c8c7dd3 27655 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27656 };
27657
5c8c7dd3
RD
27658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27660 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27662 }
5c8c7dd3
RD
27663 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27664 ecode2 = SWIG_AsVal_double(obj1, &val2);
27665 if (!SWIG_IsOK(ecode2)) {
27666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27667 }
27668 arg2 = static_cast< wxDouble >(val2);
27669 ecode3 = SWIG_AsVal_double(obj2, &val3);
27670 if (!SWIG_IsOK(ecode3)) {
27671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27672 }
27673 arg3 = static_cast< wxDouble >(val3);
27674 ecode4 = SWIG_AsVal_double(obj3, &val4);
27675 if (!SWIG_IsOK(ecode4)) {
27676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27677 }
27678 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27679 {
5c8c7dd3 27680 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27681 if (PyErr_Occurred()) SWIG_fail;
27682 }
27683 resultobj = SWIG_Py_Void();
27684 return resultobj;
27685fail:
27686 return NULL;
27687}
27688
27689
5c8c7dd3 27690SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27691 PyObject *resultobj = 0;
5c8c7dd3
RD
27692 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27693 wxDouble arg2 ;
27694 wxDouble arg3 ;
27695 wxDouble arg4 ;
27696 wxDouble arg5 ;
27697 wxDouble arg6 ;
70d7cb34
RD
27698 void *argp1 = 0 ;
27699 int res1 = 0 ;
27700 double val2 ;
27701 int ecode2 = 0 ;
27702 double val3 ;
27703 int ecode3 = 0 ;
27704 double val4 ;
27705 int ecode4 = 0 ;
27706 double val5 ;
27707 int ecode5 = 0 ;
27708 double val6 ;
27709 int ecode6 = 0 ;
70d7cb34
RD
27710 PyObject * obj0 = 0 ;
27711 PyObject * obj1 = 0 ;
27712 PyObject * obj2 = 0 ;
27713 PyObject * obj3 = 0 ;
27714 PyObject * obj4 = 0 ;
27715 PyObject * obj5 = 0 ;
70d7cb34 27716 char * kwnames[] = {
5c8c7dd3 27717 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27718 };
27719
5c8c7dd3
RD
27720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27722 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27724 }
5c8c7dd3
RD
27725 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27726 ecode2 = SWIG_AsVal_double(obj1, &val2);
27727 if (!SWIG_IsOK(ecode2)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27729 }
27730 arg2 = static_cast< wxDouble >(val2);
27731 ecode3 = SWIG_AsVal_double(obj2, &val3);
27732 if (!SWIG_IsOK(ecode3)) {
27733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27734 }
27735 arg3 = static_cast< wxDouble >(val3);
27736 ecode4 = SWIG_AsVal_double(obj3, &val4);
27737 if (!SWIG_IsOK(ecode4)) {
27738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27739 }
27740 arg4 = static_cast< wxDouble >(val4);
27741 ecode5 = SWIG_AsVal_double(obj4, &val5);
27742 if (!SWIG_IsOK(ecode5)) {
27743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27744 }
27745 arg5 = static_cast< wxDouble >(val5);
27746 ecode6 = SWIG_AsVal_double(obj5, &val6);
27747 if (!SWIG_IsOK(ecode6)) {
27748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27749 }
27750 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27751 {
5c8c7dd3 27752 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27753 if (PyErr_Occurred()) SWIG_fail;
27754 }
27755 resultobj = SWIG_Py_Void();
27756 return resultobj;
27757fail:
27758 return NULL;
27759}
27760
27761
5c8c7dd3 27762SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27763 PyObject *resultobj = 0;
5c8c7dd3
RD
27764 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27765 wxDouble arg2 ;
27766 wxDouble arg3 ;
27767 wxDouble arg4 ;
27768 wxDouble arg5 ;
70d7cb34
RD
27769 void *argp1 = 0 ;
27770 int res1 = 0 ;
5c8c7dd3
RD
27771 double val2 ;
27772 int ecode2 = 0 ;
27773 double val3 ;
27774 int ecode3 = 0 ;
27775 double val4 ;
27776 int ecode4 = 0 ;
27777 double val5 ;
27778 int ecode5 = 0 ;
27779 PyObject * obj0 = 0 ;
27780 PyObject * obj1 = 0 ;
27781 PyObject * obj2 = 0 ;
27782 PyObject * obj3 = 0 ;
27783 PyObject * obj4 = 0 ;
27784 char * kwnames[] = {
27785 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27786 };
70d7cb34 27787
5c8c7dd3
RD
27788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27790 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27792 }
5c8c7dd3
RD
27793 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27794 ecode2 = SWIG_AsVal_double(obj1, &val2);
27795 if (!SWIG_IsOK(ecode2)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27797 }
27798 arg2 = static_cast< wxDouble >(val2);
27799 ecode3 = SWIG_AsVal_double(obj2, &val3);
27800 if (!SWIG_IsOK(ecode3)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27802 }
27803 arg3 = static_cast< wxDouble >(val3);
27804 ecode4 = SWIG_AsVal_double(obj3, &val4);
27805 if (!SWIG_IsOK(ecode4)) {
27806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27807 }
27808 arg4 = static_cast< wxDouble >(val4);
27809 ecode5 = SWIG_AsVal_double(obj4, &val5);
27810 if (!SWIG_IsOK(ecode5)) {
27811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27812 }
27813 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27814 {
5c8c7dd3 27815 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27816 if (PyErr_Occurred()) SWIG_fail;
27817 }
27818 resultobj = SWIG_Py_Void();
27819 return resultobj;
27820fail:
27821 return NULL;
27822}
27823
27824
5c8c7dd3 27825SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27826 PyObject *resultobj = 0;
5c8c7dd3
RD
27827 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27828 wxDouble arg2 ;
27829 wxDouble arg3 ;
27830 wxDouble arg4 ;
27831 wxDouble arg5 ;
27832 wxDouble arg6 ;
70d7cb34
RD
27833 void *argp1 = 0 ;
27834 int res1 = 0 ;
5c8c7dd3
RD
27835 double val2 ;
27836 int ecode2 = 0 ;
27837 double val3 ;
27838 int ecode3 = 0 ;
27839 double val4 ;
27840 int ecode4 = 0 ;
27841 double val5 ;
27842 int ecode5 = 0 ;
27843 double val6 ;
27844 int ecode6 = 0 ;
70d7cb34
RD
27845 PyObject * obj0 = 0 ;
27846 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27847 PyObject * obj2 = 0 ;
27848 PyObject * obj3 = 0 ;
27849 PyObject * obj4 = 0 ;
27850 PyObject * obj5 = 0 ;
70d7cb34 27851 char * kwnames[] = {
5c8c7dd3 27852 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27853 };
27854
5c8c7dd3
RD
27855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27857 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27859 }
5c8c7dd3
RD
27860 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27861 ecode2 = SWIG_AsVal_double(obj1, &val2);
27862 if (!SWIG_IsOK(ecode2)) {
27863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27864 }
27865 arg2 = static_cast< wxDouble >(val2);
27866 ecode3 = SWIG_AsVal_double(obj2, &val3);
27867 if (!SWIG_IsOK(ecode3)) {
27868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27869 }
27870 arg3 = static_cast< wxDouble >(val3);
27871 ecode4 = SWIG_AsVal_double(obj3, &val4);
27872 if (!SWIG_IsOK(ecode4)) {
27873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27874 }
27875 arg4 = static_cast< wxDouble >(val4);
27876 ecode5 = SWIG_AsVal_double(obj4, &val5);
27877 if (!SWIG_IsOK(ecode5)) {
27878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27879 }
27880 arg5 = static_cast< wxDouble >(val5);
27881 ecode6 = SWIG_AsVal_double(obj5, &val6);
27882 if (!SWIG_IsOK(ecode6)) {
27883 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27884 }
27885 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27886 {
5c8c7dd3 27887 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27888 if (PyErr_Occurred()) SWIG_fail;
27889 }
5c8c7dd3 27890 resultobj = SWIG_Py_Void();
70d7cb34
RD
27891 return resultobj;
27892fail:
27893 return NULL;
27894}
27895
27896
5c8c7dd3 27897SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27898 PyObject *resultobj = 0;
5c8c7dd3
RD
27899 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27900 void *result = 0 ;
70d7cb34
RD
27901 void *argp1 = 0 ;
27902 int res1 = 0 ;
27903 PyObject *swig_obj[1] ;
27904
27905 if (!args) SWIG_fail;
27906 swig_obj[0] = args;
5c8c7dd3 27907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27908 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27910 }
5c8c7dd3 27911 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27912 {
5c8c7dd3 27913 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27914 if (PyErr_Occurred()) SWIG_fail;
27915 }
5c8c7dd3 27916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27917 return resultobj;
27918fail:
27919 return NULL;
27920}
27921
27922
5c8c7dd3 27923SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27924 PyObject *resultobj = 0;
5c8c7dd3
RD
27925 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27926 void *arg2 = (void *) 0 ;
70d7cb34
RD
27927 void *argp1 = 0 ;
27928 int res1 = 0 ;
5c8c7dd3 27929 int res2 ;
70d7cb34
RD
27930 PyObject * obj0 = 0 ;
27931 PyObject * obj1 = 0 ;
70d7cb34 27932 char * kwnames[] = {
5c8c7dd3 27933 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27934 };
27935
5c8c7dd3
RD
27936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27938 if (!SWIG_IsOK(res1)) {
8f514ab4 27939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27940 }
27941 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27942 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27943 if (!SWIG_IsOK(res2)) {
27944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27945 }
70d7cb34 27946 {
8f514ab4 27947 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27948 if (PyErr_Occurred()) SWIG_fail;
27949 }
27950 resultobj = SWIG_Py_Void();
27951 return resultobj;
27952fail:
27953 return NULL;
27954}
27955
27956
5c8c7dd3 27957SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27958 PyObject *resultobj = 0;
5c8c7dd3
RD
27959 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27960 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27961 void *argp1 = 0 ;
27962 int res1 = 0 ;
5c8c7dd3
RD
27963 void *argp2 = 0 ;
27964 int res2 = 0 ;
70d7cb34
RD
27965 PyObject * obj0 = 0 ;
27966 PyObject * obj1 = 0 ;
70d7cb34 27967 char * kwnames[] = {
5c8c7dd3 27968 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27969 };
27970
5c8c7dd3
RD
27971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27973 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27975 }
5c8c7dd3
RD
27976 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27978 if (!SWIG_IsOK(res2)) {
27979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27980 }
27981 if (!argp2) {
27982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27983 }
27984 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27985 {
5c8c7dd3 27986 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27987 if (PyErr_Occurred()) SWIG_fail;
27988 }
27989 resultobj = SWIG_Py_Void();
27990 return resultobj;
27991fail:
27992 return NULL;
27993}
27994
27995
5c8c7dd3 27996SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27997 PyObject *resultobj = 0;
5c8c7dd3
RD
27998 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27999 wxRect2DDouble result;
70d7cb34
RD
28000 void *argp1 = 0 ;
28001 int res1 = 0 ;
5c8c7dd3 28002 PyObject *swig_obj[1] ;
70d7cb34 28003
5c8c7dd3
RD
28004 if (!args) SWIG_fail;
28005 swig_obj[0] = args;
28006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28007 if (!SWIG_IsOK(res1)) {
8f514ab4 28008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28009 }
5c8c7dd3 28010 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 28011 {
8f514ab4 28012 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
28013 if (PyErr_Occurred()) SWIG_fail;
28014 }
5c8c7dd3 28015 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
28016 return resultobj;
28017fail:
28018 return NULL;
28019}
28020
28021
5c8c7dd3 28022SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28023 PyObject *resultobj = 0;
5c8c7dd3
RD
28024 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28025 wxDouble arg2 ;
28026 wxDouble arg3 ;
8f514ab4 28027 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28028 bool result;
70d7cb34
RD
28029 void *argp1 = 0 ;
28030 int res1 = 0 ;
5c8c7dd3
RD
28031 double val2 ;
28032 int ecode2 = 0 ;
28033 double val3 ;
28034 int ecode3 = 0 ;
28035 int val4 ;
28036 int ecode4 = 0 ;
70d7cb34 28037
5c8c7dd3
RD
28038 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28040 if (!SWIG_IsOK(res1)) {
8f514ab4 28041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28042 }
5c8c7dd3
RD
28043 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28044 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28045 if (!SWIG_IsOK(ecode2)) {
28046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28047 }
28048 arg2 = static_cast< wxDouble >(val2);
28049 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28050 if (!SWIG_IsOK(ecode3)) {
28051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28052 }
28053 arg3 = static_cast< wxDouble >(val3);
28054 if (swig_obj[3]) {
28055 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28056 if (!SWIG_IsOK(ecode4)) {
28057 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28058 }
28059 arg4 = static_cast< int >(val4);
70d7cb34
RD
28060 }
28061 {
8f514ab4 28062 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
28063 if (PyErr_Occurred()) SWIG_fail;
28064 }
5c8c7dd3
RD
28065 {
28066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28067 }
28068 return resultobj;
28069fail:
28070 return NULL;
28071}
28072
28073
5c8c7dd3 28074SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 28075 PyObject *resultobj = 0;
5c8c7dd3
RD
28076 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28077 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 28078 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 28079 bool result;
70d7cb34
RD
28080 void *argp1 = 0 ;
28081 int res1 = 0 ;
5c8c7dd3 28082 void *argp2 = 0 ;
70d7cb34 28083 int res2 = 0 ;
5c8c7dd3
RD
28084 int val3 ;
28085 int ecode3 = 0 ;
70d7cb34 28086
5c8c7dd3
RD
28087 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 28089 if (!SWIG_IsOK(res1)) {
8f514ab4 28090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 28091 }
5c8c7dd3
RD
28092 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28093 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28094 if (!SWIG_IsOK(res2)) {
28095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 28096 }
5c8c7dd3
RD
28097 if (!argp2) {
28098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28099 }
28100 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28101 if (swig_obj[2]) {
28102 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28103 if (!SWIG_IsOK(ecode3)) {
28104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28105 }
28106 arg3 = static_cast< int >(val3);
70d7cb34
RD
28107 }
28108 {
8f514ab4 28109 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
5c8c7dd3
RD
28112 {
28113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
28114 }
28115 return resultobj;
28116fail:
28117 return NULL;
28118}
28119
28120
5c8c7dd3
RD
28121SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28122 int argc;
28123 PyObject *argv[5];
70d7cb34 28124
5c8c7dd3
RD
28125 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28126 --argc;
28127 if ((argc >= 2) && (argc <= 3)) {
28128 int _v = 0;
28129 {
28130 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28131 _v = SWIG_CheckState(res);
28132 }
28133 if (!_v) goto check_1;
28134 if (argc > 2) {
28135 {
28136 {
28137 int res = SWIG_AsVal_int(argv[2], NULL);
28138 _v = SWIG_CheckState(res);
28139 }
28140 }
28141 if (!_v) goto check_1;
28142 }
28143 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 28144 }
5c8c7dd3
RD
28145check_1:
28146
28147 if ((argc >= 3) && (argc <= 4)) {
28148 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 28149 }
5c8c7dd3 28150
70d7cb34 28151fail:
5c8c7dd3 28152 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
28153 return NULL;
28154}
28155
28156
5c8c7dd3 28157SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
28158 PyObject *obj;
28159 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 28160 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
28161 return SWIG_Py_Void();
28162}
28163
8f514ab4
RD
28164SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28165 return SWIG_Python_InitShadowInstance(args);
28166}
28167
5c8c7dd3
RD
28168SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28169 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28170 return 1;
28171}
28172
28173
28174SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28175 PyObject *pyobj = 0;
28176
28177 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28178 return pyobj;
28179}
28180
28181
28182SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28183 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28184 return 1;
28185}
28186
28187
28188SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28189 PyObject *pyobj = 0;
28190
28191 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28192 return pyobj;
28193}
28194
28195
28196SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28197 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28198 return 1;
28199}
28200
28201
28202SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28203 PyObject *pyobj = 0;
28204
28205 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28206 return pyobj;
28207}
28208
28209
28210SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28211 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28212 return 1;
28213}
28214
28215
28216SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28217 PyObject *pyobj = 0;
28218
28219 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28220 return pyobj;
28221}
28222
28223
28224SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28225 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28226 return 1;
28227}
28228
28229
28230SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28231 PyObject *pyobj = 0;
28232
28233 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28234 return pyobj;
28235}
28236
28237
70d7cb34
RD
28238SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28239 PyObject *resultobj = 0;
28240 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28241 void *argp1 = 0 ;
28242 int res1 = 0 ;
28243 PyObject *swig_obj[1] ;
28244
28245 if (!args) SWIG_fail;
28246 swig_obj[0] = args;
28247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28248 if (!SWIG_IsOK(res1)) {
28249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28250 }
28251 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28252 {
28253 delete arg1;
28254
28255 if (PyErr_Occurred()) SWIG_fail;
28256 }
28257 resultobj = SWIG_Py_Void();
28258 return resultobj;
28259fail:
28260 return NULL;
28261}
28262
28263
28264SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28265 PyObject *resultobj = 0;
28266 wxWindowDC *arg1 = 0 ;
28267 wxGraphicsContext *result = 0 ;
28268 void *argp1 = 0 ;
28269 int res1 = 0 ;
28270
28271 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28273 if (!SWIG_IsOK(res1)) {
28274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28275 }
28276 if (!argp1) {
28277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28278 }
28279 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28280 {
28281 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28282 if (PyErr_Occurred()) SWIG_fail;
28283 }
28284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28285 return resultobj;
28286fail:
28287 return NULL;
28288}
28289
28290
28291SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28292 PyObject *resultobj = 0;
28293 wxWindow *arg1 = (wxWindow *) 0 ;
28294 wxGraphicsContext *result = 0 ;
28295 void *argp1 = 0 ;
28296 int res1 = 0 ;
28297
28298 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28300 if (!SWIG_IsOK(res1)) {
28301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28302 }
28303 arg1 = reinterpret_cast< wxWindow * >(argp1);
28304 {
28305 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28306 if (PyErr_Occurred()) SWIG_fail;
28307 }
28308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28309 return resultobj;
28310fail:
28311 return NULL;
28312}
28313
28314
28315SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28316 int argc;
28317 PyObject *argv[2];
28318
28319 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28320 --argc;
28321 if (argc == 1) {
28322 int _v = 0;
28323 {
28324 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28325 _v = SWIG_CheckState(res);
28326 }
28327 if (!_v) goto check_1;
28328 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28329 }
28330check_1:
28331
28332 if (argc == 1) {
28333 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28334 }
28335
28336fail:
28337 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28338 return NULL;
28339}
28340
28341
28342SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28343 PyObject *resultobj = 0;
28344 void *arg1 = (void *) 0 ;
28345 wxGraphicsContext *result = 0 ;
28346 int res1 ;
28347 PyObject * obj0 = 0 ;
28348 char * kwnames[] = {
28349 (char *) "context", NULL
28350 };
28351
28352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28353 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28354 if (!SWIG_IsOK(res1)) {
28355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28356 }
28357 {
28358 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28359 if (PyErr_Occurred()) SWIG_fail;
28360 }
28361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28362 return resultobj;
28363fail:
28364 return NULL;
28365}
28366
28367
28368SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28369 PyObject *resultobj = 0;
28370 void *arg1 = (void *) 0 ;
28371 wxGraphicsContext *result = 0 ;
28372 int res1 ;
28373 PyObject * obj0 = 0 ;
28374 char * kwnames[] = {
28375 (char *) "window", NULL
28376 };
28377
28378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28379 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28380 if (!SWIG_IsOK(res1)) {
28381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28382 }
28383 {
28384 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28388 return resultobj;
28389fail:
28390 return NULL;
28391}
28392
28393
28394SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28395 PyObject *resultobj = 0;
28396 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28397 wxGraphicsPath result;
70d7cb34
RD
28398 void *argp1 = 0 ;
28399 int res1 = 0 ;
28400 PyObject *swig_obj[1] ;
28401
28402 if (!args) SWIG_fail;
28403 swig_obj[0] = args;
28404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28405 if (!SWIG_IsOK(res1)) {
28406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28407 }
28408 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28409 {
5c8c7dd3 28410 result = (arg1)->CreatePath();
70d7cb34
RD
28411 if (PyErr_Occurred()) SWIG_fail;
28412 }
5c8c7dd3 28413 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28414 return resultobj;
28415fail:
28416 return NULL;
28417}
28418
28419
70d7cb34 28420SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28421 PyObject *resultobj = 0;
70d7cb34
RD
28422 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28423 wxPen *arg2 = 0 ;
28424 wxGraphicsPen result;
72ef6efb
RD
28425 void *argp1 = 0 ;
28426 int res1 = 0 ;
70d7cb34
RD
28427 void *argp2 = 0 ;
28428 int res2 = 0 ;
72ef6efb
RD
28429 PyObject * obj0 = 0 ;
28430 PyObject * obj1 = 0 ;
72ef6efb 28431 char * kwnames[] = {
70d7cb34 28432 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28433 };
28434
70d7cb34
RD
28435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28437 if (!SWIG_IsOK(res1)) {
70d7cb34 28438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28439 }
70d7cb34
RD
28440 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28442 if (!SWIG_IsOK(res2)) {
28443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28444 }
28445 if (!argp2) {
28446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28447 }
28448 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28449 {
70d7cb34 28450 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28451 if (PyErr_Occurred()) SWIG_fail;
28452 }
70d7cb34 28453 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28454 return resultobj;
28455fail:
28456 return NULL;
28457}
28458
28459
70d7cb34 28460SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28461 PyObject *resultobj = 0;
70d7cb34
RD
28462 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28463 wxBrush *arg2 = 0 ;
28464 wxGraphicsBrush result;
72ef6efb
RD
28465 void *argp1 = 0 ;
28466 int res1 = 0 ;
70d7cb34
RD
28467 void *argp2 = 0 ;
28468 int res2 = 0 ;
72ef6efb
RD
28469 PyObject * obj0 = 0 ;
28470 PyObject * obj1 = 0 ;
72ef6efb 28471 char * kwnames[] = {
70d7cb34 28472 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28473 };
28474
70d7cb34
RD
28475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28477 if (!SWIG_IsOK(res1)) {
70d7cb34 28478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28479 }
70d7cb34
RD
28480 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28482 if (!SWIG_IsOK(res2)) {
28483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28484 }
28485 if (!argp2) {
28486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28487 }
28488 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28489 {
70d7cb34 28490 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28491 if (PyErr_Occurred()) SWIG_fail;
28492 }
70d7cb34 28493 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28494 return resultobj;
28495fail:
28496 return NULL;
28497}
28498
28499
70d7cb34 28500SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28501 PyObject *resultobj = 0;
70d7cb34 28502 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28503 wxDouble arg2 ;
28504 wxDouble arg3 ;
28505 wxDouble arg4 ;
28506 wxDouble arg5 ;
70d7cb34
RD
28507 wxColour *arg6 = 0 ;
28508 wxColour *arg7 = 0 ;
28509 wxGraphicsBrush result;
72ef6efb
RD
28510 void *argp1 = 0 ;
28511 int res1 = 0 ;
28512 double val2 ;
28513 int ecode2 = 0 ;
28514 double val3 ;
28515 int ecode3 = 0 ;
28516 double val4 ;
28517 int ecode4 = 0 ;
28518 double val5 ;
28519 int ecode5 = 0 ;
70d7cb34
RD
28520 wxColour temp6 ;
28521 wxColour temp7 ;
72ef6efb
RD
28522 PyObject * obj0 = 0 ;
28523 PyObject * obj1 = 0 ;
28524 PyObject * obj2 = 0 ;
28525 PyObject * obj3 = 0 ;
28526 PyObject * obj4 = 0 ;
70d7cb34
RD
28527 PyObject * obj5 = 0 ;
28528 PyObject * obj6 = 0 ;
72ef6efb 28529 char * kwnames[] = {
70d7cb34 28530 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28531 };
28532
70d7cb34
RD
28533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28535 if (!SWIG_IsOK(res1)) {
70d7cb34 28536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28537 }
70d7cb34 28538 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28539 ecode2 = SWIG_AsVal_double(obj1, &val2);
28540 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28542 }
28543 arg2 = static_cast< wxDouble >(val2);
28544 ecode3 = SWIG_AsVal_double(obj2, &val3);
28545 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28547 }
28548 arg3 = static_cast< wxDouble >(val3);
28549 ecode4 = SWIG_AsVal_double(obj3, &val4);
28550 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28552 }
28553 arg4 = static_cast< wxDouble >(val4);
28554 ecode5 = SWIG_AsVal_double(obj4, &val5);
28555 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28557 }
28558 arg5 = static_cast< wxDouble >(val5);
28559 {
70d7cb34
RD
28560 arg6 = &temp6;
28561 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28562 }
70d7cb34
RD
28563 {
28564 arg7 = &temp7;
28565 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28566 }
72ef6efb 28567 {
70d7cb34 28568 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28569 if (PyErr_Occurred()) SWIG_fail;
28570 }
70d7cb34 28571 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28572 return resultobj;
28573fail:
28574 return NULL;
28575}
28576
28577
70d7cb34 28578SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28579 PyObject *resultobj = 0;
70d7cb34 28580 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28581 wxDouble arg2 ;
28582 wxDouble arg3 ;
28583 wxDouble arg4 ;
28584 wxDouble arg5 ;
28585 wxDouble arg6 ;
70d7cb34
RD
28586 wxColour *arg7 = 0 ;
28587 wxColour *arg8 = 0 ;
28588 wxGraphicsBrush result;
72ef6efb
RD
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 double val2 ;
28592 int ecode2 = 0 ;
28593 double val3 ;
28594 int ecode3 = 0 ;
28595 double val4 ;
28596 int ecode4 = 0 ;
28597 double val5 ;
28598 int ecode5 = 0 ;
28599 double val6 ;
28600 int ecode6 = 0 ;
70d7cb34
RD
28601 wxColour temp7 ;
28602 wxColour temp8 ;
72ef6efb
RD
28603 PyObject * obj0 = 0 ;
28604 PyObject * obj1 = 0 ;
28605 PyObject * obj2 = 0 ;
28606 PyObject * obj3 = 0 ;
28607 PyObject * obj4 = 0 ;
28608 PyObject * obj5 = 0 ;
70d7cb34
RD
28609 PyObject * obj6 = 0 ;
28610 PyObject * obj7 = 0 ;
72ef6efb 28611 char * kwnames[] = {
70d7cb34 28612 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28613 };
28614
70d7cb34
RD
28615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28617 if (!SWIG_IsOK(res1)) {
70d7cb34 28618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28619 }
70d7cb34 28620 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28621 ecode2 = SWIG_AsVal_double(obj1, &val2);
28622 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28624 }
28625 arg2 = static_cast< wxDouble >(val2);
28626 ecode3 = SWIG_AsVal_double(obj2, &val3);
28627 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28629 }
28630 arg3 = static_cast< wxDouble >(val3);
28631 ecode4 = SWIG_AsVal_double(obj3, &val4);
28632 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28634 }
28635 arg4 = static_cast< wxDouble >(val4);
28636 ecode5 = SWIG_AsVal_double(obj4, &val5);
28637 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28639 }
28640 arg5 = static_cast< wxDouble >(val5);
28641 ecode6 = SWIG_AsVal_double(obj5, &val6);
28642 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28643 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28644 }
28645 arg6 = static_cast< wxDouble >(val6);
28646 {
70d7cb34
RD
28647 arg7 = &temp7;
28648 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28649 }
28650 {
28651 arg8 = &temp8;
28652 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28653 }
28654 {
28655 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28656 if (PyErr_Occurred()) SWIG_fail;
28657 }
70d7cb34 28658 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28659 return resultobj;
28660fail:
28661 return NULL;
28662}
28663
28664
70d7cb34 28665SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28666 PyObject *resultobj = 0;
28667 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28668 wxFont *arg2 = 0 ;
28669 wxColour const &arg3_defvalue = *wxBLACK ;
28670 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28671 wxGraphicsFont result;
72ef6efb
RD
28672 void *argp1 = 0 ;
28673 int res1 = 0 ;
70d7cb34
RD
28674 void *argp2 = 0 ;
28675 int res2 = 0 ;
28676 wxColour temp3 ;
28677 PyObject * obj0 = 0 ;
28678 PyObject * obj1 = 0 ;
28679 PyObject * obj2 = 0 ;
28680 char * kwnames[] = {
28681 (char *) "self",(char *) "font",(char *) "col", NULL
28682 };
72ef6efb 28683
70d7cb34
RD
28684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28686 if (!SWIG_IsOK(res1)) {
70d7cb34 28687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28688 }
28689 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28691 if (!SWIG_IsOK(res2)) {
28692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28693 }
70d7cb34
RD
28694 if (!argp2) {
28695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28696 }
70d7cb34
RD
28697 arg2 = reinterpret_cast< wxFont * >(argp2);
28698 if (obj2) {
28699 {
28700 arg3 = &temp3;
28701 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28702 }
72ef6efb 28703 }
72ef6efb 28704 {
70d7cb34 28705 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
70d7cb34 28708 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28709 return resultobj;
28710fail:
28711 return NULL;
28712}
28713
28714
70d7cb34 28715SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28716 PyObject *resultobj = 0;
70d7cb34
RD
28717 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28718 wxDouble arg2 = (wxDouble) 1.0 ;
28719 wxDouble arg3 = (wxDouble) 0.0 ;
28720 wxDouble arg4 = (wxDouble) 0.0 ;
28721 wxDouble arg5 = (wxDouble) 1.0 ;
28722 wxDouble arg6 = (wxDouble) 0.0 ;
28723 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28724 wxGraphicsMatrix result;
0a27f394
RD
28725 void *argp1 = 0 ;
28726 int res1 = 0 ;
70d7cb34
RD
28727 double val2 ;
28728 int ecode2 = 0 ;
28729 double val3 ;
28730 int ecode3 = 0 ;
28731 double val4 ;
28732 int ecode4 = 0 ;
28733 double val5 ;
28734 int ecode5 = 0 ;
28735 double val6 ;
28736 int ecode6 = 0 ;
28737 double val7 ;
28738 int ecode7 = 0 ;
28739 PyObject * obj0 = 0 ;
28740 PyObject * obj1 = 0 ;
28741 PyObject * obj2 = 0 ;
28742 PyObject * obj3 = 0 ;
28743 PyObject * obj4 = 0 ;
28744 PyObject * obj5 = 0 ;
28745 PyObject * obj6 = 0 ;
28746 char * kwnames[] = {
28747 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28748 };
0a27f394 28749
70d7cb34
RD
28750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28752 if (!SWIG_IsOK(res1)) {
70d7cb34 28753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28754 }
70d7cb34
RD
28755 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28756 if (obj1) {
28757 ecode2 = SWIG_AsVal_double(obj1, &val2);
28758 if (!SWIG_IsOK(ecode2)) {
28759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28760 }
28761 arg2 = static_cast< wxDouble >(val2);
0a27f394 28762 }
70d7cb34
RD
28763 if (obj2) {
28764 ecode3 = SWIG_AsVal_double(obj2, &val3);
28765 if (!SWIG_IsOK(ecode3)) {
28766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28767 }
28768 arg3 = static_cast< wxDouble >(val3);
0a27f394 28769 }
70d7cb34
RD
28770 if (obj3) {
28771 ecode4 = SWIG_AsVal_double(obj3, &val4);
28772 if (!SWIG_IsOK(ecode4)) {
28773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28774 }
28775 arg4 = static_cast< wxDouble >(val4);
0a27f394 28776 }
70d7cb34
RD
28777 if (obj4) {
28778 ecode5 = SWIG_AsVal_double(obj4, &val5);
28779 if (!SWIG_IsOK(ecode5)) {
28780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28781 }
28782 arg5 = static_cast< wxDouble >(val5);
0a27f394 28783 }
70d7cb34
RD
28784 if (obj5) {
28785 ecode6 = SWIG_AsVal_double(obj5, &val6);
28786 if (!SWIG_IsOK(ecode6)) {
28787 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28788 }
28789 arg6 = static_cast< wxDouble >(val6);
0a27f394 28790 }
70d7cb34
RD
28791 if (obj6) {
28792 ecode7 = SWIG_AsVal_double(obj6, &val7);
28793 if (!SWIG_IsOK(ecode7)) {
28794 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28795 }
28796 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28797 }
72ef6efb 28798 {
5c8c7dd3 28799 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28800 if (PyErr_Occurred()) SWIG_fail;
28801 }
5c8c7dd3 28802 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28803 return resultobj;
28804fail:
28805 return NULL;
28806}
28807
28808
28809SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28810 PyObject *resultobj = 0;
28811 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28812 void *argp1 = 0 ;
28813 int res1 = 0 ;
28814 PyObject *swig_obj[1] ;
28815
28816 if (!args) SWIG_fail;
28817 swig_obj[0] = args;
28818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28819 if (!SWIG_IsOK(res1)) {
28820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28821 }
28822 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28823 {
72ef6efb 28824 (arg1)->PushState();
72ef6efb
RD
28825 if (PyErr_Occurred()) SWIG_fail;
28826 }
28827 resultobj = SWIG_Py_Void();
28828 return resultobj;
28829fail:
28830 return NULL;
28831}
28832
28833
28834SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28835 PyObject *resultobj = 0;
28836 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28837 void *argp1 = 0 ;
28838 int res1 = 0 ;
28839 PyObject *swig_obj[1] ;
28840
28841 if (!args) SWIG_fail;
28842 swig_obj[0] = args;
28843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28844 if (!SWIG_IsOK(res1)) {
28845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28846 }
28847 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28848 {
72ef6efb 28849 (arg1)->PopState();
72ef6efb
RD
28850 if (PyErr_Occurred()) SWIG_fail;
28851 }
28852 resultobj = SWIG_Py_Void();
28853 return resultobj;
28854fail:
28855 return NULL;
28856}
28857
28858
0a27f394 28859SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28860 PyObject *resultobj = 0;
28861 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28862 wxRegion *arg2 = 0 ;
28863 void *argp1 = 0 ;
28864 int res1 = 0 ;
28865 void *argp2 = 0 ;
28866 int res2 = 0 ;
28867 PyObject * obj0 = 0 ;
28868 PyObject * obj1 = 0 ;
28869 char * kwnames[] = {
28870 (char *) "self",(char *) "region", NULL
28871 };
28872
0a27f394 28873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28875 if (!SWIG_IsOK(res1)) {
0a27f394 28876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28877 }
28878 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28880 if (!SWIG_IsOK(res2)) {
0a27f394 28881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28882 }
28883 if (!argp2) {
0a27f394 28884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28885 }
28886 arg2 = reinterpret_cast< wxRegion * >(argp2);
28887 {
72ef6efb 28888 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 resultobj = SWIG_Py_Void();
28892 return resultobj;
28893fail:
28894 return NULL;
28895}
28896
28897
0a27f394
RD
28898SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28899 PyObject *resultobj = 0;
28900 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28901 wxDouble arg2 ;
28902 wxDouble arg3 ;
28903 wxDouble arg4 ;
28904 wxDouble arg5 ;
28905 void *argp1 = 0 ;
28906 int res1 = 0 ;
28907 double val2 ;
28908 int ecode2 = 0 ;
28909 double val3 ;
28910 int ecode3 = 0 ;
28911 double val4 ;
28912 int ecode4 = 0 ;
28913 double val5 ;
28914 int ecode5 = 0 ;
28915 PyObject * obj0 = 0 ;
28916 PyObject * obj1 = 0 ;
28917 PyObject * obj2 = 0 ;
28918 PyObject * obj3 = 0 ;
28919 PyObject * obj4 = 0 ;
28920 char * kwnames[] = {
28921 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28922 };
28923
28924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28926 if (!SWIG_IsOK(res1)) {
28927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28928 }
28929 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28930 ecode2 = SWIG_AsVal_double(obj1, &val2);
28931 if (!SWIG_IsOK(ecode2)) {
28932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28933 }
28934 arg2 = static_cast< wxDouble >(val2);
28935 ecode3 = SWIG_AsVal_double(obj2, &val3);
28936 if (!SWIG_IsOK(ecode3)) {
28937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28938 }
28939 arg3 = static_cast< wxDouble >(val3);
28940 ecode4 = SWIG_AsVal_double(obj3, &val4);
28941 if (!SWIG_IsOK(ecode4)) {
28942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28943 }
28944 arg4 = static_cast< wxDouble >(val4);
28945 ecode5 = SWIG_AsVal_double(obj4, &val5);
28946 if (!SWIG_IsOK(ecode5)) {
28947 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28948 }
28949 arg5 = static_cast< wxDouble >(val5);
28950 {
28951 (arg1)->Clip(arg2,arg3,arg4,arg5);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 resultobj = SWIG_Py_Void();
28955 return resultobj;
28956fail:
28957 return NULL;
28958}
28959
28960
28961SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28962 PyObject *resultobj = 0;
28963 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28964 void *argp1 = 0 ;
28965 int res1 = 0 ;
28966 PyObject *swig_obj[1] ;
28967
28968 if (!args) SWIG_fail;
28969 swig_obj[0] = args;
28970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28971 if (!SWIG_IsOK(res1)) {
28972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28973 }
28974 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28975 {
28976 (arg1)->ResetClip();
28977 if (PyErr_Occurred()) SWIG_fail;
28978 }
28979 resultobj = SWIG_Py_Void();
28980 return resultobj;
28981fail:
28982 return NULL;
28983}
28984
28985
28986SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28987 PyObject *resultobj = 0;
28988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28989 void *result = 0 ;
28990 void *argp1 = 0 ;
28991 int res1 = 0 ;
28992 PyObject *swig_obj[1] ;
28993
28994 if (!args) SWIG_fail;
28995 swig_obj[0] = args;
28996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28997 if (!SWIG_IsOK(res1)) {
28998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28999 }
29000 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29001 {
29002 result = (void *)(arg1)->GetNativeContext();
29003 if (PyErr_Occurred()) SWIG_fail;
29004 }
29005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29006 return resultobj;
29007fail:
29008 return NULL;
29009}
29010
29011
72ef6efb
RD
29012SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29013 PyObject *resultobj = 0;
29014 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29015 wxDouble arg2 ;
29016 wxDouble arg3 ;
29017 void *argp1 = 0 ;
29018 int res1 = 0 ;
29019 double val2 ;
29020 int ecode2 = 0 ;
29021 double val3 ;
29022 int ecode3 = 0 ;
29023 PyObject * obj0 = 0 ;
29024 PyObject * obj1 = 0 ;
29025 PyObject * obj2 = 0 ;
29026 char * kwnames[] = {
29027 (char *) "self",(char *) "dx",(char *) "dy", NULL
29028 };
29029
29030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29032 if (!SWIG_IsOK(res1)) {
29033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29034 }
29035 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29036 ecode2 = SWIG_AsVal_double(obj1, &val2);
29037 if (!SWIG_IsOK(ecode2)) {
29038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29039 }
29040 arg2 = static_cast< wxDouble >(val2);
29041 ecode3 = SWIG_AsVal_double(obj2, &val3);
29042 if (!SWIG_IsOK(ecode3)) {
29043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29044 }
29045 arg3 = static_cast< wxDouble >(val3);
29046 {
72ef6efb 29047 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
29048 if (PyErr_Occurred()) SWIG_fail;
29049 }
29050 resultobj = SWIG_Py_Void();
29051 return resultobj;
29052fail:
29053 return NULL;
29054}
29055
29056
29057SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29058 PyObject *resultobj = 0;
29059 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29060 wxDouble arg2 ;
29061 wxDouble arg3 ;
29062 void *argp1 = 0 ;
29063 int res1 = 0 ;
29064 double val2 ;
29065 int ecode2 = 0 ;
29066 double val3 ;
29067 int ecode3 = 0 ;
29068 PyObject * obj0 = 0 ;
29069 PyObject * obj1 = 0 ;
29070 PyObject * obj2 = 0 ;
29071 char * kwnames[] = {
29072 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29073 };
29074
29075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29077 if (!SWIG_IsOK(res1)) {
29078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29079 }
29080 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29081 ecode2 = SWIG_AsVal_double(obj1, &val2);
29082 if (!SWIG_IsOK(ecode2)) {
29083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29084 }
29085 arg2 = static_cast< wxDouble >(val2);
29086 ecode3 = SWIG_AsVal_double(obj2, &val3);
29087 if (!SWIG_IsOK(ecode3)) {
29088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29089 }
29090 arg3 = static_cast< wxDouble >(val3);
29091 {
72ef6efb 29092 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
29093 if (PyErr_Occurred()) SWIG_fail;
29094 }
29095 resultobj = SWIG_Py_Void();
29096 return resultobj;
29097fail:
29098 return NULL;
29099}
29100
29101
29102SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29103 PyObject *resultobj = 0;
29104 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29105 wxDouble arg2 ;
29106 void *argp1 = 0 ;
29107 int res1 = 0 ;
29108 double val2 ;
29109 int ecode2 = 0 ;
29110 PyObject * obj0 = 0 ;
29111 PyObject * obj1 = 0 ;
29112 char * kwnames[] = {
29113 (char *) "self",(char *) "angle", NULL
29114 };
29115
29116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29118 if (!SWIG_IsOK(res1)) {
29119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29120 }
29121 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29122 ecode2 = SWIG_AsVal_double(obj1, &val2);
29123 if (!SWIG_IsOK(ecode2)) {
29124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29125 }
29126 arg2 = static_cast< wxDouble >(val2);
29127 {
72ef6efb 29128 (arg1)->Rotate(arg2);
72ef6efb
RD
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 resultobj = SWIG_Py_Void();
29132 return resultobj;
29133fail:
29134 return NULL;
29135}
29136
29137
5c8c7dd3
RD
29138SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29139 PyObject *resultobj = 0;
29140 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29141 wxGraphicsMatrix *arg2 = 0 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 void *argp2 = 0 ;
29145 int res2 = 0 ;
29146 PyObject * obj0 = 0 ;
29147 PyObject * obj1 = 0 ;
29148 char * kwnames[] = {
29149 (char *) "self",(char *) "matrix", NULL
29150 };
29151
29152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29156 }
29157 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29159 if (!SWIG_IsOK(res2)) {
29160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29161 }
29162 if (!argp2) {
29163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29164 }
29165 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29166 {
29167 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29168 if (PyErr_Occurred()) SWIG_fail;
29169 }
29170 resultobj = SWIG_Py_Void();
29171 return resultobj;
29172fail:
29173 return NULL;
29174}
29175
29176
29177SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29178 PyObject *resultobj = 0;
29179 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29180 wxGraphicsMatrix *arg2 = 0 ;
29181 void *argp1 = 0 ;
29182 int res1 = 0 ;
29183 void *argp2 = 0 ;
29184 int res2 = 0 ;
29185 PyObject * obj0 = 0 ;
29186 PyObject * obj1 = 0 ;
29187 char * kwnames[] = {
29188 (char *) "self",(char *) "matrix", NULL
29189 };
29190
29191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29193 if (!SWIG_IsOK(res1)) {
29194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29195 }
29196 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29198 if (!SWIG_IsOK(res2)) {
29199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29200 }
29201 if (!argp2) {
29202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29203 }
29204 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29205 {
29206 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29207 if (PyErr_Occurred()) SWIG_fail;
29208 }
29209 resultobj = SWIG_Py_Void();
29210 return resultobj;
29211fail:
29212 return NULL;
29213}
29214
29215
29216SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29217 PyObject *resultobj = 0;
29218 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29219 wxGraphicsMatrix result;
29220 void *argp1 = 0 ;
29221 int res1 = 0 ;
29222 PyObject *swig_obj[1] ;
29223
29224 if (!args) SWIG_fail;
29225 swig_obj[0] = args;
29226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29227 if (!SWIG_IsOK(res1)) {
29228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29229 }
29230 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29231 {
29232 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29233 if (PyErr_Occurred()) SWIG_fail;
29234 }
29235 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29236 return resultobj;
29237fail:
29238 return NULL;
29239}
29240
29241
70d7cb34
RD
29242SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29243 PyObject *resultobj = 0;
29244 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29245 wxGraphicsPen *arg2 = 0 ;
29246 void *argp1 = 0 ;
29247 int res1 = 0 ;
29248 void *argp2 = 0 ;
29249 int res2 = 0 ;
29250
29251 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29255 }
29256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29257 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29258 if (!SWIG_IsOK(res2)) {
29259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29260 }
29261 if (!argp2) {
29262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29263 }
29264 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29265 {
29266 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29267 if (PyErr_Occurred()) SWIG_fail;
29268 }
29269 resultobj = SWIG_Py_Void();
29270 return resultobj;
29271fail:
29272 return NULL;
29273}
29274
29275
29276SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29277 PyObject *resultobj = 0;
29278 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29279 wxPen *arg2 = 0 ;
29280 void *argp1 = 0 ;
29281 int res1 = 0 ;
29282 void *argp2 = 0 ;
29283 int res2 = 0 ;
72ef6efb 29284
70d7cb34
RD
29285 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29287 if (!SWIG_IsOK(res1)) {
29288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29289 }
29290 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29291 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29292 if (!SWIG_IsOK(res2)) {
29293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29294 }
29295 if (!argp2) {
29296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29297 }
29298 arg2 = reinterpret_cast< wxPen * >(argp2);
29299 {
72ef6efb 29300 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 resultobj = SWIG_Py_Void();
29304 return resultobj;
29305fail:
29306 return NULL;
29307}
29308
29309
70d7cb34
RD
29310SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29311 int argc;
29312 PyObject *argv[3];
29313
29314 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29315 --argc;
29316 if (argc == 2) {
29317 int _v = 0;
29318 {
29319 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29320 _v = SWIG_CheckState(res);
29321 }
29322 if (!_v) goto check_1;
29323 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29324 }
29325check_1:
29326
29327 if (argc == 2) {
29328 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29329 }
29330
29331fail:
29332 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29333 return NULL;
29334}
29335
29336
29337SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29338 PyObject *resultobj = 0;
29339 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29340 wxGraphicsBrush *arg2 = 0 ;
29341 void *argp1 = 0 ;
29342 int res1 = 0 ;
29343 void *argp2 = 0 ;
29344 int res2 = 0 ;
29345
29346 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29348 if (!SWIG_IsOK(res1)) {
29349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29350 }
29351 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29352 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29353 if (!SWIG_IsOK(res2)) {
29354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29355 }
29356 if (!argp2) {
29357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29358 }
29359 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29360 {
29361 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
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_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29372 PyObject *resultobj = 0;
29373 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29374 wxBrush *arg2 = 0 ;
29375 void *argp1 = 0 ;
29376 int res1 = 0 ;
29377 void *argp2 = 0 ;
29378 int res2 = 0 ;
72ef6efb 29379
70d7cb34
RD
29380 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29382 if (!SWIG_IsOK(res1)) {
29383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29384 }
29385 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29386 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29387 if (!SWIG_IsOK(res2)) {
29388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29389 }
29390 if (!argp2) {
29391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29392 }
29393 arg2 = reinterpret_cast< wxBrush * >(argp2);
29394 {
72ef6efb 29395 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29396 if (PyErr_Occurred()) SWIG_fail;
29397 }
29398 resultobj = SWIG_Py_Void();
29399 return resultobj;
29400fail:
29401 return NULL;
29402}
29403
29404
70d7cb34
RD
29405SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29406 int argc;
29407 PyObject *argv[3];
72ef6efb 29408
70d7cb34
RD
29409 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29410 --argc;
29411 if (argc == 2) {
29412 int _v = 0;
29413 {
29414 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29415 _v = SWIG_CheckState(res);
29416 }
29417 if (!_v) goto check_1;
29418 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29419 }
70d7cb34
RD
29420check_1:
29421
29422 if (argc == 2) {
29423 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29424 }
70d7cb34 29425
72ef6efb 29426fail:
70d7cb34 29427 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29428 return NULL;
29429}
29430
29431
70d7cb34 29432SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29433 PyObject *resultobj = 0;
29434 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29435 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29436 void *argp1 = 0 ;
29437 int res1 = 0 ;
70d7cb34
RD
29438 void *argp2 = 0 ;
29439 int res2 = 0 ;
72ef6efb 29440
70d7cb34
RD
29441 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29443 if (!SWIG_IsOK(res1)) {
70d7cb34 29444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29445 }
29446 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29447 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29448 if (!SWIG_IsOK(res2)) {
29449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29450 }
70d7cb34
RD
29451 if (!argp2) {
29452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29453 }
70d7cb34 29454 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29455 {
70d7cb34 29456 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29457 if (PyErr_Occurred()) SWIG_fail;
29458 }
29459 resultobj = SWIG_Py_Void();
29460 return resultobj;
29461fail:
29462 return NULL;
29463}
29464
29465
70d7cb34 29466SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29467 PyObject *resultobj = 0;
29468 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29469 wxFont *arg2 = 0 ;
70d7cb34
RD
29470 wxColour const &arg3_defvalue = *wxBLACK ;
29471 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29472 void *argp1 = 0 ;
29473 int res1 = 0 ;
29474 void *argp2 = 0 ;
29475 int res2 = 0 ;
70d7cb34 29476 wxColour temp3 ;
72ef6efb 29477
70d7cb34
RD
29478 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29482 }
29483 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29484 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29485 if (!SWIG_IsOK(res2)) {
29486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29487 }
29488 if (!argp2) {
29489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29490 }
29491 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29492 if (swig_obj[2]) {
29493 {
29494 arg3 = &temp3;
29495 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29496 }
29497 }
72ef6efb 29498 {
70d7cb34 29499 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29500 if (PyErr_Occurred()) SWIG_fail;
29501 }
29502 resultobj = SWIG_Py_Void();
29503 return resultobj;
29504fail:
29505 return NULL;
29506}
29507
29508
70d7cb34
RD
29509SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29510 int argc;
29511 PyObject *argv[4];
72ef6efb 29512
70d7cb34
RD
29513 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29514 --argc;
29515 if (argc == 2) {
29516 int _v = 0;
29517 {
29518 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29519 _v = SWIG_CheckState(res);
29520 }
29521 if (!_v) goto check_1;
29522 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29523 }
70d7cb34
RD
29524check_1:
29525
29526 if ((argc >= 2) && (argc <= 3)) {
29527 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29528 }
70d7cb34 29529
72ef6efb 29530fail:
70d7cb34 29531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29532 return NULL;
29533}
29534
29535
29536SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29537 PyObject *resultobj = 0;
29538 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29539 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29540 void *argp1 = 0 ;
29541 int res1 = 0 ;
29542 void *argp2 = 0 ;
29543 int res2 = 0 ;
29544 PyObject * obj0 = 0 ;
29545 PyObject * obj1 = 0 ;
29546 char * kwnames[] = {
29547 (char *) "self",(char *) "path", NULL
29548 };
29549
29550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29552 if (!SWIG_IsOK(res1)) {
29553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29554 }
29555 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29557 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29559 }
29560 if (!argp2) {
29561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29562 }
29563 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29564 {
5c8c7dd3 29565 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 resultobj = SWIG_Py_Void();
29569 return resultobj;
29570fail:
29571 return NULL;
29572}
29573
29574
29575SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29576 PyObject *resultobj = 0;
29577 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29578 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29579 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29580 void *argp1 = 0 ;
29581 int res1 = 0 ;
29582 void *argp2 = 0 ;
29583 int res2 = 0 ;
29584 int val3 ;
29585 int ecode3 = 0 ;
29586 PyObject * obj0 = 0 ;
29587 PyObject * obj1 = 0 ;
29588 PyObject * obj2 = 0 ;
29589 char * kwnames[] = {
29590 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29591 };
29592
29593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29595 if (!SWIG_IsOK(res1)) {
29596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29597 }
29598 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29600 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29602 }
29603 if (!argp2) {
29604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29605 }
29606 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29607 if (obj2) {
29608 ecode3 = SWIG_AsVal_int(obj2, &val3);
29609 if (!SWIG_IsOK(ecode3)) {
29610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29611 }
29612 arg3 = static_cast< int >(val3);
29613 }
29614 {
5c8c7dd3 29615 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29616 if (PyErr_Occurred()) SWIG_fail;
29617 }
29618 resultobj = SWIG_Py_Void();
29619 return resultobj;
29620fail:
29621 return NULL;
29622}
29623
29624
29625SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29626 PyObject *resultobj = 0;
29627 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29628 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29629 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29630 void *argp1 = 0 ;
29631 int res1 = 0 ;
29632 void *argp2 = 0 ;
29633 int res2 = 0 ;
29634 int val3 ;
29635 int ecode3 = 0 ;
29636 PyObject * obj0 = 0 ;
29637 PyObject * obj1 = 0 ;
29638 PyObject * obj2 = 0 ;
29639 char * kwnames[] = {
29640 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29641 };
29642
29643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29645 if (!SWIG_IsOK(res1)) {
29646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29647 }
29648 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29650 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29652 }
29653 if (!argp2) {
29654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29655 }
29656 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29657 if (obj2) {
29658 ecode3 = SWIG_AsVal_int(obj2, &val3);
29659 if (!SWIG_IsOK(ecode3)) {
29660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29661 }
29662 arg3 = static_cast< int >(val3);
29663 }
29664 {
5c8c7dd3 29665 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29666 if (PyErr_Occurred()) SWIG_fail;
29667 }
29668 resultobj = SWIG_Py_Void();
29669 return resultobj;
29670fail:
29671 return NULL;
29672}
29673
29674
b39fe951 29675SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29676 PyObject *resultobj = 0;
29677 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29678 wxString *arg2 = 0 ;
29679 wxDouble arg3 ;
29680 wxDouble arg4 ;
29681 void *argp1 = 0 ;
29682 int res1 = 0 ;
29683 bool temp2 = false ;
29684 double val3 ;
29685 int ecode3 = 0 ;
29686 double val4 ;
29687 int ecode4 = 0 ;
b39fe951
RD
29688 PyObject * obj0 = 0 ;
29689 PyObject * obj1 = 0 ;
29690 PyObject * obj2 = 0 ;
29691 PyObject * obj3 = 0 ;
29692 char * kwnames[] = {
29693 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29694 };
72ef6efb 29695
b39fe951
RD
29696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29698 if (!SWIG_IsOK(res1)) {
29699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29700 }
29701 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29702 {
b39fe951 29703 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29704 if (arg2 == NULL) SWIG_fail;
29705 temp2 = true;
29706 }
b39fe951 29707 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29708 if (!SWIG_IsOK(ecode3)) {
29709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29710 }
29711 arg3 = static_cast< wxDouble >(val3);
b39fe951 29712 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29713 if (!SWIG_IsOK(ecode4)) {
29714 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29715 }
29716 arg4 = static_cast< wxDouble >(val4);
29717 {
72ef6efb 29718 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
29719 if (PyErr_Occurred()) SWIG_fail;
29720 }
29721 resultobj = SWIG_Py_Void();
29722 {
29723 if (temp2)
29724 delete arg2;
29725 }
29726 return resultobj;
29727fail:
29728 {
29729 if (temp2)
29730 delete arg2;
29731 }
29732 return NULL;
29733}
29734
29735
b39fe951 29736SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29737 PyObject *resultobj = 0;
29738 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29739 wxString *arg2 = 0 ;
29740 wxDouble arg3 ;
29741 wxDouble arg4 ;
29742 wxDouble arg5 ;
29743 void *argp1 = 0 ;
29744 int res1 = 0 ;
29745 bool temp2 = false ;
29746 double val3 ;
29747 int ecode3 = 0 ;
29748 double val4 ;
29749 int ecode4 = 0 ;
29750 double val5 ;
29751 int ecode5 = 0 ;
b39fe951
RD
29752 PyObject * obj0 = 0 ;
29753 PyObject * obj1 = 0 ;
29754 PyObject * obj2 = 0 ;
29755 PyObject * obj3 = 0 ;
29756 PyObject * obj4 = 0 ;
29757 char * kwnames[] = {
29758 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29759 };
72ef6efb 29760
b39fe951
RD
29761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29763 if (!SWIG_IsOK(res1)) {
b39fe951 29764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29765 }
29766 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29767 {
b39fe951 29768 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29769 if (arg2 == NULL) SWIG_fail;
29770 temp2 = true;
29771 }
b39fe951 29772 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29773 if (!SWIG_IsOK(ecode3)) {
b39fe951 29774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29775 }
29776 arg3 = static_cast< wxDouble >(val3);
b39fe951 29777 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29778 if (!SWIG_IsOK(ecode4)) {
b39fe951 29779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29780 }
29781 arg4 = static_cast< wxDouble >(val4);
b39fe951 29782 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29783 if (!SWIG_IsOK(ecode5)) {
b39fe951 29784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29785 }
29786 arg5 = static_cast< wxDouble >(val5);
29787 {
72ef6efb 29788 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29789 if (PyErr_Occurred()) SWIG_fail;
29790 }
29791 resultobj = SWIG_Py_Void();
29792 {
29793 if (temp2)
29794 delete arg2;
29795 }
29796 return resultobj;
29797fail:
29798 {
29799 if (temp2)
29800 delete arg2;
29801 }
29802 return NULL;
29803}
29804
29805
be68621e 29806SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29807 PyObject *resultobj = 0;
29808 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29809 wxString *arg2 = 0 ;
29810 wxDouble *arg3 = (wxDouble *) 0 ;
29811 wxDouble *arg4 = (wxDouble *) 0 ;
29812 wxDouble *arg5 = (wxDouble *) 0 ;
29813 wxDouble *arg6 = (wxDouble *) 0 ;
29814 void *argp1 = 0 ;
29815 int res1 = 0 ;
29816 bool temp2 = false ;
29817 wxDouble temp3 ;
29818 int res3 = SWIG_TMPOBJ ;
29819 wxDouble temp4 ;
29820 int res4 = SWIG_TMPOBJ ;
29821 wxDouble temp5 ;
29822 int res5 = SWIG_TMPOBJ ;
29823 wxDouble temp6 ;
29824 int res6 = SWIG_TMPOBJ ;
29825 PyObject * obj0 = 0 ;
29826 PyObject * obj1 = 0 ;
29827 char * kwnames[] = {
29828 (char *) "self",(char *) "text", NULL
29829 };
29830
29831 arg3 = &temp3;
29832 arg4 = &temp4;
29833 arg5 = &temp5;
29834 arg6 = &temp6;
be68621e 29835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29837 if (!SWIG_IsOK(res1)) {
be68621e 29838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29839 }
29840 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29841 {
29842 arg2 = wxString_in_helper(obj1);
29843 if (arg2 == NULL) SWIG_fail;
29844 temp2 = true;
29845 }
29846 {
72ef6efb 29847 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29848 if (PyErr_Occurred()) SWIG_fail;
29849 }
29850 resultobj = SWIG_Py_Void();
29851 if (SWIG_IsTmpObj(res3)) {
29852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29853 } else {
29854 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29856 }
29857 if (SWIG_IsTmpObj(res4)) {
29858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29859 } else {
29860 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29862 }
29863 if (SWIG_IsTmpObj(res5)) {
29864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29865 } else {
29866 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29868 }
29869 if (SWIG_IsTmpObj(res6)) {
29870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29871 } else {
29872 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29874 }
29875 {
29876 if (temp2)
29877 delete arg2;
29878 }
29879 return resultobj;
29880fail:
29881 {
29882 if (temp2)
29883 delete arg2;
29884 }
29885 return NULL;
29886}
29887
29888
be68621e
RD
29889SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29890 PyObject *resultobj = 0;
29891 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29892 wxString *arg2 = 0 ;
29893 PyObject *result = 0 ;
29894 void *argp1 = 0 ;
29895 int res1 = 0 ;
29896 bool temp2 = false ;
29897 PyObject * obj0 = 0 ;
29898 PyObject * obj1 = 0 ;
29899 char * kwnames[] = {
29900 (char *) "self",(char *) "text", NULL
29901 };
29902
29903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29905 if (!SWIG_IsOK(res1)) {
29906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29907 }
29908 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29909 {
29910 arg2 = wxString_in_helper(obj1);
29911 if (arg2 == NULL) SWIG_fail;
29912 temp2 = true;
29913 }
29914 {
29915 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29916 if (PyErr_Occurred()) SWIG_fail;
29917 }
29918 resultobj = result;
29919 {
29920 if (temp2)
29921 delete arg2;
29922 }
29923 return resultobj;
29924fail:
29925 {
29926 if (temp2)
29927 delete arg2;
29928 }
29929 return NULL;
29930}
29931
29932
72ef6efb
RD
29933SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29934 PyObject *resultobj = 0;
29935 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29936 wxString *arg2 = 0 ;
b39fe951 29937 wxArrayDouble result;
72ef6efb
RD
29938 void *argp1 = 0 ;
29939 int res1 = 0 ;
29940 bool temp2 = false ;
72ef6efb
RD
29941 PyObject * obj0 = 0 ;
29942 PyObject * obj1 = 0 ;
72ef6efb 29943 char * kwnames[] = {
b39fe951 29944 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29945 };
29946
b39fe951 29947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29949 if (!SWIG_IsOK(res1)) {
b39fe951 29950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29951 }
29952 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29953 {
29954 arg2 = wxString_in_helper(obj1);
29955 if (arg2 == NULL) SWIG_fail;
29956 temp2 = true;
29957 }
72ef6efb 29958 {
b39fe951 29959 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29960 if (PyErr_Occurred()) SWIG_fail;
29961 }
b39fe951
RD
29962 {
29963 resultobj = wxArrayDouble2PyList_helper(result);
29964 }
72ef6efb
RD
29965 {
29966 if (temp2)
29967 delete arg2;
29968 }
29969 return resultobj;
29970fail:
29971 {
29972 if (temp2)
29973 delete arg2;
29974 }
29975 return NULL;
29976}
29977
29978
29979SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29980 PyObject *resultobj = 0;
29981 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29982 wxBitmap *arg2 = 0 ;
29983 wxDouble arg3 ;
29984 wxDouble arg4 ;
29985 wxDouble arg5 ;
29986 wxDouble arg6 ;
29987 void *argp1 = 0 ;
29988 int res1 = 0 ;
29989 void *argp2 = 0 ;
29990 int res2 = 0 ;
29991 double val3 ;
29992 int ecode3 = 0 ;
29993 double val4 ;
29994 int ecode4 = 0 ;
29995 double val5 ;
29996 int ecode5 = 0 ;
29997 double val6 ;
29998 int ecode6 = 0 ;
29999 PyObject * obj0 = 0 ;
30000 PyObject * obj1 = 0 ;
30001 PyObject * obj2 = 0 ;
30002 PyObject * obj3 = 0 ;
30003 PyObject * obj4 = 0 ;
30004 PyObject * obj5 = 0 ;
30005 char * kwnames[] = {
30006 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30007 };
30008
30009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30011 if (!SWIG_IsOK(res1)) {
30012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30013 }
30014 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30016 if (!SWIG_IsOK(res2)) {
30017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30018 }
30019 if (!argp2) {
30020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30021 }
30022 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30023 ecode3 = SWIG_AsVal_double(obj2, &val3);
30024 if (!SWIG_IsOK(ecode3)) {
30025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30026 }
30027 arg3 = static_cast< wxDouble >(val3);
30028 ecode4 = SWIG_AsVal_double(obj3, &val4);
30029 if (!SWIG_IsOK(ecode4)) {
30030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30031 }
30032 arg4 = static_cast< wxDouble >(val4);
30033 ecode5 = SWIG_AsVal_double(obj4, &val5);
30034 if (!SWIG_IsOK(ecode5)) {
30035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30036 }
30037 arg5 = static_cast< wxDouble >(val5);
30038 ecode6 = SWIG_AsVal_double(obj5, &val6);
30039 if (!SWIG_IsOK(ecode6)) {
30040 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30041 }
30042 arg6 = static_cast< wxDouble >(val6);
30043 {
72ef6efb 30044 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30045 if (PyErr_Occurred()) SWIG_fail;
30046 }
30047 resultobj = SWIG_Py_Void();
30048 return resultobj;
30049fail:
30050 return NULL;
30051}
30052
30053
30054SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30055 PyObject *resultobj = 0;
30056 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30057 wxIcon *arg2 = 0 ;
30058 wxDouble arg3 ;
30059 wxDouble arg4 ;
30060 wxDouble arg5 ;
30061 wxDouble arg6 ;
30062 void *argp1 = 0 ;
30063 int res1 = 0 ;
30064 void *argp2 = 0 ;
30065 int res2 = 0 ;
30066 double val3 ;
30067 int ecode3 = 0 ;
30068 double val4 ;
30069 int ecode4 = 0 ;
30070 double val5 ;
30071 int ecode5 = 0 ;
70d7cb34
RD
30072 double val6 ;
30073 int ecode6 = 0 ;
30074 PyObject * obj0 = 0 ;
30075 PyObject * obj1 = 0 ;
30076 PyObject * obj2 = 0 ;
30077 PyObject * obj3 = 0 ;
30078 PyObject * obj4 = 0 ;
30079 PyObject * obj5 = 0 ;
30080 char * kwnames[] = {
30081 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30082 };
30083
30084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30086 if (!SWIG_IsOK(res1)) {
30087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30088 }
30089 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30091 if (!SWIG_IsOK(res2)) {
30092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30093 }
30094 if (!argp2) {
30095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30096 }
30097 arg2 = reinterpret_cast< wxIcon * >(argp2);
30098 ecode3 = SWIG_AsVal_double(obj2, &val3);
30099 if (!SWIG_IsOK(ecode3)) {
30100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30101 }
30102 arg3 = static_cast< wxDouble >(val3);
30103 ecode4 = SWIG_AsVal_double(obj3, &val4);
30104 if (!SWIG_IsOK(ecode4)) {
30105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30106 }
30107 arg4 = static_cast< wxDouble >(val4);
30108 ecode5 = SWIG_AsVal_double(obj4, &val5);
30109 if (!SWIG_IsOK(ecode5)) {
30110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30111 }
30112 arg5 = static_cast< wxDouble >(val5);
30113 ecode6 = SWIG_AsVal_double(obj5, &val6);
30114 if (!SWIG_IsOK(ecode6)) {
30115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30116 }
30117 arg6 = static_cast< wxDouble >(val6);
30118 {
30119 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30120 if (PyErr_Occurred()) SWIG_fail;
30121 }
30122 resultobj = SWIG_Py_Void();
30123 return resultobj;
30124fail:
30125 return NULL;
30126}
30127
30128
30129SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30130 PyObject *resultobj = 0;
30131 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30132 wxDouble arg2 ;
30133 wxDouble arg3 ;
30134 wxDouble arg4 ;
30135 wxDouble arg5 ;
30136 void *argp1 = 0 ;
30137 int res1 = 0 ;
30138 double val2 ;
30139 int ecode2 = 0 ;
30140 double val3 ;
30141 int ecode3 = 0 ;
30142 double val4 ;
30143 int ecode4 = 0 ;
30144 double val5 ;
30145 int ecode5 = 0 ;
30146 PyObject * obj0 = 0 ;
30147 PyObject * obj1 = 0 ;
30148 PyObject * obj2 = 0 ;
30149 PyObject * obj3 = 0 ;
30150 PyObject * obj4 = 0 ;
30151 char * kwnames[] = {
30152 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30153 };
30154
30155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30157 if (!SWIG_IsOK(res1)) {
30158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30159 }
30160 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30161 ecode2 = SWIG_AsVal_double(obj1, &val2);
30162 if (!SWIG_IsOK(ecode2)) {
30163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30164 }
30165 arg2 = static_cast< wxDouble >(val2);
30166 ecode3 = SWIG_AsVal_double(obj2, &val3);
30167 if (!SWIG_IsOK(ecode3)) {
30168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30169 }
30170 arg3 = static_cast< wxDouble >(val3);
30171 ecode4 = SWIG_AsVal_double(obj3, &val4);
30172 if (!SWIG_IsOK(ecode4)) {
30173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30174 }
30175 arg4 = static_cast< wxDouble >(val4);
30176 ecode5 = SWIG_AsVal_double(obj4, &val5);
30177 if (!SWIG_IsOK(ecode5)) {
30178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30179 }
30180 arg5 = static_cast< wxDouble >(val5);
30181 {
30182 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_Py_Void();
30186 return resultobj;
30187fail:
30188 return NULL;
30189}
30190
30191
30192SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30193 PyObject *resultobj = 0;
30194 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30195 size_t arg2 ;
30196 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30197 void *argp1 = 0 ;
30198 int res1 = 0 ;
30199 PyObject * obj0 = 0 ;
30200 PyObject * obj1 = 0 ;
30201 char * kwnames[] = {
30202 (char *) "self",(char *) "points", NULL
30203 };
30204
30205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30207 if (!SWIG_IsOK(res1)) {
30208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30209 }
30210 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30211 {
30212 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30213 if (arg3 == NULL) SWIG_fail;
30214 }
30215 {
30216 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30217 if (PyErr_Occurred()) SWIG_fail;
30218 }
30219 resultobj = SWIG_Py_Void();
30220 {
30221 if (arg3) delete [] arg3;
30222 }
30223 return resultobj;
30224fail:
30225 {
30226 if (arg3) delete [] arg3;
30227 }
30228 return NULL;
30229}
30230
30231
30232SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30233 PyObject *resultobj = 0;
30234 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30235 PyObject *arg2 = (PyObject *) 0 ;
30236 PyObject *arg3 = (PyObject *) 0 ;
30237 void *argp1 = 0 ;
30238 int res1 = 0 ;
30239 PyObject * obj0 = 0 ;
30240 PyObject * obj1 = 0 ;
30241 PyObject * obj2 = 0 ;
30242 char * kwnames[] = {
30243 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30244 };
30245
30246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30248 if (!SWIG_IsOK(res1)) {
30249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30250 }
30251 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30252 arg2 = obj1;
30253 arg3 = obj2;
30254 {
30255 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 resultobj = SWIG_Py_Void();
30259 return resultobj;
30260fail:
30261 return NULL;
30262}
30263
30264
30265SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30266 PyObject *resultobj = 0;
30267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30268 size_t arg2 ;
30269 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 30270 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
30271 void *argp1 = 0 ;
30272 int res1 = 0 ;
30273 int val4 ;
30274 int ecode4 = 0 ;
30275 PyObject * obj0 = 0 ;
30276 PyObject * obj1 = 0 ;
30277 PyObject * obj2 = 0 ;
30278 char * kwnames[] = {
30279 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30280 };
30281
30282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30284 if (!SWIG_IsOK(res1)) {
30285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30286 }
30287 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30288 {
30289 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30290 if (arg3 == NULL) SWIG_fail;
30291 }
30292 if (obj2) {
30293 ecode4 = SWIG_AsVal_int(obj2, &val4);
30294 if (!SWIG_IsOK(ecode4)) {
30295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30296 }
30297 arg4 = static_cast< int >(val4);
30298 }
30299 {
30300 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30301 if (PyErr_Occurred()) SWIG_fail;
30302 }
30303 resultobj = SWIG_Py_Void();
30304 {
30305 if (arg3) delete [] arg3;
30306 }
30307 return resultobj;
30308fail:
30309 {
30310 if (arg3) delete [] arg3;
30311 }
30312 return NULL;
30313}
30314
30315
30316SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30317 PyObject *resultobj = 0;
30318 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30319 wxDouble arg2 ;
30320 wxDouble arg3 ;
30321 wxDouble arg4 ;
30322 wxDouble arg5 ;
30323 void *argp1 = 0 ;
30324 int res1 = 0 ;
30325 double val2 ;
30326 int ecode2 = 0 ;
30327 double val3 ;
30328 int ecode3 = 0 ;
30329 double val4 ;
30330 int ecode4 = 0 ;
30331 double val5 ;
30332 int ecode5 = 0 ;
30333 PyObject * obj0 = 0 ;
30334 PyObject * obj1 = 0 ;
30335 PyObject * obj2 = 0 ;
30336 PyObject * obj3 = 0 ;
30337 PyObject * obj4 = 0 ;
30338 char * kwnames[] = {
30339 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30340 };
30341
30342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30344 if (!SWIG_IsOK(res1)) {
30345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30346 }
30347 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30348 ecode2 = SWIG_AsVal_double(obj1, &val2);
30349 if (!SWIG_IsOK(ecode2)) {
30350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30351 }
30352 arg2 = static_cast< wxDouble >(val2);
30353 ecode3 = SWIG_AsVal_double(obj2, &val3);
30354 if (!SWIG_IsOK(ecode3)) {
30355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30356 }
30357 arg3 = static_cast< wxDouble >(val3);
30358 ecode4 = SWIG_AsVal_double(obj3, &val4);
30359 if (!SWIG_IsOK(ecode4)) {
30360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30361 }
30362 arg4 = static_cast< wxDouble >(val4);
30363 ecode5 = SWIG_AsVal_double(obj4, &val5);
30364 if (!SWIG_IsOK(ecode5)) {
30365 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30366 }
30367 arg5 = static_cast< wxDouble >(val5);
30368 {
30369 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30370 if (PyErr_Occurred()) SWIG_fail;
30371 }
30372 resultobj = SWIG_Py_Void();
30373 return resultobj;
30374fail:
30375 return NULL;
30376}
30377
30378
30379SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30380 PyObject *resultobj = 0;
30381 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30382 wxDouble arg2 ;
30383 wxDouble arg3 ;
30384 wxDouble arg4 ;
30385 wxDouble arg5 ;
30386 void *argp1 = 0 ;
30387 int res1 = 0 ;
30388 double val2 ;
30389 int ecode2 = 0 ;
30390 double val3 ;
30391 int ecode3 = 0 ;
30392 double val4 ;
30393 int ecode4 = 0 ;
30394 double val5 ;
30395 int ecode5 = 0 ;
72ef6efb
RD
30396 PyObject * obj0 = 0 ;
30397 PyObject * obj1 = 0 ;
30398 PyObject * obj2 = 0 ;
30399 PyObject * obj3 = 0 ;
30400 PyObject * obj4 = 0 ;
72ef6efb 30401 char * kwnames[] = {
70d7cb34 30402 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30403 };
30404
70d7cb34 30405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30407 if (!SWIG_IsOK(res1)) {
70d7cb34 30408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30409 }
30410 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30411 ecode2 = SWIG_AsVal_double(obj1, &val2);
30412 if (!SWIG_IsOK(ecode2)) {
30413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30414 }
30415 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30416 ecode3 = SWIG_AsVal_double(obj2, &val3);
30417 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30419 }
30420 arg3 = static_cast< wxDouble >(val3);
30421 ecode4 = SWIG_AsVal_double(obj3, &val4);
30422 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30424 }
30425 arg4 = static_cast< wxDouble >(val4);
30426 ecode5 = SWIG_AsVal_double(obj4, &val5);
30427 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30429 }
30430 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30431 {
70d7cb34 30432 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30433 if (PyErr_Occurred()) SWIG_fail;
30434 }
30435 resultobj = SWIG_Py_Void();
30436 return resultobj;
30437fail:
30438 return NULL;
30439}
30440
30441
70d7cb34 30442SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30443 PyObject *resultobj = 0;
30444 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30445 wxDouble arg2 ;
30446 wxDouble arg3 ;
30447 wxDouble arg4 ;
30448 wxDouble arg5 ;
70d7cb34 30449 wxDouble arg6 ;
72ef6efb
RD
30450 void *argp1 = 0 ;
30451 int res1 = 0 ;
30452 double val2 ;
30453 int ecode2 = 0 ;
30454 double val3 ;
30455 int ecode3 = 0 ;
30456 double val4 ;
30457 int ecode4 = 0 ;
30458 double val5 ;
30459 int ecode5 = 0 ;
70d7cb34
RD
30460 double val6 ;
30461 int ecode6 = 0 ;
72ef6efb
RD
30462 PyObject * obj0 = 0 ;
30463 PyObject * obj1 = 0 ;
30464 PyObject * obj2 = 0 ;
30465 PyObject * obj3 = 0 ;
30466 PyObject * obj4 = 0 ;
70d7cb34 30467 PyObject * obj5 = 0 ;
72ef6efb 30468 char * kwnames[] = {
70d7cb34 30469 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30470 };
30471
70d7cb34 30472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30474 if (!SWIG_IsOK(res1)) {
70d7cb34 30475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30476 }
30477 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30478 ecode2 = SWIG_AsVal_double(obj1, &val2);
30479 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30481 }
30482 arg2 = static_cast< wxDouble >(val2);
30483 ecode3 = SWIG_AsVal_double(obj2, &val3);
30484 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30486 }
30487 arg3 = static_cast< wxDouble >(val3);
30488 ecode4 = SWIG_AsVal_double(obj3, &val4);
30489 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30490 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30491 }
30492 arg4 = static_cast< wxDouble >(val4);
30493 ecode5 = SWIG_AsVal_double(obj4, &val5);
30494 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30496 }
30497 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30498 ecode6 = SWIG_AsVal_double(obj5, &val6);
30499 if (!SWIG_IsOK(ecode6)) {
30500 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30501 }
30502 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30503 {
70d7cb34 30504 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30505 if (PyErr_Occurred()) SWIG_fail;
30506 }
30507 resultobj = SWIG_Py_Void();
30508 return resultobj;
30509fail:
30510 return NULL;
30511}
30512
30513
70d7cb34 30514SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30515 PyObject *resultobj = 0;
30516 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30517 bool result;
72ef6efb
RD
30518 void *argp1 = 0 ;
30519 int res1 = 0 ;
70d7cb34 30520 PyObject *swig_obj[1] ;
72ef6efb 30521
70d7cb34
RD
30522 if (!args) SWIG_fail;
30523 swig_obj[0] = args;
30524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30525 if (!SWIG_IsOK(res1)) {
70d7cb34 30526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30527 }
30528 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30529 {
70d7cb34
RD
30530 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30531 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30532 }
72ef6efb 30533 {
70d7cb34
RD
30534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30535 }
30536 return resultobj;
30537fail:
30538 return NULL;
30539}
30540
30541
30542SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30543 PyObject *obj;
30544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30545 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30546 return SWIG_Py_Void();
30547}
30548
30549SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30550 PyObject *resultobj = 0;
30551 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30552 void *argp1 = 0 ;
30553 int res1 = 0 ;
30554 PyObject *swig_obj[1] ;
30555
30556 if (!args) SWIG_fail;
30557 swig_obj[0] = args;
30558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30559 if (!SWIG_IsOK(res1)) {
30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30561 }
30562 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30563 {
30564 delete arg1;
30565
72ef6efb
RD
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 resultobj = SWIG_Py_Void();
70d7cb34
RD
30569 return resultobj;
30570fail:
30571 return NULL;
30572}
30573
30574
30575SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30576 PyObject *resultobj = 0;
30577 wxGraphicsRenderer *result = 0 ;
30578
30579 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30580 {
70d7cb34
RD
30581 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30585 return resultobj;
30586fail:
30587 return NULL;
30588}
30589
30590
30591SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30592 PyObject *resultobj = 0;
30593 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30594 wxWindowDC *arg2 = 0 ;
30595 wxGraphicsContext *result = 0 ;
30596 void *argp1 = 0 ;
30597 int res1 = 0 ;
30598 void *argp2 = 0 ;
30599 int res2 = 0 ;
30600
30601 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30603 if (!SWIG_IsOK(res1)) {
30604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30605 }
30606 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30607 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30608 if (!SWIG_IsOK(res2)) {
30609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30610 }
30611 if (!argp2) {
30612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30613 }
30614 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30615 {
30616 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30617 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30618 }
70d7cb34 30619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30620 return resultobj;
30621fail:
70d7cb34
RD
30622 return NULL;
30623}
30624
30625
30626SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30627 PyObject *resultobj = 0;
30628 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30629 wxWindow *arg2 = (wxWindow *) 0 ;
30630 wxGraphicsContext *result = 0 ;
30631 void *argp1 = 0 ;
30632 int res1 = 0 ;
30633 void *argp2 = 0 ;
30634 int res2 = 0 ;
30635
30636 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30638 if (!SWIG_IsOK(res1)) {
30639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30640 }
30641 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30642 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30643 if (!SWIG_IsOK(res2)) {
30644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30645 }
30646 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30647 {
70d7cb34
RD
30648 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30649 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30650 }
70d7cb34
RD
30651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30652 return resultobj;
30653fail:
72ef6efb
RD
30654 return NULL;
30655}
30656
30657
70d7cb34
RD
30658SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30659 int argc;
30660 PyObject *argv[3];
30661
30662 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30663 --argc;
30664 if (argc == 2) {
30665 int _v = 0;
30666 {
30667 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30668 _v = SWIG_CheckState(res);
30669 }
30670 if (!_v) goto check_1;
30671 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30672 }
30673check_1:
30674
30675 if (argc == 2) {
30676 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30677 }
30678
30679fail:
30680 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30681 return NULL;
30682}
30683
30684
30685SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30686 PyObject *resultobj = 0;
70d7cb34
RD
30687 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30688 void *arg2 = (void *) 0 ;
30689 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30690 void *argp1 = 0 ;
30691 int res1 = 0 ;
70d7cb34 30692 int res2 ;
b39fe951
RD
30693 PyObject * obj0 = 0 ;
30694 PyObject * obj1 = 0 ;
b39fe951 30695 char * kwnames[] = {
70d7cb34 30696 (char *) "self",(char *) "context", NULL
b39fe951 30697 };
72ef6efb 30698
70d7cb34
RD
30699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30701 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30703 }
30704 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30705 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30706 if (!SWIG_IsOK(res2)) {
30707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30708 }
72ef6efb 30709 {
70d7cb34 30710 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30711 if (PyErr_Occurred()) SWIG_fail;
30712 }
70d7cb34 30713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30714 return resultobj;
30715fail:
30716 return NULL;
30717}
30718
30719
70d7cb34 30720SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30721 PyObject *resultobj = 0;
70d7cb34
RD
30722 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30723 void *arg2 = (void *) 0 ;
30724 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30725 void *argp1 = 0 ;
30726 int res1 = 0 ;
70d7cb34 30727 int res2 ;
72ef6efb
RD
30728 PyObject * obj0 = 0 ;
30729 PyObject * obj1 = 0 ;
72ef6efb 30730 char * kwnames[] = {
70d7cb34 30731 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30732 };
30733
70d7cb34
RD
30734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) 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_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30738 }
70d7cb34
RD
30739 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30740 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30741 if (!SWIG_IsOK(res2)) {
30742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30743 }
30744 {
70d7cb34 30745 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30746 if (PyErr_Occurred()) SWIG_fail;
30747 }
70d7cb34 30748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30749 return resultobj;
30750fail:
70d7cb34
RD
30751 return NULL;
30752}
30753
30754
30755SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30756 PyObject *resultobj = 0;
30757 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30758 wxGraphicsPath result;
70d7cb34
RD
30759 void *argp1 = 0 ;
30760 int res1 = 0 ;
30761 PyObject *swig_obj[1] ;
30762
30763 if (!args) SWIG_fail;
30764 swig_obj[0] = args;
30765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30766 if (!SWIG_IsOK(res1)) {
30767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30768 }
30769 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30770 {
5c8c7dd3 30771 result = (arg1)->CreatePath();
70d7cb34 30772 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30773 }
5c8c7dd3 30774 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30775 return resultobj;
30776fail:
72ef6efb
RD
30777 return NULL;
30778}
30779
30780
70d7cb34 30781SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30782 PyObject *resultobj = 0;
70d7cb34
RD
30783 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30784 wxDouble arg2 = (wxDouble) 1.0 ;
30785 wxDouble arg3 = (wxDouble) 0.0 ;
30786 wxDouble arg4 = (wxDouble) 0.0 ;
30787 wxDouble arg5 = (wxDouble) 1.0 ;
30788 wxDouble arg6 = (wxDouble) 0.0 ;
30789 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30790 wxGraphicsMatrix result;
72ef6efb
RD
30791 void *argp1 = 0 ;
30792 int res1 = 0 ;
30793 double val2 ;
30794 int ecode2 = 0 ;
30795 double val3 ;
30796 int ecode3 = 0 ;
30797 double val4 ;
30798 int ecode4 = 0 ;
30799 double val5 ;
30800 int ecode5 = 0 ;
70d7cb34
RD
30801 double val6 ;
30802 int ecode6 = 0 ;
30803 double val7 ;
30804 int ecode7 = 0 ;
72ef6efb
RD
30805 PyObject * obj0 = 0 ;
30806 PyObject * obj1 = 0 ;
30807 PyObject * obj2 = 0 ;
30808 PyObject * obj3 = 0 ;
30809 PyObject * obj4 = 0 ;
70d7cb34
RD
30810 PyObject * obj5 = 0 ;
30811 PyObject * obj6 = 0 ;
72ef6efb 30812 char * kwnames[] = {
70d7cb34 30813 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30814 };
30815
70d7cb34
RD
30816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30818 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30820 }
30821 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30822 if (obj1) {
30823 ecode2 = SWIG_AsVal_double(obj1, &val2);
30824 if (!SWIG_IsOK(ecode2)) {
30825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30826 }
30827 arg2 = static_cast< wxDouble >(val2);
30828 }
30829 if (obj2) {
30830 ecode3 = SWIG_AsVal_double(obj2, &val3);
30831 if (!SWIG_IsOK(ecode3)) {
30832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30833 }
30834 arg3 = static_cast< wxDouble >(val3);
30835 }
30836 if (obj3) {
30837 ecode4 = SWIG_AsVal_double(obj3, &val4);
30838 if (!SWIG_IsOK(ecode4)) {
30839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30840 }
30841 arg4 = static_cast< wxDouble >(val4);
30842 }
30843 if (obj4) {
30844 ecode5 = SWIG_AsVal_double(obj4, &val5);
30845 if (!SWIG_IsOK(ecode5)) {
30846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30847 }
30848 arg5 = static_cast< wxDouble >(val5);
30849 }
30850 if (obj5) {
30851 ecode6 = SWIG_AsVal_double(obj5, &val6);
30852 if (!SWIG_IsOK(ecode6)) {
30853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30854 }
30855 arg6 = static_cast< wxDouble >(val6);
30856 }
30857 if (obj6) {
30858 ecode7 = SWIG_AsVal_double(obj6, &val7);
30859 if (!SWIG_IsOK(ecode7)) {
30860 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30861 }
30862 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30863 }
72ef6efb 30864 {
5c8c7dd3 30865 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
5c8c7dd3 30868 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30869 return resultobj;
30870fail:
30871 return NULL;
30872}
30873
30874
70d7cb34 30875SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30876 PyObject *resultobj = 0;
70d7cb34
RD
30877 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30878 wxPen *arg2 = 0 ;
30879 wxGraphicsPen result;
30880 void *argp1 = 0 ;
30881 int res1 = 0 ;
30882 void *argp2 = 0 ;
30883 int res2 = 0 ;
30884 PyObject * obj0 = 0 ;
30885 PyObject * obj1 = 0 ;
30886 char * kwnames[] = {
30887 (char *) "self",(char *) "pen", NULL
30888 };
30889
30890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30892 if (!SWIG_IsOK(res1)) {
30893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30894 }
30895 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30897 if (!SWIG_IsOK(res2)) {
30898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30899 }
30900 if (!argp2) {
30901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30902 }
30903 arg2 = reinterpret_cast< wxPen * >(argp2);
30904 {
30905 result = (arg1)->CreatePen((wxPen const &)*arg2);
30906 if (PyErr_Occurred()) SWIG_fail;
30907 }
30908 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30909 return resultobj;
30910fail:
30911 return NULL;
30912}
30913
30914
30915SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30916 PyObject *resultobj = 0;
30917 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30918 wxBrush *arg2 = 0 ;
30919 wxGraphicsBrush result;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 void *argp2 = 0 ;
30923 int res2 = 0 ;
30924 PyObject * obj0 = 0 ;
30925 PyObject * obj1 = 0 ;
30926 char * kwnames[] = {
30927 (char *) "self",(char *) "brush", NULL
30928 };
30929
30930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30932 if (!SWIG_IsOK(res1)) {
30933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30934 }
30935 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30937 if (!SWIG_IsOK(res2)) {
30938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30939 }
30940 if (!argp2) {
30941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30942 }
30943 arg2 = reinterpret_cast< wxBrush * >(argp2);
30944 {
30945 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30946 if (PyErr_Occurred()) SWIG_fail;
30947 }
30948 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30949 return resultobj;
30950fail:
30951 return NULL;
30952}
30953
30954
30955SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30956 PyObject *resultobj = 0;
30957 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30958 wxDouble arg2 ;
30959 wxDouble arg3 ;
30960 wxDouble arg4 ;
30961 wxDouble arg5 ;
70d7cb34
RD
30962 wxColour *arg6 = 0 ;
30963 wxColour *arg7 = 0 ;
30964 wxGraphicsBrush result;
72ef6efb
RD
30965 void *argp1 = 0 ;
30966 int res1 = 0 ;
30967 double val2 ;
30968 int ecode2 = 0 ;
30969 double val3 ;
30970 int ecode3 = 0 ;
30971 double val4 ;
30972 int ecode4 = 0 ;
30973 double val5 ;
30974 int ecode5 = 0 ;
70d7cb34
RD
30975 wxColour temp6 ;
30976 wxColour temp7 ;
72ef6efb
RD
30977 PyObject * obj0 = 0 ;
30978 PyObject * obj1 = 0 ;
30979 PyObject * obj2 = 0 ;
30980 PyObject * obj3 = 0 ;
30981 PyObject * obj4 = 0 ;
70d7cb34
RD
30982 PyObject * obj5 = 0 ;
30983 PyObject * obj6 = 0 ;
72ef6efb 30984 char * kwnames[] = {
70d7cb34 30985 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30986 };
30987
70d7cb34
RD
30988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30990 if (!SWIG_IsOK(res1)) {
70d7cb34 30991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30992 }
70d7cb34 30993 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30994 ecode2 = SWIG_AsVal_double(obj1, &val2);
30995 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30997 }
30998 arg2 = static_cast< wxDouble >(val2);
30999 ecode3 = SWIG_AsVal_double(obj2, &val3);
31000 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31002 }
31003 arg3 = static_cast< wxDouble >(val3);
31004 ecode4 = SWIG_AsVal_double(obj3, &val4);
31005 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31007 }
31008 arg4 = static_cast< wxDouble >(val4);
31009 ecode5 = SWIG_AsVal_double(obj4, &val5);
31010 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31012 }
31013 arg5 = static_cast< wxDouble >(val5);
31014 {
70d7cb34
RD
31015 arg6 = &temp6;
31016 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31017 }
31018 {
31019 arg7 = &temp7;
31020 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31021 }
31022 {
31023 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
31024 if (PyErr_Occurred()) SWIG_fail;
31025 }
70d7cb34 31026 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31027 return resultobj;
31028fail:
31029 return NULL;
31030}
31031
31032
70d7cb34 31033SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 31034 PyObject *resultobj = 0;
70d7cb34 31035 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
31036 wxDouble arg2 ;
31037 wxDouble arg3 ;
31038 wxDouble arg4 ;
31039 wxDouble arg5 ;
31040 wxDouble arg6 ;
70d7cb34
RD
31041 wxColour *arg7 = 0 ;
31042 wxColour *arg8 = 0 ;
31043 wxGraphicsBrush result;
72ef6efb
RD
31044 void *argp1 = 0 ;
31045 int res1 = 0 ;
31046 double val2 ;
31047 int ecode2 = 0 ;
31048 double val3 ;
31049 int ecode3 = 0 ;
31050 double val4 ;
31051 int ecode4 = 0 ;
31052 double val5 ;
31053 int ecode5 = 0 ;
31054 double val6 ;
31055 int ecode6 = 0 ;
70d7cb34
RD
31056 wxColour temp7 ;
31057 wxColour temp8 ;
72ef6efb
RD
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 PyObject * obj2 = 0 ;
31061 PyObject * obj3 = 0 ;
31062 PyObject * obj4 = 0 ;
31063 PyObject * obj5 = 0 ;
70d7cb34
RD
31064 PyObject * obj6 = 0 ;
31065 PyObject * obj7 = 0 ;
72ef6efb 31066 char * kwnames[] = {
70d7cb34 31067 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
31068 };
31069
70d7cb34
RD
31070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 31072 if (!SWIG_IsOK(res1)) {
70d7cb34 31073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 31074 }
70d7cb34 31075 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
31076 ecode2 = SWIG_AsVal_double(obj1, &val2);
31077 if (!SWIG_IsOK(ecode2)) {
70d7cb34 31078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
31079 }
31080 arg2 = static_cast< wxDouble >(val2);
31081 ecode3 = SWIG_AsVal_double(obj2, &val3);
31082 if (!SWIG_IsOK(ecode3)) {
70d7cb34 31083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
31084 }
31085 arg3 = static_cast< wxDouble >(val3);
31086 ecode4 = SWIG_AsVal_double(obj3, &val4);
31087 if (!SWIG_IsOK(ecode4)) {
70d7cb34 31088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
31089 }
31090 arg4 = static_cast< wxDouble >(val4);
31091 ecode5 = SWIG_AsVal_double(obj4, &val5);
31092 if (!SWIG_IsOK(ecode5)) {
70d7cb34 31093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
31094 }
31095 arg5 = static_cast< wxDouble >(val5);
31096 ecode6 = SWIG_AsVal_double(obj5, &val6);
31097 if (!SWIG_IsOK(ecode6)) {
70d7cb34 31098 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
31099 }
31100 arg6 = static_cast< wxDouble >(val6);
31101 {
70d7cb34
RD
31102 arg7 = &temp7;
31103 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31104 }
31105 {
31106 arg8 = &temp8;
31107 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31108 }
31109 {
31110 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
31111 if (PyErr_Occurred()) SWIG_fail;
31112 }
70d7cb34 31113 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
31114 return resultobj;
31115fail:
31116 return NULL;
31117}
31118
31119
70d7cb34
RD
31120SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31121 PyObject *resultobj = 0;
31122 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31123 wxFont *arg2 = 0 ;
31124 wxColour const &arg3_defvalue = *wxBLACK ;
31125 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31126 wxGraphicsFont result;
31127 void *argp1 = 0 ;
31128 int res1 = 0 ;
31129 void *argp2 = 0 ;
31130 int res2 = 0 ;
31131 wxColour temp3 ;
31132 PyObject * obj0 = 0 ;
31133 PyObject * obj1 = 0 ;
31134 PyObject * obj2 = 0 ;
31135 char * kwnames[] = {
31136 (char *) "self",(char *) "font",(char *) "col", NULL
31137 };
31138
31139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31141 if (!SWIG_IsOK(res1)) {
31142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31143 }
31144 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31146 if (!SWIG_IsOK(res2)) {
31147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31148 }
31149 if (!argp2) {
31150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31151 }
31152 arg2 = reinterpret_cast< wxFont * >(argp2);
31153 if (obj2) {
31154 {
31155 arg3 = &temp3;
31156 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31157 }
31158 }
31159 {
31160 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31161 if (PyErr_Occurred()) SWIG_fail;
31162 }
31163 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31164 return resultobj;
31165fail:
31166 return NULL;
31167}
31168
31169
31170SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31171 PyObject *obj;
31172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 31173 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
31174 return SWIG_Py_Void();
31175}
31176
31177SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31178 PyObject *resultobj = 0;
31179 wxWindowDC *arg1 = 0 ;
31180 wxGCDC *result = 0 ;
31181 void *argp1 = 0 ;
31182 int res1 = 0 ;
31183 PyObject * obj0 = 0 ;
31184 char * kwnames[] = {
31185 (char *) "dc", NULL
31186 };
31187
31188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
31189 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31190 if (!SWIG_IsOK(res1)) {
31191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31192 }
31193 if (!argp1) {
31194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31195 }
31196 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31197 {
31198 if (!wxPyCheckForApp()) SWIG_fail;
31199 PyThreadState* __tstate = wxPyBeginAllowThreads();
31200 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31201 wxPyEndAllowThreads(__tstate);
31202 if (PyErr_Occurred()) SWIG_fail;
31203 }
31204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31205 return resultobj;
31206fail:
31207 return NULL;
31208}
31209
31210
31211SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31212 PyObject *resultobj = 0;
31213 wxGCDC *arg1 = (wxGCDC *) 0 ;
31214 void *argp1 = 0 ;
31215 int res1 = 0 ;
31216 PyObject *swig_obj[1] ;
31217
31218 if (!args) SWIG_fail;
31219 swig_obj[0] = args;
31220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31221 if (!SWIG_IsOK(res1)) {
31222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31223 }
31224 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31225 {
72ef6efb
RD
31226 delete arg1;
31227
72ef6efb
RD
31228 if (PyErr_Occurred()) SWIG_fail;
31229 }
31230 resultobj = SWIG_Py_Void();
31231 return resultobj;
31232fail:
31233 return NULL;
31234}
31235
31236
0a27f394 31237SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31238 PyObject *resultobj = 0;
31239 wxGCDC *arg1 = (wxGCDC *) 0 ;
31240 wxGraphicsContext *result = 0 ;
31241 void *argp1 = 0 ;
31242 int res1 = 0 ;
31243 PyObject *swig_obj[1] ;
31244
31245 if (!args) SWIG_fail;
31246 swig_obj[0] = args;
31247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31248 if (!SWIG_IsOK(res1)) {
0a27f394 31249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
31250 }
31251 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31252 {
0a27f394 31253 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31254 if (PyErr_Occurred()) SWIG_fail;
31255 }
31256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31257 return resultobj;
31258fail:
31259 return NULL;
31260}
31261
31262
0a27f394
RD
31263SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31264 PyObject *resultobj = 0;
31265 wxGCDC *arg1 = (wxGCDC *) 0 ;
31266 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31267 void *argp1 = 0 ;
31268 int res1 = 0 ;
31269 void *argp2 = 0 ;
31270 int res2 = 0 ;
31271 PyObject * obj0 = 0 ;
31272 PyObject * obj1 = 0 ;
31273 char * kwnames[] = {
31274 (char *) "self",(char *) "ctx", NULL
31275 };
31276
31277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31279 if (!SWIG_IsOK(res1)) {
31280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31281 }
31282 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31283 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31284 if (!SWIG_IsOK(res2)) {
31285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31286 }
31287 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31288 {
31289 (arg1)->SetGraphicsContext(arg2);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 }
31292 resultobj = SWIG_Py_Void();
31293 return resultobj;
31294fail:
31295 return NULL;
31296}
31297
31298
72ef6efb
RD
31299SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31300 PyObject *obj;
31301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31302 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31303 return SWIG_Py_Void();
31304}
31305
31306SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31307 return SWIG_Python_InitShadowInstance(args);
31308}
31309
b39fe951
RD
31310SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31311 PyObject *resultobj = 0;
31312 wxOverlay *result = 0 ;
31313
31314 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31315 {
31316 PyThreadState* __tstate = wxPyBeginAllowThreads();
31317 result = (wxOverlay *)new wxOverlay();
31318 wxPyEndAllowThreads(__tstate);
31319 if (PyErr_Occurred()) SWIG_fail;
31320 }
31321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31322 return resultobj;
31323fail:
31324 return NULL;
31325}
31326
31327
31328SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31329 PyObject *resultobj = 0;
31330 wxOverlay *arg1 = (wxOverlay *) 0 ;
31331 void *argp1 = 0 ;
31332 int res1 = 0 ;
31333 PyObject *swig_obj[1] ;
31334
31335 if (!args) SWIG_fail;
31336 swig_obj[0] = args;
31337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31338 if (!SWIG_IsOK(res1)) {
31339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31340 }
31341 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31342 {
31343 PyThreadState* __tstate = wxPyBeginAllowThreads();
31344 delete arg1;
31345
31346 wxPyEndAllowThreads(__tstate);
31347 if (PyErr_Occurred()) SWIG_fail;
31348 }
31349 resultobj = SWIG_Py_Void();
31350 return resultobj;
31351fail:
31352 return NULL;
31353}
31354
31355
31356SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31357 PyObject *resultobj = 0;
31358 wxOverlay *arg1 = (wxOverlay *) 0 ;
31359 void *argp1 = 0 ;
31360 int res1 = 0 ;
31361 PyObject *swig_obj[1] ;
31362
31363 if (!args) SWIG_fail;
31364 swig_obj[0] = args;
31365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31366 if (!SWIG_IsOK(res1)) {
31367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31368 }
31369 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31370 {
31371 PyThreadState* __tstate = wxPyBeginAllowThreads();
31372 (arg1)->Reset();
31373 wxPyEndAllowThreads(__tstate);
31374 if (PyErr_Occurred()) SWIG_fail;
31375 }
31376 resultobj = SWIG_Py_Void();
31377 return resultobj;
31378fail:
31379 return NULL;
31380}
31381
31382
31383SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31384 PyObject *obj;
31385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31386 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31387 return SWIG_Py_Void();
31388}
31389
31390SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31391 return SWIG_Python_InitShadowInstance(args);
31392}
31393
31394SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31395 PyObject *resultobj = 0;
31396 wxOverlay *arg1 = 0 ;
31397 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31398 int arg3 ;
31399 int arg4 ;
31400 int arg5 ;
31401 int arg6 ;
31402 wxDCOverlay *result = 0 ;
31403 void *argp1 = 0 ;
31404 int res1 = 0 ;
31405 void *argp2 = 0 ;
31406 int res2 = 0 ;
31407 int val3 ;
31408 int ecode3 = 0 ;
31409 int val4 ;
31410 int ecode4 = 0 ;
31411 int val5 ;
31412 int ecode5 = 0 ;
31413 int val6 ;
31414 int ecode6 = 0 ;
31415
31416 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31418 if (!SWIG_IsOK(res1)) {
31419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31420 }
31421 if (!argp1) {
31422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31423 }
31424 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31425 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31426 if (!SWIG_IsOK(res2)) {
31427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31428 }
31429 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31430 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31431 if (!SWIG_IsOK(ecode3)) {
31432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31433 }
31434 arg3 = static_cast< int >(val3);
31435 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31436 if (!SWIG_IsOK(ecode4)) {
31437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31438 }
31439 arg4 = static_cast< int >(val4);
31440 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31441 if (!SWIG_IsOK(ecode5)) {
31442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31443 }
31444 arg5 = static_cast< int >(val5);
31445 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31446 if (!SWIG_IsOK(ecode6)) {
31447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31448 }
31449 arg6 = static_cast< int >(val6);
31450 {
31451 PyThreadState* __tstate = wxPyBeginAllowThreads();
31452 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31453 wxPyEndAllowThreads(__tstate);
31454 if (PyErr_Occurred()) SWIG_fail;
31455 }
31456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31457 return resultobj;
31458fail:
31459 return NULL;
31460}
31461
31462
31463SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31464 PyObject *resultobj = 0;
31465 wxOverlay *arg1 = 0 ;
31466 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31467 wxDCOverlay *result = 0 ;
31468 void *argp1 = 0 ;
31469 int res1 = 0 ;
31470 void *argp2 = 0 ;
31471 int res2 = 0 ;
31472
31473 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31475 if (!SWIG_IsOK(res1)) {
31476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31477 }
31478 if (!argp1) {
31479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31480 }
31481 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31482 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31483 if (!SWIG_IsOK(res2)) {
31484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31485 }
31486 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31487 {
31488 PyThreadState* __tstate = wxPyBeginAllowThreads();
31489 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31490 wxPyEndAllowThreads(__tstate);
31491 if (PyErr_Occurred()) SWIG_fail;
31492 }
31493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31494 return resultobj;
31495fail:
31496 return NULL;
31497}
31498
31499
31500SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31501 int argc;
31502 PyObject *argv[7];
31503
31504 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31505 --argc;
31506 if (argc == 2) {
31507 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31508 }
31509 if (argc == 6) {
31510 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31511 }
31512
31513fail:
31514 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31515 return NULL;
31516}
31517
31518
31519SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31520 PyObject *resultobj = 0;
31521 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31522 void *argp1 = 0 ;
31523 int res1 = 0 ;
31524 PyObject *swig_obj[1] ;
31525
31526 if (!args) SWIG_fail;
31527 swig_obj[0] = args;
31528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31529 if (!SWIG_IsOK(res1)) {
31530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31531 }
31532 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31533 {
31534 PyThreadState* __tstate = wxPyBeginAllowThreads();
31535 delete arg1;
31536
31537 wxPyEndAllowThreads(__tstate);
31538 if (PyErr_Occurred()) SWIG_fail;
31539 }
31540 resultobj = SWIG_Py_Void();
31541 return resultobj;
31542fail:
31543 return NULL;
31544}
31545
31546
31547SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31548 PyObject *resultobj = 0;
31549 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31550 void *argp1 = 0 ;
31551 int res1 = 0 ;
31552 PyObject *swig_obj[1] ;
31553
31554 if (!args) SWIG_fail;
31555 swig_obj[0] = args;
31556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31557 if (!SWIG_IsOK(res1)) {
31558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31559 }
31560 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31561 {
31562 PyThreadState* __tstate = wxPyBeginAllowThreads();
31563 (arg1)->Clear();
31564 wxPyEndAllowThreads(__tstate);
31565 if (PyErr_Occurred()) SWIG_fail;
31566 }
31567 resultobj = SWIG_Py_Void();
31568 return resultobj;
31569fail:
31570 return NULL;
31571}
31572
31573
31574SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31575 PyObject *obj;
31576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31577 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31578 return SWIG_Py_Void();
31579}
31580
31581SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31582 return SWIG_Python_InitShadowInstance(args);
31583}
31584
72ef6efb
RD
31585SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31586 PyObject *resultobj = 0;
31587 int arg1 ;
31588 int arg2 ;
31589 int arg3 = (int) true ;
31590 int arg4 = (int) 1 ;
31591 wxImageList *result = 0 ;
31592 int val1 ;
31593 int ecode1 = 0 ;
31594 int val2 ;
31595 int ecode2 = 0 ;
31596 int val3 ;
31597 int ecode3 = 0 ;
31598 int val4 ;
31599 int ecode4 = 0 ;
31600 PyObject * obj0 = 0 ;
31601 PyObject * obj1 = 0 ;
31602 PyObject * obj2 = 0 ;
31603 PyObject * obj3 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31606 };
31607
31608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31609 ecode1 = SWIG_AsVal_int(obj0, &val1);
31610 if (!SWIG_IsOK(ecode1)) {
31611 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31612 }
31613 arg1 = static_cast< int >(val1);
31614 ecode2 = SWIG_AsVal_int(obj1, &val2);
31615 if (!SWIG_IsOK(ecode2)) {
31616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31617 }
31618 arg2 = static_cast< int >(val2);
31619 if (obj2) {
31620 ecode3 = SWIG_AsVal_int(obj2, &val3);
31621 if (!SWIG_IsOK(ecode3)) {
31622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31623 }
31624 arg3 = static_cast< int >(val3);
31625 }
31626 if (obj3) {
31627 ecode4 = SWIG_AsVal_int(obj3, &val4);
31628 if (!SWIG_IsOK(ecode4)) {
31629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31630 }
31631 arg4 = static_cast< int >(val4);
31632 }
31633 {
31634 if (!wxPyCheckForApp()) SWIG_fail;
31635 PyThreadState* __tstate = wxPyBeginAllowThreads();
31636 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31637 wxPyEndAllowThreads(__tstate);
31638 if (PyErr_Occurred()) SWIG_fail;
31639 }
e02c0a13 31640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31641 return resultobj;
31642fail:
31643 return NULL;
31644}
31645
31646
31647SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31648 PyObject *resultobj = 0;
31649 wxImageList *arg1 = (wxImageList *) 0 ;
31650 void *argp1 = 0 ;
31651 int res1 = 0 ;
31652 PyObject *swig_obj[1] ;
31653
31654 if (!args) SWIG_fail;
31655 swig_obj[0] = args;
31656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31657 if (!SWIG_IsOK(res1)) {
31658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31659 }
31660 arg1 = reinterpret_cast< wxImageList * >(argp1);
31661 {
31662 PyThreadState* __tstate = wxPyBeginAllowThreads();
31663 delete arg1;
31664
31665 wxPyEndAllowThreads(__tstate);
31666 if (PyErr_Occurred()) SWIG_fail;
31667 }
31668 resultobj = SWIG_Py_Void();
31669 return resultobj;
31670fail:
31671 return NULL;
31672}
31673
31674
31675SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31676 PyObject *resultobj = 0;
31677 wxImageList *arg1 = (wxImageList *) 0 ;
31678 wxBitmap *arg2 = 0 ;
31679 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31680 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31681 int result;
31682 void *argp1 = 0 ;
31683 int res1 = 0 ;
31684 void *argp2 = 0 ;
31685 int res2 = 0 ;
31686 void *argp3 = 0 ;
31687 int res3 = 0 ;
31688 PyObject * obj0 = 0 ;
31689 PyObject * obj1 = 0 ;
31690 PyObject * obj2 = 0 ;
31691 char * kwnames[] = {
31692 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31693 };
31694
31695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31697 if (!SWIG_IsOK(res1)) {
31698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31699 }
31700 arg1 = reinterpret_cast< wxImageList * >(argp1);
31701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31702 if (!SWIG_IsOK(res2)) {
31703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31704 }
31705 if (!argp2) {
31706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31707 }
31708 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31709 if (obj2) {
31710 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31711 if (!SWIG_IsOK(res3)) {
31712 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31713 }
31714 if (!argp3) {
31715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31716 }
31717 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31718 }
31719 {
31720 PyThreadState* __tstate = wxPyBeginAllowThreads();
31721 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31722 wxPyEndAllowThreads(__tstate);
31723 if (PyErr_Occurred()) SWIG_fail;
31724 }
31725 resultobj = SWIG_From_int(static_cast< int >(result));
31726 return resultobj;
31727fail:
31728 return NULL;
31729}
31730
31731
31732SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31733 PyObject *resultobj = 0;
31734 wxImageList *arg1 = (wxImageList *) 0 ;
31735 wxBitmap *arg2 = 0 ;
31736 wxColour *arg3 = 0 ;
31737 int result;
31738 void *argp1 = 0 ;
31739 int res1 = 0 ;
31740 void *argp2 = 0 ;
31741 int res2 = 0 ;
31742 wxColour temp3 ;
31743 PyObject * obj0 = 0 ;
31744 PyObject * obj1 = 0 ;
31745 PyObject * obj2 = 0 ;
31746 char * kwnames[] = {
31747 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31748 };
31749
31750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) 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_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31754 }
31755 arg1 = reinterpret_cast< wxImageList * >(argp1);
31756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31757 if (!SWIG_IsOK(res2)) {
31758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31759 }
31760 if (!argp2) {
31761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31762 }
31763 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31764 {
31765 arg3 = &temp3;
31766 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31767 }
31768 {
31769 PyThreadState* __tstate = wxPyBeginAllowThreads();
31770 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31771 wxPyEndAllowThreads(__tstate);
31772 if (PyErr_Occurred()) SWIG_fail;
31773 }
31774 resultobj = SWIG_From_int(static_cast< int >(result));
31775 return resultobj;
31776fail:
31777 return NULL;
31778}
31779
31780
31781SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31782 PyObject *resultobj = 0;
31783 wxImageList *arg1 = (wxImageList *) 0 ;
31784 wxIcon *arg2 = 0 ;
31785 int result;
31786 void *argp1 = 0 ;
31787 int res1 = 0 ;
31788 void *argp2 = 0 ;
31789 int res2 = 0 ;
31790 PyObject * obj0 = 0 ;
31791 PyObject * obj1 = 0 ;
31792 char * kwnames[] = {
31793 (char *) "self",(char *) "icon", NULL
31794 };
31795
31796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31798 if (!SWIG_IsOK(res1)) {
31799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31800 }
554f62e9
RD
31801 arg1 = reinterpret_cast< wxImageList * >(argp1);
31802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31803 if (!SWIG_IsOK(res2)) {
31804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31805 }
31806 if (!argp2) {
31807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31808 }
31809 arg2 = reinterpret_cast< wxIcon * >(argp2);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_From_int(static_cast< int >(result));
31817 return resultobj;
31818fail:
31819 return NULL;
31820}
31821
31822
31823SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31824 PyObject *resultobj = 0;
31825 wxImageList *arg1 = (wxImageList *) 0 ;
31826 int arg2 ;
31827 SwigValueWrapper<wxBitmap > result;
31828 void *argp1 = 0 ;
31829 int res1 = 0 ;
31830 int val2 ;
31831 int ecode2 = 0 ;
31832 PyObject * obj0 = 0 ;
31833 PyObject * obj1 = 0 ;
31834 char * kwnames[] = {
31835 (char *) "self",(char *) "index", NULL
31836 };
31837
31838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31840 if (!SWIG_IsOK(res1)) {
31841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31842 }
31843 arg1 = reinterpret_cast< wxImageList * >(argp1);
31844 ecode2 = SWIG_AsVal_int(obj1, &val2);
31845 if (!SWIG_IsOK(ecode2)) {
31846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31847 }
31848 arg2 = static_cast< int >(val2);
31849 {
31850 PyThreadState* __tstate = wxPyBeginAllowThreads();
31851 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31852 wxPyEndAllowThreads(__tstate);
31853 if (PyErr_Occurred()) SWIG_fail;
31854 }
31855 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31856 return resultobj;
31857fail:
31858 return NULL;
31859}
31860
31861
31862SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31863 PyObject *resultobj = 0;
31864 wxImageList *arg1 = (wxImageList *) 0 ;
31865 int arg2 ;
31866 wxIcon result;
31867 void *argp1 = 0 ;
31868 int res1 = 0 ;
31869 int val2 ;
31870 int ecode2 = 0 ;
31871 PyObject * obj0 = 0 ;
31872 PyObject * obj1 = 0 ;
31873 char * kwnames[] = {
31874 (char *) "self",(char *) "index", NULL
31875 };
31876
31877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31879 if (!SWIG_IsOK(res1)) {
31880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31881 }
31882 arg1 = reinterpret_cast< wxImageList * >(argp1);
31883 ecode2 = SWIG_AsVal_int(obj1, &val2);
31884 if (!SWIG_IsOK(ecode2)) {
31885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31886 }
31887 arg2 = static_cast< int >(val2);
31888 {
31889 PyThreadState* __tstate = wxPyBeginAllowThreads();
31890 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31891 wxPyEndAllowThreads(__tstate);
31892 if (PyErr_Occurred()) SWIG_fail;
31893 }
31894 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31895 return resultobj;
31896fail:
31897 return NULL;
31898}
31899
31900
31901SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31902 PyObject *resultobj = 0;
31903 wxImageList *arg1 = (wxImageList *) 0 ;
31904 int arg2 ;
31905 wxBitmap *arg3 = 0 ;
31906 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31907 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31908 bool result;
31909 void *argp1 = 0 ;
31910 int res1 = 0 ;
31911 int val2 ;
31912 int ecode2 = 0 ;
31913 void *argp3 = 0 ;
31914 int res3 = 0 ;
31915 void *argp4 = 0 ;
31916 int res4 = 0 ;
31917 PyObject * obj0 = 0 ;
31918 PyObject * obj1 = 0 ;
31919 PyObject * obj2 = 0 ;
31920 PyObject * obj3 = 0 ;
31921 char * kwnames[] = {
31922 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31923 };
31924
31925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31927 if (!SWIG_IsOK(res1)) {
31928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31929 }
31930 arg1 = reinterpret_cast< wxImageList * >(argp1);
31931 ecode2 = SWIG_AsVal_int(obj1, &val2);
31932 if (!SWIG_IsOK(ecode2)) {
31933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31934 }
31935 arg2 = static_cast< int >(val2);
31936 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31937 if (!SWIG_IsOK(res3)) {
31938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31939 }
31940 if (!argp3) {
31941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31942 }
31943 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31944 if (obj3) {
31945 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31946 if (!SWIG_IsOK(res4)) {
31947 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 31948 }
554f62e9
RD
31949 if (!argp4) {
31950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 31951 }
554f62e9
RD
31952 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31953 }
31954 {
31955 PyThreadState* __tstate = wxPyBeginAllowThreads();
31956 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 {
31961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31962 }
31963 return resultobj;
31964fail:
31965 return NULL;
31966}
31967
31968
31969SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31970 PyObject *resultobj = 0;
31971 wxImageList *arg1 = (wxImageList *) 0 ;
31972 int arg2 ;
31973 wxDC *arg3 = 0 ;
31974 int arg4 ;
31975 int arg5 ;
31976 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31977 bool arg7 = (bool) (bool)false ;
31978 bool result;
31979 void *argp1 = 0 ;
31980 int res1 = 0 ;
31981 int val2 ;
31982 int ecode2 = 0 ;
31983 void *argp3 = 0 ;
31984 int res3 = 0 ;
31985 int val4 ;
31986 int ecode4 = 0 ;
31987 int val5 ;
31988 int ecode5 = 0 ;
31989 int val6 ;
31990 int ecode6 = 0 ;
31991 bool val7 ;
31992 int ecode7 = 0 ;
31993 PyObject * obj0 = 0 ;
31994 PyObject * obj1 = 0 ;
31995 PyObject * obj2 = 0 ;
31996 PyObject * obj3 = 0 ;
31997 PyObject * obj4 = 0 ;
31998 PyObject * obj5 = 0 ;
31999 PyObject * obj6 = 0 ;
32000 char * kwnames[] = {
32001 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32002 };
32003
32004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32006 if (!SWIG_IsOK(res1)) {
32007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32008 }
32009 arg1 = reinterpret_cast< wxImageList * >(argp1);
32010 ecode2 = SWIG_AsVal_int(obj1, &val2);
32011 if (!SWIG_IsOK(ecode2)) {
32012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32013 }
32014 arg2 = static_cast< int >(val2);
32015 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32016 if (!SWIG_IsOK(res3)) {
32017 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32018 }
32019 if (!argp3) {
32020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32021 }
32022 arg3 = reinterpret_cast< wxDC * >(argp3);
32023 ecode4 = SWIG_AsVal_int(obj3, &val4);
32024 if (!SWIG_IsOK(ecode4)) {
32025 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32026 }
32027 arg4 = static_cast< int >(val4);
32028 ecode5 = SWIG_AsVal_int(obj4, &val5);
32029 if (!SWIG_IsOK(ecode5)) {
32030 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32031 }
32032 arg5 = static_cast< int >(val5);
32033 if (obj5) {
32034 ecode6 = SWIG_AsVal_int(obj5, &val6);
32035 if (!SWIG_IsOK(ecode6)) {
32036 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32037 }
32038 arg6 = static_cast< int >(val6);
32039 }
32040 if (obj6) {
32041 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32042 if (!SWIG_IsOK(ecode7)) {
32043 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32044 }
32045 arg7 = static_cast< bool >(val7);
32046 }
32047 {
32048 PyThreadState* __tstate = wxPyBeginAllowThreads();
32049 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32050 wxPyEndAllowThreads(__tstate);
32051 if (PyErr_Occurred()) SWIG_fail;
32052 }
32053 {
32054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32055 }
32056 return resultobj;
32057fail:
32058 return NULL;
32059}
32060
32061
32062SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32063 PyObject *resultobj = 0;
32064 wxImageList *arg1 = (wxImageList *) 0 ;
32065 int result;
32066 void *argp1 = 0 ;
32067 int res1 = 0 ;
32068 PyObject *swig_obj[1] ;
32069
32070 if (!args) SWIG_fail;
32071 swig_obj[0] = args;
32072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32073 if (!SWIG_IsOK(res1)) {
32074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32075 }
32076 arg1 = reinterpret_cast< wxImageList * >(argp1);
32077 {
32078 PyThreadState* __tstate = wxPyBeginAllowThreads();
32079 result = (int)(arg1)->GetImageCount();
32080 wxPyEndAllowThreads(__tstate);
32081 if (PyErr_Occurred()) SWIG_fail;
32082 }
32083 resultobj = SWIG_From_int(static_cast< int >(result));
32084 return resultobj;
32085fail:
32086 return NULL;
32087}
32088
32089
32090SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32091 PyObject *resultobj = 0;
32092 wxImageList *arg1 = (wxImageList *) 0 ;
32093 int arg2 ;
32094 bool result;
32095 void *argp1 = 0 ;
32096 int res1 = 0 ;
32097 int val2 ;
32098 int ecode2 = 0 ;
32099 PyObject * obj0 = 0 ;
32100 PyObject * obj1 = 0 ;
32101 char * kwnames[] = {
32102 (char *) "self",(char *) "index", NULL
32103 };
32104
32105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32107 if (!SWIG_IsOK(res1)) {
32108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32109 }
32110 arg1 = reinterpret_cast< wxImageList * >(argp1);
32111 ecode2 = SWIG_AsVal_int(obj1, &val2);
32112 if (!SWIG_IsOK(ecode2)) {
32113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32114 }
32115 arg2 = static_cast< int >(val2);
32116 {
32117 PyThreadState* __tstate = wxPyBeginAllowThreads();
32118 result = (bool)(arg1)->Remove(arg2);
32119 wxPyEndAllowThreads(__tstate);
32120 if (PyErr_Occurred()) SWIG_fail;
32121 }
32122 {
32123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32124 }
32125 return resultobj;
32126fail:
32127 return NULL;
32128}
32129
32130
32131SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32132 PyObject *resultobj = 0;
32133 wxImageList *arg1 = (wxImageList *) 0 ;
32134 bool result;
32135 void *argp1 = 0 ;
32136 int res1 = 0 ;
32137 PyObject *swig_obj[1] ;
32138
32139 if (!args) SWIG_fail;
32140 swig_obj[0] = args;
32141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32142 if (!SWIG_IsOK(res1)) {
32143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32144 }
32145 arg1 = reinterpret_cast< wxImageList * >(argp1);
32146 {
32147 PyThreadState* __tstate = wxPyBeginAllowThreads();
32148 result = (bool)(arg1)->RemoveAll();
32149 wxPyEndAllowThreads(__tstate);
32150 if (PyErr_Occurred()) SWIG_fail;
32151 }
32152 {
32153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32154 }
32155 return resultobj;
32156fail:
32157 return NULL;
32158}
32159
32160
32161SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32162 PyObject *resultobj = 0;
32163 wxImageList *arg1 = (wxImageList *) 0 ;
32164 int arg2 ;
32165 int *arg3 = 0 ;
32166 int *arg4 = 0 ;
32167 void *argp1 = 0 ;
32168 int res1 = 0 ;
32169 int val2 ;
32170 int ecode2 = 0 ;
32171 int temp3 ;
32172 int res3 = SWIG_TMPOBJ ;
32173 int temp4 ;
32174 int res4 = SWIG_TMPOBJ ;
32175 PyObject * obj0 = 0 ;
32176 PyObject * obj1 = 0 ;
32177 char * kwnames[] = {
32178 (char *) "self",(char *) "index", NULL
32179 };
32180
32181 arg3 = &temp3;
32182 arg4 = &temp4;
32183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32185 if (!SWIG_IsOK(res1)) {
32186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32187 }
32188 arg1 = reinterpret_cast< wxImageList * >(argp1);
32189 ecode2 = SWIG_AsVal_int(obj1, &val2);
32190 if (!SWIG_IsOK(ecode2)) {
32191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32192 }
32193 arg2 = static_cast< int >(val2);
32194 {
32195 PyThreadState* __tstate = wxPyBeginAllowThreads();
32196 (arg1)->GetSize(arg2,*arg3,*arg4);
32197 wxPyEndAllowThreads(__tstate);
32198 if (PyErr_Occurred()) SWIG_fail;
32199 }
32200 resultobj = SWIG_Py_Void();
32201 if (SWIG_IsTmpObj(res3)) {
32202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32203 } else {
32204 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32206 }
32207 if (SWIG_IsTmpObj(res4)) {
32208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32209 } else {
32210 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32212 }
32213 return resultobj;
32214fail:
32215 return NULL;
32216}
32217
32218
32219SWIGINTERN PyObject *ImageList_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_wxImageList, SWIG_NewClientData(obj));
32223 return SWIG_Py_Void();
32224}
32225
32226SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32227 return SWIG_Python_InitShadowInstance(args);
32228}
32229
50efceee
RD
32230SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32231 PyObject *resultobj = 0;
32232 wxStockGDI *result = 0 ;
554f62e9 32233
50efceee
RD
32234 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32235 {
32236 PyThreadState* __tstate = wxPyBeginAllowThreads();
32237 result = (wxStockGDI *)new wxStockGDI();
32238 wxPyEndAllowThreads(__tstate);
32239 if (PyErr_Occurred()) SWIG_fail;
32240 }
32241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32242 return resultobj;
32243fail:
32244 return NULL;
554f62e9
RD
32245}
32246
32247
50efceee
RD
32248SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32249 PyObject *resultobj = 0;
32250 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32251 void *argp1 = 0 ;
32252 int res1 = 0 ;
32253 PyObject *swig_obj[1] ;
554f62e9 32254
50efceee
RD
32255 if (!args) SWIG_fail;
32256 swig_obj[0] = args;
32257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32258 if (!SWIG_IsOK(res1)) {
32259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32260 }
32261 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32262 {
32263 PyThreadState* __tstate = wxPyBeginAllowThreads();
32264 delete arg1;
32265
32266 wxPyEndAllowThreads(__tstate);
32267 if (PyErr_Occurred()) SWIG_fail;
32268 }
32269 resultobj = SWIG_Py_Void();
32270 return resultobj;
32271fail:
32272 return NULL;
554f62e9
RD
32273}
32274
32275
50efceee
RD
32276SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32277 PyObject *resultobj = 0;
554f62e9 32278
50efceee
RD
32279 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32280 {
32281 PyThreadState* __tstate = wxPyBeginAllowThreads();
32282 wxStockGDI::DeleteAll();
32283 wxPyEndAllowThreads(__tstate);
32284 if (PyErr_Occurred()) SWIG_fail;
32285 }
32286 resultobj = SWIG_Py_Void();
32287 return resultobj;
32288fail:
32289 return NULL;
554f62e9
RD
32290}
32291
32292
50efceee
RD
32293SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32294 PyObject *resultobj = 0;
32295 wxStockGDI *result = 0 ;
554f62e9 32296
50efceee
RD
32297 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32298 {
32299 PyThreadState* __tstate = wxPyBeginAllowThreads();
32300 {
32301 wxStockGDI &_result_ref = wxStockGDI::instance();
32302 result = (wxStockGDI *) &_result_ref;
32303 }
32304 wxPyEndAllowThreads(__tstate);
32305 if (PyErr_Occurred()) SWIG_fail;
32306 }
32307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32308 return resultobj;
32309fail:
32310 return NULL;
554f62e9
RD
32311}
32312
32313
50efceee
RD
32314SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32315 PyObject *resultobj = 0;
32316 wxStockGDI::Item arg1 ;
32317 wxBrush *result = 0 ;
32318 int val1 ;
32319 int ecode1 = 0 ;
32320 PyObject * obj0 = 0 ;
32321 char * kwnames[] = {
32322 (char *) "item", NULL
32323 };
32324
32325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32326 ecode1 = SWIG_AsVal_int(obj0, &val1);
32327 if (!SWIG_IsOK(ecode1)) {
32328 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32329 }
32330 arg1 = static_cast< wxStockGDI::Item >(val1);
32331 {
32332 PyThreadState* __tstate = wxPyBeginAllowThreads();
32333 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32334 wxPyEndAllowThreads(__tstate);
32335 if (PyErr_Occurred()) SWIG_fail;
32336 }
32337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32338 return resultobj;
32339fail:
32340 return NULL;
554f62e9
RD
32341}
32342
32343
50efceee
RD
32344SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32345 PyObject *resultobj = 0;
32346 wxStockGDI::Item arg1 ;
32347 wxColour *result = 0 ;
32348 int val1 ;
32349 int ecode1 = 0 ;
32350 PyObject * obj0 = 0 ;
32351 char * kwnames[] = {
32352 (char *) "item", NULL
32353 };
554f62e9 32354
50efceee
RD
32355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32356 ecode1 = SWIG_AsVal_int(obj0, &val1);
32357 if (!SWIG_IsOK(ecode1)) {
32358 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32359 }
32360 arg1 = static_cast< wxStockGDI::Item >(val1);
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 result = (wxColour *)wxStockGDI::GetColour(arg1);
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32368 return resultobj;
32369fail:
32370 return NULL;
554f62e9
RD
32371}
32372
32373
50efceee
RD
32374SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32375 PyObject *resultobj = 0;
32376 wxStockGDI::Item arg1 ;
32377 wxCursor *result = 0 ;
32378 int val1 ;
32379 int ecode1 = 0 ;
32380 PyObject * obj0 = 0 ;
32381 char * kwnames[] = {
32382 (char *) "item", NULL
32383 };
32384
32385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32386 ecode1 = SWIG_AsVal_int(obj0, &val1);
32387 if (!SWIG_IsOK(ecode1)) {
32388 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32389 }
32390 arg1 = static_cast< wxStockGDI::Item >(val1);
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
32393 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32398 return resultobj;
32399fail:
32400 return NULL;
554f62e9
RD
32401}
32402
32403
50efceee
RD
32404SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32405 PyObject *resultobj = 0;
32406 wxStockGDI::Item arg1 ;
32407 wxPen *result = 0 ;
32408 int val1 ;
32409 int ecode1 = 0 ;
32410 PyObject * obj0 = 0 ;
32411 char * kwnames[] = {
32412 (char *) "item", NULL
32413 };
32414
32415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32416 ecode1 = SWIG_AsVal_int(obj0, &val1);
32417 if (!SWIG_IsOK(ecode1)) {
32418 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32419 }
32420 arg1 = static_cast< wxStockGDI::Item >(val1);
32421 {
32422 PyThreadState* __tstate = wxPyBeginAllowThreads();
32423 result = (wxPen *)wxStockGDI::GetPen(arg1);
32424 wxPyEndAllowThreads(__tstate);
32425 if (PyErr_Occurred()) SWIG_fail;
32426 }
32427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32428 return resultobj;
32429fail:
32430 return NULL;
554f62e9
RD
32431}
32432
32433
50efceee
RD
32434SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32435 PyObject *resultobj = 0;
32436 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32437 wxStockGDI::Item arg2 ;
32438 wxFont *result = 0 ;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 int val2 ;
32442 int ecode2 = 0 ;
32443 PyObject * obj0 = 0 ;
32444 PyObject * obj1 = 0 ;
32445 char * kwnames[] = {
32446 (char *) "self",(char *) "item", NULL
32447 };
554f62e9 32448
50efceee
RD
32449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32451 if (!SWIG_IsOK(res1)) {
32452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32453 }
32454 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32455 ecode2 = SWIG_AsVal_int(obj1, &val2);
32456 if (!SWIG_IsOK(ecode2)) {
32457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32458 }
32459 arg2 = static_cast< wxStockGDI::Item >(val2);
32460 {
32461 PyThreadState* __tstate = wxPyBeginAllowThreads();
32462 result = (wxFont *)(arg1)->GetFont(arg2);
32463 wxPyEndAllowThreads(__tstate);
32464 if (PyErr_Occurred()) SWIG_fail;
32465 }
32466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32467 return resultobj;
32468fail:
32469 return NULL;
554f62e9
RD
32470}
32471
32472
50efceee
RD
32473SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32474 PyObject *obj;
32475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32476 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32477 return SWIG_Py_Void();
554f62e9
RD
32478}
32479
50efceee
RD
32480SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32481 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
32482}
32483
554f62e9
RD
32484SWIGINTERN int NullBitmap_set(PyObject *) {
32485 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32486 return 1;
32487}
32488
32489
32490SWIGINTERN PyObject *NullBitmap_get(void) {
32491 PyObject *pyobj = 0;
32492
32493 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32494 return pyobj;
32495}
32496
32497
32498SWIGINTERN int NullIcon_set(PyObject *) {
32499 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32500 return 1;
32501}
32502
32503
32504SWIGINTERN PyObject *NullIcon_get(void) {
32505 PyObject *pyobj = 0;
32506
32507 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32508 return pyobj;
32509}
32510
32511
32512SWIGINTERN int NullCursor_set(PyObject *) {
32513 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32514 return 1;
32515}
32516
32517
32518SWIGINTERN PyObject *NullCursor_get(void) {
32519 PyObject *pyobj = 0;
32520
32521 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32522 return pyobj;
32523}
32524
32525
32526SWIGINTERN int NullPen_set(PyObject *) {
32527 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32528 return 1;
32529}
32530
32531
32532SWIGINTERN PyObject *NullPen_get(void) {
32533 PyObject *pyobj = 0;
32534
32535 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32536 return pyobj;
32537}
32538
32539
32540SWIGINTERN int NullBrush_set(PyObject *) {
32541 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32542 return 1;
32543}
32544
32545
32546SWIGINTERN PyObject *NullBrush_get(void) {
32547 PyObject *pyobj = 0;
32548
32549 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32550 return pyobj;
32551}
32552
32553
32554SWIGINTERN int NullPalette_set(PyObject *) {
32555 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32556 return 1;
32557}
32558
32559
32560SWIGINTERN PyObject *NullPalette_get(void) {
32561 PyObject *pyobj = 0;
32562
32563 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32564 return pyobj;
32565}
32566
32567
32568SWIGINTERN int NullFont_set(PyObject *) {
32569 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32570 return 1;
32571}
32572
32573
32574SWIGINTERN PyObject *NullFont_get(void) {
32575 PyObject *pyobj = 0;
32576
32577 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32578 return pyobj;
32579}
32580
32581
32582SWIGINTERN int NullColour_set(PyObject *) {
32583 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32584 return 1;
32585}
32586
32587
32588SWIGINTERN PyObject *NullColour_get(void) {
32589 PyObject *pyobj = 0;
32590
32591 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32592 return pyobj;
32593}
32594
32595
50efceee 32596SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 32597 PyObject *resultobj = 0;
50efceee
RD
32598 wxGDIObjListBase *result = 0 ;
32599
32600 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32601 {
32602 PyThreadState* __tstate = wxPyBeginAllowThreads();
32603 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32604 wxPyEndAllowThreads(__tstate);
32605 if (PyErr_Occurred()) SWIG_fail;
32606 }
32607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32608 return resultobj;
32609fail:
32610 return NULL;
32611}
32612
32613
32614SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32615 PyObject *resultobj = 0;
32616 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
32617 void *argp1 = 0 ;
32618 int res1 = 0 ;
50efceee 32619 PyObject *swig_obj[1] ;
554f62e9 32620
50efceee
RD
32621 if (!args) SWIG_fail;
32622 swig_obj[0] = args;
32623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 32624 if (!SWIG_IsOK(res1)) {
50efceee 32625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 32626 }
50efceee 32627 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
32628 {
32629 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
32630 delete arg1;
32631
554f62e9
RD
32632 wxPyEndAllowThreads(__tstate);
32633 if (PyErr_Occurred()) SWIG_fail;
32634 }
32635 resultobj = SWIG_Py_Void();
32636 return resultobj;
32637fail:
32638 return NULL;
32639}
32640
32641
50efceee
RD
32642SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32643 PyObject *obj;
32644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32645 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32646 return SWIG_Py_Void();
32647}
32648
32649SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32650 return SWIG_Python_InitShadowInstance(args);
32651}
32652
554f62e9
RD
32653SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32654 PyObject *resultobj = 0;
32655 wxPenList *arg1 = (wxPenList *) 0 ;
32656 wxColour *arg2 = 0 ;
32657 int arg3 ;
32658 int arg4 ;
32659 wxPen *result = 0 ;
32660 void *argp1 = 0 ;
32661 int res1 = 0 ;
32662 wxColour temp2 ;
32663 int val3 ;
32664 int ecode3 = 0 ;
32665 int val4 ;
32666 int ecode4 = 0 ;
32667 PyObject * obj0 = 0 ;
32668 PyObject * obj1 = 0 ;
32669 PyObject * obj2 = 0 ;
32670 PyObject * obj3 = 0 ;
32671 char * kwnames[] = {
32672 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32673 };
32674
32675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32677 if (!SWIG_IsOK(res1)) {
32678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32679 }
32680 arg1 = reinterpret_cast< wxPenList * >(argp1);
32681 {
32682 arg2 = &temp2;
32683 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32684 }
32685 ecode3 = SWIG_AsVal_int(obj2, &val3);
32686 if (!SWIG_IsOK(ecode3)) {
32687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32688 }
32689 arg3 = static_cast< int >(val3);
32690 ecode4 = SWIG_AsVal_int(obj3, &val4);
32691 if (!SWIG_IsOK(ecode4)) {
32692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32693 }
32694 arg4 = static_cast< int >(val4);
32695 {
32696 PyThreadState* __tstate = wxPyBeginAllowThreads();
32697 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32698 wxPyEndAllowThreads(__tstate);
32699 if (PyErr_Occurred()) SWIG_fail;
32700 }
32701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32702 return resultobj;
32703fail:
32704 return NULL;
32705}
32706
32707
50efceee 32708SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32709 PyObject *resultobj = 0;
32710 wxPenList *arg1 = (wxPenList *) 0 ;
32711 wxPen *arg2 = (wxPen *) 0 ;
32712 void *argp1 = 0 ;
32713 int res1 = 0 ;
32714 void *argp2 = 0 ;
32715 int res2 = 0 ;
32716 PyObject * obj0 = 0 ;
32717 PyObject * obj1 = 0 ;
32718 char * kwnames[] = {
32719 (char *) "self",(char *) "pen", NULL
32720 };
32721
50efceee 32722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
32723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32724 if (!SWIG_IsOK(res1)) {
50efceee 32725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32726 }
32727 arg1 = reinterpret_cast< wxPenList * >(argp1);
32728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32729 if (!SWIG_IsOK(res2)) {
50efceee 32730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
32731 }
32732 arg2 = reinterpret_cast< wxPen * >(argp2);
32733 {
32734 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32735 (arg1)->AddPen(arg2);
554f62e9
RD
32736 wxPyEndAllowThreads(__tstate);
32737 if (PyErr_Occurred()) SWIG_fail;
32738 }
32739 resultobj = SWIG_Py_Void();
32740 return resultobj;
32741fail:
32742 return NULL;
32743}
32744
32745
50efceee 32746SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32747 PyObject *resultobj = 0;
32748 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 32749 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
32750 void *argp1 = 0 ;
32751 int res1 = 0 ;
50efceee
RD
32752 void *argp2 = 0 ;
32753 int res2 = 0 ;
32754 PyObject * obj0 = 0 ;
32755 PyObject * obj1 = 0 ;
32756 char * kwnames[] = {
32757 (char *) "self",(char *) "pen", NULL
32758 };
554f62e9 32759
50efceee
RD
32760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 32762 if (!SWIG_IsOK(res1)) {
50efceee 32763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32764 }
32765 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
32766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32767 if (!SWIG_IsOK(res2)) {
32768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32769 }
32770 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
32771 {
32772 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32773 (arg1)->RemovePen(arg2);
554f62e9
RD
32774 wxPyEndAllowThreads(__tstate);
32775 if (PyErr_Occurred()) SWIG_fail;
32776 }
50efceee 32777 resultobj = SWIG_Py_Void();
554f62e9
RD
32778 return resultobj;
32779fail:
32780 return NULL;
32781}
32782
32783
32784SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32785 PyObject *obj;
32786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32787 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32788 return SWIG_Py_Void();
32789}
32790
50efceee
RD
32791SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32792 PyObject *resultobj = 0;
32793 wxBrushList *arg1 = (wxBrushList *) 0 ;
32794 wxColour *arg2 = 0 ;
32795 int arg3 = (int) wxSOLID ;
32796 wxBrush *result = 0 ;
32797 void *argp1 = 0 ;
32798 int res1 = 0 ;
32799 wxColour temp2 ;
32800 int val3 ;
32801 int ecode3 = 0 ;
32802 PyObject * obj0 = 0 ;
32803 PyObject * obj1 = 0 ;
32804 PyObject * obj2 = 0 ;
32805 char * kwnames[] = {
32806 (char *) "self",(char *) "colour",(char *) "style", NULL
32807 };
32808
32809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32811 if (!SWIG_IsOK(res1)) {
32812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32813 }
32814 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32815 {
32816 arg2 = &temp2;
32817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32818 }
32819 if (obj2) {
32820 ecode3 = SWIG_AsVal_int(obj2, &val3);
32821 if (!SWIG_IsOK(ecode3)) {
32822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32823 }
32824 arg3 = static_cast< int >(val3);
32825 }
32826 {
32827 PyThreadState* __tstate = wxPyBeginAllowThreads();
32828 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32829 wxPyEndAllowThreads(__tstate);
32830 if (PyErr_Occurred()) SWIG_fail;
32831 }
32832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32833 return resultobj;
32834fail:
32835 return NULL;
32836}
32837
32838
554f62e9
RD
32839SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32840 PyObject *resultobj = 0;
32841 wxBrushList *arg1 = (wxBrushList *) 0 ;
32842 wxBrush *arg2 = (wxBrush *) 0 ;
32843 void *argp1 = 0 ;
32844 int res1 = 0 ;
32845 void *argp2 = 0 ;
32846 int res2 = 0 ;
32847 PyObject * obj0 = 0 ;
32848 PyObject * obj1 = 0 ;
32849 char * kwnames[] = {
32850 (char *) "self",(char *) "brush", NULL
32851 };
32852
32853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32855 if (!SWIG_IsOK(res1)) {
32856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32857 }
32858 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32860 if (!SWIG_IsOK(res2)) {
32861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32862 }
32863 arg2 = reinterpret_cast< wxBrush * >(argp2);
32864 {
32865 PyThreadState* __tstate = wxPyBeginAllowThreads();
32866 (arg1)->AddBrush(arg2);
32867 wxPyEndAllowThreads(__tstate);
32868 if (PyErr_Occurred()) SWIG_fail;
32869 }
32870 resultobj = SWIG_Py_Void();
32871 return resultobj;
32872fail:
32873 return NULL;
32874}
32875
32876
50efceee 32877SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32878 PyObject *resultobj = 0;
32879 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32880 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
32881 void *argp1 = 0 ;
32882 int res1 = 0 ;
50efceee
RD
32883 void *argp2 = 0 ;
32884 int res2 = 0 ;
32885 PyObject * obj0 = 0 ;
32886 PyObject * obj1 = 0 ;
32887 char * kwnames[] = {
32888 (char *) "self",(char *) "brush", NULL
32889 };
32890
32891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32893 if (!SWIG_IsOK(res1)) {
32894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32895 }
32896 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32897 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32898 if (!SWIG_IsOK(res2)) {
32899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32900 }
32901 arg2 = reinterpret_cast< wxBrush * >(argp2);
32902 {
32903 PyThreadState* __tstate = wxPyBeginAllowThreads();
32904 (arg1)->RemoveBrush(arg2);
32905 wxPyEndAllowThreads(__tstate);
32906 if (PyErr_Occurred()) SWIG_fail;
32907 }
32908 resultobj = SWIG_Py_Void();
32909 return resultobj;
32910fail:
32911 return NULL;
32912}
32913
32914
32915SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32916 PyObject *obj;
32917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32918 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32919 return SWIG_Py_Void();
32920}
32921
32922SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32923 PyObject *resultobj = 0;
32924 wxFontList *arg1 = (wxFontList *) 0 ;
32925 int arg2 ;
32926 int arg3 ;
32927 int arg4 ;
32928 int arg5 ;
32929 bool arg6 = (bool) false ;
32930 wxString const &arg7_defvalue = wxPyEmptyString ;
32931 wxString *arg7 = (wxString *) &arg7_defvalue ;
32932 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32933 wxFont *result = 0 ;
32934 void *argp1 = 0 ;
32935 int res1 = 0 ;
32936 int val2 ;
32937 int ecode2 = 0 ;
554f62e9
RD
32938 int val3 ;
32939 int ecode3 = 0 ;
50efceee
RD
32940 int val4 ;
32941 int ecode4 = 0 ;
32942 int val5 ;
32943 int ecode5 = 0 ;
32944 bool val6 ;
32945 int ecode6 = 0 ;
32946 bool temp7 = false ;
32947 int val8 ;
32948 int ecode8 = 0 ;
554f62e9
RD
32949 PyObject * obj0 = 0 ;
32950 PyObject * obj1 = 0 ;
32951 PyObject * obj2 = 0 ;
50efceee
RD
32952 PyObject * obj3 = 0 ;
32953 PyObject * obj4 = 0 ;
32954 PyObject * obj5 = 0 ;
32955 PyObject * obj6 = 0 ;
32956 PyObject * obj7 = 0 ;
554f62e9 32957 char * kwnames[] = {
50efceee 32958 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
32959 };
32960
50efceee
RD
32961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32963 if (!SWIG_IsOK(res1)) {
50efceee 32964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32965 }
50efceee
RD
32966 arg1 = reinterpret_cast< wxFontList * >(argp1);
32967 ecode2 = SWIG_AsVal_int(obj1, &val2);
32968 if (!SWIG_IsOK(ecode2)) {
32969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32970 }
32971 arg2 = static_cast< int >(val2);
32972 ecode3 = SWIG_AsVal_int(obj2, &val3);
32973 if (!SWIG_IsOK(ecode3)) {
32974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32975 }
32976 arg3 = static_cast< int >(val3);
32977 ecode4 = SWIG_AsVal_int(obj3, &val4);
32978 if (!SWIG_IsOK(ecode4)) {
32979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32980 }
32981 arg4 = static_cast< int >(val4);
32982 ecode5 = SWIG_AsVal_int(obj4, &val5);
32983 if (!SWIG_IsOK(ecode5)) {
32984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32985 }
32986 arg5 = static_cast< int >(val5);
32987 if (obj5) {
32988 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32989 if (!SWIG_IsOK(ecode6)) {
32990 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32991 }
32992 arg6 = static_cast< bool >(val6);
554f62e9 32993 }
50efceee
RD
32994 if (obj6) {
32995 {
32996 arg7 = wxString_in_helper(obj6);
32997 if (arg7 == NULL) SWIG_fail;
32998 temp7 = true;
32999 }
33000 }
33001 if (obj7) {
33002 ecode8 = SWIG_AsVal_int(obj7, &val8);
33003 if (!SWIG_IsOK(ecode8)) {
33004 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 33005 }
50efceee 33006 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
33007 }
33008 {
33009 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33010 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
33011 wxPyEndAllowThreads(__tstate);
33012 if (PyErr_Occurred()) SWIG_fail;
33013 }
50efceee
RD
33014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33015 {
33016 if (temp7)
33017 delete arg7;
33018 }
554f62e9
RD
33019 return resultobj;
33020fail:
50efceee
RD
33021 {
33022 if (temp7)
33023 delete arg7;
33024 }
554f62e9
RD
33025 return NULL;
33026}
33027
33028
50efceee 33029SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33030 PyObject *resultobj = 0;
50efceee
RD
33031 wxFontList *arg1 = (wxFontList *) 0 ;
33032 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
33033 void *argp1 = 0 ;
33034 int res1 = 0 ;
33035 void *argp2 = 0 ;
33036 int res2 = 0 ;
33037 PyObject * obj0 = 0 ;
33038 PyObject * obj1 = 0 ;
33039 char * kwnames[] = {
50efceee 33040 (char *) "self",(char *) "font", NULL
554f62e9
RD
33041 };
33042
50efceee
RD
33043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33045 if (!SWIG_IsOK(res1)) {
50efceee 33046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33047 }
50efceee
RD
33048 arg1 = reinterpret_cast< wxFontList * >(argp1);
33049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 33050 if (!SWIG_IsOK(res2)) {
50efceee 33051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 33052 }
50efceee 33053 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
33054 {
33055 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33056 (arg1)->AddFont(arg2);
554f62e9
RD
33057 wxPyEndAllowThreads(__tstate);
33058 if (PyErr_Occurred()) SWIG_fail;
33059 }
33060 resultobj = SWIG_Py_Void();
33061 return resultobj;
33062fail:
33063 return NULL;
33064}
33065
33066
50efceee 33067SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 33068 PyObject *resultobj = 0;
50efceee
RD
33069 wxFontList *arg1 = (wxFontList *) 0 ;
33070 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
33071 void *argp1 = 0 ;
33072 int res1 = 0 ;
50efceee
RD
33073 void *argp2 = 0 ;
33074 int res2 = 0 ;
33075 PyObject * obj0 = 0 ;
33076 PyObject * obj1 = 0 ;
33077 char * kwnames[] = {
33078 (char *) "self",(char *) "font", NULL
33079 };
554f62e9 33080
50efceee
RD
33081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 33083 if (!SWIG_IsOK(res1)) {
50efceee 33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 33085 }
50efceee
RD
33086 arg1 = reinterpret_cast< wxFontList * >(argp1);
33087 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33088 if (!SWIG_IsOK(res2)) {
33089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33090 }
33091 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
33092 {
33093 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33094 (arg1)->RemoveFont(arg2);
554f62e9
RD
33095 wxPyEndAllowThreads(__tstate);
33096 if (PyErr_Occurred()) SWIG_fail;
33097 }
50efceee 33098 resultobj = SWIG_Py_Void();
554f62e9
RD
33099 return resultobj;
33100fail:
33101 return NULL;
33102}
33103
33104
50efceee 33105SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
33106 PyObject *obj;
33107 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 33108 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
33109 return SWIG_Py_Void();
33110}
33111
33112SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33113 PyObject *resultobj = 0;
33114 wxColourDatabase *result = 0 ;
33115
33116 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33117 {
33118 if (!wxPyCheckForApp()) SWIG_fail;
33119 PyThreadState* __tstate = wxPyBeginAllowThreads();
33120 result = (wxColourDatabase *)new wxColourDatabase();
33121 wxPyEndAllowThreads(__tstate);
33122 if (PyErr_Occurred()) SWIG_fail;
33123 }
33124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33125 return resultobj;
33126fail:
33127 return NULL;
33128}
33129
33130
33131SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33132 PyObject *resultobj = 0;
33133 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33134 void *argp1 = 0 ;
33135 int res1 = 0 ;
33136 PyObject *swig_obj[1] ;
33137
33138 if (!args) SWIG_fail;
33139 swig_obj[0] = args;
33140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33141 if (!SWIG_IsOK(res1)) {
33142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33143 }
33144 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33145 {
33146 PyThreadState* __tstate = wxPyBeginAllowThreads();
33147 delete arg1;
33148
33149 wxPyEndAllowThreads(__tstate);
33150 if (PyErr_Occurred()) SWIG_fail;
33151 }
33152 resultobj = SWIG_Py_Void();
33153 return resultobj;
33154fail:
33155 return NULL;
33156}
33157
33158
33159SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33160 PyObject *resultobj = 0;
33161 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33162 wxString *arg2 = 0 ;
33163 wxColour result;
33164 void *argp1 = 0 ;
33165 int res1 = 0 ;
33166 bool temp2 = false ;
33167 PyObject * obj0 = 0 ;
33168 PyObject * obj1 = 0 ;
33169 char * kwnames[] = {
33170 (char *) "self",(char *) "name", NULL
33171 };
33172
33173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33175 if (!SWIG_IsOK(res1)) {
33176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33177 }
33178 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33179 {
33180 arg2 = wxString_in_helper(obj1);
33181 if (arg2 == NULL) SWIG_fail;
33182 temp2 = true;
33183 }
33184 {
33185 PyThreadState* __tstate = wxPyBeginAllowThreads();
33186 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33187 wxPyEndAllowThreads(__tstate);
33188 if (PyErr_Occurred()) SWIG_fail;
33189 }
33190 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33191 {
33192 if (temp2)
33193 delete arg2;
33194 }
33195 return resultobj;
33196fail:
33197 {
33198 if (temp2)
33199 delete arg2;
33200 }
33201 return NULL;
33202}
33203
33204
33205SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33206 PyObject *resultobj = 0;
33207 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33208 wxColour *arg2 = 0 ;
33209 wxString result;
33210 void *argp1 = 0 ;
33211 int res1 = 0 ;
33212 wxColour temp2 ;
33213 PyObject * obj0 = 0 ;
33214 PyObject * obj1 = 0 ;
33215 char * kwnames[] = {
33216 (char *) "self",(char *) "colour", NULL
33217 };
33218
33219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33221 if (!SWIG_IsOK(res1)) {
33222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33223 }
33224 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33225 {
33226 arg2 = &temp2;
33227 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33228 }
33229 {
33230 PyThreadState* __tstate = wxPyBeginAllowThreads();
33231 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33232 wxPyEndAllowThreads(__tstate);
33233 if (PyErr_Occurred()) SWIG_fail;
33234 }
33235 {
33236#if wxUSE_UNICODE
33237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33238#else
33239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33240#endif
33241 }
33242 return resultobj;
33243fail:
33244 return NULL;
33245}
33246
33247
33248SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33249 PyObject *resultobj = 0;
33250 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33251 wxString *arg2 = 0 ;
33252 wxColour *arg3 = 0 ;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 bool temp2 = false ;
33256 wxColour temp3 ;
33257 PyObject * obj0 = 0 ;
33258 PyObject * obj1 = 0 ;
33259 PyObject * obj2 = 0 ;
33260 char * kwnames[] = {
33261 (char *) "self",(char *) "name",(char *) "colour", NULL
33262 };
33263
33264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33266 if (!SWIG_IsOK(res1)) {
33267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33268 }
33269 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33270 {
33271 arg2 = wxString_in_helper(obj1);
33272 if (arg2 == NULL) SWIG_fail;
33273 temp2 = true;
33274 }
33275 {
33276 arg3 = &temp3;
33277 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33278 }
33279 {
33280 PyThreadState* __tstate = wxPyBeginAllowThreads();
33281 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33282 wxPyEndAllowThreads(__tstate);
33283 if (PyErr_Occurred()) SWIG_fail;
33284 }
33285 resultobj = SWIG_Py_Void();
33286 {
33287 if (temp2)
33288 delete arg2;
33289 }
33290 return resultobj;
33291fail:
33292 {
33293 if (temp2)
33294 delete arg2;
33295 }
33296 return NULL;
33297}
33298
33299
33300SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33301 PyObject *resultobj = 0;
33302 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33303 wxString *arg2 = 0 ;
33304 int arg3 ;
33305 int arg4 ;
33306 int arg5 ;
33307 void *argp1 = 0 ;
33308 int res1 = 0 ;
33309 bool temp2 = false ;
33310 int val3 ;
33311 int ecode3 = 0 ;
33312 int val4 ;
33313 int ecode4 = 0 ;
50efceee
RD
33314 int val5 ;
33315 int ecode5 = 0 ;
554f62e9
RD
33316 PyObject * obj0 = 0 ;
33317 PyObject * obj1 = 0 ;
33318 PyObject * obj2 = 0 ;
33319 PyObject * obj3 = 0 ;
33320 PyObject * obj4 = 0 ;
554f62e9 33321 char * kwnames[] = {
50efceee 33322 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
33323 };
33324
50efceee
RD
33325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 33327 if (!SWIG_IsOK(res1)) {
50efceee
RD
33328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33329 }
33330 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33331 {
33332 arg2 = wxString_in_helper(obj1);
33333 if (arg2 == NULL) SWIG_fail;
33334 temp2 = true;
554f62e9 33335 }
554f62e9
RD
33336 ecode3 = SWIG_AsVal_int(obj2, &val3);
33337 if (!SWIG_IsOK(ecode3)) {
50efceee 33338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
33339 }
33340 arg3 = static_cast< int >(val3);
33341 ecode4 = SWIG_AsVal_int(obj3, &val4);
33342 if (!SWIG_IsOK(ecode4)) {
50efceee 33343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
33344 }
33345 arg4 = static_cast< int >(val4);
33346 ecode5 = SWIG_AsVal_int(obj4, &val5);
33347 if (!SWIG_IsOK(ecode5)) {
50efceee 33348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
33349 }
33350 arg5 = static_cast< int >(val5);
554f62e9
RD
33351 {
33352 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33353 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
33354 wxPyEndAllowThreads(__tstate);
33355 if (PyErr_Occurred()) SWIG_fail;
33356 }
50efceee 33357 resultobj = SWIG_Py_Void();
554f62e9 33358 {
50efceee
RD
33359 if (temp2)
33360 delete arg2;
554f62e9
RD
33361 }
33362 return resultobj;
33363fail:
33364 {
50efceee
RD
33365 if (temp2)
33366 delete arg2;
554f62e9
RD
33367 }
33368 return NULL;
33369}
33370
33371
50efceee
RD
33372SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33373 PyObject *obj;
33374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33375 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33376 return SWIG_Py_Void();
33377}
33378
33379SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33380 return SWIG_Python_InitShadowInstance(args);
33381}
33382
33383SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33384 PyObject *resultobj = 0;
50efceee 33385 wxFontList *result = 0 ;
554f62e9 33386
50efceee 33387 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
33388 {
33389 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33390 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
33391 wxPyEndAllowThreads(__tstate);
33392 if (PyErr_Occurred()) SWIG_fail;
33393 }
50efceee 33394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
33395 return resultobj;
33396fail:
33397 return NULL;
33398}
33399
33400
50efceee 33401SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33402 PyObject *resultobj = 0;
50efceee 33403 wxPenList *result = 0 ;
554f62e9 33404
50efceee 33405 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
33406 {
33407 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33408 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
33409 wxPyEndAllowThreads(__tstate);
33410 if (PyErr_Occurred()) SWIG_fail;
33411 }
50efceee 33412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
33413 return resultobj;
33414fail:
33415 return NULL;
33416}
33417
33418
50efceee
RD
33419SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33420 PyObject *resultobj = 0;
33421 wxBrushList *result = 0 ;
554f62e9 33422
50efceee
RD
33423 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33424 {
33425 PyThreadState* __tstate = wxPyBeginAllowThreads();
33426 result = (wxBrushList *)_wxPyInitTheBrushList();
33427 wxPyEndAllowThreads(__tstate);
33428 if (PyErr_Occurred()) SWIG_fail;
33429 }
33430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33431 return resultobj;
33432fail:
33433 return NULL;
554f62e9
RD
33434}
33435
33436
50efceee
RD
33437SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33438 PyObject *resultobj = 0;
33439 wxColourDatabase *result = 0 ;
554f62e9 33440
50efceee
RD
33441 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33442 {
33443 PyThreadState* __tstate = wxPyBeginAllowThreads();
33444 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33445 wxPyEndAllowThreads(__tstate);
33446 if (PyErr_Occurred()) SWIG_fail;
33447 }
33448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33449 return resultobj;
33450fail:
33451 return NULL;
554f62e9
RD
33452}
33453
33454
33455SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33456 PyObject *resultobj = 0;
33457 wxEffects *result = 0 ;
33458
33459 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33460 {
33461 PyThreadState* __tstate = wxPyBeginAllowThreads();
33462 result = (wxEffects *)new wxEffects();
33463 wxPyEndAllowThreads(__tstate);
33464 if (PyErr_Occurred()) SWIG_fail;
33465 }
33466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33467 return resultobj;
33468fail:
33469 return NULL;
33470}
33471
33472
33473SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33474 PyObject *resultobj = 0;
33475 wxEffects *arg1 = (wxEffects *) 0 ;
33476 wxColour result;
33477 void *argp1 = 0 ;
33478 int res1 = 0 ;
33479 PyObject *swig_obj[1] ;
33480
33481 if (!args) SWIG_fail;
33482 swig_obj[0] = args;
33483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33484 if (!SWIG_IsOK(res1)) {
33485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33486 }
33487 arg1 = reinterpret_cast< wxEffects * >(argp1);
33488 {
33489 PyThreadState* __tstate = wxPyBeginAllowThreads();
33490 result = ((wxEffects const *)arg1)->GetHighlightColour();
33491 wxPyEndAllowThreads(__tstate);
33492 if (PyErr_Occurred()) SWIG_fail;
33493 }
33494 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33495 return resultobj;
33496fail:
33497 return NULL;
33498}
33499
33500
33501SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33502 PyObject *resultobj = 0;
33503 wxEffects *arg1 = (wxEffects *) 0 ;
33504 wxColour result;
33505 void *argp1 = 0 ;
33506 int res1 = 0 ;
33507 PyObject *swig_obj[1] ;
33508
33509 if (!args) SWIG_fail;
33510 swig_obj[0] = args;
33511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33512 if (!SWIG_IsOK(res1)) {
33513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33514 }
33515 arg1 = reinterpret_cast< wxEffects * >(argp1);
33516 {
33517 PyThreadState* __tstate = wxPyBeginAllowThreads();
33518 result = ((wxEffects const *)arg1)->GetLightShadow();
33519 wxPyEndAllowThreads(__tstate);
33520 if (PyErr_Occurred()) SWIG_fail;
33521 }
33522 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33523 return resultobj;
33524fail:
33525 return NULL;
33526}
33527
33528
33529SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33530 PyObject *resultobj = 0;
33531 wxEffects *arg1 = (wxEffects *) 0 ;
33532 wxColour result;
33533 void *argp1 = 0 ;
33534 int res1 = 0 ;
33535 PyObject *swig_obj[1] ;
33536
33537 if (!args) SWIG_fail;
33538 swig_obj[0] = args;
33539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33540 if (!SWIG_IsOK(res1)) {
33541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33542 }
33543 arg1 = reinterpret_cast< wxEffects * >(argp1);
33544 {
33545 PyThreadState* __tstate = wxPyBeginAllowThreads();
33546 result = ((wxEffects const *)arg1)->GetFaceColour();
33547 wxPyEndAllowThreads(__tstate);
33548 if (PyErr_Occurred()) SWIG_fail;
33549 }
33550 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33551 return resultobj;
33552fail:
33553 return NULL;
33554}
33555
33556
33557SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33558 PyObject *resultobj = 0;
33559 wxEffects *arg1 = (wxEffects *) 0 ;
33560 wxColour result;
33561 void *argp1 = 0 ;
33562 int res1 = 0 ;
33563 PyObject *swig_obj[1] ;
33564
33565 if (!args) SWIG_fail;
33566 swig_obj[0] = args;
33567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33568 if (!SWIG_IsOK(res1)) {
33569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33570 }
33571 arg1 = reinterpret_cast< wxEffects * >(argp1);
33572 {
33573 PyThreadState* __tstate = wxPyBeginAllowThreads();
33574 result = ((wxEffects const *)arg1)->GetMediumShadow();
33575 wxPyEndAllowThreads(__tstate);
33576 if (PyErr_Occurred()) SWIG_fail;
33577 }
33578 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33579 return resultobj;
33580fail:
33581 return NULL;
33582}
33583
33584
33585SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33586 PyObject *resultobj = 0;
33587 wxEffects *arg1 = (wxEffects *) 0 ;
33588 wxColour result;
33589 void *argp1 = 0 ;
33590 int res1 = 0 ;
33591 PyObject *swig_obj[1] ;
33592
33593 if (!args) SWIG_fail;
33594 swig_obj[0] = args;
33595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33596 if (!SWIG_IsOK(res1)) {
33597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33598 }
33599 arg1 = reinterpret_cast< wxEffects * >(argp1);
33600 {
33601 PyThreadState* __tstate = wxPyBeginAllowThreads();
33602 result = ((wxEffects const *)arg1)->GetDarkShadow();
33603 wxPyEndAllowThreads(__tstate);
33604 if (PyErr_Occurred()) SWIG_fail;
33605 }
33606 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33607 return resultobj;
33608fail:
33609 return NULL;
33610}
33611
33612
33613SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33614 PyObject *resultobj = 0;
33615 wxEffects *arg1 = (wxEffects *) 0 ;
33616 wxColour *arg2 = 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 wxColour temp2 ;
33620 PyObject * obj0 = 0 ;
33621 PyObject * obj1 = 0 ;
33622 char * kwnames[] = {
33623 (char *) "self",(char *) "c", NULL
33624 };
33625
33626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33628 if (!SWIG_IsOK(res1)) {
33629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33630 }
33631 arg1 = reinterpret_cast< wxEffects * >(argp1);
33632 {
33633 arg2 = &temp2;
33634 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33635 }
33636 {
33637 PyThreadState* __tstate = wxPyBeginAllowThreads();
33638 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33639 wxPyEndAllowThreads(__tstate);
33640 if (PyErr_Occurred()) SWIG_fail;
33641 }
33642 resultobj = SWIG_Py_Void();
33643 return resultobj;
33644fail:
33645 return NULL;
33646}
33647
33648
33649SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33650 PyObject *resultobj = 0;
33651 wxEffects *arg1 = (wxEffects *) 0 ;
33652 wxColour *arg2 = 0 ;
33653 void *argp1 = 0 ;
33654 int res1 = 0 ;
33655 wxColour temp2 ;
33656 PyObject * obj0 = 0 ;
33657 PyObject * obj1 = 0 ;
33658 char * kwnames[] = {
33659 (char *) "self",(char *) "c", NULL
33660 };
33661
33662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33664 if (!SWIG_IsOK(res1)) {
33665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33666 }
33667 arg1 = reinterpret_cast< wxEffects * >(argp1);
33668 {
33669 arg2 = &temp2;
33670 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33671 }
33672 {
33673 PyThreadState* __tstate = wxPyBeginAllowThreads();
33674 (arg1)->SetLightShadow((wxColour const &)*arg2);
33675 wxPyEndAllowThreads(__tstate);
33676 if (PyErr_Occurred()) SWIG_fail;
33677 }
33678 resultobj = SWIG_Py_Void();
33679 return resultobj;
33680fail:
33681 return NULL;
33682}
33683
33684
33685SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33686 PyObject *resultobj = 0;
33687 wxEffects *arg1 = (wxEffects *) 0 ;
33688 wxColour *arg2 = 0 ;
33689 void *argp1 = 0 ;
33690 int res1 = 0 ;
33691 wxColour temp2 ;
33692 PyObject * obj0 = 0 ;
33693 PyObject * obj1 = 0 ;
33694 char * kwnames[] = {
33695 (char *) "self",(char *) "c", NULL
33696 };
33697
33698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33700 if (!SWIG_IsOK(res1)) {
33701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33702 }
33703 arg1 = reinterpret_cast< wxEffects * >(argp1);
33704 {
33705 arg2 = &temp2;
33706 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33707 }
33708 {
33709 PyThreadState* __tstate = wxPyBeginAllowThreads();
33710 (arg1)->SetFaceColour((wxColour const &)*arg2);
33711 wxPyEndAllowThreads(__tstate);
33712 if (PyErr_Occurred()) SWIG_fail;
33713 }
33714 resultobj = SWIG_Py_Void();
33715 return resultobj;
33716fail:
33717 return NULL;
33718}
33719
33720
33721SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33722 PyObject *resultobj = 0;
33723 wxEffects *arg1 = (wxEffects *) 0 ;
33724 wxColour *arg2 = 0 ;
33725 void *argp1 = 0 ;
33726 int res1 = 0 ;
33727 wxColour temp2 ;
33728 PyObject * obj0 = 0 ;
33729 PyObject * obj1 = 0 ;
33730 char * kwnames[] = {
33731 (char *) "self",(char *) "c", NULL
33732 };
33733
33734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33736 if (!SWIG_IsOK(res1)) {
33737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33738 }
33739 arg1 = reinterpret_cast< wxEffects * >(argp1);
33740 {
33741 arg2 = &temp2;
33742 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33743 }
33744 {
33745 PyThreadState* __tstate = wxPyBeginAllowThreads();
33746 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33747 wxPyEndAllowThreads(__tstate);
33748 if (PyErr_Occurred()) SWIG_fail;
33749 }
33750 resultobj = SWIG_Py_Void();
33751 return resultobj;
33752fail:
33753 return NULL;
33754}
33755
33756
33757SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33758 PyObject *resultobj = 0;
33759 wxEffects *arg1 = (wxEffects *) 0 ;
33760 wxColour *arg2 = 0 ;
33761 void *argp1 = 0 ;
33762 int res1 = 0 ;
33763 wxColour temp2 ;
33764 PyObject * obj0 = 0 ;
33765 PyObject * obj1 = 0 ;
33766 char * kwnames[] = {
33767 (char *) "self",(char *) "c", NULL
33768 };
33769
33770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33772 if (!SWIG_IsOK(res1)) {
33773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33774 }
33775 arg1 = reinterpret_cast< wxEffects * >(argp1);
33776 {
33777 arg2 = &temp2;
33778 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33779 }
33780 {
33781 PyThreadState* __tstate = wxPyBeginAllowThreads();
33782 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33783 wxPyEndAllowThreads(__tstate);
33784 if (PyErr_Occurred()) SWIG_fail;
33785 }
33786 resultobj = SWIG_Py_Void();
33787 return resultobj;
33788fail:
33789 return NULL;
33790}
33791
33792
33793SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33794 PyObject *resultobj = 0;
33795 wxEffects *arg1 = (wxEffects *) 0 ;
33796 wxColour *arg2 = 0 ;
33797 wxColour *arg3 = 0 ;
33798 wxColour *arg4 = 0 ;
33799 wxColour *arg5 = 0 ;
33800 wxColour *arg6 = 0 ;
33801 void *argp1 = 0 ;
33802 int res1 = 0 ;
33803 wxColour temp2 ;
33804 wxColour temp3 ;
33805 wxColour temp4 ;
33806 wxColour temp5 ;
33807 wxColour temp6 ;
33808 PyObject * obj0 = 0 ;
33809 PyObject * obj1 = 0 ;
33810 PyObject * obj2 = 0 ;
33811 PyObject * obj3 = 0 ;
33812 PyObject * obj4 = 0 ;
33813 PyObject * obj5 = 0 ;
33814 char * kwnames[] = {
33815 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33816 };
33817
33818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33820 if (!SWIG_IsOK(res1)) {
33821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33822 }
33823 arg1 = reinterpret_cast< wxEffects * >(argp1);
33824 {
33825 arg2 = &temp2;
33826 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33827 }
33828 {
33829 arg3 = &temp3;
33830 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33831 }
33832 {
33833 arg4 = &temp4;
33834 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33835 }
33836 {
33837 arg5 = &temp5;
33838 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33839 }
33840 {
33841 arg6 = &temp6;
33842 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33843 }
33844 {
33845 PyThreadState* __tstate = wxPyBeginAllowThreads();
33846 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33847 wxPyEndAllowThreads(__tstate);
33848 if (PyErr_Occurred()) SWIG_fail;
33849 }
33850 resultobj = SWIG_Py_Void();
33851 return resultobj;
33852fail:
33853 return NULL;
33854}
33855
33856
33857SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33858 PyObject *resultobj = 0;
33859 wxEffects *arg1 = (wxEffects *) 0 ;
33860 wxDC *arg2 = 0 ;
33861 wxRect *arg3 = 0 ;
33862 int arg4 = (int) 1 ;
33863 void *argp1 = 0 ;
33864 int res1 = 0 ;
33865 void *argp2 = 0 ;
33866 int res2 = 0 ;
33867 wxRect temp3 ;
33868 int val4 ;
33869 int ecode4 = 0 ;
33870 PyObject * obj0 = 0 ;
33871 PyObject * obj1 = 0 ;
33872 PyObject * obj2 = 0 ;
33873 PyObject * obj3 = 0 ;
33874 char * kwnames[] = {
33875 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33876 };
33877
33878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33880 if (!SWIG_IsOK(res1)) {
33881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33882 }
33883 arg1 = reinterpret_cast< wxEffects * >(argp1);
33884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33885 if (!SWIG_IsOK(res2)) {
33886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33887 }
33888 if (!argp2) {
33889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33890 }
33891 arg2 = reinterpret_cast< wxDC * >(argp2);
33892 {
33893 arg3 = &temp3;
33894 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33895 }
33896 if (obj3) {
33897 ecode4 = SWIG_AsVal_int(obj3, &val4);
33898 if (!SWIG_IsOK(ecode4)) {
33899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33900 }
33901 arg4 = static_cast< int >(val4);
33902 }
33903 {
33904 PyThreadState* __tstate = wxPyBeginAllowThreads();
33905 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33906 wxPyEndAllowThreads(__tstate);
33907 if (PyErr_Occurred()) SWIG_fail;
33908 }
33909 resultobj = SWIG_Py_Void();
33910 return resultobj;
33911fail:
33912 return NULL;
33913}
33914
33915
33916SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33917 PyObject *resultobj = 0;
33918 wxEffects *arg1 = (wxEffects *) 0 ;
33919 wxRect *arg2 = 0 ;
33920 wxDC *arg3 = 0 ;
33921 wxBitmap *arg4 = 0 ;
33922 bool result;
33923 void *argp1 = 0 ;
33924 int res1 = 0 ;
33925 wxRect temp2 ;
33926 void *argp3 = 0 ;
33927 int res3 = 0 ;
33928 void *argp4 = 0 ;
33929 int res4 = 0 ;
33930 PyObject * obj0 = 0 ;
33931 PyObject * obj1 = 0 ;
33932 PyObject * obj2 = 0 ;
33933 PyObject * obj3 = 0 ;
33934 char * kwnames[] = {
33935 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33936 };
33937
33938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33940 if (!SWIG_IsOK(res1)) {
33941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33942 }
33943 arg1 = reinterpret_cast< wxEffects * >(argp1);
33944 {
33945 arg2 = &temp2;
33946 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33947 }
33948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33949 if (!SWIG_IsOK(res3)) {
33950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33951 }
33952 if (!argp3) {
33953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33954 }
33955 arg3 = reinterpret_cast< wxDC * >(argp3);
33956 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33957 if (!SWIG_IsOK(res4)) {
33958 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33959 }
33960 if (!argp4) {
33961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33962 }
33963 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 {
33971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33972 }
33973 return resultobj;
33974fail:
33975 return NULL;
33976}
33977
33978
33979SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33980 PyObject *obj;
33981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33982 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33983 return SWIG_Py_Void();
33984}
33985
33986SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33987 return SWIG_Python_InitShadowInstance(args);
33988}
33989
33990SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33991 PyObject *resultobj = 0;
33992 int arg1 ;
33993 int arg2 ;
33994 bool arg3 ;
33995 wxSplitterRenderParams *result = 0 ;
33996 int val1 ;
33997 int ecode1 = 0 ;
33998 int val2 ;
33999 int ecode2 = 0 ;
34000 bool val3 ;
34001 int ecode3 = 0 ;
34002 PyObject * obj0 = 0 ;
34003 PyObject * obj1 = 0 ;
34004 PyObject * obj2 = 0 ;
34005 char * kwnames[] = {
34006 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34007 };
34008
34009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34010 ecode1 = SWIG_AsVal_int(obj0, &val1);
34011 if (!SWIG_IsOK(ecode1)) {
34012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34013 }
34014 arg1 = static_cast< int >(val1);
34015 ecode2 = SWIG_AsVal_int(obj1, &val2);
34016 if (!SWIG_IsOK(ecode2)) {
34017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34018 }
34019 arg2 = static_cast< int >(val2);
34020 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34021 if (!SWIG_IsOK(ecode3)) {
34022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34023 }
34024 arg3 = static_cast< bool >(val3);
34025 {
34026 PyThreadState* __tstate = wxPyBeginAllowThreads();
34027 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34028 wxPyEndAllowThreads(__tstate);
34029 if (PyErr_Occurred()) SWIG_fail;
34030 }
34031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34032 return resultobj;
34033fail:
34034 return NULL;
34035}
34036
34037
34038SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34039 PyObject *resultobj = 0;
34040 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34041 void *argp1 = 0 ;
34042 int res1 = 0 ;
34043 PyObject *swig_obj[1] ;
34044
34045 if (!args) SWIG_fail;
34046 swig_obj[0] = args;
34047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34048 if (!SWIG_IsOK(res1)) {
34049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34050 }
34051 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34052 {
34053 PyThreadState* __tstate = wxPyBeginAllowThreads();
34054 delete arg1;
34055
34056 wxPyEndAllowThreads(__tstate);
34057 if (PyErr_Occurred()) SWIG_fail;
34058 }
34059 resultobj = SWIG_Py_Void();
34060 return resultobj;
34061fail:
34062 return NULL;
34063}
34064
34065
34066SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34067 PyObject *resultobj = 0;
34068 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34069 int result;
34070 void *argp1 = 0 ;
34071 int res1 = 0 ;
34072 PyObject *swig_obj[1] ;
34073
34074 if (!args) SWIG_fail;
34075 swig_obj[0] = args;
34076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34077 if (!SWIG_IsOK(res1)) {
34078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34079 }
34080 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34081 result = (int)(int) ((arg1)->widthSash);
34082 resultobj = SWIG_From_int(static_cast< int >(result));
34083 return resultobj;
34084fail:
34085 return NULL;
34086}
34087
34088
34089SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34090 PyObject *resultobj = 0;
34091 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34092 int result;
34093 void *argp1 = 0 ;
34094 int res1 = 0 ;
34095 PyObject *swig_obj[1] ;
34096
34097 if (!args) SWIG_fail;
34098 swig_obj[0] = args;
34099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34100 if (!SWIG_IsOK(res1)) {
34101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34102 }
34103 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34104 result = (int)(int) ((arg1)->border);
34105 resultobj = SWIG_From_int(static_cast< int >(result));
34106 return resultobj;
34107fail:
34108 return NULL;
34109}
34110
34111
34112SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34113 PyObject *resultobj = 0;
34114 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34115 bool result;
34116 void *argp1 = 0 ;
34117 int res1 = 0 ;
34118 PyObject *swig_obj[1] ;
34119
34120 if (!args) SWIG_fail;
34121 swig_obj[0] = args;
34122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34123 if (!SWIG_IsOK(res1)) {
34124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34125 }
34126 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34127 result = (bool)(bool) ((arg1)->isHotSensitive);
34128 resultobj = SWIG_From_bool(static_cast< bool >(result));
34129 return resultobj;
34130fail:
34131 return NULL;
34132}
34133
34134
34135SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34136 PyObject *obj;
34137 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34138 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34139 return SWIG_Py_Void();
34140}
34141
34142SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34143 return SWIG_Python_InitShadowInstance(args);
34144}
34145
33d6fd3b
RD
34146SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34147 PyObject *resultobj = 0;
34148 wxHeaderButtonParams *result = 0 ;
34149
34150 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34151 {
34152 PyThreadState* __tstate = wxPyBeginAllowThreads();
34153 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34154 wxPyEndAllowThreads(__tstate);
34155 if (PyErr_Occurred()) SWIG_fail;
34156 }
34157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34158 return resultobj;
34159fail:
34160 return NULL;
34161}
34162
34163
34164SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34165 PyObject *resultobj = 0;
34166 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34167 void *argp1 = 0 ;
34168 int res1 = 0 ;
34169 PyObject *swig_obj[1] ;
34170
34171 if (!args) SWIG_fail;
34172 swig_obj[0] = args;
34173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34174 if (!SWIG_IsOK(res1)) {
34175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34176 }
34177 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34178 {
34179 PyThreadState* __tstate = wxPyBeginAllowThreads();
34180 delete arg1;
34181
34182 wxPyEndAllowThreads(__tstate);
34183 if (PyErr_Occurred()) SWIG_fail;
34184 }
34185 resultobj = SWIG_Py_Void();
34186 return resultobj;
34187fail:
34188 return NULL;
34189}
34190
34191
34192SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34193 PyObject *resultobj = 0;
34194 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34195 wxColour *arg2 = (wxColour *) 0 ;
34196 void *argp1 = 0 ;
34197 int res1 = 0 ;
34198 wxColour temp2 ;
34199 PyObject *swig_obj[2] ;
34200
34201 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34203 if (!SWIG_IsOK(res1)) {
34204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34205 }
34206 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34207 {
34208 arg2 = &temp2;
34209 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34210 }
34211 if (arg1) (arg1)->m_arrowColour = *arg2;
34212
34213 resultobj = SWIG_Py_Void();
34214 return resultobj;
34215fail:
34216 return NULL;
34217}
34218
34219
34220SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34221 PyObject *resultobj = 0;
34222 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34223 wxColour *result = 0 ;
34224 void *argp1 = 0 ;
34225 int res1 = 0 ;
34226 PyObject *swig_obj[1] ;
34227
34228 if (!args) SWIG_fail;
34229 swig_obj[0] = args;
34230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34231 if (!SWIG_IsOK(res1)) {
34232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34233 }
34234 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34235 result = (wxColour *)& ((arg1)->m_arrowColour);
34236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34237 return resultobj;
34238fail:
34239 return NULL;
34240}
34241
34242
34243SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34244 PyObject *resultobj = 0;
34245 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34246 wxColour *arg2 = (wxColour *) 0 ;
34247 void *argp1 = 0 ;
34248 int res1 = 0 ;
34249 wxColour temp2 ;
34250 PyObject *swig_obj[2] ;
34251
34252 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34254 if (!SWIG_IsOK(res1)) {
34255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34256 }
34257 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34258 {
34259 arg2 = &temp2;
34260 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34261 }
34262 if (arg1) (arg1)->m_selectionColour = *arg2;
34263
34264 resultobj = SWIG_Py_Void();
34265 return resultobj;
34266fail:
34267 return NULL;
34268}
34269
34270
34271SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34272 PyObject *resultobj = 0;
34273 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34274 wxColour *result = 0 ;
34275 void *argp1 = 0 ;
34276 int res1 = 0 ;
34277 PyObject *swig_obj[1] ;
34278
34279 if (!args) SWIG_fail;
34280 swig_obj[0] = args;
34281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34282 if (!SWIG_IsOK(res1)) {
34283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34284 }
34285 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34286 result = (wxColour *)& ((arg1)->m_selectionColour);
34287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34288 return resultobj;
34289fail:
34290 return NULL;
34291}
34292
34293
34294SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34295 PyObject *resultobj = 0;
34296 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34297 wxString *arg2 = (wxString *) 0 ;
34298 void *argp1 = 0 ;
34299 int res1 = 0 ;
34300 bool temp2 = false ;
34301 PyObject *swig_obj[2] ;
34302
34303 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34305 if (!SWIG_IsOK(res1)) {
34306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34307 }
34308 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34309 {
34310 arg2 = wxString_in_helper(swig_obj[1]);
34311 if (arg2 == NULL) SWIG_fail;
34312 temp2 = true;
34313 }
34314 if (arg1) (arg1)->m_labelText = *arg2;
34315
34316 resultobj = SWIG_Py_Void();
34317 {
34318 if (temp2)
34319 delete arg2;
34320 }
34321 return resultobj;
34322fail:
34323 {
34324 if (temp2)
34325 delete arg2;
34326 }
34327 return NULL;
34328}
34329
34330
34331SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34332 PyObject *resultobj = 0;
34333 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34334 wxString *result = 0 ;
34335 void *argp1 = 0 ;
34336 int res1 = 0 ;
34337 PyObject *swig_obj[1] ;
34338
34339 if (!args) SWIG_fail;
34340 swig_obj[0] = args;
34341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34342 if (!SWIG_IsOK(res1)) {
34343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34344 }
34345 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34346 result = (wxString *)& ((arg1)->m_labelText);
34347 {
34348#if wxUSE_UNICODE
34349 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34350#else
34351 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34352#endif
34353 }
34354 return resultobj;
34355fail:
34356 return NULL;
34357}
34358
34359
34360SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34361 PyObject *resultobj = 0;
34362 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34363 wxFont *arg2 = (wxFont *) 0 ;
34364 void *argp1 = 0 ;
34365 int res1 = 0 ;
34366 void *argp2 = 0 ;
34367 int res2 = 0 ;
34368 PyObject *swig_obj[2] ;
34369
34370 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34372 if (!SWIG_IsOK(res1)) {
34373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34374 }
34375 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34376 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34377 if (!SWIG_IsOK(res2)) {
34378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34379 }
34380 arg2 = reinterpret_cast< wxFont * >(argp2);
34381 if (arg1) (arg1)->m_labelFont = *arg2;
34382
34383 resultobj = SWIG_Py_Void();
34384 return resultobj;
34385fail:
34386 return NULL;
34387}
34388
34389
34390SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34391 PyObject *resultobj = 0;
34392 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34393 wxFont *result = 0 ;
34394 void *argp1 = 0 ;
34395 int res1 = 0 ;
34396 PyObject *swig_obj[1] ;
34397
34398 if (!args) SWIG_fail;
34399 swig_obj[0] = args;
34400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34401 if (!SWIG_IsOK(res1)) {
34402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34403 }
34404 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34405 result = (wxFont *)& ((arg1)->m_labelFont);
34406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34407 return resultobj;
34408fail:
34409 return NULL;
34410}
34411
34412
34413SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34414 PyObject *resultobj = 0;
34415 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34416 wxColour *arg2 = (wxColour *) 0 ;
34417 void *argp1 = 0 ;
34418 int res1 = 0 ;
34419 wxColour temp2 ;
34420 PyObject *swig_obj[2] ;
34421
34422 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34424 if (!SWIG_IsOK(res1)) {
34425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34426 }
34427 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34428 {
34429 arg2 = &temp2;
34430 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34431 }
34432 if (arg1) (arg1)->m_labelColour = *arg2;
34433
34434 resultobj = SWIG_Py_Void();
34435 return resultobj;
34436fail:
34437 return NULL;
34438}
34439
34440
34441SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34442 PyObject *resultobj = 0;
34443 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34444 wxColour *result = 0 ;
34445 void *argp1 = 0 ;
34446 int res1 = 0 ;
34447 PyObject *swig_obj[1] ;
34448
34449 if (!args) SWIG_fail;
34450 swig_obj[0] = args;
34451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34452 if (!SWIG_IsOK(res1)) {
34453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34454 }
34455 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34456 result = (wxColour *)& ((arg1)->m_labelColour);
34457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34458 return resultobj;
34459fail:
34460 return NULL;
34461}
34462
34463
34464SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34465 PyObject *resultobj = 0;
34466 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34467 wxBitmap *arg2 = (wxBitmap *) 0 ;
34468 void *argp1 = 0 ;
34469 int res1 = 0 ;
34470 void *argp2 = 0 ;
34471 int res2 = 0 ;
34472 PyObject *swig_obj[2] ;
34473
34474 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34476 if (!SWIG_IsOK(res1)) {
34477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34478 }
34479 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34480 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34481 if (!SWIG_IsOK(res2)) {
34482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34483 }
34484 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34485 if (arg1) (arg1)->m_labelBitmap = *arg2;
34486
34487 resultobj = SWIG_Py_Void();
34488 return resultobj;
34489fail:
34490 return NULL;
34491}
34492
34493
34494SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34495 PyObject *resultobj = 0;
34496 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34497 wxBitmap *result = 0 ;
34498 void *argp1 = 0 ;
34499 int res1 = 0 ;
34500 PyObject *swig_obj[1] ;
34501
34502 if (!args) SWIG_fail;
34503 swig_obj[0] = args;
34504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34505 if (!SWIG_IsOK(res1)) {
34506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34507 }
34508 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34509 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34511 return resultobj;
34512fail:
34513 return NULL;
34514}
34515
34516
34517SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34518 PyObject *resultobj = 0;
34519 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34520 int arg2 ;
34521 void *argp1 = 0 ;
34522 int res1 = 0 ;
34523 int val2 ;
34524 int ecode2 = 0 ;
34525 PyObject *swig_obj[2] ;
34526
34527 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34529 if (!SWIG_IsOK(res1)) {
34530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34531 }
34532 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34533 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34534 if (!SWIG_IsOK(ecode2)) {
34535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34536 }
34537 arg2 = static_cast< int >(val2);
34538 if (arg1) (arg1)->m_labelAlignment = arg2;
34539
34540 resultobj = SWIG_Py_Void();
34541 return resultobj;
34542fail:
34543 return NULL;
34544}
34545
34546
34547SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34548 PyObject *resultobj = 0;
34549 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34550 int result;
34551 void *argp1 = 0 ;
34552 int res1 = 0 ;
34553 PyObject *swig_obj[1] ;
34554
34555 if (!args) SWIG_fail;
34556 swig_obj[0] = args;
34557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34558 if (!SWIG_IsOK(res1)) {
34559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34560 }
34561 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34562 result = (int) ((arg1)->m_labelAlignment);
34563 resultobj = SWIG_From_int(static_cast< int >(result));
34564 return resultobj;
34565fail:
34566 return NULL;
34567}
34568
34569
34570SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34571 PyObject *obj;
34572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34573 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34574 return SWIG_Py_Void();
34575}
34576
34577SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34578 return SWIG_Python_InitShadowInstance(args);
34579}
34580
554f62e9
RD
34581SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34582 PyObject *resultobj = 0;
34583 int arg1 ;
34584 int arg2 ;
34585 wxRendererVersion *result = 0 ;
34586 int val1 ;
34587 int ecode1 = 0 ;
34588 int val2 ;
34589 int ecode2 = 0 ;
34590 PyObject * obj0 = 0 ;
34591 PyObject * obj1 = 0 ;
34592 char * kwnames[] = {
34593 (char *) "version_",(char *) "age_", NULL
34594 };
34595
34596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34597 ecode1 = SWIG_AsVal_int(obj0, &val1);
34598 if (!SWIG_IsOK(ecode1)) {
34599 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34600 }
34601 arg1 = static_cast< int >(val1);
34602 ecode2 = SWIG_AsVal_int(obj1, &val2);
34603 if (!SWIG_IsOK(ecode2)) {
34604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34605 }
34606 arg2 = static_cast< int >(val2);
34607 {
34608 PyThreadState* __tstate = wxPyBeginAllowThreads();
34609 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34610 wxPyEndAllowThreads(__tstate);
34611 if (PyErr_Occurred()) SWIG_fail;
34612 }
34613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34614 return resultobj;
34615fail:
34616 return NULL;
34617}
34618
34619
34620SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34621 PyObject *resultobj = 0;
34622 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34623 void *argp1 = 0 ;
34624 int res1 = 0 ;
34625 PyObject *swig_obj[1] ;
34626
34627 if (!args) SWIG_fail;
34628 swig_obj[0] = args;
34629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34630 if (!SWIG_IsOK(res1)) {
34631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34632 }
34633 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34634 {
34635 PyThreadState* __tstate = wxPyBeginAllowThreads();
34636 delete arg1;
34637
34638 wxPyEndAllowThreads(__tstate);
34639 if (PyErr_Occurred()) SWIG_fail;
34640 }
34641 resultobj = SWIG_Py_Void();
34642 return resultobj;
34643fail:
34644 return NULL;
34645}
34646
34647
34648SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34649 PyObject *resultobj = 0;
34650 wxRendererVersion *arg1 = 0 ;
34651 bool result;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 PyObject * obj0 = 0 ;
34655 char * kwnames[] = {
34656 (char *) "ver", NULL
34657 };
34658
34659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34660 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34661 if (!SWIG_IsOK(res1)) {
34662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34663 }
34664 if (!argp1) {
34665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34666 }
34667 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34668 {
34669 PyThreadState* __tstate = wxPyBeginAllowThreads();
34670 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34671 wxPyEndAllowThreads(__tstate);
34672 if (PyErr_Occurred()) SWIG_fail;
34673 }
34674 {
34675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34676 }
34677 return resultobj;
34678fail:
34679 return NULL;
34680}
34681
34682
34683SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34684 PyObject *resultobj = 0;
34685 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34686 int result;
34687 void *argp1 = 0 ;
34688 int res1 = 0 ;
34689 PyObject *swig_obj[1] ;
34690
34691 if (!args) SWIG_fail;
34692 swig_obj[0] = args;
34693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34694 if (!SWIG_IsOK(res1)) {
34695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34696 }
34697 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34698 result = (int)(int) ((arg1)->version);
34699 resultobj = SWIG_From_int(static_cast< int >(result));
34700 return resultobj;
34701fail:
34702 return NULL;
34703}
34704
34705
34706SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34707 PyObject *resultobj = 0;
34708 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34709 int result;
34710 void *argp1 = 0 ;
34711 int res1 = 0 ;
34712 PyObject *swig_obj[1] ;
34713
34714 if (!args) SWIG_fail;
34715 swig_obj[0] = args;
34716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34717 if (!SWIG_IsOK(res1)) {
34718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34719 }
34720 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34721 result = (int)(int) ((arg1)->age);
34722 resultobj = SWIG_From_int(static_cast< int >(result));
34723 return resultobj;
34724fail:
34725 return NULL;
34726}
34727
34728
34729SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34730 PyObject *obj;
34731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34732 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34733 return SWIG_Py_Void();
34734}
34735
34736SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34737 return SWIG_Python_InitShadowInstance(args);
34738}
34739
34740SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34741 PyObject *resultobj = 0;
34742 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34743 wxWindow *arg2 = (wxWindow *) 0 ;
34744 wxDC *arg3 = 0 ;
34745 wxRect *arg4 = 0 ;
34746 int arg5 = (int) 0 ;
33d6fd3b
RD
34747 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34748 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
554f62e9
RD
34749 void *argp1 = 0 ;
34750 int res1 = 0 ;
34751 void *argp2 = 0 ;
34752 int res2 = 0 ;
34753 void *argp3 = 0 ;
34754 int res3 = 0 ;
34755 wxRect temp4 ;
34756 int val5 ;
34757 int ecode5 = 0 ;
33d6fd3b
RD
34758 int val6 ;
34759 int ecode6 = 0 ;
34760 void *argp7 = 0 ;
34761 int res7 = 0 ;
554f62e9
RD
34762 PyObject * obj0 = 0 ;
34763 PyObject * obj1 = 0 ;
34764 PyObject * obj2 = 0 ;
34765 PyObject * obj3 = 0 ;
34766 PyObject * obj4 = 0 ;
33d6fd3b
RD
34767 PyObject * obj5 = 0 ;
34768 PyObject * obj6 = 0 ;
554f62e9 34769 char * kwnames[] = {
33d6fd3b 34770 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
34771 };
34772
33d6fd3b 34773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
34774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34775 if (!SWIG_IsOK(res1)) {
34776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34777 }
34778 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34780 if (!SWIG_IsOK(res2)) {
34781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34782 }
34783 arg2 = reinterpret_cast< wxWindow * >(argp2);
34784 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34785 if (!SWIG_IsOK(res3)) {
34786 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34787 }
34788 if (!argp3) {
34789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34790 }
34791 arg3 = reinterpret_cast< wxDC * >(argp3);
34792 {
34793 arg4 = &temp4;
34794 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34795 }
34796 if (obj4) {
34797 ecode5 = SWIG_AsVal_int(obj4, &val5);
34798 if (!SWIG_IsOK(ecode5)) {
34799 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34800 }
34801 arg5 = static_cast< int >(val5);
34802 }
33d6fd3b
RD
34803 if (obj5) {
34804 ecode6 = SWIG_AsVal_int(obj5, &val6);
34805 if (!SWIG_IsOK(ecode6)) {
34806 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34807 }
34808 arg6 = static_cast< wxHeaderSortIconType >(val6);
34809 }
34810 if (obj6) {
34811 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34812 if (!SWIG_IsOK(res7)) {
34813 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34814 }
34815 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34816 }
34817 {
34818 PyThreadState* __tstate = wxPyBeginAllowThreads();
34819 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34820 wxPyEndAllowThreads(__tstate);
34821 if (PyErr_Occurred()) SWIG_fail;
34822 }
34823 resultobj = SWIG_Py_Void();
34824 return resultobj;
34825fail:
34826 return NULL;
34827}
34828
34829
34830SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34831 PyObject *resultobj = 0;
34832 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34833 wxWindow *arg2 = (wxWindow *) 0 ;
34834 wxDC *arg3 = 0 ;
34835 wxRect *arg4 = 0 ;
34836 int arg5 = (int) 0 ;
34837 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34838 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34839 void *argp1 = 0 ;
34840 int res1 = 0 ;
34841 void *argp2 = 0 ;
34842 int res2 = 0 ;
34843 void *argp3 = 0 ;
34844 int res3 = 0 ;
34845 wxRect temp4 ;
34846 int val5 ;
34847 int ecode5 = 0 ;
34848 int val6 ;
34849 int ecode6 = 0 ;
34850 void *argp7 = 0 ;
34851 int res7 = 0 ;
34852 PyObject * obj0 = 0 ;
34853 PyObject * obj1 = 0 ;
34854 PyObject * obj2 = 0 ;
34855 PyObject * obj3 = 0 ;
34856 PyObject * obj4 = 0 ;
34857 PyObject * obj5 = 0 ;
34858 PyObject * obj6 = 0 ;
34859 char * kwnames[] = {
34860 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34861 };
34862
34863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34865 if (!SWIG_IsOK(res1)) {
34866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34867 }
34868 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34869 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34870 if (!SWIG_IsOK(res2)) {
34871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34872 }
34873 arg2 = reinterpret_cast< wxWindow * >(argp2);
34874 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34875 if (!SWIG_IsOK(res3)) {
34876 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34877 }
34878 if (!argp3) {
34879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34880 }
34881 arg3 = reinterpret_cast< wxDC * >(argp3);
34882 {
34883 arg4 = &temp4;
34884 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34885 }
34886 if (obj4) {
34887 ecode5 = SWIG_AsVal_int(obj4, &val5);
34888 if (!SWIG_IsOK(ecode5)) {
34889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34890 }
34891 arg5 = static_cast< int >(val5);
34892 }
34893 if (obj5) {
34894 ecode6 = SWIG_AsVal_int(obj5, &val6);
34895 if (!SWIG_IsOK(ecode6)) {
34896 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34897 }
34898 arg6 = static_cast< wxHeaderSortIconType >(val6);
34899 }
34900 if (obj6) {
34901 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34902 if (!SWIG_IsOK(res7)) {
34903 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34904 }
34905 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34906 }
554f62e9
RD
34907 {
34908 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34909 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
34910 wxPyEndAllowThreads(__tstate);
34911 if (PyErr_Occurred()) SWIG_fail;
34912 }
34913 resultobj = SWIG_Py_Void();
34914 return resultobj;
34915fail:
34916 return NULL;
34917}
34918
34919
33d6fd3b
RD
34920SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34921 PyObject *resultobj = 0;
34922 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34923 wxWindow *arg2 = (wxWindow *) 0 ;
34924 int result;
34925 void *argp1 = 0 ;
34926 int res1 = 0 ;
34927 void *argp2 = 0 ;
34928 int res2 = 0 ;
34929 PyObject * obj0 = 0 ;
34930 PyObject * obj1 = 0 ;
34931 char * kwnames[] = {
34932 (char *) "self",(char *) "win", NULL
34933 };
34934
34935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34937 if (!SWIG_IsOK(res1)) {
34938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34939 }
34940 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34942 if (!SWIG_IsOK(res2)) {
34943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34944 }
34945 arg2 = reinterpret_cast< wxWindow * >(argp2);
34946 {
34947 PyThreadState* __tstate = wxPyBeginAllowThreads();
34948 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34949 wxPyEndAllowThreads(__tstate);
34950 if (PyErr_Occurred()) SWIG_fail;
34951 }
34952 resultobj = SWIG_From_int(static_cast< int >(result));
34953 return resultobj;
34954fail:
34955 return NULL;
34956}
34957
34958
554f62e9
RD
34959SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34960 PyObject *resultobj = 0;
34961 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34962 wxWindow *arg2 = (wxWindow *) 0 ;
34963 wxDC *arg3 = 0 ;
34964 wxRect *arg4 = 0 ;
34965 int arg5 = (int) 0 ;
34966 void *argp1 = 0 ;
34967 int res1 = 0 ;
34968 void *argp2 = 0 ;
34969 int res2 = 0 ;
34970 void *argp3 = 0 ;
34971 int res3 = 0 ;
34972 wxRect temp4 ;
34973 int val5 ;
34974 int ecode5 = 0 ;
34975 PyObject * obj0 = 0 ;
34976 PyObject * obj1 = 0 ;
34977 PyObject * obj2 = 0 ;
34978 PyObject * obj3 = 0 ;
34979 PyObject * obj4 = 0 ;
34980 char * kwnames[] = {
34981 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34982 };
34983
34984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34986 if (!SWIG_IsOK(res1)) {
34987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34988 }
34989 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34990 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34991 if (!SWIG_IsOK(res2)) {
34992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34993 }
34994 arg2 = reinterpret_cast< wxWindow * >(argp2);
34995 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34996 if (!SWIG_IsOK(res3)) {
34997 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34998 }
34999 if (!argp3) {
35000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35001 }
35002 arg3 = reinterpret_cast< wxDC * >(argp3);
35003 {
35004 arg4 = &temp4;
35005 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35006 }
35007 if (obj4) {
35008 ecode5 = SWIG_AsVal_int(obj4, &val5);
35009 if (!SWIG_IsOK(ecode5)) {
35010 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35011 }
35012 arg5 = static_cast< int >(val5);
35013 }
35014 {
35015 PyThreadState* __tstate = wxPyBeginAllowThreads();
35016 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35017 wxPyEndAllowThreads(__tstate);
35018 if (PyErr_Occurred()) SWIG_fail;
35019 }
35020 resultobj = SWIG_Py_Void();
35021 return resultobj;
35022fail:
35023 return NULL;
35024}
35025
35026
35027SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35028 PyObject *resultobj = 0;
35029 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35030 wxWindow *arg2 = (wxWindow *) 0 ;
35031 wxDC *arg3 = 0 ;
35032 wxRect *arg4 = 0 ;
35033 int arg5 = (int) 0 ;
35034 void *argp1 = 0 ;
35035 int res1 = 0 ;
35036 void *argp2 = 0 ;
35037 int res2 = 0 ;
35038 void *argp3 = 0 ;
35039 int res3 = 0 ;
35040 wxRect temp4 ;
35041 int val5 ;
35042 int ecode5 = 0 ;
35043 PyObject * obj0 = 0 ;
35044 PyObject * obj1 = 0 ;
35045 PyObject * obj2 = 0 ;
35046 PyObject * obj3 = 0 ;
35047 PyObject * obj4 = 0 ;
35048 char * kwnames[] = {
35049 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35050 };
35051
35052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35054 if (!SWIG_IsOK(res1)) {
35055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35056 }
35057 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35059 if (!SWIG_IsOK(res2)) {
35060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35061 }
35062 arg2 = reinterpret_cast< wxWindow * >(argp2);
35063 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35064 if (!SWIG_IsOK(res3)) {
35065 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35066 }
35067 if (!argp3) {
35068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35069 }
35070 arg3 = reinterpret_cast< wxDC * >(argp3);
35071 {
35072 arg4 = &temp4;
35073 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35074 }
35075 if (obj4) {
35076 ecode5 = SWIG_AsVal_int(obj4, &val5);
35077 if (!SWIG_IsOK(ecode5)) {
35078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35079 }
35080 arg5 = static_cast< int >(val5);
35081 }
35082 {
35083 PyThreadState* __tstate = wxPyBeginAllowThreads();
35084 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35085 wxPyEndAllowThreads(__tstate);
35086 if (PyErr_Occurred()) SWIG_fail;
35087 }
35088 resultobj = SWIG_Py_Void();
35089 return resultobj;
35090fail:
35091 return NULL;
35092}
35093
35094
35095SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35096 PyObject *resultobj = 0;
35097 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35098 wxWindow *arg2 = (wxWindow *) 0 ;
35099 wxDC *arg3 = 0 ;
35100 wxSize *arg4 = 0 ;
35101 int arg5 ;
35102 wxOrientation arg6 ;
35103 int arg7 = (int) 0 ;
35104 void *argp1 = 0 ;
35105 int res1 = 0 ;
35106 void *argp2 = 0 ;
35107 int res2 = 0 ;
35108 void *argp3 = 0 ;
35109 int res3 = 0 ;
35110 wxSize temp4 ;
35111 int val5 ;
35112 int ecode5 = 0 ;
35113 int val6 ;
35114 int ecode6 = 0 ;
35115 int val7 ;
35116 int ecode7 = 0 ;
35117 PyObject * obj0 = 0 ;
35118 PyObject * obj1 = 0 ;
35119 PyObject * obj2 = 0 ;
35120 PyObject * obj3 = 0 ;
35121 PyObject * obj4 = 0 ;
35122 PyObject * obj5 = 0 ;
35123 PyObject * obj6 = 0 ;
35124 char * kwnames[] = {
35125 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35126 };
35127
35128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35130 if (!SWIG_IsOK(res1)) {
35131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35132 }
35133 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35134 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35135 if (!SWIG_IsOK(res2)) {
35136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35137 }
35138 arg2 = reinterpret_cast< wxWindow * >(argp2);
35139 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35140 if (!SWIG_IsOK(res3)) {
35141 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35142 }
35143 if (!argp3) {
35144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35145 }
35146 arg3 = reinterpret_cast< wxDC * >(argp3);
35147 {
35148 arg4 = &temp4;
35149 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35150 }
35151 ecode5 = SWIG_AsVal_int(obj4, &val5);
35152 if (!SWIG_IsOK(ecode5)) {
35153 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35154 }
35155 arg5 = static_cast< int >(val5);
35156 ecode6 = SWIG_AsVal_int(obj5, &val6);
35157 if (!SWIG_IsOK(ecode6)) {
35158 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35159 }
35160 arg6 = static_cast< wxOrientation >(val6);
35161 if (obj6) {
35162 ecode7 = SWIG_AsVal_int(obj6, &val7);
35163 if (!SWIG_IsOK(ecode7)) {
35164 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35165 }
35166 arg7 = static_cast< int >(val7);
35167 }
35168 {
35169 PyThreadState* __tstate = wxPyBeginAllowThreads();
35170 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35171 wxPyEndAllowThreads(__tstate);
35172 if (PyErr_Occurred()) SWIG_fail;
35173 }
35174 resultobj = SWIG_Py_Void();
35175 return resultobj;
35176fail:
35177 return NULL;
35178}
35179
35180
35181SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35182 PyObject *resultobj = 0;
35183 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35184 wxWindow *arg2 = (wxWindow *) 0 ;
35185 wxDC *arg3 = 0 ;
35186 wxRect *arg4 = 0 ;
35187 int arg5 = (int) 0 ;
35188 void *argp1 = 0 ;
35189 int res1 = 0 ;
35190 void *argp2 = 0 ;
35191 int res2 = 0 ;
35192 void *argp3 = 0 ;
35193 int res3 = 0 ;
35194 wxRect temp4 ;
35195 int val5 ;
35196 int ecode5 = 0 ;
35197 PyObject * obj0 = 0 ;
35198 PyObject * obj1 = 0 ;
35199 PyObject * obj2 = 0 ;
35200 PyObject * obj3 = 0 ;
35201 PyObject * obj4 = 0 ;
35202 char * kwnames[] = {
35203 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35204 };
35205
35206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35208 if (!SWIG_IsOK(res1)) {
35209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35210 }
35211 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35212 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35213 if (!SWIG_IsOK(res2)) {
35214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35215 }
35216 arg2 = reinterpret_cast< wxWindow * >(argp2);
35217 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35218 if (!SWIG_IsOK(res3)) {
35219 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35220 }
35221 if (!argp3) {
35222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35223 }
35224 arg3 = reinterpret_cast< wxDC * >(argp3);
35225 {
35226 arg4 = &temp4;
35227 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35228 }
35229 if (obj4) {
35230 ecode5 = SWIG_AsVal_int(obj4, &val5);
35231 if (!SWIG_IsOK(ecode5)) {
35232 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35233 }
35234 arg5 = static_cast< int >(val5);
35235 }
35236 {
35237 PyThreadState* __tstate = wxPyBeginAllowThreads();
35238 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35239 wxPyEndAllowThreads(__tstate);
35240 if (PyErr_Occurred()) SWIG_fail;
35241 }
35242 resultobj = SWIG_Py_Void();
35243 return resultobj;
35244fail:
35245 return NULL;
35246}
35247
35248
35249SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35250 PyObject *resultobj = 0;
35251 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35252 wxWindow *arg2 = (wxWindow *) 0 ;
35253 wxDC *arg3 = 0 ;
35254 wxRect *arg4 = 0 ;
35255 int arg5 = (int) 0 ;
35256 void *argp1 = 0 ;
35257 int res1 = 0 ;
35258 void *argp2 = 0 ;
35259 int res2 = 0 ;
35260 void *argp3 = 0 ;
35261 int res3 = 0 ;
35262 wxRect temp4 ;
35263 int val5 ;
35264 int ecode5 = 0 ;
35265 PyObject * obj0 = 0 ;
35266 PyObject * obj1 = 0 ;
35267 PyObject * obj2 = 0 ;
35268 PyObject * obj3 = 0 ;
35269 PyObject * obj4 = 0 ;
35270 char * kwnames[] = {
35271 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35272 };
35273
35274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35278 }
35279 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35281 if (!SWIG_IsOK(res2)) {
35282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35283 }
35284 arg2 = reinterpret_cast< wxWindow * >(argp2);
35285 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35286 if (!SWIG_IsOK(res3)) {
35287 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35288 }
35289 if (!argp3) {
35290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35291 }
35292 arg3 = reinterpret_cast< wxDC * >(argp3);
35293 {
35294 arg4 = &temp4;
35295 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35296 }
35297 if (obj4) {
35298 ecode5 = SWIG_AsVal_int(obj4, &val5);
35299 if (!SWIG_IsOK(ecode5)) {
35300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35301 }
35302 arg5 = static_cast< int >(val5);
35303 }
35304 {
35305 PyThreadState* __tstate = wxPyBeginAllowThreads();
35306 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35307 wxPyEndAllowThreads(__tstate);
35308 if (PyErr_Occurred()) SWIG_fail;
35309 }
35310 resultobj = SWIG_Py_Void();
35311 return resultobj;
35312fail:
35313 return NULL;
35314}
35315
35316
f460c29d
RD
35317SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35318 PyObject *resultobj = 0;
35319 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35320 wxWindow *arg2 = (wxWindow *) 0 ;
35321 wxDC *arg3 = 0 ;
35322 wxRect *arg4 = 0 ;
35323 int arg5 = (int) 0 ;
35324 void *argp1 = 0 ;
35325 int res1 = 0 ;
35326 void *argp2 = 0 ;
35327 int res2 = 0 ;
35328 void *argp3 = 0 ;
35329 int res3 = 0 ;
35330 wxRect temp4 ;
35331 int val5 ;
35332 int ecode5 = 0 ;
35333 PyObject * obj0 = 0 ;
35334 PyObject * obj1 = 0 ;
35335 PyObject * obj2 = 0 ;
35336 PyObject * obj3 = 0 ;
35337 PyObject * obj4 = 0 ;
35338 char * kwnames[] = {
35339 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35340 };
35341
35342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35344 if (!SWIG_IsOK(res1)) {
35345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35346 }
35347 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35349 if (!SWIG_IsOK(res2)) {
35350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35351 }
35352 arg2 = reinterpret_cast< wxWindow * >(argp2);
35353 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35354 if (!SWIG_IsOK(res3)) {
35355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35356 }
35357 if (!argp3) {
35358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35359 }
35360 arg3 = reinterpret_cast< wxDC * >(argp3);
35361 {
35362 arg4 = &temp4;
35363 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35364 }
35365 if (obj4) {
35366 ecode5 = SWIG_AsVal_int(obj4, &val5);
35367 if (!SWIG_IsOK(ecode5)) {
35368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35369 }
35370 arg5 = static_cast< int >(val5);
35371 }
35372 {
35373 PyThreadState* __tstate = wxPyBeginAllowThreads();
35374 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35375 wxPyEndAllowThreads(__tstate);
35376 if (PyErr_Occurred()) SWIG_fail;
35377 }
35378 resultobj = SWIG_Py_Void();
35379 return resultobj;
35380fail:
35381 return NULL;
35382}
35383
35384
35385SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35386 PyObject *resultobj = 0;
35387 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35388 wxWindow *arg2 = (wxWindow *) 0 ;
35389 wxDC *arg3 = 0 ;
35390 wxRect *arg4 = 0 ;
35391 int arg5 = (int) 0 ;
35392 void *argp1 = 0 ;
35393 int res1 = 0 ;
35394 void *argp2 = 0 ;
35395 int res2 = 0 ;
35396 void *argp3 = 0 ;
35397 int res3 = 0 ;
35398 wxRect temp4 ;
35399 int val5 ;
35400 int ecode5 = 0 ;
35401 PyObject * obj0 = 0 ;
35402 PyObject * obj1 = 0 ;
35403 PyObject * obj2 = 0 ;
35404 PyObject * obj3 = 0 ;
35405 PyObject * obj4 = 0 ;
35406 char * kwnames[] = {
35407 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35408 };
35409
35410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35412 if (!SWIG_IsOK(res1)) {
35413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35414 }
35415 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35416 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35417 if (!SWIG_IsOK(res2)) {
35418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35419 }
35420 arg2 = reinterpret_cast< wxWindow * >(argp2);
35421 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35422 if (!SWIG_IsOK(res3)) {
35423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35424 }
35425 if (!argp3) {
35426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35427 }
35428 arg3 = reinterpret_cast< wxDC * >(argp3);
35429 {
35430 arg4 = &temp4;
35431 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35432 }
35433 if (obj4) {
35434 ecode5 = SWIG_AsVal_int(obj4, &val5);
35435 if (!SWIG_IsOK(ecode5)) {
35436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35437 }
35438 arg5 = static_cast< int >(val5);
35439 }
35440 {
35441 PyThreadState* __tstate = wxPyBeginAllowThreads();
35442 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35443 wxPyEndAllowThreads(__tstate);
35444 if (PyErr_Occurred()) SWIG_fail;
35445 }
35446 resultobj = SWIG_Py_Void();
35447 return resultobj;
35448fail:
35449 return NULL;
35450}
35451
35452
35453SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
35454 PyObject *resultobj = 0;
35455 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35456 wxWindow *arg2 = (wxWindow *) 0 ;
35457 wxDC *arg3 = 0 ;
35458 wxRect *arg4 = 0 ;
35459 int arg5 = (int) 0 ;
35460 void *argp1 = 0 ;
35461 int res1 = 0 ;
35462 void *argp2 = 0 ;
35463 int res2 = 0 ;
35464 void *argp3 = 0 ;
35465 int res3 = 0 ;
35466 wxRect temp4 ;
35467 int val5 ;
35468 int ecode5 = 0 ;
35469 PyObject * obj0 = 0 ;
35470 PyObject * obj1 = 0 ;
35471 PyObject * obj2 = 0 ;
35472 PyObject * obj3 = 0 ;
35473 PyObject * obj4 = 0 ;
35474 char * kwnames[] = {
35475 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35476 };
35477
f460c29d 35478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
35479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35480 if (!SWIG_IsOK(res1)) {
f460c29d 35481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
35482 }
35483 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35485 if (!SWIG_IsOK(res2)) {
f460c29d 35486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
35487 }
35488 arg2 = reinterpret_cast< wxWindow * >(argp2);
35489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35490 if (!SWIG_IsOK(res3)) {
f460c29d 35491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35492 }
35493 if (!argp3) {
f460c29d 35494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35495 }
35496 arg3 = reinterpret_cast< wxDC * >(argp3);
35497 {
35498 arg4 = &temp4;
35499 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35500 }
35501 if (obj4) {
35502 ecode5 = SWIG_AsVal_int(obj4, &val5);
35503 if (!SWIG_IsOK(ecode5)) {
f460c29d 35504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
35505 }
35506 arg5 = static_cast< int >(val5);
35507 }
35508 {
35509 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 35510 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
35511 wxPyEndAllowThreads(__tstate);
35512 if (PyErr_Occurred()) SWIG_fail;
35513 }
35514 resultobj = SWIG_Py_Void();
35515 return resultobj;
35516fail:
35517 return NULL;
35518}
35519
35520
554f62e9
RD
35521SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35522 PyObject *resultobj = 0;
35523 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35524 wxWindow *arg2 = (wxWindow *) 0 ;
35525 SwigValueWrapper<wxSplitterRenderParams > result;
35526 void *argp1 = 0 ;
35527 int res1 = 0 ;
35528 void *argp2 = 0 ;
35529 int res2 = 0 ;
35530 PyObject * obj0 = 0 ;
35531 PyObject * obj1 = 0 ;
35532 char * kwnames[] = {
35533 (char *) "self",(char *) "win", NULL
35534 };
35535
35536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35538 if (!SWIG_IsOK(res1)) {
35539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35540 }
35541 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35542 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35543 if (!SWIG_IsOK(res2)) {
35544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35545 }
35546 arg2 = reinterpret_cast< wxWindow * >(argp2);
35547 {
35548 PyThreadState* __tstate = wxPyBeginAllowThreads();
35549 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35550 wxPyEndAllowThreads(__tstate);
35551 if (PyErr_Occurred()) SWIG_fail;
35552 }
35553 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35554 return resultobj;
35555fail:
35556 return NULL;
35557}
35558
35559
35560SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35561 PyObject *resultobj = 0;
35562 wxRendererNative *result = 0 ;
35563
35564 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35565 {
704eda0c 35566 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35567 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 35568 {
554f62e9
RD
35569 wxRendererNative &_result_ref = wxRendererNative::Get();
35570 result = (wxRendererNative *) &_result_ref;
093d3ff1 35571 }
554f62e9
RD
35572 wxPyEndAllowThreads(__tstate);
35573 if (PyErr_Occurred()) SWIG_fail;
35574 }
35575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35576 return resultobj;
35577fail:
35578 return NULL;
35579}
35580
35581
35582SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35583 PyObject *resultobj = 0;
35584 wxRendererNative *result = 0 ;
35585
35586 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35587 {
704eda0c 35588 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35589 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35590 {
554f62e9
RD
35591 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35592 result = (wxRendererNative *) &_result_ref;
be9b1dca 35593 }
554f62e9
RD
35594 wxPyEndAllowThreads(__tstate);
35595 if (PyErr_Occurred()) SWIG_fail;
35596 }
35597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35598 return resultobj;
35599fail:
35600 return NULL;
35601}
35602
35603
35604SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35605 PyObject *resultobj = 0;
35606 wxRendererNative *result = 0 ;
35607
35608 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35609 {
704eda0c 35610 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35611 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35612 {
554f62e9
RD
35613 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35614 result = (wxRendererNative *) &_result_ref;
be9b1dca 35615 }
554f62e9
RD
35616 wxPyEndAllowThreads(__tstate);
35617 if (PyErr_Occurred()) SWIG_fail;
35618 }
35619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35620 return resultobj;
35621fail:
35622 return NULL;
35623}
35624
35625
35626SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35627 PyObject *resultobj = 0;
35628 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35629 wxRendererNative *result = 0 ;
35630 void *argp1 = 0 ;
35631 int res1 = 0 ;
35632 PyObject * obj0 = 0 ;
35633 char * kwnames[] = {
35634 (char *) "renderer", NULL
35635 };
35636
35637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35639 if (!SWIG_IsOK(res1)) {
35640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35641 }
35642 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35643 {
704eda0c 35644 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
35645 PyThreadState* __tstate = wxPyBeginAllowThreads();
35646 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35647 wxPyEndAllowThreads(__tstate);
35648 if (PyErr_Occurred()) SWIG_fail;
35649 }
35650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35651 return resultobj;
35652fail:
35653 return NULL;
35654}
35655
35656
35657SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35658 PyObject *resultobj = 0;
35659 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35660 SwigValueWrapper<wxRendererVersion > result;
35661 void *argp1 = 0 ;
35662 int res1 = 0 ;
35663 PyObject *swig_obj[1] ;
35664
35665 if (!args) SWIG_fail;
35666 swig_obj[0] = args;
35667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35668 if (!SWIG_IsOK(res1)) {
35669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35670 }
35671 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35672 {
35673 PyThreadState* __tstate = wxPyBeginAllowThreads();
35674 result = ((wxRendererNative const *)arg1)->GetVersion();
35675 wxPyEndAllowThreads(__tstate);
35676 if (PyErr_Occurred()) SWIG_fail;
35677 }
35678 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35679 return resultobj;
35680fail:
35681 return NULL;
35682}
35683
35684
35685SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35686 PyObject *obj;
35687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35688 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35689 return SWIG_Py_Void();
35690}
35691
27e45892
RD
35692SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35693 PyObject *resultobj = 0;
35694 wxPseudoDC *result = 0 ;
35695
35696 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35697 {
35698 PyThreadState* __tstate = wxPyBeginAllowThreads();
35699 result = (wxPseudoDC *)new wxPseudoDC();
35700 wxPyEndAllowThreads(__tstate);
35701 if (PyErr_Occurred()) SWIG_fail;
35702 }
35703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35704 return resultobj;
35705fail:
35706 return NULL;
35707}
35708
35709
35710SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35711 PyObject *resultobj = 0;
35712 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35713 void *argp1 = 0 ;
35714 int res1 = 0 ;
35715 PyObject *swig_obj[1] ;
35716
35717 if (!args) SWIG_fail;
35718 swig_obj[0] = args;
35719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35720 if (!SWIG_IsOK(res1)) {
35721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35722 }
35723 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35724 {
35725 PyThreadState* __tstate = wxPyBeginAllowThreads();
35726 (arg1)->BeginDrawing();
35727 wxPyEndAllowThreads(__tstate);
35728 if (PyErr_Occurred()) SWIG_fail;
35729 }
35730 resultobj = SWIG_Py_Void();
35731 return resultobj;
35732fail:
35733 return NULL;
35734}
35735
35736
35737SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35738 PyObject *resultobj = 0;
35739 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35740 void *argp1 = 0 ;
35741 int res1 = 0 ;
35742 PyObject *swig_obj[1] ;
35743
35744 if (!args) SWIG_fail;
35745 swig_obj[0] = args;
35746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35747 if (!SWIG_IsOK(res1)) {
35748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35749 }
35750 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35751 {
35752 PyThreadState* __tstate = wxPyBeginAllowThreads();
35753 (arg1)->EndDrawing();
35754 wxPyEndAllowThreads(__tstate);
35755 if (PyErr_Occurred()) SWIG_fail;
35756 }
35757 resultobj = SWIG_Py_Void();
35758 return resultobj;
35759fail:
35760 return NULL;
35761}
35762
35763
35764SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35765 PyObject *resultobj = 0;
35766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35767 void *argp1 = 0 ;
35768 int res1 = 0 ;
35769 PyObject *swig_obj[1] ;
35770
35771 if (!args) SWIG_fail;
35772 swig_obj[0] = args;
35773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35774 if (!SWIG_IsOK(res1)) {
35775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35776 }
35777 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35778 {
35779 PyThreadState* __tstate = wxPyBeginAllowThreads();
35780 delete arg1;
35781
35782 wxPyEndAllowThreads(__tstate);
35783 if (PyErr_Occurred()) SWIG_fail;
35784 }
35785 resultobj = SWIG_Py_Void();
35786 return resultobj;
35787fail:
35788 return NULL;
35789}
35790
35791
35792SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35793 PyObject *resultobj = 0;
35794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35795 void *argp1 = 0 ;
35796 int res1 = 0 ;
35797 PyObject *swig_obj[1] ;
35798
35799 if (!args) SWIG_fail;
35800 swig_obj[0] = args;
35801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35802 if (!SWIG_IsOK(res1)) {
35803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35804 }
35805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35806 {
35807 PyThreadState* __tstate = wxPyBeginAllowThreads();
35808 (arg1)->RemoveAll();
35809 wxPyEndAllowThreads(__tstate);
35810 if (PyErr_Occurred()) SWIG_fail;
35811 }
35812 resultobj = SWIG_Py_Void();
35813 return resultobj;
35814fail:
35815 return NULL;
35816}
35817
35818
35819SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35820 PyObject *resultobj = 0;
35821 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35822 int result;
35823 void *argp1 = 0 ;
35824 int res1 = 0 ;
35825 PyObject *swig_obj[1] ;
35826
35827 if (!args) SWIG_fail;
35828 swig_obj[0] = args;
35829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35830 if (!SWIG_IsOK(res1)) {
35831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35832 }
35833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35834 {
35835 PyThreadState* __tstate = wxPyBeginAllowThreads();
35836 result = (int)(arg1)->GetLen();
35837 wxPyEndAllowThreads(__tstate);
35838 if (PyErr_Occurred()) SWIG_fail;
35839 }
35840 resultobj = SWIG_From_int(static_cast< int >(result));
35841 return resultobj;
35842fail:
35843 return NULL;
35844}
35845
35846
35847SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35848 PyObject *resultobj = 0;
35849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35850 int arg2 ;
35851 void *argp1 = 0 ;
35852 int res1 = 0 ;
35853 int val2 ;
35854 int ecode2 = 0 ;
35855 PyObject * obj0 = 0 ;
35856 PyObject * obj1 = 0 ;
35857 char * kwnames[] = {
35858 (char *) "self",(char *) "id", NULL
35859 };
35860
35861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35863 if (!SWIG_IsOK(res1)) {
35864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35865 }
35866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35867 ecode2 = SWIG_AsVal_int(obj1, &val2);
35868 if (!SWIG_IsOK(ecode2)) {
35869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35870 }
35871 arg2 = static_cast< int >(val2);
35872 {
35873 PyThreadState* __tstate = wxPyBeginAllowThreads();
35874 (arg1)->SetId(arg2);
35875 wxPyEndAllowThreads(__tstate);
35876 if (PyErr_Occurred()) SWIG_fail;
35877 }
35878 resultobj = SWIG_Py_Void();
35879 return resultobj;
35880fail:
35881 return NULL;
35882}
35883
35884
35885SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35886 PyObject *resultobj = 0;
35887 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35888 int arg2 ;
35889 void *argp1 = 0 ;
35890 int res1 = 0 ;
35891 int val2 ;
35892 int ecode2 = 0 ;
35893 PyObject * obj0 = 0 ;
35894 PyObject * obj1 = 0 ;
35895 char * kwnames[] = {
35896 (char *) "self",(char *) "id", NULL
35897 };
35898
35899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35901 if (!SWIG_IsOK(res1)) {
35902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35903 }
35904 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35905 ecode2 = SWIG_AsVal_int(obj1, &val2);
35906 if (!SWIG_IsOK(ecode2)) {
35907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35908 }
35909 arg2 = static_cast< int >(val2);
35910 {
35911 PyThreadState* __tstate = wxPyBeginAllowThreads();
35912 (arg1)->ClearId(arg2);
35913 wxPyEndAllowThreads(__tstate);
35914 if (PyErr_Occurred()) SWIG_fail;
35915 }
35916 resultobj = SWIG_Py_Void();
35917 return resultobj;
35918fail:
35919 return NULL;
35920}
35921
35922
35923SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35924 PyObject *resultobj = 0;
35925 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35926 int arg2 ;
35927 void *argp1 = 0 ;
35928 int res1 = 0 ;
35929 int val2 ;
35930 int ecode2 = 0 ;
35931 PyObject * obj0 = 0 ;
35932 PyObject * obj1 = 0 ;
35933 char * kwnames[] = {
35934 (char *) "self",(char *) "id", NULL
35935 };
35936
35937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35939 if (!SWIG_IsOK(res1)) {
35940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35941 }
35942 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35943 ecode2 = SWIG_AsVal_int(obj1, &val2);
35944 if (!SWIG_IsOK(ecode2)) {
35945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35946 }
35947 arg2 = static_cast< int >(val2);
35948 {
35949 PyThreadState* __tstate = wxPyBeginAllowThreads();
35950 (arg1)->RemoveId(arg2);
35951 wxPyEndAllowThreads(__tstate);
35952 if (PyErr_Occurred()) SWIG_fail;
35953 }
35954 resultobj = SWIG_Py_Void();
35955 return resultobj;
35956fail:
35957 return NULL;
35958}
35959
35960
35961SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35962 PyObject *resultobj = 0;
35963 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35964 int arg2 ;
35965 int arg3 ;
35966 int arg4 ;
35967 void *argp1 = 0 ;
35968 int res1 = 0 ;
35969 int val2 ;
35970 int ecode2 = 0 ;
35971 int val3 ;
35972 int ecode3 = 0 ;
35973 int val4 ;
35974 int ecode4 = 0 ;
35975 PyObject * obj0 = 0 ;
35976 PyObject * obj1 = 0 ;
35977 PyObject * obj2 = 0 ;
35978 PyObject * obj3 = 0 ;
35979 char * kwnames[] = {
35980 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35981 };
35982
35983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35985 if (!SWIG_IsOK(res1)) {
35986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35987 }
35988 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35989 ecode2 = SWIG_AsVal_int(obj1, &val2);
35990 if (!SWIG_IsOK(ecode2)) {
35991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35992 }
35993 arg2 = static_cast< int >(val2);
35994 ecode3 = SWIG_AsVal_int(obj2, &val3);
35995 if (!SWIG_IsOK(ecode3)) {
35996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35997 }
35998 arg3 = static_cast< int >(val3);
35999 ecode4 = SWIG_AsVal_int(obj3, &val4);
36000 if (!SWIG_IsOK(ecode4)) {
36001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36002 }
36003 arg4 = static_cast< int >(val4);
36004 {
36005 PyThreadState* __tstate = wxPyBeginAllowThreads();
36006 (arg1)->TranslateId(arg2,arg3,arg4);
36007 wxPyEndAllowThreads(__tstate);
36008 if (PyErr_Occurred()) SWIG_fail;
36009 }
36010 resultobj = SWIG_Py_Void();
36011 return resultobj;
36012fail:
36013 return NULL;
36014}
36015
36016
72ef6efb
RD
36017SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36020 int arg2 ;
36021 bool arg3 = (bool) true ;
36022 void *argp1 = 0 ;
36023 int res1 = 0 ;
36024 int val2 ;
36025 int ecode2 = 0 ;
36026 bool val3 ;
36027 int ecode3 = 0 ;
36028 PyObject * obj0 = 0 ;
36029 PyObject * obj1 = 0 ;
36030 PyObject * obj2 = 0 ;
36031 char * kwnames[] = {
36032 (char *) "self",(char *) "id",(char *) "greyout", NULL
36033 };
36034
36035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",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_SetIdGreyedOut" "', 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_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36044 }
36045 arg2 = static_cast< int >(val2);
36046 if (obj2) {
36047 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36048 if (!SWIG_IsOK(ecode3)) {
36049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36050 }
36051 arg3 = static_cast< bool >(val3);
36052 }
36053 {
36054 PyThreadState* __tstate = wxPyBeginAllowThreads();
36055 (arg1)->SetIdGreyedOut(arg2,arg3);
36056 wxPyEndAllowThreads(__tstate);
36057 if (PyErr_Occurred()) SWIG_fail;
36058 }
36059 resultobj = SWIG_Py_Void();
36060 return resultobj;
36061fail:
36062 return NULL;
36063}
36064
36065
36066SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36067 PyObject *resultobj = 0;
36068 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36069 int arg2 ;
36070 bool result;
36071 void *argp1 = 0 ;
36072 int res1 = 0 ;
36073 int val2 ;
36074 int ecode2 = 0 ;
36075 PyObject * obj0 = 0 ;
36076 PyObject * obj1 = 0 ;
36077 char * kwnames[] = {
36078 (char *) "self",(char *) "id", NULL
36079 };
36080
36081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36083 if (!SWIG_IsOK(res1)) {
36084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36085 }
36086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36087 ecode2 = SWIG_AsVal_int(obj1, &val2);
36088 if (!SWIG_IsOK(ecode2)) {
36089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36090 }
36091 arg2 = static_cast< int >(val2);
36092 {
36093 PyThreadState* __tstate = wxPyBeginAllowThreads();
36094 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36095 wxPyEndAllowThreads(__tstate);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 {
36099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36100 }
36101 return resultobj;
36102fail:
36103 return NULL;
36104}
36105
36106
36107SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36108 PyObject *resultobj = 0;
36109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36110 int arg2 ;
36111 int arg3 ;
36112 int arg4 = (int) 1 ;
36113 wxColor const &arg5_defvalue = *wxWHITE ;
36114 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36115 PyObject *result = 0 ;
36116 void *argp1 = 0 ;
36117 int res1 = 0 ;
36118 int val2 ;
36119 int ecode2 = 0 ;
36120 int val3 ;
36121 int ecode3 = 0 ;
36122 int val4 ;
36123 int ecode4 = 0 ;
36124 void *argp5 = 0 ;
36125 int res5 = 0 ;
36126 PyObject * obj0 = 0 ;
36127 PyObject * obj1 = 0 ;
36128 PyObject * obj2 = 0 ;
36129 PyObject * obj3 = 0 ;
36130 PyObject * obj4 = 0 ;
36131 char * kwnames[] = {
36132 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36133 };
36134
36135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36137 if (!SWIG_IsOK(res1)) {
36138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36139 }
36140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36141 ecode2 = SWIG_AsVal_int(obj1, &val2);
36142 if (!SWIG_IsOK(ecode2)) {
36143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36144 }
36145 arg2 = static_cast< int >(val2);
36146 ecode3 = SWIG_AsVal_int(obj2, &val3);
36147 if (!SWIG_IsOK(ecode3)) {
36148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36149 }
36150 arg3 = static_cast< int >(val3);
36151 if (obj3) {
36152 ecode4 = SWIG_AsVal_int(obj3, &val4);
36153 if (!SWIG_IsOK(ecode4)) {
36154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36155 }
36156 arg4 = static_cast< int >(val4);
36157 }
36158 if (obj4) {
36159 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36160 if (!SWIG_IsOK(res5)) {
36161 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36162 }
36163 if (!argp5) {
36164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36165 }
36166 arg5 = reinterpret_cast< wxColor * >(argp5);
36167 }
36168 {
36169 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36170 if (PyErr_Occurred()) SWIG_fail;
36171 }
36172 resultobj = result;
36173 return resultobj;
36174fail:
36175 return NULL;
36176}
36177
36178
36179SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36180 PyObject *resultobj = 0;
36181 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36182 int arg2 ;
36183 int arg3 ;
36184 PyObject *result = 0 ;
36185 void *argp1 = 0 ;
36186 int res1 = 0 ;
36187 int val2 ;
36188 int ecode2 = 0 ;
36189 int val3 ;
36190 int ecode3 = 0 ;
36191 PyObject * obj0 = 0 ;
36192 PyObject * obj1 = 0 ;
36193 PyObject * obj2 = 0 ;
36194 char * kwnames[] = {
36195 (char *) "self",(char *) "x",(char *) "y", NULL
36196 };
36197
36198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36200 if (!SWIG_IsOK(res1)) {
36201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36202 }
36203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36204 ecode2 = SWIG_AsVal_int(obj1, &val2);
36205 if (!SWIG_IsOK(ecode2)) {
36206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36207 }
36208 arg2 = static_cast< int >(val2);
36209 ecode3 = SWIG_AsVal_int(obj2, &val3);
36210 if (!SWIG_IsOK(ecode3)) {
36211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36212 }
36213 arg3 = static_cast< int >(val3);
36214 {
36215 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36216 if (PyErr_Occurred()) SWIG_fail;
36217 }
36218 resultobj = result;
36219 return resultobj;
36220fail:
36221 return NULL;
36222}
36223
36224
27e45892
RD
36225SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36226 PyObject *resultobj = 0;
36227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36228 int arg2 ;
36229 wxDC *arg3 = (wxDC *) 0 ;
36230 void *argp1 = 0 ;
36231 int res1 = 0 ;
36232 int val2 ;
36233 int ecode2 = 0 ;
36234 void *argp3 = 0 ;
36235 int res3 = 0 ;
36236 PyObject * obj0 = 0 ;
36237 PyObject * obj1 = 0 ;
36238 PyObject * obj2 = 0 ;
36239 char * kwnames[] = {
36240 (char *) "self",(char *) "id",(char *) "dc", NULL
36241 };
36242
36243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36245 if (!SWIG_IsOK(res1)) {
36246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36247 }
36248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36249 ecode2 = SWIG_AsVal_int(obj1, &val2);
36250 if (!SWIG_IsOK(ecode2)) {
36251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36252 }
36253 arg2 = static_cast< int >(val2);
36254 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36255 if (!SWIG_IsOK(res3)) {
36256 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36257 }
36258 arg3 = reinterpret_cast< wxDC * >(argp3);
36259 {
36260 PyThreadState* __tstate = wxPyBeginAllowThreads();
36261 (arg1)->DrawIdToDC(arg2,arg3);
36262 wxPyEndAllowThreads(__tstate);
36263 if (PyErr_Occurred()) SWIG_fail;
36264 }
36265 resultobj = SWIG_Py_Void();
36266 return resultobj;
36267fail:
36268 return NULL;
36269}
36270
36271
36272SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36273 PyObject *resultobj = 0;
36274 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36275 int arg2 ;
36276 wxRect *arg3 = 0 ;
36277 void *argp1 = 0 ;
36278 int res1 = 0 ;
36279 int val2 ;
36280 int ecode2 = 0 ;
36281 wxRect temp3 ;
36282 PyObject * obj0 = 0 ;
36283 PyObject * obj1 = 0 ;
36284 PyObject * obj2 = 0 ;
36285 char * kwnames[] = {
36286 (char *) "self",(char *) "id",(char *) "rect", NULL
36287 };
36288
36289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36291 if (!SWIG_IsOK(res1)) {
36292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36293 }
36294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36295 ecode2 = SWIG_AsVal_int(obj1, &val2);
36296 if (!SWIG_IsOK(ecode2)) {
36297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36298 }
36299 arg2 = static_cast< int >(val2);
36300 {
36301 arg3 = &temp3;
36302 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36303 }
36304 {
36305 PyThreadState* __tstate = wxPyBeginAllowThreads();
36306 (arg1)->SetIdBounds(arg2,*arg3);
36307 wxPyEndAllowThreads(__tstate);
36308 if (PyErr_Occurred()) SWIG_fail;
36309 }
36310 resultobj = SWIG_Py_Void();
36311 return resultobj;
36312fail:
36313 return NULL;
36314}
36315
36316
36317SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36318 PyObject *resultobj = 0;
36319 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36320 int arg2 ;
36321 wxRect result;
36322 void *argp1 = 0 ;
36323 int res1 = 0 ;
36324 int val2 ;
36325 int ecode2 = 0 ;
36326 PyObject * obj0 = 0 ;
36327 PyObject * obj1 = 0 ;
36328 char * kwnames[] = {
36329 (char *) "self",(char *) "id", NULL
36330 };
36331
36332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36334 if (!SWIG_IsOK(res1)) {
36335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36336 }
36337 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36338 ecode2 = SWIG_AsVal_int(obj1, &val2);
36339 if (!SWIG_IsOK(ecode2)) {
36340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36341 }
36342 arg2 = static_cast< int >(val2);
36343 {
36344 PyThreadState* __tstate = wxPyBeginAllowThreads();
36345 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36346 wxPyEndAllowThreads(__tstate);
36347 if (PyErr_Occurred()) SWIG_fail;
36348 }
36349 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36350 return resultobj;
36351fail:
36352 return NULL;
36353}
36354
36355
36356SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36357 PyObject *resultobj = 0;
36358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36359 wxDC *arg2 = (wxDC *) 0 ;
36360 wxRect *arg3 = 0 ;
36361 void *argp1 = 0 ;
36362 int res1 = 0 ;
36363 void *argp2 = 0 ;
36364 int res2 = 0 ;
36365 wxRect temp3 ;
36366 PyObject * obj0 = 0 ;
36367 PyObject * obj1 = 0 ;
36368 PyObject * obj2 = 0 ;
36369 char * kwnames[] = {
36370 (char *) "self",(char *) "dc",(char *) "rect", NULL
36371 };
36372
36373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36375 if (!SWIG_IsOK(res1)) {
36376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36377 }
36378 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36380 if (!SWIG_IsOK(res2)) {
36381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36382 }
36383 arg2 = reinterpret_cast< wxDC * >(argp2);
36384 {
36385 arg3 = &temp3;
36386 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36387 }
36388 {
36389 PyThreadState* __tstate = wxPyBeginAllowThreads();
36390 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36391 wxPyEndAllowThreads(__tstate);
36392 if (PyErr_Occurred()) SWIG_fail;
36393 }
36394 resultobj = SWIG_Py_Void();
36395 return resultobj;
36396fail:
36397 return NULL;
36398}
36399
36400
36401SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36402 PyObject *resultobj = 0;
36403 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36404 wxDC *arg2 = (wxDC *) 0 ;
36405 wxRegion *arg3 = 0 ;
36406 void *argp1 = 0 ;
36407 int res1 = 0 ;
36408 void *argp2 = 0 ;
36409 int res2 = 0 ;
36410 void *argp3 = 0 ;
36411 int res3 = 0 ;
36412 PyObject * obj0 = 0 ;
36413 PyObject * obj1 = 0 ;
36414 PyObject * obj2 = 0 ;
36415 char * kwnames[] = {
36416 (char *) "self",(char *) "dc",(char *) "region", NULL
36417 };
36418
36419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36421 if (!SWIG_IsOK(res1)) {
36422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36423 }
36424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36426 if (!SWIG_IsOK(res2)) {
36427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36428 }
36429 arg2 = reinterpret_cast< wxDC * >(argp2);
36430 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36431 if (!SWIG_IsOK(res3)) {
36432 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36433 }
36434 if (!argp3) {
36435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36436 }
36437 arg3 = reinterpret_cast< wxRegion * >(argp3);
36438 {
36439 PyThreadState* __tstate = wxPyBeginAllowThreads();
36440 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36441 wxPyEndAllowThreads(__tstate);
36442 if (PyErr_Occurred()) SWIG_fail;
36443 }
36444 resultobj = SWIG_Py_Void();
36445 return resultobj;
36446fail:
36447 return NULL;
36448}
36449
36450
36451SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36452 PyObject *resultobj = 0;
36453 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36454 wxDC *arg2 = (wxDC *) 0 ;
36455 void *argp1 = 0 ;
36456 int res1 = 0 ;
36457 void *argp2 = 0 ;
36458 int res2 = 0 ;
36459 PyObject * obj0 = 0 ;
36460 PyObject * obj1 = 0 ;
36461 char * kwnames[] = {
36462 (char *) "self",(char *) "dc", NULL
36463 };
36464
36465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36467 if (!SWIG_IsOK(res1)) {
36468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36469 }
36470 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36472 if (!SWIG_IsOK(res2)) {
36473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36474 }
36475 arg2 = reinterpret_cast< wxDC * >(argp2);
36476 {
36477 PyThreadState* __tstate = wxPyBeginAllowThreads();
36478 (arg1)->DrawToDC(arg2);
36479 wxPyEndAllowThreads(__tstate);
36480 if (PyErr_Occurred()) SWIG_fail;
36481 }
36482 resultobj = SWIG_Py_Void();
36483 return resultobj;
36484fail:
36485 return NULL;
36486}
36487
36488
36489SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36490 PyObject *resultobj = 0;
36491 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36492 int arg2 ;
36493 int arg3 ;
36494 wxColour *arg4 = 0 ;
36495 int arg5 = (int) wxFLOOD_SURFACE ;
36496 void *argp1 = 0 ;
36497 int res1 = 0 ;
36498 int val2 ;
36499 int ecode2 = 0 ;
36500 int val3 ;
36501 int ecode3 = 0 ;
36502 wxColour temp4 ;
36503 int val5 ;
36504 int ecode5 = 0 ;
36505 PyObject * obj0 = 0 ;
36506 PyObject * obj1 = 0 ;
36507 PyObject * obj2 = 0 ;
36508 PyObject * obj3 = 0 ;
36509 PyObject * obj4 = 0 ;
36510 char * kwnames[] = {
36511 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36512 };
36513
36514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36516 if (!SWIG_IsOK(res1)) {
36517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36518 }
36519 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36520 ecode2 = SWIG_AsVal_int(obj1, &val2);
36521 if (!SWIG_IsOK(ecode2)) {
36522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36523 }
36524 arg2 = static_cast< int >(val2);
36525 ecode3 = SWIG_AsVal_int(obj2, &val3);
36526 if (!SWIG_IsOK(ecode3)) {
36527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36528 }
36529 arg3 = static_cast< int >(val3);
36530 {
36531 arg4 = &temp4;
36532 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36533 }
36534 if (obj4) {
36535 ecode5 = SWIG_AsVal_int(obj4, &val5);
36536 if (!SWIG_IsOK(ecode5)) {
36537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36538 }
36539 arg5 = static_cast< int >(val5);
36540 }
36541 {
36542 PyThreadState* __tstate = wxPyBeginAllowThreads();
36543 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36544 wxPyEndAllowThreads(__tstate);
36545 if (PyErr_Occurred()) SWIG_fail;
36546 }
36547 resultobj = SWIG_Py_Void();
36548 return resultobj;
36549fail:
36550 return NULL;
36551}
36552
36553
36554SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36555 PyObject *resultobj = 0;
36556 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36557 wxPoint *arg2 = 0 ;
36558 wxColour *arg3 = 0 ;
36559 int arg4 = (int) wxFLOOD_SURFACE ;
36560 void *argp1 = 0 ;
36561 int res1 = 0 ;
36562 wxPoint temp2 ;
36563 wxColour temp3 ;
36564 int val4 ;
36565 int ecode4 = 0 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 PyObject * obj2 = 0 ;
36569 PyObject * obj3 = 0 ;
36570 char * kwnames[] = {
36571 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36572 };
36573
36574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36576 if (!SWIG_IsOK(res1)) {
36577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36578 }
36579 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36580 {
36581 arg2 = &temp2;
36582 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36583 }
36584 {
36585 arg3 = &temp3;
36586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36587 }
36588 if (obj3) {
36589 ecode4 = SWIG_AsVal_int(obj3, &val4);
36590 if (!SWIG_IsOK(ecode4)) {
36591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36592 }
36593 arg4 = static_cast< int >(val4);
36594 }
36595 {
36596 PyThreadState* __tstate = wxPyBeginAllowThreads();
36597 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36598 wxPyEndAllowThreads(__tstate);
36599 if (PyErr_Occurred()) SWIG_fail;
36600 }
36601 resultobj = SWIG_Py_Void();
36602 return resultobj;
36603fail:
36604 return NULL;
36605}
36606
36607
36608SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36609 PyObject *resultobj = 0;
36610 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36611 int arg2 ;
36612 int arg3 ;
36613 int arg4 ;
36614 int arg5 ;
36615 void *argp1 = 0 ;
36616 int res1 = 0 ;
36617 int val2 ;
36618 int ecode2 = 0 ;
36619 int val3 ;
36620 int ecode3 = 0 ;
36621 int val4 ;
36622 int ecode4 = 0 ;
36623 int val5 ;
36624 int ecode5 = 0 ;
36625 PyObject * obj0 = 0 ;
36626 PyObject * obj1 = 0 ;
36627 PyObject * obj2 = 0 ;
36628 PyObject * obj3 = 0 ;
36629 PyObject * obj4 = 0 ;
36630 char * kwnames[] = {
36631 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36632 };
36633
36634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36636 if (!SWIG_IsOK(res1)) {
36637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36638 }
36639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36640 ecode2 = SWIG_AsVal_int(obj1, &val2);
36641 if (!SWIG_IsOK(ecode2)) {
36642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36643 }
36644 arg2 = static_cast< int >(val2);
36645 ecode3 = SWIG_AsVal_int(obj2, &val3);
36646 if (!SWIG_IsOK(ecode3)) {
36647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36648 }
36649 arg3 = static_cast< int >(val3);
36650 ecode4 = SWIG_AsVal_int(obj3, &val4);
36651 if (!SWIG_IsOK(ecode4)) {
36652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36653 }
36654 arg4 = static_cast< int >(val4);
36655 ecode5 = SWIG_AsVal_int(obj4, &val5);
36656 if (!SWIG_IsOK(ecode5)) {
36657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36658 }
36659 arg5 = static_cast< int >(val5);
36660 {
36661 PyThreadState* __tstate = wxPyBeginAllowThreads();
36662 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36663 wxPyEndAllowThreads(__tstate);
36664 if (PyErr_Occurred()) SWIG_fail;
36665 }
36666 resultobj = SWIG_Py_Void();
36667 return resultobj;
36668fail:
36669 return NULL;
36670}
36671
36672
36673SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36674 PyObject *resultobj = 0;
36675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36676 wxPoint *arg2 = 0 ;
36677 wxPoint *arg3 = 0 ;
36678 void *argp1 = 0 ;
36679 int res1 = 0 ;
36680 wxPoint temp2 ;
36681 wxPoint temp3 ;
36682 PyObject * obj0 = 0 ;
36683 PyObject * obj1 = 0 ;
36684 PyObject * obj2 = 0 ;
36685 char * kwnames[] = {
36686 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36687 };
36688
36689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36691 if (!SWIG_IsOK(res1)) {
36692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36693 }
36694 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36695 {
36696 arg2 = &temp2;
36697 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36698 }
36699 {
36700 arg3 = &temp3;
36701 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36702 }
36703 {
36704 PyThreadState* __tstate = wxPyBeginAllowThreads();
36705 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36706 wxPyEndAllowThreads(__tstate);
36707 if (PyErr_Occurred()) SWIG_fail;
36708 }
36709 resultobj = SWIG_Py_Void();
36710 return resultobj;
36711fail:
36712 return NULL;
36713}
36714
36715
36716SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36717 PyObject *resultobj = 0;
36718 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36719 int arg2 ;
36720 int arg3 ;
36721 void *argp1 = 0 ;
36722 int res1 = 0 ;
36723 int val2 ;
36724 int ecode2 = 0 ;
36725 int val3 ;
36726 int ecode3 = 0 ;
36727 PyObject * obj0 = 0 ;
36728 PyObject * obj1 = 0 ;
36729 PyObject * obj2 = 0 ;
36730 char * kwnames[] = {
36731 (char *) "self",(char *) "x",(char *) "y", NULL
36732 };
36733
36734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36736 if (!SWIG_IsOK(res1)) {
36737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36738 }
36739 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36740 ecode2 = SWIG_AsVal_int(obj1, &val2);
36741 if (!SWIG_IsOK(ecode2)) {
36742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36743 }
36744 arg2 = static_cast< int >(val2);
36745 ecode3 = SWIG_AsVal_int(obj2, &val3);
36746 if (!SWIG_IsOK(ecode3)) {
36747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36748 }
36749 arg3 = static_cast< int >(val3);
36750 {
36751 PyThreadState* __tstate = wxPyBeginAllowThreads();
36752 (arg1)->CrossHair(arg2,arg3);
36753 wxPyEndAllowThreads(__tstate);
36754 if (PyErr_Occurred()) SWIG_fail;
36755 }
36756 resultobj = SWIG_Py_Void();
36757 return resultobj;
36758fail:
36759 return NULL;
36760}
36761
36762
36763SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36764 PyObject *resultobj = 0;
36765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36766 wxPoint *arg2 = 0 ;
36767 void *argp1 = 0 ;
36768 int res1 = 0 ;
36769 wxPoint temp2 ;
36770 PyObject * obj0 = 0 ;
36771 PyObject * obj1 = 0 ;
36772 char * kwnames[] = {
36773 (char *) "self",(char *) "pt", NULL
36774 };
36775
36776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36778 if (!SWIG_IsOK(res1)) {
36779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36780 }
36781 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36782 {
36783 arg2 = &temp2;
36784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36785 }
36786 {
36787 PyThreadState* __tstate = wxPyBeginAllowThreads();
36788 (arg1)->CrossHair((wxPoint const &)*arg2);
36789 wxPyEndAllowThreads(__tstate);
36790 if (PyErr_Occurred()) SWIG_fail;
36791 }
36792 resultobj = SWIG_Py_Void();
36793 return resultobj;
36794fail:
36795 return NULL;
36796}
36797
36798
36799SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36800 PyObject *resultobj = 0;
36801 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36802 int arg2 ;
36803 int arg3 ;
36804 int arg4 ;
36805 int arg5 ;
36806 int arg6 ;
36807 int arg7 ;
36808 void *argp1 = 0 ;
36809 int res1 = 0 ;
36810 int val2 ;
36811 int ecode2 = 0 ;
36812 int val3 ;
36813 int ecode3 = 0 ;
36814 int val4 ;
36815 int ecode4 = 0 ;
36816 int val5 ;
36817 int ecode5 = 0 ;
36818 int val6 ;
36819 int ecode6 = 0 ;
36820 int val7 ;
36821 int ecode7 = 0 ;
36822 PyObject * obj0 = 0 ;
36823 PyObject * obj1 = 0 ;
36824 PyObject * obj2 = 0 ;
36825 PyObject * obj3 = 0 ;
36826 PyObject * obj4 = 0 ;
36827 PyObject * obj5 = 0 ;
36828 PyObject * obj6 = 0 ;
36829 char * kwnames[] = {
36830 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36831 };
36832
36833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36835 if (!SWIG_IsOK(res1)) {
36836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36837 }
36838 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36839 ecode2 = SWIG_AsVal_int(obj1, &val2);
36840 if (!SWIG_IsOK(ecode2)) {
36841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36842 }
36843 arg2 = static_cast< int >(val2);
36844 ecode3 = SWIG_AsVal_int(obj2, &val3);
36845 if (!SWIG_IsOK(ecode3)) {
36846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36847 }
36848 arg3 = static_cast< int >(val3);
36849 ecode4 = SWIG_AsVal_int(obj3, &val4);
36850 if (!SWIG_IsOK(ecode4)) {
36851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36852 }
36853 arg4 = static_cast< int >(val4);
36854 ecode5 = SWIG_AsVal_int(obj4, &val5);
36855 if (!SWIG_IsOK(ecode5)) {
36856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36857 }
36858 arg5 = static_cast< int >(val5);
36859 ecode6 = SWIG_AsVal_int(obj5, &val6);
36860 if (!SWIG_IsOK(ecode6)) {
36861 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36862 }
36863 arg6 = static_cast< int >(val6);
36864 ecode7 = SWIG_AsVal_int(obj6, &val7);
36865 if (!SWIG_IsOK(ecode7)) {
36866 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36867 }
36868 arg7 = static_cast< int >(val7);
36869 {
36870 PyThreadState* __tstate = wxPyBeginAllowThreads();
36871 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36872 wxPyEndAllowThreads(__tstate);
36873 if (PyErr_Occurred()) SWIG_fail;
36874 }
36875 resultobj = SWIG_Py_Void();
36876 return resultobj;
36877fail:
36878 return NULL;
36879}
36880
36881
36882SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36883 PyObject *resultobj = 0;
36884 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36885 wxPoint *arg2 = 0 ;
36886 wxPoint *arg3 = 0 ;
36887 wxPoint *arg4 = 0 ;
36888 void *argp1 = 0 ;
36889 int res1 = 0 ;
36890 wxPoint temp2 ;
36891 wxPoint temp3 ;
36892 wxPoint temp4 ;
36893 PyObject * obj0 = 0 ;
36894 PyObject * obj1 = 0 ;
36895 PyObject * obj2 = 0 ;
36896 PyObject * obj3 = 0 ;
36897 char * kwnames[] = {
36898 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36899 };
36900
36901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36903 if (!SWIG_IsOK(res1)) {
36904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36905 }
36906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36907 {
36908 arg2 = &temp2;
36909 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36910 }
36911 {
36912 arg3 = &temp3;
36913 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36914 }
36915 {
36916 arg4 = &temp4;
36917 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36918 }
36919 {
36920 PyThreadState* __tstate = wxPyBeginAllowThreads();
36921 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36922 wxPyEndAllowThreads(__tstate);
36923 if (PyErr_Occurred()) SWIG_fail;
36924 }
36925 resultobj = SWIG_Py_Void();
36926 return resultobj;
36927fail:
36928 return NULL;
36929}
36930
36931
36932SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36933 PyObject *resultobj = 0;
36934 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36935 int arg2 ;
36936 int arg3 ;
36937 int arg4 ;
36938 int arg5 ;
36939 void *argp1 = 0 ;
36940 int res1 = 0 ;
36941 int val2 ;
36942 int ecode2 = 0 ;
36943 int val3 ;
36944 int ecode3 = 0 ;
36945 int val4 ;
36946 int ecode4 = 0 ;
36947 int val5 ;
36948 int ecode5 = 0 ;
36949 PyObject * obj0 = 0 ;
36950 PyObject * obj1 = 0 ;
36951 PyObject * obj2 = 0 ;
36952 PyObject * obj3 = 0 ;
36953 PyObject * obj4 = 0 ;
36954 char * kwnames[] = {
36955 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36956 };
36957
36958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36960 if (!SWIG_IsOK(res1)) {
36961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36962 }
36963 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36964 ecode2 = SWIG_AsVal_int(obj1, &val2);
36965 if (!SWIG_IsOK(ecode2)) {
36966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36967 }
36968 arg2 = static_cast< int >(val2);
36969 ecode3 = SWIG_AsVal_int(obj2, &val3);
36970 if (!SWIG_IsOK(ecode3)) {
36971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36972 }
36973 arg3 = static_cast< int >(val3);
36974 ecode4 = SWIG_AsVal_int(obj3, &val4);
36975 if (!SWIG_IsOK(ecode4)) {
36976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36977 }
36978 arg4 = static_cast< int >(val4);
36979 ecode5 = SWIG_AsVal_int(obj4, &val5);
36980 if (!SWIG_IsOK(ecode5)) {
36981 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36982 }
36983 arg5 = static_cast< int >(val5);
36984 {
36985 PyThreadState* __tstate = wxPyBeginAllowThreads();
36986 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36987 wxPyEndAllowThreads(__tstate);
36988 if (PyErr_Occurred()) SWIG_fail;
36989 }
36990 resultobj = SWIG_Py_Void();
36991 return resultobj;
36992fail:
36993 return NULL;
36994}
36995
36996
36997SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36998 PyObject *resultobj = 0;
36999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37000 wxRect *arg2 = 0 ;
37001 void *argp1 = 0 ;
37002 int res1 = 0 ;
37003 wxRect temp2 ;
37004 PyObject * obj0 = 0 ;
37005 PyObject * obj1 = 0 ;
37006 char * kwnames[] = {
37007 (char *) "self",(char *) "rect", NULL
37008 };
37009
37010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37012 if (!SWIG_IsOK(res1)) {
37013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37014 }
37015 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37016 {
37017 arg2 = &temp2;
37018 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37019 }
37020 {
37021 PyThreadState* __tstate = wxPyBeginAllowThreads();
37022 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37023 wxPyEndAllowThreads(__tstate);
37024 if (PyErr_Occurred()) SWIG_fail;
37025 }
37026 resultobj = SWIG_Py_Void();
37027 return resultobj;
37028fail:
37029 return NULL;
37030}
37031
37032
37033SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37034 PyObject *resultobj = 0;
37035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37036 int arg2 ;
37037 int arg3 ;
37038 int arg4 ;
37039 int arg5 ;
37040 double arg6 ;
37041 double arg7 ;
37042 void *argp1 = 0 ;
37043 int res1 = 0 ;
37044 int val2 ;
37045 int ecode2 = 0 ;
37046 int val3 ;
37047 int ecode3 = 0 ;
37048 int val4 ;
37049 int ecode4 = 0 ;
37050 int val5 ;
37051 int ecode5 = 0 ;
37052 double val6 ;
37053 int ecode6 = 0 ;
37054 double val7 ;
37055 int ecode7 = 0 ;
37056 PyObject * obj0 = 0 ;
37057 PyObject * obj1 = 0 ;
37058 PyObject * obj2 = 0 ;
37059 PyObject * obj3 = 0 ;
37060 PyObject * obj4 = 0 ;
37061 PyObject * obj5 = 0 ;
37062 PyObject * obj6 = 0 ;
37063 char * kwnames[] = {
37064 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37065 };
37066
37067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37069 if (!SWIG_IsOK(res1)) {
37070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37071 }
37072 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37073 ecode2 = SWIG_AsVal_int(obj1, &val2);
37074 if (!SWIG_IsOK(ecode2)) {
37075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37076 }
37077 arg2 = static_cast< int >(val2);
37078 ecode3 = SWIG_AsVal_int(obj2, &val3);
37079 if (!SWIG_IsOK(ecode3)) {
37080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37081 }
37082 arg3 = static_cast< int >(val3);
37083 ecode4 = SWIG_AsVal_int(obj3, &val4);
37084 if (!SWIG_IsOK(ecode4)) {
37085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37086 }
37087 arg4 = static_cast< int >(val4);
37088 ecode5 = SWIG_AsVal_int(obj4, &val5);
37089 if (!SWIG_IsOK(ecode5)) {
37090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37091 }
37092 arg5 = static_cast< int >(val5);
37093 ecode6 = SWIG_AsVal_double(obj5, &val6);
37094 if (!SWIG_IsOK(ecode6)) {
37095 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37096 }
37097 arg6 = static_cast< double >(val6);
37098 ecode7 = SWIG_AsVal_double(obj6, &val7);
37099 if (!SWIG_IsOK(ecode7)) {
37100 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37101 }
37102 arg7 = static_cast< double >(val7);
37103 {
37104 PyThreadState* __tstate = wxPyBeginAllowThreads();
37105 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37106 wxPyEndAllowThreads(__tstate);
37107 if (PyErr_Occurred()) SWIG_fail;
37108 }
37109 resultobj = SWIG_Py_Void();
37110 return resultobj;
37111fail:
37112 return NULL;
37113}
37114
37115
37116SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37117 PyObject *resultobj = 0;
37118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37119 wxPoint *arg2 = 0 ;
37120 wxSize *arg3 = 0 ;
37121 double arg4 ;
37122 double arg5 ;
37123 void *argp1 = 0 ;
37124 int res1 = 0 ;
37125 wxPoint temp2 ;
37126 wxSize temp3 ;
37127 double val4 ;
37128 int ecode4 = 0 ;
37129 double val5 ;
37130 int ecode5 = 0 ;
37131 PyObject * obj0 = 0 ;
37132 PyObject * obj1 = 0 ;
37133 PyObject * obj2 = 0 ;
37134 PyObject * obj3 = 0 ;
37135 PyObject * obj4 = 0 ;
37136 char * kwnames[] = {
37137 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37138 };
37139
37140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37142 if (!SWIG_IsOK(res1)) {
37143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37144 }
37145 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37146 {
37147 arg2 = &temp2;
37148 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37149 }
37150 {
37151 arg3 = &temp3;
37152 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37153 }
37154 ecode4 = SWIG_AsVal_double(obj3, &val4);
37155 if (!SWIG_IsOK(ecode4)) {
37156 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37157 }
37158 arg4 = static_cast< double >(val4);
37159 ecode5 = SWIG_AsVal_double(obj4, &val5);
37160 if (!SWIG_IsOK(ecode5)) {
37161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37162 }
37163 arg5 = static_cast< double >(val5);
37164 {
37165 PyThreadState* __tstate = wxPyBeginAllowThreads();
37166 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37167 wxPyEndAllowThreads(__tstate);
37168 if (PyErr_Occurred()) SWIG_fail;
37169 }
37170 resultobj = SWIG_Py_Void();
37171 return resultobj;
37172fail:
37173 return NULL;
37174}
37175
37176
37177SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37178 PyObject *resultobj = 0;
37179 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37180 int arg2 ;
37181 int arg3 ;
37182 void *argp1 = 0 ;
37183 int res1 = 0 ;
37184 int val2 ;
37185 int ecode2 = 0 ;
37186 int val3 ;
37187 int ecode3 = 0 ;
37188 PyObject * obj0 = 0 ;
37189 PyObject * obj1 = 0 ;
37190 PyObject * obj2 = 0 ;
37191 char * kwnames[] = {
37192 (char *) "self",(char *) "x",(char *) "y", NULL
37193 };
37194
37195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37197 if (!SWIG_IsOK(res1)) {
37198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37199 }
37200 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37201 ecode2 = SWIG_AsVal_int(obj1, &val2);
37202 if (!SWIG_IsOK(ecode2)) {
37203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37204 }
37205 arg2 = static_cast< int >(val2);
37206 ecode3 = SWIG_AsVal_int(obj2, &val3);
37207 if (!SWIG_IsOK(ecode3)) {
37208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37209 }
37210 arg3 = static_cast< int >(val3);
37211 {
37212 PyThreadState* __tstate = wxPyBeginAllowThreads();
37213 (arg1)->DrawPoint(arg2,arg3);
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_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37225 PyObject *resultobj = 0;
37226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37227 wxPoint *arg2 = 0 ;
37228 void *argp1 = 0 ;
37229 int res1 = 0 ;
37230 wxPoint temp2 ;
37231 PyObject * obj0 = 0 ;
37232 PyObject * obj1 = 0 ;
37233 char * kwnames[] = {
37234 (char *) "self",(char *) "pt", NULL
37235 };
37236
37237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37239 if (!SWIG_IsOK(res1)) {
37240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37241 }
37242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37243 {
37244 arg2 = &temp2;
37245 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37246 }
37247 {
37248 PyThreadState* __tstate = wxPyBeginAllowThreads();
37249 (arg1)->DrawPoint((wxPoint const &)*arg2);
37250 wxPyEndAllowThreads(__tstate);
37251 if (PyErr_Occurred()) SWIG_fail;
37252 }
37253 resultobj = SWIG_Py_Void();
37254 return resultobj;
37255fail:
37256 return NULL;
37257}
37258
37259
37260SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37261 PyObject *resultobj = 0;
37262 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37263 int arg2 ;
37264 int arg3 ;
37265 int arg4 ;
37266 int arg5 ;
37267 void *argp1 = 0 ;
37268 int res1 = 0 ;
37269 int val2 ;
37270 int ecode2 = 0 ;
37271 int val3 ;
37272 int ecode3 = 0 ;
37273 int val4 ;
37274 int ecode4 = 0 ;
37275 int val5 ;
37276 int ecode5 = 0 ;
37277 PyObject * obj0 = 0 ;
37278 PyObject * obj1 = 0 ;
37279 PyObject * obj2 = 0 ;
37280 PyObject * obj3 = 0 ;
37281 PyObject * obj4 = 0 ;
37282 char * kwnames[] = {
37283 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37284 };
37285
37286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37288 if (!SWIG_IsOK(res1)) {
37289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37290 }
37291 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37292 ecode2 = SWIG_AsVal_int(obj1, &val2);
37293 if (!SWIG_IsOK(ecode2)) {
37294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37295 }
37296 arg2 = static_cast< int >(val2);
37297 ecode3 = SWIG_AsVal_int(obj2, &val3);
37298 if (!SWIG_IsOK(ecode3)) {
37299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37300 }
37301 arg3 = static_cast< int >(val3);
37302 ecode4 = SWIG_AsVal_int(obj3, &val4);
37303 if (!SWIG_IsOK(ecode4)) {
37304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37305 }
37306 arg4 = static_cast< int >(val4);
37307 ecode5 = SWIG_AsVal_int(obj4, &val5);
37308 if (!SWIG_IsOK(ecode5)) {
37309 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37310 }
37311 arg5 = static_cast< int >(val5);
37312 {
37313 PyThreadState* __tstate = wxPyBeginAllowThreads();
37314 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37315 wxPyEndAllowThreads(__tstate);
37316 if (PyErr_Occurred()) SWIG_fail;
37317 }
37318 resultobj = SWIG_Py_Void();
37319 return resultobj;
37320fail:
37321 return NULL;
37322}
37323
37324
37325SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37326 PyObject *resultobj = 0;
37327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37328 wxRect *arg2 = 0 ;
37329 void *argp1 = 0 ;
37330 int res1 = 0 ;
37331 wxRect temp2 ;
37332 PyObject * obj0 = 0 ;
37333 PyObject * obj1 = 0 ;
37334 char * kwnames[] = {
37335 (char *) "self",(char *) "rect", NULL
37336 };
37337
37338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37340 if (!SWIG_IsOK(res1)) {
37341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37342 }
37343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37344 {
37345 arg2 = &temp2;
37346 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37347 }
37348 {
37349 PyThreadState* __tstate = wxPyBeginAllowThreads();
37350 (arg1)->DrawRectangle((wxRect const &)*arg2);
37351 wxPyEndAllowThreads(__tstate);
37352 if (PyErr_Occurred()) SWIG_fail;
37353 }
37354 resultobj = SWIG_Py_Void();
37355 return resultobj;
37356fail:
37357 return NULL;
37358}
37359
37360
37361SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37362 PyObject *resultobj = 0;
37363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37364 wxPoint *arg2 = 0 ;
37365 wxSize *arg3 = 0 ;
37366 void *argp1 = 0 ;
37367 int res1 = 0 ;
37368 wxPoint temp2 ;
37369 wxSize temp3 ;
37370 PyObject * obj0 = 0 ;
37371 PyObject * obj1 = 0 ;
37372 PyObject * obj2 = 0 ;
37373 char * kwnames[] = {
37374 (char *) "self",(char *) "pt",(char *) "sz", NULL
37375 };
37376
37377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37379 if (!SWIG_IsOK(res1)) {
37380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37381 }
37382 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37383 {
37384 arg2 = &temp2;
37385 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37386 }
37387 {
37388 arg3 = &temp3;
37389 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37390 }
37391 {
37392 PyThreadState* __tstate = wxPyBeginAllowThreads();
37393 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37394 wxPyEndAllowThreads(__tstate);
37395 if (PyErr_Occurred()) SWIG_fail;
37396 }
37397 resultobj = SWIG_Py_Void();
37398 return resultobj;
37399fail:
37400 return NULL;
37401}
37402
37403
37404SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37405 PyObject *resultobj = 0;
37406 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37407 int arg2 ;
37408 int arg3 ;
37409 int arg4 ;
37410 int arg5 ;
37411 double arg6 ;
37412 void *argp1 = 0 ;
37413 int res1 = 0 ;
37414 int val2 ;
37415 int ecode2 = 0 ;
37416 int val3 ;
37417 int ecode3 = 0 ;
37418 int val4 ;
37419 int ecode4 = 0 ;
37420 int val5 ;
37421 int ecode5 = 0 ;
37422 double val6 ;
37423 int ecode6 = 0 ;
37424 PyObject * obj0 = 0 ;
37425 PyObject * obj1 = 0 ;
37426 PyObject * obj2 = 0 ;
37427 PyObject * obj3 = 0 ;
37428 PyObject * obj4 = 0 ;
37429 PyObject * obj5 = 0 ;
37430 char * kwnames[] = {
37431 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37432 };
37433
37434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37436 if (!SWIG_IsOK(res1)) {
37437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37438 }
37439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37440 ecode2 = SWIG_AsVal_int(obj1, &val2);
37441 if (!SWIG_IsOK(ecode2)) {
37442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37443 }
37444 arg2 = static_cast< int >(val2);
37445 ecode3 = SWIG_AsVal_int(obj2, &val3);
37446 if (!SWIG_IsOK(ecode3)) {
37447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37448 }
37449 arg3 = static_cast< int >(val3);
37450 ecode4 = SWIG_AsVal_int(obj3, &val4);
37451 if (!SWIG_IsOK(ecode4)) {
37452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37453 }
37454 arg4 = static_cast< int >(val4);
37455 ecode5 = SWIG_AsVal_int(obj4, &val5);
37456 if (!SWIG_IsOK(ecode5)) {
37457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37458 }
37459 arg5 = static_cast< int >(val5);
37460 ecode6 = SWIG_AsVal_double(obj5, &val6);
37461 if (!SWIG_IsOK(ecode6)) {
37462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37463 }
37464 arg6 = static_cast< double >(val6);
37465 {
37466 PyThreadState* __tstate = wxPyBeginAllowThreads();
37467 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37468 wxPyEndAllowThreads(__tstate);
37469 if (PyErr_Occurred()) SWIG_fail;
37470 }
37471 resultobj = SWIG_Py_Void();
37472 return resultobj;
37473fail:
37474 return NULL;
37475}
37476
37477
37478SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37479 PyObject *resultobj = 0;
37480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37481 wxRect *arg2 = 0 ;
37482 double arg3 ;
37483 void *argp1 = 0 ;
37484 int res1 = 0 ;
37485 wxRect temp2 ;
37486 double val3 ;
37487 int ecode3 = 0 ;
37488 PyObject * obj0 = 0 ;
37489 PyObject * obj1 = 0 ;
37490 PyObject * obj2 = 0 ;
37491 char * kwnames[] = {
37492 (char *) "self",(char *) "r",(char *) "radius", NULL
37493 };
37494
37495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37497 if (!SWIG_IsOK(res1)) {
37498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37499 }
37500 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37501 {
37502 arg2 = &temp2;
37503 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37504 }
37505 ecode3 = SWIG_AsVal_double(obj2, &val3);
37506 if (!SWIG_IsOK(ecode3)) {
37507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37508 }
37509 arg3 = static_cast< double >(val3);
37510 {
37511 PyThreadState* __tstate = wxPyBeginAllowThreads();
37512 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
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_DrawRoundedRectanglePointSize(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 double arg4 ;
37529 void *argp1 = 0 ;
37530 int res1 = 0 ;
37531 wxPoint temp2 ;
37532 wxSize temp3 ;
37533 double val4 ;
37534 int ecode4 = 0 ;
37535 PyObject * obj0 = 0 ;
37536 PyObject * obj1 = 0 ;
37537 PyObject * obj2 = 0 ;
37538 PyObject * obj3 = 0 ;
37539 char * kwnames[] = {
37540 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37541 };
37542
37543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37545 if (!SWIG_IsOK(res1)) {
37546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37547 }
37548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37549 {
37550 arg2 = &temp2;
37551 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37552 }
37553 {
37554 arg3 = &temp3;
37555 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37556 }
37557 ecode4 = SWIG_AsVal_double(obj3, &val4);
37558 if (!SWIG_IsOK(ecode4)) {
37559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37560 }
37561 arg4 = static_cast< double >(val4);
37562 {
37563 PyThreadState* __tstate = wxPyBeginAllowThreads();
37564 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37565 wxPyEndAllowThreads(__tstate);
37566 if (PyErr_Occurred()) SWIG_fail;
37567 }
37568 resultobj = SWIG_Py_Void();
37569 return resultobj;
37570fail:
37571 return NULL;
37572}
37573
37574
37575SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37576 PyObject *resultobj = 0;
37577 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37578 int arg2 ;
37579 int arg3 ;
37580 int arg4 ;
37581 void *argp1 = 0 ;
37582 int res1 = 0 ;
37583 int val2 ;
37584 int ecode2 = 0 ;
37585 int val3 ;
37586 int ecode3 = 0 ;
37587 int val4 ;
37588 int ecode4 = 0 ;
37589 PyObject * obj0 = 0 ;
37590 PyObject * obj1 = 0 ;
37591 PyObject * obj2 = 0 ;
37592 PyObject * obj3 = 0 ;
37593 char * kwnames[] = {
37594 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37595 };
37596
37597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37599 if (!SWIG_IsOK(res1)) {
37600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37601 }
37602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37603 ecode2 = SWIG_AsVal_int(obj1, &val2);
37604 if (!SWIG_IsOK(ecode2)) {
37605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37606 }
37607 arg2 = static_cast< int >(val2);
37608 ecode3 = SWIG_AsVal_int(obj2, &val3);
37609 if (!SWIG_IsOK(ecode3)) {
37610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37611 }
37612 arg3 = static_cast< int >(val3);
37613 ecode4 = SWIG_AsVal_int(obj3, &val4);
37614 if (!SWIG_IsOK(ecode4)) {
37615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37616 }
37617 arg4 = static_cast< int >(val4);
37618 {
37619 PyThreadState* __tstate = wxPyBeginAllowThreads();
37620 (arg1)->DrawCircle(arg2,arg3,arg4);
37621 wxPyEndAllowThreads(__tstate);
37622 if (PyErr_Occurred()) SWIG_fail;
37623 }
37624 resultobj = SWIG_Py_Void();
37625 return resultobj;
37626fail:
37627 return NULL;
37628}
37629
37630
37631SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37632 PyObject *resultobj = 0;
37633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37634 wxPoint *arg2 = 0 ;
37635 int arg3 ;
37636 void *argp1 = 0 ;
37637 int res1 = 0 ;
37638 wxPoint temp2 ;
37639 int val3 ;
37640 int ecode3 = 0 ;
37641 PyObject * obj0 = 0 ;
37642 PyObject * obj1 = 0 ;
37643 PyObject * obj2 = 0 ;
37644 char * kwnames[] = {
37645 (char *) "self",(char *) "pt",(char *) "radius", NULL
37646 };
37647
37648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37650 if (!SWIG_IsOK(res1)) {
37651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37652 }
37653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37654 {
37655 arg2 = &temp2;
37656 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37657 }
37658 ecode3 = SWIG_AsVal_int(obj2, &val3);
37659 if (!SWIG_IsOK(ecode3)) {
37660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37661 }
37662 arg3 = static_cast< int >(val3);
37663 {
37664 PyThreadState* __tstate = wxPyBeginAllowThreads();
37665 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37666 wxPyEndAllowThreads(__tstate);
37667 if (PyErr_Occurred()) SWIG_fail;
37668 }
37669 resultobj = SWIG_Py_Void();
37670 return resultobj;
37671fail:
37672 return NULL;
37673}
37674
37675
37676SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37677 PyObject *resultobj = 0;
37678 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37679 int arg2 ;
37680 int arg3 ;
37681 int arg4 ;
37682 int arg5 ;
37683 void *argp1 = 0 ;
37684 int res1 = 0 ;
37685 int val2 ;
37686 int ecode2 = 0 ;
37687 int val3 ;
37688 int ecode3 = 0 ;
37689 int val4 ;
37690 int ecode4 = 0 ;
37691 int val5 ;
37692 int ecode5 = 0 ;
37693 PyObject * obj0 = 0 ;
37694 PyObject * obj1 = 0 ;
37695 PyObject * obj2 = 0 ;
37696 PyObject * obj3 = 0 ;
37697 PyObject * obj4 = 0 ;
37698 char * kwnames[] = {
37699 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37700 };
37701
37702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37704 if (!SWIG_IsOK(res1)) {
37705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37706 }
37707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37708 ecode2 = SWIG_AsVal_int(obj1, &val2);
37709 if (!SWIG_IsOK(ecode2)) {
37710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37711 }
37712 arg2 = static_cast< int >(val2);
37713 ecode3 = SWIG_AsVal_int(obj2, &val3);
37714 if (!SWIG_IsOK(ecode3)) {
37715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', 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_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37721 }
37722 arg4 = static_cast< int >(val4);
37723 ecode5 = SWIG_AsVal_int(obj4, &val5);
37724 if (!SWIG_IsOK(ecode5)) {
37725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37726 }
37727 arg5 = static_cast< int >(val5);
37728 {
37729 PyThreadState* __tstate = wxPyBeginAllowThreads();
37730 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37731 wxPyEndAllowThreads(__tstate);
37732 if (PyErr_Occurred()) SWIG_fail;
37733 }
37734 resultobj = SWIG_Py_Void();
37735 return resultobj;
37736fail:
37737 return NULL;
37738}
37739
37740
37741SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37742 PyObject *resultobj = 0;
37743 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37744 wxRect *arg2 = 0 ;
37745 void *argp1 = 0 ;
37746 int res1 = 0 ;
37747 wxRect temp2 ;
37748 PyObject * obj0 = 0 ;
37749 PyObject * obj1 = 0 ;
37750 char * kwnames[] = {
37751 (char *) "self",(char *) "rect", NULL
37752 };
37753
37754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37756 if (!SWIG_IsOK(res1)) {
37757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37758 }
37759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37760 {
37761 arg2 = &temp2;
37762 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37763 }
37764 {
37765 PyThreadState* __tstate = wxPyBeginAllowThreads();
37766 (arg1)->DrawEllipse((wxRect const &)*arg2);
37767 wxPyEndAllowThreads(__tstate);
37768 if (PyErr_Occurred()) SWIG_fail;
37769 }
37770 resultobj = SWIG_Py_Void();
37771 return resultobj;
37772fail:
37773 return NULL;
37774}
37775
37776
37777SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37778 PyObject *resultobj = 0;
37779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37780 wxPoint *arg2 = 0 ;
37781 wxSize *arg3 = 0 ;
37782 void *argp1 = 0 ;
37783 int res1 = 0 ;
37784 wxPoint temp2 ;
37785 wxSize temp3 ;
37786 PyObject * obj0 = 0 ;
37787 PyObject * obj1 = 0 ;
37788 PyObject * obj2 = 0 ;
37789 char * kwnames[] = {
37790 (char *) "self",(char *) "pt",(char *) "sz", NULL
37791 };
37792
37793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37795 if (!SWIG_IsOK(res1)) {
37796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37797 }
37798 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37799 {
37800 arg2 = &temp2;
37801 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37802 }
37803 {
37804 arg3 = &temp3;
37805 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37806 }
37807 {
37808 PyThreadState* __tstate = wxPyBeginAllowThreads();
37809 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37810 wxPyEndAllowThreads(__tstate);
37811 if (PyErr_Occurred()) SWIG_fail;
37812 }
37813 resultobj = SWIG_Py_Void();
37814 return resultobj;
37815fail:
37816 return NULL;
37817}
37818
37819
37820SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37821 PyObject *resultobj = 0;
37822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37823 wxIcon *arg2 = 0 ;
37824 int arg3 ;
37825 int arg4 ;
37826 void *argp1 = 0 ;
37827 int res1 = 0 ;
37828 void *argp2 = 0 ;
37829 int res2 = 0 ;
37830 int val3 ;
37831 int ecode3 = 0 ;
37832 int val4 ;
37833 int ecode4 = 0 ;
37834 PyObject * obj0 = 0 ;
37835 PyObject * obj1 = 0 ;
37836 PyObject * obj2 = 0 ;
37837 PyObject * obj3 = 0 ;
37838 char * kwnames[] = {
37839 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37840 };
37841
37842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37844 if (!SWIG_IsOK(res1)) {
37845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37846 }
37847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37849 if (!SWIG_IsOK(res2)) {
37850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37851 }
37852 if (!argp2) {
37853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37854 }
37855 arg2 = reinterpret_cast< wxIcon * >(argp2);
37856 ecode3 = SWIG_AsVal_int(obj2, &val3);
37857 if (!SWIG_IsOK(ecode3)) {
37858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37859 }
37860 arg3 = static_cast< int >(val3);
37861 ecode4 = SWIG_AsVal_int(obj3, &val4);
37862 if (!SWIG_IsOK(ecode4)) {
37863 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37864 }
37865 arg4 = static_cast< int >(val4);
37866 {
37867 PyThreadState* __tstate = wxPyBeginAllowThreads();
37868 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37869 wxPyEndAllowThreads(__tstate);
37870 if (PyErr_Occurred()) SWIG_fail;
37871 }
37872 resultobj = SWIG_Py_Void();
37873 return resultobj;
37874fail:
37875 return NULL;
37876}
37877
37878
37879SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37880 PyObject *resultobj = 0;
37881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37882 wxIcon *arg2 = 0 ;
37883 wxPoint *arg3 = 0 ;
37884 void *argp1 = 0 ;
37885 int res1 = 0 ;
37886 void *argp2 = 0 ;
37887 int res2 = 0 ;
37888 wxPoint temp3 ;
37889 PyObject * obj0 = 0 ;
37890 PyObject * obj1 = 0 ;
37891 PyObject * obj2 = 0 ;
37892 char * kwnames[] = {
37893 (char *) "self",(char *) "icon",(char *) "pt", NULL
37894 };
37895
37896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37898 if (!SWIG_IsOK(res1)) {
37899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37900 }
37901 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37903 if (!SWIG_IsOK(res2)) {
37904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37905 }
37906 if (!argp2) {
37907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37908 }
37909 arg2 = reinterpret_cast< wxIcon * >(argp2);
37910 {
37911 arg3 = &temp3;
37912 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37913 }
37914 {
37915 PyThreadState* __tstate = wxPyBeginAllowThreads();
37916 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37917 wxPyEndAllowThreads(__tstate);
37918 if (PyErr_Occurred()) SWIG_fail;
37919 }
37920 resultobj = SWIG_Py_Void();
37921 return resultobj;
37922fail:
37923 return NULL;
37924}
37925
37926
37927SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37928 PyObject *resultobj = 0;
37929 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37930 wxBitmap *arg2 = 0 ;
37931 int arg3 ;
37932 int arg4 ;
37933 bool arg5 = (bool) false ;
37934 void *argp1 = 0 ;
37935 int res1 = 0 ;
37936 void *argp2 = 0 ;
37937 int res2 = 0 ;
37938 int val3 ;
37939 int ecode3 = 0 ;
37940 int val4 ;
37941 int ecode4 = 0 ;
37942 bool val5 ;
37943 int ecode5 = 0 ;
37944 PyObject * obj0 = 0 ;
37945 PyObject * obj1 = 0 ;
37946 PyObject * obj2 = 0 ;
37947 PyObject * obj3 = 0 ;
37948 PyObject * obj4 = 0 ;
37949 char * kwnames[] = {
37950 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37951 };
37952
37953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37955 if (!SWIG_IsOK(res1)) {
37956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37957 }
37958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37960 if (!SWIG_IsOK(res2)) {
37961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37962 }
37963 if (!argp2) {
37964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37965 }
37966 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37967 ecode3 = SWIG_AsVal_int(obj2, &val3);
37968 if (!SWIG_IsOK(ecode3)) {
37969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37970 }
37971 arg3 = static_cast< int >(val3);
37972 ecode4 = SWIG_AsVal_int(obj3, &val4);
37973 if (!SWIG_IsOK(ecode4)) {
37974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37975 }
37976 arg4 = static_cast< int >(val4);
37977 if (obj4) {
37978 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37979 if (!SWIG_IsOK(ecode5)) {
37980 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37981 }
37982 arg5 = static_cast< bool >(val5);
37983 }
37984 {
37985 PyThreadState* __tstate = wxPyBeginAllowThreads();
37986 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37987 wxPyEndAllowThreads(__tstate);
37988 if (PyErr_Occurred()) SWIG_fail;
37989 }
37990 resultobj = SWIG_Py_Void();
37991 return resultobj;
37992fail:
37993 return NULL;
37994}
37995
37996
37997SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37998 PyObject *resultobj = 0;
37999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38000 wxBitmap *arg2 = 0 ;
38001 wxPoint *arg3 = 0 ;
38002 bool arg4 = (bool) false ;
38003 void *argp1 = 0 ;
38004 int res1 = 0 ;
38005 void *argp2 = 0 ;
38006 int res2 = 0 ;
38007 wxPoint temp3 ;
38008 bool val4 ;
38009 int ecode4 = 0 ;
38010 PyObject * obj0 = 0 ;
38011 PyObject * obj1 = 0 ;
38012 PyObject * obj2 = 0 ;
38013 PyObject * obj3 = 0 ;
38014 char * kwnames[] = {
38015 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38016 };
38017
38018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38020 if (!SWIG_IsOK(res1)) {
38021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38022 }
38023 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38025 if (!SWIG_IsOK(res2)) {
38026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38027 }
38028 if (!argp2) {
38029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38030 }
38031 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38032 {
38033 arg3 = &temp3;
38034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38035 }
38036 if (obj3) {
38037 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38038 if (!SWIG_IsOK(ecode4)) {
38039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38040 }
38041 arg4 = static_cast< bool >(val4);
38042 }
38043 {
38044 PyThreadState* __tstate = wxPyBeginAllowThreads();
38045 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38046 wxPyEndAllowThreads(__tstate);
38047 if (PyErr_Occurred()) SWIG_fail;
38048 }
38049 resultobj = SWIG_Py_Void();
38050 return resultobj;
38051fail:
38052 return NULL;
38053}
38054
38055
38056SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38057 PyObject *resultobj = 0;
38058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38059 wxString *arg2 = 0 ;
38060 int arg3 ;
38061 int arg4 ;
38062 void *argp1 = 0 ;
38063 int res1 = 0 ;
38064 bool temp2 = false ;
38065 int val3 ;
38066 int ecode3 = 0 ;
38067 int val4 ;
38068 int ecode4 = 0 ;
38069 PyObject * obj0 = 0 ;
38070 PyObject * obj1 = 0 ;
38071 PyObject * obj2 = 0 ;
38072 PyObject * obj3 = 0 ;
38073 char * kwnames[] = {
38074 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38075 };
38076
38077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38079 if (!SWIG_IsOK(res1)) {
38080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38081 }
38082 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38083 {
38084 arg2 = wxString_in_helper(obj1);
38085 if (arg2 == NULL) SWIG_fail;
38086 temp2 = true;
38087 }
38088 ecode3 = SWIG_AsVal_int(obj2, &val3);
38089 if (!SWIG_IsOK(ecode3)) {
38090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38091 }
38092 arg3 = static_cast< int >(val3);
38093 ecode4 = SWIG_AsVal_int(obj3, &val4);
38094 if (!SWIG_IsOK(ecode4)) {
38095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38096 }
38097 arg4 = static_cast< int >(val4);
38098 {
38099 PyThreadState* __tstate = wxPyBeginAllowThreads();
38100 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38101 wxPyEndAllowThreads(__tstate);
38102 if (PyErr_Occurred()) SWIG_fail;
38103 }
38104 resultobj = SWIG_Py_Void();
38105 {
38106 if (temp2)
38107 delete arg2;
38108 }
38109 return resultobj;
38110fail:
38111 {
38112 if (temp2)
38113 delete arg2;
38114 }
38115 return NULL;
38116}
38117
38118
38119SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38120 PyObject *resultobj = 0;
38121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38122 wxString *arg2 = 0 ;
38123 wxPoint *arg3 = 0 ;
38124 void *argp1 = 0 ;
38125 int res1 = 0 ;
38126 bool temp2 = false ;
38127 wxPoint temp3 ;
38128 PyObject * obj0 = 0 ;
38129 PyObject * obj1 = 0 ;
38130 PyObject * obj2 = 0 ;
38131 char * kwnames[] = {
38132 (char *) "self",(char *) "text",(char *) "pt", NULL
38133 };
38134
38135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38137 if (!SWIG_IsOK(res1)) {
38138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38139 }
38140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38141 {
38142 arg2 = wxString_in_helper(obj1);
38143 if (arg2 == NULL) SWIG_fail;
38144 temp2 = true;
38145 }
38146 {
38147 arg3 = &temp3;
38148 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38149 }
38150 {
38151 PyThreadState* __tstate = wxPyBeginAllowThreads();
38152 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38153 wxPyEndAllowThreads(__tstate);
38154 if (PyErr_Occurred()) SWIG_fail;
38155 }
38156 resultobj = SWIG_Py_Void();
38157 {
38158 if (temp2)
38159 delete arg2;
38160 }
38161 return resultobj;
38162fail:
38163 {
38164 if (temp2)
38165 delete arg2;
38166 }
38167 return NULL;
38168}
38169
38170
38171SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38172 PyObject *resultobj = 0;
38173 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38174 wxString *arg2 = 0 ;
38175 int arg3 ;
38176 int arg4 ;
38177 double arg5 ;
38178 void *argp1 = 0 ;
38179 int res1 = 0 ;
38180 bool temp2 = false ;
38181 int val3 ;
38182 int ecode3 = 0 ;
38183 int val4 ;
38184 int ecode4 = 0 ;
38185 double val5 ;
38186 int ecode5 = 0 ;
38187 PyObject * obj0 = 0 ;
38188 PyObject * obj1 = 0 ;
38189 PyObject * obj2 = 0 ;
38190 PyObject * obj3 = 0 ;
38191 PyObject * obj4 = 0 ;
38192 char * kwnames[] = {
38193 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38194 };
38195
38196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38198 if (!SWIG_IsOK(res1)) {
38199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38200 }
38201 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38202 {
38203 arg2 = wxString_in_helper(obj1);
38204 if (arg2 == NULL) SWIG_fail;
38205 temp2 = true;
38206 }
38207 ecode3 = SWIG_AsVal_int(obj2, &val3);
38208 if (!SWIG_IsOK(ecode3)) {
38209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38210 }
38211 arg3 = static_cast< int >(val3);
38212 ecode4 = SWIG_AsVal_int(obj3, &val4);
38213 if (!SWIG_IsOK(ecode4)) {
38214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38215 }
38216 arg4 = static_cast< int >(val4);
38217 ecode5 = SWIG_AsVal_double(obj4, &val5);
38218 if (!SWIG_IsOK(ecode5)) {
38219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38220 }
38221 arg5 = static_cast< double >(val5);
38222 {
38223 PyThreadState* __tstate = wxPyBeginAllowThreads();
38224 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38225 wxPyEndAllowThreads(__tstate);
38226 if (PyErr_Occurred()) SWIG_fail;
38227 }
38228 resultobj = SWIG_Py_Void();
38229 {
38230 if (temp2)
38231 delete arg2;
38232 }
38233 return resultobj;
38234fail:
38235 {
38236 if (temp2)
38237 delete arg2;
38238 }
38239 return NULL;
38240}
38241
38242
38243SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38244 PyObject *resultobj = 0;
38245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38246 wxString *arg2 = 0 ;
38247 wxPoint *arg3 = 0 ;
38248 double arg4 ;
38249 void *argp1 = 0 ;
38250 int res1 = 0 ;
38251 bool temp2 = false ;
38252 wxPoint temp3 ;
38253 double val4 ;
38254 int ecode4 = 0 ;
38255 PyObject * obj0 = 0 ;
38256 PyObject * obj1 = 0 ;
38257 PyObject * obj2 = 0 ;
38258 PyObject * obj3 = 0 ;
38259 char * kwnames[] = {
38260 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38261 };
38262
38263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38265 if (!SWIG_IsOK(res1)) {
38266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38267 }
38268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38269 {
38270 arg2 = wxString_in_helper(obj1);
38271 if (arg2 == NULL) SWIG_fail;
38272 temp2 = true;
38273 }
38274 {
38275 arg3 = &temp3;
38276 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38277 }
38278 ecode4 = SWIG_AsVal_double(obj3, &val4);
38279 if (!SWIG_IsOK(ecode4)) {
38280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38281 }
38282 arg4 = static_cast< double >(val4);
38283 {
38284 PyThreadState* __tstate = wxPyBeginAllowThreads();
38285 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38286 wxPyEndAllowThreads(__tstate);
38287 if (PyErr_Occurred()) SWIG_fail;
38288 }
38289 resultobj = SWIG_Py_Void();
38290 {
38291 if (temp2)
38292 delete arg2;
38293 }
38294 return resultobj;
38295fail:
38296 {
38297 if (temp2)
38298 delete arg2;
38299 }
38300 return NULL;
38301}
38302
38303
38304SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38305 PyObject *resultobj = 0;
38306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38307 int arg2 ;
38308 wxPoint *arg3 = (wxPoint *) 0 ;
38309 int arg4 = (int) 0 ;
38310 int arg5 = (int) 0 ;
38311 void *argp1 = 0 ;
38312 int res1 = 0 ;
38313 int val4 ;
38314 int ecode4 = 0 ;
38315 int val5 ;
38316 int ecode5 = 0 ;
38317 PyObject * obj0 = 0 ;
38318 PyObject * obj1 = 0 ;
38319 PyObject * obj2 = 0 ;
38320 PyObject * obj3 = 0 ;
38321 char * kwnames[] = {
38322 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38323 };
38324
38325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38327 if (!SWIG_IsOK(res1)) {
38328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38329 }
38330 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38331 {
38332 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38333 if (arg3 == NULL) SWIG_fail;
38334 }
38335 if (obj2) {
38336 ecode4 = SWIG_AsVal_int(obj2, &val4);
38337 if (!SWIG_IsOK(ecode4)) {
38338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38339 }
38340 arg4 = static_cast< int >(val4);
38341 }
38342 if (obj3) {
38343 ecode5 = SWIG_AsVal_int(obj3, &val5);
38344 if (!SWIG_IsOK(ecode5)) {
38345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38346 }
38347 arg5 = static_cast< int >(val5);
38348 }
38349 {
38350 PyThreadState* __tstate = wxPyBeginAllowThreads();
38351 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38352 wxPyEndAllowThreads(__tstate);
38353 if (PyErr_Occurred()) SWIG_fail;
38354 }
38355 resultobj = SWIG_Py_Void();
38356 {
38357 if (arg3) delete [] arg3;
38358 }
38359 return resultobj;
38360fail:
38361 {
38362 if (arg3) delete [] arg3;
38363 }
38364 return NULL;
38365}
38366
38367
38368SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38369 PyObject *resultobj = 0;
38370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38371 int arg2 ;
38372 wxPoint *arg3 = (wxPoint *) 0 ;
38373 int arg4 = (int) 0 ;
38374 int arg5 = (int) 0 ;
38375 int arg6 = (int) wxODDEVEN_RULE ;
38376 void *argp1 = 0 ;
38377 int res1 = 0 ;
38378 int val4 ;
38379 int ecode4 = 0 ;
38380 int val5 ;
38381 int ecode5 = 0 ;
38382 int val6 ;
38383 int ecode6 = 0 ;
38384 PyObject * obj0 = 0 ;
38385 PyObject * obj1 = 0 ;
38386 PyObject * obj2 = 0 ;
38387 PyObject * obj3 = 0 ;
38388 PyObject * obj4 = 0 ;
38389 char * kwnames[] = {
38390 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38391 };
38392
38393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38395 if (!SWIG_IsOK(res1)) {
38396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38397 }
38398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38399 {
38400 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38401 if (arg3 == NULL) SWIG_fail;
38402 }
38403 if (obj2) {
38404 ecode4 = SWIG_AsVal_int(obj2, &val4);
38405 if (!SWIG_IsOK(ecode4)) {
38406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38407 }
38408 arg4 = static_cast< int >(val4);
38409 }
38410 if (obj3) {
38411 ecode5 = SWIG_AsVal_int(obj3, &val5);
38412 if (!SWIG_IsOK(ecode5)) {
38413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38414 }
38415 arg5 = static_cast< int >(val5);
38416 }
38417 if (obj4) {
38418 ecode6 = SWIG_AsVal_int(obj4, &val6);
38419 if (!SWIG_IsOK(ecode6)) {
38420 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38421 }
38422 arg6 = static_cast< int >(val6);
38423 }
38424 {
38425 PyThreadState* __tstate = wxPyBeginAllowThreads();
38426 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38427 wxPyEndAllowThreads(__tstate);
38428 if (PyErr_Occurred()) SWIG_fail;
38429 }
38430 resultobj = SWIG_Py_Void();
38431 {
38432 if (arg3) delete [] arg3;
38433 }
38434 return resultobj;
38435fail:
38436 {
38437 if (arg3) delete [] arg3;
38438 }
38439 return NULL;
38440}
38441
38442
38443SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38444 PyObject *resultobj = 0;
38445 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38446 wxString *arg2 = 0 ;
38447 wxRect *arg3 = 0 ;
38448 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38449 int arg5 = (int) -1 ;
38450 void *argp1 = 0 ;
38451 int res1 = 0 ;
38452 bool temp2 = false ;
38453 wxRect temp3 ;
38454 int val4 ;
38455 int ecode4 = 0 ;
38456 int val5 ;
38457 int ecode5 = 0 ;
38458 PyObject * obj0 = 0 ;
38459 PyObject * obj1 = 0 ;
38460 PyObject * obj2 = 0 ;
38461 PyObject * obj3 = 0 ;
38462 PyObject * obj4 = 0 ;
38463 char * kwnames[] = {
38464 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38465 };
38466
38467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38469 if (!SWIG_IsOK(res1)) {
38470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38471 }
38472 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38473 {
38474 arg2 = wxString_in_helper(obj1);
38475 if (arg2 == NULL) SWIG_fail;
38476 temp2 = true;
38477 }
38478 {
38479 arg3 = &temp3;
38480 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38481 }
38482 if (obj3) {
38483 ecode4 = SWIG_AsVal_int(obj3, &val4);
38484 if (!SWIG_IsOK(ecode4)) {
38485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38486 }
38487 arg4 = static_cast< int >(val4);
38488 }
38489 if (obj4) {
38490 ecode5 = SWIG_AsVal_int(obj4, &val5);
38491 if (!SWIG_IsOK(ecode5)) {
38492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38493 }
38494 arg5 = static_cast< int >(val5);
38495 }
38496 {
38497 PyThreadState* __tstate = wxPyBeginAllowThreads();
38498 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38499 wxPyEndAllowThreads(__tstate);
38500 if (PyErr_Occurred()) SWIG_fail;
38501 }
38502 resultobj = SWIG_Py_Void();
38503 {
38504 if (temp2)
38505 delete arg2;
38506 }
38507 return resultobj;
38508fail:
38509 {
38510 if (temp2)
38511 delete arg2;
38512 }
38513 return NULL;
38514}
38515
38516
38517SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38518 PyObject *resultobj = 0;
38519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38520 wxString *arg2 = 0 ;
38521 wxBitmap *arg3 = 0 ;
38522 wxRect *arg4 = 0 ;
38523 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38524 int arg6 = (int) -1 ;
38525 void *argp1 = 0 ;
38526 int res1 = 0 ;
38527 bool temp2 = false ;
38528 void *argp3 = 0 ;
38529 int res3 = 0 ;
38530 wxRect temp4 ;
38531 int val5 ;
38532 int ecode5 = 0 ;
38533 int val6 ;
38534 int ecode6 = 0 ;
38535 PyObject * obj0 = 0 ;
38536 PyObject * obj1 = 0 ;
38537 PyObject * obj2 = 0 ;
38538 PyObject * obj3 = 0 ;
38539 PyObject * obj4 = 0 ;
38540 PyObject * obj5 = 0 ;
38541 char * kwnames[] = {
38542 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38543 };
38544
38545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38547 if (!SWIG_IsOK(res1)) {
38548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38549 }
38550 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38551 {
38552 arg2 = wxString_in_helper(obj1);
38553 if (arg2 == NULL) SWIG_fail;
38554 temp2 = true;
38555 }
38556 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38557 if (!SWIG_IsOK(res3)) {
38558 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38559 }
38560 if (!argp3) {
38561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38562 }
38563 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38564 {
38565 arg4 = &temp4;
38566 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38567 }
38568 if (obj4) {
38569 ecode5 = SWIG_AsVal_int(obj4, &val5);
38570 if (!SWIG_IsOK(ecode5)) {
38571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38572 }
38573 arg5 = static_cast< int >(val5);
38574 }
38575 if (obj5) {
38576 ecode6 = SWIG_AsVal_int(obj5, &val6);
38577 if (!SWIG_IsOK(ecode6)) {
38578 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38579 }
38580 arg6 = static_cast< int >(val6);
38581 }
38582 {
38583 PyThreadState* __tstate = wxPyBeginAllowThreads();
38584 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38585 wxPyEndAllowThreads(__tstate);
38586 if (PyErr_Occurred()) SWIG_fail;
38587 }
38588 resultobj = SWIG_Py_Void();
38589 {
38590 if (temp2)
38591 delete arg2;
38592 }
38593 return resultobj;
38594fail:
38595 {
38596 if (temp2)
38597 delete arg2;
38598 }
38599 return NULL;
38600}
38601
38602
38603SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38604 PyObject *resultobj = 0;
38605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38606 int arg2 ;
38607 wxPoint *arg3 = (wxPoint *) 0 ;
38608 void *argp1 = 0 ;
38609 int res1 = 0 ;
38610 PyObject * obj0 = 0 ;
38611 PyObject * obj1 = 0 ;
38612 char * kwnames[] = {
38613 (char *) "self",(char *) "points", NULL
38614 };
38615
38616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38618 if (!SWIG_IsOK(res1)) {
38619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38620 }
38621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38622 {
38623 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38624 if (arg3 == NULL) SWIG_fail;
38625 }
38626 {
38627 PyThreadState* __tstate = wxPyBeginAllowThreads();
38628 (arg1)->DrawSpline(arg2,arg3);
38629 wxPyEndAllowThreads(__tstate);
38630 if (PyErr_Occurred()) SWIG_fail;
38631 }
38632 resultobj = SWIG_Py_Void();
38633 {
38634 if (arg3) delete [] arg3;
38635 }
38636 return resultobj;
38637fail:
38638 {
38639 if (arg3) delete [] arg3;
38640 }
38641 return NULL;
38642}
38643
38644
38645SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38646 PyObject *resultobj = 0;
38647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38648 void *argp1 = 0 ;
38649 int res1 = 0 ;
38650 PyObject *swig_obj[1] ;
38651
38652 if (!args) SWIG_fail;
38653 swig_obj[0] = args;
38654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38655 if (!SWIG_IsOK(res1)) {
38656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38657 }
38658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38659 {
38660 PyThreadState* __tstate = wxPyBeginAllowThreads();
38661 (arg1)->Clear();
38662 wxPyEndAllowThreads(__tstate);
38663 if (PyErr_Occurred()) SWIG_fail;
38664 }
38665 resultobj = SWIG_Py_Void();
38666 return resultobj;
38667fail:
38668 return NULL;
38669}
38670
38671
38672SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38673 PyObject *resultobj = 0;
38674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38675 wxFont *arg2 = 0 ;
38676 void *argp1 = 0 ;
38677 int res1 = 0 ;
38678 void *argp2 = 0 ;
38679 int res2 = 0 ;
38680 PyObject * obj0 = 0 ;
38681 PyObject * obj1 = 0 ;
38682 char * kwnames[] = {
38683 (char *) "self",(char *) "font", NULL
38684 };
38685
38686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38688 if (!SWIG_IsOK(res1)) {
38689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38690 }
38691 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38693 if (!SWIG_IsOK(res2)) {
38694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38695 }
38696 if (!argp2) {
38697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38698 }
38699 arg2 = reinterpret_cast< wxFont * >(argp2);
38700 {
38701 PyThreadState* __tstate = wxPyBeginAllowThreads();
38702 (arg1)->SetFont((wxFont const &)*arg2);
38703 wxPyEndAllowThreads(__tstate);
38704 if (PyErr_Occurred()) SWIG_fail;
38705 }
38706 resultobj = SWIG_Py_Void();
38707 return resultobj;
38708fail:
38709 return NULL;
38710}
38711
38712
38713SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38714 PyObject *resultobj = 0;
38715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38716 wxPen *arg2 = 0 ;
38717 void *argp1 = 0 ;
38718 int res1 = 0 ;
38719 void *argp2 = 0 ;
38720 int res2 = 0 ;
38721 PyObject * obj0 = 0 ;
38722 PyObject * obj1 = 0 ;
38723 char * kwnames[] = {
38724 (char *) "self",(char *) "pen", NULL
38725 };
38726
38727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38729 if (!SWIG_IsOK(res1)) {
38730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38731 }
38732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38734 if (!SWIG_IsOK(res2)) {
38735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38736 }
38737 if (!argp2) {
38738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38739 }
38740 arg2 = reinterpret_cast< wxPen * >(argp2);
38741 {
38742 PyThreadState* __tstate = wxPyBeginAllowThreads();
38743 (arg1)->SetPen((wxPen const &)*arg2);
38744 wxPyEndAllowThreads(__tstate);
38745 if (PyErr_Occurred()) SWIG_fail;
38746 }
38747 resultobj = SWIG_Py_Void();
38748 return resultobj;
38749fail:
38750 return NULL;
38751}
38752
38753
38754SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38755 PyObject *resultobj = 0;
38756 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38757 wxBrush *arg2 = 0 ;
38758 void *argp1 = 0 ;
38759 int res1 = 0 ;
38760 void *argp2 = 0 ;
38761 int res2 = 0 ;
38762 PyObject * obj0 = 0 ;
38763 PyObject * obj1 = 0 ;
38764 char * kwnames[] = {
38765 (char *) "self",(char *) "brush", NULL
38766 };
38767
38768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38770 if (!SWIG_IsOK(res1)) {
38771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38772 }
38773 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38775 if (!SWIG_IsOK(res2)) {
38776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38777 }
38778 if (!argp2) {
38779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38780 }
38781 arg2 = reinterpret_cast< wxBrush * >(argp2);
38782 {
38783 PyThreadState* __tstate = wxPyBeginAllowThreads();
38784 (arg1)->SetBrush((wxBrush const &)*arg2);
38785 wxPyEndAllowThreads(__tstate);
38786 if (PyErr_Occurred()) SWIG_fail;
38787 }
38788 resultobj = SWIG_Py_Void();
38789 return resultobj;
38790fail:
38791 return NULL;
38792}
38793
38794
38795SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38796 PyObject *resultobj = 0;
38797 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38798 wxBrush *arg2 = 0 ;
38799 void *argp1 = 0 ;
38800 int res1 = 0 ;
38801 void *argp2 = 0 ;
38802 int res2 = 0 ;
38803 PyObject * obj0 = 0 ;
38804 PyObject * obj1 = 0 ;
38805 char * kwnames[] = {
38806 (char *) "self",(char *) "brush", NULL
38807 };
38808
38809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38811 if (!SWIG_IsOK(res1)) {
38812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38813 }
38814 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38816 if (!SWIG_IsOK(res2)) {
38817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38818 }
38819 if (!argp2) {
38820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38821 }
38822 arg2 = reinterpret_cast< wxBrush * >(argp2);
38823 {
38824 PyThreadState* __tstate = wxPyBeginAllowThreads();
38825 (arg1)->SetBackground((wxBrush const &)*arg2);
38826 wxPyEndAllowThreads(__tstate);
38827 if (PyErr_Occurred()) SWIG_fail;
38828 }
38829 resultobj = SWIG_Py_Void();
38830 return resultobj;
38831fail:
38832 return NULL;
38833}
38834
38835
38836SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38837 PyObject *resultobj = 0;
38838 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38839 int arg2 ;
38840 void *argp1 = 0 ;
38841 int res1 = 0 ;
38842 int val2 ;
38843 int ecode2 = 0 ;
38844 PyObject * obj0 = 0 ;
38845 PyObject * obj1 = 0 ;
38846 char * kwnames[] = {
38847 (char *) "self",(char *) "mode", NULL
38848 };
38849
38850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38852 if (!SWIG_IsOK(res1)) {
38853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38854 }
38855 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38856 ecode2 = SWIG_AsVal_int(obj1, &val2);
38857 if (!SWIG_IsOK(ecode2)) {
38858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38859 }
38860 arg2 = static_cast< int >(val2);
38861 {
38862 PyThreadState* __tstate = wxPyBeginAllowThreads();
38863 (arg1)->SetBackgroundMode(arg2);
38864 wxPyEndAllowThreads(__tstate);
38865 if (PyErr_Occurred()) SWIG_fail;
38866 }
38867 resultobj = SWIG_Py_Void();
38868 return resultobj;
38869fail:
38870 return NULL;
38871}
38872
38873
38874SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38875 PyObject *resultobj = 0;
38876 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38877 wxPalette *arg2 = 0 ;
38878 void *argp1 = 0 ;
38879 int res1 = 0 ;
38880 void *argp2 = 0 ;
38881 int res2 = 0 ;
38882 PyObject * obj0 = 0 ;
38883 PyObject * obj1 = 0 ;
38884 char * kwnames[] = {
38885 (char *) "self",(char *) "palette", NULL
38886 };
38887
38888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38890 if (!SWIG_IsOK(res1)) {
38891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38892 }
38893 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38895 if (!SWIG_IsOK(res2)) {
38896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38897 }
38898 if (!argp2) {
38899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38900 }
38901 arg2 = reinterpret_cast< wxPalette * >(argp2);
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 (arg1)->SetPalette((wxPalette const &)*arg2);
38905 wxPyEndAllowThreads(__tstate);
38906 if (PyErr_Occurred()) SWIG_fail;
38907 }
38908 resultobj = SWIG_Py_Void();
38909 return resultobj;
38910fail:
38911 return NULL;
38912}
38913
38914
38915SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38916 PyObject *resultobj = 0;
38917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38918 wxColour *arg2 = 0 ;
38919 void *argp1 = 0 ;
38920 int res1 = 0 ;
38921 wxColour temp2 ;
38922 PyObject * obj0 = 0 ;
38923 PyObject * obj1 = 0 ;
38924 char * kwnames[] = {
38925 (char *) "self",(char *) "colour", NULL
38926 };
38927
38928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38930 if (!SWIG_IsOK(res1)) {
38931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38932 }
38933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38934 {
38935 arg2 = &temp2;
38936 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38937 }
38938 {
38939 PyThreadState* __tstate = wxPyBeginAllowThreads();
38940 (arg1)->SetTextForeground((wxColour const &)*arg2);
38941 wxPyEndAllowThreads(__tstate);
38942 if (PyErr_Occurred()) SWIG_fail;
38943 }
38944 resultobj = SWIG_Py_Void();
38945 return resultobj;
38946fail:
38947 return NULL;
38948}
38949
38950
38951SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38952 PyObject *resultobj = 0;
38953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38954 wxColour *arg2 = 0 ;
38955 void *argp1 = 0 ;
38956 int res1 = 0 ;
38957 wxColour temp2 ;
38958 PyObject * obj0 = 0 ;
38959 PyObject * obj1 = 0 ;
38960 char * kwnames[] = {
38961 (char *) "self",(char *) "colour", NULL
38962 };
38963
38964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38966 if (!SWIG_IsOK(res1)) {
38967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38968 }
38969 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38970 {
38971 arg2 = &temp2;
38972 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38973 }
38974 {
38975 PyThreadState* __tstate = wxPyBeginAllowThreads();
38976 (arg1)->SetTextBackground((wxColour const &)*arg2);
38977 wxPyEndAllowThreads(__tstate);
38978 if (PyErr_Occurred()) SWIG_fail;
38979 }
38980 resultobj = SWIG_Py_Void();
38981 return resultobj;
38982fail:
38983 return NULL;
38984}
38985
38986
38987SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38988 PyObject *resultobj = 0;
38989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38990 int arg2 ;
38991 void *argp1 = 0 ;
38992 int res1 = 0 ;
38993 int val2 ;
38994 int ecode2 = 0 ;
38995 PyObject * obj0 = 0 ;
38996 PyObject * obj1 = 0 ;
38997 char * kwnames[] = {
38998 (char *) "self",(char *) "function", NULL
38999 };
39000
39001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39003 if (!SWIG_IsOK(res1)) {
39004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39005 }
39006 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39007 ecode2 = SWIG_AsVal_int(obj1, &val2);
39008 if (!SWIG_IsOK(ecode2)) {
39009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39010 }
39011 arg2 = static_cast< int >(val2);
39012 {
39013 PyThreadState* __tstate = wxPyBeginAllowThreads();
39014 (arg1)->SetLogicalFunction(arg2);
39015 wxPyEndAllowThreads(__tstate);
39016 if (PyErr_Occurred()) SWIG_fail;
39017 }
39018 resultobj = SWIG_Py_Void();
39019 return resultobj;
39020fail:
39021 return NULL;
39022}
39023
39024
39025SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39026 PyObject *obj;
39027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39028 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39029 return SWIG_Py_Void();
39030}
39031
39032SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39033 return SWIG_Python_InitShadowInstance(args);
39034}
39035
39036static PyMethodDef SwigMethods[] = {
39037 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39038 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39039 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39040 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39041 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39042 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39046 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39047 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39048 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 39049 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 39050 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
39051 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39056 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 39058 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39059 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39060 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39061 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39062 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39064 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 39067 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
39068 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39069 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39070 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39072 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39073 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39074 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39075 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39076 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 39077 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
39078 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39085 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39087 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39088 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39092 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39093 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39096 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39100 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39101 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39102 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 39103 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
39104 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39105 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39106 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39108 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39114 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39115 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
39116 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39117 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39118 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39119 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39120 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39121 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39122 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39128 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
39135 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39137 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39140 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39141 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39145 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39146 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39147 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39148 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39149 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39150 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39151 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39152 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39153 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39154 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39155 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39156 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39157 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39158 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39159 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39161 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39162 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39168 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39169 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39170 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39171 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39172 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39173 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39174 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39175 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39176 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39177 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39178 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39179 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39181 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39182 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39188 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39189 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
39190 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39192 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39193 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39194 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39196 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39197 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39202 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39203 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
39204 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39205 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39206 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39207 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39213 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39214 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39216 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39217 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39219 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39221 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39222 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39223 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39224 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39227 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39231 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39232 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39234 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39237 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39238 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
39239 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39240 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39241 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39242 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39247 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39248 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39253 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39254 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39260 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 39264 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39265 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39275 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39278 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39279 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39281 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39282 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39283 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39284 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39285 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39286 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39287 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39288 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39289 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39290 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39291 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39292 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39293 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39294 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39295 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39296 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39297 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39299 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39300 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39301 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39302 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39303 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39304 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39305 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39306 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39316 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39317 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39319 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39320 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39321 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39322 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39323 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39324 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39325 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39326 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39327 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39329 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39330 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39331 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39334 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39335 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39336 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39339 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39340 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39345 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39350 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39351 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39353 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39358 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
39359 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39362 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39363 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39364 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39365 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39366 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39367 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39368 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39369 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39370 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39371 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39372 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39373 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39374 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39386 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39387 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39388 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39390 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39391 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39393 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39394 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39395 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39396 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39399 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39400 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39401 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39402 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39403 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39404 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39405 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39406 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39407 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39408 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39409 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39410 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39411 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39413 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39416 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39417 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39418 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39419 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39420 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39421 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39422 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39423 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39425 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39426 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39433 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39434 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39435 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39437 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39441 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39442 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39443 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39444 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39445 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39446 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39452 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39453 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39454 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39467 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39468 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39469 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39470 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39471 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39478 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39493 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39494 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39504 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39506 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39507 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39508 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39515 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39516 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39517 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39518 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39519 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39524 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39525 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39526 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39527 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39536 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39537 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39538 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39539 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
39540 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39541 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39542 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39543 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39544 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39545 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39546 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39547 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39550 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39552 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39554 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39556 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39557 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39560 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39561 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39565 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39567 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39570 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39571 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39572 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39573 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39574 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39575 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39576 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39577 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39578 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39585 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39587 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39588 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39589 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39591 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39592 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39593 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39595 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39596 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39597 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39598 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39599 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39600 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 39601 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39602 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39604 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39605 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39606 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39607 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39608 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39611 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39612 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39613 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39615 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39616 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39618 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39619 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39621 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39622 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39623 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39624 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39625 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39626 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39627 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39629 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39630 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39631 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39632 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39633 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39634 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39636 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39637 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39639 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39641 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39642 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39643 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39644 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39646 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
39647 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39648 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39649 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39650 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39651 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39652 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39653 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39654 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39656 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39657 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39658 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39660 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39661 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39663 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39664 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39665 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39666 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39667 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39668 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39669 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39670 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39671 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39672 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39673 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39674 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39675 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39676 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39677 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39678 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39679 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39680 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39681 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39682 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39685 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39687 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39692 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39693 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39694 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39695 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39696 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39697 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39698 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39699 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39700 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39701 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39702 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39703 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39704 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39706 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39707 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39708 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39711 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39712 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39714 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39715 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39716 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39717 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
39718 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39719 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39720 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39721 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39722 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39724 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39727 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39728 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39729 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39730 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39731 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39732 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39733 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
39734 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39737 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39738 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39740 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39741 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39742 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39743 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39745 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39746 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39748 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39749 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39754 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39755 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39756 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39760 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39761 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39762 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39763 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39764 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39765 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39766 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39767 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39768 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39775 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39777 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39778 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39779 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39780 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39781 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39782 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39783 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39784 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39785 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39786 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39787 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39788 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39789 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39790 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39791 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39793 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39801 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39802 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39803 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39805 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
39806 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39807 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39808 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39809 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39810 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39812 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39813 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39816 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39817 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39818 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39819 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39820 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 39821 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39822 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39823 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39824 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 39825 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39826 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39827 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39828 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39829 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39832 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
39833 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39834 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39835 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39836 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39837 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39840 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39841 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39842 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39843 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39844 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
39845 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39846 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39847 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39848 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39849 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39850 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39851 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39855 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39860 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39861 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39862 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39863 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39864 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39865 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39866 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39867 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39868 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39869 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39870 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39871 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39872 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39873 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39874 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39875 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39876 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39877 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39878 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39879 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39880 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39881 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39882 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39883 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39884 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39885 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39886 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39887 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39888 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39889 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39890 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39891 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39892 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39893 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39894 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39896 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
39901 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39903 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39904 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39906 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39907 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39908 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39909 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39910 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39911 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39912 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39913 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39914 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39915 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39916 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39917 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39918 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39919 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39920 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39921 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39925 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39930 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39931 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39934 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39943 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39946 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39948 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39951 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39952 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39953 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39954 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39955 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39958 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39959 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39963 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39970 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39971 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39977 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39978 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39980 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39981 { NULL, NULL, 0, NULL }
39982};
39983
39984
39985/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39986
72ef6efb
RD
39987static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39988 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39989}
8e99bda9
RD
39990static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39991 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39992}
39993static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39994 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39995}
72ef6efb
RD
39996static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39997 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39998}
39999static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40000 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40001}
fc46b7f3
RD
40002static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40003 return (void *)((wxLocale *) ((wxPyLocale *) x));
40004}
70d7cb34
RD
40005static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40006 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40007}
40008static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40009 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40010}
40011static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40012 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40013}
40014static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40015 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40016}
40017static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40018 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40019}
40020static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40021 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40022}
554f62e9
RD
40023static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40024 return (void *)((wxGDIObject *) ((wxIcon *) x));
40025}
40026static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40027 return (void *)((wxGDIObject *) ((wxPalette *) x));
40028}
40029static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40030 return (void *)((wxGDIObject *) ((wxPen *) x));
40031}
40032static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40033 return (void *)((wxGDIObject *) ((wxFont *) x));
40034}
40035static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40036 return (void *)((wxGDIObject *) ((wxCursor *) x));
40037}
40038static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40039 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40040}
40041static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40042 return (void *)((wxGDIObject *) ((wxRegion *) x));
40043}
40044static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40045 return (void *)((wxGDIObject *) ((wxBrush *) x));
40046}
72ef6efb
RD
40047static void *_p_wxGCDCTo_p_wxDC(void *x) {
40048 return (void *)((wxDC *) ((wxGCDC *) x));
40049}
554f62e9
RD
40050static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40051 return (void *)((wxDC *) ((wxScreenDC *) x));
40052}
24f6c4e8
RD
40053static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40054 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40055}
554f62e9
RD
40056static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40057 return (void *)((wxDC *) ((wxMirrorDC *) x));
40058}
40059static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40060 return (void *)((wxDC *) ((wxMemoryDC *) x));
40061}
40062static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40063 return (void *)((wxDC *) ((wxWindowDC *) x));
40064}
40065static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40066 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40067}
554f62e9 40068static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 40069 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40070}
40071static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 40072 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 40073}
24f6c4e8
RD
40074static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40075 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40076}
40077static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40078 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40079}
554f62e9
RD
40080static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40081 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40082}
40083static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40084 return (void *)((wxDC *) ((wxPrinterDC *) x));
40085}
50efceee
RD
40086static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40087 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40088}
40089static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40090 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40091}
40092static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40093 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40094}
554f62e9
RD
40095static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40096 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40097}
40098static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40099 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40100}
40101static void *_p_wxPenTo_p_wxObject(void *x) {
40102 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40103}
40104static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40105 return (void *)((wxObject *) ((wxRegionIterator *) x));
40106}
554f62e9
RD
40107static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40108 return (void *)((wxObject *) ((wxSizerItem *) x));
40109}
0f83f5da
RD
40110static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40111 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40112}
554f62e9
RD
40113static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40114 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40115}
40116static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40117 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40118}
40119static void *_p_wxIconTo_p_wxObject(void *x) {
40120 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40121}
40122static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40123 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40124}
40125static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40126 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40127}
40128static void *_p_wxSizerTo_p_wxObject(void *x) {
40129 return (void *)((wxObject *) ((wxSizer *) x));
40130}
40131static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40132 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40133}
40134static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40136}
554f62e9
RD
40137static void *_p_wxEventTo_p_wxObject(void *x) {
40138 return (void *)((wxObject *) ((wxEvent *) x));
40139}
40140static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40141 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40142}
40143static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40144 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40145}
40146static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40147 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40148}
27e45892
RD
40149static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40150 return (void *)((wxObject *) ((wxPseudoDC *) x));
40151}
2131d850
RD
40152static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40153 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40154}
554f62e9
RD
40155static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40156 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40157}
40158static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40159 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40160}
40161static void *_p_wxDCTo_p_wxObject(void *x) {
40162 return (void *)((wxObject *) ((wxDC *) x));
40163}
40164static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40165 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40166}
40167static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40168 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40169}
40170static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40171 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40172}
40173static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40174 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40175}
40176static void *_p_wxControlTo_p_wxObject(void *x) {
40177 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40178}
70d7cb34
RD
40179static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40180 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40181}
554f62e9
RD
40182static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40183 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40184}
40185static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 40186 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
40187}
40188static void *_p_wxFSFileTo_p_wxObject(void *x) {
40189 return (void *)((wxObject *) ((wxFSFile *) x));
40190}
40191static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40192 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
40193}
40194static void *_p_wxRegionTo_p_wxObject(void *x) {
40195 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40196}
40197static void *_p_wxPySizerTo_p_wxObject(void *x) {
40198 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40199}
40200static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40201 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40202}
40203static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40204 return (void *)((wxObject *) ((wxGDIObject *) x));
40205}
70d7cb34
RD
40206static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40207 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40208}
40209static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40210 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40211}
554f62e9
RD
40212static void *_p_wxEffectsTo_p_wxObject(void *x) {
40213 return (void *)((wxObject *) ((wxEffects *) x));
40214}
40215static void *_p_wxPyEventTo_p_wxObject(void *x) {
40216 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40217}
40218static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40219 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40220}
40221static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40222 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40223}
70d7cb34
RD
40224static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40225 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40226}
554f62e9
RD
40227static void *_p_wxShowEventTo_p_wxObject(void *x) {
40228 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40229}
40230static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40231 return (void *)((wxObject *) ((wxMenuItem *) x));
40232}
40233static void *_p_wxDateEventTo_p_wxObject(void *x) {
40234 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40235}
40236static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40237 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40238}
40239static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40240 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40241}
40242static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40243 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40244}
40245static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40246 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40247}
40248static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40249 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40250}
40251static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40252 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40253}
40254static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40255 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40256}
40257static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40258 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40259}
40260static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40261 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40262}
40263static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40264 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40265}
40266static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40267 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40268}
40269static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40270 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40271}
40272static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40273 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40274}
40275static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40276 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40277}
40278static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40279 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40280}
40281static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40282 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40283}
40284static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40285 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40286}
40287static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40288 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40289}
40290static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40291 return (void *)((wxObject *) ((wxImageHandler *) x));
40292}
40293static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40294 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40295}
40296static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40297 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40298}
40299static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40300 return (void *)((wxObject *) ((wxEvtHandler *) x));
40301}
0f83f5da
RD
40302static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40303 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40304}
24f6c4e8
RD
40305static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40306 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40307}
554f62e9 40308static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 40309 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 40310}
24f6c4e8
RD
40311static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40312 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
40313}
40314static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40315 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40316}
40317static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40318 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40319}
40320static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40321 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40322}
40323static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40324 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40325}
40326static void *_p_wxImageTo_p_wxObject(void *x) {
40327 return (void *)((wxObject *) ((wxImage *) x));
40328}
40329static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40330 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40331}
70d7cb34
RD
40332static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40333 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40334}
40335static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40336 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40337}
554f62e9
RD
40338static void *_p_wxPaletteTo_p_wxObject(void *x) {
40339 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40340}
40341static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 40342 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
40343}
40344static void *_p_wxImageListTo_p_wxObject(void *x) {
40345 return (void *)((wxObject *) ((wxImageList *) x));
40346}
72ef6efb
RD
40347static void *_p_wxGCDCTo_p_wxObject(void *x) {
40348 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40349}
554f62e9
RD
40350static void *_p_wxCursorTo_p_wxObject(void *x) {
40351 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40352}
40353static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40354 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40355}
40356static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40357 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40358}
70d7cb34
RD
40359static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40360 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40361}
554f62e9
RD
40362static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40364}
40365static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40366 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40367}
40368static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40369 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40370}
40371static void *_p_wxWindowTo_p_wxObject(void *x) {
40372 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40373}
40374static void *_p_wxMenuTo_p_wxObject(void *x) {
40375 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40376}
40377static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40379}
40380static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40381 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40382}
554f62e9
RD
40383static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40384 return (void *)((wxObject *) ((wxFileSystem *) x));
40385}
40386static void *_p_wxBitmapTo_p_wxObject(void *x) {
40387 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40388}
40389static void *_p_wxMaskTo_p_wxObject(void *x) {
40390 return (void *)((wxObject *) ((wxMask *) x));
40391}
70d7cb34
RD
40392static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40393 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40394}
554f62e9
RD
40395static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40396 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40397}
40398static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40399 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40400}
40401static void *_p_wxPyAppTo_p_wxObject(void *x) {
40402 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40403}
40404static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40405 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40406}
40407static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40408 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40409}
40410static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40411 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40412}
40413static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40414 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40415}
40416static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40417 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40418}
40419static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40420 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40421}
40422static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40423 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40424}
40425static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40426 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40427}
40428static void *_p_wxFontTo_p_wxObject(void *x) {
40429 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40430}
40431static void *_p_wxBrushTo_p_wxObject(void *x) {
40432 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40433}
40434static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40435 return (void *)((wxObject *) ((wxMetaFile *) x));
40436}
40437static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40438 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40439}
40440static void *_p_wxColourTo_p_wxObject(void *x) {
40441 return (void *)((wxObject *) ((wxColour *) x));
40442}
554f62e9
RD
40443static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40444 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40445}
40446static void *_p_wxValidatorTo_p_wxObject(void *x) {
40447 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40448}
40449static void *_p_wxControlTo_p_wxWindow(void *x) {
40450 return (void *)((wxWindow *) ((wxControl *) x));
40451}
40452static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40453 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40454}
40455static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40456 return (void *)((wxWindow *) ((wxMenuBar *) x));
40457}
fc46b7f3
RD
40458static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40459 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40460}
40461static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40462 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40463}
40464static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 40465static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40466static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40467static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40468static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40469static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40470static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40471static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40472static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40473static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40474static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40475static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
40476static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40477static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40478static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40479static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40480static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40481static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9 40482static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 40483static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
554f62e9
RD
40484static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40485static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40486static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40487static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40488static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40489static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40490static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40491static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40492static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
554f62e9
RD
40493static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40494static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40495static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40496static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40497static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40498static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40499static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40500static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 40501static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 40502static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40503static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40504static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40505static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40506static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40507static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40508static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40509static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40510static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40511static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
40512static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40513static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40514static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40515static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40516static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40517static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40518static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40519static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40520static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40521static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40522static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40523static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40524static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40525static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40526static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40527static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
40528static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40529static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 40530static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40531static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40532static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40533static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40534static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40535static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40536static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40537static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40538static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40539static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40540static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40541static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40542static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40543static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40544static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40545static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40546static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40547static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40548static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40549static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40550static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40551static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40552static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40553static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40554static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40555static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40556static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40557static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40558static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40559static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40560static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40561static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40562static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40563static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40564static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40565static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40566static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40567static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
554f62e9 40568static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40569static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40570static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40571static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40572static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40573static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40574static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40575static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40576static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40577static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40578static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40579static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40580static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40581static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 40582static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40583static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40584static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40585static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40586static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40587static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40588static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40589static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40590static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40591static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40592static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40593static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40594static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40595static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40596static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40597static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40598static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40599static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40600static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40601static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40602static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40603static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40604static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40605static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
40606static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40607static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40608static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40609static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40610static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40611static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 40612static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40613static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 40614static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40615static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40616static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40617static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40618static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 40619static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40620static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9 40621static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 40622static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40623static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40624static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40625static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40626static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40627static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40628static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40629static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 40630static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
40631static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40632static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40633static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40634
40635static swig_type_info *swig_type_initial[] = {
fc46b7f3 40636 &_swigt__p_buffer,
554f62e9
RD
40637 &_swigt__p_char,
40638 &_swigt__p_double,
40639 &_swigt__p_form_ops_t,
40640 &_swigt__p_int,
40641 &_swigt__p_unsigned_char,
40642 &_swigt__p_unsigned_int,
40643 &_swigt__p_unsigned_long,
0a27f394 40644 &_swigt__p_void,
554f62e9
RD
40645 &_swigt__p_wxANIHandler,
40646 &_swigt__p_wxAcceleratorTable,
40647 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40648 &_swigt__p_wxAlphaPixelData,
40649 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40650 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
40651 &_swigt__p_wxBMPHandler,
40652 &_swigt__p_wxBitmap,
40653 &_swigt__p_wxBoxSizer,
40654 &_swigt__p_wxBrush,
40655 &_swigt__p_wxBrushList,
40656 &_swigt__p_wxBufferedDC,
40657 &_swigt__p_wxBufferedPaintDC,
40658 &_swigt__p_wxCURHandler,
fc46b7f3 40659 &_swigt__p_wxChar,
554f62e9
RD
40660 &_swigt__p_wxChildFocusEvent,
40661 &_swigt__p_wxClientDC,
2131d850 40662 &_swigt__p_wxClipboardTextEvent,
554f62e9 40663 &_swigt__p_wxCloseEvent,
72ef6efb 40664 &_swigt__p_wxColor,
554f62e9
RD
40665 &_swigt__p_wxColour,
40666 &_swigt__p_wxColourDatabase,
40667 &_swigt__p_wxCommandEvent,
40668 &_swigt__p_wxContextMenuEvent,
40669 &_swigt__p_wxControl,
40670 &_swigt__p_wxControlWithItems,
40671 &_swigt__p_wxCursor,
40672 &_swigt__p_wxDC,
70d7cb34
RD
40673 &_swigt__p_wxDCBrushChanger,
40674 &_swigt__p_wxDCClipper,
b39fe951 40675 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40676 &_swigt__p_wxDCPenChanger,
40677 &_swigt__p_wxDCTextColourChanger,
554f62e9
RD
40678 &_swigt__p_wxDash,
40679 &_swigt__p_wxDateEvent,
40680 &_swigt__p_wxDisplayChangedEvent,
40681 &_swigt__p_wxDropFilesEvent,
40682 &_swigt__p_wxDuplexMode,
40683 &_swigt__p_wxEffects,
40684 &_swigt__p_wxEncodingConverter,
40685 &_swigt__p_wxEraseEvent,
40686 &_swigt__p_wxEvent,
40687 &_swigt__p_wxEvtHandler,
40688 &_swigt__p_wxFSFile,
40689 &_swigt__p_wxFileSystem,
40690 &_swigt__p_wxFlexGridSizer,
40691 &_swigt__p_wxFocusEvent,
40692 &_swigt__p_wxFont,
40693 &_swigt__p_wxFontList,
40694 &_swigt__p_wxFontMapper,
40695 &_swigt__p_wxGBSizerItem,
72ef6efb 40696 &_swigt__p_wxGCDC,
50efceee 40697 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
40698 &_swigt__p_wxGDIObject,
40699 &_swigt__p_wxGIFHandler,
70d7cb34 40700 &_swigt__p_wxGraphicsBrush,
72ef6efb 40701 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40702 &_swigt__p_wxGraphicsFont,
40703 &_swigt__p_wxGraphicsMatrix,
40704 &_swigt__p_wxGraphicsObject,
72ef6efb 40705 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40706 &_swigt__p_wxGraphicsPen,
40707 &_swigt__p_wxGraphicsRenderer,
554f62e9
RD
40708 &_swigt__p_wxGridBagSizer,
40709 &_swigt__p_wxGridSizer,
33d6fd3b 40710 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
40711 &_swigt__p_wxICOHandler,
40712 &_swigt__p_wxIcon,
40713 &_swigt__p_wxIconBundle,
40714 &_swigt__p_wxIconLocation,
40715 &_swigt__p_wxIconizeEvent,
40716 &_swigt__p_wxIdleEvent,
40717 &_swigt__p_wxImage,
40718 &_swigt__p_wxImageHandler,
40719 &_swigt__p_wxImageList,
40720 &_swigt__p_wxIndividualLayoutConstraint,
40721 &_swigt__p_wxInitDialogEvent,
40722 &_swigt__p_wxJPEGHandler,
40723 &_swigt__p_wxKeyEvent,
40724 &_swigt__p_wxLanguageInfo,
40725 &_swigt__p_wxLayoutConstraints,
40726 &_swigt__p_wxLocale,
40727 &_swigt__p_wxMask,
40728 &_swigt__p_wxMaximizeEvent,
40729 &_swigt__p_wxMemoryDC,
40730 &_swigt__p_wxMenu,
40731 &_swigt__p_wxMenuBar,
40732 &_swigt__p_wxMenuEvent,
40733 &_swigt__p_wxMenuItem,
40734 &_swigt__p_wxMetaFile,
40735 &_swigt__p_wxMetaFileDC,
40736 &_swigt__p_wxMirrorDC,
40737 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 40738 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
40739 &_swigt__p_wxMouseEvent,
40740 &_swigt__p_wxMoveEvent,
40741 &_swigt__p_wxNativeEncodingInfo,
40742 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40743 &_swigt__p_wxNativePixelData,
40744 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
40745 &_swigt__p_wxNavigationKeyEvent,
40746 &_swigt__p_wxNcPaintEvent,
40747 &_swigt__p_wxNotifyEvent,
40748 &_swigt__p_wxObject,
b39fe951 40749 &_swigt__p_wxOverlay,
554f62e9
RD
40750 &_swigt__p_wxPCXHandler,
40751 &_swigt__p_wxPNGHandler,
40752 &_swigt__p_wxPNMHandler,
40753 &_swigt__p_wxPaintDC,
40754 &_swigt__p_wxPaintEvent,
40755 &_swigt__p_wxPalette,
40756 &_swigt__p_wxPaletteChangedEvent,
40757 &_swigt__p_wxPaperSize,
40758 &_swigt__p_wxPen,
40759 &_swigt__p_wxPenList,
fc46b7f3 40760 &_swigt__p_wxPixelDataBase,
554f62e9 40761 &_swigt__p_wxPoint,
72ef6efb 40762 &_swigt__p_wxPoint2D,
70d7cb34 40763 &_swigt__p_wxPoint2DDouble,
554f62e9
RD
40764 &_swigt__p_wxPostScriptDC,
40765 &_swigt__p_wxPrintData,
40766 &_swigt__p_wxPrinterDC,
27e45892 40767 &_swigt__p_wxPseudoDC,
554f62e9
RD
40768 &_swigt__p_wxPyApp,
40769 &_swigt__p_wxPyCommandEvent,
40770 &_swigt__p_wxPyEvent,
40771 &_swigt__p_wxPyFontEnumerator,
40772 &_swigt__p_wxPyImageHandler,
fc46b7f3 40773 &_swigt__p_wxPyLocale,
554f62e9
RD
40774 &_swigt__p_wxPySizer,
40775 &_swigt__p_wxPyValidator,
40776 &_swigt__p_wxQueryNewPaletteEvent,
40777 &_swigt__p_wxRect,
70d7cb34 40778 &_swigt__p_wxRect2DDouble,
554f62e9
RD
40779 &_swigt__p_wxRegion,
40780 &_swigt__p_wxRegionIterator,
40781 &_swigt__p_wxRendererNative,
40782 &_swigt__p_wxRendererVersion,
40783 &_swigt__p_wxScreenDC,
40784 &_swigt__p_wxScrollEvent,
40785 &_swigt__p_wxScrollWinEvent,
40786 &_swigt__p_wxSetCursorEvent,
40787 &_swigt__p_wxShowEvent,
40788 &_swigt__p_wxSize,
40789 &_swigt__p_wxSizeEvent,
40790 &_swigt__p_wxSizer,
40791 &_swigt__p_wxSizerItem,
40792 &_swigt__p_wxSplitterRenderParams,
40793 &_swigt__p_wxStaticBoxSizer,
40794 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40795 &_swigt__p_wxStockGDI,
554f62e9
RD
40796 &_swigt__p_wxString,
40797 &_swigt__p_wxSysColourChangedEvent,
40798 &_swigt__p_wxTIFFHandler,
40799 &_swigt__p_wxUpdateUIEvent,
40800 &_swigt__p_wxValidator,
40801 &_swigt__p_wxWindow,
40802 &_swigt__p_wxWindowCreateEvent,
40803 &_swigt__p_wxWindowDC,
40804 &_swigt__p_wxWindowDestroyEvent,
40805 &_swigt__p_wxXPMHandler,
40806};
40807
fc46b7f3 40808static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40809static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40810static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40811static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40812static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40813static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40814static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40815static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40816static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40817static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40818static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40819static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40820static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40821static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40822static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40823static 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}};
40824static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40825static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40826static 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}};
40827static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40828static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40829static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40830static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40831static 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
40832static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40833static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40834static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40835static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40836static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40837static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40838static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40839static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40840static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40841static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40842static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40843static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40844static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40845static 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 40846static 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 40847static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40848static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40849static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40850static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40851static 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 40852static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40853static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40854static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40855static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40856static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40857static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40858static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40859static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40860static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40861static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40862static 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 40863static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40864static 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
40865static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40866static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40867static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40868static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40869static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40870static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40871static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40872static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40873static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40874static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40875static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40876static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40877static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40878static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40879static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40880static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40881static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40882static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40883static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40884static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40885static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40886static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40887static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40888static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40889static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40890static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40891static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40892static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40893static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40894static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40895static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40896static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40897static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40898static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40899static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40900static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40901static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40902static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40903static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40904static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40905static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40906static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40907static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40908static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40909static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40910static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40911static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40912static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40913static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40914static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40915static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40916static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40917static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40918static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40919static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40920static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40921static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40922static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40923static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40924static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40925static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40926static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40927static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40928static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40929static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40930static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40931static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40932static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40933static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40934static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40935static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40936static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40937static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40938static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40939static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40940static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40941static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40942static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40943static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40944static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40945static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40946static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40947static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40948static 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 40949static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40950static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40951static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40952static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40953static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40954static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40955static 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 40956static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40957static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40958static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40959static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40960static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40961static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40962static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40963static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40964static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40965static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40966static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40967static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40968static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40969static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40970static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40971static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40972static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40973static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40974static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40975static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40976static 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 40977static 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
40978
40979static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40980 _swigc__p_buffer,
554f62e9
RD
40981 _swigc__p_char,
40982 _swigc__p_double,
40983 _swigc__p_form_ops_t,
40984 _swigc__p_int,
40985 _swigc__p_unsigned_char,
40986 _swigc__p_unsigned_int,
40987 _swigc__p_unsigned_long,
0a27f394 40988 _swigc__p_void,
554f62e9
RD
40989 _swigc__p_wxANIHandler,
40990 _swigc__p_wxAcceleratorTable,
40991 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40992 _swigc__p_wxAlphaPixelData,
40993 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40994 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
40995 _swigc__p_wxBMPHandler,
40996 _swigc__p_wxBitmap,
40997 _swigc__p_wxBoxSizer,
40998 _swigc__p_wxBrush,
40999 _swigc__p_wxBrushList,
41000 _swigc__p_wxBufferedDC,
41001 _swigc__p_wxBufferedPaintDC,
41002 _swigc__p_wxCURHandler,
fc46b7f3 41003 _swigc__p_wxChar,
554f62e9
RD
41004 _swigc__p_wxChildFocusEvent,
41005 _swigc__p_wxClientDC,
2131d850 41006 _swigc__p_wxClipboardTextEvent,
554f62e9 41007 _swigc__p_wxCloseEvent,
72ef6efb 41008 _swigc__p_wxColor,
554f62e9
RD
41009 _swigc__p_wxColour,
41010 _swigc__p_wxColourDatabase,
41011 _swigc__p_wxCommandEvent,
41012 _swigc__p_wxContextMenuEvent,
41013 _swigc__p_wxControl,
41014 _swigc__p_wxControlWithItems,
41015 _swigc__p_wxCursor,
41016 _swigc__p_wxDC,
70d7cb34
RD
41017 _swigc__p_wxDCBrushChanger,
41018 _swigc__p_wxDCClipper,
b39fe951 41019 _swigc__p_wxDCOverlay,
70d7cb34
RD
41020 _swigc__p_wxDCPenChanger,
41021 _swigc__p_wxDCTextColourChanger,
554f62e9
RD
41022 _swigc__p_wxDash,
41023 _swigc__p_wxDateEvent,
41024 _swigc__p_wxDisplayChangedEvent,
41025 _swigc__p_wxDropFilesEvent,
41026 _swigc__p_wxDuplexMode,
41027 _swigc__p_wxEffects,
41028 _swigc__p_wxEncodingConverter,
41029 _swigc__p_wxEraseEvent,
41030 _swigc__p_wxEvent,
41031 _swigc__p_wxEvtHandler,
41032 _swigc__p_wxFSFile,
41033 _swigc__p_wxFileSystem,
41034 _swigc__p_wxFlexGridSizer,
41035 _swigc__p_wxFocusEvent,
41036 _swigc__p_wxFont,
41037 _swigc__p_wxFontList,
41038 _swigc__p_wxFontMapper,
41039 _swigc__p_wxGBSizerItem,
72ef6efb 41040 _swigc__p_wxGCDC,
50efceee 41041 _swigc__p_wxGDIObjListBase,
554f62e9
RD
41042 _swigc__p_wxGDIObject,
41043 _swigc__p_wxGIFHandler,
70d7cb34 41044 _swigc__p_wxGraphicsBrush,
72ef6efb 41045 _swigc__p_wxGraphicsContext,
70d7cb34
RD
41046 _swigc__p_wxGraphicsFont,
41047 _swigc__p_wxGraphicsMatrix,
41048 _swigc__p_wxGraphicsObject,
72ef6efb 41049 _swigc__p_wxGraphicsPath,
70d7cb34
RD
41050 _swigc__p_wxGraphicsPen,
41051 _swigc__p_wxGraphicsRenderer,
554f62e9
RD
41052 _swigc__p_wxGridBagSizer,
41053 _swigc__p_wxGridSizer,
33d6fd3b 41054 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
41055 _swigc__p_wxICOHandler,
41056 _swigc__p_wxIcon,
41057 _swigc__p_wxIconBundle,
41058 _swigc__p_wxIconLocation,
41059 _swigc__p_wxIconizeEvent,
41060 _swigc__p_wxIdleEvent,
41061 _swigc__p_wxImage,
41062 _swigc__p_wxImageHandler,
41063 _swigc__p_wxImageList,
41064 _swigc__p_wxIndividualLayoutConstraint,
41065 _swigc__p_wxInitDialogEvent,
41066 _swigc__p_wxJPEGHandler,
41067 _swigc__p_wxKeyEvent,
41068 _swigc__p_wxLanguageInfo,
41069 _swigc__p_wxLayoutConstraints,
41070 _swigc__p_wxLocale,
41071 _swigc__p_wxMask,
41072 _swigc__p_wxMaximizeEvent,
41073 _swigc__p_wxMemoryDC,
41074 _swigc__p_wxMenu,
41075 _swigc__p_wxMenuBar,
41076 _swigc__p_wxMenuEvent,
41077 _swigc__p_wxMenuItem,
41078 _swigc__p_wxMetaFile,
41079 _swigc__p_wxMetaFileDC,
41080 _swigc__p_wxMirrorDC,
41081 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 41082 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
41083 _swigc__p_wxMouseEvent,
41084 _swigc__p_wxMoveEvent,
41085 _swigc__p_wxNativeEncodingInfo,
41086 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
41087 _swigc__p_wxNativePixelData,
41088 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
41089 _swigc__p_wxNavigationKeyEvent,
41090 _swigc__p_wxNcPaintEvent,
41091 _swigc__p_wxNotifyEvent,
41092 _swigc__p_wxObject,
b39fe951 41093 _swigc__p_wxOverlay,
554f62e9
RD
41094 _swigc__p_wxPCXHandler,
41095 _swigc__p_wxPNGHandler,
41096 _swigc__p_wxPNMHandler,
41097 _swigc__p_wxPaintDC,
41098 _swigc__p_wxPaintEvent,
41099 _swigc__p_wxPalette,
41100 _swigc__p_wxPaletteChangedEvent,
41101 _swigc__p_wxPaperSize,
41102 _swigc__p_wxPen,
41103 _swigc__p_wxPenList,
fc46b7f3 41104 _swigc__p_wxPixelDataBase,
554f62e9 41105 _swigc__p_wxPoint,
72ef6efb 41106 _swigc__p_wxPoint2D,
70d7cb34 41107 _swigc__p_wxPoint2DDouble,
554f62e9
RD
41108 _swigc__p_wxPostScriptDC,
41109 _swigc__p_wxPrintData,
41110 _swigc__p_wxPrinterDC,
27e45892 41111 _swigc__p_wxPseudoDC,
554f62e9
RD
41112 _swigc__p_wxPyApp,
41113 _swigc__p_wxPyCommandEvent,
41114 _swigc__p_wxPyEvent,
41115 _swigc__p_wxPyFontEnumerator,
41116 _swigc__p_wxPyImageHandler,
fc46b7f3 41117 _swigc__p_wxPyLocale,
554f62e9
RD
41118 _swigc__p_wxPySizer,
41119 _swigc__p_wxPyValidator,
41120 _swigc__p_wxQueryNewPaletteEvent,
41121 _swigc__p_wxRect,
70d7cb34 41122 _swigc__p_wxRect2DDouble,
554f62e9
RD
41123 _swigc__p_wxRegion,
41124 _swigc__p_wxRegionIterator,
41125 _swigc__p_wxRendererNative,
41126 _swigc__p_wxRendererVersion,
41127 _swigc__p_wxScreenDC,
41128 _swigc__p_wxScrollEvent,
41129 _swigc__p_wxScrollWinEvent,
41130 _swigc__p_wxSetCursorEvent,
41131 _swigc__p_wxShowEvent,
41132 _swigc__p_wxSize,
41133 _swigc__p_wxSizeEvent,
41134 _swigc__p_wxSizer,
41135 _swigc__p_wxSizerItem,
41136 _swigc__p_wxSplitterRenderParams,
41137 _swigc__p_wxStaticBoxSizer,
41138 _swigc__p_wxStdDialogButtonSizer,
50efceee 41139 _swigc__p_wxStockGDI,
554f62e9
RD
41140 _swigc__p_wxString,
41141 _swigc__p_wxSysColourChangedEvent,
41142 _swigc__p_wxTIFFHandler,
41143 _swigc__p_wxUpdateUIEvent,
41144 _swigc__p_wxValidator,
41145 _swigc__p_wxWindow,
41146 _swigc__p_wxWindowCreateEvent,
41147 _swigc__p_wxWindowDC,
41148 _swigc__p_wxWindowDestroyEvent,
41149 _swigc__p_wxXPMHandler,
41150};
41151
41152
41153/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41154
41155static swig_const_info swig_const_table[] = {
41156{0, 0, 0, 0.0, 0, 0}};
41157
41158#ifdef __cplusplus
41159}
41160#endif
41161/* -----------------------------------------------------------------------------
41162 * Type initialization:
41163 * This problem is tough by the requirement that no dynamic
41164 * memory is used. Also, since swig_type_info structures store pointers to
41165 * swig_cast_info structures and swig_cast_info structures store pointers back
41166 * to swig_type_info structures, we need some lookup code at initialization.
41167 * The idea is that swig generates all the structures that are needed.
41168 * The runtime then collects these partially filled structures.
41169 * The SWIG_InitializeModule function takes these initial arrays out of
41170 * swig_module, and does all the lookup, filling in the swig_module.types
41171 * array with the correct data and linking the correct swig_cast_info
41172 * structures together.
41173 *
41174 * The generated swig_type_info structures are assigned staticly to an initial
41175 * array. We just loop though that array, and handle each type individually.
41176 * First we lookup if this type has been already loaded, and if so, use the
41177 * loaded structure instead of the generated one. Then we have to fill in the
41178 * cast linked list. The cast data is initially stored in something like a
41179 * two-dimensional array. Each row corresponds to a type (there are the same
41180 * number of rows as there are in the swig_type_initial array). Each entry in
41181 * a column is one of the swig_cast_info structures for that type.
41182 * The cast_initial array is actually an array of arrays, because each row has
41183 * a variable number of columns. So to actually build the cast linked list,
41184 * we find the array of casts associated with the type, and loop through it
41185 * adding the casts to the list. The one last trick we need to do is making
41186 * sure the type pointer in the swig_cast_info struct is correct.
41187 *
41188 * First off, we lookup the cast->type name to see if it is already loaded.
41189 * There are three cases to handle:
41190 * 1) If the cast->type has already been loaded AND the type we are adding
41191 * casting info to has not been loaded (it is in this module), THEN we
41192 * replace the cast->type pointer with the type pointer that has already
41193 * been loaded.
41194 * 2) If BOTH types (the one we are adding casting info to, and the
41195 * cast->type) are loaded, THEN the cast info has already been loaded by
41196 * the previous module so we just ignore it.
41197 * 3) Finally, if cast->type has not already been loaded, then we add that
41198 * swig_cast_info to the linked list (because the cast->type) pointer will
41199 * be correct.
41200 * ----------------------------------------------------------------------------- */
41201
41202#ifdef __cplusplus
41203extern "C" {
41204#if 0
41205} /* c-mode */
41206#endif
41207#endif
41208
41209#if 0
41210#define SWIGRUNTIME_DEBUG
41211#endif
41212
41213SWIGRUNTIME void
41214SWIG_InitializeModule(void *clientdata) {
41215 size_t i;
41216 swig_module_info *module_head;
41217 static int init_run = 0;
41218
41219 clientdata = clientdata;
41220
41221 if (init_run) return;
41222 init_run = 1;
41223
41224 /* Initialize the swig_module */
41225 swig_module.type_initial = swig_type_initial;
41226 swig_module.cast_initial = swig_cast_initial;
41227
41228 /* Try and load any already created modules */
41229 module_head = SWIG_GetModule(clientdata);
41230 if (module_head) {
41231 swig_module.next = module_head->next;
41232 module_head->next = &swig_module;
41233 } else {
41234 /* This is the first module loaded */
41235 swig_module.next = &swig_module;
41236 SWIG_SetModule(clientdata, &swig_module);
41237 }
41238
41239 /* Now work on filling in swig_module.types */
41240#ifdef SWIGRUNTIME_DEBUG
41241 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41242#endif
41243 for (i = 0; i < swig_module.size; ++i) {
41244 swig_type_info *type = 0;
41245 swig_type_info *ret;
41246 swig_cast_info *cast;
41247
41248#ifdef SWIGRUNTIME_DEBUG
41249 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41250#endif
41251
41252 /* if there is another module already loaded */
41253 if (swig_module.next != &swig_module) {
41254 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 41255 }
554f62e9
RD
41256 if (type) {
41257 /* Overwrite clientdata field */
41258#ifdef SWIGRUNTIME_DEBUG
41259 printf("SWIG_InitializeModule: found type %s\n", type->name);
41260#endif
41261 if (swig_module.type_initial[i]->clientdata) {
41262 type->clientdata = swig_module.type_initial[i]->clientdata;
41263#ifdef SWIGRUNTIME_DEBUG
41264 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41265#endif
41266 }
41267 } else {
41268 type = swig_module.type_initial[i];
be9b1dca 41269 }
554f62e9
RD
41270
41271 /* Insert casting types */
41272 cast = swig_module.cast_initial[i];
41273 while (cast->type) {
41274 /* Don't need to add information already in the list */
41275 ret = 0;
41276#ifdef SWIGRUNTIME_DEBUG
41277 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41278#endif
41279 if (swig_module.next != &swig_module) {
41280 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41281#ifdef SWIGRUNTIME_DEBUG
41282 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41283#endif
41284 }
41285 if (ret) {
41286 if (type == swig_module.type_initial[i]) {
41287#ifdef SWIGRUNTIME_DEBUG
41288 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41289#endif
41290 cast->type = ret;
41291 ret = 0;
41292 } else {
41293 /* Check for casting already in the list */
41294 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41295#ifdef SWIGRUNTIME_DEBUG
41296 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41297#endif
41298 if (!ocast) ret = 0;
41299 }
41300 }
41301
41302 if (!ret) {
41303#ifdef SWIGRUNTIME_DEBUG
41304 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41305#endif
41306 if (type->cast) {
41307 type->cast->prev = cast;
41308 cast->next = type->cast;
41309 }
41310 type->cast = cast;
41311 }
41312 cast++;
be9b1dca 41313 }
554f62e9
RD
41314 /* Set entry in modules->types array equal to the type */
41315 swig_module.types[i] = type;
41316 }
41317 swig_module.types[i] = 0;
41318
41319#ifdef SWIGRUNTIME_DEBUG
41320 printf("**** SWIG_InitializeModule: Cast List ******\n");
41321 for (i = 0; i < swig_module.size; ++i) {
41322 int j = 0;
41323 swig_cast_info *cast = swig_module.cast_initial[i];
41324 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41325 while (cast->type) {
41326 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41327 cast++;
41328 ++j;
41329 }
41330 printf("---- Total casts: %d\n",j);
41331 }
41332 printf("**** SWIG_InitializeModule: Cast List ******\n");
41333#endif
41334}
41335
41336/* This function will propagate the clientdata field of type to
41337* any new swig_type_info structures that have been added into the list
41338* of equivalent types. It is like calling
41339* SWIG_TypeClientData(type, clientdata) a second time.
41340*/
41341SWIGRUNTIME void
41342SWIG_PropagateClientData(void) {
41343 size_t i;
41344 swig_cast_info *equiv;
41345 static int init_run = 0;
41346
41347 if (init_run) return;
41348 init_run = 1;
41349
41350 for (i = 0; i < swig_module.size; i++) {
41351 if (swig_module.types[i]->clientdata) {
41352 equiv = swig_module.types[i]->cast;
41353 while (equiv) {
41354 if (!equiv->converter) {
41355 if (equiv->type && !equiv->type->clientdata)
41356 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41357 }
41358 equiv = equiv->next;
41359 }
be9b1dca 41360 }
554f62e9
RD
41361 }
41362}
41363
41364#ifdef __cplusplus
41365#if 0
41366{
41367 /* c-mode */
41368#endif
41369}
41370#endif
41371
41372
41373
41374#ifdef __cplusplus
41375extern "C" {
41376#endif
41377
41378 /* Python-specific SWIG API */
41379#define SWIG_newvarlink() SWIG_Python_newvarlink()
41380#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41381#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41382
41383 /* -----------------------------------------------------------------------------
41384 * global variable support code.
41385 * ----------------------------------------------------------------------------- */
41386
41387 typedef struct swig_globalvar {
41388 char *name; /* Name of global variable */
41389 PyObject *(*get_attr)(void); /* Return the current value */
41390 int (*set_attr)(PyObject *); /* Set the value */
41391 struct swig_globalvar *next;
41392 } swig_globalvar;
41393
41394 typedef struct swig_varlinkobject {
41395 PyObject_HEAD
41396 swig_globalvar *vars;
41397 } swig_varlinkobject;
41398
41399 SWIGINTERN PyObject *
41400 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41401 return PyString_FromString("<Swig global variables>");
41402 }
41403
41404 SWIGINTERN PyObject *
41405 swig_varlink_str(swig_varlinkobject *v) {
41406 PyObject *str = PyString_FromString("(");
41407 swig_globalvar *var;
41408 for (var = v->vars; var; var=var->next) {
41409 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41410 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41411 }
41412 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41413 return str;
41414 }
41415
41416 SWIGINTERN int
41417 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41418 PyObject *str = swig_varlink_str(v);
41419 fprintf(fp,"Swig global variables ");
41420 fprintf(fp,"%s\n", PyString_AsString(str));
41421 Py_DECREF(str);
41422 return 0;
41423 }
41424
41425 SWIGINTERN void
41426 swig_varlink_dealloc(swig_varlinkobject *v) {
41427 swig_globalvar *var = v->vars;
41428 while (var) {
41429 swig_globalvar *n = var->next;
41430 free(var->name);
41431 free(var);
41432 var = n;
be9b1dca 41433 }
554f62e9
RD
41434 }
41435
41436 SWIGINTERN PyObject *
41437 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41438 PyObject *res = NULL;
41439 swig_globalvar *var = v->vars;
41440 while (var) {
41441 if (strcmp(var->name,n) == 0) {
41442 res = (*var->get_attr)();
41443 break;
41444 }
41445 var = var->next;
be9b1dca 41446 }
554f62e9
RD
41447 if (res == NULL && !PyErr_Occurred()) {
41448 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41449 }
554f62e9
RD
41450 return res;
41451 }
41452
41453 SWIGINTERN int
41454 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41455 int res = 1;
41456 swig_globalvar *var = v->vars;
41457 while (var) {
41458 if (strcmp(var->name,n) == 0) {
41459 res = (*var->set_attr)(p);
41460 break;
41461 }
41462 var = var->next;
be9b1dca 41463 }
554f62e9
RD
41464 if (res == 1 && !PyErr_Occurred()) {
41465 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41466 }
554f62e9
RD
41467 return res;
41468 }
41469
41470 SWIGINTERN PyTypeObject*
41471 swig_varlink_type(void) {
41472 static char varlink__doc__[] = "Swig var link object";
41473 static PyTypeObject varlink_type;
41474 static int type_init = 0;
41475 if (!type_init) {
41476 const PyTypeObject tmp
41477 = {
41478 PyObject_HEAD_INIT(NULL)
41479 0, /* Number of items in variable part (ob_size) */
41480 (char *)"swigvarlink", /* Type name (tp_name) */
41481 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41482 0, /* Itemsize (tp_itemsize) */
41483 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41484 (printfunc) swig_varlink_print, /* Print (tp_print) */
41485 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41486 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41487 0, /* tp_compare */
41488 (reprfunc) swig_varlink_repr, /* tp_repr */
41489 0, /* tp_as_number */
41490 0, /* tp_as_sequence */
41491 0, /* tp_as_mapping */
41492 0, /* tp_hash */
41493 0, /* tp_call */
41494 (reprfunc)swig_varlink_str, /* tp_str */
41495 0, /* tp_getattro */
41496 0, /* tp_setattro */
41497 0, /* tp_as_buffer */
41498 0, /* tp_flags */
41499 varlink__doc__, /* tp_doc */
41500 0, /* tp_traverse */
41501 0, /* tp_clear */
41502 0, /* tp_richcompare */
41503 0, /* tp_weaklistoffset */
41504#if PY_VERSION_HEX >= 0x02020000
41505 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41506#endif
41507#if PY_VERSION_HEX >= 0x02030000
41508 0, /* tp_del */
41509#endif
41510#ifdef COUNT_ALLOCS
41511 0,0,0,0 /* tp_alloc -> tp_next */
41512#endif
41513 };
41514 varlink_type = tmp;
41515 varlink_type.ob_type = &PyType_Type;
41516 type_init = 1;
be9b1dca 41517 }
554f62e9
RD
41518 return &varlink_type;
41519 }
41520
41521 /* Create a variable linking object for use later */
41522 SWIGINTERN PyObject *
41523 SWIG_Python_newvarlink(void) {
41524 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41525 if (result) {
41526 result->vars = 0;
41527 }
41528 return ((PyObject*) result);
41529 }
41530
41531 SWIGINTERN void
41532 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41533 swig_varlinkobject *v = (swig_varlinkobject *) p;
41534 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41535 if (gv) {
41536 size_t size = strlen(name)+1;
41537 gv->name = (char *)malloc(size);
41538 if (gv->name) {
41539 strncpy(gv->name,name,size);
41540 gv->get_attr = get_attr;
41541 gv->set_attr = set_attr;
41542 gv->next = v->vars;
41543 }
be9b1dca 41544 }
554f62e9
RD
41545 v->vars = gv;
41546 }
41547
41548 SWIGINTERN PyObject *
41549 SWIG_globals() {
41550 static PyObject *_SWIG_globals = 0;
41551 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41552 return _SWIG_globals;
41553 }
41554
41555 /* -----------------------------------------------------------------------------
41556 * constants/methods manipulation
41557 * ----------------------------------------------------------------------------- */
41558
41559 /* Install Constants */
41560 SWIGINTERN void
41561 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41562 PyObject *obj = 0;
41563 size_t i;
41564 for (i = 0; constants[i].type; ++i) {
41565 switch(constants[i].type) {
41566 case SWIG_PY_POINTER:
41567 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41568 break;
41569 case SWIG_PY_BINARY:
41570 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41571 break;
41572 default:
41573 obj = 0;
41574 break;
41575 }
41576 if (obj) {
41577 PyDict_SetItemString(d, constants[i].name, obj);
41578 Py_DECREF(obj);
41579 }
be9b1dca 41580 }
554f62e9
RD
41581 }
41582
41583 /* -----------------------------------------------------------------------------*/
41584 /* Fix SwigMethods to carry the callback ptrs when needed */
41585 /* -----------------------------------------------------------------------------*/
41586
41587 SWIGINTERN void
41588 SWIG_Python_FixMethods(PyMethodDef *methods,
41589 swig_const_info *const_table,
41590 swig_type_info **types,
41591 swig_type_info **types_initial) {
41592 size_t i;
41593 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41594 const char *c = methods[i].ml_doc;
554f62e9
RD
41595 if (c && (c = strstr(c, "swig_ptr: "))) {
41596 int j;
41597 swig_const_info *ci = 0;
453fb36b 41598 const char *name = c + 10;
554f62e9
RD
41599 for (j = 0; const_table[j].type; ++j) {
41600 if (strncmp(const_table[j].name, name,
41601 strlen(const_table[j].name)) == 0) {
41602 ci = &(const_table[j]);
41603 break;
41604 }
41605 }
41606 if (ci) {
41607 size_t shift = (ci->ptype) - types;
41608 swig_type_info *ty = types_initial[shift];
41609 size_t ldoc = (c - methods[i].ml_doc);
41610 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41611 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41612 if (ndoc) {
41613 char *buff = ndoc;
41614 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41615 if (ptr) {
41616 strncpy(buff, methods[i].ml_doc, ldoc);
41617 buff += ldoc;
41618 strncpy(buff, "swig_ptr: ", 10);
41619 buff += 10;
41620 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41621 methods[i].ml_doc = ndoc;
41622 }
41623 }
41624 }
41625 }
be9b1dca 41626 }
554f62e9
RD
41627 }
41628
41629#ifdef __cplusplus
41630}
41631#endif
41632
41633/* -----------------------------------------------------------------------------*
41634 * Partial Init method
41635 * -----------------------------------------------------------------------------*/
41636
41637#ifdef __cplusplus
41638extern "C"
41639#endif
41640SWIGEXPORT void SWIG_init(void) {
41641 PyObject *m, *d;
41642
41643 /* Fix SwigMethods to carry the callback ptrs when needed */
41644 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41645
41646 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41647 d = PyModule_GetDict(m);
41648
41649 SWIG_InitializeModule(0);
41650 SWIG_InstallConstants(d,swig_const_table);
41651
41652
f460c29d
RD
41653 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41654 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41655 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41656 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41657 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
41658 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41659 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41660 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41661 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41662 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41663 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41664 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41665 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41666 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41667 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41668 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41669 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41670 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41671 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41672 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41673 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41674 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41675 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41676 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41677 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41678 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41679 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41680 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41681 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41682 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41683 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41684 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41685 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41686 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41687 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41688 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41689 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41690 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41691 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41692 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41693 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41694 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41695 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41696 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41697 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41698 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41699 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41700 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41701 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41702 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41703 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41704 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41705 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41706 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41707 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41708 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41709 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41710 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41711 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41712 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41713 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41714 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41715 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41716 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41717 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41718 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41719 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41720 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41721 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41722 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41723 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41724 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41725 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41726 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41727 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41728 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41729 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41730 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41731 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41732 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41733 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41734 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41735 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41736 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41737 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41738 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41739 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41740 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41741 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41742 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41743 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41744 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41745 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41746 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41747 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41748 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41749 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41750 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41751 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41752 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41753 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41754 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41755 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41756 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41757 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41758 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41759 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41760 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41761 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41762 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41763 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41764 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41765 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41766 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41767 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41768 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41769 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41770 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41771 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41772 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41773 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41774 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41775 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41776 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41777 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41778 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41779 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41780 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41781 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41782 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41783 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41784 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41785
41786 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41787
41788 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41789 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41790 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41791 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41792 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41793 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41794 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41795 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41796 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41797 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41798 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41799 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41800 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41801 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41802 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41803 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41804 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41805 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41806 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41807 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41808 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41809 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41810 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41811 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41812 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41813 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41814 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41815 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41816 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41817 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41818 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41819 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41820 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41821 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41822 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41823 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41824 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41825 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41826 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41827 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41828 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41829 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41830 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41831 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41832 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41833 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41834 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41835 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41836 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41837 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41838 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41839 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41840 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41841 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41842 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41843 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41844 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41845 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41846 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41847 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41848 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41849 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41850 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41851 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41852 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41853 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41854 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41855 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41856 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41857 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41858 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41859 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41860 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41861 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41862 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41863 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41864 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41865 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41866 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41867 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41868 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41869 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41870 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41871 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41872 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41873 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41874 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41875 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41876 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41877 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41878 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41879 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41880 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41881 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41882 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41883 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41884 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41885 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41886 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41887 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41888 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41889 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41890 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41891 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41892 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41893 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41894 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41895 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41896 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41897 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41898 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41899 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41900 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41901 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41902 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41903 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41904 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41905 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41906 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41907 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41908 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41909 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41910 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41911 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41912 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41913 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41914 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41915 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41916 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41917 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41918 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41919 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41920 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41921 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41922 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41923 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41924 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41925 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41926 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41927 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41928 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41929 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41930 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41931 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41932 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41933 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41934 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41935 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41936 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41937 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41938 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41939 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41940 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41941 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41942 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41943 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41944 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41945 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41946 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41947 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41948 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41949 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41950 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41951 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41952 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41953 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41954 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41955 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41956 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41957 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41958 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41959 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41960 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41961 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41962 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41963 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41964 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41965 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41966 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41967 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41968 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41969 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41970 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41971 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41972 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41973 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41974 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41975 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41976 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41977 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41978 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41979 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41980 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41981 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41982 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41983 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41984 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41985 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41986 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41987 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41988 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41989 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41990 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41991 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41992 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41993 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41994 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41995 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41996 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41997 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41998 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41999 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42000 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42001 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42002 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42003 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42004 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42005 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42006 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42007 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42008 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42009 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42010 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42011 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42012 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42013 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42014 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42015 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42016 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42017 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42018 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42019 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42020 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42021 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42022 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42023 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42024 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42025 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42026 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42027 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42028 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42029 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42030 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42031 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42032 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42033 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42034 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42035 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
42036 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42037 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42038 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42039 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
42040 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42041 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
554f62e9
RD
42042 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42043 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42044 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42045 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42046 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42047 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42048 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
42049 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42050 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42051 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42052 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42053 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42054 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42055 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42056 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42057 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42058 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42059 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42060 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42061 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42062 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42063 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42064 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42065 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42066 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42067 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42068 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42069 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42070 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42071 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42072 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42073 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42074 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42075 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42076 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42077 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42078 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42079 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42080 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42081 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42082 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42083 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9
RD
42084 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42085 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42086 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42087 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42088 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42089 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42090 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42091 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
42092 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42093 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42094 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 42095 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
42096 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42097 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42098 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 42099 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
42100 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42101 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42102 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42103 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42104 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42105 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42106 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
42107 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42108 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42109 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
42110 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42111 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42112
42113 // Work around a chicken/egg problem in drawlist.cpp
42114 wxPyDrawList_SetAPIPtr();
42115
d55e5bfc
RD
42116}
42117